@aws-sdk/client-textract 3.414.0 → 3.421.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 (41) hide show
  1. package/README.md +7 -7
  2. package/dist-cjs/commands/AnalyzeDocumentCommand.js +5 -0
  3. package/dist-cjs/commands/AnalyzeExpenseCommand.js +5 -0
  4. package/dist-cjs/commands/AnalyzeIDCommand.js +5 -0
  5. package/dist-cjs/commands/DetectDocumentTextCommand.js +5 -0
  6. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +5 -0
  7. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +5 -0
  8. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +5 -0
  9. package/dist-cjs/commands/GetLendingAnalysisCommand.js +5 -0
  10. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +5 -0
  11. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +5 -0
  12. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +5 -0
  13. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +5 -0
  14. package/dist-cjs/commands/StartLendingAnalysisCommand.js +5 -0
  15. package/dist-cjs/models/models_0.js +11 -0
  16. package/dist-es/commands/AnalyzeDocumentCommand.js +5 -0
  17. package/dist-es/commands/AnalyzeExpenseCommand.js +5 -0
  18. package/dist-es/commands/AnalyzeIDCommand.js +5 -0
  19. package/dist-es/commands/DetectDocumentTextCommand.js +5 -0
  20. package/dist-es/commands/GetDocumentAnalysisCommand.js +5 -0
  21. package/dist-es/commands/GetDocumentTextDetectionCommand.js +5 -0
  22. package/dist-es/commands/GetExpenseAnalysisCommand.js +5 -0
  23. package/dist-es/commands/GetLendingAnalysisCommand.js +5 -0
  24. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +5 -0
  25. package/dist-es/commands/StartDocumentAnalysisCommand.js +5 -0
  26. package/dist-es/commands/StartDocumentTextDetectionCommand.js +5 -0
  27. package/dist-es/commands/StartExpenseAnalysisCommand.js +5 -0
  28. package/dist-es/commands/StartLendingAnalysisCommand.js +5 -0
  29. package/dist-es/models/models_0.js +11 -0
  30. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +2 -2
  31. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +1 -1
  32. package/dist-types/commands/AnalyzeIDCommand.d.ts +1 -1
  33. package/dist-types/commands/DetectDocumentTextCommand.d.ts +1 -1
  34. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +1 -1
  35. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +1 -1
  36. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +1 -1
  37. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +2 -2
  38. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +1 -1
  39. package/dist-types/models/models_0.d.ts +19 -8
  40. package/dist-types/ts3.4/models/models_0.d.ts +11 -0
  41. package/package.json +31 -31
package/README.md CHANGED
@@ -25,16 +25,16 @@ using your favorite package manager:
25
25
 
26
26
  The AWS SDK is modulized by clients and commands.
27
27
  To send a request, you only need to import the `TextractClient` and
28
- the commands you need, for example `AnalyzeDocumentCommand`:
28
+ the commands you need, for example `GetDocumentAnalysisCommand`:
29
29
 
30
30
  ```js
31
31
  // ES5 example
32
- const { TextractClient, AnalyzeDocumentCommand } = require("@aws-sdk/client-textract");
32
+ const { TextractClient, GetDocumentAnalysisCommand } = require("@aws-sdk/client-textract");
33
33
  ```
34
34
 
35
35
  ```ts
36
36
  // ES6+ example
37
- import { TextractClient, AnalyzeDocumentCommand } from "@aws-sdk/client-textract";
37
+ import { TextractClient, GetDocumentAnalysisCommand } from "@aws-sdk/client-textract";
38
38
  ```
39
39
 
40
40
  ### Usage
@@ -53,7 +53,7 @@ const client = new TextractClient({ region: "REGION" });
53
53
  const params = {
54
54
  /** input parameters */
55
55
  };
