@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
@@ -2,16 +2,28 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
3
3
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
4
4
  import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
5
+ import { CreateAdapterCommandInput, CreateAdapterCommandOutput } from "./commands/CreateAdapterCommand";
6
+ import { CreateAdapterVersionCommandInput, CreateAdapterVersionCommandOutput } from "./commands/CreateAdapterVersionCommand";
7
+ import { DeleteAdapterCommandInput, DeleteAdapterCommandOutput } from "./commands/DeleteAdapterCommand";
8
+ import { DeleteAdapterVersionCommandInput, DeleteAdapterVersionCommandOutput } from "./commands/DeleteAdapterVersionCommand";
5
9
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
10
+ import { GetAdapterCommandInput, GetAdapterCommandOutput } from "./commands/GetAdapterCommand";
11
+ import { GetAdapterVersionCommandInput, GetAdapterVersionCommandOutput } from "./commands/GetAdapterVersionCommand";
6
12
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
7
13
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
8
14
  import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "./commands/GetExpenseAnalysisCommand";
9
15
  import { GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput } from "./commands/GetLendingAnalysisCommand";
10
16
  import { GetLendingAnalysisSummaryCommandInput, GetLendingAnalysisSummaryCommandOutput } from "./commands/GetLendingAnalysisSummaryCommand";
17
+ import { ListAdaptersCommandInput, ListAdaptersCommandOutput } from "./commands/ListAdaptersCommand";
18
+ import { ListAdapterVersionsCommandInput, ListAdapterVersionsCommandOutput } from "./commands/ListAdapterVersionsCommand";
19
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
11
20
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
12
21
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
13
22
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
14
23
  import { StartLendingAnalysisCommandInput, StartLendingAnalysisCommandOutput } from "./commands/StartLendingAnalysisCommand";
24
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
+ import { UpdateAdapterCommandInput, UpdateAdapterCommandOutput } from "./commands/UpdateAdapterCommand";
15
27
  import { TextractClient } from "./TextractClient";
16
28
  export interface Textract {
17
29
  /**
@@ -32,12 +44,48 @@ export interface Textract {
32
44
  analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
33
45
  analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
34
46
  analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
47
+ /**
48
+ * @see {@link CreateAdapterCommand}
49
+ */
50
+ createAdapter(args: CreateAdapterCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdapterCommandOutput>;
51
+ createAdapter(args: CreateAdapterCommandInput, cb: (err: any, data?: CreateAdapterCommandOutput) => void): void;
52
+ createAdapter(args: CreateAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdapterCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link CreateAdapterVersionCommand}
55
+ */
56
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdapterVersionCommandOutput>;
57
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void): void;
58
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link DeleteAdapterCommand}
61
+ */
62
+ deleteAdapter(args: DeleteAdapterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAdapterCommandOutput>;
63
+ deleteAdapter(args: DeleteAdapterCommandInput, cb: (err: any, data?: DeleteAdapterCommandOutput) => void): void;
64
+ deleteAdapter(args: DeleteAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAdapterCommandOutput) => void): void;
65
+ /**
66
+ * @see {@link DeleteAdapterVersionCommand}
67
+ */
68
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAdapterVersionCommandOutput>;
69
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void): void;
70
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void): void;
35
71
  /**
36
72
  * @see {@link DetectDocumentTextCommand}
37
73
  */
38
74
  detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
39
75
  detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
40
76
  detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
77
+ /**
78
+ * @see {@link GetAdapterCommand}
79
+ */
80
+ getAdapter(args: GetAdapterCommandInput, options?: __HttpHandlerOptions): Promise<GetAdapterCommandOutput>;
81
+ getAdapter(args: GetAdapterCommandInput, cb: (err: any, data?: GetAdapterCommandOutput) => void): void;
82
+ getAdapter(args: GetAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAdapterCommandOutput) => void): void;
83
+ /**
84
+ * @see {@link GetAdapterVersionCommand}
85
+ */
86
+ getAdapterVersion(args: GetAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetAdapterVersionCommandOutput>;
87
+ getAdapterVersion(args: GetAdapterVersionCommandInput, cb: (err: any, data?: GetAdapterVersionCommandOutput) => void): void;
88
+ getAdapterVersion(args: GetAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAdapterVersionCommandOutput) => void): void;
41
89
  /**
42
90
  * @see {@link GetDocumentAnalysisCommand}
43
91
  */
