@awarevue/api-types 1.0.59 → 1.0.60
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.
|
@@ -13,6 +13,44 @@ export declare const sSessionDescription: z.ZodObject<{
|
|
|
13
13
|
export type SessionDescription = z.infer<typeof sSessionDescription>;
|
|
14
14
|
export declare const sIceCandidate: z.ZodString;
|
|
15
15
|
export type IceCandidate = z.infer<typeof sIceCandidate>;
|
|
16
|
+
export declare const sWebRtcLiveServiceParams: z.ZodObject<{
|
|
17
|
+
deviceId: z.ZodString;
|
|
18
|
+
streamId: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
deviceId: string;
|
|
21
|
+
streamId: string;
|
|
22
|
+
}, {
|
|
23
|
+
deviceId: string;
|
|
24
|
+
streamId: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type WebRtcLiveServiceParams = z.infer<typeof sWebRtcLiveServiceParams>;
|
|
27
|
+
export declare const sWebRtcPlaybackParams: z.ZodObject<{
|
|
28
|
+
controllerId: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
controllerId: string;
|
|
31
|
+
}, {
|
|
32
|
+
controllerId: string;
|
|
33
|
+
}>;
|
|
34
|
+
export type WebRtcPlaybackParams = z.infer<typeof sWebRtcPlaybackParams>;
|
|
35
|
+
export declare const sWebRtcPlaybackTrackParams: z.ZodObject<{
|
|
36
|
+
controllerId: z.ZodString;
|
|
37
|
+
trackId: z.ZodString;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
controllerId: string;
|
|
40
|
+
trackId: string;
|
|
41
|
+
}, {
|
|
42
|
+
controllerId: string;
|
|
43
|
+
trackId: string;
|
|
44
|
+
}>;
|
|
45
|
+
export type WebRtcPlaybackTrackParams = z.infer<typeof sWebRtcPlaybackTrackParams>;
|
|
46
|
+
export declare const sWebRtcPlaybackControllerParams: z.ZodObject<{
|
|
47
|
+
controllerId: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
controllerId: string;
|
|
50
|
+
}, {
|
|
51
|
+
controllerId: string;
|
|
52
|
+
}>;
|
|
53
|
+
export type WebRtcPlaybackControllerParams = z.infer<typeof sWebRtcPlaybackControllerParams>;
|
|
16
54
|
export declare const sWebRtcServiceDescription: z.ZodUnion<[z.ZodObject<{
|
|
17
55
|
service: z.ZodLiteral<"live">;
|
|
18
56
|
serviceParams: z.ZodObject<{
|
|
@@ -56,6 +94,49 @@ export declare const sWebRtcServiceDescription: z.ZodUnion<[z.ZodObject<{
|
|
|
56
94
|
serviceParams: {
|
|
57
95
|
controllerId: string;
|
|
58
96
|
};
|
|
97
|
+
}>, z.ZodObject<{
|
|
98
|
+
service: z.ZodLiteral<"playback-track">;
|
|
99
|
+
serviceParams: z.ZodObject<{
|
|
100
|
+
controllerId: z.ZodString;
|
|
101
|
+
trackId: z.ZodString;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
controllerId: string;
|
|
104
|
+
trackId: string;
|
|
105
|
+
}, {
|
|
106
|
+
controllerId: string;
|
|
107
|
+
trackId: string;
|
|
108
|
+
}>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
service: "playback-track";
|
|
111
|
+
serviceParams: {
|
|
112
|
+
controllerId: string;
|
|
113
|
+
trackId: string;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
service: "playback-track";
|
|
117
|
+
serviceParams: {
|
|
118
|
+
controllerId: string;
|
|
119
|
+
trackId: string;
|
|
120
|
+
};
|
|
121
|
+
}>, z.ZodObject<{
|
|
122
|
+
service: z.ZodLiteral<"playback-controller">;
|
|
123
|
+
serviceParams: z.ZodObject<{
|
|
124
|
+
controllerId: z.ZodString;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
controllerId: string;
|
|
127
|
+
}, {
|
|
128
|
+
controllerId: string;
|
|
129
|
+
}>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
service: "playback-controller";
|
|
132
|
+
serviceParams: {
|
|
133
|
+
controllerId: string;
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
service: "playback-controller";
|
|
137
|
+
serviceParams: {
|
|
138
|
+
controllerId: string;
|
|
139
|
+
};
|
|
59
140
|
}>]>;
|
|
60
141
|
export type WebRtcServiceDescription = z.infer<typeof sWebRtcServiceDescription>;
|
|
61
142
|
export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
@@ -101,6 +182,49 @@ export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<[z.Z
|
|
|
101
182
|
serviceParams: {
|
|
102
183
|
controllerId: string;
|
|
103
184
|
};
|
|
185
|
+
}>, z.ZodObject<{
|
|
186
|
+
service: z.ZodLiteral<"playback-track">;
|
|
187
|
+
serviceParams: z.ZodObject<{
|
|
188
|
+
controllerId: z.ZodString;
|
|
189
|
+
trackId: z.ZodString;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
controllerId: string;
|
|
192
|
+
trackId: string;
|
|
193
|
+
}, {
|
|
194
|
+
controllerId: string;
|
|
195
|
+
trackId: string;
|
|
196
|
+
}>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
service: "playback-track";
|
|
199
|
+
serviceParams: {
|
|
200
|
+
controllerId: string;
|
|
201
|
+
trackId: string;
|
|
202
|
+
};
|
|
203
|
+
}, {
|
|
204
|
+
service: "playback-track";
|
|
205
|
+
serviceParams: {
|
|
206
|
+
controllerId: string;
|
|
207
|
+
trackId: string;
|
|
208
|
+
};
|
|
209
|
+
}>, z.ZodObject<{
|
|
210
|
+
service: z.ZodLiteral<"playback-controller">;
|
|
211
|
+
serviceParams: z.ZodObject<{
|
|
212
|
+
controllerId: z.ZodString;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
controllerId: string;
|
|
215
|
+
}, {
|
|
216
|
+
controllerId: string;
|
|
217
|
+
}>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
service: "playback-controller";
|
|
220
|
+
serviceParams: {
|
|
221
|
+
controllerId: string;
|
|
222
|
+
};
|
|
223
|
+
}, {
|
|
224
|
+
service: "playback-controller";
|
|
225
|
+
serviceParams: {
|
|
226
|
+
controllerId: string;
|
|
227
|
+
};
|
|
104
228
|
}>]>, z.ZodObject<{
|
|
105
229
|
from: z.ZodOptional<z.ZodString>;
|
|
106
230
|
requestId: z.ZodString;
|
|
@@ -3,26 +3,43 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isWebRtcWebSocketMessage = exports.sWebRtcErrorPayload = exports.sWebRtcReleaseSessionPayload = exports.sWebRtcIceCandidatePayload = exports.sWebRtcAnswerPayload = exports.sWebRtcOfferPayload = exports.sWebRtcSessionCreatedPayload = exports.sWebRtcNewSessionPayload = exports.sWebRtcServiceDescription = exports.sIceCandidate = exports.sSessionDescription = void 0;
|
|
6
|
+
exports.isWebRtcWebSocketMessage = exports.sWebRtcErrorPayload = exports.sWebRtcReleaseSessionPayload = exports.sWebRtcIceCandidatePayload = exports.sWebRtcAnswerPayload = exports.sWebRtcOfferPayload = exports.sWebRtcSessionCreatedPayload = exports.sWebRtcNewSessionPayload = exports.sWebRtcServiceDescription = exports.sWebRtcPlaybackControllerParams = exports.sWebRtcPlaybackTrackParams = exports.sWebRtcPlaybackParams = exports.sWebRtcLiveServiceParams = exports.sIceCandidate = exports.sSessionDescription = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.sSessionDescription = zod_1.default.object({
|
|
9
9
|
type: zod_1.default.string().nonempty(),
|
|
10
10
|
sdp: zod_1.default.string().nonempty(),
|
|
11
11
|
});
|
|
12
12
|
exports.sIceCandidate = zod_1.default.string().nonempty();
|
|
13
|
+
exports.sWebRtcLiveServiceParams = zod_1.default.object({
|
|
14
|
+
deviceId: zod_1.default.string().nonempty(),
|
|
15
|
+
streamId: zod_1.default.string().nonempty(),
|
|
16
|
+
});
|
|
17
|
+
exports.sWebRtcPlaybackParams = zod_1.default.object({
|
|
18
|
+
controllerId: zod_1.default.string().nonempty(),
|
|
19
|
+
});
|
|
20
|
+
exports.sWebRtcPlaybackTrackParams = zod_1.default.object({
|
|
21
|
+
controllerId: zod_1.default.string().nonempty(),
|
|
22
|
+
trackId: zod_1.default.string().nonempty(),
|
|
23
|
+
});
|
|
24
|
+
exports.sWebRtcPlaybackControllerParams = zod_1.default.object({
|
|
25
|
+
controllerId: zod_1.default.string().nonempty(),
|
|
26
|
+
});
|
|
13
27
|
exports.sWebRtcServiceDescription = zod_1.default.union([
|
|
14
28
|
zod_1.default.object({
|
|
15
29
|
service: zod_1.default.literal('live'),
|
|
16
|
-
serviceParams:
|
|
17
|
-
deviceId: zod_1.default.string().nonempty(),
|
|
18
|
-
streamId: zod_1.default.string().nonempty(),
|
|
19
|
-
}),
|
|
30
|
+
serviceParams: exports.sWebRtcLiveServiceParams,
|
|
20
31
|
}),
|
|
21
32
|
zod_1.default.object({
|
|
22
33
|
service: zod_1.default.literal('playback'),
|
|
23
|
-
serviceParams:
|
|
24
|
-
|
|
25
|
-
|
|
34
|
+
serviceParams: exports.sWebRtcPlaybackParams,
|
|
35
|
+
}),
|
|
36
|
+
zod_1.default.object({
|
|
37
|
+
service: zod_1.default.literal('playback-track'),
|
|
38
|
+
serviceParams: exports.sWebRtcPlaybackTrackParams,
|
|
39
|
+
}),
|
|
40
|
+
zod_1.default.object({
|
|
41
|
+
service: zod_1.default.literal('playback-controller'),
|
|
42
|
+
serviceParams: exports.sWebRtcPlaybackControllerParams,
|
|
26
43
|
}),
|
|
27
44
|
]);
|
|
28
45
|
exports.sWebRtcNewSessionPayload = exports.sWebRtcServiceDescription.and(zod_1.default.object({
|
package/dist/package.json
CHANGED