@aws-sdk/client-chime-sdk-meetings 3.54.1 → 3.58.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/CHANGELOG.md +30 -0
- package/dist-cjs/ChimeSDKMeetingsClient.js +13 -13
- package/dist-cjs/commands/BatchCreateAttendeeCommand.js +3 -3
- package/dist-cjs/commands/CreateAttendeeCommand.js +3 -3
- package/dist-cjs/commands/CreateMeetingCommand.js +3 -3
- package/dist-cjs/commands/CreateMeetingWithAttendeesCommand.js +3 -3
- package/dist-cjs/commands/DeleteAttendeeCommand.js +3 -3
- package/dist-cjs/commands/DeleteMeetingCommand.js +3 -3
- package/dist-cjs/commands/GetAttendeeCommand.js +3 -3
- package/dist-cjs/commands/GetMeetingCommand.js +3 -3
- package/dist-cjs/commands/ListAttendeesCommand.js +3 -3
- package/dist-cjs/commands/StartMeetingTranscriptionCommand.js +3 -3
- package/dist-cjs/commands/StopMeetingTranscriptionCommand.js +3 -3
- package/dist-cjs/endpoints.js +18 -2
- package/dist-cjs/protocols/Aws_restJson1.js +84 -79
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/ChimeSDKMeetings.js +11 -11
- package/dist-es/endpoints.js +17 -1
- package/dist-es/pagination/ListAttendeesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +18 -15
- package/dist-types/models/models_0.d.ts +12 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
|
|
|
17
17
|
if (labelValue.length <= 0) {
|
|
18
18
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
19
19
|
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
20
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
23
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -55,7 +55,7 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
|
|
|
55
55
|
if (labelValue.length <= 0) {
|
|
56
56
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
57
57
|
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
58
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -85,7 +85,7 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
|
|
|
85
85
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/meetings";
|
|
86
86
|
let body;
|
|
87
87
|
body = JSON.stringify({
|
|
88
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
88
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
89
89
|
...(input.ExternalMeetingId !== undefined &&
|
|
90
90
|
input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
91
91
|
...(input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion }),
|
|
@@ -98,6 +98,8 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
|
|
|
98
98
|
input.NotificationsConfiguration !== null && {
|
|
99
99
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
100
100
|
}),
|
|
101
|
+
...(input.PrimaryMeetingId !== undefined &&
|
|
102
|
+
input.PrimaryMeetingId !== null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
101
103
|
});
|
|
102
104
|
return new protocol_http_1.HttpRequest({
|
|
103
105
|
protocol,
|
|
@@ -126,7 +128,7 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
126
128
|
input.Attendees !== null && {
|
|
127
129
|
Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
|
|
128
130
|
}),
|
|
129
|
-
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
131
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
130
132
|
...(input.ExternalMeetingId !== undefined &&
|
|
131
133
|
input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId }),
|
|
132
134
|
...(input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion }),
|
|
@@ -139,6 +141,8 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
|
|
|
139
141
|
input.NotificationsConfiguration !== null && {
|
|
140
142
|
NotificationsConfiguration: serializeAws_restJson1NotificationsConfiguration(input.NotificationsConfiguration, context),
|
|
141
143
|
}),
|
|
144
|
+
...(input.PrimaryMeetingId !== undefined &&
|
|
145
|
+
input.PrimaryMeetingId !== null && { PrimaryMeetingId: input.PrimaryMeetingId }),
|
|
142
146
|
});
|
|
143
147
|
return new protocol_http_1.HttpRequest({
|
|
144
148
|
protocol,
|
|
@@ -162,7 +166,7 @@ const serializeAws_restJson1DeleteAttendeeCommand = async (input, context) => {
|
|
|
162
166
|
if (labelValue.length <= 0) {
|
|
163
167
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
164
168
|
}
|
|
165
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
169
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
166
170
|
}
|
|
167
171
|
else {
|
|
168
172
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -172,7 +176,7 @@ const serializeAws_restJson1DeleteAttendeeCommand = async (input, context) => {
|
|
|
172
176
|
if (labelValue.length <= 0) {
|
|
173
177
|
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
174
178
|
}
|
|
175
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
179
|
+
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
176
180
|
}
|
|
177
181
|
else {
|
|
178
182
|
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
@@ -198,7 +202,7 @@ const serializeAws_restJson1DeleteMeetingCommand = async (input, context) => {
|
|
|
198
202
|
if (labelValue.length <= 0) {
|
|
199
203
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
200
204
|
}
|
|
201
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
205
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
202
206
|
}
|
|
203
207
|
else {
|
|
204
208
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -225,7 +229,7 @@ const serializeAws_restJson1GetAttendeeCommand = async (input, context) => {
|
|
|
225
229
|
if (labelValue.length <= 0) {
|
|
226
230
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
227
231
|
}
|
|
228
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
232
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
229
233
|
}
|
|
230
234
|
else {
|
|
231
235
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -235,7 +239,7 @@ const serializeAws_restJson1GetAttendeeCommand = async (input, context) => {
|
|
|
235
239
|
if (labelValue.length <= 0) {
|
|
236
240
|
throw new Error("Empty value provided for input HTTP label: AttendeeId.");
|
|
237
241
|
}
|
|
238
|
-
resolvedPath = resolvedPath.replace("{AttendeeId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
242
|
+
resolvedPath = resolvedPath.replace("{AttendeeId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
239
243
|
}
|
|
240
244
|
else {
|
|
241
245
|
throw new Error("No value provided for input HTTP label: AttendeeId.");
|
|
@@ -261,7 +265,7 @@ const serializeAws_restJson1GetMeetingCommand = async (input, context) => {
|
|
|
261
265
|
if (labelValue.length <= 0) {
|
|
262
266
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
263
267
|
}
|
|
264
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
268
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
265
269
|
}
|
|
266
270
|
else {
|
|
267
271
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -287,7 +291,7 @@ const serializeAws_restJson1ListAttendeesCommand = async (input, context) => {
|
|
|
287
291
|
if (labelValue.length <= 0) {
|
|
288
292
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
289
293
|
}
|
|
290
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
294
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
291
295
|
}
|
|
292
296
|
else {
|
|
293
297
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -320,7 +324,7 @@ const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, con
|
|
|
320
324
|
if (labelValue.length <= 0) {
|
|
321
325
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
322
326
|
}
|
|
323
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
327
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
324
328
|
}
|
|
325
329
|
else {
|
|
326
330
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -356,7 +360,7 @@ const serializeAws_restJson1StopMeetingTranscriptionCommand = async (input, cont
|
|
|
356
360
|
if (labelValue.length <= 0) {
|
|
357
361
|
throw new Error("Empty value provided for input HTTP label: MeetingId.");
|
|
358
362
|
}
|
|
359
|
-
resolvedPath = resolvedPath.replace("{MeetingId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
363
|
+
resolvedPath = resolvedPath.replace("{MeetingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
360
364
|
}
|
|
361
365
|
else {
|
|
362
366
|
throw new Error("No value provided for input HTTP label: MeetingId.");
|
|
@@ -386,7 +390,7 @@ const deserializeAws_restJson1BatchCreateAttendeeCommand = async (output, contex
|
|
|
386
390
|
Attendees: undefined,
|
|
387
391
|
Errors: undefined,
|
|
388
392
|
};
|
|
389
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
393
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
390
394
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
391
395
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
392
396
|
}
|
|
@@ -430,7 +434,7 @@ const deserializeAws_restJson1BatchCreateAttendeeCommandError = async (output, c
|
|
|
430
434
|
$fault: "client",
|
|
431
435
|
$metadata: deserializeMetadata(output),
|
|
432
436
|
});
|
|
433
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
437
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
434
438
|
}
|
|
435
439
|
};
|
|
436
440
|
const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) => {
|
|
@@ -441,7 +445,7 @@ const deserializeAws_restJson1CreateAttendeeCommand = async (output, context) =>
|
|
|
441
445
|
$metadata: deserializeMetadata(output),
|
|
442
446
|
Attendee: undefined,
|
|
443
447
|
};
|
|
444
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
448
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
445
449
|
if (data.Attendee !== undefined && data.Attendee !== null) {
|
|
446
450
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
447
451
|
}
|
|
@@ -485,7 +489,7 @@ const deserializeAws_restJson1CreateAttendeeCommandError = async (output, contex
|
|
|
485
489
|
$fault: "client",
|
|
486
490
|
$metadata: deserializeMetadata(output),
|
|
487
491
|
});
|
|
488
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
492
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
489
493
|
}
|
|
490
494
|
};
|
|
491
495
|
const deserializeAws_restJson1CreateMeetingCommand = async (output, context) => {
|
|
@@ -496,7 +500,7 @@ const deserializeAws_restJson1CreateMeetingCommand = async (output, context) =>
|
|
|
496
500
|
$metadata: deserializeMetadata(output),
|
|
497
501
|
Meeting: undefined,
|
|
498
502
|
};
|
|
499
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
503
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
500
504
|
if (data.Meeting !== undefined && data.Meeting !== null) {
|
|
501
505
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
502
506
|
}
|
|
@@ -531,7 +535,7 @@ const deserializeAws_restJson1CreateMeetingCommandError = async (output, context
|
|
|
531
535
|
$fault: "client",
|
|
532
536
|
$metadata: deserializeMetadata(output),
|
|
533
537
|
});
|
|
534
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
538
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
535
539
|
}
|
|
536
540
|
};
|
|
537
541
|
const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output, context) => {
|
|
@@ -544,7 +548,7 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommand = async (output,
|
|
|
544
548
|
Errors: undefined,
|
|
545
549
|
Meeting: undefined,
|
|
546
550
|
};
|
|
547
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
551
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
548
552
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
549
553
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
550
554
|
}
|
|
@@ -585,7 +589,7 @@ const deserializeAws_restJson1CreateMeetingWithAttendeesCommandError = async (ou
|
|
|
585
589
|
$fault: "client",
|
|
586
590
|
$metadata: deserializeMetadata(output),
|
|
587
591
|
});
|
|
588
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
592
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
589
593
|
}
|
|
590
594
|
};
|
|
591
595
|
const deserializeAws_restJson1DeleteAttendeeCommand = async (output, context) => {
|
|
@@ -621,7 +625,7 @@ const deserializeAws_restJson1DeleteAttendeeCommandError = async (output, contex
|
|
|
621
625
|
$fault: "client",
|
|
622
626
|
$metadata: deserializeMetadata(output),
|
|
623
627
|
});
|
|
624
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
628
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
625
629
|
}
|
|
626
630
|
};
|
|
627
631
|
const deserializeAws_restJson1DeleteMeetingCommand = async (output, context) => {
|
|
@@ -657,7 +661,7 @@ const deserializeAws_restJson1DeleteMeetingCommandError = async (output, context
|
|
|
657
661
|
$fault: "client",
|
|
658
662
|
$metadata: deserializeMetadata(output),
|
|
659
663
|
});
|
|
660
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
664
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
661
665
|
}
|
|
662
666
|
};
|
|
663
667
|
const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
@@ -668,7 +672,7 @@ const deserializeAws_restJson1GetAttendeeCommand = async (output, context) => {
|
|
|
668
672
|
$metadata: deserializeMetadata(output),
|
|
669
673
|
Attendee: undefined,
|
|
670
674
|
};
|
|
671
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
675
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
672
676
|
if (data.Attendee !== undefined && data.Attendee !== null) {
|
|
673
677
|
contents.Attendee = deserializeAws_restJson1Attendee(data.Attendee, context);
|
|
674
678
|
}
|
|
@@ -700,7 +704,7 @@ const deserializeAws_restJson1GetAttendeeCommandError = async (output, context)
|
|
|
700
704
|
$fault: "client",
|
|
701
705
|
$metadata: deserializeMetadata(output),
|
|
702
706
|
});
|
|
703
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
707
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
704
708
|
}
|
|
705
709
|
};
|
|
706
710
|
const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
@@ -711,7 +715,7 @@ const deserializeAws_restJson1GetMeetingCommand = async (output, context) => {
|
|
|
711
715
|
$metadata: deserializeMetadata(output),
|
|
712
716
|
Meeting: undefined,
|
|
713
717
|
};
|
|
714
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
718
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
715
719
|
if (data.Meeting !== undefined && data.Meeting !== null) {
|
|
716
720
|
contents.Meeting = deserializeAws_restJson1Meeting(data.Meeting, context);
|
|
717
721
|
}
|
|
@@ -743,7 +747,7 @@ const deserializeAws_restJson1GetMeetingCommandError = async (output, context) =
|
|
|
743
747
|
$fault: "client",
|
|
744
748
|
$metadata: deserializeMetadata(output),
|
|
745
749
|
});
|
|
746
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
750
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
747
751
|
}
|
|
748
752
|
};
|
|
749
753
|
const deserializeAws_restJson1ListAttendeesCommand = async (output, context) => {
|
|
@@ -755,12 +759,12 @@ const deserializeAws_restJson1ListAttendeesCommand = async (output, context) =>
|
|
|
755
759
|
Attendees: undefined,
|
|
756
760
|
NextToken: undefined,
|
|
757
761
|
};
|
|
758
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
762
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
759
763
|
if (data.Attendees !== undefined && data.Attendees !== null) {
|
|
760
764
|
contents.Attendees = deserializeAws_restJson1AttendeeList(data.Attendees, context);
|
|
761
765
|
}
|
|
762
766
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
763
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
767
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
764
768
|
}
|
|
765
769
|
return Promise.resolve(contents);
|
|
766
770
|
};
|
|
@@ -790,7 +794,7 @@ const deserializeAws_restJson1ListAttendeesCommandError = async (output, context
|
|
|
790
794
|
$fault: "client",
|
|
791
795
|
$metadata: deserializeMetadata(output),
|
|
792
796
|
});
|
|
793
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
797
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
794
798
|
}
|
|
795
799
|
};
|
|
796
800
|
const deserializeAws_restJson1StartMeetingTranscriptionCommand = async (output, context) => {
|
|
@@ -841,7 +845,7 @@ const deserializeAws_restJson1StartMeetingTranscriptionCommandError = async (out
|
|
|
841
845
|
$fault: "client",
|
|
842
846
|
$metadata: deserializeMetadata(output),
|
|
843
847
|
});
|
|
844
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
848
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
845
849
|
}
|
|
846
850
|
};
|
|
847
851
|
const deserializeAws_restJson1StopMeetingTranscriptionCommand = async (output, context) => {
|
|
@@ -889,80 +893,80 @@ const deserializeAws_restJson1StopMeetingTranscriptionCommandError = async (outp
|
|
|
889
893
|
$fault: "client",
|
|
890
894
|
$metadata: deserializeMetadata(output),
|
|
891
895
|
});
|
|
892
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
896
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
897
|
}
|
|
894
898
|
};
|
|
895
899
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
896
900
|
const contents = {};
|
|
897
901
|
const data = parsedOutput.body;
|
|
898
902
|
if (data.Code !== undefined && data.Code !== null) {
|
|
899
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
903
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
900
904
|
}
|
|
901
905
|
if (data.Message !== undefined && data.Message !== null) {
|
|
902
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
906
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
903
907
|
}
|
|
904
908
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
905
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
909
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
906
910
|
}
|
|
907
911
|
const exception = new models_0_1.BadRequestException({
|
|
908
912
|
$metadata: deserializeMetadata(parsedOutput),
|
|
909
913
|
...contents,
|
|
910
914
|
});
|
|
911
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
915
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
912
916
|
};
|
|
913
917
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
914
918
|
const contents = {};
|
|
915
919
|
const data = parsedOutput.body;
|
|
916
920
|
if (data.Code !== undefined && data.Code !== null) {
|
|
917
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
921
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
918
922
|
}
|
|
919
923
|
if (data.Message !== undefined && data.Message !== null) {
|
|
920
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
924
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
921
925
|
}
|
|
922
926
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
923
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
927
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
924
928
|
}
|
|
925
929
|
const exception = new models_0_1.ForbiddenException({
|
|
926
930
|
$metadata: deserializeMetadata(parsedOutput),
|
|
927
931
|
...contents,
|
|
928
932
|
});
|
|
929
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
933
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
930
934
|
};
|
|
931
935
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
932
936
|
const contents = {};
|
|
933
937
|
const data = parsedOutput.body;
|
|
934
938
|
if (data.Code !== undefined && data.Code !== null) {
|
|
935
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
939
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
936
940
|
}
|
|
937
941
|
if (data.Message !== undefined && data.Message !== null) {
|
|
938
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
942
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
939
943
|
}
|
|
940
944
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
941
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
945
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
942
946
|
}
|
|
943
947
|
const exception = new models_0_1.LimitExceededException({
|
|
944
948
|
$metadata: deserializeMetadata(parsedOutput),
|
|
945
949
|
...contents,
|
|
946
950
|
});
|
|
947
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
951
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
948
952
|
};
|
|
949
953
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
950
954
|
const contents = {};
|
|
951
955
|
const data = parsedOutput.body;
|
|
952
956
|
if (data.Code !== undefined && data.Code !== null) {
|
|
953
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
957
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
954
958
|
}
|
|
955
959
|
if (data.Message !== undefined && data.Message !== null) {
|
|
956
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
960
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
957
961
|
}
|
|
958
962
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
959
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
963
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
960
964
|
}
|
|
961
965
|
const exception = new models_0_1.NotFoundException({
|
|
962
966
|
$metadata: deserializeMetadata(parsedOutput),
|
|
963
967
|
...contents,
|
|
964
968
|
});
|
|
965
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
969
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
966
970
|
};
|
|
967
971
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
968
972
|
const contents = {};
|
|
@@ -971,55 +975,55 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
971
975
|
}
|
|
972
976
|
const data = parsedOutput.body;
|
|
973
977
|
if (data.Code !== undefined && data.Code !== null) {
|
|
974
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
978
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
975
979
|
}
|
|
976
980
|
if (data.Message !== undefined && data.Message !== null) {
|
|
977
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
981
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
978
982
|
}
|
|
979
983
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
980
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
984
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
981
985
|
}
|
|
982
986
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
983
987
|
$metadata: deserializeMetadata(parsedOutput),
|
|
984
988
|
...contents,
|
|
985
989
|
});
|
|
986
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
990
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
987
991
|
};
|
|
988
992
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
989
993
|
const contents = {};
|
|
990
994
|
const data = parsedOutput.body;
|
|
991
995
|
if (data.Code !== undefined && data.Code !== null) {
|
|
992
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
996
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
993
997
|
}
|
|
994
998
|
if (data.Message !== undefined && data.Message !== null) {
|
|
995
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
999
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
996
1000
|
}
|
|
997
1001
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
998
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1002
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
999
1003
|
}
|
|
1000
1004
|
const exception = new models_0_1.UnauthorizedException({
|
|
1001
1005
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1002
1006
|
...contents,
|
|
1003
1007
|
});
|
|
1004
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1008
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1005
1009
|
};
|
|
1006
1010
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
1007
1011
|
const contents = {};
|
|
1008
1012
|
const data = parsedOutput.body;
|
|
1009
1013
|
if (data.Code !== undefined && data.Code !== null) {
|
|
1010
|
-
contents.Code = smithy_client_1.expectString(data.Code);
|
|
1014
|
+
contents.Code = (0, smithy_client_1.expectString)(data.Code);
|
|
1011
1015
|
}
|
|
1012
1016
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1013
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1017
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1014
1018
|
}
|
|
1015
1019
|
if (data.RequestId !== undefined && data.RequestId !== null) {
|
|
1016
|
-
contents.RequestId = smithy_client_1.expectString(data.RequestId);
|
|
1020
|
+
contents.RequestId = (0, smithy_client_1.expectString)(data.RequestId);
|
|
1017
1021
|
}
|
|
1018
1022
|
const exception = new models_0_1.UnprocessableEntityException({
|
|
1019
1023
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1020
1024
|
...contents,
|
|
1021
1025
|
});
|
|
1022
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1026
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1023
1027
|
};
|
|
1024
1028
|
const serializeAws_restJson1AudioFeatures = (input, context) => {
|
|
1025
1029
|
return {
|
|
@@ -1124,9 +1128,9 @@ const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
|
|
|
1124
1128
|
};
|
|
1125
1129
|
const deserializeAws_restJson1Attendee = (output, context) => {
|
|
1126
1130
|
return {
|
|
1127
|
-
AttendeeId: smithy_client_1.expectString(output.AttendeeId),
|
|
1128
|
-
ExternalUserId: smithy_client_1.expectString(output.ExternalUserId),
|
|
1129
|
-
JoinToken: smithy_client_1.expectString(output.JoinToken),
|
|
1131
|
+
AttendeeId: (0, smithy_client_1.expectString)(output.AttendeeId),
|
|
1132
|
+
ExternalUserId: (0, smithy_client_1.expectString)(output.ExternalUserId),
|
|
1133
|
+
JoinToken: (0, smithy_client_1.expectString)(output.JoinToken),
|
|
1130
1134
|
};
|
|
1131
1135
|
};
|
|
1132
1136
|
const deserializeAws_restJson1AttendeeList = (output, context) => {
|
|
@@ -1142,7 +1146,7 @@ const deserializeAws_restJson1AttendeeList = (output, context) => {
|
|
|
1142
1146
|
};
|
|
1143
1147
|
const deserializeAws_restJson1AudioFeatures = (output, context) => {
|
|
1144
1148
|
return {
|
|
1145
|
-
EchoReduction: smithy_client_1.expectString(output.EchoReduction),
|
|
1149
|
+
EchoReduction: (0, smithy_client_1.expectString)(output.EchoReduction),
|
|
1146
1150
|
};
|
|
1147
1151
|
};
|
|
1148
1152
|
const deserializeAws_restJson1BatchCreateAttendeeErrorList = (output, context) => {
|
|
@@ -1158,35 +1162,36 @@ const deserializeAws_restJson1BatchCreateAttendeeErrorList = (output, context) =
|
|
|
1158
1162
|
};
|
|
1159
1163
|
const deserializeAws_restJson1CreateAttendeeError = (output, context) => {
|
|
1160
1164
|
return {
|
|
1161
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1162
|
-
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
1163
|
-
ExternalUserId: smithy_client_1.expectString(output.ExternalUserId),
|
|
1165
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1166
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1167
|
+
ExternalUserId: (0, smithy_client_1.expectString)(output.ExternalUserId),
|
|
1164
1168
|
};
|
|
1165
1169
|
};
|
|
1166
1170
|
const deserializeAws_restJson1MediaPlacement = (output, context) => {
|
|
1167
1171
|
return {
|
|
1168
|
-
AudioFallbackUrl: smithy_client_1.expectString(output.AudioFallbackUrl),
|
|
1169
|
-
AudioHostUrl: smithy_client_1.expectString(output.AudioHostUrl),
|
|
1170
|
-
EventIngestionUrl: smithy_client_1.expectString(output.EventIngestionUrl),
|
|
1171
|
-
ScreenDataUrl: smithy_client_1.expectString(output.ScreenDataUrl),
|
|
1172
|
-
ScreenSharingUrl: smithy_client_1.expectString(output.ScreenSharingUrl),
|
|
1173
|
-
ScreenViewingUrl: smithy_client_1.expectString(output.ScreenViewingUrl),
|
|
1174
|
-
SignalingUrl: smithy_client_1.expectString(output.SignalingUrl),
|
|
1175
|
-
TurnControlUrl: smithy_client_1.expectString(output.TurnControlUrl),
|
|
1172
|
+
AudioFallbackUrl: (0, smithy_client_1.expectString)(output.AudioFallbackUrl),
|
|
1173
|
+
AudioHostUrl: (0, smithy_client_1.expectString)(output.AudioHostUrl),
|
|
1174
|
+
EventIngestionUrl: (0, smithy_client_1.expectString)(output.EventIngestionUrl),
|
|
1175
|
+
ScreenDataUrl: (0, smithy_client_1.expectString)(output.ScreenDataUrl),
|
|
1176
|
+
ScreenSharingUrl: (0, smithy_client_1.expectString)(output.ScreenSharingUrl),
|
|
1177
|
+
ScreenViewingUrl: (0, smithy_client_1.expectString)(output.ScreenViewingUrl),
|
|
1178
|
+
SignalingUrl: (0, smithy_client_1.expectString)(output.SignalingUrl),
|
|
1179
|
+
TurnControlUrl: (0, smithy_client_1.expectString)(output.TurnControlUrl),
|
|
1176
1180
|
};
|
|
1177
1181
|
};
|
|
1178
1182
|
const deserializeAws_restJson1Meeting = (output, context) => {
|
|
1179
1183
|
return {
|
|
1180
|
-
ExternalMeetingId: smithy_client_1.expectString(output.ExternalMeetingId),
|
|
1184
|
+
ExternalMeetingId: (0, smithy_client_1.expectString)(output.ExternalMeetingId),
|
|
1181
1185
|
MediaPlacement: output.MediaPlacement !== undefined && output.MediaPlacement !== null
|
|
1182
1186
|
? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
|
|
1183
1187
|
: undefined,
|
|
1184
|
-
MediaRegion: smithy_client_1.expectString(output.MediaRegion),
|
|
1188
|
+
MediaRegion: (0, smithy_client_1.expectString)(output.MediaRegion),
|
|
1185
1189
|
MeetingFeatures: output.MeetingFeatures !== undefined && output.MeetingFeatures !== null
|
|
1186
1190
|
? deserializeAws_restJson1MeetingFeaturesConfiguration(output.MeetingFeatures, context)
|
|
1187
1191
|
: undefined,
|
|
1188
|
-
MeetingHostId: smithy_client_1.expectString(output.MeetingHostId),
|
|
1189
|
-
MeetingId: smithy_client_1.expectString(output.MeetingId),
|
|
1192
|
+
MeetingHostId: (0, smithy_client_1.expectString)(output.MeetingHostId),
|
|
1193
|
+
MeetingId: (0, smithy_client_1.expectString)(output.MeetingId),
|
|
1194
|
+
PrimaryMeetingId: (0, smithy_client_1.expectString)(output.PrimaryMeetingId),
|
|
1190
1195
|
};
|
|
1191
1196
|
};
|
|
1192
1197
|
const deserializeAws_restJson1MeetingFeaturesConfiguration = (output, context) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|