@@ -68,6 +116,24 @@ export interface Textract {
68
116
  getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: __HttpHandlerOptions): Promise<GetLendingAnalysisSummaryCommandOutput>;
69
117
  getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void): void;
70
118
  getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link ListAdaptersCommand}
121
+ */
122
+ listAdapters(args: ListAdaptersCommandInput, options?: __HttpHandlerOptions): Promise<ListAdaptersCommandOutput>;
123
+ listAdapters(args: ListAdaptersCommandInput, cb: (err: any, data?: ListAdaptersCommandOutput) => void): void;
124
+ listAdapters(args: ListAdaptersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAdaptersCommandOutput) => void): void;
125
+ /**
126
+ * @see {@link ListAdapterVersionsCommand}
127
+ */
128
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListAdapterVersionsCommandOutput>;
129
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void): void;
130
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void): void;
131
+ /**
132
+ * @see {@link ListTagsForResourceCommand}
133
+ */
134
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
135
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
136
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
71
137
  /**
72
138
  * @see {@link StartDocumentAnalysisCommand}
73
139
  */
@@ -92,6 +158,24 @@ export interface Textract {
92
158
  startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartLendingAnalysisCommandOutput>;
93
159
  startLendingAnalysis(args: StartLendingAnalysisCommandInput, cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void): void;
94
160
  startLendingAnalysis(args: StartLendingAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void): void;
161
+ /**
162
+ * @see {@link TagResourceCommand}
163
+ */
164
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
165
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
166
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
167
+ /**
168
+ * @see {@link UntagResourceCommand}
169
+ */
170
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
171
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
172
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
173
+ /**
174
+ * @see {@link UpdateAdapterCommand}
175
+ */
176
+ updateAdapter(args: UpdateAdapterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAdapterCommandOutput>;
177
+ updateAdapter(args: UpdateAdapterCommandInput, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
178
+ updateAdapter(args: UpdateAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
95
179
  }
96
180
  /**
97
181
  * @public
@@ -11,27 +11,39 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConf
11
11
  import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
12
12
  import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
13
13
  import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
14
+ import { CreateAdapterCommandInput, CreateAdapterCommandOutput } from "./commands/CreateAdapterCommand";
15
+ import { CreateAdapterVersionCommandInput, CreateAdapterVersionCommandOutput } from "./commands/CreateAdapterVersionCommand";
16
+ import { DeleteAdapterCommandInput, DeleteAdapterCommandOutput } from "./commands/DeleteAdapterCommand";
17
+ import { DeleteAdapterVersionCommandInput, DeleteAdapterVersionCommandOutput } from "./commands/DeleteAdapterVersionCommand";
14
18
  import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
19
+ import { GetAdapterCommandInput, GetAdapterCommandOutput } from "./commands/GetAdapterCommand";
20
+ import { GetAdapterVersionCommandInput, GetAdapterVersionCommandOutput } from "./commands/GetAdapterVersionCommand";
15
21
  import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
16
22
  import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
17
23
  import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "./commands/GetExpenseAnalysisCommand";
18
24
  import { GetLendingAnalysisCommandInput, GetLendingAnalysisCommandOutput } from "./commands/GetLendingAnalysisCommand";
19
25
  import { GetLendingAnalysisSummaryCommandInput, GetLendingAnalysisSummaryCommandOutput } from "./commands/GetLendingAnalysisSummaryCommand";
26
+ import { ListAdaptersCommandInput, ListAdaptersCommandOutput } from "./commands/ListAdaptersCommand";
27
+ import { ListAdapterVersionsCommandInput, ListAdapterVersionsCommandOutput } from "./commands/ListAdapterVersionsCommand";
28
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
20
29
  import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
21
30
  import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
22
31
  import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "./commands/StartExpenseAnalysisCommand";
23
32
  import { StartLendingAnalysisCommandInput, StartLendingAnalysisCommandOutput } from "./commands/StartLendingAnalysisCommand";
33
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateAdapterCommandInput, UpdateAdapterCommandOutput } from "./commands/UpdateAdapterCommand";
24
36
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
25
37
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
26
38
  export { __Client };
27
39
  /**
28
40
  * @public
29
41
  */
30
- export type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | DetectDocumentTextCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | GetLendingAnalysisCommandInput | GetLendingAnalysisSummaryCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput | StartLendingAnalysisCommandInput;
42
+ export type ServiceInputTypes = AnalyzeDocumentCommandInput | AnalyzeExpenseCommandInput | AnalyzeIDCommandInput | CreateAdapterCommandInput | CreateAdapterVersionCommandInput | DeleteAdapterCommandInput | DeleteAdapterVersionCommandInput | DetectDocumentTextCommandInput | GetAdapterCommandInput | GetAdapterVersionCommandInput | GetDocumentAnalysisCommandInput | GetDocumentTextDetectionCommandInput | GetExpenseAnalysisCommandInput | GetLendingAnalysisCommandInput | GetLendingAnalysisSummaryCommandInput | ListAdapterVersionsCommandInput | ListAdaptersCommandInput | ListTagsForResourceCommandInput | StartDocumentAnalysisCommandInput | StartDocumentTextDetectionCommandInput | StartExpenseAnalysisCommandInput | StartLendingAnalysisCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAdapterCommandInput;
31
43
  /**
32
44
  * @public
33
45
  */
34
- export type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | DetectDocumentTextCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | GetLendingAnalysisCommandOutput | GetLendingAnalysisSummaryCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput | StartLendingAnalysisCommandOutput;
46
+ export type ServiceOutputTypes = AnalyzeDocumentCommandOutput | AnalyzeExpenseCommandOutput | AnalyzeIDCommandOutput | CreateAdapterCommandOutput | CreateAdapterVersionCommandOutput | DeleteAdapterCommandOutput | DeleteAdapterVersionCommandOutput | DetectDocumentTextCommandOutput | GetAdapterCommandOutput | GetAdapterVersionCommandOutput | GetDocumentAnalysisCommandOutput | GetDocumentTextDetectionCommandOutput | GetExpenseAnalysisCommandOutput | GetLendingAnalysisCommandOutput | GetLendingAnalysisSummaryCommandOutput | ListAdapterVersionsCommandOutput | ListAdaptersCommandOutput | ListTagsForResourceCommandOutput | StartDocumentAnalysisCommandOutput | StartDocumentTextDetectionCommandOutput | StartExpenseAnalysisCommandOutput | StartLendingAnalysisCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAdapterCommandOutput;
35
47
  /**
36
48
  * @public
37
49
  */
@@ -108,6 +108,17 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
108
108
  * },
109
109
  * ],
110
110
  * },
