@aws-sdk/client-textract 3.428.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.
@@ -96,7 +96,7 @@ export interface AdapterOverview {
96
96
  * @public
97
97
  * <p>The feature types that the adapter is operating on.</p>
98
98
  */
99
- FeatureTypes?: (FeatureType | string)[];
99
+ FeatureTypes?: FeatureType[];
100
100
  }
101
101
  /**
102
102
  * @public
@@ -198,7 +198,7 @@ export interface AdapterVersionEvaluationMetric {
198
198
  * @public
199
199
  * <p>Indicates the feature type being analyzed by a given adapter version.</p>
200
200
  */
201
- FeatureType?: FeatureType | string;
201
+ FeatureType?: FeatureType;
202
202
  }
203
203
  /**
204
204
  * @public
@@ -239,12 +239,12 @@ export interface AdapterVersionOverview {
239
239
  * @public
240
240
  * <p>The feature types that the adapter version is operating on.</p>
241
241
  */
242
- FeatureTypes?: (FeatureType | string)[];
242
+ FeatureTypes?: FeatureType[];
243
243
  /**
244
244
  * @public
245
245
  * <p>Contains information on the status of a given adapter version.</p>
246
246
  */
247
- Status?: AdapterVersionStatus | string;
247
+ Status?: AdapterVersionStatus;
248
248
  /**
249
249
  * @public
250
250
  * <p>A message explaining the status of a given adapter vesion.</p>
@@ -309,7 +309,7 @@ export interface HumanLoopDataAttributes {
309
309
  * <p>Sets whether the input image is free of personally identifiable information or adult
310
310
  * content.</p>
311
311
  */
312
- ContentClassifiers?: (ContentClassifier | string)[];
312
+ ContentClassifiers?: ContentClassifier[];
313
313
  }
314
314
  /**
315
315
  * @public
@@ -407,7 +407,7 @@ export interface AnalyzeDocumentRequest {
407
407
  * to return information about the layout of the document. All lines and words detected in the document are included in the response (including
408
408
  * text that isn't related to the value of <code>FeatureTypes</code>). </p>
409
409
  */
410
- FeatureTypes: (FeatureType | string)[] | undefined;
410
+ FeatureTypes: FeatureType[] | undefined;
411
411
  /**
412
412
  * @public
413
413
  * <p>Sets the configuration for the human in the loop workflow for analyzing
@@ -631,7 +631,7 @@ export interface Relationship {
631
631
  * </li>
632
632
  * </ul>
633
633
  */
634
- Type?: RelationshipType | string;
634
+ Type?: RelationshipType;
635
635
  /**
636
636
  * @public
637
637
  * <p>An
@@ -821,7 +821,7 @@ export interface Block {
821
821
  * </li>
822
822
  * </ul>
823
823
  */
824
- BlockType?: BlockType | string;
824
+ BlockType?: BlockType;
825
825
  /**
826
826
  * @public
827
827
  * <p>The confidence score that Amazon Textract has in the accuracy of the recognized text and
@@ -838,7 +838,7 @@ export interface Block {
838
838
  * <p>The kind of text that Amazon Textract has detected. Can check for handwritten text and
839
839
  * printed text.</p>
840
840
  */
841
- TextType?: TextType | string;
841
+ TextType?: TextType;
842
842
  /**
843
843
  * @public
844
844
  * <p>The row in which a table cell is located. The first row position is 1.
@@ -941,13 +941,13 @@ export interface Block {
941
941
  * <code>EntityTypes</code> isn't returned by <code>DetectDocumentText</code> and
942
942
  * <code>GetDocumentTextDetection</code>.</p>
943
943
  */
944
- EntityTypes?: (EntityType | string)[];
944
+ EntityTypes?: EntityType[];
945
945
  /**
946
946
  * @public
947
947
  * <p>The selection status of a selection element, such as an option button or check box.
948
948
  * </p>
949
949
  */
950
- SelectionStatus?: SelectionStatus | string;
950
+ SelectionStatus?: SelectionStatus;
951
951
  /**
952
952
  * @public
953
953
  * <p>The page on which a block was detected. <code>Page</code> is returned by synchronous and
@@ -1456,7 +1456,7 @@ export interface NormalizedValue {
1456
1456
  * @public
1457
1457
  * <p>The normalized type of the value detected. In this case, DATE.</p>
1458
1458
  */
