@aws-sdk/client-textract 3.427.0 → 3.429.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 (90) hide show
  1. package/README.md +103 -7
  2. package/dist-cjs/Textract.js +24 -0
  3. package/dist-cjs/commands/CreateAdapterCommand.js +51 -0
  4. package/dist-cjs/commands/CreateAdapterVersionCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteAdapterCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteAdapterVersionCommand.js +51 -0
  7. package/dist-cjs/commands/GetAdapterCommand.js +51 -0
  8. package/dist-cjs/commands/GetAdapterVersionCommand.js +51 -0
  9. package/dist-cjs/commands/ListAdapterVersionsCommand.js +51 -0
  10. package/dist-cjs/commands/ListAdaptersCommand.js +51 -0
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  12. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  13. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  14. package/dist-cjs/commands/UpdateAdapterCommand.js +51 -0
  15. package/dist-cjs/commands/index.js +12 -0
  16. package/dist-cjs/index.js +1 -0
  17. package/dist-cjs/models/models_0.js +92 -21
  18. package/dist-cjs/pagination/Interfaces.js +2 -0
  19. package/dist-cjs/pagination/ListAdapterVersionsPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListAdaptersPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +6 -0
  22. package/dist-cjs/protocols/Aws_json1_1.js +951 -40
  23. package/dist-es/Textract.js +24 -0
  24. package/dist-es/commands/CreateAdapterCommand.js +47 -0
  25. package/dist-es/commands/CreateAdapterVersionCommand.js +47 -0
  26. package/dist-es/commands/DeleteAdapterCommand.js +47 -0
  27. package/dist-es/commands/DeleteAdapterVersionCommand.js +47 -0
  28. package/dist-es/commands/GetAdapterCommand.js +47 -0
  29. package/dist-es/commands/GetAdapterVersionCommand.js +47 -0
  30. package/dist-es/commands/ListAdapterVersionsCommand.js +47 -0
  31. package/dist-es/commands/ListAdaptersCommand.js +47 -0
  32. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  33. package/dist-es/commands/TagResourceCommand.js +47 -0
  34. package/dist-es/commands/UntagResourceCommand.js +47 -0
  35. package/dist-es/commands/UpdateAdapterCommand.js +47 -0
  36. package/dist-es/commands/index.js +12 -0
  37. package/dist-es/index.js +1 -0
  38. package/dist-es/models/models_0.js +84 -17
  39. package/dist-es/pagination/Interfaces.js +1 -0
  40. package/dist-es/pagination/ListAdapterVersionsPaginator.js +25 -0
  41. package/dist-es/pagination/ListAdaptersPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_json1_1.js +927 -40
  44. package/dist-types/Textract.d.ts +84 -0
  45. package/dist-types/TextractClient.d.ts +14 -2
  46. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +11 -0
  47. package/dist-types/commands/CreateAdapterCommand.d.ts +128 -0
  48. package/dist-types/commands/CreateAdapterVersionCommand.d.ts +148 -0
  49. package/dist-types/commands/DeleteAdapterCommand.d.ts +101 -0
  50. package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +103 -0
  51. package/dist-types/commands/GetAdapterCommand.d.ts +111 -0
  52. package/dist-types/commands/GetAdapterVersionCommand.d.ts +140 -0
  53. package/dist-types/commands/ListAdapterVersionsCommand.d.ts +116 -0
  54. package/dist-types/commands/ListAdaptersCommand.d.ts +110 -0
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +102 -0
  56. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +11 -0
  57. package/dist-types/commands/TagResourceCommand.d.ts +104 -0
  58. package/dist-types/commands/UntagResourceCommand.d.ts +101 -0
  59. package/dist-types/commands/UpdateAdapterCommand.d.ts +114 -0
  60. package/dist-types/commands/index.d.ts +12 -0
  61. package/dist-types/index.d.ts +1 -0
  62. package/dist-types/models/models_0.d.ts +1002 -187
  63. package/dist-types/pagination/Interfaces.d.ts +8 -0
  64. package/dist-types/pagination/ListAdapterVersionsPaginator.d.ts +7 -0
  65. package/dist-types/pagination/ListAdaptersPaginator.d.ts +7 -0
  66. package/dist-types/pagination/index.d.ts +3 -0
  67. package/dist-types/protocols/Aws_json1_1.d.ts +108 -0
  68. package/dist-types/ts3.4/Textract.d.ts +204 -0
  69. package/dist-types/ts3.4/TextractClient.d.ts +74 -2
  70. package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +38 -0
  71. package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +42 -0
  72. package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +38 -0
  73. package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +35 -0
  75. package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +39 -0
  76. package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +39 -0
  77. package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +35 -0
  78. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  81. package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +38 -0
  82. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  83. package/dist-types/ts3.4/index.d.ts +1 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +252 -55
  85. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  86. package/dist-types/ts3.4/pagination/ListAdapterVersionsPaginator.d.ts +11 -0
  87. package/dist-types/ts3.4/pagination/ListAdaptersPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +144 -0
  90. package/package.json +34 -32