111
+ * AdaptersConfig: { // AdaptersConfig
112
+ * Adapters: [ // Adapters // required
113
+ * { // Adapter
114
+ * AdapterId: "STRING_VALUE", // required
115
+ * Pages: [ // AdapterPages
116
+ * "STRING_VALUE",
117
+ * ],
118
+ * Version: "STRING_VALUE", // required
119
+ * },
120
+ * ],
121
+ * },
111
122
  * };
112
123
  * const command = new AnalyzeDocumentCommand(input);
113
124
  * const response = await client.send(command);
@@ -0,0 +1,128 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateAdapterRequest, CreateAdapterResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAdapterCommand}.
14
+ */
15
+ export interface CreateAdapterCommandInput extends CreateAdapterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAdapterCommand}.
21
+ */
22
+ export interface CreateAdapterCommandOutput extends CreateAdapterResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates an adapter, which can be fine-tuned for enhanced performance on user provided
27
+ * documents. Takes an AdapterName and FeatureType. Currently the only supported feature type
28
+ * is <code>QUERIES</code>. You can also provide a Description, Tags, and a
29
+ * ClientRequestToken. You can choose whether or not the adapter should be AutoUpdated with
30
+ * the AutoUpdate argument. By default, AutoUpdate is set to DISABLED.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { TextractClient, CreateAdapterCommand } from "@aws-sdk/client-textract"; // ES Modules import
35
+ * // const { TextractClient, CreateAdapterCommand } = require("@aws-sdk/client-textract"); // CommonJS import
36
+ * const client = new TextractClient(config);
37
+ * const input = { // CreateAdapterRequest
38
+ * AdapterName: "STRING_VALUE", // required
39
+ * ClientRequestToken: "STRING_VALUE",
40
+ * Description: "STRING_VALUE",
41
+ * FeatureTypes: [ // FeatureTypes // required
42
+ * "TABLES" || "FORMS" || "QUERIES" || "SIGNATURES" || "LAYOUT",
43
+ * ],
44
+ * AutoUpdate: "ENABLED" || "DISABLED",
45
+ * Tags: { // TagMap
46
+ * "<keys>": "STRING_VALUE",
47
+ * },
48
+ * };
49
+ * const command = new CreateAdapterCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // CreateAdapterResponse
52
+ * // AdapterId: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param CreateAdapterCommandInput - {@link CreateAdapterCommandInput}
58
+ * @returns {@link CreateAdapterCommandOutput}
59
+ * @see {@link CreateAdapterCommandInput} for command's `input` shape.
60
+ * @see {@link CreateAdapterCommandOutput} for command's `response` shape.
61
+ * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
65
+ * of an authorized user or IAM role to perform the operation.</p>
66
+ *
67
+ * @throws {@link ConflictException} (client fault)
68
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
69
+ *
70
+ * @throws {@link IdempotentParameterMismatchException} (client fault)
71
+ * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at
72
+ * least one of the other input parameters is different from the previous call to the
73
+ * operation. </p>
74
+ *
75
+ * @throws {@link InternalServerError} (server fault)
76
+ * <p>Amazon Textract experienced a service issue. Try your call again.</p>
77
+ *
78
+ * @throws {@link InvalidParameterException} (client fault)
79
+ * <p>An input parameter violated a constraint. For example, in synchronous operations,
80
+ * an <code>InvalidParameterException</code> exception occurs
81
+ * when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
82
+ * request parameter.
83
+ * Validate your parameter before calling the API operation again.</p>
84
+ *
85
+ * @throws {@link LimitExceededException} (client fault)
86
+ * <p>An Amazon Textract service limit was exceeded. For example, if you start too many
87
+ * asynchronous jobs concurrently, calls to start operations
88
+ * (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
89
+ * exception (HTTP status code: 400) until the number of concurrently running jobs is below
90
+ * the Amazon Textract service limit. </p>
91
+ *
92
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
93
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
94
+ * contact Amazon Textract.</p>
95
+ *
96
+ * @throws {@link ServiceQuotaExceededException} (client fault)
97
+ * <p>Returned when a request cannot be completed as it would exceed a maximum service quota.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (server fault)
100
+ * <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
101
+ *
102
+ * @throws {@link ValidationException} (client fault)
103
+ * <p> Indicates that a request was not valid. Check request for proper formatting. </p>
104
+ *
105
+ * @throws {@link TextractServiceException}
106
+ * <p>Base exception class for all service exceptions from Textract service.</p>
107
+ *
108
+ */
109
+ export declare class CreateAdapterCommand extends $Command<CreateAdapterCommandInput, CreateAdapterCommandOutput, TextractClientResolvedConfig> {
110
+ readonly input: CreateAdapterCommandInput;
111
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
+ /**
113
+ * @public
114
+ */
115
+ constructor(input: CreateAdapterCommandInput);
116
+ /**
117
+ * @internal
118
+ */
119
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAdapterCommandInput, CreateAdapterCommandOutput>;
120
+ /**
121
+ * @internal
122
+ */
123
+ private serialize;
124
+ /**
125
+ * @internal
126
+ */
127
+ private deserialize;
128
+ }
@@ -0,0 +1,148 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateAdapterVersionRequest, CreateAdapterVersionResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAdapterVersionCommand}.
14
+ */
15
+ export interface CreateAdapterVersionCommandInput extends CreateAdapterVersionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAdapterVersionCommand}.
21
+ */
22
+ export interface CreateAdapterVersionCommandOutput extends CreateAdapterVersionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a new version of an adapter. Operates on a provided AdapterId and a specified
27
+ * dataset provided via the DatasetConfig argument. Requires that you
28
+ * specify an Amazon S3 bucket with the OutputConfig argument. You can provide an optional KMSKeyId,
29
+ * an optional ClientRequestToken, and optional tags.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { TextractClient, CreateAdapterVersionCommand } from "@aws-sdk/client-textract"; // ES Modules import
34
+ * // const { TextractClient, CreateAdapterVersionCommand } = require("@aws-sdk/client-textract"); // CommonJS import
35
+ * const client = new TextractClient(config);
36
+ * const input = { // CreateAdapterVersionRequest
37
+ * AdapterId: "STRING_VALUE", // required
38
+ * ClientRequestToken: "STRING_VALUE",
39
+ * DatasetConfig: { // AdapterVersionDatasetConfig
40
+ * ManifestS3Object: { // S3Object
41
+ * Bucket: "STRING_VALUE",
42
+ * Name: "STRING_VALUE",
43
+ * Version: "STRING_VALUE",
44
+ * },
45
+ * },
46
+ * KMSKeyId: "STRING_VALUE",
47
+ * OutputConfig: { // OutputConfig
48
+ * S3Bucket: "STRING_VALUE", // required
49
+ * S3Prefix: "STRING_VALUE",
50
+ * },
51
+ * Tags: { // TagMap
52
+ * "<keys>": "STRING_VALUE",
53
+ * },
54
+ * };
55
+ * const command = new CreateAdapterVersionCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // CreateAdapterVersionResponse
58
+ * // AdapterId: "STRING_VALUE",
59
+ * // AdapterVersion: "STRING_VALUE",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param CreateAdapterVersionCommandInput - {@link CreateAdapterVersionCommandInput}
65
+ * @returns {@link CreateAdapterVersionCommandOutput}
66
+ * @see {@link CreateAdapterVersionCommandInput} for command's `input` shape.
67
+ * @see {@link CreateAdapterVersionCommandOutput} for command's `response` shape.
68
+ * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
72
+ * of an authorized user or IAM role to perform the operation.</p>
73
+ *
74
+ * @throws {@link ConflictException} (client fault)
75
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
76
+ *
77
+ * @throws {@link IdempotentParameterMismatchException} (client fault)
78
+ * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at
79
+ * least one of the other input parameters is different from the previous call to the
80
+ * operation. </p>
81
+ *
82
+ * @throws {@link InternalServerError} (server fault)
83
+ * <p>Amazon Textract experienced a service issue. Try your call again.</p>
84
+ *
85
+ * @throws {@link InvalidKMSKeyException} (client fault)
86
+ * <p> Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key
87
+ * was entered incorrectly. </p>
88
+ *
89
+ * @throws {@link InvalidParameterException} (client fault)
90
+ * <p>An input parameter violated a constraint. For example, in synchronous operations,
91
+ * an <code>InvalidParameterException</code> exception occurs
92
+ * when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
93
+ * request parameter.
94
+ * Validate your parameter before calling the API operation again.</p>
95
+ *
96
+ * @throws {@link InvalidS3ObjectException} (client fault)
97
+ * <p>Amazon Textract is unable to access the S3 object that's specified in the request.
98
+ * for more information, <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html">Configure Access to Amazon S3</a>
99
+ * For troubleshooting information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html">Troubleshooting Amazon S3</a>
100
+ * </p>
101
+ *
102
+ * @throws {@link LimitExceededException} (client fault)
103
+ * <p>An Amazon Textract service limit was exceeded. For example, if you start too many
104
+ * asynchronous jobs concurrently, calls to start operations
105
+ * (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
106
+ * exception (HTTP status code: 400) until the number of concurrently running jobs is below
107
+ * the Amazon Textract service limit. </p>
108
+ *
109
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
110
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
111
+ * contact Amazon Textract.</p>
112
+ *
113
+ * @throws {@link ResourceNotFoundException} (client fault)
114
+ * <p> Returned when an operation tried to access a nonexistent resource. </p>
115
+ *
116
+ * @throws {@link ServiceQuotaExceededException} (client fault)
117
+ * <p>Returned when a request cannot be completed as it would exceed a maximum service quota.</p>
118
+ *
119
+ * @throws {@link ThrottlingException} (server fault)
120
+ * <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
121
+ *
122
+ * @throws {@link ValidationException} (client fault)
123
+ * <p> Indicates that a request was not valid. Check request for proper formatting. </p>
124
+ *
125
+ * @throws {@link TextractServiceException}
126
+ * <p>Base exception class for all service exceptions from Textract service.</p>
127
+ *
128
+ */
129
+ export declare class CreateAdapterVersionCommand extends $Command<CreateAdapterVersionCommandInput, CreateAdapterVersionCommandOutput, TextractClientResolvedConfig> {
130
+ readonly input: CreateAdapterVersionCommandInput;
131
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
132
+ /**
133
+ * @public
134
+ */
135
+ constructor(input: CreateAdapterVersionCommandInput);
136
+ /**
137
+ * @internal
138
+ */
139
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAdapterVersionCommandInput, CreateAdapterVersionCommandOutput>;
140
+ /**
141
+ * @internal
142
+ */
143
+ private serialize;
144
+ /**
145
+ * @internal
146
+ */
147
+ private deserialize;
148
+ }
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { DeleteAdapterRequest, DeleteAdapterResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteAdapterCommand}.
14
+ */
15
+ export interface DeleteAdapterCommandInput extends DeleteAdapterRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAdapterCommand}.
21
+ */
22
+ export interface DeleteAdapterCommandOutput extends DeleteAdapterResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the adapter specified by the ID.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { TextractClient, DeleteAdapterCommand } from "@aws-sdk/client-textract"; // ES Modules import
31
+ * // const { TextractClient, DeleteAdapterCommand } = require("@aws-sdk/client-textract"); // CommonJS import
32
+ * const client = new TextractClient(config);
33
+ * const input = { // DeleteAdapterRequest
34
+ * AdapterId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteAdapterCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteAdapterCommandInput - {@link DeleteAdapterCommandInput}
43
+ * @returns {@link DeleteAdapterCommandOutput}
44
+ * @see {@link DeleteAdapterCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteAdapterCommandOutput} for command's `response` shape.
46
+ * @see {@link TextractClientResolvedConfig | config} for TextractClient's `config` shape.
47
+ *
48
+ * @throws {@link AccessDeniedException} (client fault)
49
+ * <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
50
+ * of an authorized user or IAM role to perform the operation.</p>
51
+ *
52
+ * @throws {@link ConflictException} (client fault)
53
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
54
+ *
55
+ * @throws {@link InternalServerError} (server fault)
56
+ * <p>Amazon Textract experienced a service issue. Try your call again.</p>
57
+ *
58
+ * @throws {@link InvalidParameterException} (client fault)
59
+ * <p>An input parameter violated a constraint. For example, in synchronous operations,
60
+ * an <code>InvalidParameterException</code> exception occurs
61
+ * when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
62
+ * request parameter.
63
+ * Validate your parameter before calling the API operation again.</p>
64
+ *
65
+ * @throws {@link ProvisionedThroughputExceededException} (client fault)
66
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
67
+ * contact Amazon Textract.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p> Returned when an operation tried to access a nonexistent resource. </p>
71
+ *
72
+ * @throws {@link ThrottlingException} (server fault)
73
+ * <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p> Indicates that a request was not valid. Check request for proper formatting. </p>
77
+ *
78
+ * @throws {@link TextractServiceException}
79
+ * <p>Base exception class for all service exceptions from Textract service.</p>
80
+ *
81
+ */
82
+ export declare class DeleteAdapterCommand extends $Command<DeleteAdapterCommandInput, DeleteAdapterCommandOutput, TextractClientResolvedConfig> {
83
+ readonly input: DeleteAdapterCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: DeleteAdapterCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAdapterCommandInput, DeleteAdapterCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }