@aws-sdk/client-textract 3.1137.0 → 3.1139.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
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1138.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -724,10 +724,10 @@ const _mT = "mediaType";
724
724
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.textract";
725
725
  const _se = "server";
726
726
  const n0 = "com.amazonaws.textract";
727
- const _s_registry = TypeRegistry.for(_s);
727
+ const _s_registry = new TypeRegistry(_s);
728
728
  var TextractServiceException$ = [-3, _s, "TextractServiceException", 0, [], []];
729
729
  _s_registry.registerError(TextractServiceException$, TextractServiceException);
730
- const n0_registry = TypeRegistry.for(n0);
730
+ const n0_registry = new TypeRegistry(n0);
731
731
  var AccessDeniedException$ = [-3, n0, _ADE,
732
732
  { [_e]: _c },
733
733
  [_M, _C],
@@ -292,10 +292,10 @@ const n0 = "com.amazonaws.textract";
292
292
  import { TypeRegistry } from "@smithy/core/schema";
293
293
  import { AccessDeniedException, BadDocumentException, ConflictException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedDocumentException, ValidationException, } from "../models/errors";
294
294
  import { TextractServiceException } from "../models/TextractServiceException";
295
- const _s_registry = TypeRegistry.for(_s);
295
+ const _s_registry = new TypeRegistry(_s);
296
296
  export var TextractServiceException$ = [-3, _s, "TextractServiceException", 0, [], []];
297
297
  _s_registry.registerError(TextractServiceException$, TextractServiceException);
298
- const n0_registry = TypeRegistry.for(n0);
298
+ const n0_registry = new TypeRegistry(n0);
299
299
  export var AccessDeniedException$ = [-3, n0, _ADE,
300
300
  { [_e]: _c },
301
301
  [_M, _C],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type AnalyzeDocumentCommandInput, type AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
3
3
  import { type AnalyzeExpenseCommandInput, type AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
4
4
  import { type AnalyzeIDCommandInput, type AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
@@ -25,159 +25,165 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
25
25
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
26
  import { type UpdateAdapterCommandInput, type UpdateAdapterCommandOutput } from "./commands/UpdateAdapterCommand";
27
27
  import { TextractClient } from "./TextractClient";
28
+ /**
29
+ * @public
30
+ */
31
+ export interface TextractRequestOptions extends __HttpHandlerOptions {
32
+ metricsRecorder?: __MetricsRecorder<unknown>;
33
+ }
28
34
  export interface Textract {
29
35
  /**
30
36
  * @see {@link AnalyzeDocumentCommand}
31
37
  */
32
- analyzeDocument(args: AnalyzeDocumentCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeDocumentCommandOutput>;
38
+ analyzeDocument(args: AnalyzeDocumentCommandInput, options?: TextractRequestOptions): Promise<AnalyzeDocumentCommandOutput>;
33
39
  analyzeDocument(args: AnalyzeDocumentCommandInput, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
34
- analyzeDocument(args: AnalyzeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
40
+ analyzeDocument(args: AnalyzeDocumentCommandInput, options: TextractRequestOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
35
41
  /**
36
42
  * @see {@link AnalyzeExpenseCommand}
37
43
  */
38
- analyzeExpense(args: AnalyzeExpenseCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeExpenseCommandOutput>;
44
+ analyzeExpense(args: AnalyzeExpenseCommandInput, options?: TextractRequestOptions): Promise<AnalyzeExpenseCommandOutput>;
39
45
  analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
40
- analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
46
+ analyzeExpense(args: AnalyzeExpenseCommandInput, options: TextractRequestOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
41
47
  /**
42
48
  * @see {@link AnalyzeIDCommand}
43
49
  */
44
- analyzeID(args: AnalyzeIDCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeIDCommandOutput>;
50
+ analyzeID(args: AnalyzeIDCommandInput, options?: TextractRequestOptions): Promise<AnalyzeIDCommandOutput>;
45
51
  analyzeID(args: AnalyzeIDCommandInput, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
46
- analyzeID(args: AnalyzeIDCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
52
+ analyzeID(args: AnalyzeIDCommandInput, options: TextractRequestOptions, cb: (err: any, data?: AnalyzeIDCommandOutput) => void): void;
47
53
  /**
48
54
  * @see {@link CreateAdapterCommand}
49
55
  */
50
- createAdapter(args: CreateAdapterCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdapterCommandOutput>;
56
+ createAdapter(args: CreateAdapterCommandInput, options?: TextractRequestOptions): Promise<CreateAdapterCommandOutput>;
51
57
  createAdapter(args: CreateAdapterCommandInput, cb: (err: any, data?: CreateAdapterCommandOutput) => void): void;
52
- createAdapter(args: CreateAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdapterCommandOutput) => void): void;
58
+ createAdapter(args: CreateAdapterCommandInput, options: TextractRequestOptions, cb: (err: any, data?: CreateAdapterCommandOutput) => void): void;
53
59
  /**
54
60
  * @see {@link CreateAdapterVersionCommand}
55
61
  */
56
- createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdapterVersionCommandOutput>;
62
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: TextractRequestOptions): Promise<CreateAdapterVersionCommandOutput>;
57
63
  createAdapterVersion(args: CreateAdapterVersionCommandInput, cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void): void;
58
- createAdapterVersion(args: CreateAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void): void;
64
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, options: TextractRequestOptions, cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void): void;
59
65
  /**
60
66
  * @see {@link DeleteAdapterCommand}
61
67
  */
62
- deleteAdapter(args: DeleteAdapterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAdapterCommandOutput>;
68
+ deleteAdapter(args: DeleteAdapterCommandInput, options?: TextractRequestOptions): Promise<DeleteAdapterCommandOutput>;
63
69
  deleteAdapter(args: DeleteAdapterCommandInput, cb: (err: any, data?: DeleteAdapterCommandOutput) => void): void;
64
- deleteAdapter(args: DeleteAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAdapterCommandOutput) => void): void;
70
+ deleteAdapter(args: DeleteAdapterCommandInput, options: TextractRequestOptions, cb: (err: any, data?: DeleteAdapterCommandOutput) => void): void;
65
71
  /**
66
72
  * @see {@link DeleteAdapterVersionCommand}
67
73
  */
68
- deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAdapterVersionCommandOutput>;
74
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: TextractRequestOptions): Promise<DeleteAdapterVersionCommandOutput>;
69
75
  deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void): void;
70
- deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void): void;
76
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options: TextractRequestOptions, cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void): void;
71
77
  /**
72
78
  * @see {@link DetectDocumentTextCommand}
73
79
  */
74
- detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
80
+ detectDocumentText(args: DetectDocumentTextCommandInput, options?: TextractRequestOptions): Promise<DetectDocumentTextCommandOutput>;
75
81
  detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
76
- detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
82
+ detectDocumentText(args: DetectDocumentTextCommandInput, options: TextractRequestOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
77
83
  /**
78
84
  * @see {@link GetAdapterCommand}
79
85
  */
80
- getAdapter(args: GetAdapterCommandInput, options?: __HttpHandlerOptions): Promise<GetAdapterCommandOutput>;
86
+ getAdapter(args: GetAdapterCommandInput, options?: TextractRequestOptions): Promise<GetAdapterCommandOutput>;
81
87
  getAdapter(args: GetAdapterCommandInput, cb: (err: any, data?: GetAdapterCommandOutput) => void): void;
82
- getAdapter(args: GetAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAdapterCommandOutput) => void): void;
88
+ getAdapter(args: GetAdapterCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetAdapterCommandOutput) => void): void;
83
89
  /**
84
90
  * @see {@link GetAdapterVersionCommand}
85
91
  */
86
- getAdapterVersion(args: GetAdapterVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetAdapterVersionCommandOutput>;
92
+ getAdapterVersion(args: GetAdapterVersionCommandInput, options?: TextractRequestOptions): Promise<GetAdapterVersionCommandOutput>;
87
93
  getAdapterVersion(args: GetAdapterVersionCommandInput, cb: (err: any, data?: GetAdapterVersionCommandOutput) => void): void;
88
- getAdapterVersion(args: GetAdapterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAdapterVersionCommandOutput) => void): void;
94
+ getAdapterVersion(args: GetAdapterVersionCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetAdapterVersionCommandOutput) => void): void;
89
95
  /**
90
96
  * @see {@link GetDocumentAnalysisCommand}
91
97
  */
92
- getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentAnalysisCommandOutput>;
98
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: TextractRequestOptions): Promise<GetDocumentAnalysisCommandOutput>;
93
99
  getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
94
- getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
100
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
95
101
  /**
96
102
  * @see {@link GetDocumentTextDetectionCommand}
97
103
  */
98
- getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentTextDetectionCommandOutput>;
104
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: TextractRequestOptions): Promise<GetDocumentTextDetectionCommandOutput>;
99
105
  getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
100
- getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
106
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
101
107
  /**
102
108
  * @see {@link GetExpenseAnalysisCommand}
103
109
  */
104
- getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetExpenseAnalysisCommandOutput>;
110
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: TextractRequestOptions): Promise<GetExpenseAnalysisCommandOutput>;
105
111
  getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void): void;
106
- getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void): void;
112
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void): void;
107
113
  /**
108
114
  * @see {@link GetLendingAnalysisCommand}
109
115
  */
