@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.
- package/dist-cjs/index.js +88 -87
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +87 -0
- package/dist-es/models/errors.js +295 -0
- package/dist-es/models/models_0.js +1 -382
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +175 -0
- package/dist-types/models/errors.d.ts +289 -0
- package/dist-types/models/models_0.d.ts +2 -464
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +102 -0
- package/dist-types/ts3.4/models/errors.d.ts +174 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -278
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
|
|
5
|
-
* of an authorized user or IAM role to perform the operation.</p>
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
-
readonly name: "AccessDeniedException";
|
|
10
|
-
readonly $fault: "client";
|
|
11
|
-
Message?: string | undefined;
|
|
12
|
-
Code?: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
17
|
-
}
|
|
1
|
+
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
|
|
2
|
+
import { AdapterVersionStatus, AutoUpdate, BlockType, ContentClassifier, EntityType, FeatureType, JobStatus, RelationshipType, SelectionStatus, TextType, ValueType } from "./enums";
|
|
18
3
|
/**
|
|
19
4
|
* <p>An adapter selected for use when analyzing documents. Contains an adapter ID and a version number.
|
|
20
5
|
* Contains information on pages selected for analysis when analyzing documents asychronously.</p>
|
|
@@ -57,21 +42,6 @@ export interface Adapter {
|
|
|
57
42
|
*/
|
|
58
43
|
Version: string | undefined;
|
|
59
44
|
}
|
|
60
|
-
/**
|
|
61
|
-
* @public
|
|
62
|
-
* @enum
|
|
63
|
-
*/
|
|
64
|
-
export declare const FeatureType: {
|
|
65
|
-
readonly FORMS: "FORMS";
|
|
66
|
-
readonly LAYOUT: "LAYOUT";
|
|
67
|
-
readonly QUERIES: "QUERIES";
|
|
68
|
-
readonly SIGNATURES: "SIGNATURES";
|
|
69
|
-
readonly TABLES: "TABLES";
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
75
45
|
/**
|
|
76
46
|
* <p>Contains information on the adapter, including the adapter ID, Name, Creation time, and feature types.</p>
|
|
77
47
|
* @public
|
|
@@ -199,21 +169,6 @@ export interface AdapterVersionEvaluationMetric {
|
|
|
199
169
|
*/
|
|
200
170
|
FeatureType?: FeatureType | undefined;
|
|
201
171
|
}
|
|
202
|
-
/**
|
|
203
|
-
* @public
|
|
204
|
-
* @enum
|
|
205
|
-
*/
|
|
206
|
-
export declare const AdapterVersionStatus: {
|
|
207
|
-
readonly ACTIVE: "ACTIVE";
|
|
208
|
-
readonly AT_RISK: "AT_RISK";
|
|
209
|
-
readonly CREATION_ERROR: "CREATION_ERROR";
|
|
210
|
-
readonly CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS";
|
|
211
|
-
readonly DEPRECATED: "DEPRECATED";
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* @public
|
|
215
|
-
*/
|
|
216
|
-
export type AdapterVersionStatus = (typeof AdapterVersionStatus)[keyof typeof AdapterVersionStatus];
|
|
217
172
|
/**
|
|
218
173
|
* <p>Summary info for an adapter version. Contains information on the AdapterId, AdapterVersion, CreationTime, FeatureTypes, and Status.</p>
|
|
219
174
|
* @public
|
|
@@ -285,18 +240,6 @@ export interface Document {
|
|
|
285
240
|
*/
|
|
286
241
|
S3Object?: S3Object | undefined;
|
|
287
242
|
}
|
|
288
|
-
/**
|
|
289
|
-
* @public
|
|
290
|
-
* @enum
|
|
291
|
-
*/
|
|
292
|
-
export declare const ContentClassifier: {
|
|
293
|
-
readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
|
|
294
|
-
readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
|
|
295
|
-
};
|
|
296
|
-
/**
|
|
297
|
-
* @public
|
|
298
|
-
*/
|
|
299
|
-
export type ContentClassifier = (typeof ContentClassifier)[keyof typeof ContentClassifier];
|
|
300
243
|
/**
|
|
301
244
|
* <p>Allows you to set attributes of the image. Currently, you can declare an image as free
|
|
302
245
|
* of personally identifiable information and adult content. </p>
|
|
@@ -424,59 +367,6 @@ export interface AnalyzeDocumentRequest {
|
|
|
424
367
|
*/
|
|
425
368
|
AdaptersConfig?: AdaptersConfig | undefined;
|
|
426
369
|
}
|
|
427
|
-
/**
|
|
428
|
-
* @public
|
|
429
|
-
* @enum
|
|
430
|
-
*/
|
|
431
|
-
export declare const BlockType: {
|
|
432
|
-
readonly CELL: "CELL";
|
|
433
|
-
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
434
|
-
readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
|
|
435
|
-
readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
|
|
436
|
-
readonly LAYOUT_HEADER: "LAYOUT_HEADER";
|
|
437
|
-
readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
|
|
438
|
-
readonly LAYOUT_LIST: "LAYOUT_LIST";
|
|
439
|
-
readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
|
|
440
|
-
readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
|
|
441
|
-
readonly LAYOUT_TABLE: "LAYOUT_TABLE";
|
|
442
|
-
readonly LAYOUT_TEXT: "LAYOUT_TEXT";
|
|
443
|
-
readonly LAYOUT_TITLE: "LAYOUT_TITLE";
|
|
444
|
-
readonly LINE: "LINE";
|
|
445
|
-
readonly MERGED_CELL: "MERGED_CELL";
|
|
446
|
-
readonly PAGE: "PAGE";
|
|
447
|
-
readonly QUERY: "QUERY";
|
|
448
|
-
readonly QUERY_RESULT: "QUERY_RESULT";
|
|
449
|
-
readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
|
|
450
|
-
readonly SIGNATURE: "SIGNATURE";
|
|
451
|
-
readonly TABLE: "TABLE";
|
|
452
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
453
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
454
|
-
readonly TITLE: "TITLE";
|
|
455
|
-
readonly WORD: "WORD";
|
|
456
|
-
};
|
|
457
|
-
/**
|
|
458
|
-
* @public
|
|
459
|
-
*/
|
|
460
|
-
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
461
|
-
/**
|
|
462
|
-
* @public
|
|
463
|
-
* @enum
|
|
464
|
-
*/
|
|
465
|
-
export declare const EntityType: {
|
|
466
|
-
readonly COLUMN_HEADER: "COLUMN_HEADER";
|
|
467
|
-
readonly KEY: "KEY";
|
|
468
|
-
readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
|
|
469
|
-
readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
|
|
470
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
471
|
-
readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
|
|
472
|
-
readonly TABLE_SUMMARY: "TABLE_SUMMARY";
|
|
473
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
474
|
-
readonly VALUE: "VALUE";
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* @public
|
|
478
|
-
*/
|
|
479
|
-
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
480
370
|
/**
|
|
481
371
|
* <p>The bounding box around the detected page, text, key-value pair, table, table cell, or
|
|
482
372
|
* selection element on a document page. The <code>left</code> (x-coordinate) and
|
|
@@ -564,25 +454,6 @@ export interface Geometry {
|
|
|
564
454
|
*/
|
|
565
455
|
RotationAngle?: number | undefined;
|
|
566
456
|
}
|
|
567
|
-
/**
|
|
568
|
-
* @public
|
|
569
|
-
* @enum
|
|
570
|
-
*/
|
|
571
|
-
export declare const RelationshipType: {
|
|
572
|
-
readonly ANSWER: "ANSWER";
|
|
573
|
-
readonly CHILD: "CHILD";
|
|
574
|
-
readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
|
|
575
|
-
readonly MERGED_CELL: "MERGED_CELL";
|
|
576
|
-
readonly TABLE: "TABLE";
|
|
577
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
578
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
579
|
-
readonly TITLE: "TITLE";
|
|
580
|
-
readonly VALUE: "VALUE";
|
|
581
|
-
};
|
|
582
|
-
/**
|
|
583
|
-
* @public
|
|
584
|
-
*/
|
|
585
|
-
export type RelationshipType = (typeof RelationshipType)[keyof typeof RelationshipType];
|
|
586
457
|
/**
|
|
587
458
|
* <p>Information about how blocks are related to each other. A <code>Block</code> object
|
|
588
459
|
* contains 0 or more <code>Relation</code> objects in a list, <code>Relationships</code>. For
|
|
@@ -644,30 +515,6 @@ export interface Relationship {
|
|
|
644
515
|
*/
|
|
645
516
|
Ids?: string[] | undefined;
|
|
646
517
|
}
|
|
647
|
-
/**
|
|
648
|
-
* @public
|
|
649
|
-
* @enum
|
|
650
|
-
*/
|
|
651
|
-
export declare const SelectionStatus: {
|
|
652
|
-
readonly NOT_SELECTED: "NOT_SELECTED";
|
|
653
|
-
readonly SELECTED: "SELECTED";
|
|
654
|
-
};
|
|
655
|
-
/**
|
|
656
|
-
* @public
|
|
657
|
-
*/
|
|
658
|
-
export type SelectionStatus = (typeof SelectionStatus)[keyof typeof SelectionStatus];
|
|
659
|
-
/**
|
|
660
|
-
* @public
|
|
661
|
-
* @enum
|
|
662
|
-
*/
|
|
663
|
-
export declare const TextType: {
|
|
664
|
-
readonly HANDWRITING: "HANDWRITING";
|
|
665
|
-
readonly PRINTED: "PRINTED";
|
|
666
|
-
};
|
|
667
|
-
/**
|
|
668
|
-
* @public
|
|
669
|
-
*/
|
|
670
|
-
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
671
518
|
/**
|
|
672
519
|
* <p>A <code>Block</code> represents items that are recognized in a document within a group
|
|
673
520
|
* of pixels close to each other. The information returned in a <code>Block</code> object
|
|
@@ -1027,159 +874,6 @@ export interface AnalyzeDocumentResponse {
|
|
|
1027
874
|
*/
|
|
1028
875
|
AnalyzeDocumentModelVersion?: string | undefined;
|
|
1029
876
|
}
|
|
1030
|
-
/**
|
|
1031
|
-
* <p>Amazon Textract isn't able to read the document. For more information on the document
|
|
1032
|
-
* limits in Amazon Textract, see <a>limits</a>.</p>
|
|
1033
|
-
* @public
|
|
1034
|
-
*/
|
|
1035
|
-
export declare class BadDocumentException extends __BaseException {
|
|
1036
|
-
readonly name: "BadDocumentException";
|
|
1037
|
-
readonly $fault: "client";
|
|
1038
|
-
Message?: string | undefined;
|
|
1039
|
-
Code?: string | undefined;
|
|
1040
|
-
/**
|
|
1041
|
-
* @internal
|
|
1042
|
-
*/
|
|
1043
|
-
constructor(opts: __ExceptionOptionType<BadDocumentException, __BaseException>);
|
|
1044
|
-
}
|
|
1045
|
-
/**
|
|
1046
|
-
* <p>The document can't be processed because it's too large. The maximum document size for
|
|
1047
|
-
* synchronous operations 10 MB. The maximum document size for asynchronous operations is 500
|
|
1048
|
-
* MB for PDF files.</p>
|
|
1049
|
-
* @public
|
|
1050
|
-
*/
|
|
1051
|
-
export declare class DocumentTooLargeException extends __BaseException {
|
|
1052
|
-
readonly name: "DocumentTooLargeException";
|
|
1053
|
-
readonly $fault: "client";
|
|
1054
|
-
Message?: string | undefined;
|
|
1055
|
-
Code?: string | undefined;
|
|
1056
|
-
/**
|
|
1057
|
-
* @internal
|
|
1058
|
-
*/
|
|
1059
|
-
constructor(opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>);
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* <p>Indicates you have exceeded the maximum number of active human in the loop workflows available</p>
|
|
1063
|
-
* @public
|
|
1064
|
-
*/
|
|
1065
|
-
export declare class HumanLoopQuotaExceededException extends __BaseException {
|
|
1066
|
-
readonly name: "HumanLoopQuotaExceededException";
|
|
1067
|
-
readonly $fault: "client";
|
|
1068
|
-
/**
|
|
1069
|
-
* <p>The resource type.</p>
|
|
1070
|
-
* @public
|
|
1071
|
-
*/
|
|
1072
|
-
ResourceType?: string | undefined;
|
|
1073
|
-
/**
|
|
1074
|
-
* <p>The quota code.</p>
|
|
1075
|
-
* @public
|
|
1076
|
-
*/
|
|
1077
|
-
QuotaCode?: string | undefined;
|
|
1078
|
-
/**
|
|
1079
|
-
* <p>The service code.</p>
|
|
1080
|
-
* @public
|
|
1081
|
-
*/
|
|
1082
|
-
ServiceCode?: string | undefined;
|
|
1083
|
-
Message?: string | undefined;
|
|
1084
|
-
Code?: string | undefined;
|
|
1085
|
-
/**
|
|
1086
|
-
* @internal
|
|
1087
|
-
*/
|
|
1088
|
-
constructor(opts: __ExceptionOptionType<HumanLoopQuotaExceededException, __BaseException>);
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* <p>Amazon Textract experienced a service issue. Try your call again.</p>
|
|
1092
|
-
* @public
|
|
1093
|
-
*/
|
|
1094
|
-
export declare class InternalServerError extends __BaseException {
|
|
1095
|
-
readonly name: "InternalServerError";
|
|
1096
|
-
readonly $fault: "server";
|
|
1097
|
-
Message?: string | undefined;
|
|
1098
|
-
Code?: string | undefined;
|
|
1099
|
-
/**
|
|
1100
|
-
* @internal
|
|
1101
|
-
*/
|
|
1102
|
-
constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
|
|
1103
|
-
}
|
|
1104
|
-
/**
|
|
1105
|
-
* <p>An input parameter violated a constraint. For example, in synchronous operations,
|
|
1106
|
-
* an <code>InvalidParameterException</code> exception occurs
|
|
1107
|
-
* when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
|
|
1108
|
-
* request parameter.
|
|
1109
|
-
* Validate your parameter before calling the API operation again.</p>
|
|
1110
|
-
* @public
|
|
1111
|
-
*/
|
|
1112
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
1113
|
-
readonly name: "InvalidParameterException";
|
|
1114
|
-
readonly $fault: "client";
|
|
1115
|
-
Message?: string | undefined;
|
|
1116
|
-
Code?: string | undefined;
|
|
1117
|
-
/**
|
|
1118
|
-
* @internal
|
|
1119
|
-
*/
|
|
1120
|
-
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* <p>Amazon Textract is unable to access the S3 object that's specified in the request.
|
|
1124
|
-
* for more information, <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html">Configure Access to Amazon S3</a>
|
|
1125
|
-
* For troubleshooting information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html">Troubleshooting Amazon S3</a>
|
|
1126
|
-
* </p>
|
|
1127
|
-
* @public
|
|
1128
|
-
*/
|
|
1129
|
-
export declare class InvalidS3ObjectException extends __BaseException {
|
|
1130
|
-
readonly name: "InvalidS3ObjectException";
|
|
1131
|
-
readonly $fault: "client";
|
|
1132
|
-
Message?: string | undefined;
|
|
1133
|
-
Code?: string | undefined;
|
|
1134
|
-
/**
|
|
1135
|
-
* @internal
|
|
1136
|
-
*/
|
|
1137
|
-
constructor(opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>);
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
|
|
1141
|
-
* contact Amazon Textract.</p>
|
|
1142
|
-
* @public
|
|
1143
|
-
*/
|
|
1144
|
-
export declare class ProvisionedThroughputExceededException extends __BaseException {
|
|
1145
|
-
readonly name: "ProvisionedThroughputExceededException";
|
|
1146
|
-
readonly $fault: "client";
|
|
1147
|
-
Message?: string | undefined;
|
|
1148
|
-
Code?: string | undefined;
|
|
1149
|
-
/**
|
|
1150
|
-
* @internal
|
|
1151
|
-
*/
|
|
1152
|
-
constructor(opts: __ExceptionOptionType<ProvisionedThroughputExceededException, __BaseException>);
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
|
|
1156
|
-
* @public
|
|
1157
|
-
*/
|
|
1158
|
-
export declare class ThrottlingException extends __BaseException {
|
|
1159
|
-
readonly name: "ThrottlingException";
|
|
1160
|
-
readonly $fault: "server";
|
|
1161
|
-
Message?: string | undefined;
|
|
1162
|
-
Code?: string | undefined;
|
|
1163
|
-
/**
|
|
1164
|
-
* @internal
|
|
1165
|
-
*/
|
|
1166
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* <p>The format of the input document isn't supported. Documents for operations can be in
|
|
1170
|
-
* PNG, JPEG, PDF, or TIFF format.</p>
|
|
1171
|
-
* @public
|
|
1172
|
-
*/
|
|
1173
|
-
export declare class UnsupportedDocumentException extends __BaseException {
|
|
1174
|
-
readonly name: "UnsupportedDocumentException";
|
|
1175
|
-
readonly $fault: "client";
|
|
1176
|
-
Message?: string | undefined;
|
|
1177
|
-
Code?: string | undefined;
|
|
1178
|
-
/**
|
|
1179
|
-
* @internal
|
|
1180
|
-
*/
|
|
1181
|
-
constructor(opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>);
|
|
1182
|
-
}
|
|
1183
877
|
/**
|
|
1184
878
|
* @public
|
|
1185
879
|
*/
|
|
@@ -1434,17 +1128,6 @@ export interface AnalyzeIDRequest {
|
|
|
1434
1128
|
*/
|
|
1435
1129
|
DocumentPages: Document[] | undefined;
|
|
1436
1130
|
}
|
|
1437
|
-
/**
|
|
1438
|
-
* @public
|
|
1439
|
-
* @enum
|
|
1440
|
-
*/
|
|
1441
|
-
export declare const ValueType: {
|
|
1442
|
-
readonly DATE: "DATE";
|
|
1443
|
-
};
|
|
1444
|
-
/**
|
|
1445
|
-
* @public
|
|
1446
|
-
*/
|
|
1447
|
-
export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
1448
1131
|
/**
|
|
1449
1132
|
* <p>Contains information relating to dates in a document, including the type
|
|
1450
1133
|
* of value, and the value.</p>
|
|
@@ -1545,32 +1228,6 @@ export interface AnalyzeIDResponse {
|
|
|
1545
1228
|
*/
|
|
1546
1229
|
AnalyzeIDModelVersion?: string | undefined;
|
|
1547
1230
|
}
|
|
1548
|
-
/**
|
|
1549
|
-
* @public
|
|
1550
|
-
* @enum
|
|
1551
|
-
*/
|
|
1552
|
-
export declare const AutoUpdate: {
|
|
1553
|
-
readonly DISABLED: "DISABLED";
|
|
1554
|
-
readonly ENABLED: "ENABLED";
|
|
1555
|
-
};
|
|
1556
|
-
/**
|
|
1557
|
-
* @public
|
|
1558
|
-
*/
|
|
1559
|
-
export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
|
|
1560
|
-
/**
|
|
1561
|
-
* <p>Updating or deleting a resource can cause an inconsistent state.</p>
|
|
1562
|
-
* @public
|
|
1563
|
-
*/
|
|
1564
|
-
export declare class ConflictException extends __BaseException {
|
|
1565
|
-
readonly name: "ConflictException";
|
|
1566
|
-
readonly $fault: "client";
|
|
1567
|
-
Message?: string | undefined;
|
|
1568
|
-
Code?: string | undefined;
|
|
1569
|
-
/**
|
|
1570
|
-
* @internal
|
|
1571
|
-
*/
|
|
1572
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
1573
|
-
}
|
|
1574
1231
|
/**
|
|
1575
1232
|
* @public
|
|
1576
1233
|
*/
|
|
@@ -1620,68 +1277,6 @@ export interface CreateAdapterResponse {
|
|
|
1620
1277
|
*/
|
|
1621
1278
|
AdapterId?: string | undefined;
|
|
1622
1279
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at
|
|
1625
|
-
* least one of the other input parameters is different from the previous call to the
|
|
1626
|
-
* operation. </p>
|
|
1627
|
-
* @public
|
|
1628
|
-
*/
|
|
1629
|
-
export declare class IdempotentParameterMismatchException extends __BaseException {
|
|
1630
|
-
readonly name: "IdempotentParameterMismatchException";
|
|
1631
|
-
readonly $fault: "client";
|
|
1632
|
-
Message?: string | undefined;
|
|
1633
|
-
Code?: string | undefined;
|
|
1634
|
-
/**
|
|
1635
|
-
* @internal
|
|
1636
|
-
*/
|
|
1637
|
-
constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
|
|
1638
|
-
}
|
|
1639
|
-
/**
|
|
1640
|
-
* <p>An Amazon Textract service limit was exceeded. For example, if you start too many
|
|
1641
|
-
* asynchronous jobs concurrently, calls to start operations
|
|
1642
|
-
* (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
|
|
1643
|
-
* exception (HTTP status code: 400) until the number of concurrently running jobs is below
|
|
1644
|
-
* the Amazon Textract service limit. </p>
|
|
1645
|
-
* @public
|
|
1646
|
-
*/
|
|
1647
|
-
export declare class LimitExceededException extends __BaseException {
|
|
1648
|
-
readonly name: "LimitExceededException";
|
|
1649
|
-
readonly $fault: "client";
|
|
1650
|
-
Message?: string | undefined;
|
|
1651
|
-
Code?: string | undefined;
|
|
1652
|
-
/**
|
|
1653
|
-
* @internal
|
|
1654
|
-
*/
|
|
1655
|
-
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
1656
|
-
}
|
|
1657
|
-
/**
|
|
1658
|
-
* <p>Returned when a request cannot be completed as it would exceed a maximum service quota.</p>
|
|
1659
|
-
* @public
|
|
1660
|
-
*/
|
|
1661
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
1662
|
-
readonly name: "ServiceQuotaExceededException";
|
|
1663
|
-
readonly $fault: "client";
|
|
1664
|
-
Message?: string | undefined;
|
|
1665
|
-
Code?: string | undefined;
|
|
1666
|
-
/**
|
|
1667
|
-
* @internal
|
|
1668
|
-
*/
|
|
1669
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
1670
|
-
}
|
|
1671
|
-
/**
|
|
1672
|
-
* <p> Indicates that a request was not valid. Check request for proper formatting. </p>
|
|
1673
|
-
* @public
|
|
1674
|
-
*/
|
|
1675
|
-
export declare class ValidationException extends __BaseException {
|
|
1676
|
-
readonly name: "ValidationException";
|
|
1677
|
-
readonly $fault: "client";
|
|
1678
|
-
Message?: string | undefined;
|
|
1679
|
-
Code?: string | undefined;
|
|
1680
|
-
/**
|
|
1681
|
-
* @internal
|
|
1682
|
-
*/
|
|
1683
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
1684
|
-
}
|
|
1685
1280
|
/**
|
|
1686
1281
|
* <p>Sets whether or not your output will go to a user created bucket. Used to set the name
|
|
1687
1282
|
* of the bucket, and the prefix on the output file.</p>
|
|
@@ -1784,35 +1379,6 @@ export interface CreateAdapterVersionResponse {
|
|
|
1784
1379
|
*/
|
|
1785
1380
|
AdapterVersion?: string | undefined;
|
|
1786
1381
|
}
|
|
1787
|
-
/**
|
|
1788
|
-
* <p> Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key
|
|
1789
|
-
* was entered incorrectly. </p>
|
|
1790
|
-
* @public
|
|
1791
|
-
*/
|
|
1792
|
-
export declare class InvalidKMSKeyException extends __BaseException {
|
|
1793
|
-
readonly name: "InvalidKMSKeyException";
|
|
1794
|
-
readonly $fault: "client";
|
|
1795
|
-
Message?: string | undefined;
|
|
1796
|
-
Code?: string | undefined;
|
|
1797
|
-
/**
|
|
1798
|
-
* @internal
|
|
1799
|
-
*/
|
|
1800
|
-
constructor(opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>);
|
|
1801
|
-
}
|
|
1802
|
-
/**
|
|
1803
|
-
* <p> Returned when an operation tried to access a nonexistent resource. </p>
|
|
1804
|
-
* @public
|
|
1805
|
-
*/
|
|
1806
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
1807
|
-
readonly name: "ResourceNotFoundException";
|
|
1808
|
-
readonly $fault: "client";
|
|
1809
|
-
Message?: string | undefined;
|
|
1810
|
-
Code?: string | undefined;
|
|
1811
|
-
/**
|
|
1812
|
-
* @internal
|
|
1813
|
-
*/
|
|
1814
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
1815
|
-
}
|
|
1816
1382
|
/**
|
|
1817
1383
|
* @public
|
|
1818
1384
|
*/
|
|
@@ -2233,20 +1799,6 @@ export interface GetDocumentAnalysisRequest {
|
|
|
2233
1799
|
*/
|
|
2234
1800
|
NextToken?: string | undefined;
|
|
2235
1801
|
}
|
|
2236
|
-
/**
|
|
2237
|
-
* @public
|
|
2238
|
-
* @enum
|
|
2239
|
-
*/
|
|
2240
|
-
export declare const JobStatus: {
|
|
2241
|
-
readonly FAILED: "FAILED";
|
|
2242
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
2243
|
-
readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
|
|
2244
|
-
readonly SUCCEEDED: "SUCCEEDED";
|
|
2245
|
-
};
|
|
2246
|
-
/**
|
|
2247
|
-
* @public
|
|
2248
|
-
*/
|
|
2249
|
-
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
2250
1802
|
/**
|
|
2251
1803
|
* <p>A warning about an issue that occurred during asynchronous text analysis (<a>StartDocumentAnalysis</a>) or asynchronous document text detection (<a>StartDocumentTextDetection</a>). </p>
|
|
2252
1804
|
* @public
|
|
@@ -2307,20 +1859,6 @@ export interface GetDocumentAnalysisResponse {
|
|
|
2307
1859
|
*/
|
|
2308
1860
|
AnalyzeDocumentModelVersion?: string | undefined;
|
|
2309
1861
|
}
|
|
2310
|
-
/**
|
|
2311
|
-
* <p>An invalid job identifier was passed to an asynchronous analysis operation.</p>
|
|
2312
|
-
* @public
|
|
2313
|
-
*/
|
|
2314
|
-
export declare class InvalidJobIdException extends __BaseException {
|
|
2315
|
-
readonly name: "InvalidJobIdException";
|
|
2316
|
-
readonly $fault: "client";
|
|
2317
|
-
Message?: string | undefined;
|
|
2318
|
-
Code?: string | undefined;
|
|
2319
|
-
/**
|
|
2320
|
-
* @internal
|
|
2321
|
-
*/
|
|
2322
|
-
constructor(opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>);
|
|
2323
|
-
}
|
|
2324
1862
|
/**
|
|
2325
1863
|
* @public
|
|
2326
1864
|
*/
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { TextractExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { TextractServiceException } from "./models/TextractServiceException";
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const FeatureType: {
|
|
2
|
+
readonly FORMS: "FORMS";
|
|
3
|
+
readonly LAYOUT: "LAYOUT";
|
|
4
|
+
readonly QUERIES: "QUERIES";
|
|
5
|
+
readonly SIGNATURES: "SIGNATURES";
|
|
6
|
+
readonly TABLES: "TABLES";
|
|
7
|
+
};
|
|
8
|
+
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
9
|
+
export declare const AdapterVersionStatus: {
|
|
10
|
+
readonly ACTIVE: "ACTIVE";
|
|
11
|
+
readonly AT_RISK: "AT_RISK";
|
|
12
|
+
readonly CREATION_ERROR: "CREATION_ERROR";
|
|
13
|
+
readonly CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS";
|
|
14
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
15
|
+
};
|
|
16
|
+
export type AdapterVersionStatus =
|
|
17
|
+
(typeof AdapterVersionStatus)[keyof typeof AdapterVersionStatus];
|
|
18
|
+
export declare const ContentClassifier: {
|
|
19
|
+
readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
|
|
20
|
+
readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
|
|
21
|
+
};
|
|
22
|
+
export type ContentClassifier =
|
|
23
|
+
(typeof ContentClassifier)[keyof typeof ContentClassifier];
|
|
24
|
+
export declare const BlockType: {
|
|
25
|
+
readonly CELL: "CELL";
|
|
26
|
+
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
27
|
+
readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
|
|
28
|
+
readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
|
|
29
|
+
readonly LAYOUT_HEADER: "LAYOUT_HEADER";
|
|
30
|
+
readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
|
|
31
|
+
readonly LAYOUT_LIST: "LAYOUT_LIST";
|
|
32
|
+
readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
|
|
33
|
+
readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
|
|
34
|
+
readonly LAYOUT_TABLE: "LAYOUT_TABLE";
|
|
35
|
+
readonly LAYOUT_TEXT: "LAYOUT_TEXT";
|
|
36
|
+
readonly LAYOUT_TITLE: "LAYOUT_TITLE";
|
|
37
|
+
readonly LINE: "LINE";
|
|
38
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
39
|
+
readonly PAGE: "PAGE";
|
|
40
|
+
readonly QUERY: "QUERY";
|
|
41
|
+
readonly QUERY_RESULT: "QUERY_RESULT";
|
|
42
|
+
readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
|
|
43
|
+
readonly SIGNATURE: "SIGNATURE";
|
|
44
|
+
readonly TABLE: "TABLE";
|
|
45
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
46
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
47
|
+
readonly TITLE: "TITLE";
|
|
48
|
+
readonly WORD: "WORD";
|
|
49
|
+
};
|
|
50
|
+
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
51
|
+
export declare const EntityType: {
|
|
52
|
+
readonly COLUMN_HEADER: "COLUMN_HEADER";
|
|
53
|
+
readonly KEY: "KEY";
|
|
54
|
+
readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
|
|
55
|
+
readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
|
|
56
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
57
|
+
readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
|
|
58
|
+
readonly TABLE_SUMMARY: "TABLE_SUMMARY";
|
|
59
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
60
|
+
readonly VALUE: "VALUE";
|
|
61
|
+
};
|
|
62
|
+
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
63
|
+
export declare const RelationshipType: {
|
|
64
|
+
readonly ANSWER: "ANSWER";
|
|
65
|
+
readonly CHILD: "CHILD";
|
|
66
|
+
readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
|
|
67
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
68
|
+
readonly TABLE: "TABLE";
|
|
69
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
70
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
71
|
+
readonly TITLE: "TITLE";
|
|
72
|
+
readonly VALUE: "VALUE";
|
|
73
|
+
};
|
|
74
|
+
export type RelationshipType =
|
|
75
|
+
(typeof RelationshipType)[keyof typeof RelationshipType];
|
|
76
|
+
export declare const SelectionStatus: {
|
|
77
|
+
readonly NOT_SELECTED: "NOT_SELECTED";
|
|
78
|
+
readonly SELECTED: "SELECTED";
|
|
79
|
+
};
|
|
80
|
+
export type SelectionStatus =
|
|
81
|
+
(typeof SelectionStatus)[keyof typeof SelectionStatus];
|
|
82
|
+
export declare const TextType: {
|
|
83
|
+
readonly HANDWRITING: "HANDWRITING";
|
|
84
|
+
readonly PRINTED: "PRINTED";
|
|
85
|
+
};
|
|
86
|
+
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
87
|
+
export declare const ValueType: {
|
|
88
|
+
readonly DATE: "DATE";
|
|
89
|
+
};
|
|
90
|
+
export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
91
|
+
export declare const AutoUpdate: {
|
|
92
|
+
readonly DISABLED: "DISABLED";
|
|
93
|
+
readonly ENABLED: "ENABLED";
|
|
94
|
+
};
|
|
95
|
+
export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
|
|
96
|
+
export declare const JobStatus: {
|
|
97
|
+
readonly FAILED: "FAILED";
|
|
98
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
99
|
+
readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
|
|
100
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
101
|
+
};
|
|
102
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|