1459
- ValueType?: ValueType | string;
1459
+ ValueType?: ValueType;
1460
1460
  }
1461
1461
  /**
1462
1462
  * @public
@@ -1594,12 +1594,12 @@ export interface CreateAdapterRequest {
1594
1594
  * types are: <code>QUERIES</code>
1595
1595
  * </p>
1596
1596
  */
1597
- FeatureTypes: (FeatureType | string)[] | undefined;
1597
+ FeatureTypes: FeatureType[] | undefined;
1598
1598
  /**
1599
1599
  * @public
1600
1600
  * <p>Controls whether or not the adapter should automatically update.</p>
1601
1601
  */
1602
- AutoUpdate?: AutoUpdate | string;
1602
+ AutoUpdate?: AutoUpdate;
1603
1603
  /**
1604
1604
  * @public
1605
1605
  * <p>A list of tags to be added to the adapter.</p>
@@ -1972,7 +1972,7 @@ export interface LendingDetection {
1972
1972
  * @public
1973
1973
  * <p>The selection status of a selection element, such as an option button or check box.</p>
1974
1974
  */
1975
- SelectionStatus?: SelectionStatus | string;
1975
+ SelectionStatus?: SelectionStatus;
1976
1976
  /**
1977
1977
  * @public
1978
1978
  * <p>Information about where the following items are located on a document page: detected
@@ -2098,12 +2098,12 @@ export interface GetAdapterResponse {
2098
2098
  * @public
2099
2099
  * <p>List of the targeted feature types for the requested adapter.</p>
2100
2100
  */
2101
- FeatureTypes?: (FeatureType | string)[];
2101
+ FeatureTypes?: FeatureType[];
2102
2102
  /**
2103
2103
  * @public
2104
2104
  * <p>Binary value indicating if the adapter is being automatically updated or not.</p>
2105
2105
  */
2106
- AutoUpdate?: AutoUpdate | string;
2106
+ AutoUpdate?: AutoUpdate;
2107
2107
  /**
2108
2108
  * @public
2109
2109
  * <p>A set of tags (key-value pairs) associated with the adapter that has been retrieved.</p>
@@ -2148,12 +2148,12 @@ export interface GetAdapterVersionResponse {
2148
2148
  * @public
2149
2149
  * <p>List of the targeted feature types for the requested adapter version.</p>
2150
2150
  */
2151
- FeatureTypes?: (FeatureType | string)[];
2151
+ FeatureTypes?: FeatureType[];
2152
2152
  /**
2153
2153
  * @public
2154
2154
  * <p>The status of the adapter version that has been requested.</p>
2155
2155
  */
2156
- Status?: AdapterVersionStatus | string;
2156
+ Status?: AdapterVersionStatus;
2157
2157
  /**
2158
2158
  * @public
2159
2159
  * <p>A message that describes the status of the requested adapter version.</p>
@@ -2274,7 +2274,7 @@ export interface GetDocumentAnalysisResponse {
2274
2274
  * @public
2275
2275
  * <p>The current status of the text detection job.</p>
2276
2276
  */
2277
- JobStatus?: JobStatus | string;
2277
+ JobStatus?: JobStatus;
2278
2278
  /**
2279
2279
  * @public
2280
2280
  * <p>If the response is truncated, Amazon Textract returns this token. You can use this token
@@ -2355,7 +2355,7 @@ export interface GetDocumentTextDetectionResponse {
2355
2355
  * @public
2356
2356
  * <p>The current status of the text detection job.</p>
2357
2357
  */
2358
- JobStatus?: JobStatus | string;
2358
+ JobStatus?: JobStatus;
2359
2359
  /**
2360
2360
  * @public
2361
2361
  * <p>If the response is truncated, Amazon Textract returns this token. You can use this token in
@@ -2422,7 +2422,7 @@ export interface GetExpenseAnalysisResponse {
2422
2422
  * @public
2423
2423
  * <p>The current status of the text detection job.</p>
2424
2424
  */
