@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
@@ -4,27 +4,18 @@ exports.IdempotentParameterMismatchException = exports.GetDocumentTextDetectionR
4
4
  exports.StartDocumentTextDetectionResponse = exports.StartDocumentTextDetectionRequest = exports.StartDocumentAnalysisResponse = exports.StartDocumentAnalysisRequest = exports.OutputConfig = exports.NotificationChannel = exports.LimitExceededException = void 0;
5
5
  var AccessDeniedException;
6
6
  (function (AccessDeniedException) {
7
- /**
8
- * @internal
9
- */
10
7
  AccessDeniedException.filterSensitiveLog = (obj) => ({
11
8
  ...obj,
12
9
  });
13
10
  })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
14
11
  var S3Object;
15
12
  (function (S3Object) {
16
- /**
17
- * @internal
18
- */
19
13
  S3Object.filterSensitiveLog = (obj) => ({
20
14
  ...obj,
21
15
  });
22
16
  })(S3Object = exports.S3Object || (exports.S3Object = {}));
23
17
  var Document;
24
18
  (function (Document) {
25
- /**
26
- * @internal
27
- */
28
19
  Document.filterSensitiveLog = (obj) => ({
29
20
  ...obj,
30
21
  });
@@ -41,27 +32,18 @@ var ContentClassifier;
41
32
  })(ContentClassifier = exports.ContentClassifier || (exports.ContentClassifier = {}));
42
33
  var HumanLoopDataAttributes;
43
34
  (function (HumanLoopDataAttributes) {
44
- /**
45
- * @internal
46
- */
47
35
  HumanLoopDataAttributes.filterSensitiveLog = (obj) => ({
48
36
  ...obj,
49
37
  });
50
38
  })(HumanLoopDataAttributes = exports.HumanLoopDataAttributes || (exports.HumanLoopDataAttributes = {}));
51
39
  var HumanLoopConfig;
52
40
  (function (HumanLoopConfig) {
53
- /**
54
- * @internal
55
- */
56
41
  HumanLoopConfig.filterSensitiveLog = (obj) => ({
57
42
  ...obj,
58
43
  });
59
44
  })(HumanLoopConfig = exports.HumanLoopConfig || (exports.HumanLoopConfig = {}));
60
45
  var AnalyzeDocumentRequest;
61
46
  (function (AnalyzeDocumentRequest) {
62
- /**
63
- * @internal
64
- */
65
47
  AnalyzeDocumentRequest.filterSensitiveLog = (obj) => ({
66
48
  ...obj,
67
49
  });
@@ -83,27 +65,18 @@ var EntityType;
83
65
  })(EntityType = exports.EntityType || (exports.EntityType = {}));
84
66
  var BoundingBox;
85
67
  (function (BoundingBox) {
86
- /**
87
- * @internal
88
- */
89
68
  BoundingBox.filterSensitiveLog = (obj) => ({
90
69
  ...obj,
91
70
  });
92
71
  })(BoundingBox = exports.BoundingBox || (exports.BoundingBox = {}));
93
72
  var Point;
94
73
  (function (Point) {
95
- /**
96
- * @internal
97
- */
98
74
  Point.filterSensitiveLog = (obj) => ({
99
75
  ...obj,
100
76
  });
101
77
  })(Point = exports.Point || (exports.Point = {}));
102
78
  var Geometry;
103
79
  (function (Geometry) {
104
- /**
105
- * @internal
106
- */
107
80
  Geometry.filterSensitiveLog = (obj) => ({
108
81
  ...obj,
109
82
  });
@@ -116,9 +89,6 @@ var RelationshipType;
116
89
  })(RelationshipType = exports.RelationshipType || (exports.RelationshipType = {}));
117
90
  var Relationship;
118
91
  (function (Relationship) {
119
- /**
120
- * @internal
121
- */
122
92
  Relationship.filterSensitiveLog = (obj) => ({
123
93
  ...obj,
124
94
  });
@@ -135,225 +105,150 @@ var TextType;
135
105
  })(TextType = exports.TextType || (exports.TextType = {}));
136
106
  var Block;
137
107
  (function (Block) {
138
- /**
139
- * @internal
140
- */
141
108
  Block.filterSensitiveLog = (obj) => ({
142
109
  ...obj,
143
110
  });
144
111
  })(Block = exports.Block || (exports.Block = {}));
145
112
  var DocumentMetadata;
146
113
  (function (DocumentMetadata) {
147
- /**
148
- * @internal
149
- */
150
114
  DocumentMetadata.filterSensitiveLog = (obj) => ({
151
115
  ...obj,
152
116
  });
153
117
  })(DocumentMetadata = exports.DocumentMetadata || (exports.DocumentMetadata = {}));
154
118
  var HumanLoopActivationOutput;
155
119
  (function (HumanLoopActivationOutput) {
156
- /**
157
- * @internal
158
- */
159
120
  HumanLoopActivationOutput.filterSensitiveLog = (obj) => ({
160
121
  ...obj,
161
122
  });
162
123
  })(HumanLoopActivationOutput = exports.HumanLoopActivationOutput || (exports.HumanLoopActivationOutput = {}));
163
124
  var AnalyzeDocumentResponse;
164
125
  (function (AnalyzeDocumentResponse) {
165
- /**
166
- * @internal
167
- */
168
126
  AnalyzeDocumentResponse.filterSensitiveLog = (obj) => ({
169
127
  ...obj,
170
128
  });
171
129
  })(AnalyzeDocumentResponse = exports.AnalyzeDocumentResponse || (exports.AnalyzeDocumentResponse = {}));
172
130
  var BadDocumentException;
173
131
  (function (BadDocumentException) {
174
- /**
175
- * @internal
176
- */
177
132
  BadDocumentException.filterSensitiveLog = (obj) => ({
178
133
  ...obj,
179
134
  });
180
135
  })(BadDocumentException = exports.BadDocumentException || (exports.BadDocumentException = {}));
181
136
  var DocumentTooLargeException;
182
137
  (function (DocumentTooLargeException) {
183
- /**
184
- * @internal
185
- */
186
138
  DocumentTooLargeException.filterSensitiveLog = (obj) => ({
187
139
  ...obj,
188
140
  });
189
141
  })(DocumentTooLargeException = exports.DocumentTooLargeException || (exports.DocumentTooLargeException = {}));
190
142
  var HumanLoopQuotaExceededException;
191
143
  (function (HumanLoopQuotaExceededException) {
192
- /**
193
- * @internal
194
- */
195
144
  HumanLoopQuotaExceededException.filterSensitiveLog = (obj) => ({
196
145
  ...obj,
197
146
  });
198
147
  })(HumanLoopQuotaExceededException = exports.HumanLoopQuotaExceededException || (exports.HumanLoopQuotaExceededException = {}));
199
148
  var InternalServerError;
200
149
  (function (InternalServerError) {
201
- /**
202
- * @internal
203
- */
204
150
  InternalServerError.filterSensitiveLog = (obj) => ({
205
151
  ...obj,
206
152
  });
207
153
  })(InternalServerError = exports.InternalServerError || (exports.InternalServerError = {}));
208
154
  var InvalidParameterException;
209
155
  (function (InvalidParameterException) {
210
- /**
211
- * @internal
212
- */
213
156
  InvalidParameterException.filterSensitiveLog = (obj) => ({
214
157
  ...obj,
215
158
  });
216
159
  })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
217
160
  var InvalidS3ObjectException;
218
161
  (function (InvalidS3ObjectException) {
219
- /**
220
- * @internal
221
- */
222
162
  InvalidS3ObjectException.filterSensitiveLog = (obj) => ({
223
163
  ...obj,
224
164
  });
225
165
  })(InvalidS3ObjectException = exports.InvalidS3ObjectException || (exports.InvalidS3ObjectException = {}));
226
166
  var ProvisionedThroughputExceededException;
227
167
  (function (ProvisionedThroughputExceededException) {
228
- /**
229
- * @internal
230
- */
231
168
  ProvisionedThroughputExceededException.filterSensitiveLog = (obj) => ({
232
169
  ...obj,
233
170
  });
234
171
  })(ProvisionedThroughputExceededException = exports.ProvisionedThroughputExceededException || (exports.ProvisionedThroughputExceededException = {}));