110
- getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetLendingAnalysisCommandOutput>;
116
+ getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: TextractRequestOptions): Promise<GetLendingAnalysisCommandOutput>;
111
117
  getLendingAnalysis(args: GetLendingAnalysisCommandInput, cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void): void;
112
- getLendingAnalysis(args: GetLendingAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void): void;
118
+ getLendingAnalysis(args: GetLendingAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void): void;
113
119
  /**
114
120
  * @see {@link GetLendingAnalysisSummaryCommand}
115
121
  */
116
- getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: __HttpHandlerOptions): Promise<GetLendingAnalysisSummaryCommandOutput>;
122
+ getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: TextractRequestOptions): Promise<GetLendingAnalysisSummaryCommandOutput>;
117
123
  getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void): void;
118
- getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void): void;
124
+ getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options: TextractRequestOptions, cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void): void;
119
125
  /**
120
126
  * @see {@link ListAdaptersCommand}
121
127
  */
122
128
  listAdapters(): Promise<ListAdaptersCommandOutput>;
123
- listAdapters(args: ListAdaptersCommandInput, options?: __HttpHandlerOptions): Promise<ListAdaptersCommandOutput>;
129
+ listAdapters(args: ListAdaptersCommandInput, options?: TextractRequestOptions): Promise<ListAdaptersCommandOutput>;
124
130
  listAdapters(args: ListAdaptersCommandInput, cb: (err: any, data?: ListAdaptersCommandOutput) => void): void;
125
- listAdapters(args: ListAdaptersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAdaptersCommandOutput) => void): void;
131
+ listAdapters(args: ListAdaptersCommandInput, options: TextractRequestOptions, cb: (err: any, data?: ListAdaptersCommandOutput) => void): void;
126
132
  /**
127
133
  * @see {@link ListAdapterVersionsCommand}
128
134
  */
129
135
  listAdapterVersions(): Promise<ListAdapterVersionsCommandOutput>;
130
- listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListAdapterVersionsCommandOutput>;
136
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: TextractRequestOptions): Promise<ListAdapterVersionsCommandOutput>;
131
137
  listAdapterVersions(args: ListAdapterVersionsCommandInput, cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void): void;
132
- listAdapterVersions(args: ListAdapterVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void): void;
138
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, options: TextractRequestOptions, cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void): void;
133
139
  /**
134
140
  * @see {@link ListTagsForResourceCommand}
135
141
  */
136
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
142
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: TextractRequestOptions): Promise<ListTagsForResourceCommandOutput>;
137
143
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
138
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
144
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: TextractRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
139
145
  /**
140
146
  * @see {@link StartDocumentAnalysisCommand}
141
147
  */
142
- startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentAnalysisCommandOutput>;
148
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: TextractRequestOptions): Promise<StartDocumentAnalysisCommandOutput>;
143
149
  startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
144
- startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
150
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
145
151
  /**
146
152
  * @see {@link StartDocumentTextDetectionCommand}
147
153
  */
148
- startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentTextDetectionCommandOutput>;
154
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: TextractRequestOptions): Promise<StartDocumentTextDetectionCommandOutput>;
149
155
  startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
