@aws-sdk/client-textract 3.296.0 → 3.298.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 (51) hide show
  1. package/dist-cjs/commands/AnalyzeDocumentCommand.js +2 -3
  2. package/dist-cjs/commands/AnalyzeExpenseCommand.js +2 -3
  3. package/dist-cjs/commands/AnalyzeIDCommand.js +2 -3
  4. package/dist-cjs/commands/DetectDocumentTextCommand.js +2 -3
  5. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +2 -3
  6. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +2 -3
  7. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +2 -3
  8. package/dist-cjs/commands/GetLendingAnalysisCommand.js +2 -3
  9. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +2 -3
  10. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +2 -3
  11. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +2 -3
  12. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +2 -3
  13. package/dist-cjs/commands/StartLendingAnalysisCommand.js +2 -3
  14. package/dist-cjs/endpoint/ruleset.js +3 -3
  15. package/dist-cjs/models/models_0.js +12 -274
  16. package/dist-es/commands/AnalyzeDocumentCommand.js +2 -3
  17. package/dist-es/commands/AnalyzeExpenseCommand.js +2 -3
  18. package/dist-es/commands/AnalyzeIDCommand.js +2 -3
  19. package/dist-es/commands/DetectDocumentTextCommand.js +2 -3
  20. package/dist-es/commands/GetDocumentAnalysisCommand.js +2 -3
  21. package/dist-es/commands/GetDocumentTextDetectionCommand.js +2 -3
  22. package/dist-es/commands/GetExpenseAnalysisCommand.js +2 -3
  23. package/dist-es/commands/GetLendingAnalysisCommand.js +2 -3
  24. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +2 -3
  25. package/dist-es/commands/StartDocumentAnalysisCommand.js +2 -3
  26. package/dist-es/commands/StartDocumentTextDetectionCommand.js +2 -3
  27. package/dist-es/commands/StartExpenseAnalysisCommand.js +2 -3
  28. package/dist-es/commands/StartLendingAnalysisCommand.js +2 -3
  29. package/dist-es/endpoint/ruleset.js +3 -3
  30. package/dist-es/models/models_0.js +11 -204
  31. package/dist-types/Textract.d.ts +17 -13
  32. package/dist-types/TextractClient.d.ts +24 -4
  33. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +16 -2
  34. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +16 -0
  35. package/dist-types/commands/AnalyzeIDCommand.d.ts +17 -1
  36. package/dist-types/commands/DetectDocumentTextCommand.d.ts +16 -1
  37. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +16 -4
  38. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +16 -1
  39. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +16 -0
  40. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +18 -2
  41. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +16 -0
  42. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +16 -1
  43. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +16 -0
  44. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +16 -1
  45. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +16 -0
  46. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  47. package/dist-types/models/TextractServiceException.d.ts +2 -0
  48. package/dist-types/models/models_0.d.ts +275 -300
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +11 -174
  51. package/package.json +4 -3
@@ -4,24 +4,29 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { GetLendingAnalysisRequest, GetLendingAnalysisResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link GetLendingAnalysisCommand}.
8
10
  */
9
11
  export interface GetLendingAnalysisCommandInput extends GetLendingAnalysisRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link GetLendingAnalysisCommand}.
13
17
  */
14
18
  export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Gets the results for an Amazon Textract asynchronous operation that analyzes text in a
18
23
  * lending document. </p>
19
- * <p>You start asynchronous text analysis by calling <code>StartLendingAnalysis</code>,
24
+ * <p>You start asynchronous text analysis by calling <code>StartLendingAnalysis</code>,
20
25
  * which returns a job identifier (<code>JobId</code>). When the text analysis operation
21
26
  * finishes, Amazon Textract publishes a completion status to the Amazon Simple
22
27
  * Notification Service (Amazon SNS) topic that's registered in the initial call to
23
28
  * <code>StartLendingAnalysis</code>. </p>
24
- * <p>To get the results of the text analysis operation, first check that the status value
29
+ * <p>To get the results of the text analysis operation, first check that the status value
25
30
  * published to the Amazon SNS topic is SUCCEEDED. If so, call GetLendingAnalysis, and pass
26
31
  * the job identifier (<code>JobId</code>) from the initial call to
27
32
  * <code>StartLendingAnalysis</code>.</p>
@@ -35,6 +40,8 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
35
40
  * const response = await client.send(command);