2425
- JobStatus?: JobStatus | string;
2425
+ JobStatus?: JobStatus;
2426
2426
  /**
2427
2427
  * @public
2428
2428
  * <p>If the response is truncated, Amazon Textract returns this token. You can use this token in
@@ -2547,7 +2547,7 @@ export interface GetLendingAnalysisResponse {
2547
2547
  * @public
2548
2548
  * <p> The current status of the lending analysis job.</p>
2549
2549
  */
2550
- JobStatus?: JobStatus | string;
2550
+ JobStatus?: JobStatus;
2551
2551
  /**
2552
2552
  * @public
2553
2553
  * <p>If the response is truncated, Amazon Textract returns this token.
@@ -2617,7 +2617,7 @@ export interface GetLendingAnalysisSummaryResponse {
2617
2617
  * @public
2618
2618
  * <p> The current status of the lending analysis job. </p>
2619
2619
  */
2620
- JobStatus?: JobStatus | string;
2620
+ JobStatus?: JobStatus;
2621
2621
  /**
2622
2622
  * @public
2623
2623
  * <p> Contains summary information for documents grouped by type.</p>
@@ -2784,7 +2784,7 @@ export interface StartDocumentAnalysisRequest {
2784
2784
  * included in the response (including text that isn't related to the value of
2785
2785
  * <code>FeatureTypes</code>). </p>
2786
2786
  */
2787
- FeatureTypes: (FeatureType | string)[] | undefined;
2787
+ FeatureTypes: FeatureType[] | undefined;
2788
2788
  /**
2789
2789
  * @public
2790
2790
  * <p>The idempotent token that you use to identify the start request. If you use the same
@@ -3104,7 +3104,7 @@ export interface UpdateAdapterRequest {
3104
3104
  * @public
3105
3105
  * <p>The new auto-update status to be applied to the adapter.</p>
3106
3106
  */
3107
- AutoUpdate?: AutoUpdate | string;
3107
+ AutoUpdate?: AutoUpdate;
3108
3108
  }
3109
3109
  /**
3110
3110
  * @public
@@ -3134,10 +3134,10 @@ export interface UpdateAdapterResponse {
3134
3134
  * @public
3135
3135
  * <p>List of the targeted feature types for the updated adapter.</p>
3136
3136
  */
3137
- FeatureTypes?: (FeatureType | string)[];
3137
+ FeatureTypes?: FeatureType[];
3138
3138
  /**
3139
3139
  * @public
3140
3140
  * <p>The auto-update status of the adapter that has been updated.</p>
3141
3141
  */
3142
- AutoUpdate?: AutoUpdate | string;
3142
+ AutoUpdate?: AutoUpdate;
3143
3143
  }
@@ -29,7 +29,7 @@ export interface AdapterOverview {
29
29
  AdapterId?: string;
30
30
  AdapterName?: string;
31
31
  CreationTime?: Date;
32
- FeatureTypes?: (FeatureType | string)[];
32
+ FeatureTypes?: FeatureType[];
33
33
  }