150
- startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
156
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options: TextractRequestOptions, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
151
157
  /**
152
158
  * @see {@link StartExpenseAnalysisCommand}
153
159
  */
154
- startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartExpenseAnalysisCommandOutput>;
160
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: TextractRequestOptions): Promise<StartExpenseAnalysisCommandOutput>;
155
161
  startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void): void;
156
- startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void): void;
162
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void): void;
157
163
  /**
158
164
  * @see {@link StartLendingAnalysisCommand}
159
165
  */
160
- startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartLendingAnalysisCommandOutput>;
166
+ startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: TextractRequestOptions): Promise<StartLendingAnalysisCommandOutput>;
161
167
  startLendingAnalysis(args: StartLendingAnalysisCommandInput, cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void): void;
162
- startLendingAnalysis(args: StartLendingAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void): void;
168
+ startLendingAnalysis(args: StartLendingAnalysisCommandInput, options: TextractRequestOptions, cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void): void;
163
169
  /**
164
170
  * @see {@link TagResourceCommand}
165
171
  */
166
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
172
+ tagResource(args: TagResourceCommandInput, options?: TextractRequestOptions): Promise<TagResourceCommandOutput>;
167
173
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
168
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
174
+ tagResource(args: TagResourceCommandInput, options: TextractRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
169
175
  /**
170
176
  * @see {@link UntagResourceCommand}
171
177
  */
172
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
178
+ untagResource(args: UntagResourceCommandInput, options?: TextractRequestOptions): Promise<UntagResourceCommandOutput>;
173
179
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
174
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
180
+ untagResource(args: UntagResourceCommandInput, options: TextractRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
175
181
  /**
176
182
  * @see {@link UpdateAdapterCommand}
177
183
  */
178
- updateAdapter(args: UpdateAdapterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAdapterCommandOutput>;
184
+ updateAdapter(args: UpdateAdapterCommandInput, options?: TextractRequestOptions): Promise<UpdateAdapterCommandOutput>;
179
185
  updateAdapter(args: UpdateAdapterCommandInput, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
180
- updateAdapter(args: UpdateAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
186
+ updateAdapter(args: UpdateAdapterCommandInput, options: TextractRequestOptions, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
181
187
  /**
182
188
  * @see {@link ListAdaptersCommand}
183
189
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -95,10 +96,13 @@ import {
95
96
  UpdateAdapterCommandOutput,
96
97
  } from "./commands/UpdateAdapterCommand";
97
98
  import { TextractClient } from "./TextractClient";
99
+ export interface TextractRequestOptions extends __HttpHandlerOptions {
100
+ metricsRecorder?: __MetricsRecorder<unknown>;
101
+ }
98
102
  export interface Textract {
99
103
  analyzeDocument(
100
104
  args: AnalyzeDocumentCommandInput,
101
- options?: __HttpHandlerOptions,
105
+ options?: TextractRequestOptions,
102
106
  ): Promise<AnalyzeDocumentCommandOutput>;
103
107
  analyzeDocument(
104
108
  args: AnalyzeDocumentCommandInput,
@@ -106,12 +110,12 @@ export interface Textract {
106
110
  ): void;
107
111
  analyzeDocument(
108
112
  args: AnalyzeDocumentCommandInput,
109
- options: __HttpHandlerOptions,
113
+ options: TextractRequestOptions,
110
114
  cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void,
111
115
  ): void;
112
116
  analyzeExpense(
113
117
  args: AnalyzeExpenseCommandInput,
114
- options?: __HttpHandlerOptions,
118
+ options?: TextractRequestOptions,
115
119
  ): Promise<AnalyzeExpenseCommandOutput>;
116
120
  analyzeExpense(
117
121
  args: AnalyzeExpenseCommandInput,
@@ -119,12 +123,12 @@ export interface Textract {
119
123
  ): void;
120
124
  analyzeExpense(
121
125
  args: AnalyzeExpenseCommandInput,
122
- options: __HttpHandlerOptions,
126
+ options: TextractRequestOptions,
123
127
  cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void,
124
128
  ): void;
125
129
  analyzeID(
126
130
  args: AnalyzeIDCommandInput,
127
- options?: __HttpHandlerOptions,
131
+ options?: TextractRequestOptions,
128
132
  ): Promise<AnalyzeIDCommandOutput>;
129
133
  analyzeID(
130
134
  args: AnalyzeIDCommandInput,
@@ -132,12 +136,12 @@ export interface Textract {
132
136
  ): void;
133
137
  analyzeID(
134
138
  args: AnalyzeIDCommandInput,
135
- options: __HttpHandlerOptions,
139
+ options: TextractRequestOptions,
136
140
  cb: (err: any, data?: AnalyzeIDCommandOutput) => void,
137
141
  ): void;
138
142
  createAdapter(
139
143
  args: CreateAdapterCommandInput,
140
- options?: __HttpHandlerOptions,
144
+ options?: TextractRequestOptions,
141
145
  ): Promise<CreateAdapterCommandOutput>;
142
146
  createAdapter(
143
147
  args: CreateAdapterCommandInput,
@@ -145,12 +149,12 @@ export interface Textract {
145
149
  ): void;
146
150
  createAdapter(
147
151
  args: CreateAdapterCommandInput,
148
- options: __HttpHandlerOptions,
152
+ options: TextractRequestOptions,
149
153
  cb: (err: any, data?: CreateAdapterCommandOutput) => void,
150
154
  ): void;
151
155
  createAdapterVersion(
152
156
  args: CreateAdapterVersionCommandInput,
153
- options?: __HttpHandlerOptions,
157
+ options?: TextractRequestOptions,
154
158
  ): Promise<CreateAdapterVersionCommandOutput>;
155
159
  createAdapterVersion(
156
160
  args: CreateAdapterVersionCommandInput,
@@ -158,12 +162,12 @@ export interface Textract {
158
162
  ): void;
159
163
  createAdapterVersion(
160
164
  args: CreateAdapterVersionCommandInput,
161
- options: __HttpHandlerOptions,
165
+ options: TextractRequestOptions,
162
166
  cb: (err: any, data?: CreateAdapterVersionCommandOutput) => void,
163
167
  ): void;
164
168
  deleteAdapter(
165
169
  args: DeleteAdapterCommandInput,
166
- options?: __HttpHandlerOptions,
170
+ options?: TextractRequestOptions,
167
171
  ): Promise<DeleteAdapterCommandOutput>;
168
172
  deleteAdapter(
169
173
  args: DeleteAdapterCommandInput,
@@ -171,12 +175,12 @@ export interface Textract {
171
175
  ): void;
172
176
  deleteAdapter(
173
177
  args: DeleteAdapterCommandInput,
174
- options: __HttpHandlerOptions,
178
+ options: TextractRequestOptions,
175
179
  cb: (err: any, data?: DeleteAdapterCommandOutput) => void,
176
180
  ): void;
177
181
  deleteAdapterVersion(
178
182
  args: DeleteAdapterVersionCommandInput,
179
- options?: __HttpHandlerOptions,
183
+ options?: TextractRequestOptions,
180
184
  ): Promise<DeleteAdapterVersionCommandOutput>;
181
185
  deleteAdapterVersion(
182
186
  args: DeleteAdapterVersionCommandInput,
@@ -184,12 +188,12 @@ export interface Textract {
184
188
  ): void;
185
189
  deleteAdapterVersion(
186
190
  args: DeleteAdapterVersionCommandInput,
187
- options: __HttpHandlerOptions,
191
+ options: TextractRequestOptions,
188
192
  cb: (err: any, data?: DeleteAdapterVersionCommandOutput) => void,
189
193
  ): void;
190
194
  detectDocumentText(
191
195
  args: DetectDocumentTextCommandInput,
192
- options?: __HttpHandlerOptions,
196
+ options?: TextractRequestOptions,
193
197
  ): Promise<DetectDocumentTextCommandOutput>;
194
198
  detectDocumentText(
195
199
  args: DetectDocumentTextCommandInput,
@@ -197,12 +201,12 @@ export interface Textract {
197
201
  ): void;
198
202
  detectDocumentText(
199
203
  args: DetectDocumentTextCommandInput,
200
- options: __HttpHandlerOptions,
204
+ options: TextractRequestOptions,
201
205
  cb: (err: any, data?: DetectDocumentTextCommandOutput) => void,
202
206
  ): void;
203
207
  getAdapter(
204
208
  args: GetAdapterCommandInput,
205
- options?: __HttpHandlerOptions,
209
+ options?: TextractRequestOptions,
206
210
  ): Promise<GetAdapterCommandOutput>;
207
211
  getAdapter(
208
212
  args: GetAdapterCommandInput,
@@ -210,12 +214,12 @@ export interface Textract {
210
214
  ): void;
211
215
  getAdapter(
212
216
  args: GetAdapterCommandInput,
213
- options: __HttpHandlerOptions,
217
+ options: TextractRequestOptions,
214
218
  cb: (err: any, data?: GetAdapterCommandOutput) => void,
215
219
  ): void;
216
220
  getAdapterVersion(
217
221
  args: GetAdapterVersionCommandInput,
218
- options?: __HttpHandlerOptions,
222
+ options?: TextractRequestOptions,
219
223
  ): Promise<GetAdapterVersionCommandOutput>;
220
224
  getAdapterVersion(
221
225
  args: GetAdapterVersionCommandInput,
@@ -223,12 +227,12 @@ export interface Textract {
223
227
  ): void;
224
228
  getAdapterVersion(
225
229
  args: GetAdapterVersionCommandInput,
226
- options: __HttpHandlerOptions,
230
+ options: TextractRequestOptions,
227
231
  cb: (err: any, data?: GetAdapterVersionCommandOutput) => void,
228
232
  ): void;
229
233
  getDocumentAnalysis(
230
234
  args: GetDocumentAnalysisCommandInput,
231
- options?: __HttpHandlerOptions,
235
+ options?: TextractRequestOptions,
232
236
  ): Promise<GetDocumentAnalysisCommandOutput>;
233
237
  getDocumentAnalysis(
234
238
  args: GetDocumentAnalysisCommandInput,
@@ -236,12 +240,12 @@ export interface Textract {
236
240
  ): void;
237
241
  getDocumentAnalysis(
238
242
  args: GetDocumentAnalysisCommandInput,
239
- options: __HttpHandlerOptions,
243
+ options: TextractRequestOptions,
240
244
  cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void,
241
245
  ): void;
242
246
  getDocumentTextDetection(
243
247
  args: GetDocumentTextDetectionCommandInput,
244
- options?: __HttpHandlerOptions,
248
+ options?: TextractRequestOptions,
245
249
  ): Promise<GetDocumentTextDetectionCommandOutput>;
246
250
  getDocumentTextDetection(
247
251
  args: GetDocumentTextDetectionCommandInput,
@@ -249,12 +253,12 @@ export interface Textract {
249
253
  ): void;
250
254
  getDocumentTextDetection(
251
255
  args: GetDocumentTextDetectionCommandInput,
252
- options: __HttpHandlerOptions,
256
+ options: TextractRequestOptions,
253
257
  cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void,
254
258
  ): void;
255
259
  getExpenseAnalysis(
256
260
  args: GetExpenseAnalysisCommandInput,
257
- options?: __HttpHandlerOptions,
261
+ options?: TextractRequestOptions,
258
262
  ): Promise<GetExpenseAnalysisCommandOutput>;
259
263
  getExpenseAnalysis(
260
264
  args: GetExpenseAnalysisCommandInput,
@@ -262,12 +266,12 @@ export interface Textract {
262
266
  ): void;
263
267
  getExpenseAnalysis(
264
268
  args: GetExpenseAnalysisCommandInput,
265
- options: __HttpHandlerOptions,
269
+ options: TextractRequestOptions,
266
270
  cb: (err: any, data?: GetExpenseAnalysisCommandOutput) => void,
267
271
  ): void;
268
272
  getLendingAnalysis(
269
273
  args: GetLendingAnalysisCommandInput,
270
- options?: __HttpHandlerOptions,
274
+ options?: TextractRequestOptions,
271
275
  ): Promise<GetLendingAnalysisCommandOutput>;
272
276
  getLendingAnalysis(
273
277
  args: GetLendingAnalysisCommandInput,
@@ -275,12 +279,12 @@ export interface Textract {
275
279
  ): void;
276
280
  getLendingAnalysis(
277
281
  args: GetLendingAnalysisCommandInput,
278
- options: __HttpHandlerOptions,
282
+ options: TextractRequestOptions,
279
283
  cb: (err: any, data?: GetLendingAnalysisCommandOutput) => void,
280
284
  ): void;
281
285
  getLendingAnalysisSummary(
282
286
  args: GetLendingAnalysisSummaryCommandInput,
283
- options?: __HttpHandlerOptions,
287
+ options?: TextractRequestOptions,
284
288
  ): Promise<GetLendingAnalysisSummaryCommandOutput>;
285
289
  getLendingAnalysisSummary(
286
290
  args: GetLendingAnalysisSummaryCommandInput,
@@ -288,13 +292,13 @@ export interface Textract {
288
292
  ): void;
289
293
  getLendingAnalysisSummary(
290
294
  args: GetLendingAnalysisSummaryCommandInput,
291
- options: __HttpHandlerOptions,
295
+ options: TextractRequestOptions,
292
296
  cb: (err: any, data?: GetLendingAnalysisSummaryCommandOutput) => void,
293
297
  ): void;
294
298
  listAdapters(): Promise<ListAdaptersCommandOutput>;
295
299
  listAdapters(
296
300
  args: ListAdaptersCommandInput,
297
- options?: __HttpHandlerOptions,
301
+ options?: TextractRequestOptions,
298
302
  ): Promise<ListAdaptersCommandOutput>;
299
303
  listAdapters(
300
304
  args: ListAdaptersCommandInput,
@@ -302,13 +306,13 @@ export interface Textract {
302
306
  ): void;
303
307
  listAdapters(
304
308
  args: ListAdaptersCommandInput,
305
- options: __HttpHandlerOptions,
309
+ options: TextractRequestOptions,
306
310
  cb: (err: any, data?: ListAdaptersCommandOutput) => void,
307
311
  ): void;
308
312
  listAdapterVersions(): Promise<ListAdapterVersionsCommandOutput>;
309
313
  listAdapterVersions(
310
314
  args: ListAdapterVersionsCommandInput,
311
- options?: __HttpHandlerOptions,
315
+ options?: TextractRequestOptions,
312
316
  ): Promise<ListAdapterVersionsCommandOutput>;
313
317
  listAdapterVersions(
314
318
  args: ListAdapterVersionsCommandInput,
@@ -316,12 +320,12 @@ export interface Textract {
316
320
  ): void;
317
321
  listAdapterVersions(
318
322
  args: ListAdapterVersionsCommandInput,
319
- options: __HttpHandlerOptions,
323
+ options: TextractRequestOptions,
320
324
  cb: (err: any, data?: ListAdapterVersionsCommandOutput) => void,
321
325
  ): void;
322
326
  listTagsForResource(
323
327
  args: ListTagsForResourceCommandInput,
324
- options?: __HttpHandlerOptions,
328
+ options?: TextractRequestOptions,
325
329
  ): Promise<ListTagsForResourceCommandOutput>;
326
330
  listTagsForResource(
327
331
  args: ListTagsForResourceCommandInput,
@@ -329,12 +333,12 @@ export interface Textract {
329
333
  ): void;
330
334
  listTagsForResource(
331
335
  args: ListTagsForResourceCommandInput,
332
- options: __HttpHandlerOptions,
336
+ options: TextractRequestOptions,
333
337
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
334
338
  ): void;
335
339
  startDocumentAnalysis(
336
340
  args: StartDocumentAnalysisCommandInput,
337
- options?: __HttpHandlerOptions,
341
+ options?: TextractRequestOptions,
338
342
  ): Promise<StartDocumentAnalysisCommandOutput>;
339
343
  startDocumentAnalysis(
340
344
  args: StartDocumentAnalysisCommandInput,
@@ -342,12 +346,12 @@ export interface Textract {
342
346
  ): void;
343
347
  startDocumentAnalysis(
344
348
  args: StartDocumentAnalysisCommandInput,
345
- options: __HttpHandlerOptions,
349
+ options: TextractRequestOptions,
346
350
  cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void,
347
351
  ): void;
348
352
  startDocumentTextDetection(
349
353
  args: StartDocumentTextDetectionCommandInput,
350
- options?: __HttpHandlerOptions,
354
+ options?: TextractRequestOptions,
351
355
  ): Promise<StartDocumentTextDetectionCommandOutput>;
352
356
  startDocumentTextDetection(
353
357
  args: StartDocumentTextDetectionCommandInput,
@@ -355,12 +359,12 @@ export interface Textract {
355
359
  ): void;
356
360
  startDocumentTextDetection(
357
361
  args: StartDocumentTextDetectionCommandInput,
358
- options: __HttpHandlerOptions,
362
+ options: TextractRequestOptions,
359
363
  cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void,
360
364
  ): void;
361
365
  startExpenseAnalysis(
362
366
  args: StartExpenseAnalysisCommandInput,
363
- options?: __HttpHandlerOptions,
367
+ options?: TextractRequestOptions,
364
368
  ): Promise<StartExpenseAnalysisCommandOutput>;
365
369
  startExpenseAnalysis(
366
370
  args: StartExpenseAnalysisCommandInput,
@@ -368,12 +372,12 @@ export interface Textract {
368
372
  ): void;
369
373
  startExpenseAnalysis(
370
374
  args: StartExpenseAnalysisCommandInput,
371
- options: __HttpHandlerOptions,
375
+ options: TextractRequestOptions,
372
376
  cb: (err: any, data?: StartExpenseAnalysisCommandOutput) => void,
373
377
  ): void;
374
378
  startLendingAnalysis(
375
379
  args: StartLendingAnalysisCommandInput,
376
- options?: __HttpHandlerOptions,
380
+ options?: TextractRequestOptions,
377
381
  ): Promise<StartLendingAnalysisCommandOutput>;
378
382
  startLendingAnalysis(
379
383
  args: StartLendingAnalysisCommandInput,
@@ -381,12 +385,12 @@ export interface Textract {
381
385
  ): void;
382
386
  startLendingAnalysis(
383
387
  args: StartLendingAnalysisCommandInput,
384
- options: __HttpHandlerOptions,
388
+ options: TextractRequestOptions,
385
389
  cb: (err: any, data?: StartLendingAnalysisCommandOutput) => void,
386
390
  ): void;
387
391
  tagResource(
388
392
  args: TagResourceCommandInput,
389
- options?: __HttpHandlerOptions,
393
+ options?: TextractRequestOptions,
390
394
  ): Promise<TagResourceCommandOutput>;
391
395
  tagResource(
392
396
  args: TagResourceCommandInput,
@@ -394,12 +398,12 @@ export interface Textract {
394
398
  ): void;
395
399
  tagResource(
396
400
  args: TagResourceCommandInput,
397
- options: __HttpHandlerOptions,
401
+ options: TextractRequestOptions,
398
402
  cb: (err: any, data?: TagResourceCommandOutput) => void,
399
403
  ): void;
400
404
  untagResource(
401
405
  args: UntagResourceCommandInput,
402
- options?: __HttpHandlerOptions,
406
+ options?: TextractRequestOptions,
403
407
  ): Promise<UntagResourceCommandOutput>;
404
408
  untagResource(
405
409
  args: UntagResourceCommandInput,
@@ -407,12 +411,12 @@ export interface Textract {
407
411
  ): void;
408
412
  untagResource(
409
413
  args: UntagResourceCommandInput,
410
- options: __HttpHandlerOptions,
414
+ options: TextractRequestOptions,
411
415
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
412
416
  ): void;
413
417
  updateAdapter(
414
418
  args: UpdateAdapterCommandInput,
415
- options?: __HttpHandlerOptions,
419
+ options?: TextractRequestOptions,
416
420
  ): Promise<UpdateAdapterCommandOutput>;
417
421
  updateAdapter(
418
422
  args: UpdateAdapterCommandInput,
@@ -420,7 +424,7 @@ export interface Textract {
420
424
  ): void;
421
425
  updateAdapter(
422
426
  args: UpdateAdapterCommandInput,
423
- options: __HttpHandlerOptions,
427
+ options: TextractRequestOptions,
424
428
  cb: (err: any, data?: UpdateAdapterCommandOutput) => void,
425
429
  ): void;
426
430
  paginateListAdapters(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-textract",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-textract",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {