@aws-sdk/client-textract 3.933.0 → 3.935.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.
@@ -1,382 +1 @@
1
- import { TextractServiceException as __BaseException } from "./TextractServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- Code;
7
- constructor(opts) {
8
- super({
9
- name: "AccessDeniedException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
- this.Message = opts.Message;
15
- this.Code = opts.Code;
16
- }
17
- }
18
- export const FeatureType = {
19
- FORMS: "FORMS",
20
- LAYOUT: "LAYOUT",
21
- QUERIES: "QUERIES",
22
- SIGNATURES: "SIGNATURES",
23
- TABLES: "TABLES",
24
- };
25
- export const AdapterVersionStatus = {
26
- ACTIVE: "ACTIVE",
27
- AT_RISK: "AT_RISK",
28
- CREATION_ERROR: "CREATION_ERROR",
29
- CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS",
30
- DEPRECATED: "DEPRECATED",
31
- };
32
- export const ContentClassifier = {
33
- FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
34
- FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
35
- };
36
- export const BlockType = {
37
- CELL: "CELL",
38
- KEY_VALUE_SET: "KEY_VALUE_SET",
39
- LAYOUT_FIGURE: "LAYOUT_FIGURE",
40
- LAYOUT_FOOTER: "LAYOUT_FOOTER",
41
- LAYOUT_HEADER: "LAYOUT_HEADER",
42
- LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE",
43
- LAYOUT_LIST: "LAYOUT_LIST",
44
- LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER",
45
- LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER",
46
- LAYOUT_TABLE: "LAYOUT_TABLE",
47
- LAYOUT_TEXT: "LAYOUT_TEXT",
48
- LAYOUT_TITLE: "LAYOUT_TITLE",
49
- LINE: "LINE",
50
- MERGED_CELL: "MERGED_CELL",
51
- PAGE: "PAGE",
52
- QUERY: "QUERY",
53
- QUERY_RESULT: "QUERY_RESULT",
54
- SELECTION_ELEMENT: "SELECTION_ELEMENT",
55
- SIGNATURE: "SIGNATURE",
56
- TABLE: "TABLE",
57
- TABLE_FOOTER: "TABLE_FOOTER",
58
- TABLE_TITLE: "TABLE_TITLE",
59
- TITLE: "TITLE",
60
- WORD: "WORD",
61
- };
62
- export const EntityType = {
63
- COLUMN_HEADER: "COLUMN_HEADER",
64
- KEY: "KEY",
65
- SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE",
66
- STRUCTURED_TABLE: "STRUCTURED_TABLE",
67
- TABLE_FOOTER: "TABLE_FOOTER",
68
- TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE",
69
- TABLE_SUMMARY: "TABLE_SUMMARY",
70
- TABLE_TITLE: "TABLE_TITLE",
71
- VALUE: "VALUE",
72
- };
73
- export const RelationshipType = {
74
- ANSWER: "ANSWER",
75
- CHILD: "CHILD",
76
- COMPLEX_FEATURES: "COMPLEX_FEATURES",
77
- MERGED_CELL: "MERGED_CELL",
78
- TABLE: "TABLE",
79
- TABLE_FOOTER: "TABLE_FOOTER",
80
- TABLE_TITLE: "TABLE_TITLE",
81
- TITLE: "TITLE",
82
- VALUE: "VALUE",
83
- };
84
- export const SelectionStatus = {
85
- NOT_SELECTED: "NOT_SELECTED",
86
- SELECTED: "SELECTED",
87
- };
88
- export const TextType = {
89
- HANDWRITING: "HANDWRITING",
90
- PRINTED: "PRINTED",
91
- };
92
- export class BadDocumentException extends __BaseException {
93
- name = "BadDocumentException";
94
- $fault = "client";
95
- Message;
96
- Code;
97
- constructor(opts) {
98
- super({
99
- name: "BadDocumentException",
100
- $fault: "client",
101
- ...opts,
102
- });
103
- Object.setPrototypeOf(this, BadDocumentException.prototype);
104
- this.Message = opts.Message;
105
- this.Code = opts.Code;
106
- }
107
- }
108
- export class DocumentTooLargeException extends __BaseException {
109
- name = "DocumentTooLargeException";
110
- $fault = "client";
111
- Message;
112
- Code;
113
- constructor(opts) {
114
- super({
115
- name: "DocumentTooLargeException",
116
- $fault: "client",
117
- ...opts,
118
- });
119
- Object.setPrototypeOf(this, DocumentTooLargeException.prototype);
120
- this.Message = opts.Message;
121
- this.Code = opts.Code;
122
- }
123
- }
124
- export class HumanLoopQuotaExceededException extends __BaseException {
125
- name = "HumanLoopQuotaExceededException";
126
- $fault = "client";
127
- ResourceType;
128
- QuotaCode;
129
- ServiceCode;
130
- Message;
131
- Code;
132
- constructor(opts) {
133
- super({
134
- name: "HumanLoopQuotaExceededException",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- Object.setPrototypeOf(this, HumanLoopQuotaExceededException.prototype);
139
- this.ResourceType = opts.ResourceType;
140
- this.QuotaCode = opts.QuotaCode;
141
- this.ServiceCode = opts.ServiceCode;
142
- this.Message = opts.Message;
143
- this.Code = opts.Code;
144
- }
145
- }
146
- export class InternalServerError extends __BaseException {
147
- name = "InternalServerError";
148
- $fault = "server";
149
- Message;
150
- Code;
151
- constructor(opts) {
152
- super({
153
- name: "InternalServerError",
154
- $fault: "server",
155
- ...opts,
156
- });
157
- Object.setPrototypeOf(this, InternalServerError.prototype);
158
- this.Message = opts.Message;
159
- this.Code = opts.Code;
160
- }
161
- }
162
- export class InvalidParameterException extends __BaseException {
163
- name = "InvalidParameterException";
164
- $fault = "client";
165
- Message;
166
- Code;
167
- constructor(opts) {
168
- super({
169
- name: "InvalidParameterException",
170
- $fault: "client",
171
- ...opts,
172
- });
173
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
174
- this.Message = opts.Message;
175
- this.Code = opts.Code;
176
- }
177
- }
178
- export class InvalidS3ObjectException extends __BaseException {
179
- name = "InvalidS3ObjectException";
180
- $fault = "client";
181
- Message;
182
- Code;
183
- constructor(opts) {
184
- super({
185
- name: "InvalidS3ObjectException",
186
- $fault: "client",
187
- ...opts,
188
- });
189
- Object.setPrototypeOf(this, InvalidS3ObjectException.prototype);
190
- this.Message = opts.Message;
191
- this.Code = opts.Code;
192
- }
193
- }
194
- export class ProvisionedThroughputExceededException extends __BaseException {
195
- name = "ProvisionedThroughputExceededException";
196
- $fault = "client";
197
- Message;
198
- Code;
199
- constructor(opts) {
200
- super({
201
- name: "ProvisionedThroughputExceededException",
202
- $fault: "client",
203
- ...opts,
204
- });
205
- Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
206
- this.Message = opts.Message;
207
- this.Code = opts.Code;
208
- }
209
- }
210
- export class ThrottlingException extends __BaseException {
211
- name = "ThrottlingException";
212
- $fault = "server";
213
- Message;
214
- Code;
215
- constructor(opts) {
216
- super({
217
- name: "ThrottlingException",
218
- $fault: "server",
219
- ...opts,
220
- });
221
- Object.setPrototypeOf(this, ThrottlingException.prototype);
222
- this.Message = opts.Message;
223
- this.Code = opts.Code;
224
- }
225
- }
226
- export class UnsupportedDocumentException extends __BaseException {
227
- name = "UnsupportedDocumentException";
228
- $fault = "client";
229
- Message;
230
- Code;
231
- constructor(opts) {
232
- super({
233
- name: "UnsupportedDocumentException",
234
- $fault: "client",
235
- ...opts,
236
- });
237
- Object.setPrototypeOf(this, UnsupportedDocumentException.prototype);
238
- this.Message = opts.Message;
239
- this.Code = opts.Code;
240
- }
241
- }
242
- export const ValueType = {
243
- DATE: "DATE",
244
- };
245
- export const AutoUpdate = {
246
- DISABLED: "DISABLED",
247
- ENABLED: "ENABLED",
248
- };
249
- export class ConflictException extends __BaseException {
250
- name = "ConflictException";
251
- $fault = "client";
252
- Message;
253
- Code;
254
- constructor(opts) {
255
- super({
256
- name: "ConflictException",
257
- $fault: "client",
258
- ...opts,
259
- });
260
- Object.setPrototypeOf(this, ConflictException.prototype);
261
- this.Message = opts.Message;
262
- this.Code = opts.Code;
263
- }
264
- }
265
- export class IdempotentParameterMismatchException extends __BaseException {
266
- name = "IdempotentParameterMismatchException";
267
- $fault = "client";
268
- Message;
269
- Code;
270
- constructor(opts) {
271
- super({
272
- name: "IdempotentParameterMismatchException",
273
- $fault: "client",
274
- ...opts,
275
- });
276
- Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
277
- this.Message = opts.Message;
278
- this.Code = opts.Code;
279
- }
280
- }
281
- export class LimitExceededException extends __BaseException {
282
- name = "LimitExceededException";
283
- $fault = "client";
284
- Message;
285
- Code;
286
- constructor(opts) {
287
- super({
288
- name: "LimitExceededException",
289
- $fault: "client",
290
- ...opts,
291
- });
292
- Object.setPrototypeOf(this, LimitExceededException.prototype);
293
- this.Message = opts.Message;
294
- this.Code = opts.Code;
295
- }
296
- }
297
- export class ServiceQuotaExceededException extends __BaseException {
298
- name = "ServiceQuotaExceededException";
299
- $fault = "client";
300
- Message;
301
- Code;
302
- constructor(opts) {
303
- super({
304
- name: "ServiceQuotaExceededException",
305
- $fault: "client",
306
- ...opts,
307
- });
308
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
309
- this.Message = opts.Message;
310
- this.Code = opts.Code;
311
- }
312
- }
313
- export class ValidationException extends __BaseException {
314
- name = "ValidationException";
315
- $fault = "client";
316
- Message;
317
- Code;
318
- constructor(opts) {
319
- super({
320
- name: "ValidationException",
321
- $fault: "client",
322
- ...opts,
323
- });
324
- Object.setPrototypeOf(this, ValidationException.prototype);
325
- this.Message = opts.Message;
326
- this.Code = opts.Code;
327
- }
328
- }
329
- export class InvalidKMSKeyException extends __BaseException {
330
- name = "InvalidKMSKeyException";
331
- $fault = "client";
332
- Message;
333
- Code;
334
- constructor(opts) {
335
- super({
336
- name: "InvalidKMSKeyException",
337
- $fault: "client",
338
- ...opts,
339
- });
340
- Object.setPrototypeOf(this, InvalidKMSKeyException.prototype);
341
- this.Message = opts.Message;
342
- this.Code = opts.Code;
343
- }
344
- }
345
- export class ResourceNotFoundException extends __BaseException {
346
- name = "ResourceNotFoundException";
347
- $fault = "client";
348
- Message;
349
- Code;
350
- constructor(opts) {
351
- super({
352
- name: "ResourceNotFoundException",
353
- $fault: "client",
354
- ...opts,
355
- });
356
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
357
- this.Message = opts.Message;
358
- this.Code = opts.Code;
359
- }
360
- }
361
- export const JobStatus = {
362
- FAILED: "FAILED",
363
- IN_PROGRESS: "IN_PROGRESS",
364
- PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
365
- SUCCEEDED: "SUCCEEDED",
366
- };
367
- export class InvalidJobIdException extends __BaseException {
368
- name = "InvalidJobIdException";
369
- $fault = "client";
370
- Message;
371
- Code;
372
- constructor(opts) {
373
- super({
374
- name: "InvalidJobIdException",
375
- $fault: "client",
376
- ...opts,
377
- });
378
- Object.setPrototypeOf(this, InvalidJobIdException.prototype);
379
- this.Message = opts.Message;
380
- this.Code = opts.Code;
381
- }
382
- }
1
+ export {};
@@ -290,7 +290,7 @@ const _s = "server";
290
290
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.textract";
291
291
  const n0 = "com.amazonaws.textract";
292
292
  import { TypeRegistry } from "@smithy/core/schema";
293
- import { AccessDeniedException as __AccessDeniedException, BadDocumentException as __BadDocumentException, ConflictException as __ConflictException, DocumentTooLargeException as __DocumentTooLargeException, HumanLoopQuotaExceededException as __HumanLoopQuotaExceededException, IdempotentParameterMismatchException as __IdempotentParameterMismatchException, InternalServerError as __InternalServerError, InvalidJobIdException as __InvalidJobIdException, InvalidKMSKeyException as __InvalidKMSKeyException, InvalidParameterException as __InvalidParameterException, InvalidS3ObjectException as __InvalidS3ObjectException, LimitExceededException as __LimitExceededException, ProvisionedThroughputExceededException as __ProvisionedThroughputExceededException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, UnsupportedDocumentException as __UnsupportedDocumentException, ValidationException as __ValidationException, } from "../models/index";
293
+ import { AccessDeniedException as __AccessDeniedException, BadDocumentException as __BadDocumentException, ConflictException as __ConflictException, DocumentTooLargeException as __DocumentTooLargeException, HumanLoopQuotaExceededException as __HumanLoopQuotaExceededException, IdempotentParameterMismatchException as __IdempotentParameterMismatchException, InternalServerError as __InternalServerError, InvalidJobIdException as __InvalidJobIdException, InvalidKMSKeyException as __InvalidKMSKeyException, InvalidParameterException as __InvalidParameterException, InvalidS3ObjectException as __InvalidS3ObjectException, LimitExceededException as __LimitExceededException, ProvisionedThroughputExceededException as __ProvisionedThroughputExceededException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, UnsupportedDocumentException as __UnsupportedDocumentException, ValidationException as __ValidationException, } from "../models/errors";
294
294
  import { TextractServiceException as __TextractServiceException } from "../models/TextractServiceException";
295
295
  export var SynthesizedJsonHumanLoopActivationConditionsEvaluationResults = [
296
296
  0,
@@ -12,5 +12,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
12
12
  export type { TextractExtensionConfiguration } from "./extensionConfiguration";
13
13
  export * from "./commands";
14
14
  export * from "./pagination";
15
- export * from "./models";
15
+ export * from "./models/enums";
16
+ export * from "./models/errors";
17
+ export type * from "./models/models_0";
16
18
  export { TextractServiceException } from "./models/TextractServiceException";
@@ -0,0 +1,175 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const FeatureType: {
6
+ readonly FORMS: "FORMS";
7
+ readonly LAYOUT: "LAYOUT";
8
+ readonly QUERIES: "QUERIES";
9
+ readonly SIGNATURES: "SIGNATURES";
10
+ readonly TABLES: "TABLES";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const AdapterVersionStatus: {
21
+ readonly ACTIVE: "ACTIVE";
22
+ readonly AT_RISK: "AT_RISK";
23
+ readonly CREATION_ERROR: "CREATION_ERROR";
24
+ readonly CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS";
25
+ readonly DEPRECATED: "DEPRECATED";
26
+ };
27
+ /**
28
+ * @public
29
+ */
30
+ export type AdapterVersionStatus = (typeof AdapterVersionStatus)[keyof typeof AdapterVersionStatus];
31
+ /**
32
+ * @public
33
+ * @enum
34
+ */
35
+ export declare const ContentClassifier: {
36
+ readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
37
+ readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type ContentClassifier = (typeof ContentClassifier)[keyof typeof ContentClassifier];
43
+ /**
44
+ * @public
45
+ * @enum
46
+ */
47
+ export declare const BlockType: {
48
+ readonly CELL: "CELL";
49
+ readonly KEY_VALUE_SET: "KEY_VALUE_SET";
50
+ readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
51
+ readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
52
+ readonly LAYOUT_HEADER: "LAYOUT_HEADER";
53
+ readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
54
+ readonly LAYOUT_LIST: "LAYOUT_LIST";
55
+ readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
56
+ readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
57
+ readonly LAYOUT_TABLE: "LAYOUT_TABLE";
58
+ readonly LAYOUT_TEXT: "LAYOUT_TEXT";
59
+ readonly LAYOUT_TITLE: "LAYOUT_TITLE";
60
+ readonly LINE: "LINE";
61
+ readonly MERGED_CELL: "MERGED_CELL";
62
+ readonly PAGE: "PAGE";
63
+ readonly QUERY: "QUERY";
64
+ readonly QUERY_RESULT: "QUERY_RESULT";
65
+ readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
66
+ readonly SIGNATURE: "SIGNATURE";
67
+ readonly TABLE: "TABLE";
68
+ readonly TABLE_FOOTER: "TABLE_FOOTER";
69
+ readonly TABLE_TITLE: "TABLE_TITLE";
70
+ readonly TITLE: "TITLE";
71
+ readonly WORD: "WORD";
72
+ };
73
+ /**
74
+ * @public
75
+ */
76
+ export type BlockType = (typeof BlockType)[keyof typeof BlockType];
77
+ /**
78
+ * @public
79
+ * @enum
80
+ */
81
+ export declare const EntityType: {
82
+ readonly COLUMN_HEADER: "COLUMN_HEADER";
83
+ readonly KEY: "KEY";
84
+ readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
85
+ readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
86
+ readonly TABLE_FOOTER: "TABLE_FOOTER";
87
+ readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
88
+ readonly TABLE_SUMMARY: "TABLE_SUMMARY";
89
+ readonly TABLE_TITLE: "TABLE_TITLE";
90
+ readonly VALUE: "VALUE";
91
+ };
92
+ /**
93
+ * @public
94
+ */
95
+ export type EntityType = (typeof EntityType)[keyof typeof EntityType];
96
+ /**
97
+ * @public
98
+ * @enum
99
+ */
100
+ export declare const RelationshipType: {
101
+ readonly ANSWER: "ANSWER";
102
+ readonly CHILD: "CHILD";
103
+ readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
104
+ readonly MERGED_CELL: "MERGED_CELL";
105
+ readonly TABLE: "TABLE";
106
+ readonly TABLE_FOOTER: "TABLE_FOOTER";
107
+ readonly TABLE_TITLE: "TABLE_TITLE";
108
+ readonly TITLE: "TITLE";
109
+ readonly VALUE: "VALUE";
110
+ };
111
+ /**
112
+ * @public
113
+ */
114
+ export type RelationshipType = (typeof RelationshipType)[keyof typeof RelationshipType];
115
+ /**
116
+ * @public
117
+ * @enum
118
+ */
119
+ export declare const SelectionStatus: {
120
+ readonly NOT_SELECTED: "NOT_SELECTED";
121
+ readonly SELECTED: "SELECTED";
122
+ };
123
+ /**
124
+ * @public
125
+ */
126
+ export type SelectionStatus = (typeof SelectionStatus)[keyof typeof SelectionStatus];
127
+ /**
128
+ * @public
129
+ * @enum
130
+ */
131
+ export declare const TextType: {
132
+ readonly HANDWRITING: "HANDWRITING";
133
+ readonly PRINTED: "PRINTED";
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type TextType = (typeof TextType)[keyof typeof TextType];
139
+ /**
140
+ * @public
141
+ * @enum
142
+ */
143
+ export declare const ValueType: {
144
+ readonly DATE: "DATE";
145
+ };
146
+ /**
147
+ * @public
148
+ */
149
+ export type ValueType = (typeof ValueType)[keyof typeof ValueType];
150
+ /**
151
+ * @public
152
+ * @enum
153
+ */
154
+ export declare const AutoUpdate: {
155
+ readonly DISABLED: "DISABLED";
156
+ readonly ENABLED: "ENABLED";
157
+ };
158
+ /**
159
+ * @public
160
+ */
161
+ export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
162
+ /**
163
+ * @public
164
+ * @enum
165
+ */
166
+ export declare const JobStatus: {
167
+ readonly FAILED: "FAILED";
168
+ readonly IN_PROGRESS: "IN_PROGRESS";
169
+ readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
170
+ readonly SUCCEEDED: "SUCCEEDED";
171
+ };
172
+ /**
173
+ * @public
174
+ */
175
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];