34
34
  export interface AdaptersConfig {
35
35
  Adapters: Adapter[] | undefined;
@@ -50,7 +50,7 @@ export interface EvaluationMetric {
50
50
  export interface AdapterVersionEvaluationMetric {
51
51
  Baseline?: EvaluationMetric;
52
52
  AdapterVersion?: EvaluationMetric;
53
- FeatureType?: FeatureType | string;
53
+ FeatureType?: FeatureType;
54
54
  }
55
55
  export declare const AdapterVersionStatus: {
56
56
  readonly ACTIVE: "ACTIVE";
@@ -65,8 +65,8 @@ export interface AdapterVersionOverview {
65
65
  AdapterId?: string;
66
66
  AdapterVersion?: string;
67
67
  CreationTime?: Date;
68
- FeatureTypes?: (FeatureType | string)[];
69
- Status?: AdapterVersionStatus | string;
68
+ FeatureTypes?: FeatureType[];
69
+ Status?: AdapterVersionStatus;
70
70
  StatusMessage?: string;
71
71
  }
72
72
  export interface Document {
@@ -80,7 +80,7 @@ export declare const ContentClassifier: {
80
80
  export type ContentClassifier =
81
81
  (typeof ContentClassifier)[keyof typeof ContentClassifier];
82
82
  export interface HumanLoopDataAttributes {
83
- ContentClassifiers?: (ContentClassifier | string)[];
83
+ ContentClassifiers?: ContentClassifier[];
84
84
  }
85
85
  export interface HumanLoopConfig {
86
86
  HumanLoopName: string | undefined;
@@ -97,7 +97,7 @@ export interface QueriesConfig {
97
97
  }
98
98
  export interface AnalyzeDocumentRequest {
99
99
  Document: Document | undefined;
100
- FeatureTypes: (FeatureType | string)[] | undefined;
100
+ FeatureTypes: FeatureType[] | undefined;
101
101
  HumanLoopConfig?: HumanLoopConfig;
102
102
  QueriesConfig?: QueriesConfig;
103
103
  AdaptersConfig?: AdaptersConfig;
@@ -169,7 +169,7 @@ export declare const RelationshipType: {
169
169
  export type RelationshipType =
170
170
  (typeof RelationshipType)[keyof typeof RelationshipType];
171
171
  export interface Relationship {
172
- Type?: RelationshipType | string;
172
+ Type?: RelationshipType;
173
173
  Ids?: string[];
174
174
  }
175
175
  export declare const SelectionStatus: {
@@ -184,10 +184,10 @@ export declare const TextType: {
184
184
  };
185
185
  export type TextType = (typeof TextType)[keyof typeof TextType];
186
186
  export interface Block {
187
- BlockType?: BlockType | string;
187
+ BlockType?: BlockType;
188
188
  Confidence?: number;
189
189
  Text?: string;
190
- TextType?: TextType | string;
190
+ TextType?: TextType;
191
191
  RowIndex?: number;
192
192
  ColumnIndex?: number;
193
193
  RowSpan?: number;
@@ -195,8 +195,8 @@ export interface Block {
195
195
  Geometry?: Geometry;
196
196
  Id?: string;
197
197
  Relationships?: Relationship[];
198
- EntityTypes?: (EntityType | string)[];
199
- SelectionStatus?: SelectionStatus | string;
198
+ EntityTypes?: EntityType[];
199
+ SelectionStatus?: SelectionStatus;
200
200
  Page?: number;
201
201
  Query?: Query;
202
202
  }
@@ -358,7 +358,7 @@ export declare const ValueType: {
358
358
  export type ValueType = (typeof ValueType)[keyof typeof ValueType];
359
359
  export interface NormalizedValue {
360
360
  Value?: string;
361
- ValueType?: ValueType | string;
361
+ ValueType?: ValueType;
362
362
  }
363
363
  export interface AnalyzeIDDetections {
364
364
  Text: string | undefined;
@@ -395,8 +395,8 @@ export interface CreateAdapterRequest {
395
395
  AdapterName: string | undefined;
396
396
  ClientRequestToken?: string;
397
397
  Description?: string;
398
- FeatureTypes: (FeatureType | string)[] | undefined;
399
- AutoUpdate?: AutoUpdate | string;
398
+ FeatureTypes: FeatureType[] | undefined;
399
+ AutoUpdate?: AutoUpdate;
400
400
  Tags?: Record<string, string>;
401
401
  }
402
402
  export interface CreateAdapterResponse {
@@ -513,7 +513,7 @@ export interface DocumentLocation {
513
513
  }
514
514
  export interface LendingDetection {
515
515
  Text?: string;
516
- SelectionStatus?: SelectionStatus | string;
516
+ SelectionStatus?: SelectionStatus;
517
517
  Geometry?: Geometry;
518
518
  Confidence?: number;
519
519
  }
@@ -543,8 +543,8 @@ export interface GetAdapterResponse {
543
543
  AdapterName?: string;
544
544
  CreationTime?: Date;
545
545
  Description?: string;
546
- FeatureTypes?: (FeatureType | string)[];
547
- AutoUpdate?: AutoUpdate | string;
546
+ FeatureTypes?: FeatureType[];
547
+ AutoUpdate?: AutoUpdate;
548
548
  Tags?: Record<string, string>;
549
549
  }
550
550
  export interface GetAdapterVersionRequest {
@@ -555,8 +555,8 @@ export interface GetAdapterVersionResponse {
555
555
  AdapterId?: string;
556
556
  AdapterVersion?: string;
557
557
  CreationTime?: Date;
558
- FeatureTypes?: (FeatureType | string)[];
559
- Status?: AdapterVersionStatus | string;
558
+ FeatureTypes?: FeatureType[];
559
+ Status?: AdapterVersionStatus;
560
560
  StatusMessage?: string;
561
561
  DatasetConfig?: AdapterVersionDatasetConfig;
562
562
  KMSKeyId?: string;
@@ -582,7 +582,7 @@ export interface Warning {
582
582
  }
583
583
  export interface GetDocumentAnalysisResponse {
584
584
  DocumentMetadata?: DocumentMetadata;
585
- JobStatus?: JobStatus | string;
585
+ JobStatus?: JobStatus;
586
586
  NextToken?: string;
587
587
  Blocks?: Block[];
588
588
  Warnings?: Warning[];
@@ -605,7 +605,7 @@ export interface GetDocumentTextDetectionRequest {
605
605
  }
606
606
  export interface GetDocumentTextDetectionResponse {
607
607
  DocumentMetadata?: DocumentMetadata;
608
- JobStatus?: JobStatus | string;
608
+ JobStatus?: JobStatus;
609
609
  NextToken?: string;
610
610
  Blocks?: Block[];
611
611
  Warnings?: Warning[];
@@ -619,7 +619,7 @@ export interface GetExpenseAnalysisRequest {
619
619
  }
620
620
  export interface GetExpenseAnalysisResponse {
621
621
  DocumentMetadata?: DocumentMetadata;
622
- JobStatus?: JobStatus | string;
622
+ JobStatus?: JobStatus;
623
623
  NextToken?: string;
624
624
  ExpenseDocuments?: ExpenseDocument[];
625
625
  Warnings?: Warning[];
@@ -646,7 +646,7 @@ export interface LendingResult {
646
646
  }
647
647
  export interface GetLendingAnalysisResponse {
648
648
  DocumentMetadata?: DocumentMetadata;
649
- JobStatus?: JobStatus | string;
649
+ JobStatus?: JobStatus;
650
650
  NextToken?: string;
651
651
  Results?: LendingResult[];
652
652
  Warnings?: Warning[];
@@ -662,7 +662,7 @@ export interface LendingSummary {
662
662
  }
663
663
  export interface GetLendingAnalysisSummaryResponse {
664
664
  DocumentMetadata?: DocumentMetadata;
665
- JobStatus?: JobStatus | string;
665
+ JobStatus?: JobStatus;
666
666
  Summary?: LendingSummary;
667
667
  Warnings?: Warning[];
668
668
  StatusMessage?: string;
@@ -701,7 +701,7 @@ export interface NotificationChannel {
701
701
  }
702
702
  export interface StartDocumentAnalysisRequest {
703
703
  DocumentLocation: DocumentLocation | undefined;
704
- FeatureTypes: (FeatureType | string)[] | undefined;
704
+ FeatureTypes: FeatureType[] | undefined;
705
705
  ClientRequestToken?: string;
706
706
  JobTag?: string;
707
707
  NotificationChannel?: NotificationChannel;
@@ -760,13 +760,13 @@ export interface UpdateAdapterRequest {
760
760
  AdapterId: string | undefined;
761
761
  Description?: string;
762
762
  AdapterName?: string;
763
- AutoUpdate?: AutoUpdate | string;
763
+ AutoUpdate?: AutoUpdate;
764
764
  }
765
765
  export interface UpdateAdapterResponse {
766
766
  AdapterId?: string;
767
767
  AdapterName?: string;
768
768
  CreationTime?: Date;
769
769
  Description?: string;
770
- FeatureTypes?: (FeatureType | string)[];
771
- AutoUpdate?: AutoUpdate | string;
770
+ FeatureTypes?: FeatureType[];
771
+ AutoUpdate?: AutoUpdate;
772
772
  }
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.428.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",