@aws-sdk/client-kinesis-video-archived-media 3.312.0 → 3.316.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/KinesisVideoArchivedMedia.js +10 -84
- package/dist-cjs/protocols/Aws_restJson1.js +171 -202
- package/dist-es/KinesisVideoArchivedMedia.js +11 -85
- package/dist-es/protocols/Aws_restJson1.js +157 -188
- package/dist-types/KinesisVideoArchivedMedia.d.ts +13 -454
- package/dist-types/ts3.4/KinesisVideoArchivedMedia.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KinesisVideoArchivedMedia = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const GetClipCommand_1 = require("./commands/GetClipCommand");
|
|
5
6
|
const GetDASHStreamingSessionURLCommand_1 = require("./commands/GetDASHStreamingSessionURLCommand");
|
|
6
7
|
const GetHLSStreamingSessionURLCommand_1 = require("./commands/GetHLSStreamingSessionURLCommand");
|
|
@@ -8,90 +9,15 @@ const GetImagesCommand_1 = require("./commands/GetImagesCommand");
|
|
|
8
9
|
const GetMediaForFragmentListCommand_1 = require("./commands/GetMediaForFragmentListCommand");
|
|
9
10
|
const ListFragmentsCommand_1 = require("./commands/ListFragmentsCommand");
|
|
10
11
|
const KinesisVideoArchivedMediaClient_1 = require("./KinesisVideoArchivedMediaClient");
|
|
12
|
+
const commands = {
|
|
13
|
+
GetClipCommand: GetClipCommand_1.GetClipCommand,
|
|
14
|
+
GetDASHStreamingSessionURLCommand: GetDASHStreamingSessionURLCommand_1.GetDASHStreamingSessionURLCommand,
|
|
15
|
+
GetHLSStreamingSessionURLCommand: GetHLSStreamingSessionURLCommand_1.GetHLSStreamingSessionURLCommand,
|
|
16
|
+
GetImagesCommand: GetImagesCommand_1.GetImagesCommand,
|
|
17
|
+
GetMediaForFragmentListCommand: GetMediaForFragmentListCommand_1.GetMediaForFragmentListCommand,
|
|
18
|
+
ListFragmentsCommand: ListFragmentsCommand_1.ListFragmentsCommand,
|
|
19
|
+
};
|
|
11
20
|
class KinesisVideoArchivedMedia extends KinesisVideoArchivedMediaClient_1.KinesisVideoArchivedMediaClient {
|
|
12
|
-
getClip(args, optionsOrCb, cb) {
|
|
13
|
-
const command = new GetClipCommand_1.GetClipCommand(args);
|
|
14
|
-
if (typeof optionsOrCb === "function") {
|
|
15
|
-
this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof cb === "function") {
|
|
18
|
-
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
getDASHStreamingSessionURL(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new GetDASHStreamingSessionURLCommand_1.GetDASHStreamingSessionURLCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
getHLSStreamingSessionURL(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new GetHLSStreamingSessionURLCommand_1.GetHLSStreamingSessionURLCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
getImages(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new GetImagesCommand_1.GetImagesCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
getMediaForFragmentList(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new GetMediaForFragmentListCommand_1.GetMediaForFragmentListCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
listFragments(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new ListFragmentsCommand_1.ListFragmentsCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
21
|
}
|
|
97
22
|
exports.KinesisVideoArchivedMedia = KinesisVideoArchivedMedia;
|
|
23
|
+
(0, smithy_client_1.createAggregatedClient)(commands, KinesisVideoArchivedMedia);
|