@@ -12,14 +12,10 @@ export declare class AccessDeniedException extends __BaseException {
12
12
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
13
13
  );
14
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;
15
+ export interface Adapter {
16
+ AdapterId: string | undefined;
17
+ Pages?: string[];
18
+ Version: string | undefined;
23
19
  }
24
20
  export declare const FeatureType: {
25
21
  readonly FORMS: "FORMS";
@@ -29,6 +25,54 @@ export declare const FeatureType: {
29
25
  readonly TABLES: "TABLES";
30
26
  };
31
27
  export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
28
+ export interface AdapterOverview {
29
+ AdapterId?: string;
30
+ AdapterName?: string;
31
+ CreationTime?: Date;
32
+ FeatureTypes?: FeatureType[];
33
+ }
34
+ export interface AdaptersConfig {
35
+ Adapters: Adapter[] | undefined;
36
+ }
37
+ export interface S3Object {
38
+ Bucket?: string;
39
+ Name?: string;
40
+ Version?: string;
41
+ }
42
+ export interface AdapterVersionDatasetConfig {
43
+ ManifestS3Object?: S3Object;
44
+ }
45
+ export interface EvaluationMetric {
46
+ F1Score?: number;
47
+ Precision?: number;
48
+ Recall?: number;
49
+ }
50
+ export interface AdapterVersionEvaluationMetric {
51
+ Baseline?: EvaluationMetric;
52
+ AdapterVersion?: EvaluationMetric;
53
+ FeatureType?: FeatureType;
54
+ }
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
+ export interface AdapterVersionOverview {
65
+ AdapterId?: string;
66
+ AdapterVersion?: string;
67
+ CreationTime?: Date;
68
+ FeatureTypes?: FeatureType[];
69
+ Status?: AdapterVersionStatus;
70
+ StatusMessage?: string;
71
+ }
72
+ export interface Document {
73
+ Bytes?: Uint8Array;
74
+ S3Object?: S3Object;
75
+ }
32
76
  export declare const ContentClassifier: {
33
77
  readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
34
78
  readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
@@ -36,7 +80,7 @@ export declare const ContentClassifier: {
36
80
  export type ContentClassifier =
37
81
  (typeof ContentClassifier)[keyof typeof ContentClassifier];
38
82
  export interface HumanLoopDataAttributes {
39
- ContentClassifiers?: (ContentClassifier | string)[];
83
+ ContentClassifiers?: ContentClassifier[];
40
84
  }
41
85
  export interface HumanLoopConfig {
42
86
  HumanLoopName: string | undefined;
@@ -53,9 +97,10 @@ export interface QueriesConfig {
53
97
  }
54
98
  export interface AnalyzeDocumentRequest {
55
99
  Document: Document | undefined;
56
- FeatureTypes: (FeatureType | string)[] | undefined;
100
+ FeatureTypes: FeatureType[] | undefined;
57
101
  HumanLoopConfig?: HumanLoopConfig;
58
102
  QueriesConfig?: QueriesConfig;
103
+ AdaptersConfig?: AdaptersConfig;
59
104
  }
60
105
  export declare const BlockType: {
61
106
  readonly CELL: "CELL";
@@ -124,7 +169,7 @@ export declare const RelationshipType: {
124
169
  export type RelationshipType =
125
170
  (typeof RelationshipType)[keyof typeof RelationshipType];
126
171
  export interface Relationship {
127
- Type?: RelationshipType | string;
172
+ Type?: RelationshipType;
128
173
  Ids?: string[];
129
174
  }
130
175
  export declare const SelectionStatus: {
@@ -139,10 +184,10 @@ export declare const TextType: {
139
184
  };
140
185
  export type TextType = (typeof TextType)[keyof typeof TextType];
141
186
  export interface Block {
142
- BlockType?: BlockType | string;
187
+ BlockType?: BlockType;
143
188
  Confidence?: number;
144
189
  Text?: string;
145
- TextType?: TextType | string;
190
+ TextType?: TextType;
146
191
  RowIndex?: number;
147
192
  ColumnIndex?: number;
148
193
  RowSpan?: number;
@@ -150,8 +195,8 @@ export interface Block {
150
195
  Geometry?: Geometry;
151
196
  Id?: string;
152
197
  Relationships?: Relationship[];
153
- EntityTypes?: (EntityType | string)[];
154
- SelectionStatus?: SelectionStatus | string;
198
+ EntityTypes?: EntityType[];
199
+ SelectionStatus?: SelectionStatus;
155
200
  Page?: number;
156
201
  Query?: Query;
157
202
  }
@@ -313,7 +358,7 @@ export declare const ValueType: {
313
358
  export type ValueType = (typeof ValueType)[keyof typeof ValueType];
314
359
  export interface NormalizedValue {
315
360
  Value?: string;
316
- ValueType?: ValueType | string;
361
+ ValueType?: ValueType;
317
362
  }
318
363
  export interface AnalyzeIDDetections {
319
364
  Text: string | undefined;
@@ -334,6 +379,111 @@ export interface AnalyzeIDResponse {
334
379
  DocumentMetadata?: DocumentMetadata;
335
380
  AnalyzeIDModelVersion?: string;
336
381
  }
382
+ export declare const AutoUpdate: {
383
+ readonly DISABLED: "DISABLED";
384
+ readonly ENABLED: "ENABLED";
385
+ };
386
+ export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
387
+ export declare class ConflictException extends __BaseException {
388
+ readonly name: "ConflictException";
389
+ readonly $fault: "client";
390
+ Message?: string;
391
+ Code?: string;
392
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
393
+ }
394
+ export interface CreateAdapterRequest {
395
+ AdapterName: string | undefined;
396
+ ClientRequestToken?: string;
397
+ Description?: string;
398
+ FeatureTypes: FeatureType[] | undefined;
399
+ AutoUpdate?: AutoUpdate;
400
+ Tags?: Record<string, string>;
401
+ }
402
+ export interface CreateAdapterResponse {
403
+ AdapterId?: string;
404
+ }
405
+ export declare class IdempotentParameterMismatchException extends __BaseException {
406
+ readonly name: "IdempotentParameterMismatchException";
407
+ readonly $fault: "client";
408
+ Message?: string;
409
+ Code?: string;
410
+ constructor(
411
+ opts: __ExceptionOptionType<
412
+ IdempotentParameterMismatchException,
413
+ __BaseException
414
+ >
415
+ );
416
+ }
417
+ export declare class LimitExceededException extends __BaseException {
418
+ readonly name: "LimitExceededException";
419
+ readonly $fault: "client";
420
+ Message?: string;
421
+ Code?: string;
422
+ constructor(
423
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
424
+ );
425
+ }
426
+ export declare class ServiceQuotaExceededException extends __BaseException {
427
+ readonly name: "ServiceQuotaExceededException";
428
+ readonly $fault: "client";
429
+ Message?: string;
430
+ Code?: string;
431
+ constructor(
432
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
433
+ );
434
+ }
435
+ export declare class ValidationException extends __BaseException {
436
+ readonly name: "ValidationException";
437
+ readonly $fault: "client";
438
+ Message?: string;
439
+ Code?: string;
440
+ constructor(
441
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
442
+ );
443
+ }
444
+ export interface OutputConfig {
445
+ S3Bucket: string | undefined;
446
+ S3Prefix?: string;
447
+ }
448
+ export interface CreateAdapterVersionRequest {
449
+ AdapterId: string | undefined;
450
+ ClientRequestToken?: string;
451
+ DatasetConfig: AdapterVersionDatasetConfig | undefined;
452
+ KMSKeyId?: string;
453
+ OutputConfig: OutputConfig | undefined;
454
+ Tags?: Record<string, string>;
455
+ }
456
+ export interface CreateAdapterVersionResponse {
457
+ AdapterId?: string;
458
+ AdapterVersion?: string;
459
+ }
460
+ export declare class InvalidKMSKeyException extends __BaseException {
461
+ readonly name: "InvalidKMSKeyException";
462
+ readonly $fault: "client";
463
+ Message?: string;
464
+ Code?: string;
465
+ constructor(
466
+ opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>
467
+ );
468
+ }
469
+ export declare class ResourceNotFoundException extends __BaseException {
470
+ readonly name: "ResourceNotFoundException";
471
+ readonly $fault: "client";
472
+ Message?: string;
473
+ Code?: string;
474
+ constructor(
475
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
476
+ );
477
+ }
478
+ export interface DeleteAdapterRequest {
479
+ AdapterId: string | undefined;
480
+ }
481
+ export interface DeleteAdapterResponse {}
482
+ export interface DeleteAdapterVersionRequest {
483
+ AdapterId: string | undefined;
484
+ AdapterVersion: string | undefined;
485
+ }
486
+ export interface DeleteAdapterVersionResponse {}
337
487
  export interface DetectDocumentTextRequest {
338
488
  Document: Document | undefined;
339
489
  }
@@ -363,7 +513,7 @@ export interface DocumentLocation {
363
513
  }
364
514
  export interface LendingDetection {
365
515
  Text?: string;
366
- SelectionStatus?: SelectionStatus | string;
516
+ SelectionStatus?: SelectionStatus;
367
517
  Geometry?: Geometry;
368
518
  Confidence?: number;
369
519
  }
@@ -385,6 +535,35 @@ export interface Extraction {
385
535
  ExpenseDocument?: ExpenseDocument;
386
536
  IdentityDocument?: IdentityDocument;
387
537
  }
538
+ export interface GetAdapterRequest {
539
+ AdapterId: string | undefined;
540
+ }
541
+ export interface GetAdapterResponse {
542
+ AdapterId?: string;
543
+ AdapterName?: string;
544
+ CreationTime?: Date;
545
+ Description?: string;
546
+ FeatureTypes?: FeatureType[];
547
+ AutoUpdate?: AutoUpdate;
548
+ Tags?: Record<string, string>;
549
+ }
550
+ export interface GetAdapterVersionRequest {
551
+ AdapterId: string | undefined;
552
+ AdapterVersion: string | undefined;
553
+ }
554
+ export interface GetAdapterVersionResponse {
555
+ AdapterId?: string;
556
+ AdapterVersion?: string;
557
+ CreationTime?: Date;
558
+ FeatureTypes?: FeatureType[];
559
+ Status?: AdapterVersionStatus;
560
+ StatusMessage?: string;
561
+ DatasetConfig?: AdapterVersionDatasetConfig;
562
+ KMSKeyId?: string;
563
+ OutputConfig?: OutputConfig;
564
+ EvaluationMetrics?: AdapterVersionEvaluationMetric[];
565
+ Tags?: Record<string, string>;
566
+ }
388
567
  export interface GetDocumentAnalysisRequest {
389
568
  JobId: string | undefined;
390
569
  MaxResults?: number;
@@ -403,7 +582,7 @@ export interface Warning {
403
582
  }
404
583
  export interface GetDocumentAnalysisResponse {
405
584
  DocumentMetadata?: DocumentMetadata;
406
- JobStatus?: JobStatus | string;
585
+ JobStatus?: JobStatus;
407
586
  NextToken?: string;
408
587
  Blocks?: Block[];
409
588
  Warnings?: Warning[];
@@ -419,15 +598,6 @@ export declare class InvalidJobIdException extends __BaseException {
419
598
  opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>
420
599
  );
421
600
  }
422
- export declare class InvalidKMSKeyException extends __BaseException {
423
- readonly name: "InvalidKMSKeyException";
424
- readonly $fault: "client";
425
- Message?: string;
426
- Code?: string;
427
- constructor(
428
- opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>
429
- );
430
- }
431
601
  export interface GetDocumentTextDetectionRequest {
432
602
  JobId: string | undefined;
433
603
  MaxResults?: number;
@@ -435,7 +605,7 @@ export interface GetDocumentTextDetectionRequest {
435
605
  }
436
606
  export interface GetDocumentTextDetectionResponse {
437
607
  DocumentMetadata?: DocumentMetadata;
438
- JobStatus?: JobStatus | string;
608
+ JobStatus?: JobStatus;
439
609
  NextToken?: string;
440
610
  Blocks?: Block[];
441
611
  Warnings?: Warning[];
@@ -449,7 +619,7 @@ export interface GetExpenseAnalysisRequest {
449
619
  }
450
620
  export interface GetExpenseAnalysisResponse {
451
621
  DocumentMetadata?: DocumentMetadata;
452
- JobStatus?: JobStatus | string;
622
+ JobStatus?: JobStatus;
453
623
  NextToken?: string;
454
624
  ExpenseDocuments?: ExpenseDocument[];
455
625
  Warnings?: Warning[];
@@ -476,7 +646,7 @@ export interface LendingResult {
476
646
  }
477
647
  export interface GetLendingAnalysisResponse {
478
648
  DocumentMetadata?: DocumentMetadata;
479
- JobStatus?: JobStatus | string;
649
+ JobStatus?: JobStatus;
480
650
  NextToken?: string;
481
651
  Results?: LendingResult[];
482
652
  Warnings?: Warning[];
@@ -492,50 +662,53 @@ export interface LendingSummary {
492
662
  }
493
663
  export interface GetLendingAnalysisSummaryResponse {
494
664
  DocumentMetadata?: DocumentMetadata;
495
- JobStatus?: JobStatus | string;
665
+ JobStatus?: JobStatus;
496
666
  Summary?: LendingSummary;
497
667
  Warnings?: Warning[];
498
668
  StatusMessage?: string;
499
669
  AnalyzeLendingModelVersion?: string;
500
670
  }
501
- export declare class IdempotentParameterMismatchException extends __BaseException {
502
- readonly name: "IdempotentParameterMismatchException";
503
- readonly $fault: "client";
504
- Message?: string;
505
- Code?: string;
506
- constructor(
507
- opts: __ExceptionOptionType<
508
- IdempotentParameterMismatchException,
509
- __BaseException
510
- >
511
- );
671
+ export interface ListAdaptersRequest {
672
+ AfterCreationTime?: Date;
673
+ BeforeCreationTime?: Date;
674
+ MaxResults?: number;
675
+ NextToken?: string;
512
676
  }
513
- export declare class LimitExceededException extends __BaseException {
514
- readonly name: "LimitExceededException";
515
- readonly $fault: "client";
516
- Message?: string;
517
- Code?: string;
518
- constructor(
519
- opts: __ExceptionOptionType<LimitExceededException, __BaseException>
520
- );
677
+ export interface ListAdaptersResponse {
678
+ Adapters?: AdapterOverview[];
679
+ NextToken?: string;
680
+ }
681
+ export interface ListAdapterVersionsRequest {
682
+ AdapterId?: string;
683
+ AfterCreationTime?: Date;
684
+ BeforeCreationTime?: Date;
685
+ MaxResults?: number;
686
+ NextToken?: string;
687
+ }
688
+ export interface ListAdapterVersionsResponse {
689
+ AdapterVersions?: AdapterVersionOverview[];
690
+ NextToken?: string;
691
+ }
692
+ export interface ListTagsForResourceRequest {
693
+ ResourceARN: string | undefined;
694
+ }
695
+ export interface ListTagsForResourceResponse {
696
+ Tags?: Record<string, string>;
521
697
  }
522
698
  export interface NotificationChannel {
523
699
  SNSTopicArn: string | undefined;
524
700
  RoleArn: string | undefined;
525
701
  }
526
- export interface OutputConfig {
527
- S3Bucket: string | undefined;
528
- S3Prefix?: string;
529
- }
530
702
  export interface StartDocumentAnalysisRequest {
531
703
  DocumentLocation: DocumentLocation | undefined;
532
- FeatureTypes: (FeatureType | string)[] | undefined;
704
+ FeatureTypes: FeatureType[] | undefined;
533
705
  ClientRequestToken?: string;
534
706
  JobTag?: string;
535
707
  NotificationChannel?: NotificationChannel;
536
708
  OutputConfig?: OutputConfig;
537
709
  KMSKeyId?: string;
538
710
  QueriesConfig?: QueriesConfig;
711
+ AdaptersConfig?: AdaptersConfig;
539
712
  }
540
713
  export interface StartDocumentAnalysisResponse {
541
714
  JobId?: string;
@@ -573,3 +746,27 @@ export interface StartLendingAnalysisRequest {
573
746
  export interface StartLendingAnalysisResponse {
574
747
  JobId?: string;
575
748
  }
749
+ export interface TagResourceRequest {
750
+ ResourceARN: string | undefined;
751
+ Tags: Record<string, string> | undefined;
752
+ }
753
+ export interface TagResourceResponse {}
754
+ export interface UntagResourceRequest {
755
+ ResourceARN: string | undefined;
756
+ TagKeys: string[] | undefined;
757
+ }
758
+ export interface UntagResourceResponse {}
759
+ export interface UpdateAdapterRequest {
760
+ AdapterId: string | undefined;
761
+ Description?: string;
762
+ AdapterName?: string;
763
+ AutoUpdate?: AutoUpdate;
764
+ }
765
+ export interface UpdateAdapterResponse {
766
+ AdapterId?: string;
767
+ AdapterName?: string;
768
+ CreationTime?: Date;
769
+ Description?: string;
770
+ FeatureTypes?: FeatureType[];
771
+ AutoUpdate?: AutoUpdate;
772
+ }
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { TextractClient } from "../TextractClient";
3
+ export interface TextractPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: TextractClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAdapterVersionsCommandInput,
4
+ ListAdapterVersionsCommandOutput,
5
+ } from "../commands/ListAdapterVersionsCommand";
6
+ import { TextractPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAdapterVersions(
8
+ config: TextractPaginationConfiguration,
9
+ input: ListAdapterVersionsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListAdapterVersionsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAdaptersCommandInput,
4
+ ListAdaptersCommandOutput,
5
+ } from "../commands/ListAdaptersCommand";
6
+ import { TextractPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAdapters(
8
+ config: TextractPaginationConfiguration,
9
+ input: ListAdaptersCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListAdaptersCommandOutput>;
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAdapterVersionsPaginator";
3
+ export * from "./ListAdaptersPaginator";
@@ -15,10 +15,34 @@ import {
15
15
  AnalyzeIDCommandInput,
16
16
  AnalyzeIDCommandOutput,
17
17
  } from "../commands/AnalyzeIDCommand";
18
+ import {
19
+ CreateAdapterCommandInput,
20
+ CreateAdapterCommandOutput,
21
+ } from "../commands/CreateAdapterCommand";
22
+ import {
23
+ CreateAdapterVersionCommandInput,
24
+ CreateAdapterVersionCommandOutput,
25
+ } from "../commands/CreateAdapterVersionCommand";
26
+ import {
27
+ DeleteAdapterCommandInput,
28
+ DeleteAdapterCommandOutput,
29
+ } from "../commands/DeleteAdapterCommand";
30
+ import {
31
+ DeleteAdapterVersionCommandInput,
32
+ DeleteAdapterVersionCommandOutput,
33
+ } from "../commands/DeleteAdapterVersionCommand";
18
34
  import {
19
35
  DetectDocumentTextCommandInput,
20
36
  DetectDocumentTextCommandOutput,
21
37
  } from "../commands/DetectDocumentTextCommand";
38
+ import {
39
+ GetAdapterCommandInput,
40
+ GetAdapterCommandOutput,
41
+ } from "../commands/GetAdapterCommand";
42
+ import {
43
+ GetAdapterVersionCommandInput,
44
+ GetAdapterVersionCommandOutput,
45
+ } from "../commands/GetAdapterVersionCommand";
22
46
  import {
23
47
  GetDocumentAnalysisCommandInput,
24
48
  GetDocumentAnalysisCommandOutput,
@@ -39,6 +63,18 @@ import {
39
63
  GetLendingAnalysisSummaryCommandInput,
40
64
  GetLendingAnalysisSummaryCommandOutput,
41
65
  } from "../commands/GetLendingAnalysisSummaryCommand";
66
+ import {
67
+ ListAdaptersCommandInput,
68
+ ListAdaptersCommandOutput,
69
+ } from "../commands/ListAdaptersCommand";
70
+ import {
71
+ ListAdapterVersionsCommandInput,
72
+ ListAdapterVersionsCommandOutput,
73
+ } from "../commands/ListAdapterVersionsCommand";
74
+ import {
75
+ ListTagsForResourceCommandInput,
76
+ ListTagsForResourceCommandOutput,
77
+ } from "../commands/ListTagsForResourceCommand";
42
78
  import {
43
79
  StartDocumentAnalysisCommandInput,
44
80
  StartDocumentAnalysisCommandOutput,
@@ -55,6 +91,18 @@ import {
55
91
  StartLendingAnalysisCommandInput,
56
92
  StartLendingAnalysisCommandOutput,
57
93
  } from "../commands/StartLendingAnalysisCommand";
94
+ import {
95
+ TagResourceCommandInput,
96
+ TagResourceCommandOutput,
97
+ } from "../commands/TagResourceCommand";
98
+ import {
99
+ UntagResourceCommandInput,
100
+ UntagResourceCommandOutput,
101
+ } from "../commands/UntagResourceCommand";
102
+ import {
103
+ UpdateAdapterCommandInput,
104
+ UpdateAdapterCommandOutput,
105
+ } from "../commands/UpdateAdapterCommand";
58
106
  export declare const se_AnalyzeDocumentCommand: (
59
107
  input: AnalyzeDocumentCommandInput,
60
108
  context: __SerdeContext
@@ -67,10 +115,34 @@ export declare const se_AnalyzeIDCommand: (
67
115
  input: AnalyzeIDCommandInput,
68
116
  context: __SerdeContext
69
117
  ) => Promise<__HttpRequest>;
118
+ export declare const se_CreateAdapterCommand: (
119
+ input: CreateAdapterCommandInput,
120
+ context: __SerdeContext
121
+ ) => Promise<__HttpRequest>;
122
+ export declare const se_CreateAdapterVersionCommand: (
123
+ input: CreateAdapterVersionCommandInput,
124
+ context: __SerdeContext
125
+ ) => Promise<__HttpRequest>;
126
+ export declare const se_DeleteAdapterCommand: (
127
+ input: DeleteAdapterCommandInput,
128
+ context: __SerdeContext
129
+ ) => Promise<__HttpRequest>;
130
+ export declare const se_DeleteAdapterVersionCommand: (
131
+ input: DeleteAdapterVersionCommandInput,
132
+ context: __SerdeContext
133
+ ) => Promise<__HttpRequest>;
70
134
  export declare const se_DetectDocumentTextCommand: (
71
135
  input: DetectDocumentTextCommandInput,
72
136
  context: __SerdeContext
73
137
  ) => Promise<__HttpRequest>;
138
+ export declare const se_GetAdapterCommand: (
139
+ input: GetAdapterCommandInput,
140
+ context: __SerdeContext
141
+ ) => Promise<__HttpRequest>;
142
+ export declare const se_GetAdapterVersionCommand: (
143
+ input: GetAdapterVersionCommandInput,
144
+ context: __SerdeContext
145
+ ) => Promise<__HttpRequest>;
74
146
  export declare const se_GetDocumentAnalysisCommand: (
75
147
  input: GetDocumentAnalysisCommandInput,
76
148
  context: __SerdeContext
@@ -91,6 +163,18 @@ export declare const se_GetLendingAnalysisSummaryCommand: (
91
163
  input: GetLendingAnalysisSummaryCommandInput,
92
164
  context: __SerdeContext
93
165
  ) => Promise<__HttpRequest>;
166
+ export declare const se_ListAdaptersCommand: (
167
+ input: ListAdaptersCommandInput,
168
+ context: __SerdeContext
169
+ ) => Promise<__HttpRequest>;
170
+ export declare const se_ListAdapterVersionsCommand: (
171
+ input: ListAdapterVersionsCommandInput,
172
+ context: __SerdeContext
173
+ ) => Promise<__HttpRequest>;
174
+ export declare const se_ListTagsForResourceCommand: (
175
+ input: ListTagsForResourceCommandInput,
176
+ context: __SerdeContext
177
+ ) => Promise<__HttpRequest>;
94
178
  export declare const se_StartDocumentAnalysisCommand: (
95
179
  input: StartDocumentAnalysisCommandInput,
96
180
  context: __SerdeContext
@@ -107,6 +191,18 @@ export declare const se_StartLendingAnalysisCommand: (
107
191
  input: StartLendingAnalysisCommandInput,
108
192
  context: __SerdeContext
109
193
  ) => Promise<__HttpRequest>;
194
+ export declare const se_TagResourceCommand: (
195
+ input: TagResourceCommandInput,
196
+ context: __SerdeContext
197
+ ) => Promise<__HttpRequest>;
198
+ export declare const se_UntagResourceCommand: (
199
+ input: UntagResourceCommandInput,
200
+ context: __SerdeContext
201
+ ) => Promise<__HttpRequest>;
202
+ export declare const se_UpdateAdapterCommand: (
203
+ input: UpdateAdapterCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
110
206
  export declare const de_AnalyzeDocumentCommand: (
111
207
  output: __HttpResponse,
112
208
  context: __SerdeContext
@@ -119,10 +215,34 @@ export declare const de_AnalyzeIDCommand: (
119
215
  output: __HttpResponse,
120
216
  context: __SerdeContext
121
217
  ) => Promise<AnalyzeIDCommandOutput>;
218
+ export declare const de_CreateAdapterCommand: (
219
+ output: __HttpResponse,
220
+ context: __SerdeContext
221
+ ) => Promise<CreateAdapterCommandOutput>;
222
+ export declare const de_CreateAdapterVersionCommand: (
223
+ output: __HttpResponse,
224
+ context: __SerdeContext
225
+ ) => Promise<CreateAdapterVersionCommandOutput>;
226
+ export declare const de_DeleteAdapterCommand: (
227
+ output: __HttpResponse,
228
+ context: __SerdeContext
229
+ ) => Promise<DeleteAdapterCommandOutput>;
230
+ export declare const de_DeleteAdapterVersionCommand: (
231
+ output: __HttpResponse,
232
+ context: __SerdeContext
233
+ ) => Promise<DeleteAdapterVersionCommandOutput>;
122
234
  export declare const de_DetectDocumentTextCommand: (
123
235
  output: __HttpResponse,
124
236
  context: __SerdeContext
125
237
  ) => Promise<DetectDocumentTextCommandOutput>;
238
+ export declare const de_GetAdapterCommand: (
239
+ output: __HttpResponse,
240
+ context: __SerdeContext
241
+ ) => Promise<GetAdapterCommandOutput>;
242
+ export declare const de_GetAdapterVersionCommand: (
243
+ output: __HttpResponse,
244
+ context: __SerdeContext
245
+ ) => Promise<GetAdapterVersionCommandOutput>;
126
246
  export declare const de_GetDocumentAnalysisCommand: (
127
247
  output: __HttpResponse,
128
248
  context: __SerdeContext
@@ -143,6 +263,18 @@ export declare const de_GetLendingAnalysisSummaryCommand: (
143
263
  output: __HttpResponse,
144
264
  context: __SerdeContext
145
265
  ) => Promise<GetLendingAnalysisSummaryCommandOutput>;
266
+ export declare const de_ListAdaptersCommand: (
267
+ output: __HttpResponse,
268
+ context: __SerdeContext
269
+ ) => Promise<ListAdaptersCommandOutput>;
270
+ export declare const de_ListAdapterVersionsCommand: (
271
+ output: __HttpResponse,
272
+ context: __SerdeContext
273
+ ) => Promise<ListAdapterVersionsCommandOutput>;
274
+ export declare const de_ListTagsForResourceCommand: (
275
+ output: __HttpResponse,
276
+ context: __SerdeContext
277
+ ) => Promise<ListTagsForResourceCommandOutput>;
146
278
  export declare const de_StartDocumentAnalysisCommand: (
147
279
  output: __HttpResponse,
148
280
  context: __SerdeContext
@@ -159,3 +291,15 @@ export declare const de_StartLendingAnalysisCommand: (
159
291
  output: __HttpResponse,
160
292
  context: __SerdeContext
161
293
  ) => Promise<StartLendingAnalysisCommandOutput>;
294
+ export declare const de_TagResourceCommand: (
295
+ output: __HttpResponse,
296
+ context: __SerdeContext
297
+ ) => Promise<TagResourceCommandOutput>;
298
+ export declare const de_UntagResourceCommand: (
299
+ output: __HttpResponse,
300
+ context: __SerdeContext
301
+ ) => Promise<UntagResourceCommandOutput>;
302
+ export declare const de_UpdateAdapterCommand: (
303
+ output: __HttpResponse,
304
+ context: __SerdeContext
305
+ ) => Promise<UpdateAdapterCommandOutput>;