@aws-sdk/client-ivs-realtime 3.328.0 → 3.332.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +82 -4
  2. package/dist-cjs/IVSRealTime.js +10 -0
  3. package/dist-cjs/commands/GetParticipantCommand.js +45 -0
  4. package/dist-cjs/commands/GetStageSessionCommand.js +45 -0
  5. package/dist-cjs/commands/ListParticipantEventsCommand.js +45 -0
  6. package/dist-cjs/commands/ListParticipantsCommand.js +45 -0
  7. package/dist-cjs/commands/ListStageSessionsCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +19 -1
  10. package/dist-cjs/pagination/ListParticipantEventsPaginator.js +29 -0
  11. package/dist-cjs/pagination/ListParticipantsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListStageSessionsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +3 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +381 -1
  15. package/dist-es/IVSRealTime.js +10 -0
  16. package/dist-es/commands/GetParticipantCommand.js +41 -0
  17. package/dist-es/commands/GetStageSessionCommand.js +41 -0
  18. package/dist-es/commands/ListParticipantEventsCommand.js +41 -0
  19. package/dist-es/commands/ListParticipantsCommand.js +41 -0
  20. package/dist-es/commands/ListStageSessionsCommand.js +41 -0
  21. package/dist-es/commands/index.js +5 -0
  22. package/dist-es/models/models_0.js +18 -0
  23. package/dist-es/pagination/ListParticipantEventsPaginator.js +25 -0
  24. package/dist-es/pagination/ListParticipantsPaginator.js +25 -0
  25. package/dist-es/pagination/ListStageSessionsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +3 -0
  27. package/dist-es/protocols/Aws_restJson1.js +371 -1
  28. package/dist-types/IVSRealTime.d.ts +77 -1
  29. package/dist-types/IVSRealTimeClient.d.ts +49 -3
  30. package/dist-types/commands/CreateParticipantTokenCommand.d.ts +5 -3
  31. package/dist-types/commands/DisconnectParticipantCommand.d.ts +2 -1
  32. package/dist-types/commands/GetParticipantCommand.d.ts +89 -0
  33. package/dist-types/commands/GetStageSessionCommand.d.ts +83 -0
  34. package/dist-types/commands/ListParticipantEventsCommand.d.ts +89 -0
  35. package/dist-types/commands/ListParticipantsCommand.d.ts +90 -0
  36. package/dist-types/commands/ListStageSessionsCommand.d.ts +84 -0
  37. package/dist-types/commands/ListStagesCommand.d.ts +2 -1
  38. package/dist-types/commands/index.d.ts +5 -0
  39. package/dist-types/models/models_0.d.ts +405 -33
  40. package/dist-types/pagination/ListParticipantEventsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/ListParticipantsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListStageSessionsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/index.d.ts +3 -0
  44. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  45. package/dist-types/ts3.4/IVSRealTime.d.ts +85 -0
  46. package/dist-types/ts3.4/IVSRealTimeClient.d.ts +30 -0
  47. package/dist-types/ts3.4/commands/GetParticipantCommand.d.ts +37 -0
  48. package/dist-types/ts3.4/commands/GetStageSessionCommand.d.ts +37 -0
  49. package/dist-types/ts3.4/commands/ListParticipantEventsCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/ListParticipantsCommand.d.ts +37 -0
  51. package/dist-types/ts3.4/commands/ListStageSessionsCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +103 -0
  54. package/dist-types/ts3.4/pagination/ListParticipantEventsPaginator.d.ts +11 -0
  55. package/dist-types/ts3.4/pagination/ListParticipantsPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/ListStageSessionsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  59. package/package.json +29 -29
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateStageCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagesCommand = exports.de_GetStageCommand = exports.de_DisconnectParticipantCommand = exports.de_DeleteStageCommand = exports.de_CreateStageCommand = exports.de_CreateParticipantTokenCommand = exports.se_UpdateStageCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStagesCommand = exports.se_GetStageCommand = exports.se_DisconnectParticipantCommand = exports.se_DeleteStageCommand = exports.se_CreateStageCommand = exports.se_CreateParticipantTokenCommand = void 0;
3
+ exports.de_UpdateStageCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStageSessionsCommand = exports.de_ListStagesCommand = exports.de_ListParticipantsCommand = exports.de_ListParticipantEventsCommand = exports.de_GetStageSessionCommand = exports.de_GetStageCommand = exports.de_GetParticipantCommand = exports.de_DisconnectParticipantCommand = exports.de_DeleteStageCommand = exports.de_CreateStageCommand = exports.de_CreateParticipantTokenCommand = exports.se_UpdateStageCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStageSessionsCommand = exports.se_ListStagesCommand = exports.se_ListParticipantsCommand = exports.se_ListParticipantEventsCommand = exports.se_GetStageSessionCommand = exports.se_GetStageCommand = exports.se_GetParticipantCommand = exports.se_DisconnectParticipantCommand = exports.se_DeleteStageCommand = exports.se_CreateStageCommand = exports.se_CreateParticipantTokenCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const IVSRealTimeServiceException_1 = require("../models/IVSRealTimeServiceException");
@@ -97,6 +97,29 @@ const se_DisconnectParticipantCommand = async (input, context) => {
97
97
  });
