@aws-sdk/client-translate 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
 
@@ -536,10 +536,10 @@ const _m = "message";
536
536
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.translate";
537
537
  const _se = "server";
538
538
  const n0 = "com.amazonaws.translate";
539
- const _s_registry = TypeRegistry.for(_s);
539
+ const _s_registry = new TypeRegistry(_s);
540
540
  var TranslateServiceException$ = [-3, _s, "TranslateServiceException", 0, [], []];
541
541
  _s_registry.registerError(TranslateServiceException$, TranslateServiceException);
542
- const n0_registry = TypeRegistry.for(n0);
542
+ const n0_registry = new TypeRegistry(n0);
543
543
  var ConcurrentModificationException$ = [-3, n0, _CME,
544
544
  { [_e]: _c, [_hE]: 409 },
545
545
  [_M],
@@ -180,10 +180,10 @@ const n0 = "com.amazonaws.translate";
180
180
  import { TypeRegistry } from "@smithy/core/schema";
181
181
  import { ConcurrentModificationException, ConflictException, DetectedLanguageLowConfidenceException, InternalServerException, InvalidFilterException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagsException, UnsupportedDisplayLanguageCodeException, UnsupportedLanguagePairException, } from "../models/errors";
182
182
  import { TranslateServiceException } from "../models/TranslateServiceException";
183
- const _s_registry = TypeRegistry.for(_s);
183
+ const _s_registry = new TypeRegistry(_s);
184
184
  export var TranslateServiceException$ = [-3, _s, "TranslateServiceException", 0, [], []];
185
185
  _s_registry.registerError(TranslateServiceException$, TranslateServiceException);
186
- const n0_registry = TypeRegistry.for(n0);
186
+ const n0_registry = new TypeRegistry(n0);
187
187
  export var ConcurrentModificationException$ = [-3, n0, _CME,
188
188
  { [_e]: _c, [_hE]: 409 },
189
189
  [_M],
@@ -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 CreateParallelDataCommandInput, type CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
3
3
  import { type DeleteParallelDataCommandInput, type DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
4
4
  import { type DeleteTerminologyCommandInput, type DeleteTerminologyCommandOutput } from "./commands/DeleteTerminologyCommand";
@@ -19,125 +19,131 @@ import { type TranslateTextCommandInput, type TranslateTextCommandOutput } from
19
19
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
20
20
  import { type UpdateParallelDataCommandInput, type UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
21
21
  import { TranslateClient } from "./TranslateClient";
22
+ /**
23
+ * @public
24
+ */
25
+ export interface TranslateRequestOptions extends __HttpHandlerOptions {
26
+ metricsRecorder?: __MetricsRecorder<unknown>;
27
+ }
22
28
  export interface Translate {
23
29
  /**
24
30
  * @see {@link CreateParallelDataCommand}
25
31
  */
26
- createParallelData(args: CreateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<CreateParallelDataCommandOutput>;
32
+ createParallelData(args: CreateParallelDataCommandInput, options?: TranslateRequestOptions): Promise<CreateParallelDataCommandOutput>;
27
33
  createParallelData(args: CreateParallelDataCommandInput, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
28
- createParallelData(args: CreateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
34
+ createParallelData(args: CreateParallelDataCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
29
35
  /**
30
36
  * @see {@link DeleteParallelDataCommand}
31
37
  */
32
- deleteParallelData(args: DeleteParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<DeleteParallelDataCommandOutput>;
38
+ deleteParallelData(args: DeleteParallelDataCommandInput, options?: TranslateRequestOptions): Promise<DeleteParallelDataCommandOutput>;
33
39
  deleteParallelData(args: DeleteParallelDataCommandInput, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
34
- deleteParallelData(args: DeleteParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
40
+ deleteParallelData(args: DeleteParallelDataCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
35
41
  /**
36
42
  * @see {@link DeleteTerminologyCommand}
37
43
  */
38
- deleteTerminology(args: DeleteTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTerminologyCommandOutput>;
44
+ deleteTerminology(args: DeleteTerminologyCommandInput, options?: TranslateRequestOptions): Promise<DeleteTerminologyCommandOutput>;
39
45
  deleteTerminology(args: DeleteTerminologyCommandInput, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
40
- deleteTerminology(args: DeleteTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
46
+ deleteTerminology(args: DeleteTerminologyCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
41
47
  /**
42
48
  * @see {@link DescribeTextTranslationJobCommand}
43
49
  */
44
- describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTextTranslationJobCommandOutput>;
50
+ describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options?: TranslateRequestOptions): Promise<DescribeTextTranslationJobCommandOutput>;
45
51
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
46
- describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
52
+ describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
47
53
  /**
48
54
  * @see {@link GetParallelDataCommand}
49
55
  */
50
- getParallelData(args: GetParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<GetParallelDataCommandOutput>;
56
+ getParallelData(args: GetParallelDataCommandInput, options?: TranslateRequestOptions): Promise<GetParallelDataCommandOutput>;
51
57
  getParallelData(args: GetParallelDataCommandInput, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
52
- getParallelData(args: GetParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
58
+ getParallelData(args: GetParallelDataCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
53
59
  /**
54
60
  * @see {@link GetTerminologyCommand}
55
61
  */
56
- getTerminology(args: GetTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<GetTerminologyCommandOutput>;
62
+ getTerminology(args: GetTerminologyCommandInput, options?: TranslateRequestOptions): Promise<GetTerminologyCommandOutput>;
57
63
  getTerminology(args: GetTerminologyCommandInput, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
58
- getTerminology(args: GetTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
64
+ getTerminology(args: GetTerminologyCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
59
65
  /**
60
66
  * @see {@link ImportTerminologyCommand}
61
67
  */
62
- importTerminology(args: ImportTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<ImportTerminologyCommandOutput>;
68
+ importTerminology(args: ImportTerminologyCommandInput, options?: TranslateRequestOptions): Promise<ImportTerminologyCommandOutput>;
63
69
  importTerminology(args: ImportTerminologyCommandInput, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
64
- importTerminology(args: ImportTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
70
+ importTerminology(args: ImportTerminologyCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
65
71
  /**
66
72
  * @see {@link ListLanguagesCommand}
67
73
  */
68
74
  listLanguages(): Promise<ListLanguagesCommandOutput>;
69
- listLanguages(args: ListLanguagesCommandInput, options?: __HttpHandlerOptions): Promise<ListLanguagesCommandOutput>;
75
+ listLanguages(args: ListLanguagesCommandInput, options?: TranslateRequestOptions): Promise<ListLanguagesCommandOutput>;
70
76
  listLanguages(args: ListLanguagesCommandInput, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
71
- listLanguages(args: ListLanguagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
77
+ listLanguages(args: ListLanguagesCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
72
78
  /**
73
79
  * @see {@link ListParallelDataCommand}
74
80
  */
75
81
  listParallelData(): Promise<ListParallelDataCommandOutput>;
76
- listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
82
+ listParallelData(args: ListParallelDataCommandInput, options?: TranslateRequestOptions): Promise<ListParallelDataCommandOutput>;
77
83
  listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
78
- listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
84
+ listParallelData(args: ListParallelDataCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
79
85
  /**
80
86
  * @see {@link ListTagsForResourceCommand}
81
87
  */
82
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
88
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: TranslateRequestOptions): Promise<ListTagsForResourceCommandOutput>;
83
89
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
84
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
90
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
85
91
  /**
86
92
  * @see {@link ListTerminologiesCommand}
87
93
  */
88
94
  listTerminologies(): Promise<ListTerminologiesCommandOutput>;
89
- listTerminologies(args: ListTerminologiesCommandInput, options?: __HttpHandlerOptions): Promise<ListTerminologiesCommandOutput>;
95
+ listTerminologies(args: ListTerminologiesCommandInput, options?: TranslateRequestOptions): Promise<ListTerminologiesCommandOutput>;
90
96
  listTerminologies(args: ListTerminologiesCommandInput, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
91
- listTerminologies(args: ListTerminologiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
97
+ listTerminologies(args: ListTerminologiesCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
92
98
  /**
93
99
  * @see {@link ListTextTranslationJobsCommand}
94
100
  */
95
101
  listTextTranslationJobs(): Promise<ListTextTranslationJobsCommandOutput>;
96
- listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTextTranslationJobsCommandOutput>;
102
+ listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options?: TranslateRequestOptions): Promise<ListTextTranslationJobsCommandOutput>;
97
103
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
98
- listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
104
+ listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
99
105
  /**
100
106
  * @see {@link StartTextTranslationJobCommand}
101
107
  */
102
- startTextTranslationJob(args: StartTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartTextTranslationJobCommandOutput>;
108
+ startTextTranslationJob(args: StartTextTranslationJobCommandInput, options?: TranslateRequestOptions): Promise<StartTextTranslationJobCommandOutput>;
103
109
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
104
- startTextTranslationJob(args: StartTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
110
+ startTextTranslationJob(args: StartTextTranslationJobCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
105
111
  /**
106
112
  * @see {@link StopTextTranslationJobCommand}
107
113
  */
108
- stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTextTranslationJobCommandOutput>;
114
+ stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: TranslateRequestOptions): Promise<StopTextTranslationJobCommandOutput>;
109
115
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
110
- stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
116
+ stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
111
117
  /**
112
118
  * @see {@link TagResourceCommand}
113
119
  */
114
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
120
+ tagResource(args: TagResourceCommandInput, options?: TranslateRequestOptions): Promise<TagResourceCommandOutput>;
115
121
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
116
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
122
+ tagResource(args: TagResourceCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
117
123
  /**
118
124
  * @see {@link TranslateDocumentCommand}
119
125
  */
120
- translateDocument(args: TranslateDocumentCommandInput, options?: __HttpHandlerOptions): Promise<TranslateDocumentCommandOutput>;
126
+ translateDocument(args: TranslateDocumentCommandInput, options?: TranslateRequestOptions): Promise<TranslateDocumentCommandOutput>;
121
127
  translateDocument(args: TranslateDocumentCommandInput, cb: (err: any, data?: TranslateDocumentCommandOutput) => void): void;
122
- translateDocument(args: TranslateDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateDocumentCommandOutput) => void): void;
128
+ translateDocument(args: TranslateDocumentCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: TranslateDocumentCommandOutput) => void): void;
123
129
  /**
124
130
  * @see {@link TranslateTextCommand}
125
131
  */
126
- translateText(args: TranslateTextCommandInput, options?: __HttpHandlerOptions): Promise<TranslateTextCommandOutput>;
132
+ translateText(args: TranslateTextCommandInput, options?: TranslateRequestOptions): Promise<TranslateTextCommandOutput>;
127
133
  translateText(args: TranslateTextCommandInput, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
128
- translateText(args: TranslateTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
134
+ translateText(args: TranslateTextCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
129
135
  /**
130
136
  * @see {@link UntagResourceCommand}
131
137
  */
132
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
138
+ untagResource(args: UntagResourceCommandInput, options?: TranslateRequestOptions): Promise<UntagResourceCommandOutput>;
133
139
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
134
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
140
+ untagResource(args: UntagResourceCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
135
141
  /**
136
142
  * @see {@link UpdateParallelDataCommand}
137
143
  */
138
- updateParallelData(args: UpdateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<UpdateParallelDataCommandOutput>;
144
+ updateParallelData(args: UpdateParallelDataCommandInput, options?: TranslateRequestOptions): Promise<UpdateParallelDataCommandOutput>;
139
145
  updateParallelData(args: UpdateParallelDataCommandInput, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
140
- updateParallelData(args: UpdateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
146
+ updateParallelData(args: UpdateParallelDataCommandInput, options: TranslateRequestOptions, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
141
147
  /**
142
148
  * @see {@link ListLanguagesCommand}
143
149
  * @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";
@@ -77,10 +78,13 @@ import {
77
78
  UpdateParallelDataCommandOutput,
78
79
  } from "./commands/UpdateParallelDataCommand";
79
80
  import { TranslateClient } from "./TranslateClient";
81
+ export interface TranslateRequestOptions extends __HttpHandlerOptions {
82
+ metricsRecorder?: __MetricsRecorder<unknown>;
83
+ }
80
84
  export interface Translate {
81
85
  createParallelData(
82
86
  args: CreateParallelDataCommandInput,
83
- options?: __HttpHandlerOptions,
87
+ options?: TranslateRequestOptions,
84
88
  ): Promise<CreateParallelDataCommandOutput>;
85
89
  createParallelData(
86
90
  args: CreateParallelDataCommandInput,
@@ -88,12 +92,12 @@ export interface Translate {
88
92
  ): void;
89
93
  createParallelData(
90
94
  args: CreateParallelDataCommandInput,
91
- options: __HttpHandlerOptions,
95
+ options: TranslateRequestOptions,
92
96
  cb: (err: any, data?: CreateParallelDataCommandOutput) => void,
93
97
  ): void;
94
98
  deleteParallelData(
95
99
  args: DeleteParallelDataCommandInput,
96
- options?: __HttpHandlerOptions,
100
+ options?: TranslateRequestOptions,
97
101
  ): Promise<DeleteParallelDataCommandOutput>;
98
102
  deleteParallelData(
99
103
  args: DeleteParallelDataCommandInput,
@@ -101,12 +105,12 @@ export interface Translate {
101
105
  ): void;
102
106
  deleteParallelData(
103
107
  args: DeleteParallelDataCommandInput,
104
- options: __HttpHandlerOptions,
108
+ options: TranslateRequestOptions,
105
109
  cb: (err: any, data?: DeleteParallelDataCommandOutput) => void,
106
110
  ): void;
107
111
  deleteTerminology(
108
112
  args: DeleteTerminologyCommandInput,
109
- options?: __HttpHandlerOptions,
113
+ options?: TranslateRequestOptions,
110
114
  ): Promise<DeleteTerminologyCommandOutput>;
111
115
  deleteTerminology(
112
116
  args: DeleteTerminologyCommandInput,
@@ -114,12 +118,12 @@ export interface Translate {
114
118
  ): void;
115
119
  deleteTerminology(
116
120
  args: DeleteTerminologyCommandInput,
117
- options: __HttpHandlerOptions,
121
+ options: TranslateRequestOptions,
118
122
  cb: (err: any, data?: DeleteTerminologyCommandOutput) => void,
119
123
  ): void;
120
124
  describeTextTranslationJob(
121
125
  args: DescribeTextTranslationJobCommandInput,
122
- options?: __HttpHandlerOptions,
126
+ options?: TranslateRequestOptions,
123
127
  ): Promise<DescribeTextTranslationJobCommandOutput>;
124
128
  describeTextTranslationJob(
125
129
  args: DescribeTextTranslationJobCommandInput,
@@ -127,12 +131,12 @@ export interface Translate {
127
131
  ): void;
128
132
  describeTextTranslationJob(
129
133
  args: DescribeTextTranslationJobCommandInput,
130
- options: __HttpHandlerOptions,
134
+ options: TranslateRequestOptions,
131
135
  cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void,
132
136
  ): void;
133
137
  getParallelData(
134
138
  args: GetParallelDataCommandInput,
135
- options?: __HttpHandlerOptions,
139
+ options?: TranslateRequestOptions,
136
140
  ): Promise<GetParallelDataCommandOutput>;
137
141
  getParallelData(
138
142
  args: GetParallelDataCommandInput,
@@ -140,12 +144,12 @@ export interface Translate {
140
144
  ): void;
141
145
  getParallelData(
142
146
  args: GetParallelDataCommandInput,
143
- options: __HttpHandlerOptions,
147
+ options: TranslateRequestOptions,
144
148
  cb: (err: any, data?: GetParallelDataCommandOutput) => void,
145
149
  ): void;
146
150
  getTerminology(
147
151
  args: GetTerminologyCommandInput,
148
- options?: __HttpHandlerOptions,
152
+ options?: TranslateRequestOptions,
149
153
  ): Promise<GetTerminologyCommandOutput>;
150
154
  getTerminology(
151
155
  args: GetTerminologyCommandInput,
@@ -153,12 +157,12 @@ export interface Translate {
153
157
  ): void;
154
158
  getTerminology(
155
159
  args: GetTerminologyCommandInput,
156
- options: __HttpHandlerOptions,
160
+ options: TranslateRequestOptions,
157
161
  cb: (err: any, data?: GetTerminologyCommandOutput) => void,
158
162
  ): void;
159
163
  importTerminology(
160
164
  args: ImportTerminologyCommandInput,
161
- options?: __HttpHandlerOptions,
165
+ options?: TranslateRequestOptions,
162
166
  ): Promise<ImportTerminologyCommandOutput>;
163
167
  importTerminology(
164
168
  args: ImportTerminologyCommandInput,
@@ -166,13 +170,13 @@ export interface Translate {
166
170
  ): void;
167
171
  importTerminology(
168
172
  args: ImportTerminologyCommandInput,
169
- options: __HttpHandlerOptions,
173
+ options: TranslateRequestOptions,
170
174
  cb: (err: any, data?: ImportTerminologyCommandOutput) => void,
171
175
  ): void;
172
176
  listLanguages(): Promise<ListLanguagesCommandOutput>;
173
177
  listLanguages(
174
178
  args: ListLanguagesCommandInput,
175
- options?: __HttpHandlerOptions,
179
+ options?: TranslateRequestOptions,
176
180
  ): Promise<ListLanguagesCommandOutput>;
177
181
  listLanguages(
178
182
  args: ListLanguagesCommandInput,
@@ -180,13 +184,13 @@ export interface Translate {
180
184
  ): void;
181
185
  listLanguages(
182
186
  args: ListLanguagesCommandInput,
183
- options: __HttpHandlerOptions,
187
+ options: TranslateRequestOptions,
184
188
  cb: (err: any, data?: ListLanguagesCommandOutput) => void,
185
189
  ): void;
186
190
  listParallelData(): Promise<ListParallelDataCommandOutput>;
187
191
  listParallelData(
188
192
  args: ListParallelDataCommandInput,
189
- options?: __HttpHandlerOptions,
193
+ options?: TranslateRequestOptions,
190
194
  ): Promise<ListParallelDataCommandOutput>;
191
195
  listParallelData(
192
196
  args: ListParallelDataCommandInput,
@@ -194,12 +198,12 @@ export interface Translate {
194
198
  ): void;
195
199
  listParallelData(
196
200
  args: ListParallelDataCommandInput,
197
- options: __HttpHandlerOptions,
201
+ options: TranslateRequestOptions,
198
202
  cb: (err: any, data?: ListParallelDataCommandOutput) => void,
199
203
  ): void;
200
204
  listTagsForResource(
201
205
  args: ListTagsForResourceCommandInput,
202
- options?: __HttpHandlerOptions,
206
+ options?: TranslateRequestOptions,
203
207
  ): Promise<ListTagsForResourceCommandOutput>;
204
208
  listTagsForResource(
205
209
  args: ListTagsForResourceCommandInput,
@@ -207,13 +211,13 @@ export interface Translate {
207
211
  ): void;
208
212
  listTagsForResource(
209
213
  args: ListTagsForResourceCommandInput,
210
- options: __HttpHandlerOptions,
214
+ options: TranslateRequestOptions,
211
215
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
212
216
  ): void;
213
217
  listTerminologies(): Promise<ListTerminologiesCommandOutput>;
214
218
  listTerminologies(
215
219
  args: ListTerminologiesCommandInput,
216
- options?: __HttpHandlerOptions,
220
+ options?: TranslateRequestOptions,
217
221
  ): Promise<ListTerminologiesCommandOutput>;
218
222
  listTerminologies(
219
223
  args: ListTerminologiesCommandInput,
@@ -221,13 +225,13 @@ export interface Translate {
221
225
  ): void;
222
226
  listTerminologies(
223
227
  args: ListTerminologiesCommandInput,
224
- options: __HttpHandlerOptions,
228
+ options: TranslateRequestOptions,
225
229
  cb: (err: any, data?: ListTerminologiesCommandOutput) => void,
226
230
  ): void;
227
231
  listTextTranslationJobs(): Promise<ListTextTranslationJobsCommandOutput>;
228
232
  listTextTranslationJobs(
229
233
  args: ListTextTranslationJobsCommandInput,
230
- options?: __HttpHandlerOptions,
234
+ options?: TranslateRequestOptions,
231
235
  ): Promise<ListTextTranslationJobsCommandOutput>;
232
236
  listTextTranslationJobs(
233
237
  args: ListTextTranslationJobsCommandInput,
@@ -235,12 +239,12 @@ export interface Translate {
235
239
  ): void;
236
240
  listTextTranslationJobs(
237
241
  args: ListTextTranslationJobsCommandInput,
238
- options: __HttpHandlerOptions,
242
+ options: TranslateRequestOptions,
239
243
  cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void,
240
244
  ): void;
241
245
  startTextTranslationJob(
242
246
  args: StartTextTranslationJobCommandInput,
243
- options?: __HttpHandlerOptions,
247
+ options?: TranslateRequestOptions,
244
248
  ): Promise<StartTextTranslationJobCommandOutput>;
245
249
  startTextTranslationJob(
246
250
  args: StartTextTranslationJobCommandInput,
@@ -248,12 +252,12 @@ export interface Translate {
248
252
  ): void;
249
253
  startTextTranslationJob(
250
254
  args: StartTextTranslationJobCommandInput,
251
- options: __HttpHandlerOptions,
255
+ options: TranslateRequestOptions,
252
256
  cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void,
253
257
  ): void;
254
258
  stopTextTranslationJob(
255
259
  args: StopTextTranslationJobCommandInput,
256
- options?: __HttpHandlerOptions,
260
+ options?: TranslateRequestOptions,
257
261
  ): Promise<StopTextTranslationJobCommandOutput>;
258
262
  stopTextTranslationJob(
259
263
  args: StopTextTranslationJobCommandInput,
@@ -261,12 +265,12 @@ export interface Translate {
261
265
  ): void;
262
266
  stopTextTranslationJob(
263
267
  args: StopTextTranslationJobCommandInput,
264
- options: __HttpHandlerOptions,
268
+ options: TranslateRequestOptions,
265
269
  cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void,
266
270
  ): void;
267
271
  tagResource(
268
272
  args: TagResourceCommandInput,
269
- options?: __HttpHandlerOptions,
273
+ options?: TranslateRequestOptions,
270
274
  ): Promise<TagResourceCommandOutput>;
271
275
  tagResource(
272
276
  args: TagResourceCommandInput,
@@ -274,12 +278,12 @@ export interface Translate {
274
278
  ): void;
275
279
  tagResource(
276
280
  args: TagResourceCommandInput,
277
- options: __HttpHandlerOptions,
281
+ options: TranslateRequestOptions,
278
282
  cb: (err: any, data?: TagResourceCommandOutput) => void,
279
283
  ): void;
280
284
  translateDocument(
281
285
  args: TranslateDocumentCommandInput,
282
- options?: __HttpHandlerOptions,
286
+ options?: TranslateRequestOptions,
283
287
  ): Promise<TranslateDocumentCommandOutput>;
284
288
  translateDocument(
285
289
  args: TranslateDocumentCommandInput,
@@ -287,12 +291,12 @@ export interface Translate {
287
291
  ): void;
288
292
  translateDocument(
289
293
  args: TranslateDocumentCommandInput,
290
- options: __HttpHandlerOptions,
294
+ options: TranslateRequestOptions,
291
295
  cb: (err: any, data?: TranslateDocumentCommandOutput) => void,
292
296
  ): void;
293
297
  translateText(
294
298
  args: TranslateTextCommandInput,
295
- options?: __HttpHandlerOptions,
299
+ options?: TranslateRequestOptions,
296
300
  ): Promise<TranslateTextCommandOutput>;
297
301
  translateText(
298
302
  args: TranslateTextCommandInput,
@@ -300,12 +304,12 @@ export interface Translate {
300
304
  ): void;
301
305
  translateText(
302
306
  args: TranslateTextCommandInput,
303
- options: __HttpHandlerOptions,
307
+ options: TranslateRequestOptions,
304
308
  cb: (err: any, data?: TranslateTextCommandOutput) => void,
305
309
  ): void;
306
310
  untagResource(
307
311
  args: UntagResourceCommandInput,
308
- options?: __HttpHandlerOptions,
312
+ options?: TranslateRequestOptions,
309
313
  ): Promise<UntagResourceCommandOutput>;
310
314
  untagResource(
311
315
  args: UntagResourceCommandInput,
@@ -313,12 +317,12 @@ export interface Translate {
313
317
  ): void;
314
318
  untagResource(
315
319
  args: UntagResourceCommandInput,
316
- options: __HttpHandlerOptions,
320
+ options: TranslateRequestOptions,
317
321
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
318
322
  ): void;
319
323
  updateParallelData(
320
324
  args: UpdateParallelDataCommandInput,
321
- options?: __HttpHandlerOptions,
325
+ options?: TranslateRequestOptions,
322
326
  ): Promise<UpdateParallelDataCommandOutput>;
323
327
  updateParallelData(
324
328
  args: UpdateParallelDataCommandInput,
@@ -326,7 +330,7 @@ export interface Translate {
326
330
  ): void;
327
331
  updateParallelData(
328
332
  args: UpdateParallelDataCommandInput,
329
- options: __HttpHandlerOptions,
333
+ options: TranslateRequestOptions,
330
334
  cb: (err: any, data?: UpdateParallelDataCommandOutput) => void,
331
335
  ): void;
332
336
  paginateListLanguages(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-translate",
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": {