@aws-sdk/client-ivs-realtime 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/pagination/ListCompositionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListParticipantEventsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListParticipantsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListStageSessionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListStagesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +115 -304
  9. package/dist-es/pagination/ListCompositionsPaginator.js +2 -23
  10. package/dist-es/pagination/ListEncoderConfigurationsPaginator.js +2 -23
  11. package/dist-es/pagination/ListParticipantEventsPaginator.js +2 -23
  12. package/dist-es/pagination/ListParticipantsPaginator.js +2 -23
  13. package/dist-es/pagination/ListStageSessionsPaginator.js +2 -23
  14. package/dist-es/pagination/ListStagesPaginator.js +2 -23
  15. package/dist-es/pagination/ListStorageConfigurationsPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +116 -305
  17. package/dist-types/pagination/ListCompositionsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListEncoderConfigurationsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListParticipantEventsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListParticipantsPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListStageSessionsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListStagesPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListStorageConfigurationsPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListCompositionsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListEncoderConfigurationsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListParticipantEventsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListParticipantsPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListStageSessionsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListStagesPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListStorageConfigurationsPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCompositions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCompositionsCommand_1 = require("../commands/ListCompositionsCommand");
5
6
  const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCompositionsCommand_1.ListCompositionsCommand(input), ...args);
8
- };
9
- async function* paginateListCompositions(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.paginateListCompositions = paginateListCompositions;
7
+ exports.paginateListCompositions = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListCompositionsCommand_1.ListCompositionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEncoderConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEncoderConfigurationsCommand_1 = require("../commands/ListEncoderConfigurationsCommand");
5
6
  const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEncoderConfigurationsCommand_1.ListEncoderConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateListEncoderConfigurations(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.paginateListEncoderConfigurations = paginateListEncoderConfigurations;
7
+ exports.paginateListEncoderConfigurations = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListEncoderConfigurationsCommand_1.ListEncoderConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListParticipantEvents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListParticipantEventsCommand_1 = require("../commands/ListParticipantEventsCommand");
5
6
  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;
7
+ exports.paginateListParticipantEvents = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListParticipantEventsCommand_1.ListParticipantEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListParticipants = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListParticipantsCommand_1 = require("../commands/ListParticipantsCommand");
5
6
  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;
7
+ exports.paginateListParticipants = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListParticipantsCommand_1.ListParticipantsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStageSessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStageSessionsCommand_1 = require("../commands/ListStageSessionsCommand");
5
6
  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;
7
+ exports.paginateListStageSessions = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListStageSessionsCommand_1.ListStageSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStages = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStagesCommand_1 = require("../commands/ListStagesCommand");
5
6
  const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStagesCommand_1.ListStagesCommand(input), ...args);
8
- };
9
- async function* paginateListStages(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.paginateListStages = paginateListStages;
7
+ exports.paginateListStages = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListStagesCommand_1.ListStagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStorageConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStorageConfigurationsCommand_1 = require("../commands/ListStorageConfigurationsCommand");
5
6
  const IVSRealTimeClient_1 = require("../IVSRealTimeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStorageConfigurationsCommand_1.ListStorageConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateListStorageConfigurations(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.paginateListStorageConfigurations = paginateListStorageConfigurations;
7
+ exports.paginateListStorageConfigurations = (0, core_1.createPaginator)(IVSRealTimeClient_1.IVSRealTimeClient, ListStorageConfigurationsCommand_1.ListStorageConfigurationsCommand, "nextToken", "nextToken", "maxResults");