@aws-sdk/client-ivs-realtime 3.298.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +373 -0
- package/dist-cjs/IVSRealTime.js +157 -0
- package/dist-cjs/IVSRealTimeClient.js +40 -0
- package/dist-cjs/commands/CreateParticipantTokenCommand.js +45 -0
- package/dist-cjs/commands/CreateStageCommand.js +45 -0
- package/dist-cjs/commands/DeleteStageCommand.js +45 -0
- package/dist-cjs/commands/DisconnectParticipantCommand.js +45 -0
- package/dist-cjs/commands/GetStageCommand.js +45 -0
- package/dist-cjs/commands/ListStagesCommand.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +45 -0
- package/dist-cjs/commands/UntagResourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateStageCommand.js +45 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/IVSRealTimeServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +107 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListStagesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +922 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/IVSRealTime.js +153 -0
- package/dist-es/IVSRealTimeClient.js +36 -0
- package/dist-es/commands/CreateParticipantTokenCommand.js +41 -0
- package/dist-es/commands/CreateStageCommand.js +41 -0
- package/dist-es/commands/DeleteStageCommand.js +41 -0
- package/dist-es/commands/DisconnectParticipantCommand.js +41 -0
- package/dist-es/commands/GetStageCommand.js +41 -0
- package/dist-es/commands/ListStagesCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdateStageCommand.js +41 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/IVSRealTimeServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +97 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListStagesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +899 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/IVSRealTime.d.ts +175 -0
- package/dist-types/IVSRealTimeClient.d.ts +256 -0
- package/dist-types/commands/CreateParticipantTokenCommand.d.ts +77 -0
- package/dist-types/commands/CreateStageCommand.d.ts +72 -0
- package/dist-types/commands/DeleteStageCommand.d.ts +75 -0
- package/dist-types/commands/DisconnectParticipantCommand.d.ts +72 -0
- package/dist-types/commands/GetStageCommand.d.ts +69 -0
- package/dist-types/commands/ListStagesCommand.d.ts +69 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +69 -0
- package/dist-types/commands/TagResourceCommand.d.ts +69 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +69 -0
- package/dist-types/commands/UpdateStageCommand.d.ts +75 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/IVSRealTimeServiceException.d.ts +12 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +477 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListStagesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/IVSRealTime.d.ts +174 -0
- package/dist-types/ts3.4/IVSRealTimeClient.d.ts +172 -0
- package/dist-types/ts3.4/commands/CreateParticipantTokenCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateStageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteStageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisconnectParticipantCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetStageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListStagesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateStageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/IVSRealTimeServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +153 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListStagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +98 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateParticipantTokenCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateStageCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteStageCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DisconnectParticipantCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetStageCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListStagesCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./UpdateStageCommand"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveClientEndpointParameters = void 0;
|
|
4
|
+
const resolveClientEndpointParameters = (options) => {
|
|
5
|
+
return {
|
|
6
|
+
...options,
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
+
defaultSigningName: "ivs",
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const ruleset_1 = require("./ruleset");
|
|
6
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
+
return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
|
+
endpointParams: endpointParams,
|
|
9
|
+
logger: context.logger,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ivsrealtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ivsrealtime-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ivsrealtime.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://ivsrealtime.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
|
+
exports.ruleSet = _data;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IVSRealTimeServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./IVSRealTime"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./IVSRealTimeClient"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var IVSRealTimeServiceException_1 = require("./models/IVSRealTimeServiceException");
|
|
11
|
+
Object.defineProperty(exports, "IVSRealTimeServiceException", { enumerable: true, get: function () { return IVSRealTimeServiceException_1.IVSRealTimeServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IVSRealTimeServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class IVSRealTimeServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, IVSRealTimeServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.IVSRealTimeServiceException = IVSRealTimeServiceException;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalServerException = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.PendingVerification = exports.ParticipantTokenCapability = exports.AccessDeniedException = void 0;
|
|
4
|
+
const IVSRealTimeServiceException_1 = require("./IVSRealTimeServiceException");
|
|
5
|
+
class AccessDeniedException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessDeniedException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
19
|
+
var ParticipantTokenCapability;
|
|
20
|
+
(function (ParticipantTokenCapability) {
|
|
21
|
+
ParticipantTokenCapability["PUBLISH"] = "PUBLISH";
|
|
22
|
+
ParticipantTokenCapability["SUBSCRIBE"] = "SUBSCRIBE";
|
|
23
|
+
})(ParticipantTokenCapability = exports.ParticipantTokenCapability || (exports.ParticipantTokenCapability = {}));
|
|
24
|
+
class PendingVerification extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "PendingVerification",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
this.name = "PendingVerification";
|
|
32
|
+
this.$fault = "client";
|
|
33
|
+
Object.setPrototypeOf(this, PendingVerification.prototype);
|
|
34
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.PendingVerification = PendingVerification;
|
|
38
|
+
class ResourceNotFoundException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "ResourceNotFoundException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
this.name = "ResourceNotFoundException";
|
|
46
|
+
this.$fault = "client";
|
|
47
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
48
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
52
|
+
class ServiceQuotaExceededException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ServiceQuotaExceededException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
this.name = "ServiceQuotaExceededException";
|
|
60
|
+
this.$fault = "client";
|
|
61
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
62
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
66
|
+
class ValidationException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
67
|
+
constructor(opts) {
|
|
68
|
+
super({
|
|
69
|
+
name: "ValidationException",
|
|
70
|
+
$fault: "client",
|
|
71
|
+
...opts,
|
|
72
|
+
});
|
|
73
|
+
this.name = "ValidationException";
|
|
74
|
+
this.$fault = "client";
|
|
75
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
76
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ValidationException = ValidationException;
|
|
80
|
+
class ConflictException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super({
|
|
83
|
+
name: "ConflictException",
|
|
84
|
+
$fault: "client",
|
|
85
|
+
...opts,
|
|
86
|
+
});
|
|
87
|
+
this.name = "ConflictException";
|
|
88
|
+
this.$fault = "client";
|
|
89
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
90
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.ConflictException = ConflictException;
|
|
94
|
+
class InternalServerException extends IVSRealTimeServiceException_1.IVSRealTimeServiceException {
|
|
95
|
+
constructor(opts) {
|
|
96
|
+
super({
|
|
97
|
+
name: "InternalServerException",
|
|
98
|
+
$fault: "server",
|
|
99
|
+
...opts,
|
|
100
|
+
});
|
|
101
|
+
this.name = "InternalServerException";
|
|
102
|
+
this.$fault = "server";
|
|
103
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
104
|
+
this.exceptionMessage = opts.exceptionMessage;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.InternalServerException = InternalServerException;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListStages = void 0;
|
|
4
|
+
const ListStagesCommand_1 = require("../commands/ListStagesCommand");
|
|
5
|
+
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;
|