235
172
  var ThrottlingException;
236
173
  (function (ThrottlingException) {
237
- /**
238
- * @internal
239
- */
240
174
  ThrottlingException.filterSensitiveLog = (obj) => ({
241
175
  ...obj,
242
176
  });
243
177
  })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
244
178
  var UnsupportedDocumentException;
245
179
  (function (UnsupportedDocumentException) {
246
- /**
247
- * @internal
248
- */
249
180
  UnsupportedDocumentException.filterSensitiveLog = (obj) => ({
250
181
  ...obj,
251
182
  });
252
183
  })(UnsupportedDocumentException = exports.UnsupportedDocumentException || (exports.UnsupportedDocumentException = {}));
253
184
  var AnalyzeExpenseRequest;
254
185
  (function (AnalyzeExpenseRequest) {
255
- /**
256
- * @internal
257
- */
258
186
  AnalyzeExpenseRequest.filterSensitiveLog = (obj) => ({
259
187
  ...obj,
260
188
  });
261
189
  })(AnalyzeExpenseRequest = exports.AnalyzeExpenseRequest || (exports.AnalyzeExpenseRequest = {}));
262
190
  var ExpenseDetection;
263
191
  (function (ExpenseDetection) {
264
- /**
265
- * @internal
266
- */
267
192
  ExpenseDetection.filterSensitiveLog = (obj) => ({
268
193
  ...obj,
269
194
  });
270
195
  })(ExpenseDetection = exports.ExpenseDetection || (exports.ExpenseDetection = {}));
271
196
  var ExpenseType;
272
197
  (function (ExpenseType) {
273
- /**
274
- * @internal
275
- */
276
198
  ExpenseType.filterSensitiveLog = (obj) => ({
277
199
  ...obj,
278
200
  });
279
201
  })(ExpenseType = exports.ExpenseType || (exports.ExpenseType = {}));
280
202
  var ExpenseField;
281
203
  (function (ExpenseField) {
282
- /**
283
- * @internal
284
- */
285
204
  ExpenseField.filterSensitiveLog = (obj) => ({
286
205
  ...obj,
287
206
  });
288
207
  })(ExpenseField = exports.ExpenseField || (exports.ExpenseField = {}));
289
208
  var LineItemFields;
290
209
  (function (LineItemFields) {
291
- /**
292
- * @internal
293
- */
294
210
  LineItemFields.filterSensitiveLog = (obj) => ({
295
211
  ...obj,
296
212
  });
297
213
  })(LineItemFields = exports.LineItemFields || (exports.LineItemFields = {}));
298
214
  var LineItemGroup;
299
215
  (function (LineItemGroup) {
300
- /**
301
- * @internal
302
- */
303
216
  LineItemGroup.filterSensitiveLog = (obj) => ({
304
217
  ...obj,
305
218
  });
306
219
  })(LineItemGroup = exports.LineItemGroup || (exports.LineItemGroup = {}));
307
220
  var ExpenseDocument;
308
221
  (function (ExpenseDocument) {
309
- /**
310
- * @internal
311
- */
312
222
  ExpenseDocument.filterSensitiveLog = (obj) => ({
313
223
  ...obj,
314
224
  });
315
225
  })(ExpenseDocument = exports.ExpenseDocument || (exports.ExpenseDocument = {}));
316
226
  var AnalyzeExpenseResponse;
317
227
  (function (AnalyzeExpenseResponse) {
318
- /**
319
- * @internal
320
- */
321
228
  AnalyzeExpenseResponse.filterSensitiveLog = (obj) => ({
322
229
  ...obj,
323
230
  });
324
231
  })(AnalyzeExpenseResponse = exports.AnalyzeExpenseResponse || (exports.AnalyzeExpenseResponse = {}));
325
232
  var DetectDocumentTextRequest;
326
233
  (function (DetectDocumentTextRequest) {
327
- /**
328
- * @internal
329
- */
330
234
  DetectDocumentTextRequest.filterSensitiveLog = (obj) => ({
331
235
  ...obj,
332
236
  });
333
237
  })(DetectDocumentTextRequest = exports.DetectDocumentTextRequest || (exports.DetectDocumentTextRequest = {}));
334
238
  var DetectDocumentTextResponse;
335
239
  (function (DetectDocumentTextResponse) {
336
- /**
337
- * @internal
338
- */
339
240
  DetectDocumentTextResponse.filterSensitiveLog = (obj) => ({
340
241
  ...obj,
341
242
  });
342
243
  })(DetectDocumentTextResponse = exports.DetectDocumentTextResponse || (exports.DetectDocumentTextResponse = {}));
343
244
  var DocumentLocation;
344
245
  (function (DocumentLocation) {
345
- /**
346
- * @internal
347
- */
348
246
  DocumentLocation.filterSensitiveLog = (obj) => ({
349
247
  ...obj,
350
248
  });
351
249
  })(DocumentLocation = exports.DocumentLocation || (exports.DocumentLocation = {}));
352
250
  var GetDocumentAnalysisRequest;
353
251
  (function (GetDocumentAnalysisRequest) {
354
- /**
355
- * @internal
356
- */
357
252
  GetDocumentAnalysisRequest.filterSensitiveLog = (obj) => ({
358
253
  ...obj,
359
254
  });
@@ -367,128 +262,85 @@ var JobStatus;
367
262
  })(JobStatus = exports.JobStatus || (exports.JobStatus = {}));
368
263
  var Warning;
369
264
  (function (Warning) {
370
- /**
371
- * @internal
372
- */
373
265
  Warning.filterSensitiveLog = (obj) => ({
374
266
  ...obj,
375
267
  });
376
268
  })(Warning = exports.Warning || (exports.Warning = {}));
377
269
  var GetDocumentAnalysisResponse;
378
270
  (function (GetDocumentAnalysisResponse) {
379
- /**
380
- * @internal
381
- */
382
271
  GetDocumentAnalysisResponse.filterSensitiveLog = (obj) => ({
383
272
  ...obj,
384
273
  });
385
274
  })(GetDocumentAnalysisResponse = exports.GetDocumentAnalysisResponse || (exports.GetDocumentAnalysisResponse = {}));
386
275
  var InvalidJobIdException;
387
276
  (function (InvalidJobIdException) {
388
- /**
389
- * @internal
390
- */
391
277
  InvalidJobIdException.filterSensitiveLog = (obj) => ({
392
278
  ...obj,
393
279
  });
394
280
  })(InvalidJobIdException = exports.InvalidJobIdException || (exports.InvalidJobIdException = {}));
395
281
  var InvalidKMSKeyException;
396
282
  (function (InvalidKMSKeyException) {
397
- /**
398
- * @internal
399
- */
400
283
  InvalidKMSKeyException.filterSensitiveLog = (obj) => ({
401
284
  ...obj,
402
285
  });
403
286
  })(InvalidKMSKeyException = exports.InvalidKMSKeyException || (exports.InvalidKMSKeyException = {}));
404
287
  var GetDocumentTextDetectionRequest;
405
288
  (function (GetDocumentTextDetectionRequest) {
406
- /**
407
- * @internal
408
- */
409
289
  GetDocumentTextDetectionRequest.filterSensitiveLog = (obj) => ({
410
290
  ...obj,
411
291
  });
412
292
  })(GetDocumentTextDetectionRequest = exports.GetDocumentTextDetectionRequest || (exports.GetDocumentTextDetectionRequest = {}));
413
293
  var GetDocumentTextDetectionResponse;
414
294
  (function (GetDocumentTextDetectionResponse) {
415
- /**
416
- * @internal
417
- */
418
295
  GetDocumentTextDetectionResponse.filterSensitiveLog = (obj) => ({
419
296
  ...obj,
420
297
  });
421
298
  })(GetDocumentTextDetectionResponse = exports.GetDocumentTextDetectionResponse || (exports.GetDocumentTextDetectionResponse = {}));
422
299
  var IdempotentParameterMismatchException;
