@aws-sdk/client-textract 3.1173.0 → 3.1175.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 (67) hide show
  1. package/README.md +91 -0
  2. package/dist-cjs/index.js +611 -10
  3. package/dist-es/Textract.js +30 -0
  4. package/dist-es/commands/CreateBlueprintCommand.js +4 -0
  5. package/dist-es/commands/CreateBlueprintVersionCommand.js +4 -0
  6. package/dist-es/commands/CreateProjectCommand.js +4 -0
  7. package/dist-es/commands/DeleteBlueprintCommand.js +4 -0
  8. package/dist-es/commands/DeleteProjectCommand.js +4 -0
  9. package/dist-es/commands/GetBlueprintCommand.js +4 -0
  10. package/dist-es/commands/GetDocumentInsightsCommand.js +4 -0
  11. package/dist-es/commands/GetProjectCommand.js +4 -0
  12. package/dist-es/commands/ListBlueprintsCommand.js +4 -0
  13. package/dist-es/commands/ListProjectsCommand.js +4 -0
  14. package/dist-es/commands/StartDocumentInsightsCommand.js +4 -0
  15. package/dist-es/commands/UpdateBlueprintCommand.js +4 -0
  16. package/dist-es/commands/UpdateProjectCommand.js +4 -0
  17. package/dist-es/commands/index.js +13 -0
  18. package/dist-es/models/enums.js +68 -0
  19. package/dist-es/pagination/ListBlueprintsPaginator.js +4 -0
  20. package/dist-es/pagination/ListProjectsPaginator.js +4 -0
  21. package/dist-es/pagination/index.js +2 -0
  22. package/dist-es/schemas/schemas_0.js +403 -9
  23. package/dist-types/Textract.d.ts +107 -0
  24. package/dist-types/TextractClient.d.ts +15 -2
  25. package/dist-types/commands/CreateBlueprintCommand.d.ts +115 -0
  26. package/dist-types/commands/CreateBlueprintVersionCommand.d.ts +108 -0
  27. package/dist-types/commands/CreateProjectCommand.d.ts +171 -0
  28. package/dist-types/commands/DeleteBlueprintCommand.d.ts +97 -0
  29. package/dist-types/commands/DeleteProjectCommand.d.ts +93 -0
  30. package/dist-types/commands/GetBlueprintCommand.d.ts +106 -0
  31. package/dist-types/commands/GetDocumentInsightsCommand.d.ts +101 -0
  32. package/dist-types/commands/GetProjectCommand.d.ts +160 -0
  33. package/dist-types/commands/ListBlueprintsCommand.d.ts +114 -0
  34. package/dist-types/commands/ListProjectsCommand.d.ts +110 -0
  35. package/dist-types/commands/StartDocumentInsightsCommand.d.ts +130 -0
  36. package/dist-types/commands/UpdateBlueprintCommand.d.ts +106 -0
  37. package/dist-types/commands/UpdateProjectCommand.d.ts +168 -0
  38. package/dist-types/commands/index.d.ts +13 -0
  39. package/dist-types/models/enums.d.ts +132 -0
  40. package/dist-types/models/models_0.d.ts +1025 -14
  41. package/dist-types/pagination/ListBlueprintsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/index.d.ts +2 -0
  44. package/dist-types/schemas/schemas_0.d.ts +62 -0
  45. package/dist-types/ts3.4/Textract.d.ts +234 -0
  46. package/dist-types/ts3.4/TextractClient.d.ts +77 -2
  47. package/dist-types/ts3.4/commands/CreateBlueprintCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/CreateBlueprintVersionCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/DeleteBlueprintCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/GetBlueprintCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/GetDocumentInsightsCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/ListBlueprintsCommand.d.ts +38 -0
  56. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
  57. package/dist-types/ts3.4/commands/StartDocumentInsightsCommand.d.ts +39 -0
  58. package/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  61. package/dist-types/ts3.4/models/enums.d.ts +78 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +232 -0
  63. package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
  67. package/package.json +3 -3
