@aws-sdk/client-textract 3.934.0 → 3.936.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 +19 -19
- 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
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { TextractServiceException as __BaseException } from "./TextractServiceException";
|
|
3
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
4
|
+
readonly name: "AccessDeniedException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
Message?: string | undefined;
|
|
7
|
+
Code?: string | undefined;
|
|
8
|
+
constructor(
|
|
9
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
export declare class BadDocumentException extends __BaseException {
|
|
13
|
+
readonly name: "BadDocumentException";
|
|
14
|
+
readonly $fault: "client";
|
|
15
|
+
Message?: string | undefined;
|
|
16
|
+
Code?: string | undefined;
|
|
17
|
+
constructor(
|
|
18
|
+
opts: __ExceptionOptionType<BadDocumentException, __BaseException>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export declare class DocumentTooLargeException extends __BaseException {
|
|
22
|
+
readonly name: "DocumentTooLargeException";
|
|
23
|
+
readonly $fault: "client";
|
|
24
|
+
Message?: string | undefined;
|
|
25
|
+
Code?: string | undefined;
|
|
26
|
+
constructor(
|
|
27
|
+
opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export declare class HumanLoopQuotaExceededException extends __BaseException {
|
|
31
|
+
readonly name: "HumanLoopQuotaExceededException";
|
|
32
|
+
readonly $fault: "client";
|
|
33
|
+
ResourceType?: string | undefined;
|
|
34
|
+
QuotaCode?: string | undefined;
|
|
35
|
+
ServiceCode?: string | undefined;
|
|
36
|
+
Message?: string | undefined;
|
|
37
|
+
Code?: string | undefined;
|
|
38
|
+
constructor(
|
|
39
|
+
opts: __ExceptionOptionType<
|
|
40
|
+
HumanLoopQuotaExceededException,
|
|
41
|
+
__BaseException
|
|
42
|
+
>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export declare class InternalServerError extends __BaseException {
|
|
46
|
+
readonly name: "InternalServerError";
|
|
47
|
+
readonly $fault: "server";
|
|
48
|
+
Message?: string | undefined;
|
|
49
|
+
Code?: string | undefined;
|
|
50
|
+
constructor(
|
|
51
|
+
opts: __ExceptionOptionType<InternalServerError, __BaseException>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
55
|
+
readonly name: "InvalidParameterException";
|
|
56
|
+
readonly $fault: "client";
|
|
57
|
+
Message?: string | undefined;
|
|
58
|
+
Code?: string | undefined;
|
|
59
|
+
constructor(
|
|
60
|
+
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export declare class InvalidS3ObjectException extends __BaseException {
|
|
64
|
+
readonly name: "InvalidS3ObjectException";
|
|
65
|
+
readonly $fault: "client";
|
|
66
|
+
Message?: string | undefined;
|
|
67
|
+
Code?: string | undefined;
|
|
68
|
+
constructor(
|
|
69
|
+
opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
export declare class ProvisionedThroughputExceededException extends __BaseException {
|
|
73
|
+
readonly name: "ProvisionedThroughputExceededException";
|
|
74
|
+
readonly $fault: "client";
|
|
75
|
+
Message?: string | undefined;
|
|
76
|
+
Code?: string | undefined;
|
|
77
|
+
constructor(
|
|
78
|
+
opts: __ExceptionOptionType<
|
|
79
|
+
ProvisionedThroughputExceededException,
|
|
80
|
+
__BaseException
|
|
81
|
+
>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
export declare class ThrottlingException extends __BaseException {
|
|
85
|
+
readonly name: "ThrottlingException";
|
|
86
|
+
readonly $fault: "server";
|
|
87
|
+
Message?: string | undefined;
|
|
88
|
+
Code?: string | undefined;
|
|
89
|
+
constructor(
|
|
90
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
export declare class UnsupportedDocumentException extends __BaseException {
|
|
94
|
+
readonly name: "UnsupportedDocumentException";
|
|
95
|
+
readonly $fault: "client";
|
|
96
|
+
Message?: string | undefined;
|
|
97
|
+
Code?: string | undefined;
|
|
98
|
+
constructor(
|
|
99
|
+
opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
export declare class ConflictException extends __BaseException {
|
|
103
|
+
readonly name: "ConflictException";
|
|
104
|
+
readonly $fault: "client";
|
|
105
|
+
Message?: string | undefined;
|
|
106
|
+
Code?: string | undefined;
|
|
107
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
108
|
+
}
|
|
109
|
+
export declare class IdempotentParameterMismatchException extends __BaseException {
|
|
110
|
+
readonly name: "IdempotentParameterMismatchException";
|
|
111
|
+
readonly $fault: "client";
|
|
112
|
+
Message?: string | undefined;
|
|
113
|
+
Code?: string | undefined;
|
|
114
|
+
constructor(
|
|
115
|
+
opts: __ExceptionOptionType<
|
|
116
|
+
IdempotentParameterMismatchException,
|
|
117
|
+
__BaseException
|
|
118
|
+
>
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
export declare class LimitExceededException extends __BaseException {
|
|
122
|
+
readonly name: "LimitExceededException";
|
|
123
|
+
readonly $fault: "client";
|
|
124
|
+
Message?: string | undefined;
|
|
125
|
+
Code?: string | undefined;
|
|
126
|
+
constructor(
|
|
127
|
+
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
131
|
+
readonly name: "ServiceQuotaExceededException";
|
|
132
|
+
readonly $fault: "client";
|
|
133
|
+
Message?: string | undefined;
|
|
134
|
+
Code?: string | undefined;
|
|
135
|
+
constructor(
|
|
136
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
export declare class ValidationException extends __BaseException {
|
|
140
|
+
readonly name: "ValidationException";
|
|
141
|
+
readonly $fault: "client";
|
|
142
|
+
Message?: string | undefined;
|
|
143
|
+
Code?: string | undefined;
|
|
144
|
+
constructor(
|
|
145
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
export declare class InvalidKMSKeyException extends __BaseException {
|
|
149
|
+
readonly name: "InvalidKMSKeyException";
|
|
150
|
+
readonly $fault: "client";
|
|
151
|
+
Message?: string | undefined;
|
|
152
|
+
Code?: string | undefined;
|
|
153
|
+
constructor(
|
|
154
|
+
opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
158
|
+
readonly name: "ResourceNotFoundException";
|
|
159
|
+
readonly $fault: "client";
|
|
160
|
+
Message?: string | undefined;
|
|
161
|
+
Code?: string | undefined;
|
|
162
|
+
constructor(
|
|
163
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
export declare class InvalidJobIdException extends __BaseException {
|
|
167
|
+
readonly name: "InvalidJobIdException";
|
|
168
|
+
readonly $fault: "client";
|
|
169
|
+
Message?: string | undefined;
|
|
170
|
+
Code?: string | undefined;
|
|
171
|
+
constructor(
|
|
172
|
+
opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>
|
|
173
|
+
);
|
|
174
|
+
}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
+
import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
3
|
+
AdapterVersionStatus,
|
|
4
|
+
AutoUpdate,
|
|
5
|
+
BlockType,
|
|
6
|
+
ContentClassifier,
|
|
7
|
+
EntityType,
|
|
8
|
+
FeatureType,
|
|
9
|
+
JobStatus,
|
|
10
|
+
RelationshipType,
|
|
11
|
+
SelectionStatus,
|
|
12
|
+
TextType,
|
|
13
|
+
ValueType,
|
|
14
|
+
} from "./enums";
|
|
15
15
|
export interface Adapter {
|
|
16
16
|
AdapterId: string | undefined;
|
|
17
17
|
Pages?: string[] | undefined;
|
|
18
18
|
Version: string | undefined;
|
|
19
19
|
}
|
|
20
|
-
export declare const FeatureType: {
|
|
21
|
-
readonly FORMS: "FORMS";
|
|
22
|
-
readonly LAYOUT: "LAYOUT";
|
|
23
|
-
readonly QUERIES: "QUERIES";
|
|
24
|
-
readonly SIGNATURES: "SIGNATURES";
|
|
25
|
-
readonly TABLES: "TABLES";
|
|
26
|
-
};
|
|
27
|
-
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
28
20
|
export interface AdapterOverview {
|
|
29
21
|
AdapterId?: string | undefined;
|
|
30
22
|
AdapterName?: string | undefined;
|
|
@@ -52,15 +44,6 @@ export interface AdapterVersionEvaluationMetric {
|
|
|
52
44
|
AdapterVersion?: EvaluationMetric | undefined;
|
|
53
45
|
FeatureType?: FeatureType | undefined;
|
|
54
46
|
}
|
|
55
|
-
export declare const AdapterVersionStatus: {
|
|
56
|
-
readonly ACTIVE: "ACTIVE";
|
|
57
|
-
readonly AT_RISK: "AT_RISK";
|
|
58
|
-
readonly CREATION_ERROR: "CREATION_ERROR";
|
|
59
|
-
readonly CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS";
|
|
60
|
-
readonly DEPRECATED: "DEPRECATED";
|
|
61
|
-
};
|
|
62
|
-
export type AdapterVersionStatus =
|
|
63
|
-
(typeof AdapterVersionStatus)[keyof typeof AdapterVersionStatus];
|
|
64
47
|
export interface AdapterVersionOverview {
|
|
65
48
|
AdapterId?: string | undefined;
|
|
66
49
|
AdapterVersion?: string | undefined;
|
|
@@ -73,12 +56,6 @@ export interface Document {
|
|
|
73
56
|
Bytes?: Uint8Array | undefined;
|
|
74
57
|
S3Object?: S3Object | undefined;
|
|
75
58
|
}
|
|
76
|
-
export declare const ContentClassifier: {
|
|
77
|
-
readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
|
|
78
|
-
readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
|
|
79
|
-
};
|
|
80
|
-
export type ContentClassifier =
|
|
81
|
-
(typeof ContentClassifier)[keyof typeof ContentClassifier];
|
|
82
59
|
export interface HumanLoopDataAttributes {
|
|
83
60
|
ContentClassifiers?: ContentClassifier[] | undefined;
|
|
84
61
|
}
|
|
@@ -102,45 +79,6 @@ export interface AnalyzeDocumentRequest {
|
|
|
102
79
|
QueriesConfig?: QueriesConfig | undefined;
|
|
103
80
|
AdaptersConfig?: AdaptersConfig | undefined;
|
|
104
81
|
}
|
|
105
|
-
export declare const BlockType: {
|
|
106
|
-
readonly CELL: "CELL";
|
|
107
|
-
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
108
|
-
readonly LAYOUT_FIGURE: "LAYOUT_FIGURE";
|
|
109
|
-
readonly LAYOUT_FOOTER: "LAYOUT_FOOTER";
|
|
110
|
-
readonly LAYOUT_HEADER: "LAYOUT_HEADER";
|
|
111
|
-
readonly LAYOUT_KEY_VALUE: "LAYOUT_KEY_VALUE";
|
|
112
|
-
readonly LAYOUT_LIST: "LAYOUT_LIST";
|
|
113
|
-
readonly LAYOUT_PAGE_NUMBER: "LAYOUT_PAGE_NUMBER";
|
|
114
|
-
readonly LAYOUT_SECTION_HEADER: "LAYOUT_SECTION_HEADER";
|
|
115
|
-
readonly LAYOUT_TABLE: "LAYOUT_TABLE";
|
|
116
|
-
readonly LAYOUT_TEXT: "LAYOUT_TEXT";
|
|
117
|
-
readonly LAYOUT_TITLE: "LAYOUT_TITLE";
|
|
118
|
-
readonly LINE: "LINE";
|
|
119
|
-
readonly MERGED_CELL: "MERGED_CELL";
|
|
120
|
-
readonly PAGE: "PAGE";
|
|
121
|
-
readonly QUERY: "QUERY";
|
|
122
|
-
readonly QUERY_RESULT: "QUERY_RESULT";
|
|
123
|
-
readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
|
|
124
|
-
readonly SIGNATURE: "SIGNATURE";
|
|
125
|
-
readonly TABLE: "TABLE";
|
|
126
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
127
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
128
|
-
readonly TITLE: "TITLE";
|
|
129
|
-
readonly WORD: "WORD";
|
|
130
|
-
};
|
|
131
|
-
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
132
|
-
export declare const EntityType: {
|
|
133
|
-
readonly COLUMN_HEADER: "COLUMN_HEADER";
|
|
134
|
-
readonly KEY: "KEY";
|
|
135
|
-
readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
|
|
136
|
-
readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
|
|
137
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
138
|
-
readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
|
|
139
|
-
readonly TABLE_SUMMARY: "TABLE_SUMMARY";
|
|
140
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
141
|
-
readonly VALUE: "VALUE";
|
|
142
|
-
};
|
|
143
|
-
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
144
82
|
export interface BoundingBox {
|
|
145
83
|
Width?: number | undefined;
|
|
146
84
|
Height?: number | undefined;
|
|
@@ -156,34 +94,10 @@ export interface Geometry {
|
|
|
156
94
|
Polygon?: Point[] | undefined;
|
|
157
95
|
RotationAngle?: number | undefined;
|
|
158
96
|
}
|
|
159
|
-
export declare const RelationshipType: {
|
|
160
|
-
readonly ANSWER: "ANSWER";
|
|
161
|
-
readonly CHILD: "CHILD";
|
|
162
|
-
readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
|
|
163
|
-
readonly MERGED_CELL: "MERGED_CELL";
|
|
164
|
-
readonly TABLE: "TABLE";
|
|
165
|
-
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
166
|
-
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
167
|
-
readonly TITLE: "TITLE";
|
|
168
|
-
readonly VALUE: "VALUE";
|
|
169
|
-
};
|
|
170
|
-
export type RelationshipType =
|
|
171
|
-
(typeof RelationshipType)[keyof typeof RelationshipType];
|
|
172
97
|
export interface Relationship {
|
|
173
98
|
Type?: RelationshipType | undefined;
|
|
174
99
|
Ids?: string[] | undefined;
|
|
175
100
|
}
|
|
176
|
-
export declare const SelectionStatus: {
|
|
177
|
-
readonly NOT_SELECTED: "NOT_SELECTED";
|
|
178
|
-
readonly SELECTED: "SELECTED";
|
|
179
|
-
};
|
|
180
|
-
export type SelectionStatus =
|
|
181
|
-
(typeof SelectionStatus)[keyof typeof SelectionStatus];
|
|
182
|
-
export declare const TextType: {
|
|
183
|
-
readonly HANDWRITING: "HANDWRITING";
|
|
184
|
-
readonly PRINTED: "PRINTED";
|
|
185
|
-
};
|
|
186
|
-
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
187
101
|
export interface Block {
|
|
188
102
|
BlockType?: BlockType | undefined;
|
|
189
103
|
Confidence?: number | undefined;
|
|
@@ -218,96 +132,6 @@ export interface AnalyzeDocumentResponse {
|
|
|
218
132
|
HumanLoopActivationOutput?: HumanLoopActivationOutput | undefined;
|
|
219
133
|
AnalyzeDocumentModelVersion?: string | undefined;
|
|
220
134
|
}
|
|
221
|
-
export declare class BadDocumentException extends __BaseException {
|
|
222
|
-
readonly name: "BadDocumentException";
|
|
223
|
-
readonly $fault: "client";
|
|
224
|
-
Message?: string | undefined;
|
|
225
|
-
Code?: string | undefined;
|
|
226
|
-
constructor(
|
|
227
|
-
opts: __ExceptionOptionType<BadDocumentException, __BaseException>
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
export declare class DocumentTooLargeException extends __BaseException {
|
|
231
|
-
readonly name: "DocumentTooLargeException";
|
|
232
|
-
readonly $fault: "client";
|
|
233
|
-
Message?: string | undefined;
|
|
234
|
-
Code?: string | undefined;
|
|
235
|
-
constructor(
|
|
236
|
-
opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
export declare class HumanLoopQuotaExceededException extends __BaseException {
|
|
240
|
-
readonly name: "HumanLoopQuotaExceededException";
|
|
241
|
-
readonly $fault: "client";
|
|
242
|
-
ResourceType?: string | undefined;
|
|
243
|
-
QuotaCode?: string | undefined;
|
|
244
|
-
ServiceCode?: string | undefined;
|
|
245
|
-
Message?: string | undefined;
|
|
246
|
-
Code?: string | undefined;
|
|
247
|
-
constructor(
|
|
248
|
-
opts: __ExceptionOptionType<
|
|
249
|
-
HumanLoopQuotaExceededException,
|
|
250
|
-
__BaseException
|
|
251
|
-
>
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
export declare class InternalServerError extends __BaseException {
|
|
255
|
-
readonly name: "InternalServerError";
|
|
256
|
-
readonly $fault: "server";
|
|
257
|
-
Message?: string | undefined;
|
|
258
|
-
Code?: string | undefined;
|
|
259
|
-
constructor(
|
|
260
|
-
opts: __ExceptionOptionType<InternalServerError, __BaseException>
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
264
|
-
readonly name: "InvalidParameterException";
|
|
265
|
-
readonly $fault: "client";
|
|
266
|
-
Message?: string | undefined;
|
|
267
|
-
Code?: string | undefined;
|
|
268
|
-
constructor(
|
|
269
|
-
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
export declare class InvalidS3ObjectException extends __BaseException {
|
|
273
|
-
readonly name: "InvalidS3ObjectException";
|
|
274
|
-
readonly $fault: "client";
|
|
275
|
-
Message?: string | undefined;
|
|
276
|
-
Code?: string | undefined;
|
|
277
|
-
constructor(
|
|
278
|
-
opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
export declare class ProvisionedThroughputExceededException extends __BaseException {
|
|
282
|
-
readonly name: "ProvisionedThroughputExceededException";
|
|
283
|
-
readonly $fault: "client";
|
|
284
|
-
Message?: string | undefined;
|
|
285
|
-
Code?: string | undefined;
|
|
286
|
-
constructor(
|
|
287
|
-
opts: __ExceptionOptionType<
|
|
288
|
-
ProvisionedThroughputExceededException,
|
|
289
|
-
__BaseException
|
|
290
|
-
>
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
export declare class ThrottlingException extends __BaseException {
|
|
294
|
-
readonly name: "ThrottlingException";
|
|
295
|
-
readonly $fault: "server";
|
|
296
|
-
Message?: string | undefined;
|
|
297
|
-
Code?: string | undefined;
|
|
298
|
-
constructor(
|
|
299
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
export declare class UnsupportedDocumentException extends __BaseException {
|
|
303
|
-
readonly name: "UnsupportedDocumentException";
|
|
304
|
-
readonly $fault: "client";
|
|
305
|
-
Message?: string | undefined;
|
|
306
|
-
Code?: string | undefined;
|
|
307
|
-
constructor(
|
|
308
|
-
opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
135
|
export interface AnalyzeExpenseRequest {
|
|
312
136
|
Document: Document | undefined;
|
|
313
137
|
}
|
|
@@ -356,10 +180,6 @@ export interface AnalyzeExpenseResponse {
|
|
|
356
180
|
export interface AnalyzeIDRequest {
|
|
357
181
|
DocumentPages: Document[] | undefined;
|
|
358
182
|
}
|
|
359
|
-
export declare const ValueType: {
|
|
360
|
-
readonly DATE: "DATE";
|
|
361
|
-
};
|
|
362
|
-
export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
363
183
|
export interface NormalizedValue {
|
|
364
184
|
Value?: string | undefined;
|
|
365
185
|
ValueType?: ValueType | undefined;
|
|
@@ -383,18 +203,6 @@ export interface AnalyzeIDResponse {
|
|
|
383
203
|
DocumentMetadata?: DocumentMetadata | undefined;
|
|
384
204
|
AnalyzeIDModelVersion?: string | undefined;
|
|
385
205
|
}
|
|
386
|
-
export declare const AutoUpdate: {
|
|
387
|
-
readonly DISABLED: "DISABLED";
|
|
388
|
-
readonly ENABLED: "ENABLED";
|
|
389
|
-
};
|
|
390
|
-
export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
|
|
391
|
-
export declare class ConflictException extends __BaseException {
|
|
392
|
-
readonly name: "ConflictException";
|
|
393
|
-
readonly $fault: "client";
|
|
394
|
-
Message?: string | undefined;
|
|
395
|
-
Code?: string | undefined;
|
|
396
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
397
|
-
}
|
|
398
206
|
export interface CreateAdapterRequest {
|
|
399
207
|
AdapterName: string | undefined;
|
|
400
208
|
ClientRequestToken?: string | undefined;
|
|
@@ -406,45 +214,6 @@ export interface CreateAdapterRequest {
|
|
|
406
214
|
export interface CreateAdapterResponse {
|
|
407
215
|
AdapterId?: string | undefined;
|
|
408
216
|
}
|
|
409
|
-
export declare class IdempotentParameterMismatchException extends __BaseException {
|
|
410
|
-
readonly name: "IdempotentParameterMismatchException";
|
|
411
|
-
readonly $fault: "client";
|
|
412
|
-
Message?: string | undefined;
|
|
413
|
-
Code?: string | undefined;
|
|
414
|
-
constructor(
|
|
415
|
-
opts: __ExceptionOptionType<
|
|
416
|
-
IdempotentParameterMismatchException,
|
|
417
|
-
__BaseException
|
|
418
|
-
>
|
|
419
|
-
);
|
|
420
|
-
}
|
|
421
|
-
export declare class LimitExceededException extends __BaseException {
|
|
422
|
-
readonly name: "LimitExceededException";
|
|
423
|
-
readonly $fault: "client";
|
|
424
|
-
Message?: string | undefined;
|
|
425
|
-
Code?: string | undefined;
|
|
426
|
-
constructor(
|
|
427
|
-
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
428
|
-
);
|
|
429
|
-
}
|
|
430
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
431
|
-
readonly name: "ServiceQuotaExceededException";
|
|
432
|
-
readonly $fault: "client";
|
|
433
|
-
Message?: string | undefined;
|
|
434
|
-
Code?: string | undefined;
|
|
435
|
-
constructor(
|
|
436
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
437
|
-
);
|
|
438
|
-
}
|
|
439
|
-
export declare class ValidationException extends __BaseException {
|
|
440
|
-
readonly name: "ValidationException";
|
|
441
|
-
readonly $fault: "client";
|
|
442
|
-
Message?: string | undefined;
|
|
443
|
-
Code?: string | undefined;
|
|
444
|
-
constructor(
|
|
445
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
217
|
export interface OutputConfig {
|
|
449
218
|
S3Bucket: string | undefined;
|
|
450
219
|
S3Prefix?: string | undefined;
|
|
@@ -461,24 +230,6 @@ export interface CreateAdapterVersionResponse {
|
|
|
461
230
|
AdapterId?: string | undefined;
|
|
462
231
|
AdapterVersion?: string | undefined;
|
|
463
232
|
}
|
|
464
|
-
export declare class InvalidKMSKeyException extends __BaseException {
|
|
465
|
-
readonly name: "InvalidKMSKeyException";
|
|
466
|
-
readonly $fault: "client";
|
|
467
|
-
Message?: string | undefined;
|
|
468
|
-
Code?: string | undefined;
|
|
469
|
-
constructor(
|
|
470
|
-
opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
474
|
-
readonly name: "ResourceNotFoundException";
|
|
475
|
-
readonly $fault: "client";
|
|
476
|
-
Message?: string | undefined;
|
|
477
|
-
Code?: string | undefined;
|
|
478
|
-
constructor(
|
|
479
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
480
|
-
);
|
|
481
|
-
}
|
|
482
233
|
export interface DeleteAdapterRequest {
|
|
483
234
|
AdapterId: string | undefined;
|
|
484
235
|
}
|
|
@@ -573,13 +324,6 @@ export interface GetDocumentAnalysisRequest {
|
|
|
573
324
|
MaxResults?: number | undefined;
|
|
574
325
|
NextToken?: string | undefined;
|
|
575
326
|
}
|
|
576
|
-
export declare const JobStatus: {
|
|
577
|
-
readonly FAILED: "FAILED";
|
|
578
|
-
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
579
|
-
readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
|
|
580
|
-
readonly SUCCEEDED: "SUCCEEDED";
|
|
581
|
-
};
|
|
582
|
-
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
583
327
|
export interface Warning {
|
|
584
328
|
ErrorCode?: string | undefined;
|
|
585
329
|
Pages?: number[] | undefined;
|
|
@@ -593,15 +337,6 @@ export interface GetDocumentAnalysisResponse {
|
|
|
593
337
|
StatusMessage?: string | undefined;
|
|
594
338
|
AnalyzeDocumentModelVersion?: string | undefined;
|
|
595
339
|
}
|
|
596
|
-
export declare class InvalidJobIdException extends __BaseException {
|
|
597
|
-
readonly name: "InvalidJobIdException";
|
|
598
|
-
readonly $fault: "client";
|
|
599
|
-
Message?: string | undefined;
|
|
600
|
-
Code?: string | undefined;
|
|
601
|
-
constructor(
|
|
602
|
-
opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>
|
|
603
|
-
);
|
|
604
|
-
}
|
|
605
340
|
export interface GetDocumentTextDetectionRequest {
|
|
606
341
|
JobId: string | undefined;
|
|
607
342
|
MaxResults?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.936.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-textract",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.936.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.936.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.936.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.936.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.936.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.936.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.936.0",
|
|
30
|
+
"@aws-sdk/types": "3.936.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.936.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.936.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.936.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
-
"@smithy/core": "^3.18.
|
|
35
|
+
"@smithy/core": "^3.18.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
37
|
"@smithy/hash-node": "^4.2.5",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
43
43
|
"@smithy/middleware-stack": "^4.2.5",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.5",
|
|
45
45
|
"@smithy/node-http-handler": "^4.4.5",
|
|
46
46
|
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
47
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
48
48
|
"@smithy/types": "^4.9.0",
|
|
49
49
|
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
55
55
|
"@smithy/util-endpoints": "^3.2.5",
|
|
56
56
|
"@smithy/util-middleware": "^4.2.5",
|
|
57
57
|
"@smithy/util-retry": "^4.2.5",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|