423
300
  (function (IdempotentParameterMismatchException) {
424
- /**
425
- * @internal
426
- */
427
301
  IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
428
302
  ...obj,
429
303
  });
430
304
  })(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
431
305
  var LimitExceededException;
432
306
  (function (LimitExceededException) {
433
- /**
434
- * @internal
435
- */
436
307
  LimitExceededException.filterSensitiveLog = (obj) => ({
437
308
  ...obj,
438
309
  });
439
310
  })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
440
311
  var NotificationChannel;
441
312
  (function (NotificationChannel) {
442
- /**
443
- * @internal
444
- */
445
313
  NotificationChannel.filterSensitiveLog = (obj) => ({
446
314
  ...obj,
447
315
  });
448
316
  })(NotificationChannel = exports.NotificationChannel || (exports.NotificationChannel = {}));
449
317
  var OutputConfig;
450
318
  (function (OutputConfig) {
451
- /**
452
- * @internal
453
- */
454
319
  OutputConfig.filterSensitiveLog = (obj) => ({
455
320
  ...obj,
456
321
  });
457
322
  })(OutputConfig = exports.OutputConfig || (exports.OutputConfig = {}));
458
323
  var StartDocumentAnalysisRequest;
459
324
  (function (StartDocumentAnalysisRequest) {
460
- /**
461
- * @internal
462
- */
463
325
  StartDocumentAnalysisRequest.filterSensitiveLog = (obj) => ({
464
326
  ...obj,
465
327
  });
466
328
  })(StartDocumentAnalysisRequest = exports.StartDocumentAnalysisRequest || (exports.StartDocumentAnalysisRequest = {}));
467
329
  var StartDocumentAnalysisResponse;
468
330
  (function (StartDocumentAnalysisResponse) {
469
- /**
470
- * @internal
471
- */
472
331
  StartDocumentAnalysisResponse.filterSensitiveLog = (obj) => ({
473
332
  ...obj,
474
333
  });
475
334
  })(StartDocumentAnalysisResponse = exports.StartDocumentAnalysisResponse || (exports.StartDocumentAnalysisResponse = {}));
476
335
  var StartDocumentTextDetectionRequest;
477
336
  (function (StartDocumentTextDetectionRequest) {
478
- /**
479
- * @internal
480
- */
481
337
  StartDocumentTextDetectionRequest.filterSensitiveLog = (obj) => ({
482
338
  ...obj,
483
339
  });
484
340
  })(StartDocumentTextDetectionRequest = exports.StartDocumentTextDetectionRequest || (exports.StartDocumentTextDetectionRequest = {}));
485
341
  var StartDocumentTextDetectionResponse;
486
342
  (function (StartDocumentTextDetectionResponse) {
487
- /**
488
- * @internal
489
- */
490
343
  StartDocumentTextDetectionResponse.filterSensitiveLog = (obj) => ({
491
344
  ...obj,
492
345
  });
493
346
  })(StartDocumentTextDetectionResponse = exports.StartDocumentTextDetectionResponse || (exports.StartDocumentTextDetectionResponse = {}));
494
- //# sourceMappingURL=models_0.js.map
@@ -1620,14 +1620,12 @@ const deserializeMetadata = (output) => {
1620
1620
  cfId: output.headers["x-amz-cf-id"],
1621
1621
  });
1622
1622
  };
1623
- // Collect low-level response body stream to Uint8Array.
1624
1623
  const collectBody = (streamBody = new Uint8Array(), context) => {
1625
1624
  if (streamBody instanceof Uint8Array) {
1626
1625
  return Promise.resolve(streamBody);
1627
1626
  }
1628
1627
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1629
1628
  };
1630
- // Encode Uint8Array data into string with utf-8.
1631
1629
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1632
1630
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1633
1631
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1653,9 +1651,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1653
1651
  }
1654
1652
  return {};
1655
1653
  });
