@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
package/README.md CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  # @aws-sdk/client-ivs-realtime
4
4
 
5
- [![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-ivs-realtime/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-ivs-realtime)
6
- [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-ivs-realtime.svg)](https://www.npmjs.com/package/@aws-sdk/client-ivs-realtime)
7
-
8
5
  ## Description
9
6
 
10
7
  AWS SDK for JavaScript IVSRealTime Client for Node.js, Browser and React Native.
@@ -16,7 +13,24 @@ AWS SDK for JavaScript IVSRealTime Client for Node.js, Browser and React Native.
16
13
  API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses,
17
14
  including errors.
18
15
  </p>
19
- <p>Terminology: The IVS stage API sometimes is referred to as the IVS RealTime API.</p>
16
+ <p>Terminology:</p>
17
+ <ul>
18
+ <li>
19
+ <p>The IVS stage API sometimes is referred to as the IVS <i>RealTime</i>
20
+ API.</p>
21
+ </li>
22
+ <li>
23
+ <p>A <i>participant token</i> is an authorization token used to publish/subscribe
24
+ to a stage.</p>
25
+ </li>
26
+ <li>
27
+ <p>A <i>participant object</i> represents participants
28
+ (people) in the stage and contains information about them. When a token is created, it
29
+ includes a participant ID; when a participant uses that token to join a stage, the
30
+ participant is associated with that participant ID There is a 1:1 mapping between
31
+ participant tokens and participants.</p>
32
+ </li>
33
+ </ul>
20
34
  <p>
21
35
  <b>Resources</b>
22
36
  </p>
@@ -64,14 +78,38 @@ manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/acc
64
78
  </li>
65
79
  <li>
66
80
  <p>
81
+ <a>GetParticipant</a> — Gets information about the specified
82
+ participant token.</p>
83
+ </li>
84
+ <li>
85
+ <p>
67
86
  <a>GetStage</a> — Gets information for the specified stage.</p>
68
87
  </li>
69
88
  <li>
70
89
  <p>
90
+ <a>GetStageSession</a> — Gets information for the specified stage
91
+ session.</p>
92
+ </li>
93
+ <li>
94
+ <p>
95
+ <a>ListParticipantEvents</a> — Lists events for a specified
96
+ participant that occurred during a specified stage session.</p>
97
+ </li>
98
+ <li>
99
+ <p>
100
+ <a>ListParticipants</a> — Lists all participants in a specified stage
101
+ session.</p>
102
+ </li>
103
+ <li>
104
+ <p>
71
105
  <a>ListStages</a> — Gets summary information about all stages in your account, in the AWS region where the API request is processed.</p>
72
106
  </li>
73
107
  <li>
74
108
  <p>
109
+ <a>ListStageSessions</a> — Gets all sessions for a specified stage.</p>
110
+ </li>
111
+ <li>
112
+ <p>
75
113
  <a>UpdateStage</a> — Updates a stage’s configuration.</p>
76
114
  </li>
77
115
  </ul>
@@ -322,6 +360,14 @@ DisconnectParticipant
322
360
 
323
361
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/disconnectparticipantcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/disconnectparticipantcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/disconnectparticipantcommandoutput.html)
324
362
 
363
+ </details>
364
+ <details>
365
+ <summary>
366
+ GetParticipant
367
+ </summary>
368
+
369
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/getparticipantcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getparticipantcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getparticipantcommandoutput.html)
370
+
325
371
  </details>
326
372
  <details>
327
373
  <summary>
@@ -330,6 +376,30 @@ GetStage
330
376
 
331
377
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/getstagecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getstagecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getstagecommandoutput.html)
332
378
 
379
+ </details>
380
+ <details>
381
+ <summary>
382
+ GetStageSession
383
+ </summary>
384
+
385
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/getstagesessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getstagesessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/getstagesessioncommandoutput.html)
386
+
387
+ </details>
388
+ <details>
389
+ <summary>
390
+ ListParticipantEvents
391
+ </summary>
392
+
393
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/listparticipanteventscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/listparticipanteventscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/listparticipanteventscommandoutput.html)
394
+
395
+ </details>
396
+ <details>
397
+ <summary>
398
+ ListParticipants
399
+ </summary>
400
+
401
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/listparticipantscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/listparticipantscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/listparticipantscommandoutput.html)
402
+
333
403
  </details>
