@aws-sdk/client-chime-sdk-media-pipelines 3.476.0 → 3.478.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.
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListMediaInsightsPipelineConfigurationsCommand = exports.de_ListMediaCapturePipelinesCommand = exports.de_GetVoiceToneAnalysisTaskCommand = exports.de_GetSpeakerSearchTaskCommand = exports.de_GetMediaPipelineKinesisVideoStreamPoolCommand = exports.de_GetMediaPipelineCommand = exports.de_GetMediaInsightsPipelineConfigurationCommand = exports.de_GetMediaCapturePipelineCommand = exports.de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = exports.de_DeleteMediaPipelineCommand = exports.de_DeleteMediaInsightsPipelineConfigurationCommand = exports.de_DeleteMediaCapturePipelineCommand = exports.de_CreateMediaStreamPipelineCommand = exports.de_CreateMediaPipelineKinesisVideoStreamPoolCommand = exports.de_CreateMediaLiveConnectorPipelineCommand = exports.de_CreateMediaInsightsPipelineConfigurationCommand = exports.de_CreateMediaInsightsPipelineCommand = exports.de_CreateMediaConcatenationPipelineCommand = exports.de_CreateMediaCapturePipelineCommand = exports.se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = exports.se_UpdateMediaInsightsPipelineStatusCommand = exports.se_UpdateMediaInsightsPipelineConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopVoiceToneAnalysisTaskCommand = exports.se_StopSpeakerSearchTaskCommand = exports.se_StartVoiceToneAnalysisTaskCommand = exports.se_StartSpeakerSearchTaskCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMediaPipelinesCommand = exports.se_ListMediaPipelineKinesisVideoStreamPoolsCommand = exports.se_ListMediaInsightsPipelineConfigurationsCommand = exports.se_ListMediaCapturePipelinesCommand = exports.se_GetVoiceToneAnalysisTaskCommand = exports.se_GetSpeakerSearchTaskCommand = exports.se_GetMediaPipelineKinesisVideoStreamPoolCommand = exports.se_GetMediaPipelineCommand = exports.se_GetMediaInsightsPipelineConfigurationCommand = exports.se_GetMediaCapturePipelineCommand = exports.se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = exports.se_DeleteMediaPipelineCommand = exports.se_DeleteMediaInsightsPipelineConfigurationCommand = exports.se_DeleteMediaCapturePipelineCommand = exports.se_CreateMediaStreamPipelineCommand = exports.se_CreateMediaPipelineKinesisVideoStreamPoolCommand = exports.se_CreateMediaLiveConnectorPipelineCommand = exports.se_CreateMediaInsightsPipelineConfigurationCommand = exports.se_CreateMediaInsightsPipelineCommand = exports.se_CreateMediaConcatenationPipelineCommand = exports.se_CreateMediaCapturePipelineCommand = void 0;
4
4
  exports.de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = exports.de_UpdateMediaInsightsPipelineStatusCommand = exports.de_UpdateMediaInsightsPipelineConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopVoiceToneAnalysisTaskCommand = exports.de_StopSpeakerSearchTaskCommand = exports.de_StartVoiceToneAnalysisTaskCommand = exports.de_StartSpeakerSearchTaskCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMediaPipelinesCommand = exports.de_ListMediaPipelineKinesisVideoStreamPoolsCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const ChimeSDKMediaPipelinesServiceException_1 = require("../models/ChimeSDKMediaPipelinesServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CreateMediaCapturePipelineCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_1.requestBuilder)(input, context);
12
12
  const headers = {
13
13
  "content-type": "application/json",
14
14
  };
15
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines";
15
+ b.bp("/sdk-media-capture-pipelines");
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  ChimeSdkMeetingConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -23,23 +23,16 @@ const se_CreateMediaCapturePipelineCommand = async (input, context) => {
23
23
  SourceType: [],
24
24
  Tags: (_) => (0, smithy_client_1._json)(_),
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_CreateMediaCapturePipelineCommand = se_CreateMediaCapturePipelineCommand;
37
30
  const se_CreateMediaConcatenationPipelineCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
39
32
  const headers = {
40
33
  "content-type": "application/json",
41
34
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-concatenation-pipelines";
35
+ b.bp("/sdk-media-concatenation-pipelines");
43
36
  let body;
44
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
38
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -47,23 +40,16 @@ const se_CreateMediaConcatenationPipelineCommand = async (input, context) => {
47
40
  Sources: (_) => (0, smithy_client_1._json)(_),
48
41
  Tags: (_) => (0, smithy_client_1._json)(_),
49
42
  }));
50
- return new protocol_http_1.HttpRequest({
51
- protocol,
52
- hostname,
53
- port,
54
- method: "POST",
55
- headers,
56
- path: resolvedPath,
57
- body,
58
- });
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
59
45
  };
60
46
  exports.se_CreateMediaConcatenationPipelineCommand = se_CreateMediaConcatenationPipelineCommand;
61
47
  const se_CreateMediaInsightsPipelineCommand = async (input, context) => {
62
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
+ const b = (0, core_1.requestBuilder)(input, context);
63
49
  const headers = {
64
50
  "content-type": "application/json",
65
51
  };
66
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipelines";
52
+ b.bp("/media-insights-pipelines");
67
53
  let body;
68
54
  body = JSON.stringify((0, smithy_client_1.take)(input, {
69
55
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -74,23 +60,16 @@ const se_CreateMediaInsightsPipelineCommand = async (input, context) => {
74
60
  S3RecordingSinkRuntimeConfiguration: (_) => (0, smithy_client_1._json)(_),
75
61
  Tags: (_) => (0, smithy_client_1._json)(_),
76
62
  }));
77
- return new protocol_http_1.HttpRequest({
78
- protocol,
79
- hostname,
80
- port,
81
- method: "POST",
82
- headers,
83
- path: resolvedPath,
84
- body,
85
- });
63
+ b.m("POST").h(headers).b(body);
64
+ return b.build();
86
65
  };
87
66
  exports.se_CreateMediaInsightsPipelineCommand = se_CreateMediaInsightsPipelineCommand;
88
67
  const se_CreateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
89
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const b = (0, core_1.requestBuilder)(input, context);
90
69
  const headers = {
91
70
  "content-type": "application/json",
92
71
  };
93
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipeline-configurations";
72
+ b.bp("/media-insights-pipeline-configurations");
94
73
  let body;
95
74
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
75
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -100,23 +79,16 @@ const se_CreateMediaInsightsPipelineConfigurationCommand = async (input, context
100
79
  ResourceAccessRoleArn: [],
101
80
  Tags: (_) => (0, smithy_client_1._json)(_),
102
81
  }));
103
- return new protocol_http_1.HttpRequest({
104
- protocol,
105
- hostname,
106
- port,
107
- method: "POST",
108
- headers,
109
- path: resolvedPath,
110
- body,
111
- });
82
+ b.m("POST").h(headers).b(body);
83
+ return b.build();
112
84
  };
113
85
  exports.se_CreateMediaInsightsPipelineConfigurationCommand = se_CreateMediaInsightsPipelineConfigurationCommand;
114
86
  const se_CreateMediaLiveConnectorPipelineCommand = async (input, context) => {
115
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_1.requestBuilder)(input, context);
116
88
  const headers = {
117
89
  "content-type": "application/json",
118
90
  };
119
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-live-connector-pipelines";
91
+ b.bp("/sdk-media-live-connector-pipelines");
120
92
  let body;
121
93
  body = JSON.stringify((0, smithy_client_1.take)(input, {
122
94
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -124,24 +96,16 @@ const se_CreateMediaLiveConnectorPipelineCommand = async (input, context) => {
124
96
  Sources: (_) => (0, smithy_client_1._json)(_),
125
97
  Tags: (_) => (0, smithy_client_1._json)(_),
126
98
  }));
127
- return new protocol_http_1.HttpRequest({
128
- protocol,
129
- hostname,
130
- port,
131
- method: "POST",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
99
+ b.m("POST").h(headers).b(body);
100
+ return b.build();
136
101
  };
137
102
  exports.se_CreateMediaLiveConnectorPipelineCommand = se_CreateMediaLiveConnectorPipelineCommand;
138
103
  const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
+ const b = (0, core_1.requestBuilder)(input, context);
140
105
  const headers = {
141
106
  "content-type": "application/json",
142
107
  };
143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
144
- "/media-pipeline-kinesis-video-stream-pools";
108
+ b.bp("/media-pipeline-kinesis-video-stream-pools");
145
109
  let body;
146
110
  body = JSON.stringify((0, smithy_client_1.take)(input, {
147
111
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -149,23 +113,16 @@ const se_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (input, contex
149
113
  StreamConfiguration: (_) => (0, smithy_client_1._json)(_),
150
114
  Tags: (_) => (0, smithy_client_1._json)(_),
151
115
  }));
152
- return new protocol_http_1.HttpRequest({
153
- protocol,
154
- hostname,
155
- port,
156
- method: "POST",
157
- headers,
158
- path: resolvedPath,
159
- body,
160
- });
116
+ b.m("POST").h(headers).b(body);
117
+ return b.build();
161
118
  };
162
119
  exports.se_CreateMediaPipelineKinesisVideoStreamPoolCommand = se_CreateMediaPipelineKinesisVideoStreamPoolCommand;
163
120
  const se_CreateMediaStreamPipelineCommand = async (input, context) => {
164
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
165
122
  const headers = {
166
123
  "content-type": "application/json",
167
124
  };
168
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-stream-pipelines";
125
+ b.bp("/sdk-media-stream-pipelines");
169
126
  let body;
170
127
  body = JSON.stringify((0, smithy_client_1.take)(input, {
171
128
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -173,312 +130,185 @@ const se_CreateMediaStreamPipelineCommand = async (input, context) => {
173
130
  Sources: (_) => (0, smithy_client_1._json)(_),
174
131
  Tags: (_) => (0, smithy_client_1._json)(_),
175
132
  }));
176
- return new protocol_http_1.HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "POST",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
133
+ b.m("POST").h(headers).b(body);
134
+ return b.build();
185
135
  };
186
136
  exports.se_CreateMediaStreamPipelineCommand = se_CreateMediaStreamPipelineCommand;
187
137
  const se_DeleteMediaCapturePipelineCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
+ const b = (0, core_1.requestBuilder)(input, context);
189
139
  const headers = {};
190
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
191
- "/sdk-media-capture-pipelines/{MediaPipelineId}";
192
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
140
+ b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
141
+ b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
193
142
  let body;
194
- return new protocol_http_1.HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "DELETE",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
143
+ b.m("DELETE").h(headers).b(body);
144
+ return b.build();
203
145
  };
204
146
  exports.se_DeleteMediaCapturePipelineCommand = se_DeleteMediaCapturePipelineCommand;
205
147
  const se_DeleteMediaInsightsPipelineConfigurationCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_1.requestBuilder)(input, context);
207
149
  const headers = {};
208
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
209
- "/media-insights-pipeline-configurations/{Identifier}";
210
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
150
+ b.bp("/media-insights-pipeline-configurations/{Identifier}");
151
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
211
152
  let body;
212
- return new protocol_http_1.HttpRequest({
213
- protocol,
214
- hostname,
215
- port,
216
- method: "DELETE",
217
- headers,
218
- path: resolvedPath,
219
- body,
220
- });
153
+ b.m("DELETE").h(headers).b(body);
154
+ return b.build();
221
155
  };
222
156
  exports.se_DeleteMediaInsightsPipelineConfigurationCommand = se_DeleteMediaInsightsPipelineConfigurationCommand;
223
157
  const se_DeleteMediaPipelineCommand = async (input, context) => {
224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
225
159
  const headers = {};
226
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}";
227
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
160
+ b.bp("/sdk-media-pipelines/{MediaPipelineId}");
161
+ b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
228
162
  let body;
229
- return new protocol_http_1.HttpRequest({
230
- protocol,
231
- hostname,
232
- port,
233
- method: "DELETE",
234
- headers,
235
- path: resolvedPath,
236
- body,
237
- });
163
+ b.m("DELETE").h(headers).b(body);
164
+ return b.build();
238
165
  };
239
166
  exports.se_DeleteMediaPipelineCommand = se_DeleteMediaPipelineCommand;
240
167
  const se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = (0, core_1.requestBuilder)(input, context);
242
169
  const headers = {};
243
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
244
- "/media-pipeline-kinesis-video-stream-pools/{Identifier}";
245
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
170
+ b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
171
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
246
172
  let body;
247
- return new protocol_http_1.HttpRequest({
248
- protocol,
249
- hostname,
250
- port,
251
- method: "DELETE",
252
- headers,
253
- path: resolvedPath,
254
- body,
255
- });
173
+ b.m("DELETE").h(headers).b(body);
174
+ return b.build();
256
175
  };
257
176
  exports.se_DeleteMediaPipelineKinesisVideoStreamPoolCommand = se_DeleteMediaPipelineKinesisVideoStreamPoolCommand;
258
177
  const se_GetMediaCapturePipelineCommand = async (input, context) => {
259
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
178
+ const b = (0, core_1.requestBuilder)(input, context);
260
179
  const headers = {};
261
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
262
- "/sdk-media-capture-pipelines/{MediaPipelineId}";
263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
180
+ b.bp("/sdk-media-capture-pipelines/{MediaPipelineId}");
181
+ b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
264
182
  let body;
265
- return new protocol_http_1.HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "GET",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
183
+ b.m("GET").h(headers).b(body);
184
+ return b.build();
274
185
  };
275
186
  exports.se_GetMediaCapturePipelineCommand = se_GetMediaCapturePipelineCommand;
276
187
  const se_GetMediaInsightsPipelineConfigurationCommand = async (input, context) => {
277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = (0, core_1.requestBuilder)(input, context);
278
189
  const headers = {};
279
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
280
- "/media-insights-pipeline-configurations/{Identifier}";
281
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
190
+ b.bp("/media-insights-pipeline-configurations/{Identifier}");
191
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
282
192
  let body;
283
- return new protocol_http_1.HttpRequest({
284
- protocol,
285
- hostname,
286
- port,
287
- method: "GET",
288
- headers,
289
- path: resolvedPath,
290
- body,
291
- });
193
+ b.m("GET").h(headers).b(body);
194
+ return b.build();
292
195
  };
293
196
  exports.se_GetMediaInsightsPipelineConfigurationCommand = se_GetMediaInsightsPipelineConfigurationCommand;
294
197
  const se_GetMediaPipelineCommand = async (input, context) => {
295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = (0, core_1.requestBuilder)(input, context);
296
199
  const headers = {};
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines/{MediaPipelineId}";
298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
200
+ b.bp("/sdk-media-pipelines/{MediaPipelineId}");
201
+ b.p("MediaPipelineId", () => input.MediaPipelineId, "{MediaPipelineId}", false);
299
202
  let body;
300
- return new protocol_http_1.HttpRequest({
301
- protocol,
302
- hostname,
303
- port,
304
- method: "GET",
305
- headers,
306
- path: resolvedPath,
307
- body,
308
- });
203
+ b.m("GET").h(headers).b(body);
204
+ return b.build();
309
205
  };
310
206
  exports.se_GetMediaPipelineCommand = se_GetMediaPipelineCommand;
311
207
  const se_GetMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
312
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
313
209
  const headers = {};
314
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
315
- "/media-pipeline-kinesis-video-stream-pools/{Identifier}";
316
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
210
+ b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
211
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
317
212
  let body;
318
- return new protocol_http_1.HttpRequest({
319
- protocol,
320
- hostname,
321
- port,
322
- method: "GET",
323
- headers,
324
- path: resolvedPath,
325
- body,
326
- });
213
+ b.m("GET").h(headers).b(body);
214
+ return b.build();
327
215
  };
328
216
  exports.se_GetMediaPipelineKinesisVideoStreamPoolCommand = se_GetMediaPipelineKinesisVideoStreamPoolCommand;
329
217
  const se_GetSpeakerSearchTaskCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
218
+ const b = (0, core_1.requestBuilder)(input, context);
331
219
  const headers = {};
332
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
333
- "/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}";
334
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
335
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
220
+ b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
221
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
222
+ b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
336
223
  let body;
337
- return new protocol_http_1.HttpRequest({
338
- protocol,
339
- hostname,
340
- port,
341
- method: "GET",
342
- headers,
343
- path: resolvedPath,
344
- body,
345
- });
224
+ b.m("GET").h(headers).b(body);
225
+ return b.build();
346
226
  };
347
227
  exports.se_GetSpeakerSearchTaskCommand = se_GetSpeakerSearchTaskCommand;
348
228
  const se_GetVoiceToneAnalysisTaskCommand = async (input, context) => {
349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
229
+ const b = (0, core_1.requestBuilder)(input, context);
350
230
  const headers = {};
351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
352
- "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
353
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
354
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
231
+ b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
232
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
233
+ b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
355
234
  let body;
356
- return new protocol_http_1.HttpRequest({
357
- protocol,
358
- hostname,
359
- port,
360
- method: "GET",
361
- headers,
362
- path: resolvedPath,
363
- body,
364
- });
235
+ b.m("GET").h(headers).b(body);
236
+ return b.build();
365
237
  };
366
238
  exports.se_GetVoiceToneAnalysisTaskCommand = se_GetVoiceToneAnalysisTaskCommand;
367
239
  const se_ListMediaCapturePipelinesCommand = async (input, context) => {
368
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
240
+ const b = (0, core_1.requestBuilder)(input, context);
369
241
  const headers = {};
370
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-capture-pipelines";
242
+ b.bp("/sdk-media-capture-pipelines");
371
243
  const query = (0, smithy_client_1.map)({
372
- "next-token": [, input.NextToken],
373
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
244
+ [_nt]: [, input[_NT]],
245
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
374
246
  });
375
247
  let body;
376
- return new protocol_http_1.HttpRequest({
377
- protocol,
378
- hostname,
379
- port,
380
- method: "GET",
381
- headers,
382
- path: resolvedPath,
383
- query,
384
- body,
385
- });
248
+ b.m("GET").h(headers).q(query).b(body);
249
+ return b.build();
386
250
  };
387
251
  exports.se_ListMediaCapturePipelinesCommand = se_ListMediaCapturePipelinesCommand;
388
252
  const se_ListMediaInsightsPipelineConfigurationsCommand = async (input, context) => {
389
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = (0, core_1.requestBuilder)(input, context);
390
254
  const headers = {};
391
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/media-insights-pipeline-configurations";
255
+ b.bp("/media-insights-pipeline-configurations");
392
256
  const query = (0, smithy_client_1.map)({
393
- "next-token": [, input.NextToken],
394
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
257
+ [_nt]: [, input[_NT]],
258
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
395
259
  });
396
260
  let body;
397
- return new protocol_http_1.HttpRequest({
398
- protocol,
399
- hostname,
400
- port,
401
- method: "GET",
402
- headers,
403
- path: resolvedPath,
404
- query,
405
- body,
406
- });
261
+ b.m("GET").h(headers).q(query).b(body);
262
+ return b.build();
407
263
  };
408
264
  exports.se_ListMediaInsightsPipelineConfigurationsCommand = se_ListMediaInsightsPipelineConfigurationsCommand;
409
265
  const se_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (input, context) => {
410
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = (0, core_1.requestBuilder)(input, context);
411
267
  const headers = {};
412
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
413
- "/media-pipeline-kinesis-video-stream-pools";
268
+ b.bp("/media-pipeline-kinesis-video-stream-pools");
414
269
  const query = (0, smithy_client_1.map)({
415
- "next-token": [, input.NextToken],
416
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
270
+ [_nt]: [, input[_NT]],
271
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
417
272
  });
418
273
  let body;
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "GET",
424
- headers,
425
- path: resolvedPath,
426
- query,
427
- body,
428
- });
274
+ b.m("GET").h(headers).q(query).b(body);
275
+ return b.build();
429
276
  };
430
277
  exports.se_ListMediaPipelineKinesisVideoStreamPoolsCommand = se_ListMediaPipelineKinesisVideoStreamPoolsCommand;
431
278
  const se_ListMediaPipelinesCommand = async (input, context) => {
432
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
279
+ const b = (0, core_1.requestBuilder)(input, context);
433
280
  const headers = {};
434
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sdk-media-pipelines";
281
+ b.bp("/sdk-media-pipelines");
435
282
  const query = (0, smithy_client_1.map)({
436
- "next-token": [, input.NextToken],
437
- "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
283
+ [_nt]: [, input[_NT]],
284
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
438
285
  });
439
286
  let body;
440
- return new protocol_http_1.HttpRequest({
441
- protocol,
442
- hostname,
443
- port,
444
- method: "GET",
445
- headers,
446
- path: resolvedPath,
447
- query,
448
- body,
449
- });
287
+ b.m("GET").h(headers).q(query).b(body);
288
+ return b.build();
450
289
  };
451
290
  exports.se_ListMediaPipelinesCommand = se_ListMediaPipelinesCommand;
452
291
  const se_ListTagsForResourceCommand = async (input, context) => {
453
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
454
293
  const headers = {};
455
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
294
+ b.bp("/tags");
456
295
  const query = (0, smithy_client_1.map)({
457
- arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
296
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_RARN], `ResourceARN`)],
458
297
  });
459
298
  let body;
460
- return new protocol_http_1.HttpRequest({
461
- protocol,
462
- hostname,
463
- port,
464
- method: "GET",
465
- headers,
466
- path: resolvedPath,
467
- query,
468
- body,
469
- });
299
+ b.m("GET").h(headers).q(query).b(body);
300
+ return b.build();
470
301
  };
471
302
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
472
303
  const se_StartSpeakerSearchTaskCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
474
305
  const headers = {
475
306
  "content-type": "application/json",
476
307
  };
477
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
478
- "/media-insights-pipelines/{Identifier}/speaker-search-tasks";
479
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
308
+ b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks");
309
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
480
310
  const query = (0, smithy_client_1.map)({
481
- operation: [, "start"],
311
+ [_o]: [, "start"],
482
312
  });
483
313
  let body;
484
314
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -486,28 +316,19 @@ const se_StartSpeakerSearchTaskCommand = async (input, context) => {
486
316
  KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
487
317
  VoiceProfileDomainArn: [],
488
318
  }));
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "POST",
494
- headers,
495
- path: resolvedPath,
496
- query,
497
- body,
498
- });
319
+ b.m("POST").h(headers).q(query).b(body);
320
+ return b.build();
499
321
  };
500
322
  exports.se_StartSpeakerSearchTaskCommand = se_StartSpeakerSearchTaskCommand;
501
323
  const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = (0, core_1.requestBuilder)(input, context);
503
325
  const headers = {
504
326
  "content-type": "application/json",
505
327
  };
506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
507
- "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks";
508
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
328
+ b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks");
329
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
509
330
  const query = (0, smithy_client_1.map)({
510
- operation: [, "start"],
331
+ [_o]: [, "start"],
511
332
  });
512
333
  let body;
513
334
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -515,185 +336,119 @@ const se_StartVoiceToneAnalysisTaskCommand = async (input, context) => {
515
336
  KinesisVideoStreamSourceTaskConfiguration: (_) => (0, smithy_client_1._json)(_),
516
337
  LanguageCode: [],
517
338
  }));
518
- return new protocol_http_1.HttpRequest({
519
- protocol,
520
- hostname,
521
- port,
522
- method: "POST",
523
- headers,
524
- path: resolvedPath,
525
- query,
526
- body,
527
- });
339
+ b.m("POST").h(headers).q(query).b(body);
340
+ return b.build();
528
341
  };
529
342
  exports.se_StartVoiceToneAnalysisTaskCommand = se_StartVoiceToneAnalysisTaskCommand;
530
343
  const se_StopSpeakerSearchTaskCommand = async (input, context) => {
531
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_1.requestBuilder)(input, context);
532
345
  const headers = {};
533
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
534
- "/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}";
535
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
536
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
346
+ b.bp("/media-insights-pipelines/{Identifier}/speaker-search-tasks/{SpeakerSearchTaskId}");
347
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
348
+ b.p("SpeakerSearchTaskId", () => input.SpeakerSearchTaskId, "{SpeakerSearchTaskId}", false);
537
349
  const query = (0, smithy_client_1.map)({
538
- operation: [, "stop"],
350
+ [_o]: [, "stop"],
539
351
  });
540
352
  let body;
541
- return new protocol_http_1.HttpRequest({
542
- protocol,
543
- hostname,
544
- port,
545
- method: "POST",
546
- headers,
547
- path: resolvedPath,
548
- query,
549
- body,
550
- });
353
+ b.m("POST").h(headers).q(query).b(body);
354
+ return b.build();
551
355
  };
552
356
  exports.se_StopSpeakerSearchTaskCommand = se_StopSpeakerSearchTaskCommand;
553
357
  const se_StopVoiceToneAnalysisTaskCommand = async (input, context) => {
554
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
358
+ const b = (0, core_1.requestBuilder)(input, context);
555
359
  const headers = {};
556
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
557
- "/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}";
558
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
559
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
360
+ b.bp("/media-insights-pipelines/{Identifier}/voice-tone-analysis-tasks/{VoiceToneAnalysisTaskId}");
361
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
362
+ b.p("VoiceToneAnalysisTaskId", () => input.VoiceToneAnalysisTaskId, "{VoiceToneAnalysisTaskId}", false);
560
363
  const query = (0, smithy_client_1.map)({
561
- operation: [, "stop"],
364
+ [_o]: [, "stop"],
562
365
  });
563
366
  let body;
564
- return new protocol_http_1.HttpRequest({
565
- protocol,
566
- hostname,
567
- port,
568
- method: "POST",
569
- headers,
570
- path: resolvedPath,
571
- query,
572
- body,
573
- });
367
+ b.m("POST").h(headers).q(query).b(body);
368
+ return b.build();
574
369
  };
575
370
  exports.se_StopVoiceToneAnalysisTaskCommand = se_StopVoiceToneAnalysisTaskCommand;
576
371
  const se_TagResourceCommand = async (input, context) => {
577
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
+ const b = (0, core_1.requestBuilder)(input, context);
578
373
  const headers = {
579
374
  "content-type": "application/json",
580
375
  };
581
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
376
+ b.bp("/tags");
582
377
  const query = (0, smithy_client_1.map)({
583
- operation: [, "tag-resource"],
378
+ [_o]: [, "tag-resource"],
584
379
  });
585
380
  let body;
586
381
  body = JSON.stringify((0, smithy_client_1.take)(input, {
587
382
  ResourceARN: [],
588
383
  Tags: (_) => (0, smithy_client_1._json)(_),
589
384
  }));
590
- return new protocol_http_1.HttpRequest({
591
- protocol,
592
- hostname,
593
- port,
594
- method: "POST",
595
- headers,
596
- path: resolvedPath,
597
- query,
598
- body,
599
- });
385
+ b.m("POST").h(headers).q(query).b(body);
386
+ return b.build();
600
387
  };
601
388
  exports.se_TagResourceCommand = se_TagResourceCommand;
602
389
  const se_UntagResourceCommand = async (input, context) => {
603
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
+ const b = (0, core_1.requestBuilder)(input, context);
604
391
  const headers = {
605
392
  "content-type": "application/json",
606
393
  };
607
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
394
+ b.bp("/tags");
608
395
  const query = (0, smithy_client_1.map)({
609
- operation: [, "untag-resource"],
396
+ [_o]: [, "untag-resource"],
610
397
  });
611
398
  let body;
612
399
  body = JSON.stringify((0, smithy_client_1.take)(input, {
613
400
  ResourceARN: [],
614
401
  TagKeys: (_) => (0, smithy_client_1._json)(_),
615
402
  }));
616
- return new protocol_http_1.HttpRequest({
617
- protocol,
618
- hostname,
619
- port,
620
- method: "POST",
621
- headers,
622
- path: resolvedPath,
623
- query,
624
- body,
625
- });
403
+ b.m("POST").h(headers).q(query).b(body);
404
+ return b.build();
626
405
  };