1656
- /**
1657
- * Load an error code for the aws.rest-json-1.1 protocol.
1658
- */
1659
1654
  const loadRestJsonErrorCode = (output, data) => {
1660
1655
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1661
1656
  const sanitizeErrorCode = (rawValue) => {
@@ -1680,4 +1675,3 @@ const loadRestJsonErrorCode = (output, data) => {
1680
1675
  }
1681
1676
  return "";
1682
1677
  };
1683
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -12,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
- /**
16
- * @internal
17
- */
18
15
  const getRuntimeConfig = (config) => {
19
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -38,4 +35,3 @@ const getRuntimeConfig = (config) => {
38
35
  };
39
36
  };
40
37
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_sts_1 = require("@aws-sdk/client-sts");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -16,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
- /**
20
- * @internal
21
- */
22
19
  const getRuntimeConfig = (config) => {
23
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
24
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -43,4 +40,3 @@ const getRuntimeConfig = (config) => {
43
40
  };
44
41
  };
45
42
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
6
- /**
7
- * @internal
8
- */
5
+ const endpoints_1 = require("./endpoints");
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { TextractClient } from "./TextractClient";
3
2
  import { AnalyzeDocumentCommand, } from "./commands/AnalyzeDocumentCommand";
4
3
  import { AnalyzeExpenseCommand, } from "./commands/AnalyzeExpenseCommand";
5
4
  import { DetectDocumentTextCommand, } from "./commands/DetectDocumentTextCommand";
@@ -7,12 +6,8 @@ import { GetDocumentAnalysisCommand, } from "./commands/GetDocumentAnalysisComma
7
6
  import { GetDocumentTextDetectionCommand, } from "./commands/GetDocumentTextDetectionCommand";
8
7
  import { StartDocumentAnalysisCommand, } from "./commands/StartDocumentAnalysisCommand";
9
8
  import { StartDocumentTextDetectionCommand, } from "./commands/StartDocumentTextDetectionCommand";
10
- /**
11
- * <p>Amazon Textract detects and analyzes text in documents and converts it
12
- * into machine-readable text. This is the API reference documentation for
13
- * Amazon Textract.</p>
14
- */
15
- var Textract = /** @class */ (function (_super) {
9
+ import { TextractClient } from "./TextractClient";
10
+ var Textract = (function (_super) {
16
11
  __extends(Textract, _super);
17
12
  function Textract() {
18
13
  return _super !== null && _super.apply(this, arguments) || this;
@@ -118,4 +113,3 @@ var Textract = /** @class */ (function (_super) {
118
113
  return Textract;
119
114
  }(TextractClient));
120
115
  export { Textract };
121
- //# sourceMappingURL=Textract.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,12 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <p>Amazon Textract detects and analyzes text in documents and converts it
13
- * into machine-readable text. This is the API reference documentation for
14
- * Amazon Textract.</p>
15
- */
16
- var TextractClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var TextractClient = (function (_super) {
17
12
  __extends(TextractClient, _super);
18
13
  function TextractClient(configuration) {
19
14
  var _this = this;
@@ -34,15 +29,9 @@ var TextractClient = /** @class */ (function (_super) {
34
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
35
30
  return _this;
36
31
  }
37
- /**
38
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
39
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
40
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
41
- */
42
32
  TextractClient.prototype.destroy = function () {
43
33
  _super.prototype.destroy.call(this);
44
34
  };
45
35
  return TextractClient;
46
36
  }(__Client));
47
37
  export { TextractClient };
48
- //# sourceMappingURL=TextractClient.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AnalyzeDocumentRequest, AnalyzeDocumentResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1AnalyzeDocumentCommand, serializeAws_json1_1AnalyzeDocumentCommand, } from "../protocols/Aws_json1_1";
6
+ var AnalyzeDocumentCommand = (function (_super) {
7
+ __extends(AnalyzeDocumentCommand, _super);
8
+ function AnalyzeDocumentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ AnalyzeDocumentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "AnalyzeDocumentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: AnalyzeDocumentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: AnalyzeDocumentResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AnalyzeDocumentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1AnalyzeDocumentCommand(input, context);
33
+ };
34
+ AnalyzeDocumentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1AnalyzeDocumentCommand(output, context);
36
+ };
37
+ return AnalyzeDocumentCommand;
38
+ }($Command));
39
+ export { AnalyzeDocumentCommand };