@aws-sdk/client-ivs-realtime 3.451.0 → 3.453.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 (85) hide show
  1. package/README.md +184 -5
  2. package/dist-cjs/IVSRealTime.js +24 -0
  3. package/dist-cjs/commands/CreateEncoderConfigurationCommand.js +51 -0
  4. package/dist-cjs/commands/CreateStorageConfigurationCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteEncoderConfigurationCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteStorageConfigurationCommand.js +51 -0
  7. package/dist-cjs/commands/GetCompositionCommand.js +51 -0
  8. package/dist-cjs/commands/GetEncoderConfigurationCommand.js +51 -0
  9. package/dist-cjs/commands/GetStorageConfigurationCommand.js +51 -0
  10. package/dist-cjs/commands/ListCompositionsCommand.js +51 -0
  11. package/dist-cjs/commands/ListEncoderConfigurationsCommand.js +51 -0
  12. package/dist-cjs/commands/ListStorageConfigurationsCommand.js +51 -0
  13. package/dist-cjs/commands/StartCompositionCommand.js +51 -0
  14. package/dist-cjs/commands/StopCompositionCommand.js +51 -0
  15. package/dist-cjs/commands/index.js +12 -0
  16. package/dist-cjs/models/models_0.js +51 -33
  17. package/dist-cjs/pagination/ListCompositionsPaginator.js +29 -0
  18. package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +29 -0
  20. package/dist-cjs/pagination/index.js +3 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +1036 -101
  22. package/dist-es/IVSRealTime.js +24 -0
  23. package/dist-es/commands/CreateEncoderConfigurationCommand.js +47 -0
  24. package/dist-es/commands/CreateStorageConfigurationCommand.js +47 -0
  25. package/dist-es/commands/DeleteEncoderConfigurationCommand.js +47 -0
  26. package/dist-es/commands/DeleteStorageConfigurationCommand.js +47 -0
  27. package/dist-es/commands/GetCompositionCommand.js +47 -0
  28. package/dist-es/commands/GetEncoderConfigurationCommand.js +47 -0
  29. package/dist-es/commands/GetStorageConfigurationCommand.js +47 -0
  30. package/dist-es/commands/ListCompositionsCommand.js +47 -0
  31. package/dist-es/commands/ListEncoderConfigurationsCommand.js +47 -0
  32. package/dist-es/commands/ListStorageConfigurationsCommand.js +47 -0
  33. package/dist-es/commands/StartCompositionCommand.js +47 -0
  34. package/dist-es/commands/StopCompositionCommand.js +47 -0
  35. package/dist-es/commands/index.js +12 -0
  36. package/dist-es/models/models_0.js +48 -30
  37. package/dist-es/pagination/ListCompositionsPaginator.js +25 -0
  38. package/dist-es/pagination/ListEncoderConfigurationsPaginator.js +25 -0
  39. package/dist-es/pagination/ListStorageConfigurationsPaginator.js +25 -0
  40. package/dist-es/pagination/index.js +3 -0
  41. package/dist-es/protocols/Aws_restJson1.js +1002 -92
  42. package/dist-types/IVSRealTime.d.ts +172 -5
  43. package/dist-types/IVSRealTimeClient.d.ts +102 -7
  44. package/dist-types/commands/CreateEncoderConfigurationCommand.d.ts +115 -0
  45. package/dist-types/commands/CreateStorageConfigurationCommand.d.ts +111 -0
  46. package/dist-types/commands/DeleteEncoderConfigurationCommand.d.ts +90 -0
  47. package/dist-types/commands/DeleteStorageConfigurationCommand.d.ts +92 -0
  48. package/dist-types/commands/GetCompositionCommand.d.ts +134 -0
  49. package/dist-types/commands/GetEncoderConfigurationCommand.d.ts +103 -0
  50. package/dist-types/commands/GetStorageConfigurationCommand.d.ts +100 -0
  51. package/dist-types/commands/ListCompositionsCommand.d.ts +112 -0
  52. package/dist-types/commands/ListEncoderConfigurationsCommand.d.ts +99 -0
  53. package/dist-types/commands/ListStorageConfigurationsCommand.d.ts +102 -0
  54. package/dist-types/commands/StartCompositionCommand.d.ts +187 -0
  55. package/dist-types/commands/StopCompositionCommand.d.ts +90 -0
  56. package/dist-types/commands/index.d.ts +12 -0
  57. package/dist-types/index.d.ts +88 -5
  58. package/dist-types/models/models_0.d.ts +908 -92
  59. package/dist-types/pagination/ListCompositionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/ListEncoderConfigurationsPaginator.d.ts +7 -0
  61. package/dist-types/pagination/ListStorageConfigurationsPaginator.d.ts +7 -0
  62. package/dist-types/pagination/index.d.ts +3 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
  64. package/dist-types/ts3.4/IVSRealTime.d.ts +204 -0
  65. package/dist-types/ts3.4/IVSRealTimeClient.d.ts +72 -0
  66. package/dist-types/ts3.4/commands/CreateEncoderConfigurationCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/CreateStorageConfigurationCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/DeleteEncoderConfigurationCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/DeleteStorageConfigurationCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/GetCompositionCommand.d.ts +38 -0
  71. package/dist-types/ts3.4/commands/GetEncoderConfigurationCommand.d.ts +42 -0
  72. package/dist-types/ts3.4/commands/GetStorageConfigurationCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/ListCompositionsCommand.d.ts +38 -0
  74. package/dist-types/ts3.4/commands/ListEncoderConfigurationsCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/ListStorageConfigurationsCommand.d.ts +42 -0
  76. package/dist-types/ts3.4/commands/StartCompositionCommand.d.ts +38 -0
  77. package/dist-types/ts3.4/commands/StopCompositionCommand.d.ts +38 -0
  78. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +234 -34
  80. package/dist-types/ts3.4/pagination/ListCompositionsPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/ListEncoderConfigurationsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/ListStorageConfigurationsPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  84. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
  85. package/package.json +4 -2
