@aws-sdk/client-textract 3.169.0 → 3.171.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 (25) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-types/ts3.4/Textract.d.ts +174 -55
  3. package/dist-types/ts3.4/TextractClient.d.ts +164 -83
  4. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +35 -17
  5. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +35 -17
  6. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +32 -17
  7. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +36 -17
  8. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +36 -17
  9. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +39 -17
  10. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +36 -17
  11. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +39 -17
  12. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +39 -17
  13. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +39 -17
  14. package/dist-types/ts3.4/commands/index.d.ts +10 -10
  15. package/dist-types/ts3.4/endpoints.d.ts +2 -2
  16. package/dist-types/ts3.4/index.d.ts +5 -5
  17. package/dist-types/ts3.4/models/TextractServiceException.d.ts +7 -6
  18. package/dist-types/ts3.4/models/index.d.ts +1 -1
  19. package/dist-types/ts3.4/models/models_0.d.ts +551 -691
  20. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +125 -32
  21. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +65 -38
  22. package/dist-types/ts3.4/runtimeConfig.d.ts +65 -38
  23. package/dist-types/ts3.4/runtimeConfig.native.d.ts +66 -37
  24. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +10 -11
  25. package/package.json +34 -34
@@ -1,691 +1,551 @@
1
- import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
- import { TextractServiceException as __BaseException } from "./TextractServiceException";
3
-
4
- export declare class AccessDeniedException extends __BaseException {
5
- readonly name: "AccessDeniedException";
6
- readonly $fault: "client";
7
- Message?: string;
8
- Code?: string;
9
-
10
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
11
- }
12
-
13
- export interface S3Object {
14
-
15
- Bucket?: string;
16
-
17
- Name?: string;
18
-
19
- Version?: string;
20
- }
21
-
22
- export interface Document {
23
-
24
- Bytes?: Uint8Array;
25
-
26
- S3Object?: S3Object;
27
- }
28
- export declare enum FeatureType {
29
- FORMS = "FORMS",
30
- QUERIES = "QUERIES",
31
- TABLES = "TABLES"
32
- }
33
- export declare enum ContentClassifier {
34
- FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
35
- FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
36
- }
37
-
38
- export interface HumanLoopDataAttributes {
39
-
40
- ContentClassifiers?: (ContentClassifier | string)[];
41
- }
42
-
43
- export interface HumanLoopConfig {
44
-
45
- HumanLoopName: string | undefined;
46
-
47
- FlowDefinitionArn: string | undefined;
48
-
49
- DataAttributes?: HumanLoopDataAttributes;
50
- }
51
-
52
- export interface Query {
53
-
54
- Text: string | undefined;
55
-
56
- Alias?: string;
57
-
58
- Pages?: string[];
59
- }
60
-
61
- export interface QueriesConfig {
62
-
63
- Queries: Query[] | undefined;
64
- }
65
- export interface AnalyzeDocumentRequest {
66
-
67
- Document: Document | undefined;
68
-
69
- FeatureTypes: (FeatureType | string)[] | undefined;
70
-
71
- HumanLoopConfig?: HumanLoopConfig;
72
-
73
- QueriesConfig?: QueriesConfig;
74
- }
75
- export declare enum BlockType {
76
- CELL = "CELL",
77
- KEY_VALUE_SET = "KEY_VALUE_SET",
78
- LINE = "LINE",
79
- MERGED_CELL = "MERGED_CELL",
80
- PAGE = "PAGE",
81
- QUERY = "QUERY",
82
- QUERY_RESULT = "QUERY_RESULT",
83
- SELECTION_ELEMENT = "SELECTION_ELEMENT",
84
- TABLE = "TABLE",
85
- TITLE = "TITLE",
86
- WORD = "WORD"
87
- }
88
- export declare enum EntityType {
89
- COLUMN_HEADER = "COLUMN_HEADER",
90
- KEY = "KEY",
91
- VALUE = "VALUE"
92
- }
93
-
94
- export interface BoundingBox {
95
-
96
- Width?: number;
97
-
98
- Height?: number;
99
-
100
- Left?: number;
101
-
102
- Top?: number;
103
- }
104
-
105
- export interface Point {
106
-
107
- X?: number;
108
-
109
- Y?: number;
110
- }
111
-
112
- export interface Geometry {
113
-
114
- BoundingBox?: BoundingBox;
115
-
116
- Polygon?: Point[];
117
- }
118
- export declare enum RelationshipType {
119
- ANSWER = "ANSWER",
120
- CHILD = "CHILD",
121
- COMPLEX_FEATURES = "COMPLEX_FEATURES",
122
- MERGED_CELL = "MERGED_CELL",
123
- TITLE = "TITLE",
124
- VALUE = "VALUE"
125
- }
126
-
127
- export interface Relationship {
128
-
129
- Type?: RelationshipType | string;
130
-
131
- Ids?: string[];
132
- }
133
- export declare enum SelectionStatus {
134
- NOT_SELECTED = "NOT_SELECTED",
135
- SELECTED = "SELECTED"
136
- }
137
- export declare enum TextType {
138
- HANDWRITING = "HANDWRITING",
139
- PRINTED = "PRINTED"
140
- }
141
-
142
- export interface Block {
143
-
144
- BlockType?: BlockType | string;
145
-
146
- Confidence?: number;
147
-
148
- Text?: string;
149
-
150
- TextType?: TextType | string;
151
-
152
- RowIndex?: number;
153
-
154
- ColumnIndex?: number;
155
-
156
- RowSpan?: number;
157
-
158
- ColumnSpan?: number;
159
-
160
- Geometry?: Geometry;
161
-
162
- Id?: string;
163
-
164
- Relationships?: Relationship[];
165
-
166
- EntityTypes?: (EntityType | string)[];
167
-
168
- SelectionStatus?: SelectionStatus | string;
169
-
170
- Page?: number;
171
-
172
- Query?: Query;
173
- }
174
-
175
- export interface DocumentMetadata {
176
-
177
- Pages?: number;
178
- }
179
-
180
- export interface HumanLoopActivationOutput {
181
-
182
- HumanLoopArn?: string;
183
-
184
- HumanLoopActivationReasons?: string[];
185
-
186
- HumanLoopActivationConditionsEvaluationResults?: __LazyJsonString | string;
187
- }
188
- export interface AnalyzeDocumentResponse {
189
-
190
- DocumentMetadata?: DocumentMetadata;
191
-
192
- Blocks?: Block[];
193
-
194
- HumanLoopActivationOutput?: HumanLoopActivationOutput;
195
-
196
- AnalyzeDocumentModelVersion?: string;
197
- }
198
-
199
- export declare class BadDocumentException extends __BaseException {
200
- readonly name: "BadDocumentException";
201
- readonly $fault: "client";
202
- Message?: string;
203
- Code?: string;
204
-
205
- constructor(opts: __ExceptionOptionType<BadDocumentException, __BaseException>);
206
- }
207
-
208
- export declare class DocumentTooLargeException extends __BaseException {
209
- readonly name: "DocumentTooLargeException";
210
- readonly $fault: "client";
211
- Message?: string;
212
- Code?: string;
213
-
214
- constructor(opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>);
215
- }
216
-
217
- export declare class HumanLoopQuotaExceededException extends __BaseException {
218
- readonly name: "HumanLoopQuotaExceededException";
219
- readonly $fault: "client";
220
-
221
- ResourceType?: string;
222
-
223
- QuotaCode?: string;
224
-
225
- ServiceCode?: string;
226
- Message?: string;
227
- Code?: string;
228
-
229
- constructor(opts: __ExceptionOptionType<HumanLoopQuotaExceededException, __BaseException>);
230
- }
231
-
232
- export declare class InternalServerError extends __BaseException {
233
- readonly name: "InternalServerError";
234
- readonly $fault: "server";
235
- Message?: string;
236
- Code?: string;
237
-
238
- constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
239
- }
240
-
241
- export declare class InvalidParameterException extends __BaseException {
242
- readonly name: "InvalidParameterException";
243
- readonly $fault: "client";
244
- Message?: string;
245
- Code?: string;
246
-
247
- constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
248
- }
249
-
250
- export declare class InvalidS3ObjectException extends __BaseException {
251
- readonly name: "InvalidS3ObjectException";
252
- readonly $fault: "client";
253
- Message?: string;
254
- Code?: string;
255
-
256
- constructor(opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>);
257
- }
258
-
259
- export declare class ProvisionedThroughputExceededException extends __BaseException {
260
- readonly name: "ProvisionedThroughputExceededException";
261
- readonly $fault: "client";
262
- Message?: string;
263
- Code?: string;
264
-
265
- constructor(opts: __ExceptionOptionType<ProvisionedThroughputExceededException, __BaseException>);
266
- }
267
-
268
- export declare class ThrottlingException extends __BaseException {
269
- readonly name: "ThrottlingException";
270
- readonly $fault: "server";
271
- Message?: string;
272
- Code?: string;
273
-
274
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
275
- }
276
-
277
- export declare class UnsupportedDocumentException extends __BaseException {
278
- readonly name: "UnsupportedDocumentException";
279
- readonly $fault: "client";
280
- Message?: string;
281
- Code?: string;
282
-
283
- constructor(opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>);
284
- }
285
- export interface AnalyzeExpenseRequest {
286
-
287
- Document: Document | undefined;
288
- }
289
-
290
- export interface ExpenseDetection {
291
-
292
- Text?: string;
293
-
294
- Geometry?: Geometry;
295
-
296
- Confidence?: number;
297
- }
298
-
299
- export interface ExpenseType {
300
-
301
- Text?: string;
302
-
303
- Confidence?: number;
304
- }
305
-
306
- export interface ExpenseField {
307
-
308
- Type?: ExpenseType;
309
-
310
- LabelDetection?: ExpenseDetection;
311
-
312
- ValueDetection?: ExpenseDetection;
313
-
314
- PageNumber?: number;
315
- }
316
-
317
- export interface LineItemFields {
318
-
319
- LineItemExpenseFields?: ExpenseField[];
320
- }
321
-
322
- export interface LineItemGroup {
323
-
324
- LineItemGroupIndex?: number;
325
-
326
- LineItems?: LineItemFields[];
327
- }
328
-
329
- export interface ExpenseDocument {
330
-
331
- ExpenseIndex?: number;
332
-
333
- SummaryFields?: ExpenseField[];
334
-
335
- LineItemGroups?: LineItemGroup[];
336
- }
337
- export interface AnalyzeExpenseResponse {
338
-
339
- DocumentMetadata?: DocumentMetadata;
340
-
341
- ExpenseDocuments?: ExpenseDocument[];
342
- }
343
- export interface AnalyzeIDRequest {
344
-
345
- DocumentPages: Document[] | undefined;
346
- }
347
- export declare enum ValueType {
348
- DATE = "DATE"
349
- }
350
-
351
- export interface NormalizedValue {
352
-
353
- Value?: string;
354
-
355
- ValueType?: ValueType | string;
356
- }
357
-
358
- export interface AnalyzeIDDetections {
359
-
360
- Text: string | undefined;
361
-
362
- NormalizedValue?: NormalizedValue;
363
-
364
- Confidence?: number;
365
- }
366
-
367
- export interface IdentityDocumentField {
368
-
369
- Type?: AnalyzeIDDetections;
370
-
371
- ValueDetection?: AnalyzeIDDetections;
372
- }
373
-
374
- export interface IdentityDocument {
375
-
376
- DocumentIndex?: number;
377
-
378
- IdentityDocumentFields?: IdentityDocumentField[];
379
- }
380
- export interface AnalyzeIDResponse {
381
-
382
- IdentityDocuments?: IdentityDocument[];
383
-
384
- DocumentMetadata?: DocumentMetadata;
385
-
386
- AnalyzeIDModelVersion?: string;
387
- }
388
- export interface DetectDocumentTextRequest {
389
-
390
- Document: Document | undefined;
391
- }
392
- export interface DetectDocumentTextResponse {
393
-
394
- DocumentMetadata?: DocumentMetadata;
395
-
396
- Blocks?: Block[];
397
-
398
- DetectDocumentTextModelVersion?: string;
399
- }
400
-
401
- export interface DocumentLocation {
402
-
403
- S3Object?: S3Object;
404
- }
405
- export interface GetDocumentAnalysisRequest {
406
-
407
- JobId: string | undefined;
408
-
409
- MaxResults?: number;
410
-
411
- NextToken?: string;
412
- }
413
- export declare enum JobStatus {
414
- FAILED = "FAILED",
415
- IN_PROGRESS = "IN_PROGRESS",
416
- PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
417
- SUCCEEDED = "SUCCEEDED"
418
- }
419
-
420
- export interface Warning {
421
-
422
- ErrorCode?: string;
423
-
424
- Pages?: number[];
425
- }
426
- export interface GetDocumentAnalysisResponse {
427
-
428
- DocumentMetadata?: DocumentMetadata;
429
-
430
- JobStatus?: JobStatus | string;
431
-
432
- NextToken?: string;
433
-
434
- Blocks?: Block[];
435
-
436
- Warnings?: Warning[];
437
-
438
- StatusMessage?: string;
439
-
440
- AnalyzeDocumentModelVersion?: string;
441
- }
442
-
443
- export declare class InvalidJobIdException extends __BaseException {
444
- readonly name: "InvalidJobIdException";
445
- readonly $fault: "client";
446
- Message?: string;
447
- Code?: string;
448
-
449
- constructor(opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>);
450
- }
451
-
452
- export declare class InvalidKMSKeyException extends __BaseException {
453
- readonly name: "InvalidKMSKeyException";
454
- readonly $fault: "client";
455
- Message?: string;
456
- Code?: string;
457
-
458
- constructor(opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>);
459
- }
460
- export interface GetDocumentTextDetectionRequest {
461
-
462
- JobId: string | undefined;
463
-
464
- MaxResults?: number;
465
-
466
- NextToken?: string;
467
- }
468
- export interface GetDocumentTextDetectionResponse {
469
-
470
- DocumentMetadata?: DocumentMetadata;
471
-
472
- JobStatus?: JobStatus | string;
473
-
474
- NextToken?: string;
475
-
476
- Blocks?: Block[];
477
-
478
- Warnings?: Warning[];
479
-
480
- StatusMessage?: string;
481
-
482
- DetectDocumentTextModelVersion?: string;
483
- }
484
- export interface GetExpenseAnalysisRequest {
485
-
486
- JobId: string | undefined;
487
-
488
- MaxResults?: number;
489
-
490
- NextToken?: string;
491
- }
492
- export interface GetExpenseAnalysisResponse {
493
-
494
- DocumentMetadata?: DocumentMetadata;
495
-
496
- JobStatus?: JobStatus | string;
497
-
498
- NextToken?: string;
499
-
500
- ExpenseDocuments?: ExpenseDocument[];
501
-
502
- Warnings?: Warning[];
503
-
504
- StatusMessage?: string;
505
-
506
- AnalyzeExpenseModelVersion?: string;
507
- }
508
-
509
- export declare class IdempotentParameterMismatchException extends __BaseException {
510
- readonly name: "IdempotentParameterMismatchException";
511
- readonly $fault: "client";
512
- Message?: string;
513
- Code?: string;
514
-
515
- constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
516
- }
517
-
518
- export declare class LimitExceededException extends __BaseException {
519
- readonly name: "LimitExceededException";
520
- readonly $fault: "client";
521
- Message?: string;
522
- Code?: string;
523
-
524
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
525
- }
526
-
527
- export interface NotificationChannel {
528
-
529
- SNSTopicArn: string | undefined;
530
-
531
- RoleArn: string | undefined;
532
- }
533
-
534
- export interface OutputConfig {
535
-
536
- S3Bucket: string | undefined;
537
-
538
- S3Prefix?: string;
539
- }
540
- export interface StartDocumentAnalysisRequest {
541
-
542
- DocumentLocation: DocumentLocation | undefined;
543
-
544
- FeatureTypes: (FeatureType | string)[] | undefined;
545
-
546
- ClientRequestToken?: string;
547
-
548
- JobTag?: string;
549
-
550
- NotificationChannel?: NotificationChannel;
551
-
552
- OutputConfig?: OutputConfig;
553
-
554
- KMSKeyId?: string;
555
-
556
- QueriesConfig?: QueriesConfig;
557
- }
558
- export interface StartDocumentAnalysisResponse {
559
-
560
- JobId?: string;
561
- }
562
- export interface StartDocumentTextDetectionRequest {
563
-
564
- DocumentLocation: DocumentLocation | undefined;
565
-
566
- ClientRequestToken?: string;
567
-
568
- JobTag?: string;
569
-
570
- NotificationChannel?: NotificationChannel;
571
-
572
- OutputConfig?: OutputConfig;
573
-
574
- KMSKeyId?: string;
575
- }
576
- export interface StartDocumentTextDetectionResponse {
577
-
578
- JobId?: string;
579
- }
580
- export interface StartExpenseAnalysisRequest {
581
-
582
- DocumentLocation: DocumentLocation | undefined;
583
-
584
- ClientRequestToken?: string;
585
-
586
- JobTag?: string;
587
-
588
- NotificationChannel?: NotificationChannel;
589
-
590
- OutputConfig?: OutputConfig;
591
-
592
- KMSKeyId?: string;
593
- }
594
- export interface StartExpenseAnalysisResponse {
595
-
596
- JobId?: string;
597
- }
598
-
599
- export declare const S3ObjectFilterSensitiveLog: (obj: S3Object) => any;
600
-
601
- export declare const DocumentFilterSensitiveLog: (obj: Document) => any;
602
-
603
- export declare const HumanLoopDataAttributesFilterSensitiveLog: (obj: HumanLoopDataAttributes) => any;
604
-
605
- export declare const HumanLoopConfigFilterSensitiveLog: (obj: HumanLoopConfig) => any;
606
-
607
- export declare const QueryFilterSensitiveLog: (obj: Query) => any;
608
-
609
- export declare const QueriesConfigFilterSensitiveLog: (obj: QueriesConfig) => any;
610
-
611
- export declare const AnalyzeDocumentRequestFilterSensitiveLog: (obj: AnalyzeDocumentRequest) => any;
612
-
613
- export declare const BoundingBoxFilterSensitiveLog: (obj: BoundingBox) => any;
614
-
615
- export declare const PointFilterSensitiveLog: (obj: Point) => any;
616
-
617
- export declare const GeometryFilterSensitiveLog: (obj: Geometry) => any;
618
-
619
- export declare const RelationshipFilterSensitiveLog: (obj: Relationship) => any;
620
-
621
- export declare const BlockFilterSensitiveLog: (obj: Block) => any;
622
-
623
- export declare const DocumentMetadataFilterSensitiveLog: (obj: DocumentMetadata) => any;
624
-
625
- export declare const HumanLoopActivationOutputFilterSensitiveLog: (obj: HumanLoopActivationOutput) => any;
626
-
627
- export declare const AnalyzeDocumentResponseFilterSensitiveLog: (obj: AnalyzeDocumentResponse) => any;
628
-
629
- export declare const AnalyzeExpenseRequestFilterSensitiveLog: (obj: AnalyzeExpenseRequest) => any;
630
-
631
- export declare const ExpenseDetectionFilterSensitiveLog: (obj: ExpenseDetection) => any;
632
-
633
- export declare const ExpenseTypeFilterSensitiveLog: (obj: ExpenseType) => any;
634
-
635
- export declare const ExpenseFieldFilterSensitiveLog: (obj: ExpenseField) => any;
636
-
637
- export declare const LineItemFieldsFilterSensitiveLog: (obj: LineItemFields) => any;
638
-
639
- export declare const LineItemGroupFilterSensitiveLog: (obj: LineItemGroup) => any;
640
-
641
- export declare const ExpenseDocumentFilterSensitiveLog: (obj: ExpenseDocument) => any;
642
-
643
- export declare const AnalyzeExpenseResponseFilterSensitiveLog: (obj: AnalyzeExpenseResponse) => any;
644
-
645
- export declare const AnalyzeIDRequestFilterSensitiveLog: (obj: AnalyzeIDRequest) => any;
646
-
647
- export declare const NormalizedValueFilterSensitiveLog: (obj: NormalizedValue) => any;
648
-
649
- export declare const AnalyzeIDDetectionsFilterSensitiveLog: (obj: AnalyzeIDDetections) => any;
650
-
651
- export declare const IdentityDocumentFieldFilterSensitiveLog: (obj: IdentityDocumentField) => any;
652
-
653
- export declare const IdentityDocumentFilterSensitiveLog: (obj: IdentityDocument) => any;
654
-
655
- export declare const AnalyzeIDResponseFilterSensitiveLog: (obj: AnalyzeIDResponse) => any;
656
-
657
- export declare const DetectDocumentTextRequestFilterSensitiveLog: (obj: DetectDocumentTextRequest) => any;
658
-
659
- export declare const DetectDocumentTextResponseFilterSensitiveLog: (obj: DetectDocumentTextResponse) => any;
660
-
661
- export declare const DocumentLocationFilterSensitiveLog: (obj: DocumentLocation) => any;
662
-
663
- export declare const GetDocumentAnalysisRequestFilterSensitiveLog: (obj: GetDocumentAnalysisRequest) => any;
664
-
665
- export declare const WarningFilterSensitiveLog: (obj: Warning) => any;
666
-
667
- export declare const GetDocumentAnalysisResponseFilterSensitiveLog: (obj: GetDocumentAnalysisResponse) => any;
668
-
669
- export declare const GetDocumentTextDetectionRequestFilterSensitiveLog: (obj: GetDocumentTextDetectionRequest) => any;
670
-
671
- export declare const GetDocumentTextDetectionResponseFilterSensitiveLog: (obj: GetDocumentTextDetectionResponse) => any;
672
-
673
- export declare const GetExpenseAnalysisRequestFilterSensitiveLog: (obj: GetExpenseAnalysisRequest) => any;
674
-
675
- export declare const GetExpenseAnalysisResponseFilterSensitiveLog: (obj: GetExpenseAnalysisResponse) => any;
676
-
677
- export declare const NotificationChannelFilterSensitiveLog: (obj: NotificationChannel) => any;
678
-
679
- export declare const OutputConfigFilterSensitiveLog: (obj: OutputConfig) => any;
680
-
681
- export declare const StartDocumentAnalysisRequestFilterSensitiveLog: (obj: StartDocumentAnalysisRequest) => any;
682
-
683
- export declare const StartDocumentAnalysisResponseFilterSensitiveLog: (obj: StartDocumentAnalysisResponse) => any;
684
-
685
- export declare const StartDocumentTextDetectionRequestFilterSensitiveLog: (obj: StartDocumentTextDetectionRequest) => any;
686
-
687
- export declare const StartDocumentTextDetectionResponseFilterSensitiveLog: (obj: StartDocumentTextDetectionResponse) => any;
688
-
689
- export declare const StartExpenseAnalysisRequestFilterSensitiveLog: (obj: StartExpenseAnalysisRequest) => any;
690
-
691
- export declare const StartExpenseAnalysisResponseFilterSensitiveLog: (obj: StartExpenseAnalysisResponse) => any;
1
+ import {
2
+ ExceptionOptionType as __ExceptionOptionType,
3
+ LazyJsonString as __LazyJsonString,
4
+ } from "@aws-sdk/smithy-client";
5
+ import { TextractServiceException as __BaseException } from "./TextractServiceException";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
+ Message?: string;
10
+ Code?: string;
11
+ constructor(
12
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
13
+ );
14
+ }
15
+ export interface S3Object {
16
+ Bucket?: string;
17
+ Name?: string;
18
+ Version?: string;
19
+ }
20
+ export interface Document {
21
+ Bytes?: Uint8Array;
22
+ S3Object?: S3Object;
23
+ }
24
+ export declare enum FeatureType {
25
+ FORMS = "FORMS",
26
+ QUERIES = "QUERIES",
27
+ TABLES = "TABLES",
28
+ }
29
+ export declare enum ContentClassifier {
30
+ FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
31
+ FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation",
32
+ }
33
+ export interface HumanLoopDataAttributes {
34
+ ContentClassifiers?: (ContentClassifier | string)[];
35
+ }
36
+ export interface HumanLoopConfig {
37
+ HumanLoopName: string | undefined;
38
+ FlowDefinitionArn: string | undefined;
39
+ DataAttributes?: HumanLoopDataAttributes;
40
+ }
41
+ export interface Query {
42
+ Text: string | undefined;
43
+ Alias?: string;
44
+ Pages?: string[];
45
+ }
46
+ export interface QueriesConfig {
47
+ Queries: Query[] | undefined;
48
+ }
49
+ export interface AnalyzeDocumentRequest {
50
+ Document: Document | undefined;
51
+ FeatureTypes: (FeatureType | string)[] | undefined;
52
+ HumanLoopConfig?: HumanLoopConfig;
53
+ QueriesConfig?: QueriesConfig;
54
+ }
55
+ export declare enum BlockType {
56
+ CELL = "CELL",
57
+ KEY_VALUE_SET = "KEY_VALUE_SET",
58
+ LINE = "LINE",
59
+ MERGED_CELL = "MERGED_CELL",
60
+ PAGE = "PAGE",
61
+ QUERY = "QUERY",
62
+ QUERY_RESULT = "QUERY_RESULT",
63
+ SELECTION_ELEMENT = "SELECTION_ELEMENT",
64
+ TABLE = "TABLE",
65
+ TITLE = "TITLE",
66
+ WORD = "WORD",
67
+ }
68
+ export declare enum EntityType {
69
+ COLUMN_HEADER = "COLUMN_HEADER",
70
+ KEY = "KEY",
71
+ VALUE = "VALUE",
72
+ }
73
+ export interface BoundingBox {
74
+ Width?: number;
75
+ Height?: number;
76
+ Left?: number;
77
+ Top?: number;
78
+ }
79
+ export interface Point {
80
+ X?: number;
81
+ Y?: number;
82
+ }
83
+ export interface Geometry {
84
+ BoundingBox?: BoundingBox;
85
+ Polygon?: Point[];
86
+ }
87
+ export declare enum RelationshipType {
88
+ ANSWER = "ANSWER",
89
+ CHILD = "CHILD",
90
+ COMPLEX_FEATURES = "COMPLEX_FEATURES",
91
+ MERGED_CELL = "MERGED_CELL",
92
+ TITLE = "TITLE",
93
+ VALUE = "VALUE",
94
+ }
95
+ export interface Relationship {
96
+ Type?: RelationshipType | string;
97
+ Ids?: string[];
98
+ }
99
+ export declare enum SelectionStatus {
100
+ NOT_SELECTED = "NOT_SELECTED",
101
+ SELECTED = "SELECTED",
102
+ }
103
+ export declare enum TextType {
104
+ HANDWRITING = "HANDWRITING",
105
+ PRINTED = "PRINTED",
106
+ }
107
+ export interface Block {
108
+ BlockType?: BlockType | string;
109
+ Confidence?: number;
110
+ Text?: string;
111
+ TextType?: TextType | string;
112
+ RowIndex?: number;
113
+ ColumnIndex?: number;
114
+ RowSpan?: number;
115
+ ColumnSpan?: number;
116
+ Geometry?: Geometry;
117
+ Id?: string;
118
+ Relationships?: Relationship[];
119
+ EntityTypes?: (EntityType | string)[];
120
+ SelectionStatus?: SelectionStatus | string;
121
+ Page?: number;
122
+ Query?: Query;
123
+ }
124
+ export interface DocumentMetadata {
125
+ Pages?: number;
126
+ }
127
+ export interface HumanLoopActivationOutput {
128
+ HumanLoopArn?: string;
129
+ HumanLoopActivationReasons?: string[];
130
+ HumanLoopActivationConditionsEvaluationResults?: __LazyJsonString | string;
131
+ }
132
+ export interface AnalyzeDocumentResponse {
133
+ DocumentMetadata?: DocumentMetadata;
134
+ Blocks?: Block[];
135
+ HumanLoopActivationOutput?: HumanLoopActivationOutput;
136
+ AnalyzeDocumentModelVersion?: string;
137
+ }
138
+ export declare class BadDocumentException extends __BaseException {
139
+ readonly name: "BadDocumentException";
140
+ readonly $fault: "client";
141
+ Message?: string;
142
+ Code?: string;
143
+ constructor(
144
+ opts: __ExceptionOptionType<BadDocumentException, __BaseException>
145
+ );
146
+ }
147
+ export declare class DocumentTooLargeException extends __BaseException {
148
+ readonly name: "DocumentTooLargeException";
149
+ readonly $fault: "client";
150
+ Message?: string;
151
+ Code?: string;
152
+ constructor(
153
+ opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>
154
+ );
155
+ }
156
+ export declare class HumanLoopQuotaExceededException extends __BaseException {
157
+ readonly name: "HumanLoopQuotaExceededException";
158
+ readonly $fault: "client";
159
+ ResourceType?: string;
160
+ QuotaCode?: string;
161
+ ServiceCode?: string;
162
+ Message?: string;
163
+ Code?: string;
164
+ constructor(
165
+ opts: __ExceptionOptionType<
166
+ HumanLoopQuotaExceededException,
167
+ __BaseException
168
+ >
169
+ );
170
+ }
171
+ export declare class InternalServerError extends __BaseException {
172
+ readonly name: "InternalServerError";
173
+ readonly $fault: "server";
174
+ Message?: string;
175
+ Code?: string;
176
+ constructor(
177
+ opts: __ExceptionOptionType<InternalServerError, __BaseException>
178
+ );
179
+ }
180
+ export declare class InvalidParameterException extends __BaseException {
181
+ readonly name: "InvalidParameterException";
182
+ readonly $fault: "client";
183
+ Message?: string;
184
+ Code?: string;
185
+ constructor(
186
+ opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
187
+ );
188
+ }
189
+ export declare class InvalidS3ObjectException extends __BaseException {
190
+ readonly name: "InvalidS3ObjectException";
191
+ readonly $fault: "client";
192
+ Message?: string;
193
+ Code?: string;
194
+ constructor(
195
+ opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>
196
+ );
197
+ }
198
+ export declare class ProvisionedThroughputExceededException extends __BaseException {
199
+ readonly name: "ProvisionedThroughputExceededException";
200
+ readonly $fault: "client";
201
+ Message?: string;
202
+ Code?: string;
203
+ constructor(
204
+ opts: __ExceptionOptionType<
205
+ ProvisionedThroughputExceededException,
206
+ __BaseException
207
+ >
208
+ );
209
+ }
210
+ export declare class ThrottlingException extends __BaseException {
211
+ readonly name: "ThrottlingException";
212
+ readonly $fault: "server";
213
+ Message?: string;
214
+ Code?: string;
215
+ constructor(
216
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
217
+ );
218
+ }
219
+ export declare class UnsupportedDocumentException extends __BaseException {
220
+ readonly name: "UnsupportedDocumentException";
221
+ readonly $fault: "client";
222
+ Message?: string;
223
+ Code?: string;
224
+ constructor(
225
+ opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>
226
+ );
227
+ }
228
+ export interface AnalyzeExpenseRequest {
229
+ Document: Document | undefined;
230
+ }
231
+ export interface ExpenseDetection {
232
+ Text?: string;
233
+ Geometry?: Geometry;
234
+ Confidence?: number;
235
+ }
236
+ export interface ExpenseType {
237
+ Text?: string;
238
+ Confidence?: number;
239
+ }
240
+ export interface ExpenseField {
241
+ Type?: ExpenseType;
242
+ LabelDetection?: ExpenseDetection;
243
+ ValueDetection?: ExpenseDetection;
244
+ PageNumber?: number;
245
+ }
246
+ export interface LineItemFields {
247
+ LineItemExpenseFields?: ExpenseField[];
248
+ }
249
+ export interface LineItemGroup {
250
+ LineItemGroupIndex?: number;
251
+ LineItems?: LineItemFields[];
252
+ }
253
+ export interface ExpenseDocument {
254
+ ExpenseIndex?: number;
255
+ SummaryFields?: ExpenseField[];
256
+ LineItemGroups?: LineItemGroup[];
257
+ }
258
+ export interface AnalyzeExpenseResponse {
259
+ DocumentMetadata?: DocumentMetadata;
260
+ ExpenseDocuments?: ExpenseDocument[];
261
+ }
262
+ export interface AnalyzeIDRequest {
263
+ DocumentPages: Document[] | undefined;
264
+ }
265
+ export declare enum ValueType {
266
+ DATE = "DATE",
267
+ }
268
+ export interface NormalizedValue {
269
+ Value?: string;
270
+ ValueType?: ValueType | string;
271
+ }
272
+ export interface AnalyzeIDDetections {
273
+ Text: string | undefined;
274
+ NormalizedValue?: NormalizedValue;
275
+ Confidence?: number;
276
+ }
277
+ export interface IdentityDocumentField {
278
+ Type?: AnalyzeIDDetections;
279
+ ValueDetection?: AnalyzeIDDetections;
280
+ }
281
+ export interface IdentityDocument {
282
+ DocumentIndex?: number;
283
+ IdentityDocumentFields?: IdentityDocumentField[];
284
+ }
285
+ export interface AnalyzeIDResponse {
286
+ IdentityDocuments?: IdentityDocument[];
287
+ DocumentMetadata?: DocumentMetadata;
288
+ AnalyzeIDModelVersion?: string;
289
+ }
290
+ export interface DetectDocumentTextRequest {
291
+ Document: Document | undefined;
292
+ }
293
+ export interface DetectDocumentTextResponse {
294
+ DocumentMetadata?: DocumentMetadata;
295
+ Blocks?: Block[];
296
+ DetectDocumentTextModelVersion?: string;
297
+ }
298
+ export interface DocumentLocation {
299
+ S3Object?: S3Object;
300
+ }
301
+ export interface GetDocumentAnalysisRequest {
302
+ JobId: string | undefined;
303
+ MaxResults?: number;
304
+ NextToken?: string;
305
+ }
306
+ export declare enum JobStatus {
307
+ FAILED = "FAILED",
308
+ IN_PROGRESS = "IN_PROGRESS",
309
+ PARTIAL_SUCCESS = "PARTIAL_SUCCESS",
310
+ SUCCEEDED = "SUCCEEDED",
311
+ }
312
+ export interface Warning {
313
+ ErrorCode?: string;
314
+ Pages?: number[];
315
+ }
316
+ export interface GetDocumentAnalysisResponse {
317
+ DocumentMetadata?: DocumentMetadata;
318
+ JobStatus?: JobStatus | string;
319
+ NextToken?: string;
320
+ Blocks?: Block[];
321
+ Warnings?: Warning[];
322
+ StatusMessage?: string;
323
+ AnalyzeDocumentModelVersion?: string;
324
+ }
325
+ export declare class InvalidJobIdException extends __BaseException {
326
+ readonly name: "InvalidJobIdException";
327
+ readonly $fault: "client";
328
+ Message?: string;
329
+ Code?: string;
330
+ constructor(
331
+ opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>
332
+ );
333
+ }
334
+ export declare class InvalidKMSKeyException extends __BaseException {
335
+ readonly name: "InvalidKMSKeyException";
336
+ readonly $fault: "client";
337
+ Message?: string;
338
+ Code?: string;
339
+ constructor(
340
+ opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>
341
+ );
342
+ }
343
+ export interface GetDocumentTextDetectionRequest {
344
+ JobId: string | undefined;
345
+ MaxResults?: number;
346
+ NextToken?: string;
347
+ }
348
+ export interface GetDocumentTextDetectionResponse {
349
+ DocumentMetadata?: DocumentMetadata;
350
+ JobStatus?: JobStatus | string;
351
+ NextToken?: string;
352
+ Blocks?: Block[];
353
+ Warnings?: Warning[];
354
+ StatusMessage?: string;
355
+ DetectDocumentTextModelVersion?: string;
356
+ }
357
+ export interface GetExpenseAnalysisRequest {
358
+ JobId: string | undefined;
359
+ MaxResults?: number;
360
+ NextToken?: string;
361
+ }
362
+ export interface GetExpenseAnalysisResponse {
363
+ DocumentMetadata?: DocumentMetadata;
364
+ JobStatus?: JobStatus | string;
365
+ NextToken?: string;
366
+ ExpenseDocuments?: ExpenseDocument[];
367
+ Warnings?: Warning[];
368
+ StatusMessage?: string;
369
+ AnalyzeExpenseModelVersion?: string;
370
+ }
371
+ export declare class IdempotentParameterMismatchException extends __BaseException {
372
+ readonly name: "IdempotentParameterMismatchException";
373
+ readonly $fault: "client";
374
+ Message?: string;
375
+ Code?: string;
376
+ constructor(
377
+ opts: __ExceptionOptionType<
378
+ IdempotentParameterMismatchException,
379
+ __BaseException
380
+ >
381
+ );
382
+ }
383
+ export declare class LimitExceededException extends __BaseException {
384
+ readonly name: "LimitExceededException";
385
+ readonly $fault: "client";
386
+ Message?: string;
387
+ Code?: string;
388
+ constructor(
389
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
390
+ );
391
+ }
392
+ export interface NotificationChannel {
393
+ SNSTopicArn: string | undefined;
394
+ RoleArn: string | undefined;
395
+ }
396
+ export interface OutputConfig {
397
+ S3Bucket: string | undefined;
398
+ S3Prefix?: string;
399
+ }
400
+ export interface StartDocumentAnalysisRequest {
401
+ DocumentLocation: DocumentLocation | undefined;
402
+ FeatureTypes: (FeatureType | string)[] | undefined;
403
+ ClientRequestToken?: string;
404
+ JobTag?: string;
405
+ NotificationChannel?: NotificationChannel;
406
+ OutputConfig?: OutputConfig;
407
+ KMSKeyId?: string;
408
+ QueriesConfig?: QueriesConfig;
409
+ }
410
+ export interface StartDocumentAnalysisResponse {
411
+ JobId?: string;
412
+ }
413
+ export interface StartDocumentTextDetectionRequest {
414
+ DocumentLocation: DocumentLocation | undefined;
415
+ ClientRequestToken?: string;
416
+ JobTag?: string;
417
+ NotificationChannel?: NotificationChannel;
418
+ OutputConfig?: OutputConfig;
419
+ KMSKeyId?: string;
420
+ }
421
+ export interface StartDocumentTextDetectionResponse {
422
+ JobId?: string;
423
+ }
424
+ export interface StartExpenseAnalysisRequest {
425
+ DocumentLocation: DocumentLocation | undefined;
426
+ ClientRequestToken?: string;
427
+ JobTag?: string;
428
+ NotificationChannel?: NotificationChannel;
429
+ OutputConfig?: OutputConfig;
430
+ KMSKeyId?: string;
431
+ }
432
+ export interface StartExpenseAnalysisResponse {
433
+ JobId?: string;
434
+ }
435
+ export declare const S3ObjectFilterSensitiveLog: (obj: S3Object) => any;
436
+ export declare const DocumentFilterSensitiveLog: (obj: Document) => any;
437
+ export declare const HumanLoopDataAttributesFilterSensitiveLog: (
438
+ obj: HumanLoopDataAttributes
439
+ ) => any;
440
+ export declare const HumanLoopConfigFilterSensitiveLog: (
441
+ obj: HumanLoopConfig
442
+ ) => any;
443
+ export declare const QueryFilterSensitiveLog: (obj: Query) => any;
444
+ export declare const QueriesConfigFilterSensitiveLog: (
445
+ obj: QueriesConfig
446
+ ) => any;
447
+ export declare const AnalyzeDocumentRequestFilterSensitiveLog: (
448
+ obj: AnalyzeDocumentRequest
449
+ ) => any;
450
+ export declare const BoundingBoxFilterSensitiveLog: (obj: BoundingBox) => any;
451
+ export declare const PointFilterSensitiveLog: (obj: Point) => any;
452
+ export declare const GeometryFilterSensitiveLog: (obj: Geometry) => any;
453
+ export declare const RelationshipFilterSensitiveLog: (obj: Relationship) => any;
454
+ export declare const BlockFilterSensitiveLog: (obj: Block) => any;
455
+ export declare const DocumentMetadataFilterSensitiveLog: (
456
+ obj: DocumentMetadata
457
+ ) => any;
458
+ export declare const HumanLoopActivationOutputFilterSensitiveLog: (
459
+ obj: HumanLoopActivationOutput
460
+ ) => any;
461
+ export declare const AnalyzeDocumentResponseFilterSensitiveLog: (
462
+ obj: AnalyzeDocumentResponse
463
+ ) => any;
464
+ export declare const AnalyzeExpenseRequestFilterSensitiveLog: (
465
+ obj: AnalyzeExpenseRequest
466
+ ) => any;
467
+ export declare const ExpenseDetectionFilterSensitiveLog: (
468
+ obj: ExpenseDetection
469
+ ) => any;
470
+ export declare const ExpenseTypeFilterSensitiveLog: (obj: ExpenseType) => any;
471
+ export declare const ExpenseFieldFilterSensitiveLog: (obj: ExpenseField) => any;
472
+ export declare const LineItemFieldsFilterSensitiveLog: (
473
+ obj: LineItemFields
474
+ ) => any;
475
+ export declare const LineItemGroupFilterSensitiveLog: (
476
+ obj: LineItemGroup
477
+ ) => any;
478
+ export declare const ExpenseDocumentFilterSensitiveLog: (
479
+ obj: ExpenseDocument
480
+ ) => any;
481
+ export declare const AnalyzeExpenseResponseFilterSensitiveLog: (
482
+ obj: AnalyzeExpenseResponse
483
+ ) => any;
484
+ export declare const AnalyzeIDRequestFilterSensitiveLog: (
485
+ obj: AnalyzeIDRequest
486
+ ) => any;
487
+ export declare const NormalizedValueFilterSensitiveLog: (
488
+ obj: NormalizedValue
489
+ ) => any;
490
+ export declare const AnalyzeIDDetectionsFilterSensitiveLog: (
491
+ obj: AnalyzeIDDetections
492
+ ) => any;
493
+ export declare const IdentityDocumentFieldFilterSensitiveLog: (
494
+ obj: IdentityDocumentField
495
+ ) => any;
496
+ export declare const IdentityDocumentFilterSensitiveLog: (
497
+ obj: IdentityDocument
498
+ ) => any;
499
+ export declare const AnalyzeIDResponseFilterSensitiveLog: (
500
+ obj: AnalyzeIDResponse
501
+ ) => any;
502
+ export declare const DetectDocumentTextRequestFilterSensitiveLog: (
503
+ obj: DetectDocumentTextRequest
504
+ ) => any;
505
+ export declare const DetectDocumentTextResponseFilterSensitiveLog: (
506
+ obj: DetectDocumentTextResponse
507
+ ) => any;
508
+ export declare const DocumentLocationFilterSensitiveLog: (
509
+ obj: DocumentLocation
510
+ ) => any;
511
+ export declare const GetDocumentAnalysisRequestFilterSensitiveLog: (
512
+ obj: GetDocumentAnalysisRequest
513
+ ) => any;
514
+ export declare const WarningFilterSensitiveLog: (obj: Warning) => any;
515
+ export declare const GetDocumentAnalysisResponseFilterSensitiveLog: (
516
+ obj: GetDocumentAnalysisResponse
517
+ ) => any;
518
+ export declare const GetDocumentTextDetectionRequestFilterSensitiveLog: (
519
+ obj: GetDocumentTextDetectionRequest
520
+ ) => any;
521
+ export declare const GetDocumentTextDetectionResponseFilterSensitiveLog: (
522
+ obj: GetDocumentTextDetectionResponse
523
+ ) => any;
524
+ export declare const GetExpenseAnalysisRequestFilterSensitiveLog: (
525
+ obj: GetExpenseAnalysisRequest
526
+ ) => any;
527
+ export declare const GetExpenseAnalysisResponseFilterSensitiveLog: (
528
+ obj: GetExpenseAnalysisResponse
529
+ ) => any;
530
+ export declare const NotificationChannelFilterSensitiveLog: (
531
+ obj: NotificationChannel
532
+ ) => any;
533
+ export declare const OutputConfigFilterSensitiveLog: (obj: OutputConfig) => any;
534
+ export declare const StartDocumentAnalysisRequestFilterSensitiveLog: (
535
+ obj: StartDocumentAnalysisRequest
536
+ ) => any;
537
+ export declare const StartDocumentAnalysisResponseFilterSensitiveLog: (
538
+ obj: StartDocumentAnalysisResponse
539
+ ) => any;
540
+ export declare const StartDocumentTextDetectionRequestFilterSensitiveLog: (
541
+ obj: StartDocumentTextDetectionRequest
542
+ ) => any;
543
+ export declare const StartDocumentTextDetectionResponseFilterSensitiveLog: (
544
+ obj: StartDocumentTextDetectionResponse
545
+ ) => any;
546
+ export declare const StartExpenseAnalysisRequestFilterSensitiveLog: (
547
+ obj: StartExpenseAnalysisRequest
548
+ ) => any;
549
+ export declare const StartExpenseAnalysisResponseFilterSensitiveLog: (
550
+ obj: StartExpenseAnalysisResponse
551
+ ) => any;