56
- const command = new AnalyzeDocumentCommand(params);
56
+ const command = new GetDocumentAnalysisCommand(params);
57
57
  ```
58
58
 
59
59
  #### Async/await
@@ -132,7 +132,7 @@ const client = new AWS.Textract({ region: "REGION" });
132
132
 
133
133
  // async/await.
134
134
  try {
135
- const data = await client.analyzeDocument(params);
135
+ const data = await client.getDocumentAnalysis(params);
136
136
  // process data.
137
137
  } catch (error) {
138
138
  // error handling.
@@ -140,7 +140,7 @@ try {
140
140
 
141
141
  // Promises.
142
142
  client
143
- .analyzeDocument(params)
143
+ .getDocumentAnalysis(params)
144
144
  .then((data) => {
145
145
  // process data.
146
146
  })
@@ -149,7 +149,7 @@ client
149
149
  });
150
150
 
151
151
  // callbacks.
152
- client.analyzeDocument(params, (err, data) => {
152
+ client.getDocumentAnalysis(params, (err, data) => {
153
153
  // process err and data.
154
154
  });
155
155
  ```
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class AnalyzeDocumentCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class AnalyzeDocumentCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "AnalyzeDocument",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class AnalyzeExpenseCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class AnalyzeExpenseCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "AnalyzeExpense",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class AnalyzeIDCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class AnalyzeIDCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "AnalyzeID",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class DetectDocumentTextCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class DetectDocumentTextCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "DetectDocumentText",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class GetDocumentAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class GetDocumentAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "GetDocumentAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class GetDocumentTextDetectionCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class GetDocumentTextDetectionCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "GetDocumentTextDetection",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class GetExpenseAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class GetExpenseAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "GetExpenseAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class GetLendingAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class GetLendingAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "GetLendingAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class GetLendingAnalysisSummaryCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class GetLendingAnalysisSummaryCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "GetLendingAnalysisSummary",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class StartDocumentAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class StartDocumentAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "StartDocumentAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class StartDocumentTextDetectionCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class StartDocumentTextDetectionCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "StartDocumentTextDetection",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class StartExpenseAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class StartExpenseAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "StartExpenseAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class StartLendingAnalysisCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -32,6 +33,10 @@ class StartLendingAnalysisCommand extends smithy_client_1.Command {
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
35
  outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Textract",
38
+ operation: "StartLendingAnalysis",
39
+ },
35
40
  };
36
41
  const { requestHandler } = configuration;
37
42
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -19,6 +19,7 @@ class AccessDeniedException extends TextractServiceException_1.TextractServiceEx
19
19
  exports.AccessDeniedException = AccessDeniedException;