@@ -13,10 +13,32 @@ export class AccessDeniedException extends __BaseException {
13
13
  this.exceptionMessage = opts.exceptionMessage;
14
14
  }
15
15
  }
16
- export const ParticipantTokenCapability = {
17
- PUBLISH: "PUBLISH",
18
- SUBSCRIBE: "SUBSCRIBE",
19
- };
16
+ export class ConflictException extends __BaseException {
17
+ constructor(opts) {
18
+ super({
19
+ name: "ConflictException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ this.name = "ConflictException";
24
+ this.$fault = "client";
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.exceptionMessage = opts.exceptionMessage;
27
+ }
28
+ }
29
+ export class InternalServerException extends __BaseException {
30
+ constructor(opts) {
31
+ super({
32
+ name: "InternalServerException",
33
+ $fault: "server",
34
+ ...opts,
35
+ });
36
+ this.name = "InternalServerException";
37
+ this.$fault = "server";
38
+ Object.setPrototypeOf(this, InternalServerException.prototype);
39
+ this.exceptionMessage = opts.exceptionMessage;
40
+ }
41
+ }
20
42
  export class PendingVerification extends __BaseException {
21
43
  constructor(opts) {
22
44
  super({
@@ -69,19 +91,28 @@ export class ValidationException extends __BaseException {
69
91
  this.exceptionMessage = opts.exceptionMessage;
70
92
  }
71
93
  }
72
- export class ConflictException extends __BaseException {
73
- constructor(opts) {
74
- super({
75
- name: "ConflictException",
76
- $fault: "client",
77
- ...opts,
78
- });
79
- this.name = "ConflictException";
80
- this.$fault = "client";
81
- Object.setPrototypeOf(this, ConflictException.prototype);
82
- this.exceptionMessage = opts.exceptionMessage;
83
- }
84
- }
94
+ export const ParticipantTokenCapability = {
95
+ PUBLISH: "PUBLISH",
96
+ SUBSCRIBE: "SUBSCRIBE",
97
+ };
98
+ export const RecordingConfigurationFormat = {
99
+ HLS: "HLS",
100
+ };
101
+ export const DestinationState = {
102
+ ACTIVE: "ACTIVE",
103
+ FAILED: "FAILED",
104
+ RECONNECTING: "RECONNECTING",
105
+ STARTING: "STARTING",
106
+ STOPPED: "STOPPED",
107
+ STOPPING: "STOPPING",
108
+ };
109
+ export const CompositionState = {
110
+ ACTIVE: "ACTIVE",
111
+ FAILED: "FAILED",
112
+ STARTING: "STARTING",
113
+ STOPPED: "STOPPED",
114
+ STOPPING: "STOPPING",
115
+ };
85
116
  export const ParticipantState = {
86
117
  CONNECTED: "CONNECTED",
87
118
  DISCONNECTED: "DISCONNECTED",
@@ -102,19 +133,6 @@ export const EventName = {
102
133
  SUBSCRIBE_STARTED: "SUBSCRIBE_STARTED",
103
134
  SUBSCRIBE_STOPPED: "SUBSCRIBE_STOPPED",
104
135
  };
105
- export class InternalServerException extends __BaseException {
106
- constructor(opts) {
107
- super({
108
- name: "InternalServerException",
109
- $fault: "server",
110
- ...opts,
111
- });
112
- this.name = "InternalServerException";
113
- this.$fault = "server";
114
- Object.setPrototypeOf(this, InternalServerException.prototype);
115
- this.exceptionMessage = opts.exceptionMessage;
116
- }
117
- }
118
136
  export const ParticipantTokenFilterSensitiveLog = (obj) => ({
119
137
  ...obj,
120
138
  ...(obj.token && { token: SENSITIVE_STRING }),
@@ -0,0 +1,25 @@
1
+ import { ListCompositionsCommand, } from "../commands/ListCompositionsCommand";
2
+ import { IVSRealTimeClient } from "../IVSRealTimeClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListCompositionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListCompositions(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof IVSRealTimeClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListEncoderConfigurationsCommand, } from "../commands/ListEncoderConfigurationsCommand";
2
+ import { IVSRealTimeClient } from "../IVSRealTimeClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListEncoderConfigurationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListEncoderConfigurations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof IVSRealTimeClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListStorageConfigurationsCommand, } from "../commands/ListStorageConfigurationsCommand";
2
+ import { IVSRealTimeClient } from "../IVSRealTimeClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListStorageConfigurationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListStorageConfigurations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof IVSRealTimeClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,5 +1,8 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListCompositionsPaginator";
3
+ export * from "./ListEncoderConfigurationsPaginator";
2
4
  export * from "./ListParticipantEventsPaginator";
3
5
  export * from "./ListParticipantsPaginator";
4
6
  export * from "./ListStageSessionsPaginator";
5
7
  export * from "./ListStagesPaginator";
8
+ export * from "./ListStorageConfigurationsPaginator";