334
404
  <details>
335
405
  <summary>
@@ -338,6 +408,14 @@ ListStages
338
408
 
339
409
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/liststagescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/liststagescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/liststagescommandoutput.html)
340
410
 
411
+ </details>
412
+ <details>
413
+ <summary>
414
+ ListStageSessions
415
+ </summary>
416
+
417
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/classes/liststagesessionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/liststagesessionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ivs-realtime/interfaces/liststagesessionscommandoutput.html)
418
+
341
419
  </details>
342
420
  <details>
343
421
  <summary>
@@ -6,8 +6,13 @@ const CreateParticipantTokenCommand_1 = require("./commands/CreateParticipantTok
6
6
  const CreateStageCommand_1 = require("./commands/CreateStageCommand");
7
7
  const DeleteStageCommand_1 = require("./commands/DeleteStageCommand");
8
8
  const DisconnectParticipantCommand_1 = require("./commands/DisconnectParticipantCommand");
9
+ const GetParticipantCommand_1 = require("./commands/GetParticipantCommand");
9
10
  const GetStageCommand_1 = require("./commands/GetStageCommand");
11
+ const GetStageSessionCommand_1 = require("./commands/GetStageSessionCommand");
12
+ const ListParticipantEventsCommand_1 = require("./commands/ListParticipantEventsCommand");
13
+ const ListParticipantsCommand_1 = require("./commands/ListParticipantsCommand");
10
14
  const ListStagesCommand_1 = require("./commands/ListStagesCommand");
15
+ const ListStageSessionsCommand_1 = require("./commands/ListStageSessionsCommand");
11
16
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
12
17
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
13
18
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
@@ -18,8 +23,13 @@ const commands = {
18
23
  CreateStageCommand: CreateStageCommand_1.CreateStageCommand,
19
24
  DeleteStageCommand: DeleteStageCommand_1.DeleteStageCommand,
20
25
  DisconnectParticipantCommand: DisconnectParticipantCommand_1.DisconnectParticipantCommand,
26
+ GetParticipantCommand: GetParticipantCommand_1.GetParticipantCommand,
21
27
  GetStageCommand: GetStageCommand_1.GetStageCommand,
28
+ GetStageSessionCommand: GetStageSessionCommand_1.GetStageSessionCommand,
29
+ ListParticipantEventsCommand: ListParticipantEventsCommand_1.ListParticipantEventsCommand,
30
+ ListParticipantsCommand: ListParticipantsCommand_1.ListParticipantsCommand,
22
31
  ListStagesCommand: ListStagesCommand_1.ListStagesCommand,
32
+ ListStageSessionsCommand: ListStageSessionsCommand_1.ListStageSessionsCommand,
23
33
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
24
34
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
25
35
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetParticipantCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetParticipantCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetParticipantCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "IVSRealTimeClient";
27
+ const commandName = "GetParticipantCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_GetParticipantCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_GetParticipantCommand)(output, context);
43
+ }
44
+ }
45
+ exports.GetParticipantCommand = GetParticipantCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetStageSessionCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetStageSessionCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetStageSessionCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "IVSRealTimeClient";
27
+ const commandName = "GetStageSessionCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_GetStageSessionCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_GetStageSessionCommand)(output, context);
43
+ }
44
+ }
45
+ exports.GetStageSessionCommand = GetStageSessionCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListParticipantEventsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListParticipantEventsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListParticipantEventsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "IVSRealTimeClient";
27
+ const commandName = "ListParticipantEventsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_ListParticipantEventsCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_ListParticipantEventsCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListParticipantEventsCommand = ListParticipantEventsCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListParticipantsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListParticipantsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListParticipantsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "IVSRealTimeClient";
27
+ const commandName = "ListParticipantsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_ListParticipantsCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_ListParticipantsCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListParticipantsCommand = ListParticipantsCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListStageSessionsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListStageSessionsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ static getEndpointParameterInstructions() {
14
+ return {
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListStageSessionsCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "IVSRealTimeClient";
27
+ const commandName = "ListStageSessionsCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: (_) => _,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_restJson1_1.se_ListStageSessionsCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_restJson1_1.de_ListStageSessionsCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListStageSessionsCommand = ListStageSessionsCommand;
@@ -5,7 +5,12 @@ tslib_1.__exportStar(require("./CreateParticipantTokenCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateStageCommand"), exports);
6
6
  tslib_1.__exportStar(require("./DeleteStageCommand"), exports);
7
7
  tslib_1.__exportStar(require("./DisconnectParticipantCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetParticipantCommand"), exports);
8
9
  tslib_1.__exportStar(require("./GetStageCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetStageSessionCommand"), exports);
11
+ tslib_1.__exportStar(require("./ListParticipantEventsCommand"), exports);
12
+ tslib_1.__exportStar(require("./ListParticipantsCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListStageSessionsCommand"), exports);
9
14
  tslib_1.__exportStar(require("./ListStagesCommand"), exports);
10
15
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
11
16
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateStageResponseFilterSensitiveLog = exports.CreateParticipantTokenResponseFilterSensitiveLog = exports.ParticipantTokenFilterSensitiveLog = exports.InternalServerException = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ParticipantTokenCapability = exports.AccessDeniedException = void 0;
3
+ exports.CreateStageResponseFilterSensitiveLog = exports.CreateParticipantTokenResponseFilterSensitiveLog = exports.ParticipantTokenFilterSensitiveLog = exports.InternalServerException = exports.EventName = exports.EventErrorCode = exports.ParticipantState = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ParticipantTokenCapability = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const IVSRealTimeServiceException_1 = require("./IVSRealTimeServiceException");
6
6
  class AccessDeniedException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
@@ -91,6 +91,24 @@ class ConflictException extends IVSRealTimeServiceException_1.IVSRealTimeService
91
91
  }