36
41
  * ```
37
42
  *
43
+ * @param GetLendingAnalysisCommandInput - {@link GetLendingAnalysisCommandInput}
44
+ * @returns {@link GetLendingAnalysisCommandOutput}
38
45
  * @see {@link GetLendingAnalysisCommandInput} for command's `input` shape.
39
46
  * @see {@link GetLendingAnalysisCommandOutput} for command's `response` shape.
40
47
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -78,11 +85,20 @@ export interface GetLendingAnalysisCommandOutput extends GetLendingAnalysisRespo
78
85
  export declare class GetLendingAnalysisCommand extends $Command<GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput, TextractClientResolvedConfig> {
79
86
  readonly input: GetLendingAnalysisCommandInput;
80
87
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
88
+ /**
89
+ * @public
90
+ */
81
91
  constructor(input: GetLendingAnalysisCommandInput);
82
92
  /**
83
93
  * @internal
84
94
  */
85
95
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput>;
96
+ /**
97
+ * @internal
98
+ */
86
99
  private serialize;
100
+ /**
101
+ * @internal
102
+ */
87
103
  private deserialize;
88
104
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { GetLendingAnalysisSummaryRequest, GetLendingAnalysisSummaryResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link GetLendingAnalysisSummaryCommand}.
8
10
  */
9
11
  export interface GetLendingAnalysisSummaryCommandInput extends GetLendingAnalysisSummaryRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link GetLendingAnalysisSummaryCommand}.
13
17
  */
14
18
  export interface GetLendingAnalysisSummaryCommandOutput extends GetLendingAnalysisSummaryResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Gets summarized results for the <code>StartLendingAnalysis</code> operation, which analyzes
18
23
  * text in a lending document. The returned summary consists of information about documents grouped
19
24
  * together by a common document type. Information like detected signatures, page numbers, and split
@@ -36,6 +41,8 @@ export interface GetLendingAnalysisSummaryCommandOutput extends GetLendingAnalys
36
41
  * const response = await client.send(command);
37
42
  * ```
38
43
  *
44
+ * @param GetLendingAnalysisSummaryCommandInput - {@link GetLendingAnalysisSummaryCommandInput}
45
+ * @returns {@link GetLendingAnalysisSummaryCommandOutput}
39
46
  * @see {@link GetLendingAnalysisSummaryCommandInput} for command's `input` shape.
40
47
  * @see {@link GetLendingAnalysisSummaryCommandOutput} for command's `response` shape.
41
48
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -79,11 +86,20 @@ export interface GetLendingAnalysisSummaryCommandOutput extends GetLendingAnalys
79
86
  export declare class GetLendingAnalysisSummaryCommand extends $Command<GetLendingAnalysisSummaryCommandInput, GetLendingAnalysisSummaryCommandOutput, TextractClientResolvedConfig> {
80
87
  readonly input: GetLendingAnalysisSummaryCommandInput;
81
88
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
+ /**
90
+ * @public
91
+ */
82
92
  constructor(input: GetLendingAnalysisSummaryCommandInput);
83
93
  /**
84
94
  * @internal
85
95
  */
86
96
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLendingAnalysisSummaryCommandInput, GetLendingAnalysisSummaryCommandOutput>;
97
+ /**
98
+ * @internal
99
+ */
87
100
  private serialize;
101
+ /**
102
+ * @internal
103
+ */
88
104
  private deserialize;
89
105
  }
@@ -4,19 +4,23 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { StartDocumentAnalysisRequest, StartDocumentAnalysisResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link StartDocumentAnalysisCommand}.
8
10
  */
9
11
  export interface StartDocumentAnalysisCommandInput extends StartDocumentAnalysisRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link StartDocumentAnalysisCommand}.
13
17
  */
14
18
  export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysisResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Starts the asynchronous analysis of an input document for relationships between detected
18
23
  * items such as key-value pairs, tables, and selection elements.</p>
19
- *
20
24
  * <p>
21
25
  * <code>StartDocumentAnalysis</code> can analyze text in documents that are in JPEG, PNG, TIFF, and PDF format. The
22
26
  * documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name
@@ -42,6 +46,8 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
42
46
  * const response = await client.send(command);
43
47
  * ```
44
48
  *
49
+ * @param StartDocumentAnalysisCommandInput - {@link StartDocumentAnalysisCommandInput}
50
+ * @returns {@link StartDocumentAnalysisCommandOutput}
45
51
  * @see {@link StartDocumentAnalysisCommandInput} for command's `input` shape.
46
52
  * @see {@link StartDocumentAnalysisCommandOutput} for command's `response` shape.
47
53
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -107,11 +113,20 @@ export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysi
107
113
  export declare class StartDocumentAnalysisCommand extends $Command<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
108
114
  readonly input: StartDocumentAnalysisCommandInput;
109
115
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
+ /**
117
+ * @public
118
+ */
110
119
  constructor(input: StartDocumentAnalysisCommandInput);
111
120
  /**
112
121
  * @internal
113
122
  */
114
123
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput>;
124
+ /**
125
+ * @internal
126
+ */
115
127
  private serialize;
128
+ /**
129
+ * @internal
130
+ */
116
131
  private deserialize;
117
132
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link StartDocumentTextDetectionCommand}.
8
10
  */
9
11
  export interface StartDocumentTextDetectionCommandInput extends StartDocumentTextDetectionRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link StartDocumentTextDetectionCommand}.
13
17
  */
14
18
  export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTextDetectionResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of
18
23
  * text and the words that make up a line of text.</p>
19
24
  * <p>
@@ -41,6 +46,8 @@ export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTe
41
46
  * const response = await client.send(command);
42
47
  * ```
43
48
  *
49
+ * @param StartDocumentTextDetectionCommandInput - {@link StartDocumentTextDetectionCommandInput}
50
+ * @returns {@link StartDocumentTextDetectionCommandOutput}
44
51
  * @see {@link StartDocumentTextDetectionCommandInput} for command's `input` shape.