20
20
  exports.FeatureType = {
21
21
  FORMS: "FORMS",
22
+ LAYOUT: "LAYOUT",
22
23
  QUERIES: "QUERIES",
23
24
  SIGNATURES: "SIGNATURES",
24
25
  TABLES: "TABLES",
@@ -30,6 +31,16 @@ exports.ContentClassifier = {
30
31
  exports.BlockType = {
31
32
  CELL: "CELL",
32
33
  KEY_VALUE_SET: "KEY_VALUE_SET",
34
+ LAYOUT_FIGURE: "LAYOUT_FIGURE",
35
+ LAYOUT_FOOTER: "LAYOUT_FOOTER",
36
+ LAYOUT_HEADER: "LAYOUT_HEADER",
37
+ LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
38
+ LAYOUT_LIST: "LAYOUT_LIST",
39
+ LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
40
+ LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
41
+ LAYOUT_TABLE: "LAYOUT_TABLE",
42
+ LAYOUT_TEXT: "LAYOUT_TEXT",
43
+ LAYOUT_TITLE: "LAYOUT_TITLE",
33
44
  LINE: "LINE",
34
45
  MERGED_CELL: "MERGED_CELL",
35
46
  PAGE: "PAGE",
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_AnalyzeDocumentCommand, se_AnalyzeDocumentCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class AnalyzeDocumentCommand extends $Command {
@@ -29,6 +30,10 @@ export class AnalyzeDocumentCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "AnalyzeDocument",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_AnalyzeExpenseCommand, se_AnalyzeExpenseCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class AnalyzeExpenseCommand extends $Command {
@@ -29,6 +30,10 @@ export class AnalyzeExpenseCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "AnalyzeExpense",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_AnalyzeIDCommand, se_AnalyzeIDCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class AnalyzeIDCommand extends $Command {
@@ -29,6 +30,10 @@ export class AnalyzeIDCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "AnalyzeID",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_DetectDocumentTextCommand, se_DetectDocumentTextCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class DetectDocumentTextCommand extends $Command {
@@ -29,6 +30,10 @@ export class DetectDocumentTextCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "DetectDocumentText",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_GetDocumentAnalysisCommand, se_GetDocumentAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class GetDocumentAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class GetDocumentAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "GetDocumentAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_GetDocumentTextDetectionCommand, se_GetDocumentTextDetectionCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class GetDocumentTextDetectionCommand extends $Command {
@@ -29,6 +30,10 @@ export class GetDocumentTextDetectionCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "GetDocumentTextDetection",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_GetExpenseAnalysisCommand, se_GetExpenseAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class GetExpenseAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class GetExpenseAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "GetExpenseAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_GetLendingAnalysisCommand, se_GetLendingAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class GetLendingAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class GetLendingAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "GetLendingAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_GetLendingAnalysisSummaryCommand, se_GetLendingAnalysisSummaryCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class GetLendingAnalysisSummaryCommand extends $Command {
@@ -29,6 +30,10 @@ export class GetLendingAnalysisSummaryCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "GetLendingAnalysisSummary",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_StartDocumentAnalysisCommand, se_StartDocumentAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class StartDocumentAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class StartDocumentAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "StartDocumentAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_StartDocumentTextDetectionCommand, se_StartDocumentTextDetectionCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class StartDocumentTextDetectionCommand extends $Command {
@@ -29,6 +30,10 @@ export class StartDocumentTextDetectionCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "StartDocumentTextDetection",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_StartExpenseAnalysisCommand, se_StartExpenseAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class StartExpenseAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class StartExpenseAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "StartExpenseAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
5
  import { de_StartLendingAnalysisCommand, se_StartLendingAnalysisCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class StartLendingAnalysisCommand extends $Command {
@@ -29,6 +30,10 @@ export class StartLendingAnalysisCommand extends $Command {
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
32
  outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Textract",
35
+ operation: "StartLendingAnalysis",
36
+ },
32
37
  };
33
38
  const { requestHandler } = configuration;
34
39
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -15,6 +15,7 @@ export class AccessDeniedException extends __BaseException {
15
15
  }
16
16
  export const FeatureType = {
17
17
  FORMS: "FORMS",
18
+ LAYOUT: "LAYOUT",
18
19
  QUERIES: "QUERIES",
19
20
  SIGNATURES: "SIGNATURES",
20
21
  TABLES: "TABLES",
@@ -26,6 +27,16 @@ export const ContentClassifier = {
26
27
  export const BlockType = {
27
28
  CELL: "CELL",
28
29
  KEY_VALUE_SET: "KEY_VALUE_SET",
30
+ LAYOUT_FIGURE: "LAYOUT_FIGURE",
31
+ LAYOUT_FOOTER: "LAYOUT_FOOTER",
32
+ LAYOUT_HEADER: "LAYOUT_HEADER",
33
+ LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
34
+ LAYOUT_LIST: "LAYOUT_LIST",
35
+ LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
36
+ LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
37
+ LAYOUT_TABLE: "LAYOUT_TABLE",
38
+ LAYOUT_TEXT: "LAYOUT_TEXT",
39
+ LAYOUT_TITLE: "LAYOUT_TITLE",
29
40
  LINE: "LINE",
30
41
  MERGED_CELL: "MERGED_CELL",
31
42
  PAGE: "PAGE",
@@ -86,7 +86,7 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
86
86
  * },
87
87
  * },
88
88
  * FeatureTypes: [ // FeatureTypes // required
89
- * "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES",
89
+ * "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
90
90
  * ],
91
91
  * HumanLoopConfig: { // HumanLoopConfig
92
92
  * HumanLoopName: "STRING_VALUE", // required
@@ -117,7 +117,7 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
117
117
  * // },
118
118
  * // Blocks: [ // BlockList
119
119
  * // { // Block
120
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
120
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
121
121
  * // Confidence: Number("float"),
122
122
  * // Text: "STRING_VALUE",
123
123
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -191,7 +191,7 @@ export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __M
191
191
  * // ],
192
192
  * // Blocks: [ // BlockList
193
193
  * // { // Block
194
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
194
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
195
195
  * // Confidence: Number("float"),
196
196
  * // Text: "STRING_VALUE",
197
197
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -73,7 +73,7 @@ export interface AnalyzeIDCommandOutput extends AnalyzeIDResponse, __MetadataBea
73
73
  * // ],
74
74
  * // Blocks: [ // BlockList
75
75
  * // { // Block
76
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
76
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
77
77
  * // Confidence: Number("float"),
78
78
  * // Text: "STRING_VALUE",
79
79
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -58,7 +58,7 @@ export interface DetectDocumentTextCommandOutput extends DetectDocumentTextRespo
58
58
  * // },
59
59
  * // Blocks: [ // BlockList
60
60
  * // { // Block
61
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
61
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
62
62
  * // Confidence: Number("float"),
63
63
  * // Text: "STRING_VALUE",
64
64
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -105,7 +105,7 @@ export interface GetDocumentAnalysisCommandOutput extends GetDocumentAnalysisRes
105
105
  * // NextToken: "STRING_VALUE",
106
106
  * // Blocks: [ // BlockList
107
107
  * // { // Block
108
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
108
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
109
109
  * // Confidence: Number("float"),
110
110
  * // Text: "STRING_VALUE",
111
111
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -68,7 +68,7 @@ export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDe
68
68
  * // NextToken: "STRING_VALUE",
69
69
  * // Blocks: [ // BlockList
70
70
  * // { // Block
71
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
71
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
72
72
  * // Confidence: Number("float"),
73
73
  * // Text: "STRING_VALUE",
74
74
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -187,7 +187,7 @@ export interface GetExpenseAnalysisCommandOutput extends GetExpenseAnalysisRespo
187
187
  * // ],
188
188
  * // Blocks: [ // BlockList
189
189
  * // { // Block
190
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
190
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
191
191
  * // Confidence: Number("float"),
192
192
  * // Text: "STRING_VALUE",
193
193
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -200,7 +200,7 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
200
200
  * // ],
201
201
  * // Blocks: [ // BlockList
202
202
  * // { // Block
203
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
203
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
204
204
  * // Confidence: Number("float"),
205
205
  * // Text: "STRING_VALUE",
206
206
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -257,7 +257,7 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
257
257
  * // ],
258
258
  * // Blocks: [
259
259
  * // {
260
- * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER",
260
+ * // BlockType: "KEY_VALUE_SET" || "PAGE" || "LINE" || "WORD" || "TABLE" || "CELL" || "SELECTION_ELEMENT" || "MERGED_CELL" || "TITLE" || "QUERY" || "QUERY_RESULT" || "SIGNATURE" || "TABLE_TITLE" || "TABLE_FOOTER" || "LAYOUT_TEXT" || "LAYOUT_TITLE" || "LAYOUT_HEADER" || "LAYOUT_FOOTER" || "LAYOUT_SECTION_HEADER" || "LAYOUT_PAGE_NUMBER" || "LAYOUT_LIST" || "LAYOUT_FIGURE" || "LAYOUT_TABLE" || "LAYOUT_KEY_VALUE",
261
261
  * // Confidence: Number("float"),
262
262
  * // Text: "STRING_VALUE",
263
263
  * // TextType: "HANDWRITING" || "PRINTED",
@@ -55,7 +55,7 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
55
55
  * },
56
56
  * },
57
57
  * FeatureTypes: [ // FeatureTypes // required
58
- * "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES",
58
+ * "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
59
59
  * ],
60
60
  * ClientRequestToken: "STRING_VALUE",
61
61
  * JobTag: "STRING_VALUE",
@@ -85,6 +85,7 @@ export interface Document {
85
85
  */
86
86
  export declare const FeatureType: {
87
87
  readonly FORMS: "FORMS";
88
+ readonly LAYOUT: "LAYOUT";
88
89
  readonly QUERIES: "QUERIES";
89
90
  readonly SIGNATURES: "SIGNATURES";
90
91
  readonly TABLES: "TABLES";
@@ -210,11 +211,12 @@ export interface AnalyzeDocumentRequest {
210
211
  * @public
211
212
  * <p>A list of the types of analysis to perform. Add TABLES to the list to return information
212
213
  * about the tables that are detected in the input document. Add FORMS to return detected form
213
- * data. Add SIGNATURES to return the locations of detected signatures. To perform both forms
214
- * and table analysis, add TABLES and FORMS to <code>FeatureTypes</code>. To detect signatures within
215
- * form data and table data, add SIGNATURES to either TABLES or FORMS.
216
- * All lines and words detected in the document are included in the response (including text
217
- * that isn't related to the value of <code>FeatureTypes</code>). </p>
214
+ * data. Add SIGNATURES to return the locations of detected signatures. Add LAYOUT to the list
215
+ * to return information about the layout of the document. To perform both forms
216
+ * and table analysis, add TABLES and FORMS to <code>FeatureTypes</code>. To detect signatures
217
+ * within the document and within form data and table data, add SIGNATURES to either TABLES or
218
+ * FORMS. All lines and words detected in the document are included in the response (including
219
+ * text that isn't related to the value of <code>FeatureTypes</code>). </p>
218
220
  */
219
221
  FeatureTypes: (FeatureType | string)[] | undefined;
220
222
  /**
@@ -236,6 +238,16 @@ export interface AnalyzeDocumentRequest {
236
238
  export declare const BlockType: {
237
239
  readonly CELL: "CELL";
238
240
  readonly KEY_VALUE_SET: "KEY_VALUE_SET";
241
+ readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
242
+ readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
243
+ readonly LAYOUT_HEADER: "LAYOUT_HEADER";
244
+ readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
245
+ readonly LAYOUT_LIST: "LAYOUT_LIST";
246
+ readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
247
+ readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
248
+ readonly LAYOUT_TABLE: "LAYOUT_TABLE";
249
+ readonly LAYOUT_TEXT: "LAYOUT_TEXT";
250
+ readonly LAYOUT_TITLE: "LAYOUT_TITLE";
239
251
  readonly LINE: "LINE";
240
252
  readonly MERGED_CELL: "MERGED_CELL";
241
253
  readonly PAGE: "PAGE";
@@ -556,7 +568,7 @@ export interface Block {
556
568
  * </li>
557
569
  * <li>
558
570
  * <p>
559
- * <i>SIGNATURE</i> - The location and confidene score of a signature detected on a
571
+ * <i>SIGNATURE</i> - The location and confidence score of a signature detected on a
560
572
  * document page. Can be returned as part of a Key-Value pair or a detected cell.</p>
561
573
  * </li>
562
574
  * <li>
@@ -706,8 +718,7 @@ export interface Block {
706
718
  * documents that are in PDF or TIFF format. A scanned image (JPEG/PNG) provided to an
707
719
  * asynchronous operation, even if it contains multiple document pages, is considered a
708
720
  * single-page document. This means that for scanned images the value of <code>Page</code> is
709
- * always 1. Synchronous operations will also return a <code>Page</code> value of 1
710
- * because every input document is considered to be a single-page document.</p>
721
+ * always 1. </p>
711
722
  */
712
723
  Page?: number;
713
724
  /**
@@ -23,6 +23,7 @@ export interface Document {
23
23
  }
24
24
  export declare const FeatureType: {
25
25
  readonly FORMS: "FORMS";
26
+ readonly LAYOUT: "LAYOUT";
26
27
  readonly QUERIES: "QUERIES";
27
28
  readonly SIGNATURES: "SIGNATURES";
28
29
  readonly TABLES: "TABLES";
@@ -59,6 +60,16 @@ export interface AnalyzeDocumentRequest {
59
60
  export declare const BlockType: {
60
61
  readonly CELL: "CELL";
61
62
  readonly KEY_VALUE_SET: "KEY_VALUE_SET";
63
+ readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
64
+ readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
65
+ readonly LAYOUT_HEADER: "LAYOUT_HEADER";
66
+ readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
67
+ readonly LAYOUT_LIST: "LAYOUT_LIST";
68
+ readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
69
+ readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
70
+ readonly LAYOUT_TABLE: "LAYOUT_TABLE";
71
+ readonly LAYOUT_TEXT: "LAYOUT_TEXT";
72
+ readonly LAYOUT_TITLE: "LAYOUT_TITLE";
62
73
  readonly LINE: "LINE";
63
74
  readonly MERGED_CELL: "MERGED_CELL";
64
75
  readonly PAGE: "PAGE";
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.414.0",
4
+ "version": "3.421.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",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.414.0",
25
- "@aws-sdk/credential-provider-node": "3.414.0",
26
- "@aws-sdk/middleware-host-header": "3.413.0",
27
- "@aws-sdk/middleware-logger": "3.413.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.413.0",
29
- "@aws-sdk/middleware-signing": "3.413.0",
30
- "@aws-sdk/middleware-user-agent": "3.413.0",
31
- "@aws-sdk/region-config-resolver": "3.413.0",
32
- "@aws-sdk/types": "3.413.0",
33
- "@aws-sdk/util-endpoints": "3.413.0",
34
- "@aws-sdk/util-user-agent-browser": "3.413.0",
35
- "@aws-sdk/util-user-agent-node": "3.413.0",
36
- "@smithy/config-resolver": "^2.0.8",
37
- "@smithy/fetch-http-handler": "^2.1.3",
38
- "@smithy/hash-node": "^2.0.7",
39
- "@smithy/invalid-dependency": "^2.0.7",
40
- "@smithy/middleware-content-length": "^2.0.9",
41
- "@smithy/middleware-endpoint": "^2.0.7",
42
- "@smithy/middleware-retry": "^2.0.10",
43
- "@smithy/middleware-serde": "^2.0.7",
44
- "@smithy/middleware-stack": "^2.0.0",
45
- "@smithy/node-config-provider": "^2.0.10",
46
- "@smithy/node-http-handler": "^2.1.3",
47
- "@smithy/protocol-http": "^3.0.3",
48
- "@smithy/smithy-client": "^2.1.4",
49
- "@smithy/types": "^2.3.1",
50
- "@smithy/url-parser": "^2.0.7",
24
+ "@aws-sdk/client-sts": "3.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.0",
26
+ "@aws-sdk/middleware-host-header": "3.418.0",
27
+ "@aws-sdk/middleware-logger": "3.418.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.418.0",
29
+ "@aws-sdk/middleware-signing": "3.418.0",
30
+ "@aws-sdk/middleware-user-agent": "3.418.0",
31
+ "@aws-sdk/region-config-resolver": "3.418.0",
32
+ "@aws-sdk/types": "3.418.0",
33
+ "@aws-sdk/util-endpoints": "3.418.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.418.0",
35
+ "@aws-sdk/util-user-agent-node": "3.418.0",
36
+ "@smithy/config-resolver": "^2.0.10",
37
+ "@smithy/fetch-http-handler": "^2.1.5",
38
+ "@smithy/hash-node": "^2.0.9",
39
+ "@smithy/invalid-dependency": "^2.0.9",
40
+ "@smithy/middleware-content-length": "^2.0.11",
41
+ "@smithy/middleware-endpoint": "^2.0.9",
42
+ "@smithy/middleware-retry": "^2.0.12",
43
+ "@smithy/middleware-serde": "^2.0.9",
44
+ "@smithy/middleware-stack": "^2.0.2",
45
+ "@smithy/node-config-provider": "^2.0.12",
46
+ "@smithy/node-http-handler": "^2.1.5",
47
+ "@smithy/protocol-http": "^3.0.5",
48
+ "@smithy/smithy-client": "^2.1.6",
49
+ "@smithy/types": "^2.3.3",
50
+ "@smithy/url-parser": "^2.0.9",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.8",
55
- "@smithy/util-defaults-mode-node": "^2.0.10",
56
- "@smithy/util-retry": "^2.0.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.10",
55
+ "@smithy/util-defaults-mode-node": "^2.0.12",
56
+ "@smithy/util-retry": "^2.0.2",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },