@aws-sdk/client-kinesis-video-media 3.987.0 → 3.988.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/dist-cjs/index.js +20 -197
- package/dist-cjs/models/KinesisVideoMediaServiceException.js +12 -0
- package/dist-cjs/models/errors.js +94 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +97 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +27 -21
- package/dist-types/schemas/schemas_0.d.ts +10 -3
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -3
- package/package.json +14 -14
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var KinesisVideoMediaServiceException = require('./models/KinesisVideoMediaServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,184 +113,6 @@ class KinesisVideoMediaClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class KinesisVideoMediaServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, KinesisVideoMediaServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class ClientLimitExceededException extends KinesisVideoMediaServiceException {
|
|
121
|
-
name = "ClientLimitExceededException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
Message;
|
|
124
|
-
constructor(opts) {
|
|
125
|
-
super({
|
|
126
|
-
name: "ClientLimitExceededException",
|
|
127
|
-
$fault: "client",
|
|
128
|
-
...opts,
|
|
129
|
-
});
|
|
130
|
-
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
131
|
-
this.Message = opts.Message;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
class ConnectionLimitExceededException extends KinesisVideoMediaServiceException {
|
|
135
|
-
name = "ConnectionLimitExceededException";
|
|
136
|
-
$fault = "client";
|
|
137
|
-
Message;
|
|
138
|
-
constructor(opts) {
|
|
139
|
-
super({
|
|
140
|
-
name: "ConnectionLimitExceededException",
|
|
141
|
-
$fault: "client",
|
|
142
|
-
...opts,
|
|
143
|
-
});
|
|
144
|
-
Object.setPrototypeOf(this, ConnectionLimitExceededException.prototype);
|
|
145
|
-
this.Message = opts.Message;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
class InvalidArgumentException extends KinesisVideoMediaServiceException {
|
|
149
|
-
name = "InvalidArgumentException";
|
|
150
|
-
$fault = "client";
|
|
151
|
-
Message;
|
|
152
|
-
constructor(opts) {
|
|
153
|
-
super({
|
|
154
|
-
name: "InvalidArgumentException",
|
|
155
|
-
$fault: "client",
|
|
156
|
-
...opts,
|
|
157
|
-
});
|
|
158
|
-
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
159
|
-
this.Message = opts.Message;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
class InvalidEndpointException extends KinesisVideoMediaServiceException {
|
|
163
|
-
name = "InvalidEndpointException";
|
|
164
|
-
$fault = "client";
|
|
165
|
-
Message;
|
|
166
|
-
constructor(opts) {
|
|
167
|
-
super({
|
|
168
|
-
name: "InvalidEndpointException",
|
|
169
|
-
$fault: "client",
|
|
170
|
-
...opts,
|
|
171
|
-
});
|
|
172
|
-
Object.setPrototypeOf(this, InvalidEndpointException.prototype);
|
|
173
|
-
this.Message = opts.Message;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
class NotAuthorizedException extends KinesisVideoMediaServiceException {
|
|
177
|
-
name = "NotAuthorizedException";
|
|
178
|
-
$fault = "client";
|
|
179
|
-
Message;
|
|
180
|
-
constructor(opts) {
|
|
181
|
-
super({
|
|
182
|
-
name: "NotAuthorizedException",
|
|
183
|
-
$fault: "client",
|
|
184
|
-
...opts,
|
|
185
|
-
});
|
|
186
|
-
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
187
|
-
this.Message = opts.Message;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
class ResourceNotFoundException extends KinesisVideoMediaServiceException {
|
|
191
|
-
name = "ResourceNotFoundException";
|
|
192
|
-
$fault = "client";
|
|
193
|
-
Message;
|
|
194
|
-
constructor(opts) {
|
|
195
|
-
super({
|
|
196
|
-
name: "ResourceNotFoundException",
|
|
197
|
-
$fault: "client",
|
|
198
|
-
...opts,
|
|
199
|
-
});
|
|
200
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
201
|
-
this.Message = opts.Message;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
const _AFN = "AfterFragmentNumber";
|
|
206
|
-
const _CLEE = "ClientLimitExceededException";
|
|
207
|
-
const _CLEEo = "ConnectionLimitExceededException";
|
|
208
|
-
const _CT = "ContentType";
|
|
209
|
-
const _CT_ = "Content-Type";
|
|
210
|
-
const _CTo = "ContinuationToken";
|
|
211
|
-
const _GM = "GetMedia";
|
|
212
|
-
const _GMI = "GetMediaInput";
|
|
213
|
-
const _GMO = "GetMediaOutput";
|
|
214
|
-
const _IAE = "InvalidArgumentException";
|
|
215
|
-
const _IEE = "InvalidEndpointException";
|
|
216
|
-
const _M = "Message";
|
|
217
|
-
const _NAE = "NotAuthorizedException";
|
|
218
|
-
const _P = "Payload";
|
|
219
|
-
const _RNFE = "ResourceNotFoundException";
|
|
220
|
-
const _SARN = "StreamARN";
|
|
221
|
-
const _SN = "StreamName";
|
|
222
|
-
const _SS = "StartSelector";
|
|
223
|
-
const _SST = "StartSelectorType";
|
|
224
|
-
const _ST = "StartTimestamp";
|
|
225
|
-
const _c = "client";
|
|
226
|
-
const _e = "error";
|
|
227
|
-
const _h = "http";
|
|
228
|
-
const _hE = "httpError";
|
|
229
|
-
const _hH = "httpHeader";
|
|
230
|
-
const _s = "streaming";
|
|
231
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideomedia";
|
|
232
|
-
const n0 = "com.amazonaws.kinesisvideomedia";
|
|
233
|
-
var Payload = [0, n0, _P, { [_s]: 1 }, 42];
|
|
234
|
-
var ClientLimitExceededException$ = [-3, n0, _CLEE,
|
|
235
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
236
|
-
[_M],
|
|
237
|
-
[0]
|
|
238
|
-
];
|
|
239
|
-
schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException$, ClientLimitExceededException);
|
|
240
|
-
var ConnectionLimitExceededException$ = [-3, n0, _CLEEo,
|
|
241
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
242
|
-
[_M],
|
|
243
|
-
[0]
|
|
244
|
-
];
|
|
245
|
-
schema.TypeRegistry.for(n0).registerError(ConnectionLimitExceededException$, ConnectionLimitExceededException);
|
|
246
|
-
var GetMediaInput$ = [3, n0, _GMI,
|
|
247
|
-
0,
|
|
248
|
-
[_SS, _SN, _SARN],
|
|
249
|
-
[() => StartSelector$, 0, 0], 1
|
|
250
|
-
];
|
|
251
|
-
var GetMediaOutput$ = [3, n0, _GMO,
|
|
252
|
-
0,
|
|
253
|
-
[_CT, _P],
|
|
254
|
-
[[0, { [_hH]: _CT_ }], [() => Payload, 16]]
|
|
255
|
-
];
|
|
256
|
-
var InvalidArgumentException$ = [-3, n0, _IAE,
|
|
257
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
258
|
-
[_M],
|
|
259
|
-
[0]
|
|
260
|
-
];
|
|
261
|
-
schema.TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
|
|
262
|
-
var InvalidEndpointException$ = [-3, n0, _IEE,
|
|
263
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
264
|
-
[_M],
|
|
265
|
-
[0]
|
|
266
|
-
];
|
|
267
|
-
schema.TypeRegistry.for(n0).registerError(InvalidEndpointException$, InvalidEndpointException);
|
|
268
|
-
var NotAuthorizedException$ = [-3, n0, _NAE,
|
|
269
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
270
|
-
[_M],
|
|
271
|
-
[0]
|
|
272
|
-
];
|
|
273
|
-
schema.TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
|
|
274
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
275
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
276
|
-
[_M],
|
|
277
|
-
[0]
|
|
278
|
-
];
|
|
279
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
280
|
-
var StartSelector$ = [3, n0, _SS,
|
|
281
|
-
0,
|
|
282
|
-
[_SST, _AFN, _ST, _CTo],
|
|
283
|
-
[0, 0, 4, 0], 1
|
|
284
|
-
];
|
|
285
|
-
var KinesisVideoMediaServiceException$ = [-3, _sm, "KinesisVideoMediaServiceException", 0, [], []];
|
|
286
|
-
schema.TypeRegistry.for(_sm).registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
|
|
287
|
-
var GetMedia$ = [9, n0, _GM,
|
|
288
|
-
{ [_h]: ["POST", "/getMedia", 200] }, () => GetMediaInput$, () => GetMediaOutput$
|
|
289
|
-
];
|
|
290
|
-
|
|
291
116
|
class GetMediaCommand extends smithyClient.Command
|
|
292
117
|
.classBuilder()
|
|
293
118
|
.ep(commonParams)
|
|
@@ -296,7 +121,7 @@ class GetMediaCommand extends smithyClient.Command
|
|
|
296
121
|
})
|
|
297
122
|
.s("AWSAcuityInletService", "GetMedia", {})
|
|
298
123
|
.n("KinesisVideoMediaClient", "GetMediaCommand")
|
|
299
|
-
.sc(GetMedia$)
|
|
124
|
+
.sc(schemas_0.GetMedia$)
|
|
300
125
|
.build() {
|
|
301
126
|
}
|
|
302
127
|
|
|
@@ -324,25 +149,23 @@ Object.defineProperty(exports, "__Client", {
|
|
|
324
149
|
enumerable: true,
|
|
325
150
|
get: function () { return smithyClient.Client; }
|
|
326
151
|
});
|
|
327
|
-
exports
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
exports.GetMedia$ = GetMedia$;
|
|
152
|
+
Object.defineProperty(exports, "KinesisVideoMediaServiceException", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return KinesisVideoMediaServiceException.KinesisVideoMediaServiceException; }
|
|
155
|
+
});
|
|
332
156
|
exports.GetMediaCommand = GetMediaCommand;
|
|
333
|
-
exports.GetMediaInput$ = GetMediaInput$;
|
|
334
|
-
exports.GetMediaOutput$ = GetMediaOutput$;
|
|
335
|
-
exports.InvalidArgumentException = InvalidArgumentException;
|
|
336
|
-
exports.InvalidArgumentException$ = InvalidArgumentException$;
|
|
337
|
-
exports.InvalidEndpointException = InvalidEndpointException;
|
|
338
|
-
exports.InvalidEndpointException$ = InvalidEndpointException$;
|
|
339
157
|
exports.KinesisVideoMedia = KinesisVideoMedia;
|
|
340
158
|
exports.KinesisVideoMediaClient = KinesisVideoMediaClient;
|
|
341
|
-
exports.KinesisVideoMediaServiceException = KinesisVideoMediaServiceException;
|
|
342
|
-
exports.KinesisVideoMediaServiceException$ = KinesisVideoMediaServiceException$;
|
|
343
|
-
exports.NotAuthorizedException = NotAuthorizedException;
|
|
344
|
-
exports.NotAuthorizedException$ = NotAuthorizedException$;
|
|
345
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
346
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
347
|
-
exports.StartSelector$ = StartSelector$;
|
|
348
159
|
exports.StartSelectorType = StartSelectorType;
|
|
160
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
161
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return schemas_0[k]; }
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
Object.keys(errors).forEach(function (k) {
|
|
167
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return errors[k]; }
|
|
170
|
+
});
|
|
171
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KinesisVideoMediaServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class KinesisVideoMediaServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, KinesisVideoMediaServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.KinesisVideoMediaServiceException = KinesisVideoMediaServiceException;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidEndpointException = exports.InvalidArgumentException = exports.ConnectionLimitExceededException = exports.ClientLimitExceededException = void 0;
|
|
4
|
+
const KinesisVideoMediaServiceException_1 = require("./KinesisVideoMediaServiceException");
|
|
5
|
+
class ClientLimitExceededException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
6
|
+
name = "ClientLimitExceededException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "ClientLimitExceededException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ClientLimitExceededException = ClientLimitExceededException;
|
|
20
|
+
class ConnectionLimitExceededException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
21
|
+
name = "ConnectionLimitExceededException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConnectionLimitExceededException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConnectionLimitExceededException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConnectionLimitExceededException = ConnectionLimitExceededException;
|
|
35
|
+
class InvalidArgumentException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
36
|
+
name = "InvalidArgumentException";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
Message;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "InvalidArgumentException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
46
|
+
this.Message = opts.Message;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.InvalidArgumentException = InvalidArgumentException;
|
|
50
|
+
class InvalidEndpointException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
51
|
+
name = "InvalidEndpointException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InvalidEndpointException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, InvalidEndpointException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.InvalidEndpointException = InvalidEndpointException;
|
|
65
|
+
class NotAuthorizedException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
66
|
+
name = "NotAuthorizedException";
|
|
67
|
+
$fault = "client";
|
|
68
|
+
Message;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "NotAuthorizedException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
76
|
+
this.Message = opts.Message;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.NotAuthorizedException = NotAuthorizedException;
|
|
80
|
+
class ResourceNotFoundException extends KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException {
|
|
81
|
+
name = "ResourceNotFoundException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
Message;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ResourceNotFoundException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
|
|
|
10
10
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
11
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
12
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
14
|
const getRuntimeConfig = (config) => {
|
|
14
15
|
return {
|
|
15
16
|
apiVersion: "2017-09-30",
|
|
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
31
32
|
protocolSettings: config?.protocolSettings ?? {
|
|
32
33
|
defaultNamespace: "com.amazonaws.kinesisvideomedia",
|
|
34
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
33
35
|
version: "2017-09-30",
|
|
34
36
|
serviceTarget: "AWSAcuityInletService",
|
|
35
37
|
},
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMedia$ = exports.StartSelector$ = exports.GetMediaOutput$ = exports.GetMediaInput$ = exports.errorTypeRegistries = exports.ResourceNotFoundException$ = exports.NotAuthorizedException$ = exports.InvalidEndpointException$ = exports.InvalidArgumentException$ = exports.ConnectionLimitExceededException$ = exports.ClientLimitExceededException$ = exports.KinesisVideoMediaServiceException$ = void 0;
|
|
4
|
+
const _AFN = "AfterFragmentNumber";
|
|
5
|
+
const _CLEE = "ClientLimitExceededException";
|
|
6
|
+
const _CLEEo = "ConnectionLimitExceededException";
|
|
7
|
+
const _CT = "ContentType";
|
|
8
|
+
const _CT_ = "Content-Type";
|
|
9
|
+
const _CTo = "ContinuationToken";
|
|
10
|
+
const _GM = "GetMedia";
|
|
11
|
+
const _GMI = "GetMediaInput";
|
|
12
|
+
const _GMO = "GetMediaOutput";
|
|
13
|
+
const _IAE = "InvalidArgumentException";
|
|
14
|
+
const _IEE = "InvalidEndpointException";
|
|
15
|
+
const _M = "Message";
|
|
16
|
+
const _NAE = "NotAuthorizedException";
|
|
17
|
+
const _P = "Payload";
|
|
18
|
+
const _RNFE = "ResourceNotFoundException";
|
|
19
|
+
const _SARN = "StreamARN";
|
|
20
|
+
const _SN = "StreamName";
|
|
21
|
+
const _SS = "StartSelector";
|
|
22
|
+
const _SST = "StartSelectorType";
|
|
23
|
+
const _ST = "StartTimestamp";
|
|
24
|
+
const _c = "client";
|
|
25
|
+
const _e = "error";
|
|
26
|
+
const _h = "http";
|
|
27
|
+
const _hE = "httpError";
|
|
28
|
+
const _hH = "httpHeader";
|
|
29
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideomedia";
|
|
30
|
+
const _st = "streaming";
|
|
31
|
+
const n0 = "com.amazonaws.kinesisvideomedia";
|
|
32
|
+
const schema_1 = require("@smithy/core/schema");
|
|
33
|
+
const errors_1 = require("../models/errors");
|
|
34
|
+
const KinesisVideoMediaServiceException_1 = require("../models/KinesisVideoMediaServiceException");
|
|
35
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
36
|
+
exports.KinesisVideoMediaServiceException$ = [-3, _s, "KinesisVideoMediaServiceException", 0, [], []];
|
|
37
|
+
_s_registry.registerError(exports.KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException_1.KinesisVideoMediaServiceException);
|
|
38
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
39
|
+
exports.ClientLimitExceededException$ = [-3, n0, _CLEE,
|
|
40
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
41
|
+
[_M],
|
|
42
|
+
[0]
|
|
43
|
+
];
|
|
44
|
+
n0_registry.registerError(exports.ClientLimitExceededException$, errors_1.ClientLimitExceededException);
|
|
45
|
+
exports.ConnectionLimitExceededException$ = [-3, n0, _CLEEo,
|
|
46
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
47
|
+
[_M],
|
|
48
|
+
[0]
|
|
49
|
+
];
|
|
50
|
+
n0_registry.registerError(exports.ConnectionLimitExceededException$, errors_1.ConnectionLimitExceededException);
|
|
51
|
+
exports.InvalidArgumentException$ = [-3, n0, _IAE,
|
|
52
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
53
|
+
[_M],
|
|
54
|
+
[0]
|
|
55
|
+
];
|
|
56
|
+
n0_registry.registerError(exports.InvalidArgumentException$, errors_1.InvalidArgumentException);
|
|
57
|
+
exports.InvalidEndpointException$ = [-3, n0, _IEE,
|
|
58
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
59
|
+
[_M],
|
|
60
|
+
[0]
|
|
61
|
+
];
|
|
62
|
+
n0_registry.registerError(exports.InvalidEndpointException$, errors_1.InvalidEndpointException);
|
|
63
|
+
exports.NotAuthorizedException$ = [-3, n0, _NAE,
|
|
64
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
65
|
+
[_M],
|
|
66
|
+
[0]
|
|
67
|
+
];
|
|
68
|
+
n0_registry.registerError(exports.NotAuthorizedException$, errors_1.NotAuthorizedException);
|
|
69
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
70
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
71
|
+
[_M],
|
|
72
|
+
[0]
|
|
73
|
+
];
|
|
74
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
75
|
+
exports.errorTypeRegistries = [
|
|
76
|
+
_s_registry,
|
|
77
|
+
n0_registry,
|
|
78
|
+
];
|
|
79
|
+
var Payload = [0, n0, _P, { [_st]: 1 }, 42];
|
|
80
|
+
exports.GetMediaInput$ = [3, n0, _GMI,
|
|
81
|
+
0,
|
|
82
|
+
[_SS, _SN, _SARN],
|
|
83
|
+
[() => exports.StartSelector$, 0, 0], 1
|
|
84
|
+
];
|
|
85
|
+
exports.GetMediaOutput$ = [3, n0, _GMO,
|
|
86
|
+
0,
|
|
87
|
+
[_CT, _P],
|
|
88
|
+
[[0, { [_hH]: _CT_ }], [() => Payload, 16]]
|
|
89
|
+
];
|
|
90
|
+
exports.StartSelector$ = [3, n0, _SS,
|
|
91
|
+
0,
|
|
92
|
+
[_SST, _AFN, _ST, _CTo],
|
|
93
|
+
[0, 0, 4, 0], 1
|
|
94
|
+
];
|
|
95
|
+
exports.GetMedia$ = [9, n0, _GM,
|
|
96
|
+
{ [_h]: ["POST", "/getMedia", 200] }, () => exports.GetMediaInput$, () => exports.GetMediaOutput$
|
|
97
|
+
];
|
|
@@ -7,6 +7,7 @@ import { sdkStreamMixin } from "@smithy/util-stream";
|
|
|
7
7
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
8
|
import { defaultKinesisVideoMediaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
11
|
export const getRuntimeConfig = (config) => {
|
|
11
12
|
return {
|
|
12
13
|
apiVersion: "2017-09-30",
|
|
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
27
28
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
28
29
|
protocolSettings: config?.protocolSettings ?? {
|
|
29
30
|
defaultNamespace: "com.amazonaws.kinesisvideomedia",
|
|
31
|
+
errorTypeRegistries,
|
|
30
32
|
version: "2017-09-30",
|
|
31
33
|
serviceTarget: "AWSAcuityInletService",
|
|
32
34
|
},
|
|
@@ -23,66 +23,72 @@ const _e = "error";
|
|
|
23
23
|
const _h = "http";
|
|
24
24
|
const _hE = "httpError";
|
|
25
25
|
const _hH = "httpHeader";
|
|
26
|
-
const _s = "
|
|
27
|
-
const
|
|
26
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideomedia";
|
|
27
|
+
const _st = "streaming";
|
|
28
28
|
const n0 = "com.amazonaws.kinesisvideomedia";
|
|
29
29
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
30
30
|
import { ClientLimitExceededException, ConnectionLimitExceededException, InvalidArgumentException, InvalidEndpointException, NotAuthorizedException, ResourceNotFoundException, } from "../models/errors";
|
|
31
31
|
import { KinesisVideoMediaServiceException } from "../models/KinesisVideoMediaServiceException";
|
|
32
|
-
|
|
32
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
33
|
+
export var KinesisVideoMediaServiceException$ = [-3, _s, "KinesisVideoMediaServiceException", 0, [], []];
|
|
34
|
+
_s_registry.registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
|
|
35
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
33
36
|
export var ClientLimitExceededException$ = [-3, n0, _CLEE,
|
|
34
37
|
{ [_e]: _c, [_hE]: 400 },
|
|
35
38
|
[_M],
|
|
36
39
|
[0]
|
|
37
40
|
];
|
|
38
|
-
|
|
41
|
+
n0_registry.registerError(ClientLimitExceededException$, ClientLimitExceededException);
|
|
39
42
|
export var ConnectionLimitExceededException$ = [-3, n0, _CLEEo,
|
|
40
43
|
{ [_e]: _c, [_hE]: 400 },
|
|
41
44
|
[_M],
|
|
42
45
|
[0]
|
|
43
46
|
];
|
|
44
|
-
|
|
45
|
-
export var GetMediaInput$ = [3, n0, _GMI,
|
|
46
|
-
0,
|
|
47
|
-
[_SS, _SN, _SARN],
|
|
48
|
-
[() => StartSelector$, 0, 0], 1
|
|
49
|
-
];
|
|
50
|
-
export var GetMediaOutput$ = [3, n0, _GMO,
|
|
51
|
-
0,
|
|
52
|
-
[_CT, _P],
|
|
53
|
-
[[0, { [_hH]: _CT_ }], [() => Payload, 16]]
|
|
54
|
-
];
|
|
47
|
+
n0_registry.registerError(ConnectionLimitExceededException$, ConnectionLimitExceededException);
|
|
55
48
|
export var InvalidArgumentException$ = [-3, n0, _IAE,
|
|
56
49
|
{ [_e]: _c, [_hE]: 400 },
|
|
57
50
|
[_M],
|
|
58
51
|
[0]
|
|
59
52
|
];
|
|
60
|
-
|
|
53
|
+
n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
|
|
61
54
|
export var InvalidEndpointException$ = [-3, n0, _IEE,
|
|
62
55
|
{ [_e]: _c, [_hE]: 400 },
|
|
63
56
|
[_M],
|
|
64
57
|
[0]
|
|
65
58
|
];
|
|
66
|
-
|
|
59
|
+
n0_registry.registerError(InvalidEndpointException$, InvalidEndpointException);
|
|
67
60
|
export var NotAuthorizedException$ = [-3, n0, _NAE,
|
|
68
61
|
{ [_e]: _c, [_hE]: 401 },
|
|
69
62
|
[_M],
|
|
70
63
|
[0]
|
|
71
64
|
];
|
|
72
|
-
|
|
65
|
+
n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
|
|
73
66
|
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
74
67
|
{ [_e]: _c, [_hE]: 404 },
|
|
75
68
|
[_M],
|
|
76
69
|
[0]
|
|
77
70
|
];
|
|
78
|
-
|
|
71
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
72
|
+
export const errorTypeRegistries = [
|
|
73
|
+
_s_registry,
|
|
74
|
+
n0_registry,
|
|
75
|
+
];
|
|
76
|
+
var Payload = [0, n0, _P, { [_st]: 1 }, 42];
|
|
77
|
+
export var GetMediaInput$ = [3, n0, _GMI,
|
|
78
|
+
0,
|
|
79
|
+
[_SS, _SN, _SARN],
|
|
80
|
+
[() => StartSelector$, 0, 0], 1
|
|
81
|
+
];
|
|
82
|
+
export var GetMediaOutput$ = [3, n0, _GMO,
|
|
83
|
+
0,
|
|
84
|
+
[_CT, _P],
|
|
85
|
+
[[0, { [_hH]: _CT_ }], [() => Payload, 16]]
|
|
86
|
+
];
|
|
79
87
|
export var StartSelector$ = [3, n0, _SS,
|
|
80
88
|
0,
|
|
81
89
|
[_SST, _AFN, _ST, _CTo],
|
|
82
90
|
[0, 0, 4, 0], 1
|
|
83
91
|
];
|
|
84
|
-
export var KinesisVideoMediaServiceException$ = [-3, _sm, "KinesisVideoMediaServiceException", 0, [], []];
|
|
85
|
-
TypeRegistry.for(_sm).registerError(KinesisVideoMediaServiceException$, KinesisVideoMediaServiceException);
|
|
86
92
|
export var GetMedia$ = [9, n0, _GM,
|
|
87
93
|
{ [_h]: ["POST", "/getMedia", 200] }, () => GetMediaInput$, () => GetMediaOutput$
|
|
88
94
|
];
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var KinesisVideoMediaServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var ClientLimitExceededException$: StaticErrorSchema;
|
|
3
5
|
export declare var ConnectionLimitExceededException$: StaticErrorSchema;
|
|
4
|
-
export declare var GetMediaInput$: StaticStructureSchema;
|
|
5
|
-
export declare var GetMediaOutput$: StaticStructureSchema;
|
|
6
6
|
export declare var InvalidArgumentException$: StaticErrorSchema;
|
|
7
7
|
export declare var InvalidEndpointException$: StaticErrorSchema;
|
|
8
8
|
export declare var NotAuthorizedException$: StaticErrorSchema;
|
|
9
9
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
10
|
+
/**
|
|
11
|
+
* TypeRegistry instances containing modeled errors.
|
|
12
|
+
* @internal
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
16
|
+
export declare var GetMediaInput$: StaticStructureSchema;
|
|
17
|
+
export declare var GetMediaOutput$: StaticStructureSchema;
|
|
10
18
|
export declare var StartSelector$: StaticStructureSchema;
|
|
11
|
-
export declare var KinesisVideoMediaServiceException$: StaticErrorSchema;
|
|
12
19
|
export declare var GetMedia$: StaticOperationSchema;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var KinesisVideoMediaServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var ClientLimitExceededException$: StaticErrorSchema;
|
|
7
9
|
export declare var ConnectionLimitExceededException$: StaticErrorSchema;
|
|
8
|
-
export declare var GetMediaInput$: StaticStructureSchema;
|
|
9
|
-
export declare var GetMediaOutput$: StaticStructureSchema;
|
|
10
10
|
export declare var InvalidArgumentException$: StaticErrorSchema;
|
|
11
11
|
export declare var InvalidEndpointException$: StaticErrorSchema;
|
|
12
12
|
export declare var NotAuthorizedException$: StaticErrorSchema;
|
|
13
13
|
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
15
|
+
export declare var GetMediaInput$: StaticStructureSchema;
|
|
16
|
+
export declare var GetMediaOutput$: StaticStructureSchema;
|
|
14
17
|
export declare var StartSelector$: StaticStructureSchema;
|
|
15
|
-
export declare var KinesisVideoMediaServiceException$: StaticErrorSchema;
|
|
16
18
|
export declare var GetMedia$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-video-media",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Video Media Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-media",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.8",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|
|
59
|
-
"@smithy/util-stream": "^4.5.
|
|
59
|
+
"@smithy/util-stream": "^4.5.12",
|
|
60
60
|
"@smithy/util-utf8": "^4.2.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|