98
98
  };
99
99
  exports.se_DisconnectParticipantCommand = se_DisconnectParticipantCommand;
100
+ const se_GetParticipantCommand = async (input, context) => {
101
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const headers = {
103
+ "content-type": "application/json",
104
+ };
105
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetParticipant";
106
+ let body;
107
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
108
+ participantId: [],
109
+ sessionId: [],
110
+ stageArn: [],
111
+ }));
112
+ return new protocol_http_1.HttpRequest({
113
+ protocol,
114
+ hostname,
115
+ port,
116
+ method: "POST",
117
+ headers,
118
+ path: resolvedPath,
119
+ body,
120
+ });
121
+ };
122
+ exports.se_GetParticipantCommand = se_GetParticipantCommand;
100
123
  const se_GetStageCommand = async (input, context) => {
101
124
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
125
  const headers = {
@@ -118,6 +141,80 @@ const se_GetStageCommand = async (input, context) => {
118
141
  });
119
142
  };
120
143
  exports.se_GetStageCommand = se_GetStageCommand;
144
+ const se_GetStageSessionCommand = async (input, context) => {
145
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const headers = {
147
+ "content-type": "application/json",
148
+ };
149
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStageSession";
150
+ let body;
151
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
152
+ sessionId: [],
153
+ stageArn: [],
154
+ }));
155
+ return new protocol_http_1.HttpRequest({
156
+ protocol,
157
+ hostname,
158
+ port,
159
+ method: "POST",
160
+ headers,
161
+ path: resolvedPath,
162
+ body,
163
+ });
164
+ };
165
+ exports.se_GetStageSessionCommand = se_GetStageSessionCommand;
166
+ const se_ListParticipantEventsCommand = async (input, context) => {
167
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const headers = {
169
+ "content-type": "application/json",
170
+ };
171
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipantEvents";
172
+ let body;
173
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
174
+ maxResults: [],
175
+ nextToken: [],
176
+ participantId: [],
177
+ sessionId: [],
178
+ stageArn: [],
179
+ }));
180
+ return new protocol_http_1.HttpRequest({
181
+ protocol,
182
+ hostname,
183
+ port,
184
+ method: "POST",
185
+ headers,
186
+ path: resolvedPath,
187
+ body,
188
+ });
189
+ };
190
+ exports.se_ListParticipantEventsCommand = se_ListParticipantEventsCommand;
191
+ const se_ListParticipantsCommand = async (input, context) => {
192
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const headers = {
194
+ "content-type": "application/json",
195
+ };
196
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListParticipants";
197
+ let body;
198
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
199
+ filterByPublished: [],
200
+ filterByState: [],
201
+ filterByUserId: [],
202
+ maxResults: [],
203
+ nextToken: [],
204
+ sessionId: [],
205
+ stageArn: [],
206
+ }));
207
+ return new protocol_http_1.HttpRequest({
208
+ protocol,
209
+ hostname,
210
+ port,
211
+ method: "POST",
212
+ headers,
213
+ path: resolvedPath,
214
+ body,
215
+ });
216
+ };
217
+ exports.se_ListParticipantsCommand = se_ListParticipantsCommand;
121
218
  const se_ListStagesCommand = async (input, context) => {
122
219
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
220
  const headers = {
@@ -140,6 +237,29 @@ const se_ListStagesCommand = async (input, context) => {
140
237
  });
141
238
  };
