@aws-sdk/client-textract 3.33.0 → 3.36.1

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 (155) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Textract.js +1 -7
  3. package/{dist/cjs → dist-cjs}/TextractClient.js +8 -19
  4. package/dist-cjs/commands/AnalyzeDocumentCommand.js +36 -0
  5. package/dist-cjs/commands/AnalyzeExpenseCommand.js +36 -0
  6. package/dist-cjs/commands/DetectDocumentTextCommand.js +36 -0
  7. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +36 -0
  8. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +36 -0
  9. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +36 -0
  10. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +36 -0
  11. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  12. package/{dist/cjs → dist-cjs}/index.js +0 -1
  13. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  14. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -148
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  20. package/{dist/es → dist-es}/Textract.js +2 -8
  21. package/{dist/es → dist-es}/TextractClient.js +2 -13
  22. package/dist-es/commands/AnalyzeDocumentCommand.js +39 -0
  23. package/{dist/es → dist-es}/commands/AnalyzeExpenseCommand.js +4 -43
  24. package/dist-es/commands/DetectDocumentTextCommand.js +39 -0
  25. package/dist-es/commands/GetDocumentAnalysisCommand.js +39 -0
  26. package/dist-es/commands/GetDocumentTextDetectionCommand.js +39 -0
  27. package/dist-es/commands/StartDocumentAnalysisCommand.js +39 -0
  28. package/dist-es/commands/StartDocumentTextDetectionCommand.js +39 -0
  29. package/{dist/es → dist-es}/endpoints.js +1 -2
  30. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  31. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  32. package/{dist/es → dist-es}/models/models_0.js +0 -148
  33. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +338 -344
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  38. package/{dist/types → dist-types}/Textract.d.ts +2 -2
  39. package/{dist/types → dist-types}/TextractClient.d.ts +8 -8
  40. package/{dist/types → dist-types}/commands/AnalyzeDocumentCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/AnalyzeExpenseCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/DetectDocumentTextCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/commands/GetDocumentAnalysisCommand.d.ts +3 -3
  44. package/{dist/types → dist-types}/commands/GetDocumentTextDetectionCommand.d.ts +3 -3
  45. package/{dist/types → dist-types}/commands/StartDocumentAnalysisCommand.d.ts +3 -3
  46. package/{dist/types → dist-types}/commands/StartDocumentTextDetectionCommand.d.ts +3 -3
  47. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  48. package/{index.ts → dist-types/index.d.ts} +0 -0
  49. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  50. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  51. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/dist-types/ts3.4/Textract.d.ts +40 -0
  57. package/{dist/types → dist-types}/ts3.4/TextractClient.d.ts +32 -99
  58. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +17 -0
  65. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  66. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  67. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +649 -0
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +52 -49
  75. package/Textract.ts +0 -422
  76. package/TextractClient.ts +0 -270
  77. package/commands/AnalyzeDocumentCommand.ts +0 -124
  78. package/commands/AnalyzeExpenseCommand.ts +0 -107
  79. package/commands/DetectDocumentTextCommand.ts +0 -104
  80. package/commands/GetDocumentAnalysisCommand.ts +0 -138
  81. package/commands/GetDocumentTextDetectionCommand.ts +0 -118
  82. package/commands/StartDocumentAnalysisCommand.ts +0 -111
  83. package/commands/StartDocumentTextDetectionCommand.ts +0 -113
  84. package/dist/cjs/Textract.js.map +0 -1
  85. package/dist/cjs/TextractClient.js.map +0 -1
  86. package/dist/cjs/commands/AnalyzeDocumentCommand.js +0 -91
  87. package/dist/cjs/commands/AnalyzeDocumentCommand.js.map +0 -1
  88. package/dist/cjs/commands/AnalyzeExpenseCommand.js +0 -74
  89. package/dist/cjs/commands/AnalyzeExpenseCommand.js.map +0 -1
  90. package/dist/cjs/commands/DetectDocumentTextCommand.js +0 -71
  91. package/dist/cjs/commands/DetectDocumentTextCommand.js.map +0 -1
  92. package/dist/cjs/commands/GetDocumentAnalysisCommand.js +0 -105
  93. package/dist/cjs/commands/GetDocumentAnalysisCommand.js.map +0 -1
  94. package/dist/cjs/commands/GetDocumentTextDetectionCommand.js +0 -85
  95. package/dist/cjs/commands/GetDocumentTextDetectionCommand.js.map +0 -1
  96. package/dist/cjs/commands/StartDocumentAnalysisCommand.js +0 -78
  97. package/dist/cjs/commands/StartDocumentAnalysisCommand.js.map +0 -1
  98. package/dist/cjs/commands/StartDocumentTextDetectionCommand.js +0 -77
  99. package/dist/cjs/commands/StartDocumentTextDetectionCommand.js.map +0 -1
  100. package/dist/cjs/endpoints.js.map +0 -1
  101. package/dist/cjs/index.js.map +0 -1
  102. package/dist/cjs/models/index.js.map +0 -1
  103. package/dist/cjs/models/models_0.js.map +0 -1
  104. package/dist/cjs/package.json +0 -91
  105. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  106. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  107. package/dist/cjs/runtimeConfig.js.map +0 -1
  108. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  109. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  110. package/dist/es/Textract.js.map +0 -1
  111. package/dist/es/TextractClient.js.map +0 -1
  112. package/dist/es/commands/AnalyzeDocumentCommand.js +0 -95
  113. package/dist/es/commands/AnalyzeDocumentCommand.js.map +0 -1
  114. package/dist/es/commands/AnalyzeExpenseCommand.js.map +0 -1
  115. package/dist/es/commands/DetectDocumentTextCommand.js +0 -75
  116. package/dist/es/commands/DetectDocumentTextCommand.js.map +0 -1
  117. package/dist/es/commands/GetDocumentAnalysisCommand.js +0 -109
  118. package/dist/es/commands/GetDocumentAnalysisCommand.js.map +0 -1
  119. package/dist/es/commands/GetDocumentTextDetectionCommand.js +0 -89
  120. package/dist/es/commands/GetDocumentTextDetectionCommand.js.map +0 -1
  121. package/dist/es/commands/StartDocumentAnalysisCommand.js +0 -82
  122. package/dist/es/commands/StartDocumentAnalysisCommand.js.map +0 -1
  123. package/dist/es/commands/StartDocumentTextDetectionCommand.js +0 -81
  124. package/dist/es/commands/StartDocumentTextDetectionCommand.js.map +0 -1
  125. package/dist/es/endpoints.js.map +0 -1
  126. package/dist/es/index.js +0 -11
  127. package/dist/es/index.js.map +0 -1
  128. package/dist/es/models/index.js +0 -2
  129. package/dist/es/models/index.js.map +0 -1
  130. package/dist/es/models/models_0.js.map +0 -1
  131. package/dist/es/package.json +0 -91
  132. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  133. package/dist/es/runtimeConfig.browser.js.map +0 -1
  134. package/dist/es/runtimeConfig.js.map +0 -1
  135. package/dist/es/runtimeConfig.native.js.map +0 -1
  136. package/dist/es/runtimeConfig.shared.js.map +0 -1
  137. package/dist/types/ts3.4/Textract.d.ts +0 -212
  138. package/dist/types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +0 -65
  139. package/dist/types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +0 -48
  140. package/dist/types/ts3.4/commands/DetectDocumentTextCommand.d.ts +0 -45
  141. package/dist/types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +0 -79
  142. package/dist/types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +0 -59
  143. package/dist/types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +0 -52
  144. package/dist/types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +0 -51
  145. package/dist/types/ts3.4/models/models_0.d.ts +0 -1347
  146. package/endpoints.ts +0 -57
  147. package/jest.config.js +0 -4
  148. package/models/models_0.ts +0 -1627
  149. package/protocols/Aws_json1_1.ts +0 -2060
  150. package/runtimeConfig.browser.ts +0 -40
  151. package/runtimeConfig.native.ts +0 -16
  152. package/runtimeConfig.shared.ts +0 -16
  153. package/runtimeConfig.ts +0 -45
  154. package/tsconfig.es.json +0 -12
  155. package/tsconfig.json +0 -32