627
406
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
628
407
  const se_UpdateMediaInsightsPipelineConfigurationCommand = async (input, context) => {
629
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
408
+ const b = (0, core_1.requestBuilder)(input, context);
630
409
  const headers = {
631
410
  "content-type": "application/json",
632
411
  };
633
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
634
- "/media-insights-pipeline-configurations/{Identifier}";
635
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
412
+ b.bp("/media-insights-pipeline-configurations/{Identifier}");
413
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
636
414
  let body;
637
415
  body = JSON.stringify((0, smithy_client_1.take)(input, {
638
416
  Elements: (_) => (0, smithy_client_1._json)(_),
639
417
  RealTimeAlertConfiguration: (_) => (0, smithy_client_1._json)(_),
640
418
  ResourceAccessRoleArn: [],
641
419
  }));
642
- return new protocol_http_1.HttpRequest({
643
- protocol,
644
- hostname,
645
- port,
646
- method: "PUT",
647
- headers,
648
- path: resolvedPath,
649
- body,
650
- });
420
+ b.m("PUT").h(headers).b(body);
421
+ return b.build();
651
422
  };
652
423
  exports.se_UpdateMediaInsightsPipelineConfigurationCommand = se_UpdateMediaInsightsPipelineConfigurationCommand;
653
424
  const se_UpdateMediaInsightsPipelineStatusCommand = async (input, context) => {
654
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
+ const b = (0, core_1.requestBuilder)(input, context);
655
426
  const headers = {
656
427
  "content-type": "application/json",
657
428
  };
658
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
659
- "/media-insights-pipeline-status/{Identifier}";
660
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
429
+ b.bp("/media-insights-pipeline-status/{Identifier}");
430
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
661
431
  let body;
662
432
  body = JSON.stringify((0, smithy_client_1.take)(input, {
663
433
  UpdateStatus: [],
664
434
  }));
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "PUT",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
435
+ b.m("PUT").h(headers).b(body);
436
+ return b.build();
674
437
  };
675
438
  exports.se_UpdateMediaInsightsPipelineStatusCommand = se_UpdateMediaInsightsPipelineStatusCommand;
676
439
  const se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
+ const b = (0, core_1.requestBuilder)(input, context);
678
441
  const headers = {
679
442
  "content-type": "application/json",
680
443
  };
681
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
682
- "/media-pipeline-kinesis-video-stream-pools/{Identifier}";
683
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
444
+ b.bp("/media-pipeline-kinesis-video-stream-pools/{Identifier}");
445
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
684
446
  let body;
685
447
  body = JSON.stringify((0, smithy_client_1.take)(input, {
686
448
  StreamConfiguration: (_) => (0, smithy_client_1._json)(_),
687
449
  }));
688
- return new protocol_http_1.HttpRequest({
689
- protocol,
690
- hostname,
691
- port,
692
- method: "PUT",
693
- headers,
694
- path: resolvedPath,
695
- body,
696
- });
450
+ b.m("PUT").h(headers).b(body);
451
+ return b.build();
697
452
  };
698
453
  exports.se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = se_UpdateMediaPipelineKinesisVideoStreamPoolCommand;
699
454
  const de_CreateMediaCapturePipelineCommand = async (output, context) => {
@@ -2612,6 +2367,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2612
2367
  value !== "" &&
2613
2368
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2614
2369
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2370
+ const _MR = "MaxResults";
2371
+ const _NT = "NextToken";
2372
+ const _RARN = "ResourceARN";
2373
+ const _a = "arn";
2374
+ const _mr = "max-results";
2375
+ const _nt = "next-token";
2376
+ const _o = "operation";
2615
2377
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2616
2378
  if (encoded.length) {
2617
2379
  return JSON.parse(encoded);