142
239
  exports.se_ListStagesCommand = se_ListStagesCommand;
240
+ const se_ListStageSessionsCommand = async (input, context) => {
241
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const headers = {
243
+ "content-type": "application/json",
244
+ };
245
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStageSessions";
246
+ let body;
247
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
248
+ maxResults: [],
249
+ nextToken: [],
250
+ stageArn: [],
251
+ }));
252
+ return new protocol_http_1.HttpRequest({
253
+ protocol,
254
+ hostname,
255
+ port,
256
+ method: "POST",
257
+ headers,
258
+ path: resolvedPath,
259
+ body,
260
+ });
261
+ };
262
+ exports.se_ListStageSessionsCommand = se_ListStageSessionsCommand;
143
263
  const se_ListTagsForResourceCommand = async (input, context) => {
144
264
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
145
265
  const headers = {};
@@ -396,6 +516,46 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
396
516
  });
397
517
  }
398
518
  };
519
+ const de_GetParticipantCommand = async (output, context) => {
520
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
521
+ return de_GetParticipantCommandError(output, context);
522
+ }
523
+ const contents = (0, smithy_client_1.map)({
524
+ $metadata: deserializeMetadata(output),
525
+ });
526
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
527
+ const doc = (0, smithy_client_1.take)(data, {
528
+ participant: (_) => de_Participant(_, context),
529
+ });
530
+ Object.assign(contents, doc);
531
+ return contents;
532
+ };
533
+ exports.de_GetParticipantCommand = de_GetParticipantCommand;
534
+ const de_GetParticipantCommandError = async (output, context) => {
535
+ const parsedOutput = {
536
+ ...output,
537
+ body: await parseErrorBody(output.body, context),
538
+ };
539
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
540
+ switch (errorCode) {
541
+ case "AccessDeniedException":
542
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
543
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
544
+ case "ResourceNotFoundException":
545
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
546
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
547
+ case "ValidationException":
548
+ case "com.amazonaws.ivsrealtime#ValidationException":
549
+ throw await de_ValidationExceptionRes(parsedOutput, context);
550
+ default:
551
+ const parsedBody = parsedOutput.body;
552
+ return throwDefaultError({
553
+ output,
554
+ parsedBody,
555
+ errorCode,
556
+ });
557
+ }
558
+ };
399
559
  const de_GetStageCommand = async (output, context) => {
400
560
  if (output.statusCode !== 200 && output.statusCode >= 300) {
401
561
  return de_GetStageCommandError(output, context);
@@ -436,6 +596,122 @@ const de_GetStageCommandError = async (output, context) => {
436
596
  });
437
597
  }
438
598
  };
599
+ const de_GetStageSessionCommand = async (output, context) => {
600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
601
+ return de_GetStageSessionCommandError(output, context);
602
+ }
603
+ const contents = (0, smithy_client_1.map)({
604
+ $metadata: deserializeMetadata(output),
605
+ });
606
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
607
+ const doc = (0, smithy_client_1.take)(data, {
608
+ stageSession: (_) => de_StageSession(_, context),
609
+ });
610
+ Object.assign(contents, doc);
611
+ return contents;
612
+ };
613
+ exports.de_GetStageSessionCommand = de_GetStageSessionCommand;
614
+ const de_GetStageSessionCommandError = async (output, context) => {
615
+ const parsedOutput = {
616
+ ...output,
617
+ body: await parseErrorBody(output.body, context),
618
+ };
619
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
620
+ switch (errorCode) {
621
+ case "AccessDeniedException":
622
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
623
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
624
+ case "ResourceNotFoundException":
625
+ case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
626
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
627
+ case "ValidationException":
628
+ case "com.amazonaws.ivsrealtime#ValidationException":
629
+ throw await de_ValidationExceptionRes(parsedOutput, context);
630
+ default:
631
+ const parsedBody = parsedOutput.body;
632
+ return throwDefaultError({
633
+ output,
634
+ parsedBody,
635
+ errorCode,
636
+ });
637
+ }
638
+ };
639
+ const de_ListParticipantEventsCommand = async (output, context) => {
640
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
641
+ return de_ListParticipantEventsCommandError(output, context);
642
+ }
643
+ const contents = (0, smithy_client_1.map)({
644
+ $metadata: deserializeMetadata(output),
645
+ });
646
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
647
+ const doc = (0, smithy_client_1.take)(data, {
648
+ events: (_) => de_EventList(_, context),
649
+ nextToken: smithy_client_1.expectString,
650
+ });
651
+ Object.assign(contents, doc);
652
+ return contents;
653
+ };
654
+ exports.de_ListParticipantEventsCommand = de_ListParticipantEventsCommand;
655
+ const de_ListParticipantEventsCommandError = async (output, context) => {
656
+ const parsedOutput = {
657
+ ...output,
658
+ body: await parseErrorBody(output.body, context),
659
+ };
660
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
661
+ switch (errorCode) {
662
+ case "AccessDeniedException":
663
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
664
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
665
+ case "ValidationException":
666
+ case "com.amazonaws.ivsrealtime#ValidationException":
667
+ throw await de_ValidationExceptionRes(parsedOutput, context);
668
+ default:
669
+ const parsedBody = parsedOutput.body;
670
+ return throwDefaultError({
671
+ output,
672
+ parsedBody,
673
+ errorCode,
674
+ });
675
+ }
676
+ };
677
+ const de_ListParticipantsCommand = async (output, context) => {
678
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
679
+ return de_ListParticipantsCommandError(output, context);
680
+ }
681
+ const contents = (0, smithy_client_1.map)({
682
+ $metadata: deserializeMetadata(output),
683
+ });
684
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
685
+ const doc = (0, smithy_client_1.take)(data, {
686
+ nextToken: smithy_client_1.expectString,
687
+ participants: (_) => de_ParticipantList(_, context),
688
+ });
689
+ Object.assign(contents, doc);
690
+ return contents;
691
+ };
692
+ exports.de_ListParticipantsCommand = de_ListParticipantsCommand;
693
+ const de_ListParticipantsCommandError = async (output, context) => {
694
+ const parsedOutput = {
695
+ ...output,
696
+ body: await parseErrorBody(output.body, context),
697
+ };
698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
699
+ switch (errorCode) {
700
+ case "AccessDeniedException":
701
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
702
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
703
+ case "ValidationException":
704
+ case "com.amazonaws.ivsrealtime#ValidationException":
705
+ throw await de_ValidationExceptionRes(parsedOutput, context);
706
+ default:
707
+ const parsedBody = parsedOutput.body;
708
+ return throwDefaultError({
709
+ output,
710
+ parsedBody,
711
+ errorCode,
712
+ });
713
+ }
714
+ };
439
715
  const de_ListStagesCommand = async (output, context) => {
440
716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
441
717
  return de_ListStagesCommandError(output, context);
@@ -477,6 +753,44 @@ const de_ListStagesCommandError = async (output, context) => {
477
753
  });
478
754
  }
479
755
  };
756
+ const de_ListStageSessionsCommand = async (output, context) => {
757
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
758
+ return de_ListStageSessionsCommandError(output, context);
759
+ }
760
+ const contents = (0, smithy_client_1.map)({
761
+ $metadata: deserializeMetadata(output),
762
+ });
763
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
764
+ const doc = (0, smithy_client_1.take)(data, {
765
+ nextToken: smithy_client_1.expectString,
766
+ stageSessions: (_) => de_StageSessionList(_, context),
767
+ });
768
+ Object.assign(contents, doc);
769
+ return contents;
770
+ };
771
+ exports.de_ListStageSessionsCommand = de_ListStageSessionsCommand;
772
+ const de_ListStageSessionsCommandError = async (output, context) => {
773
+ const parsedOutput = {
774
+ ...output,
775
+ body: await parseErrorBody(output.body, context),
776
+ };
777
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
778
+ switch (errorCode) {
779
+ case "AccessDeniedException":
780
+ case "com.amazonaws.ivsrealtime#AccessDeniedException":
781
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
782
+ case "ValidationException":
783
+ case "com.amazonaws.ivsrealtime#ValidationException":
784
+ throw await de_ValidationExceptionRes(parsedOutput, context);
785
+ default:
786
+ const parsedBody = parsedOutput.body;
787
+ return throwDefaultError({
788
+ output,
789
+ parsedBody,
790
+ errorCode,
791
+ });
792
+ }
793
+ };
480
794
  const de_ListTagsForResourceCommand = async (output, context) => {
481
795
  if (output.statusCode !== 200 && output.statusCode >= 300) {
482
796
  return de_ListTagsForResourceCommandError(output, context);
@@ -727,6 +1041,50 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
727
1041
  });
728
1042
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
729
1043
  };