@@ -0,0 +1,649 @@
1
+ import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
+
4
+ export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
5
+ name: "AccessDeniedException";
6
+ $fault: "client";
7
+ Message?: string;
8
+ Code?: string;
9
+ }
10
+ export declare namespace AccessDeniedException {
11
+
12
+ const filterSensitiveLog: (obj: AccessDeniedException) => any;
13
+ }
14
+
15
+ export interface S3Object {
16
+
17
+ Bucket?: string;
18
+
19
+ Name?: string;
20
+
21
+ Version?: string;
22
+ }
23
+ export declare namespace S3Object {
24
+
25
+ const filterSensitiveLog: (obj: S3Object) => any;
26
+ }
27
+
28
+ export interface Document {
29
+
30
+ Bytes?: Uint8Array;
31
+
32
+ S3Object?: S3Object;
33
+ }
34
+ export declare namespace Document {
35
+
36
+ const filterSensitiveLog: (obj: Document) => any;
37
+ }
38
+ export declare enum FeatureType {
39
+ FORMS = "FORMS",
40
+ TABLES = "TABLES"
41
+ }
42
+ export declare enum ContentClassifier {
43
+ FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
44
+ FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
45
+ }
46
+
47
+ export interface HumanLoopDataAttributes {
48
+
49
+ ContentClassifiers?: (ContentClassifier | string)[];
50
+ }
51
+ export declare namespace HumanLoopDataAttributes {
52
+
53
+ const filterSensitiveLog: (obj: HumanLoopDataAttributes) => any;
54
+ }
55
+
56
+ export interface HumanLoopConfig {
57
+
58
+ HumanLoopName: string | undefined;
59
+
60
+ FlowDefinitionArn: string | undefined;
61
+
62
+ DataAttributes?: HumanLoopDataAttributes;
63
+ }
64
+ export declare namespace HumanLoopConfig {
65
+
66
+ const filterSensitiveLog: (obj: HumanLoopConfig) => any;
67
+ }
68
+ export interface AnalyzeDocumentRequest {
69
+
70
+ Document: Document | undefined;
71
+
72
+ FeatureTypes: (FeatureType | string)[] | undefined;
73
+
74
+ HumanLoopConfig?: HumanLoopConfig;
75
+ }
76
+ export declare namespace AnalyzeDocumentRequest {
77
+
78
+ const filterSensitiveLog: (obj: AnalyzeDocumentRequest) => any;
79
+ }
80
+ export declare enum BlockType {
81
+ CELL = "CELL",
82
+ KEY_VALUE_SET = "KEY_VALUE_SET",
83
+ LINE = "LINE",
84
+ PAGE = "PAGE",
85
+ SELECTION_ELEMENT = "SELECTION_ELEMENT",
86
+ TABLE = "TABLE",
87
+ WORD = "WORD"
88
+ }
89
+ export declare enum EntityType {
90
+ KEY = "KEY",
91
+ VALUE = "VALUE"
92
+ }
93
+
94
+ export interface BoundingBox {
95
+
96
+ Width?: number;
97
+
98
+ Height?: number;
99
+
100
+ Left?: number;
101
+
102
+ Top?: number;
103
+ }
104
+ export declare namespace BoundingBox {
105
+
106
+ const filterSensitiveLog: (obj: BoundingBox) => any;
107
+ }
108
+
109
+ export interface Point {
110
+
111
+ X?: number;
112
+
113
+ Y?: number;
114
+ }
115
+ export declare namespace Point {
116
+
117
+ const filterSensitiveLog: (obj: Point) => any;
118
+ }
119
+
120
+ export interface Geometry {
121
+
122
+ BoundingBox?: BoundingBox;
123
+
124
+ Polygon?: Point[];
125
+ }
126
+ export declare namespace Geometry {
127
+
128
+ const filterSensitiveLog: (obj: Geometry) => any;
129
+ }
130
+ export declare enum RelationshipType {
131
+ CHILD = "CHILD",
132
+ COMPLEX_FEATURES = "COMPLEX_FEATURES",
133
+ VALUE = "VALUE"
134
+ }
135
+
136
+ export interface Relationship {
137
+
138
+ Type?: RelationshipType | string;
139
+
140
+ Ids?: string[];
141
+ }
142
+ export declare namespace Relationship {
143
+
144
+ const filterSensitiveLog: (obj: Relationship) => any;
145
+ }
146
+ export declare enum SelectionStatus {
147
+ NOT_SELECTED = "NOT_SELECTED",
148
+ SELECTED = "SELECTED"
149
+ }
150
+ export declare enum TextType {
151
+ HANDWRITING = "HANDWRITING",
152
+ PRINTED = "PRINTED"
153
+ }
154
+
155
+ export interface Block {
156
+
157
+ BlockType?: BlockType | string;
158
+
159
+ Confidence?: number;
160
+
161
+ Text?: string;
162
+
163
+ TextType?: TextType | string;
164
+
165
+ RowIndex?: number;
166
+
167
+ ColumnIndex?: number;
168
+
169
+ RowSpan?: number;
170
+
171
+ ColumnSpan?: number;
172
+
173
+ Geometry?: Geometry;
174
+
175
+ Id?: string;
176
+
177
+ Relationships?: Relationship[];
178
+
179
+ EntityTypes?: (EntityType | string)[];
180
+
181
+ SelectionStatus?: SelectionStatus | string;
182
+
183
+ Page?: number;
184
+ }
185
+ export declare namespace Block {
186
+
187
+ const filterSensitiveLog: (obj: Block) => any;
188
+ }
189
+
190
+ export interface DocumentMetadata {
191
+
192
+ Pages?: number;
193
+ }
194
+ export declare namespace DocumentMetadata {
195
+
196
+ const filterSensitiveLog: (obj: DocumentMetadata) => any;
197
+ }
198
+
199
+ export interface HumanLoopActivationOutput {
200
+
201
+ HumanLoopArn?: string;
202
+
203
+ HumanLoopActivationReasons?: string[];
204
+
205
+ HumanLoopActivationConditionsEvaluationResults?: __LazyJsonString | string;
206
+ }
207
+ export declare namespace HumanLoopActivationOutput {
208
+
209
+ const filterSensitiveLog: (obj: HumanLoopActivationOutput) => any;
210
+ }
211
+ export interface AnalyzeDocumentResponse {
212
+
213
+ DocumentMetadata?: DocumentMetadata;
214
+
215
+ Blocks?: Block[];
216
+
217
+ HumanLoopActivationOutput?: HumanLoopActivationOutput;
218
+
219
+ AnalyzeDocumentModelVersion?: string;
220
+ }
221
+ export declare namespace AnalyzeDocumentResponse {
222
+
223
+ const filterSensitiveLog: (obj: AnalyzeDocumentResponse) => any;
224
+ }
225
+
226
+ export interface BadDocumentException extends __SmithyException, $MetadataBearer {
227
+ name: "BadDocumentException";
228
+ $fault: "client";
229
+ Message?: string;
230
+ Code?: string;
231
+ }
232
+ export declare namespace BadDocumentException {
233
+
234
+ const filterSensitiveLog: (obj: BadDocumentException) => any;
235
+ }
236
+
237
+ export interface DocumentTooLargeException extends __SmithyException, $MetadataBearer {
238
+ name: "DocumentTooLargeException";
239
+ $fault: "client";
240
+ Message?: string;
241
+ Code?: string;
242
+ }
243
+ export declare namespace DocumentTooLargeException {
244
+
245
+ const filterSensitiveLog: (obj: DocumentTooLargeException) => any;
246
+ }
247
+
248
+ export interface HumanLoopQuotaExceededException extends __SmithyException, $MetadataBearer {
249
+ name: "HumanLoopQuotaExceededException";
250
+ $fault: "client";
251
+
252
+ ResourceType?: string;
253
+
254
+ QuotaCode?: string;
255
+
256
+ ServiceCode?: string;
257
+ Message?: string;
258
+ Code?: string;
259
+ }
260
+ export declare namespace HumanLoopQuotaExceededException {
261
+
262
+ const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
263
+ }
264
+
265
+ export interface InternalServerError extends __SmithyException, $MetadataBearer {
266
+ name: "InternalServerError";
267
+ $fault: "server";
268
+ Message?: string;
269
+ Code?: string;
270
+ }
271
+ export declare namespace InternalServerError {
272
+
273
+ const filterSensitiveLog: (obj: InternalServerError) => any;
274
+ }
275
+
276
+ export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
277
+ name: "InvalidParameterException";
278
+ $fault: "client";
279
+ Message?: string;
280
+ Code?: string;
281
+ }
282
+ export declare namespace InvalidParameterException {
283
+
284
+ const filterSensitiveLog: (obj: InvalidParameterException) => any;
285
+ }
286
+
287
+ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBearer {
288
+ name: "InvalidS3ObjectException";
289
+ $fault: "client";
290
+ Message?: string;
291
+ Code?: string;
292
+ }
293
+ export declare namespace InvalidS3ObjectException {
294
+
295
+ const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
296
+ }
297
+
298
+ export interface ProvisionedThroughputExceededException extends __SmithyException, $MetadataBearer {
299
+ name: "ProvisionedThroughputExceededException";
300
+ $fault: "client";
301
+ Message?: string;
302
+ Code?: string;
303
+ }
304
+ export declare namespace ProvisionedThroughputExceededException {
305
+
306
+ const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
307
+ }
308
+
309
+ export interface ThrottlingException extends __SmithyException, $MetadataBearer {
310
+ name: "ThrottlingException";
311
+ $fault: "server";
312
+ Message?: string;
313
+ Code?: string;
314
+ }
315
+ export declare namespace ThrottlingException {
316
+
317
+ const filterSensitiveLog: (obj: ThrottlingException) => any;
318
+ }
319
+
320
+ export interface UnsupportedDocumentException extends __SmithyException, $MetadataBearer {
321
+ name: "UnsupportedDocumentException";
322
+ $fault: "client";
323
+ Message?: string;
324
+ Code?: string;
325
+ }
326
+ export declare namespace UnsupportedDocumentException {
327
+
328
+ const filterSensitiveLog: (obj: UnsupportedDocumentException) => any;
329
+ }
330
+ export interface AnalyzeExpenseRequest {
331
+
332
+ Document: Document | undefined;
333
+ }
334
+ export declare namespace AnalyzeExpenseRequest {
335
+
336
+ const filterSensitiveLog: (obj: AnalyzeExpenseRequest) => any;
337
+ }
338
+
339
+ export interface ExpenseDetection {
340
+
341
+ Text?: string;
342
+
343
+ Geometry?: Geometry;
344
+
345
+ Confidence?: number;
346
+ }
347
+ export declare namespace ExpenseDetection {
348
+
349
+ const filterSensitiveLog: (obj: ExpenseDetection) => any;
350
+ }
351
+
352
+ export interface ExpenseType {
353
+
354
+ Text?: string;
355
+
356
+ Confidence?: number;
357
+ }
358
+ export declare namespace ExpenseType {
359
+
360
+ const filterSensitiveLog: (obj: ExpenseType) => any;
361
+ }
362
+
363
+ export interface ExpenseField {
364
+
365
+ Type?: ExpenseType;
366
+
367
+ LabelDetection?: ExpenseDetection;
368
+
369
+ ValueDetection?: ExpenseDetection;
370
+
371
+ PageNumber?: number;
372
+ }
373
+ export declare namespace ExpenseField {
374
+
375
+ const filterSensitiveLog: (obj: ExpenseField) => any;
376
+ }
377
+
378
+ export interface LineItemFields {
379
+
380
+ LineItemExpenseFields?: ExpenseField[];
381
+ }
382
+ export declare namespace LineItemFields {
383
+
384
+ const filterSensitiveLog: (obj: LineItemFields) => any;
385
+ }
386
+
387
+ export interface LineItemGroup {
388
+
389
+ LineItemGroupIndex?: number;
390
+
391
+ LineItems?: LineItemFields[];
392
+ }
393
+ export declare namespace LineItemGroup {
394
+
395
+ const filterSensitiveLog: (obj: LineItemGroup) => any;
396
+ }
397
+
398
+ export interface ExpenseDocument {
399
+
400
+ ExpenseIndex?: number;
401
+
402
+ SummaryFields?: ExpenseField[];
403
+
404
+ LineItemGroups?: LineItemGroup[];
405
+ }
406
+ export declare namespace ExpenseDocument {
407
+
408
+ const filterSensitiveLog: (obj: ExpenseDocument) => any;
409
+ }
410
+ export interface AnalyzeExpenseResponse {
411
+
412
+ DocumentMetadata?: DocumentMetadata;
413
+
414
+ ExpenseDocuments?: ExpenseDocument[];
415
+ }
416
+ export declare namespace AnalyzeExpenseResponse {
417
+
418
+ const filterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
419
+ }
420
+ export interface DetectDocumentTextRequest {
421
+
422
+ Document: Document | undefined;
423
+ }
424
+ export declare namespace DetectDocumentTextRequest {
425
+
426
+ const filterSensitiveLog: (obj: DetectDocumentTextRequest) => any;
427
+ }
428
+ export interface DetectDocumentTextResponse {
429
+
430
+ DocumentMetadata?: DocumentMetadata;
431
+
432
+ Blocks?: Block[];
433
+
434
+ DetectDocumentTextModelVersion?: string;
435
+ }
436
+ export declare namespace DetectDocumentTextResponse {
437
+
438
+ const filterSensitiveLog: (obj: DetectDocumentTextResponse) => any;
439
+ }
440
+
441
+ export interface DocumentLocation {
442
+
443
+ S3Object?: S3Object;
444
+ }
445
+ export declare namespace DocumentLocation {
446
+
447
+ const filterSensitiveLog: (obj: DocumentLocation) => any;
448
+ }
449
+ export interface GetDocumentAnalysisRequest {
450
+
451
+ JobId: string | undefined;
452
+
453
+ MaxResults?: number;
454
+
455
+ NextToken?: string;
456
+ }
457
+ export declare namespace GetDocumentAnalysisRequest {
458
+
459
+ const filterSensitiveLog: (obj: GetDocumentAnalysisRequest) => any;
460
+ }
461
+ export declare enum JobStatus {
462
+ FAILED = "FAILED",
463
+ IN_PROGRESS = "IN_PROGRESS",
464
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
465
+ SUCCEEDED = "SUCCEEDED"
466
+ }
467
+
468
+ export interface Warning {
469
+
470
+ ErrorCode?: string;
471
+
472
+ Pages?: number[];
473
+ }
474
+ export declare namespace Warning {
475
+
476
+ const filterSensitiveLog: (obj: Warning) => any;
477
+ }
478
+ export interface GetDocumentAnalysisResponse {
479
+
480
+ DocumentMetadata?: DocumentMetadata;
481
+
482
+ JobStatus?: JobStatus | string;
483
+
484
+ NextToken?: string;
485
+
486
+ Blocks?: Block[];
487
+
488
+ Warnings?: Warning[];
489
+
490
+ StatusMessage?: string;
491
+
492
+ AnalyzeDocumentModelVersion?: string;
493
+ }
494
+ export declare namespace GetDocumentAnalysisResponse {
495
+
496
+ const filterSensitiveLog: (obj: GetDocumentAnalysisResponse) => any;
497
+ }
498
+
499
+ export interface InvalidJobIdException extends __SmithyException, $MetadataBearer {
500
+ name: "InvalidJobIdException";
501
+ $fault: "client";
502
+ Message?: string;
503
+ Code?: string;
504
+ }
505
+ export declare namespace InvalidJobIdException {
506
+
507
+ const filterSensitiveLog: (obj: InvalidJobIdException) => any;
508
+ }
509
+
510
+ export interface InvalidKMSKeyException extends __SmithyException, $MetadataBearer {
511
+ name: "InvalidKMSKeyException";
512
+ $fault: "client";
513
+ Message?: string;
514
+ Code?: string;
515
+ }
516
+ export declare namespace InvalidKMSKeyException {
517
+
518
+ const filterSensitiveLog: (obj: InvalidKMSKeyException) => any;
519
+ }
520
+ export interface GetDocumentTextDetectionRequest {
521
+
522
+ JobId: string | undefined;
523
+
524
+ MaxResults?: number;
525
+
526
+ NextToken?: string;
527
+ }
528
+ export declare namespace GetDocumentTextDetectionRequest {
529
+
530
+ const filterSensitiveLog: (obj: GetDocumentTextDetectionRequest) => any;
531
+ }
532
+ export interface GetDocumentTextDetectionResponse {
533
+
534
+ DocumentMetadata?: DocumentMetadata;
535
+
536
+ JobStatus?: JobStatus | string;
537
+
538
+ NextToken?: string;
539
+
540
+ Blocks?: Block[];
541
+
542
+ Warnings?: Warning[];
543
+
544
+ StatusMessage?: string;
545
+
546
+ DetectDocumentTextModelVersion?: string;
547
+ }
548
+ export declare namespace GetDocumentTextDetectionResponse {
549
+
550
+ const filterSensitiveLog: (obj: GetDocumentTextDetectionResponse) => any;
551
+ }
552
+
553
+ export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
554
+ name: "IdempotentParameterMismatchException";
555
+ $fault: "client";
556
+ Message?: string;
557
+ Code?: string;
558
+ }
559
+ export declare namespace IdempotentParameterMismatchException {
560
+
561
+ const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
562
+ }
563
+
564
+ export interface LimitExceededException extends __SmithyException, $MetadataBearer {
565
+ name: "LimitExceededException";
566
+ $fault: "client";
567
+ Message?: string;
568
+ Code?: string;
569
+ }
570
+ export declare namespace LimitExceededException {
571
+
572
+ const filterSensitiveLog: (obj: LimitExceededException) => any;
573
+ }
574
+
575
+ export interface NotificationChannel {
576
+
577
+ SNSTopicArn: string | undefined;
578
+
579
+ RoleArn: string | undefined;
580
+ }
581
+ export declare namespace NotificationChannel {
582
+
583
+ const filterSensitiveLog: (obj: NotificationChannel) => any;
584
+ }
585
+
586
+ export interface OutputConfig {
587
+
588
+ S3Bucket: string | undefined;
589
+
590
+ S3Prefix?: string;
591
+ }
592
+ export declare namespace OutputConfig {
593
+
594
+ const filterSensitiveLog: (obj: OutputConfig) => any;
595
+ }
596
+ export interface StartDocumentAnalysisRequest {
597
+
598
+ DocumentLocation: DocumentLocation | undefined;
599
+
600
+ FeatureTypes: (FeatureType | string)[] | undefined;
601
+
602
+ ClientRequestToken?: string;
603
+
604
+ JobTag?: string;
605
+
606
+ NotificationChannel?: NotificationChannel;
607
+
608
+ OutputConfig?: OutputConfig;
609
+
610
+ KMSKeyId?: string;
611
+ }
612
+ export declare namespace StartDocumentAnalysisRequest {
613
+
614
+ const filterSensitiveLog: (obj: StartDocumentAnalysisRequest) => any;
615
+ }
616
+ export interface StartDocumentAnalysisResponse {
617
+
618
+ JobId?: string;
619
+ }
620
+ export declare namespace StartDocumentAnalysisResponse {
621
+
622
+ const filterSensitiveLog: (obj: StartDocumentAnalysisResponse) => any;
623
+ }
624
+ export interface StartDocumentTextDetectionRequest {
625
+
626
+ DocumentLocation: DocumentLocation | undefined;
627
+
628
+ ClientRequestToken?: string;
629
+
630
+ JobTag?: string;
631
+
632
+ NotificationChannel?: NotificationChannel;
633
+
634
+ OutputConfig?: OutputConfig;
635
+
636
+ KMSKeyId?: string;
637
+ }
638
+ export declare namespace StartDocumentTextDetectionRequest {
639
+
640
+ const filterSensitiveLog: (obj: StartDocumentTextDetectionRequest) => any;
641
+ }
642
+ export interface StartDocumentTextDetectionResponse {
643
+
644
+ JobId?: string;
645
+ }
646
+ export declare namespace StartDocumentTextDetectionResponse {
647
+
648
+ const filterSensitiveLog: (obj: StartDocumentTextDetectionResponse) => any;
649
+ }
@@ -1,3 +1,5 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "../commands/AnalyzeDocumentCommand";
2
4
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../commands/AnalyzeExpenseCommand";
3
5
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
@@ -5,8 +7,6 @@ import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } fro
5
7
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
6
8
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "../commands/StartDocumentAnalysisCommand";
7
9
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "../commands/StartDocumentTextDetectionCommand";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
10
10
  export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
11
  export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
12
  export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { TextractClientConfig } from "./TextractClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { TextractClientConfig } from "./TextractClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { TextractClientConfig } from "./TextractClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { TextractClientConfig } from "./TextractClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: TextractClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;