@aws-sdk/client-textract 3.489.0 → 3.495.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/dist-cjs/Textract.js +1 -61
  2. package/dist-cjs/TextractClient.js +1 -43
  3. package/dist-cjs/commands/AnalyzeDocumentCommand.js +1 -28
  4. package/dist-cjs/commands/AnalyzeExpenseCommand.js +1 -28
  5. package/dist-cjs/commands/AnalyzeIDCommand.js +1 -28
  6. package/dist-cjs/commands/CreateAdapterCommand.js +1 -28
  7. package/dist-cjs/commands/CreateAdapterVersionCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteAdapterCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteAdapterVersionCommand.js +1 -28
  10. package/dist-cjs/commands/DetectDocumentTextCommand.js +1 -28
  11. package/dist-cjs/commands/GetAdapterCommand.js +1 -28
  12. package/dist-cjs/commands/GetAdapterVersionCommand.js +1 -28
  13. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +1 -28
  14. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +1 -28
  15. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +1 -28
  16. package/dist-cjs/commands/GetLendingAnalysisCommand.js +1 -28
  17. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +1 -28
  18. package/dist-cjs/commands/ListAdapterVersionsCommand.js +1 -28
  19. package/dist-cjs/commands/ListAdaptersCommand.js +1 -28
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  21. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +1 -28
  22. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +1 -28
  23. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +1 -28
  24. package/dist-cjs/commands/StartLendingAnalysisCommand.js +1 -28
  25. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  26. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateAdapterCommand.js +1 -28
  28. package/dist-cjs/commands/index.js +1 -28
  29. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  30. package/dist-cjs/extensionConfiguration.js +1 -2
  31. package/dist-cjs/index.js +3428 -11
  32. package/dist-cjs/models/TextractServiceException.js +1 -12
  33. package/dist-cjs/models/index.js +1 -4
  34. package/dist-cjs/models/models_0.js +1 -364
  35. package/dist-cjs/pagination/Interfaces.js +1 -2
  36. package/dist-cjs/pagination/ListAdapterVersionsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListAdaptersPaginator.js +1 -7
  38. package/dist-cjs/pagination/index.js +1 -6
  39. package/dist-cjs/protocols/Aws_json1_1.js +1 -2359
  40. package/dist-cjs/runtimeExtensions.js +1 -22
  41. package/package.json +40 -40
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextractServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class TextractServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, TextractServiceException.prototype);
10
- }
11
- }
12
- exports.TextractServiceException = TextractServiceException;
1
+ module.exports = require("../index.js");
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -1,364 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidJobIdException = exports.JobStatus = exports.ResourceNotFoundException = exports.InvalidKMSKeyException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.LimitExceededException = exports.IdempotentParameterMismatchException = exports.ConflictException = exports.AutoUpdate = exports.ValueType = exports.UnsupportedDocumentException = exports.ThrottlingException = exports.ProvisionedThroughputExceededException = exports.InvalidS3ObjectException = exports.InvalidParameterException = exports.InternalServerError = exports.HumanLoopQuotaExceededException = exports.DocumentTooLargeException = exports.BadDocumentException = exports.TextType = exports.SelectionStatus = exports.RelationshipType = exports.EntityType = exports.BlockType = exports.ContentClassifier = exports.AdapterVersionStatus = exports.FeatureType = exports.AccessDeniedException = void 0;
4
- const TextractServiceException_1 = require("./TextractServiceException");
5
- class AccessDeniedException extends TextractServiceException_1.TextractServiceException {
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- this.name = "AccessDeniedException";
13
- this.$fault = "client";
14
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
- this.Message = opts.Message;
16
- this.Code = opts.Code;
17
- }
18
- }
19
- exports.AccessDeniedException = AccessDeniedException;
20
- exports.FeatureType = {
21
- FORMS: "FORMS",
22
- LAYOUT: "LAYOUT",
23
- QUERIES: "QUERIES",
24
- SIGNATURES: "SIGNATURES",
25
- TABLES: "TABLES",
26
- };
27
- exports.AdapterVersionStatus = {
28
- ACTIVE: "ACTIVE",
29
- AT_RISK: "AT_RISK",
30
- CREATION_ERROR: "CREATION_ERROR",
31
- CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS",
32
- DEPRECATED: "DEPRECATED",
33
- };
34
- exports.ContentClassifier = {
35
- FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
36
- FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
37
- };
38
- exports.BlockType = {
39
- CELL: "CELL",
40
- KEY_VALUE_SET: "KEY_VALUE_SET",
41
- LAYOUT_FIGURE: "LAYOUT_FIGURE",
42
- LAYOUT_FOOTER: "LAYOUT_FOOTER",
43
- LAYOUT_HEADER: "LAYOUT_HEADER",
44
- LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
45
- LAYOUT_LIST: "LAYOUT_LIST",
46
- LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
47
- LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
48
- LAYOUT_TABLE: "LAYOUT_TABLE",
49
- LAYOUT_TEXT: "LAYOUT_TEXT",
50
- LAYOUT_TITLE: "LAYOUT_TITLE",
51
- LINE: "LINE",
52
- MERGED_CELL: "MERGED_CELL",
53
- PAGE: "PAGE",
54
- QUERY: "QUERY",
55
- QUERY_RESULT: "QUERY_RESULT",
56
- SELECTION_ELEMENT: "SELECTION_ELEMENT",
57
- SIGNATURE: "SIGNATURE",
58
- TABLE: "TABLE",
59
- TABLE_FOOTER: "TABLE_FOOTER",
60
- TABLE_TITLE: "TABLE_TITLE",
61
- TITLE: "TITLE",
62
- WORD: "WORD",
63
- };
64
- exports.EntityType = {
65
- COLUMN_HEADER: "COLUMN_HEADER",
66
- KEY: "KEY",
67
- SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE",
68
- STRUCTURED_TABLE: "STRUCTURED_TABLE",
69
- TABLE_FOOTER: "TABLE_FOOTER",
70
- TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE",
71
- TABLE_SUMMARY: "TABLE_SUMMARY",
72
- TABLE_TITLE: "TABLE_TITLE",
73
- VALUE: "VALUE",
74
- };
75
- exports.RelationshipType = {
76
- ANSWER: "ANSWER",
77
- CHILD: "CHILD",
78
- COMPLEX_FEATURES: "COMPLEX_FEATURES",
79
- MERGED_CELL: "MERGED_CELL",
80
- TABLE: "TABLE",
81
- TABLE_FOOTER: "TABLE_FOOTER",
82
- TABLE_TITLE: "TABLE_TITLE",
83
- TITLE: "TITLE",
84
- VALUE: "VALUE",
85
- };
86
- exports.SelectionStatus = {
87
- NOT_SELECTED: "NOT_SELECTED",
88
- SELECTED: "SELECTED",
89
- };
90
- exports.TextType = {
91
- HANDWRITING: "HANDWRITING",
92
- PRINTED: "PRINTED",
93
- };
94
- class BadDocumentException extends TextractServiceException_1.TextractServiceException {
95
- constructor(opts) {
96
- super({
97
- name: "BadDocumentException",
98
- $fault: "client",
99
- ...opts,
100
- });
101
- this.name = "BadDocumentException";
102
- this.$fault = "client";
103
- Object.setPrototypeOf(this, BadDocumentException.prototype);
104
- this.Message = opts.Message;
105
- this.Code = opts.Code;
106
- }
107
- }
108
- exports.BadDocumentException = BadDocumentException;
109
- class DocumentTooLargeException extends TextractServiceException_1.TextractServiceException {
110
- constructor(opts) {
111
- super({
112
- name: "DocumentTooLargeException",
113
- $fault: "client",
114
- ...opts,
115
- });
116
- this.name = "DocumentTooLargeException";
117
- this.$fault = "client";
118
- Object.setPrototypeOf(this, DocumentTooLargeException.prototype);
119
- this.Message = opts.Message;
120
- this.Code = opts.Code;
121
- }
122
- }
123
- exports.DocumentTooLargeException = DocumentTooLargeException;
124
- class HumanLoopQuotaExceededException extends TextractServiceException_1.TextractServiceException {
125
- constructor(opts) {
126
- super({
127
- name: "HumanLoopQuotaExceededException",
128
- $fault: "client",
129
- ...opts,
130
- });
131
- this.name = "HumanLoopQuotaExceededException";
132
- this.$fault = "client";
133
- Object.setPrototypeOf(this, HumanLoopQuotaExceededException.prototype);
134
- this.ResourceType = opts.ResourceType;
135
- this.QuotaCode = opts.QuotaCode;
136
- this.ServiceCode = opts.ServiceCode;
137
- this.Message = opts.Message;
138
- this.Code = opts.Code;
139
- }
140
- }
141
- exports.HumanLoopQuotaExceededException = HumanLoopQuotaExceededException;
142
- class InternalServerError extends TextractServiceException_1.TextractServiceException {
143
- constructor(opts) {
144
- super({
145
- name: "InternalServerError",
146
- $fault: "server",
147
- ...opts,
148
- });
149
- this.name = "InternalServerError";
150
- this.$fault = "server";
151
- Object.setPrototypeOf(this, InternalServerError.prototype);
152
- this.Message = opts.Message;
153
- this.Code = opts.Code;
154
- }
155
- }
156
- exports.InternalServerError = InternalServerError;
157
- class InvalidParameterException extends TextractServiceException_1.TextractServiceException {
158
- constructor(opts) {
159
- super({
160
- name: "InvalidParameterException",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- this.name = "InvalidParameterException";
165
- this.$fault = "client";
166
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
167
- this.Message = opts.Message;
168
- this.Code = opts.Code;
169
- }
170
- }
171
- exports.InvalidParameterException = InvalidParameterException;
172
- class InvalidS3ObjectException extends TextractServiceException_1.TextractServiceException {
173
- constructor(opts) {
174
- super({
175
- name: "InvalidS3ObjectException",
176
- $fault: "client",
177
- ...opts,
178
- });
179
- this.name = "InvalidS3ObjectException";
180
- this.$fault = "client";
181
- Object.setPrototypeOf(this, InvalidS3ObjectException.prototype);
182
- this.Message = opts.Message;
183
- this.Code = opts.Code;
184
- }
185
- }
186
- exports.InvalidS3ObjectException = InvalidS3ObjectException;
187
- class ProvisionedThroughputExceededException extends TextractServiceException_1.TextractServiceException {
188
- constructor(opts) {
189
- super({
190
- name: "ProvisionedThroughputExceededException",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- this.name = "ProvisionedThroughputExceededException";
195
- this.$fault = "client";
196
- Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
197
- this.Message = opts.Message;
198
- this.Code = opts.Code;
199
- }
200
- }
201
- exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
202
- class ThrottlingException extends TextractServiceException_1.TextractServiceException {
203
- constructor(opts) {
204
- super({
205
- name: "ThrottlingException",
206
- $fault: "server",
207
- ...opts,
208
- });
209
- this.name = "ThrottlingException";
210
- this.$fault = "server";
211
- Object.setPrototypeOf(this, ThrottlingException.prototype);
212
- this.Message = opts.Message;
213
- this.Code = opts.Code;
214
- }
215
- }
216
- exports.ThrottlingException = ThrottlingException;
217
- class UnsupportedDocumentException extends TextractServiceException_1.TextractServiceException {
218
- constructor(opts) {
219
- super({
220
- name: "UnsupportedDocumentException",
221
- $fault: "client",
222
- ...opts,
223
- });
224
- this.name = "UnsupportedDocumentException";
225
- this.$fault = "client";
226
- Object.setPrototypeOf(this, UnsupportedDocumentException.prototype);
227
- this.Message = opts.Message;
228
- this.Code = opts.Code;
229
- }
230
- }
231
- exports.UnsupportedDocumentException = UnsupportedDocumentException;
232
- exports.ValueType = {
233
- DATE: "DATE",
234
- };
235
- exports.AutoUpdate = {
236
- DISABLED: "DISABLED",
237
- ENABLED: "ENABLED",
238
- };
239
- class ConflictException extends TextractServiceException_1.TextractServiceException {
240
- constructor(opts) {
241
- super({
242
- name: "ConflictException",
243
- $fault: "client",
244
- ...opts,
245
- });
246
- this.name = "ConflictException";
247
- this.$fault = "client";
248
- Object.setPrototypeOf(this, ConflictException.prototype);
249
- this.Message = opts.Message;
250
- this.Code = opts.Code;
251
- }
252
- }
253
- exports.ConflictException = ConflictException;
254
- class IdempotentParameterMismatchException extends TextractServiceException_1.TextractServiceException {
255
- constructor(opts) {
256
- super({
257
- name: "IdempotentParameterMismatchException",
258
- $fault: "client",
259
- ...opts,
260
- });
261
- this.name = "IdempotentParameterMismatchException";
262
- this.$fault = "client";
263
- Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
264
- this.Message = opts.Message;
265
- this.Code = opts.Code;
266
- }
267
- }
268
- exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
269
- class LimitExceededException extends TextractServiceException_1.TextractServiceException {
270
- constructor(opts) {
271
- super({
272
- name: "LimitExceededException",
273
- $fault: "client",
274
- ...opts,
275
- });
276
- this.name = "LimitExceededException";
277
- this.$fault = "client";
278
- Object.setPrototypeOf(this, LimitExceededException.prototype);
279
- this.Message = opts.Message;
280
- this.Code = opts.Code;
281
- }
282
- }
283
- exports.LimitExceededException = LimitExceededException;
284
- class ServiceQuotaExceededException extends TextractServiceException_1.TextractServiceException {
285
- constructor(opts) {
286
- super({
287
- name: "ServiceQuotaExceededException",
288
- $fault: "client",
289
- ...opts,
290
- });
291
- this.name = "ServiceQuotaExceededException";
292
- this.$fault = "client";
293
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
294
- this.Message = opts.Message;
295
- this.Code = opts.Code;
296
- }
297
- }
298
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
299
- class ValidationException extends TextractServiceException_1.TextractServiceException {
300
- constructor(opts) {
301
- super({
302
- name: "ValidationException",
303
- $fault: "client",
304
- ...opts,
305
- });
306
- this.name = "ValidationException";
307
- this.$fault = "client";
308
- Object.setPrototypeOf(this, ValidationException.prototype);
309
- this.Message = opts.Message;
310
- this.Code = opts.Code;
311
- }
312
- }
313
- exports.ValidationException = ValidationException;
314
- class InvalidKMSKeyException extends TextractServiceException_1.TextractServiceException {
315
- constructor(opts) {
316
- super({
317
- name: "InvalidKMSKeyException",
318
- $fault: "client",
319
- ...opts,
320
- });
321
- this.name = "InvalidKMSKeyException";
322
- this.$fault = "client";
323
- Object.setPrototypeOf(this, InvalidKMSKeyException.prototype);
324
- this.Message = opts.Message;
325
- this.Code = opts.Code;
326
- }
327
- }
328
- exports.InvalidKMSKeyException = InvalidKMSKeyException;
329
- class ResourceNotFoundException extends TextractServiceException_1.TextractServiceException {
330
- constructor(opts) {
331
- super({
332
- name: "ResourceNotFoundException",
333
- $fault: "client",
334
- ...opts,
335
- });
336
- this.name = "ResourceNotFoundException";
337
- this.$fault = "client";
338
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
339
- this.Message = opts.Message;
340
- this.Code = opts.Code;
341
- }
342
- }
343
- exports.ResourceNotFoundException = ResourceNotFoundException;
344
- exports.JobStatus = {
345
- FAILED: "FAILED",
346
- IN_PROGRESS: "IN_PROGRESS",
347
- PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
348
- SUCCEEDED: "SUCCEEDED",
349
- };
350
- class InvalidJobIdException extends TextractServiceException_1.TextractServiceException {
351
- constructor(opts) {
352
- super({
353
- name: "InvalidJobIdException",
354
- $fault: "client",
355
- ...opts,
356
- });
357
- this.name = "InvalidJobIdException";
358
- this.$fault = "client";
359
- Object.setPrototypeOf(this, InvalidJobIdException.prototype);
360
- this.Message = opts.Message;
361
- this.Code = opts.Code;
362
- }
363
- }
364
- exports.InvalidJobIdException = InvalidJobIdException;
1
+ module.exports = require("../index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListAdapterVersions = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListAdapterVersionsCommand_1 = require("../commands/ListAdapterVersionsCommand");
6
- const TextractClient_1 = require("../TextractClient");
7
- exports.paginateListAdapterVersions = (0, core_1.createPaginator)(TextractClient_1.TextractClient, ListAdapterVersionsCommand_1.ListAdapterVersionsCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,7 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListAdapters = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListAdaptersCommand_1 = require("../commands/ListAdaptersCommand");
6
- const TextractClient_1 = require("../TextractClient");
7
- exports.paginateListAdapters = (0, core_1.createPaginator)(TextractClient_1.TextractClient, ListAdaptersCommand_1.ListAdaptersCommand, "NextToken", "NextToken", "MaxResults");
1
+ module.exports = require("../index.js");
@@ -1,6 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListAdapterVersionsPaginator"), exports);
6
- tslib_1.__exportStar(require("./ListAdaptersPaginator"), exports);
1
+ module.exports = require("../index.js");