@aws-sdk/client-textract 3.830.0 → 3.837.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 CHANGED
@@ -1720,7 +1720,8 @@ var de_ExtractionList = /* @__PURE__ */ __name((output, context) => {
1720
1720
  var de_Geometry = /* @__PURE__ */ __name((output, context) => {
1721
1721
  return (0, import_smithy_client.take)(output, {
1722
1722
  BoundingBox: /* @__PURE__ */ __name((_) => de_BoundingBox(_, context), "BoundingBox"),
1723
- Polygon: /* @__PURE__ */ __name((_) => de_Polygon(_, context), "Polygon")
1723
+ Polygon: /* @__PURE__ */ __name((_) => de_Polygon(_, context), "Polygon"),
1724
+ RotationAngle: import_smithy_client.limitedParseFloat32
1724
1725
  });
1725
1726
  }, "de_Geometry");
1726
1727
  var de_GetAdapterResponse = /* @__PURE__ */ __name((output, context) => {
@@ -983,6 +983,7 @@ const de_Geometry = (output, context) => {
983
983
  return take(output, {
984
984
  BoundingBox: (_) => de_BoundingBox(_, context),
985
985
  Polygon: (_) => de_Polygon(_, context),
986
+ RotationAngle: __limitedParseFloat32,
986
987
  });
987
988
  };
988
989
  const de_GetAdapterResponse = (output, context) => {
@@ -153,6 +153,7 @@ declare const AnalyzeDocumentCommand_base: {
153
153
  * // Y: Number("float"),
154
154
  * // },
155
155
  * // ],
156
+ * // RotationAngle: Number("float"),
156
157
  * // },
157
158
  * // Id: "STRING_VALUE",
158
159
  * // Relationships: [ // RelationshipList
@@ -91,6 +91,7 @@ declare const AnalyzeExpenseCommand_base: {
91
91
  * // Y: Number("float"),
92
92
  * // },
93
93
  * // ],
94
+ * // RotationAngle: Number("float"),
94
95
  * // },
95
96
  * // Confidence: Number("float"),
96
97
  * // },
@@ -109,6 +110,7 @@ declare const AnalyzeExpenseCommand_base: {
109
110
  * // Y: Number("float"),
110
111
  * // },
111
112
  * // ],
113
+ * // RotationAngle: Number("float"),
112
114
  * // },
113
115
  * // Confidence: Number("float"),
114
116
  * // },
@@ -153,6 +155,7 @@ declare const AnalyzeExpenseCommand_base: {
153
155
  * // Y: Number("float"),
154
156
  * // },
155
157
  * // ],
158
+ * // RotationAngle: Number("float"),
156
159
  * // },
157
160
  * // Confidence: Number("float"),
158
161
  * // },
@@ -171,6 +174,7 @@ declare const AnalyzeExpenseCommand_base: {
171
174
  * // Y: Number("float"),
172
175
  * // },
173
176
  * // ],
177
+ * // RotationAngle: Number("float"),
174
178
  * // },
175
179
  * // Confidence: Number("float"),
176
180
  * // },
@@ -98,6 +98,7 @@ declare const AnalyzeIDCommand_base: {
98
98
  * // Y: Number("float"),
99
99
  * // },
100
100
  * // ],
101
+ * // RotationAngle: Number("float"),
101
102
  * // },
102
103
  * // Id: "STRING_VALUE",
103
104
  * // Relationships: [ // RelationshipList
@@ -83,6 +83,7 @@ declare const DetectDocumentTextCommand_base: {
83
83
  * // Y: Number("float"),
84
84
  * // },
85
85
  * // ],
86
+ * // RotationAngle: Number("float"),
86
87
  * // },
87
88
  * // Id: "STRING_VALUE",
88
89
  * // Relationships: [ // RelationshipList
@@ -130,6 +130,7 @@ declare const GetDocumentAnalysisCommand_base: {
130
130
  * // Y: Number("float"),
131
131
  * // },
132
132
  * // ],
133
+ * // RotationAngle: Number("float"),
133
134
  * // },
134
135
  * // Id: "STRING_VALUE",
135
136
  * // Relationships: [ // RelationshipList
@@ -93,6 +93,7 @@ declare const GetDocumentTextDetectionCommand_base: {
93
93
  * // Y: Number("float"),
94
94
  * // },
95
95
  * // ],
96
+ * // RotationAngle: Number("float"),
96
97
  * // },
97
98
  * // Id: "STRING_VALUE",
98
99
  * // Relationships: [ // RelationshipList
@@ -87,6 +87,7 @@ declare const GetExpenseAnalysisCommand_base: {
87
87
  * // Y: Number("float"),
88
88
  * // },
89
89
  * // ],
90
+ * // RotationAngle: Number("float"),
90
91
  * // },
91
92
  * // Confidence: Number("float"),
92
93
  * // },
@@ -105,6 +106,7 @@ declare const GetExpenseAnalysisCommand_base: {
105
106
  * // Y: Number("float"),
106
107
  * // },
107
108
  * // ],
109
+ * // RotationAngle: Number("float"),
108
110
  * // },
109
111
  * // Confidence: Number("float"),
110
112
  * // },
@@ -149,6 +151,7 @@ declare const GetExpenseAnalysisCommand_base: {
149
151
  * // Y: Number("float"),
150
152
  * // },
151
153
  * // ],
154
+ * // RotationAngle: Number("float"),
152
155
  * // },
153
156
  * // Confidence: Number("float"),
154
157
  * // },
@@ -167,6 +170,7 @@ declare const GetExpenseAnalysisCommand_base: {
167
170
  * // Y: Number("float"),
168
171
  * // },
169
172
  * // ],
173
+ * // RotationAngle: Number("float"),
170
174
  * // },
171
175
  * // Confidence: Number("float"),
172
176
  * // },
@@ -96,6 +96,7 @@ declare const GetLendingAnalysisCommand_base: {
96
96
  * // Y: Number("float"),
97
97
  * // },
98
98
  * // ],
99
+ * // RotationAngle: Number("float"),
99
100
  * // },
100
101
  * // Confidence: Number("float"),
101
102
  * // },
@@ -116,6 +117,7 @@ declare const GetLendingAnalysisCommand_base: {
116
117
  * // Y: Number("float"),
117
118
  * // },
118
119
  * // ],
120
+ * // RotationAngle: Number("float"),
119
121
  * // },
120
122
  * // Confidence: Number("float"),
121
123
  * // },
@@ -35,7 +35,7 @@ declare const StartDocumentTextDetectionCommand_base: {
35
35
  * of the document.
36
36
  * </p>
37
37
  * <p>
38
- * <code>StartTextDetection</code> returns a job identifier
38
+ * <code>StartDocumentTextDetection</code> returns a job identifier
39
39
  * (<code>JobId</code>) that you use to get the results of the operation. When text
40
40
  * detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)
41
41
  * topic that you specify in <code>NotificationChannel</code>. To get the results of the text
@@ -8,7 +8,7 @@ export interface ClientInputEndpointParameters {
8
8
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  }
11
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
11
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
@@ -128,8 +128,7 @@ export interface S3Object {
128
128
  */
129
129
  Bucket?: string | undefined;
130
130
  /**
131
- * <p>The file name of the input document. Synchronous operations can use image files that are
132
- * in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.</p>
131
+ * <p>The file name of the input document. Image files may be in PDF, TIFF, JPEG, or PNG format.</p>
133
132
  * @public
134
133
  */
135
134
  Name?: string | undefined;
@@ -559,6 +558,11 @@ export interface Geometry {
559
558
  * @public
560
559
  */
561
560
  Polygon?: Point[] | undefined;
561
+ /**
562
+ * <p>Provides a numerical value corresponding to the rotation of the text.</p>
563
+ * @public
564
+ */
565
+ RotationAngle?: number | undefined;
562
566
  }
563
567
  /**
564
568
  * @public
@@ -696,7 +700,7 @@ export interface Block {
696
700
  * </li>
697
701
  * <li>
698
702
  * <p>
699
- * <i>LINE</i> - A string of tab-delimited, contiguous words that are
703
+ * <i>LINE</i> - A string of space-delimited, contiguous words that are
700
704
  * detected on a document page.</p>
701
705
  * </li>
702
706
  * </ul>
@@ -16,7 +16,10 @@ export interface ClientInputEndpointParameters {
16
16
  | EndpointV2
17
17
  | Provider<EndpointV2>;
18
18
  }
19
- export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
19
+ export type ClientResolvedEndpointParameters = Pick<
20
+ ClientInputEndpointParameters,
21
+ Exclude<keyof ClientInputEndpointParameters, "endpoint">
22
+ > & {
20
23
  defaultSigningName: string;
21
24
  };
22
25
  export declare const resolveClientEndpointParameters: <T>(
@@ -154,6 +154,7 @@ export interface Point {
154
154
  export interface Geometry {
155
155
  BoundingBox?: BoundingBox | undefined;
156
156
  Polygon?: Point[] | undefined;
157
+ RotationAngle?: number | undefined;
157
158
  }
158
159
  export declare const RelationshipType: {
159
160
  readonly ANSWER: "ANSWER";
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.830.0",
4
+ "version": "3.837.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,41 +20,41 @@
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.826.0",
24
- "@aws-sdk/credential-provider-node": "3.830.0",
23
+ "@aws-sdk/core": "3.835.0",
24
+ "@aws-sdk/credential-provider-node": "3.835.0",
25
25
  "@aws-sdk/middleware-host-header": "3.821.0",
26
26
  "@aws-sdk/middleware-logger": "3.821.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
28
- "@aws-sdk/middleware-user-agent": "3.828.0",
28
+ "@aws-sdk/middleware-user-agent": "3.835.0",
29
29
  "@aws-sdk/region-config-resolver": "3.821.0",
30
30
  "@aws-sdk/types": "3.821.0",
31
31
  "@aws-sdk/util-endpoints": "3.828.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.821.0",
33
- "@aws-sdk/util-user-agent-node": "3.828.0",
33
+ "@aws-sdk/util-user-agent-node": "3.835.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
35
  "@smithy/core": "^3.5.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.4",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.11",
41
- "@smithy/middleware-retry": "^4.1.12",
40
+ "@smithy/middleware-endpoint": "^4.1.12",
41
+ "@smithy/middleware-retry": "^4.1.13",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
45
  "@smithy/node-http-handler": "^4.0.6",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.3",
47
+ "@smithy/smithy-client": "^4.4.4",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.19",
54
- "@smithy/util-defaults-mode-node": "^4.0.19",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.20",
54
+ "@smithy/util-defaults-mode-node": "^4.0.20",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
- "@smithy/util-retry": "^4.0.5",
57
+ "@smithy/util-retry": "^4.0.6",
58
58
  "@smithy/util-utf8": "^4.0.0",
59
59
  "@types/uuid": "^9.0.1",
60
60
  "tslib": "^2.6.2",