@@ -0,0 +1,168 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateProjectRequest, UpdateProjectResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateProjectCommand}.
11
+ */
12
+ export interface UpdateProjectCommandInput extends UpdateProjectRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateProjectCommand}.
18
+ */
19
+ export interface UpdateProjectCommandOutput extends UpdateProjectResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateProjectCommand_base: {
22
+ new (input: UpdateProjectCommandInput): import("@smithy/core/client").CommandImpl<UpdateProjectCommandInput, UpdateProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateProjectCommandInput): import("@smithy/core/client").CommandImpl<UpdateProjectCommandInput, UpdateProjectCommandOutput, import("..").TextractClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the configuration of an existing project. If you omit a configuration, UpdateProject leaves it unchanged.
28
+ * A configuration that you supply replaces the stored one, so include every setting that you want to keep.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { TextractClient, UpdateProjectCommand } from "@aws-sdk/client-textract"; // ES Modules import
33
+ * // const { TextractClient, UpdateProjectCommand } = require("@aws-sdk/client-textract"); // CommonJS import
34
+ * // import type { TextractClientConfig } from "@aws-sdk/client-textract";
35
+ * const config = {}; // type is TextractClientConfig
36
+ * const client = new TextractClient(config);
37
+ * const input = { // UpdateProjectRequest
38
+ * ProjectArn: "STRING_VALUE", // required
39
+ * ProjectDescription: "STRING_VALUE",
40
+ * ExtractionConfiguration: { // ExtractionConfiguration
41
+ * BoundingBox: { // BoundingBoxConfiguration
42
+ * State: "ENABLED" || "DISABLED", // required
43
+ * },
44
+ * Granularity: { // ExtractionGranularity
45
+ * Types: [ // ExtractionGranularityTypes
46
+ * "DOCUMENT" || "PAGE" || "ELEMENT" || "WORD" || "LINE",
47
+ * ],
48
+ * },
49
+ * OutputFormat: { // OutputFormat
50
+ * AdditionalFileFormat: { // OutputAdditionalFileFormat
51
+ * State: "ENABLED" || "DISABLED", // required
52
+ * },
53
+ * TextFormat: { // OutputTextFormat
54
+ * Types: [ // OutputTextFormatTypes
55
+ * "PLAIN_TEXT" || "MARKDOWN" || "HTML" || "CSV",
56
+ * ],
57
+ * },
58
+ * },
59
+ * },
60
+ * GenerativeConfiguration: { // GenerativeConfiguration
61
+ * Summarization: { // SummarizationConfiguration
62
+ * State: "ENABLED" || "DISABLED", // required
63
+ * },
64
+ * FigureCaption: { // FigureCaptionConfiguration
65
+ * State: "ENABLED" || "DISABLED", // required
66
+ * },
67
+ * },
68
+ * CustomConfiguration: { // CustomConfiguration
69
+ * Blueprints: [ // BlueprintItems // required
70
+ * { // BlueprintItem
71
+ * BlueprintArn: "STRING_VALUE", // required
72
+ * BlueprintVersion: "STRING_VALUE",
73
+ * },
74
+ * ],
75
+ * FallbackBlueprints: [ // FallbackBlueprintItems
76
+ * {
77
+ * BlueprintArn: "STRING_VALUE", // required
78
+ * BlueprintVersion: "STRING_VALUE",
79
+ * },
80
+ * ],
81
+ * },
82
+ * SplitterConfiguration: { // SplitterConfiguration
83
+ * State: "ENABLED" || "DISABLED", // required
84
+ * },
85
+ * SensitiveDataConfiguration: { // SensitiveDataConfiguration
86
+ * DetectionMode: "DETECTION" || "DETECTION_AND_REDACTION" || "DISABLED", // required
87
+ * PiiEntitiesConfiguration: { // PIIEntitiesConfiguration
88
+ * PiiEntityTypes: [ // PIIEntityTypes // required
89
+ * "ALL" || "ADDRESS" || "AGE" || "NAME" || "EMAIL" || "PHONE" || "USERNAME" || "PASSWORD" || "DRIVER_ID" || "LICENSE_PLATE" || "VEHICLE_IDENTIFICATION_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "PIN" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "SWIFT_CODE" || "IP_ADDRESS" || "MAC_ADDRESS" || "URL" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
90
+ * ],
91
+ * RedactionMaskMode: "PII" || "ENTITY_TYPE", // required
92
+ * },
93
+ * },
94
+ * EncryptionConfiguration: { // EncryptionConfiguration
95
+ * KmsKeyId: "STRING_VALUE", // required
96
+ * KmsEncryptionContext: { // KmsEncryptionContext
97
+ * "<keys>": "STRING_VALUE",
98
+ * },
99
+ * },
100
+ * };
101
+ * const command = new UpdateProjectCommand(input);
102
+ * const response = await client.send(command);
103
+ * // { // UpdateProjectResponse
104
+ * // ProjectArn: "STRING_VALUE", // required
105
+ * // Status: "COMPLETED" || "FAILED",
106
+ * // };
107
+ *
108
+ * ```
109
+ *
110
+ * @param UpdateProjectCommandInput - {@link UpdateProjectCommandInput}
111
+ * @returns {@link UpdateProjectCommandOutput}
112
+ * @see {@link UpdateProjectCommandInput} for command's `input` shape.
113
+ * @see {@link UpdateProjectCommandOutput} for command's `response` shape.
114
+ * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
115
+ *
116
+ * @throws {@link AccessDeniedException} (client fault)
117
+ * <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
118
+ * of an authorized user or IAM role to perform the operation.</p>
119
+ *
120
+ * @throws {@link ConflictException} (client fault)
121
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
122
+ *
123
+ * @throws {@link InternalServerError} (server fault)
124
+ * <p>Amazon Textract experienced a service issue. Try your call again.</p>
125
+ *
126
+ * @throws {@link InvalidParameterException} (client fault)
127
+ * <p>An input parameter violated a constraint. For example, in synchronous operations,
128
+ * an <code>InvalidParameterException</code> exception occurs
129
+ * when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
130
+ * request parameter.
131
+ * Validate your parameter before calling the API operation again.</p>
132
+ *
133
+ * @throws {@link LimitExceededException} (client fault)
134
+ * <p>An Amazon Textract service limit was exceeded. For example, if you start too many
135
+ * asynchronous jobs concurrently, calls to start operations
136
+ * (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
137
+ * exception (HTTP status code: 400) until the number of concurrently running jobs is below
138
+ * the Amazon Textract service limit. </p>
139
+ *
140
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
141
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
142
+ * contact Amazon Textract.</p>
143
+ *
144
+ * @throws {@link ResourceNotFoundException} (client fault)
145
+ * <p> Returned when an operation tried to access a nonexistent resource. </p>
146
+ *
147
+ * @throws {@link ValidationException} (client fault)
148
+ * <p> Indicates that a request was not valid. Check request for proper formatting. </p>
149
+ *
150
+ * @throws {@link TextractServiceException}
151
+ * <p>Base exception class for all service exceptions from Textract service.</p>
152
+ *
153
+ *
154
+ * @public
155
+ */
156
+ export declare class UpdateProjectCommand extends UpdateProjectCommand_base {
157
+ /** @internal type navigation helper, not in runtime. */
158
+ protected static __types: {
159
+ api: {
160
+ input: UpdateProjectRequest;
161
+ output: UpdateProjectResponse;
162
+ };
163
+ sdk: {
164
+ input: UpdateProjectCommandInput;
165
+ output: UpdateProjectCommandOutput;
166
+ };
167
+ };
168
+ }
@@ -3,23 +3,36 @@ export * from "./AnalyzeExpenseCommand";
3
3
  export * from "./AnalyzeIDCommand";
4
4
  export * from "./CreateAdapterCommand";
5
5
  export * from "./CreateAdapterVersionCommand";
6
+ export * from "./CreateBlueprintCommand";
7
+ export * from "./CreateBlueprintVersionCommand";
8
+ export * from "./CreateProjectCommand";
6
9
  export * from "./DeleteAdapterCommand";
7
10
  export * from "./DeleteAdapterVersionCommand";
11
+ export * from "./DeleteBlueprintCommand";
12
+ export * from "./DeleteProjectCommand";
8
13
  export * from "./DetectDocumentTextCommand";
9
14
  export * from "./GetAdapterCommand";
10
15
  export * from "./GetAdapterVersionCommand";
16
+ export * from "./GetBlueprintCommand";
11
17
  export * from "./GetDocumentAnalysisCommand";
18
+ export * from "./GetDocumentInsightsCommand";
12
19
  export * from "./GetDocumentTextDetectionCommand";
13
20
  export * from "./GetExpenseAnalysisCommand";
14
21
  export * from "./GetLendingAnalysisCommand";
15
22
  export * from "./GetLendingAnalysisSummaryCommand";
23
+ export * from "./GetProjectCommand";
16
24
  export * from "./ListAdapterVersionsCommand";
17
25
  export * from "./ListAdaptersCommand";
26
+ export * from "./ListBlueprintsCommand";
27
+ export * from "./ListProjectsCommand";
18
28
  export * from "./ListTagsForResourceCommand";
19
29
  export * from "./StartDocumentAnalysisCommand";
30
+ export * from "./StartDocumentInsightsCommand";
20
31
  export * from "./StartDocumentTextDetectionCommand";
21
32
  export * from "./StartExpenseAnalysisCommand";
22
33
  export * from "./StartLendingAnalysisCommand";
23
34
  export * from "./TagResourceCommand";
24
35
  export * from "./UntagResourceCommand";
25
36
  export * from "./UpdateAdapterCommand";
37
+ export * from "./UpdateBlueprintCommand";
38
+ export * from "./UpdateProjectCommand";
@@ -159,6 +159,138 @@ export declare const AutoUpdate: {
159
159
  * @public
160
160
  */
161
161
  export type AutoUpdate = (typeof AutoUpdate)[keyof typeof AutoUpdate];
162
+ /**
163
+ * @public
164
+ * @enum
165
+ */
166
+ export declare const ResourceOwner: {
167
+ readonly ACCOUNT: "ACCOUNT";
168
+ readonly SERVICE: "SERVICE";
169
+ };
170
+ /**
171
+ * @public
172
+ */
173
+ export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner];
174
+ /**
175
+ * @public
176
+ * @enum
177
+ */
178
+ export declare const State: {
179
+ readonly DISABLED: "DISABLED";
180
+ readonly ENABLED: "ENABLED";
181
+ };
182
+ /**
183
+ * @public
184
+ */
185
+ export type State = (typeof State)[keyof typeof State];
186
+ /**
187
+ * @public
188
+ * @enum
189
+ */
190
+ export declare const ExtractionGranularityType: {
191
+ readonly DOCUMENT: "DOCUMENT";
192
+ readonly ELEMENT: "ELEMENT";
193
+ readonly LINE: "LINE";
194
+ readonly PAGE: "PAGE";
195
+ readonly WORD: "WORD";
196
+ };
197
+ /**
198
+ * @public
199
+ */
200
+ export type ExtractionGranularityType = (typeof ExtractionGranularityType)[keyof typeof ExtractionGranularityType];
201
+ /**
202
+ * @public
203
+ * @enum
204
+ */
205
+ export declare const OutputTextFormatType: {
206
+ readonly CSV: "CSV";
207
+ readonly HTML: "HTML";
208
+ readonly MARKDOWN: "MARKDOWN";
209
+ readonly PLAIN_TEXT: "PLAIN_TEXT";
210
+ };
211
+ /**
212
+ * @public
213
+ */
214
+ export type OutputTextFormatType = (typeof OutputTextFormatType)[keyof typeof OutputTextFormatType];
215
+ /**
216
+ * @public
217
+ * @enum
218
+ */
219
+ export declare const SensitiveDataDetectionMode: {
220
+ readonly DETECTION: "DETECTION";
221
+ readonly DETECTION_AND_REDACTION: "DETECTION_AND_REDACTION";
222
+ readonly DISABLED: "DISABLED";
223
+ };
224
+ /**
225
+ * @public
226
+ */
227
+ export type SensitiveDataDetectionMode = (typeof SensitiveDataDetectionMode)[keyof typeof SensitiveDataDetectionMode];
228
+ /**
229
+ * @public
230
+ * @enum
231
+ */
232
+ export declare const PIIEntityType: {
233
+ readonly ADDRESS: "ADDRESS";
234
+ readonly AGE: "AGE";
235
+ readonly ALL: "ALL";
236
+ readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
237
+ readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
238
+ readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
239
+ readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
240
+ readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
241
+ readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
242
+ readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
243
+ readonly DRIVER_ID: "DRIVER_ID";
244
+ readonly EMAIL: "EMAIL";
245
+ readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
246
+ readonly IP_ADDRESS: "IP_ADDRESS";
247
+ readonly LICENSE_PLATE: "LICENSE_PLATE";
248
+ readonly MAC_ADDRESS: "MAC_ADDRESS";
249
+ readonly NAME: "NAME";
250
+ readonly PASSWORD: "PASSWORD";
251
+ readonly PHONE: "PHONE";
252
+ readonly PIN: "PIN";
253
+ readonly SWIFT_CODE: "SWIFT_CODE";
254
+ readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
255
+ readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
256
+ readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
257
+ readonly URL: "URL";
258
+ readonly USERNAME: "USERNAME";
259
+ readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
260
+ readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
261
+ readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
262
+ readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
263
+ readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
264
+ readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
265
+ };
266
+ /**
267
+ * @public
268
+ */
269
+ export type PIIEntityType = (typeof PIIEntityType)[keyof typeof PIIEntityType];
270
+ /**
271
+ * @public
272
+ * @enum
273
+ */
274
+ export declare const PIIRedactionMaskMode: {
275
+ readonly ENTITY_TYPE: "ENTITY_TYPE";
276
+ readonly PII: "PII";
277
+ };
278
+ /**
279
+ * @public
280
+ */
281
+ export type PIIRedactionMaskMode = (typeof PIIRedactionMaskMode)[keyof typeof PIIRedactionMaskMode];
282
+ /**
283
+ * @public
284
+ * @enum
285
+ */
286
+ export declare const ProjectStatus: {
287
+ readonly COMPLETED: "COMPLETED";
288
+ readonly FAILED: "FAILED";
289
+ };
290
+ /**
291
+ * @public
292
+ */
293
+ export type ProjectStatus = (typeof ProjectStatus)[keyof typeof ProjectStatus];
162
294
  /**
163
295
  * @public
164
296
  * @enum