45
52
  * @see {@link StartDocumentTextDetectionCommandOutput} for command's `response` shape.
46
53
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -106,11 +113,20 @@ export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTe
106
113
  export declare class StartDocumentTextDetectionCommand extends $Command<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
107
114
  readonly input: StartDocumentTextDetectionCommandInput;
108
115
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
+ /**
117
+ * @public
118
+ */
109
119
  constructor(input: StartDocumentTextDetectionCommandInput);
110
120
  /**
111
121
  * @internal
112
122
  */
113
123
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput>;
124
+ /**
125
+ * @internal
126
+ */
114
127
  private serialize;
128
+ /**
129
+ * @internal
130
+ */
115
131
  private deserialize;
116
132
  }
@@ -4,19 +4,23 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { StartExpenseAnalysisRequest, StartExpenseAnalysisResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link StartExpenseAnalysisCommand}.
8
10
  */
9
11
  export interface StartExpenseAnalysisCommandInput extends StartExpenseAnalysisRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link StartExpenseAnalysisCommand}.
13
17
  */
14
18
  export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Starts the asynchronous analysis of invoices or receipts for data like contact information,
18
23
  * items purchased, and vendor names.</p>
19
- *
20
24
  * <p>
21
25
  * <code>StartExpenseAnalysis</code> can analyze text in documents that are in JPEG, PNG, and
22
26
  * PDF format. The documents must be stored in an Amazon S3 bucket. Use the <a>DocumentLocation</a> parameter to specify the name of your S3 bucket and the name of the
@@ -40,6 +44,8 @@ export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisR
40
44
  * const response = await client.send(command);
41
45
  * ```
42
46
  *
47
+ * @param StartExpenseAnalysisCommandInput - {@link StartExpenseAnalysisCommandInput}
48
+ * @returns {@link StartExpenseAnalysisCommandOutput}
43
49
  * @see {@link StartExpenseAnalysisCommandInput} for command's `input` shape.
44
50
  * @see {@link StartExpenseAnalysisCommandOutput} for command's `response` shape.
45
51
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -105,11 +111,20 @@ export interface StartExpenseAnalysisCommandOutput extends StartExpenseAnalysisR
105
111
  export declare class StartExpenseAnalysisCommand extends $Command<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput, TextractClientResolvedConfig> {
106
112
  readonly input: StartExpenseAnalysisCommandInput;
107
113
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
+ /**
115
+ * @public
116
+ */
108
117
  constructor(input: StartExpenseAnalysisCommandInput);
109
118
  /**
110
119
  * @internal
111
120
  */
112
121
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput>;
122
+ /**
123
+ * @internal
124
+ */
113
125
  private serialize;
126
+ /**
127
+ * @internal
128
+ */
114
129
  private deserialize;
115
130
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { StartLendingAnalysisRequest, StartLendingAnalysisResponse } from "../models/models_0";
5
5
  import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link StartLendingAnalysisCommand}.
8
10
  */
9
11
  export interface StartLendingAnalysisCommandInput extends StartLendingAnalysisRequest {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link StartLendingAnalysisCommand}.
13
17
  */
14
18
  export interface StartLendingAnalysisCommandOutput extends StartLendingAnalysisResponse, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>Starts the classification and analysis of an input document.
18
23
  * <code>StartLendingAnalysis</code> initiates the classification and analysis of a packet of
19
24
  * lending documents. <code>StartLendingAnalysis</code> operates on a document file located in an
@@ -55,6 +60,8 @@ export interface StartLendingAnalysisCommandOutput extends StartLendingAnalysisR
55
60
  * const response = await client.send(command);
56
61
  * ```
57
62
  *
63
+ * @param StartLendingAnalysisCommandInput - {@link StartLendingAnalysisCommandInput}
64
+ * @returns {@link StartLendingAnalysisCommandOutput}
58
65
  * @see {@link StartLendingAnalysisCommandInput} for command's `input` shape.
59
66
  * @see {@link StartLendingAnalysisCommandOutput} for command's `response` shape.
60
67
  * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
@@ -120,11 +127,20 @@ export interface StartLendingAnalysisCommandOutput extends StartLendingAnalysisR
120
127
  export declare class StartLendingAnalysisCommand extends $Command<StartLendingAnalysisCommandInput, StartLendingAnalysisCommandOutput, TextractClientResolvedConfig> {
121
128
  readonly input: StartLendingAnalysisCommandInput;
122
129
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
130
+ /**
131
+ * @public
132
+ */
123
133
  constructor(input: StartLendingAnalysisCommandInput);
124
134
  /**
125
135
  * @internal
126
136
  */
127
137
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartLendingAnalysisCommandInput, StartLendingAnalysisCommandOutput>;
138
+ /**
139
+ * @internal
140
+ */
128
141
  private serialize;
142
+ /**
143
+ * @internal
144
+ */
129
145
  private deserialize;
130
146
  }
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -1,5 +1,7 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * Base exception class for all service exceptions from Textract service.
4
6
  */
5
7
  export declare class TextractServiceException extends __ServiceException {