1044
+ const de_Event = (output, context) => {
1045
+ return (0, smithy_client_1.take)(output, {
1046
+ errorCode: smithy_client_1.expectString,
1047
+ eventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1048
+ name: smithy_client_1.expectString,
1049
+ participantId: smithy_client_1.expectString,
1050
+ remoteParticipantId: smithy_client_1.expectString,
1051
+ });
1052
+ };
1053
+ const de_EventList = (output, context) => {
1054
+ const retVal = (output || [])
1055
+ .filter((e) => e != null)
1056
+ .map((entry) => {
1057
+ return de_Event(entry, context);
1058
+ });
1059
+ return retVal;
1060
+ };
1061
+ const de_Participant = (output, context) => {
1062
+ return (0, smithy_client_1.take)(output, {
1063
+ attributes: smithy_client_1._json,
1064
+ firstJoinTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1065
+ participantId: smithy_client_1.expectString,
1066
+ published: smithy_client_1.expectBoolean,
1067
+ state: smithy_client_1.expectString,
1068
+ userId: smithy_client_1.expectString,
1069
+ });
1070
+ };
1071
+ const de_ParticipantList = (output, context) => {
1072
+ const retVal = (output || [])
1073
+ .filter((e) => e != null)
1074
+ .map((entry) => {
1075
+ return de_ParticipantSummary(entry, context);
1076
+ });
1077
+ return retVal;
1078
+ };
1079
+ const de_ParticipantSummary = (output, context) => {
1080
+ return (0, smithy_client_1.take)(output, {
1081
+ firstJoinTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1082
+ participantId: smithy_client_1.expectString,
1083
+ published: smithy_client_1.expectBoolean,
1084
+ state: smithy_client_1.expectString,
1085
+ userId: smithy_client_1.expectString,
1086
+ });
1087
+ };
730
1088
  const de_ParticipantToken = (output, context) => {
731
1089
  return (0, smithy_client_1.take)(output, {
732
1090
  attributes: smithy_client_1._json,
@@ -746,6 +1104,28 @@ const de_ParticipantTokenList = (output, context) => {
746
1104
  });
747
1105
  return retVal;
748
1106
  };
1107
+ const de_StageSession = (output, context) => {
1108
+ return (0, smithy_client_1.take)(output, {
1109
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1110
+ sessionId: smithy_client_1.expectString,
1111
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1112
+ });
1113
+ };
1114
+ const de_StageSessionList = (output, context) => {
1115
+ const retVal = (output || [])
1116
+ .filter((e) => e != null)
1117
+ .map((entry) => {
1118
+ return de_StageSessionSummary(entry, context);
1119
+ });
1120
+ return retVal;
1121
+ };
1122
+ const de_StageSessionSummary = (output, context) => {
1123
+ return (0, smithy_client_1.take)(output, {
1124
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1125
+ sessionId: smithy_client_1.expectString,
1126
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1127
+ });
1128
+ };
749
1129
  const deserializeMetadata = (output) => ({
750
1130
  httpStatusCode: output.statusCode,
751
1131
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3,8 +3,13 @@ import { CreateParticipantTokenCommand, } from "./commands/CreateParticipantToke
3
3
  import { CreateStageCommand } from "./commands/CreateStageCommand";
4
4
  import { DeleteStageCommand } from "./commands/DeleteStageCommand";
5
5
  import { DisconnectParticipantCommand, } from "./commands/DisconnectParticipantCommand";
6
+ import { GetParticipantCommand, } from "./commands/GetParticipantCommand";
6
7
  import { GetStageCommand } from "./commands/GetStageCommand";
8
+ import { GetStageSessionCommand, } from "./commands/GetStageSessionCommand";
9
+ import { ListParticipantEventsCommand, } from "./commands/ListParticipantEventsCommand";
10
+ import { ListParticipantsCommand, } from "./commands/ListParticipantsCommand";
7
11
  import { ListStagesCommand } from "./commands/ListStagesCommand";
12
+ import { ListStageSessionsCommand, } from "./commands/ListStageSessionsCommand";
8
13
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
9
14
  import { TagResourceCommand } from "./commands/TagResourceCommand";
10
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -15,8 +20,13 @@ const commands = {
15
20
  CreateStageCommand,
16
21
  DeleteStageCommand,
17
22
  DisconnectParticipantCommand,
23
+ GetParticipantCommand,
18
24
  GetStageCommand,
25
+ GetStageSessionCommand,
26
+ ListParticipantEventsCommand,
27
+ ListParticipantsCommand,
19
28
  ListStagesCommand,
29
+ ListStageSessionsCommand,
20
30
  ListTagsForResourceCommand,
21
31
  TagResourceCommand,
22
32
  UntagResourceCommand,
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetParticipantCommand, se_GetParticipantCommand } from "../protocols/Aws_restJson1";
5
+ export class GetParticipantCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
9
+ }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetParticipantCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "IVSRealTimeClient";
24
+ const commandName = "GetParticipantCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_GetParticipantCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_GetParticipantCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetStageSessionCommand, se_GetStageSessionCommand } from "../protocols/Aws_restJson1";
5
+ export class GetStageSessionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
9
+ }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetStageSessionCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "IVSRealTimeClient";
24
+ const commandName = "GetStageSessionCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_GetStageSessionCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_GetStageSessionCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListParticipantEventsCommand, se_ListParticipantEventsCommand } from "../protocols/Aws_restJson1";
5
+ export class ListParticipantEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
9
+ }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListParticipantEventsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "IVSRealTimeClient";
24
+ const commandName = "ListParticipantEventsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_ListParticipantEventsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_ListParticipantEventsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListParticipantsCommand, se_ListParticipantsCommand } from "../protocols/Aws_restJson1";
5
+ export class ListParticipantsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
9
+ }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListParticipantsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "IVSRealTimeClient";
24
+ const commandName = "ListParticipantsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_ListParticipantsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_ListParticipantsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListStageSessionsCommand, se_ListStageSessionsCommand } from "../protocols/Aws_restJson1";
5
+ export class ListStageSessionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
9
+ }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListStageSessionsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "IVSRealTimeClient";
24
+ const commandName = "ListStageSessionsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_ListStageSessionsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_ListStageSessionsCommand(output, context);
40
+ }
41
+ }