92
92
  }
93
93
  exports.ConflictException = ConflictException;
94
+ exports.ParticipantState = {
95
+ CONNECTED: "CONNECTED",
96
+ DISCONNECTED: "DISCONNECTED",
97
+ };
98
+ exports.EventErrorCode = {
99
+ INSUFFICIENT_CAPABILITIES: "INSUFFICIENT_CAPABILITIES",
100
+ };
101
+ exports.EventName = {
102
+ JOINED: "JOINED",
103
+ JOIN_ERROR: "JOIN_ERROR",
104
+ LEFT: "LEFT",
105
+ PUBLISH_ERROR: "PUBLISH_ERROR",
106
+ PUBLISH_STARTED: "PUBLISH_STARTED",
107
+ PUBLISH_STOPPED: "PUBLISH_STOPPED",
108
+ SUBSCRIBE_ERROR: "SUBSCRIBE_ERROR",
109
+ SUBSCRIBE_STARTED: "SUBSCRIBE_STARTED",
110
+ SUBSCRIBE_STOPPED: "SUBSCRIBE_STOPPED",
111
+ };
94
112
  class InternalServerException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
95
113
  constructor(opts) {
96
114
  super({
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListParticipantEvents = void 0;
4
+ const ListParticipantEventsCommand_1 = require("../commands/ListParticipantEventsCommand");
5
+ const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListParticipantEventsCommand_1.ListParticipantEventsCommand(input), ...args);
8
+ };
9
+ async function* paginateListParticipantEvents(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof IVSRealTimeClient_1.IVSRealTimeClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListParticipantEvents = paginateListParticipantEvents;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListParticipants = void 0;
4
+ const ListParticipantsCommand_1 = require("../commands/ListParticipantsCommand");
5
+ const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListParticipantsCommand_1.ListParticipantsCommand(input), ...args);
8
+ };
9
+ async function* paginateListParticipants(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof IVSRealTimeClient_1.IVSRealTimeClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListParticipants = paginateListParticipants;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListStageSessions = void 0;
4
+ const ListStageSessionsCommand_1 = require("../commands/ListStageSessionsCommand");
5
+ const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListStageSessionsCommand_1.ListStageSessionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListStageSessions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof IVSRealTimeClient_1.IVSRealTimeClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListStageSessions = paginateListStageSessions;
@@ -2,4 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListParticipantEventsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListParticipantsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListStageSessionsPaginator"), exports);
5
8
  tslib_1.__exportStar(require("./ListStagesPaginator"), exports);