@arcware-cloud/pixelstreaming-websdk 1.3.39 → 1.4.4
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.md +0 -2
- package/README.md +0 -2
- package/core.cjs +19343 -0
- package/core.mjs +1 -0
- package/core.umd.cjs +19352 -0
- package/index.cjs +3710 -7812
- package/index.mjs +1 -32858
- package/index.umd.cjs +3710 -7812
- package/package.json +13 -5
- package/report.html +39 -0
- package/stats.json +118354 -0
- package/types/{lib → core}/ArcwareConfig.d.ts +10 -4
- package/types/core/ArcwarePixelStreaming.d.ts +268 -0
- package/types/core/CoreSetup.d.ts +10 -0
- package/types/core/Messages/ErrorMessage.d.ts +11 -0
- package/types/core/Messages/LoveLetter.d.ts +11 -0
- package/types/core/Messages/Ping.d.ts +10 -0
- package/types/core/Messages/Queue.d.ts +23 -0
- package/types/core/Messages/Render.d.ts +8 -0
- package/types/core/Messages/SessionId.d.ts +9 -0
- package/types/core/Messages/Stats.d.ts +34 -0
- package/types/core/Messages/StreamInfo.d.ts +30 -0
- package/types/core/Messages/Version.d.ts +9 -0
- package/types/core/Messages/WebSdkSettings.d.ts +31 -0
- package/types/core/Messages/index.d.ts +17 -0
- package/types/core/domain/ArcwareSettingsSchema.d.ts +61 -0
- package/types/core/domain/CustomizationSchema.d.ts +15 -0
- package/types/core/domain/Session.d.ts +31 -0
- package/types/core/domain/Stats.d.ts +7 -0
- package/types/core/features/ArcwareFileTransferUtil.d.ts +8 -0
- package/types/{lib → core}/features/DiagnosticsCollector.d.ts +1 -1
- package/types/core/features/IWhiteLabel.d.ts +16 -0
- package/types/{lib → core}/features/whiteLabelling.d.ts +2 -3
- package/types/core.d.ts +5 -0
- package/types/index.d.ts +7 -3
- package/types/{lib → ui}/ArcwareApplication.d.ts +41 -8
- package/types/{lib → ui}/ArcwareInit.d.ts +3 -3
- package/types/{lib/ui → ui/components}/AudioButton/index.d.ts +1 -1
- package/types/{lib/ui → ui/components}/MicButton/index.d.ts +1 -1
- package/types/{lib/ui → ui/components}/MicrophoneOverlay/index.d.ts +1 -1
- package/types/{lib/ui → ui/components}/StopButton/index.d.ts +1 -1
- package/types/{lib → ui}/styles/ArcwarePixelStreamingApplicationStyles.d.ts +45 -46
- package/types/lib/ArcwarePixelStreaming.d.ts +0 -140
- package/types/lib/MessageTypes.d.ts +0 -4
- package/types/lib/domain/ArcwareSettingsSchema.d.ts +0 -273
- package/types/lib/domain/Session.d.ts +0 -29
- package/types/lib/domain/Stats.d.ts +0 -36
- package/types/lib/features/ArcwareFileTransferUtil.d.ts +0 -13
- package/types/lib/features/ZWhiteLabel.d.ts +0 -31
- package/types/lib/index.d.ts +0 -6
- package/types/shared/index.d.ts +0 -1
- package/types/shared/lib/Messages/ErrorMessage.d.ts +0 -18
- package/types/shared/lib/Messages/LoveLetter.d.ts +0 -18
- package/types/shared/lib/Messages/Ping.d.ts +0 -15
- package/types/shared/lib/Messages/Queue.d.ts +0 -58
- package/types/shared/lib/Messages/Render.d.ts +0 -9
- package/types/shared/lib/Messages/SessionId.d.ts +0 -12
- package/types/shared/lib/Messages/Stats.d.ts +0 -174
- package/types/shared/lib/Messages/StreamInfo.d.ts +0 -338
- package/types/shared/lib/Messages/Version.d.ts +0 -12
- package/types/shared/lib/Messages/WebSdkSettings.d.ts +0 -96
- package/types/shared/lib/Messages/index.d.ts +0 -185
- package/types/shared/lib/index.d.ts +0 -1
- /package/types/{lib → core}/ApplyUrlHack.d.ts +0 -0
- /package/types/{lib → core}/domain/EventHandler.d.ts +0 -0
- /package/types/{lib → core}/domain/debounce.d.ts +0 -0
- /package/types/{lib → core}/features/ArcwareEventUtil.d.ts +0 -0
- /package/types/{lib → core}/features/common.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/ArcwareLogoLoader/index.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/AudioButton/AudioIcon.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/LoveLetters/index.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/MicIcon/index.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/PlayIcon/index.d.ts +0 -0
- /package/types/{lib/ui → ui/components}/StopIcon/index.d.ts +0 -0
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Arcware Settings. */
|
|
3
|
-
export declare const ArcwareSettingsSchema: z.ZodObject<{
|
|
4
|
-
/** Overwrites the Session-Tool and uses the provided session instead. */
|
|
5
|
-
session: z.ZodOptional<z.ZodString>;
|
|
6
|
-
/** Can be used to be added to the request in order to verify access to private projects.
|
|
7
|
-
* For internal use only. => Preview page.
|
|
8
|
-
*/
|
|
9
|
-
token: z.ZodOptional<z.ZodString>;
|
|
10
|
-
/** @deprecated in there for legacy use. Can only be used when token is provided. */
|
|
11
|
-
bypass: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
/** Handler for server side error messages. */
|
|
13
|
-
errorHandler: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<"error">;
|
|
15
|
-
code: z.ZodNumber;
|
|
16
|
-
reason: z.ZodString;
|
|
17
|
-
verbosity: z.ZodNumber;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
type?: "error";
|
|
20
|
-
code?: number;
|
|
21
|
-
reason?: string;
|
|
22
|
-
verbosity?: number;
|
|
23
|
-
}, {
|
|
24
|
-
type?: "error";
|
|
25
|
-
code?: number;
|
|
26
|
-
reason?: string;
|
|
27
|
-
verbosity?: number;
|
|
28
|
-
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
29
|
-
/** Handler for queue events. */
|
|
30
|
-
queueHandler: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
31
|
-
type: z.ZodLiteral<"queue">;
|
|
32
|
-
queue: z.ZodObject<{
|
|
33
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
queueLength: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
waited: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
estimatedWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
37
|
-
averageWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
-
valueType: z.ZodEnum<["milliseconds", "seconds", "minutes", "hours", "days"]>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
index?: number;
|
|
41
|
-
queueLength?: number;
|
|
42
|
-
waited?: number;
|
|
43
|
-
estimatedWaitTime?: number;
|
|
44
|
-
averageWaitTime?: number;
|
|
45
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
46
|
-
}, {
|
|
47
|
-
index?: number;
|
|
48
|
-
queueLength?: number;
|
|
49
|
-
waited?: number;
|
|
50
|
-
estimatedWaitTime?: number;
|
|
51
|
-
averageWaitTime?: number;
|
|
52
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
53
|
-
}>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
type?: "queue";
|
|
56
|
-
queue?: {
|
|
57
|
-
index?: number;
|
|
58
|
-
queueLength?: number;
|
|
59
|
-
waited?: number;
|
|
60
|
-
estimatedWaitTime?: number;
|
|
61
|
-
averageWaitTime?: number;
|
|
62
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
63
|
-
};
|
|
64
|
-
}, {
|
|
65
|
-
type?: "queue";
|
|
66
|
-
queue?: {
|
|
67
|
-
index?: number;
|
|
68
|
-
queueLength?: number;
|
|
69
|
-
waited?: number;
|
|
70
|
-
estimatedWaitTime?: number;
|
|
71
|
-
averageWaitTime?: number;
|
|
72
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
73
|
-
};
|
|
74
|
-
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
75
|
-
/** Handler for sessionId message. */
|
|
76
|
-
sessionIdHandler: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
|
|
77
|
-
/** Handler for love letters.
|
|
78
|
-
* "LoveLetters" are send from backend to the SDK to state what phase the connection currently is in. */
|
|
79
|
-
loveLetterHandler: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
80
|
-
type: z.ZodLiteral<"letter">;
|
|
81
|
-
reason: z.ZodString;
|
|
82
|
-
code: z.ZodNumber;
|
|
83
|
-
verbosity: z.ZodNumber;
|
|
84
|
-
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
type?: "letter";
|
|
86
|
-
code?: number;
|
|
87
|
-
reason?: string;
|
|
88
|
-
verbosity?: number;
|
|
89
|
-
}, {
|
|
90
|
-
type?: "letter";
|
|
91
|
-
code?: number;
|
|
92
|
-
reason?: string;
|
|
93
|
-
verbosity?: number;
|
|
94
|
-
}>], z.ZodUnknown>, z.ZodVoid>>;
|
|
95
|
-
/** Show or hide the fullscreen button. */
|
|
96
|
-
fullscreenButton: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
/** Show or hide the settings button. */
|
|
98
|
-
settingsButton: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
/** Show or hide the info button. */
|
|
100
|
-
infoButton: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
/** Show or hide the audio button. */
|
|
102
|
-
audioButton: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
/** Show or hide the microphone button. */
|
|
104
|
-
micButton: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
/** Show or hide the microphone button. */
|
|
106
|
-
stopButton: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
-
/** Show or hide the connectionStrengthIcon button. */
|
|
108
|
-
connectionStrengthIcon: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
-
/** ShareId, used for sharing your project.
|
|
110
|
-
* Using ArcwareInit will set this required property for you. */
|
|
111
|
-
shareId: z.ZodOptional<z.ZodString>;
|
|
112
|
-
/** Id of your project, only required if your shareId refers to multiple projects.
|
|
113
|
-
* Using ArcwareInit will set this required property for you. */
|
|
114
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
115
|
-
/** Enable/Disable LoveLetter logging to the console. */
|
|
116
|
-
loveLetterLogging: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
-
/** Width with which instance should be started */
|
|
118
|
-
startWidth: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
/** Height with which instance should be started */
|
|
120
|
-
startHeight: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
/** Zoom functionality */
|
|
122
|
-
orientationZoom: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
landscape: z.ZodNumber;
|
|
124
|
-
portrait: z.ZodNumber;
|
|
125
|
-
}, "strict", z.ZodTypeAny, {
|
|
126
|
-
landscape?: number;
|
|
127
|
-
portrait?: number;
|
|
128
|
-
}, {
|
|
129
|
-
landscape?: number;
|
|
130
|
-
portrait?: number;
|
|
131
|
-
}>>;
|
|
132
|
-
/** Loader customization */
|
|
133
|
-
whiteLabelling: z.ZodOptional<z.ZodObject<{
|
|
134
|
-
loadingIconUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
135
|
-
loadingIconFadeMs: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
splashScreenUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
137
|
-
splashScreenMode: z.ZodOptional<z.ZodEnum<["contain", "cover", "stretch", "repeat"]>>;
|
|
138
|
-
splashScreenPosition: z.ZodOptional<z.ZodString>;
|
|
139
|
-
splashScreenBgColor: z.ZodOptional<z.ZodString>;
|
|
140
|
-
hideLoveLetters: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
hideAfkOverlay: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
-
}, "strict", z.ZodTypeAny, {
|
|
143
|
-
loadingIconUrl?: string;
|
|
144
|
-
loadingIconFadeMs?: number;
|
|
145
|
-
splashScreenUrl?: string;
|
|
146
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
147
|
-
splashScreenPosition?: string;
|
|
148
|
-
splashScreenBgColor?: string;
|
|
149
|
-
hideLoveLetters?: boolean;
|
|
150
|
-
hideAfkOverlay?: boolean;
|
|
151
|
-
}, {
|
|
152
|
-
loadingIconUrl?: string;
|
|
153
|
-
loadingIconFadeMs?: number;
|
|
154
|
-
splashScreenUrl?: string;
|
|
155
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
156
|
-
splashScreenPosition?: string;
|
|
157
|
-
splashScreenBgColor?: string;
|
|
158
|
-
hideLoveLetters?: boolean;
|
|
159
|
-
hideAfkOverlay?: boolean;
|
|
160
|
-
}>>;
|
|
161
|
-
fetchRemoteWhiteLabelling: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
fullscreenButton?: boolean;
|
|
164
|
-
stopButton?: boolean;
|
|
165
|
-
audioButton?: boolean;
|
|
166
|
-
infoButton?: boolean;
|
|
167
|
-
micButton?: boolean;
|
|
168
|
-
settingsButton?: boolean;
|
|
169
|
-
connectionStrengthIcon?: boolean;
|
|
170
|
-
session?: string;
|
|
171
|
-
token?: string;
|
|
172
|
-
bypass?: boolean;
|
|
173
|
-
errorHandler?: (args_0: {
|
|
174
|
-
type?: "error";
|
|
175
|
-
code?: number;
|
|
176
|
-
reason?: string;
|
|
177
|
-
verbosity?: number;
|
|
178
|
-
}, ...args: unknown[]) => void;
|
|
179
|
-
queueHandler?: (args_0: {
|
|
180
|
-
type?: "queue";
|
|
181
|
-
queue?: {
|
|
182
|
-
index?: number;
|
|
183
|
-
queueLength?: number;
|
|
184
|
-
waited?: number;
|
|
185
|
-
estimatedWaitTime?: number;
|
|
186
|
-
averageWaitTime?: number;
|
|
187
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
188
|
-
};
|
|
189
|
-
}, ...args: unknown[]) => void;
|
|
190
|
-
sessionIdHandler?: (args_0: string, ...args: unknown[]) => void;
|
|
191
|
-
loveLetterHandler?: (args_0: {
|
|
192
|
-
type?: "letter";
|
|
193
|
-
code?: number;
|
|
194
|
-
reason?: string;
|
|
195
|
-
verbosity?: number;
|
|
196
|
-
}, ...args: unknown[]) => void;
|
|
197
|
-
shareId?: string;
|
|
198
|
-
projectId?: string;
|
|
199
|
-
loveLetterLogging?: boolean;
|
|
200
|
-
startWidth?: number;
|
|
201
|
-
startHeight?: number;
|
|
202
|
-
orientationZoom?: {
|
|
203
|
-
landscape?: number;
|
|
204
|
-
portrait?: number;
|
|
205
|
-
};
|
|
206
|
-
whiteLabelling?: {
|
|
207
|
-
loadingIconUrl?: string;
|
|
208
|
-
loadingIconFadeMs?: number;
|
|
209
|
-
splashScreenUrl?: string;
|
|
210
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
211
|
-
splashScreenPosition?: string;
|
|
212
|
-
splashScreenBgColor?: string;
|
|
213
|
-
hideLoveLetters?: boolean;
|
|
214
|
-
hideAfkOverlay?: boolean;
|
|
215
|
-
};
|
|
216
|
-
fetchRemoteWhiteLabelling?: boolean;
|
|
217
|
-
}, {
|
|
218
|
-
fullscreenButton?: boolean;
|
|
219
|
-
stopButton?: boolean;
|
|
220
|
-
audioButton?: boolean;
|
|
221
|
-
infoButton?: boolean;
|
|
222
|
-
micButton?: boolean;
|
|
223
|
-
settingsButton?: boolean;
|
|
224
|
-
connectionStrengthIcon?: boolean;
|
|
225
|
-
session?: string;
|
|
226
|
-
token?: string;
|
|
227
|
-
bypass?: boolean;
|
|
228
|
-
errorHandler?: (args_0: {
|
|
229
|
-
type?: "error";
|
|
230
|
-
code?: number;
|
|
231
|
-
reason?: string;
|
|
232
|
-
verbosity?: number;
|
|
233
|
-
}, ...args: unknown[]) => void;
|
|
234
|
-
queueHandler?: (args_0: {
|
|
235
|
-
type?: "queue";
|
|
236
|
-
queue?: {
|
|
237
|
-
index?: number;
|
|
238
|
-
queueLength?: number;
|
|
239
|
-
waited?: number;
|
|
240
|
-
estimatedWaitTime?: number;
|
|
241
|
-
averageWaitTime?: number;
|
|
242
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
243
|
-
};
|
|
244
|
-
}, ...args: unknown[]) => void;
|
|
245
|
-
sessionIdHandler?: (args_0: string, ...args: unknown[]) => void;
|
|
246
|
-
loveLetterHandler?: (args_0: {
|
|
247
|
-
type?: "letter";
|
|
248
|
-
code?: number;
|
|
249
|
-
reason?: string;
|
|
250
|
-
verbosity?: number;
|
|
251
|
-
}, ...args: unknown[]) => void;
|
|
252
|
-
shareId?: string;
|
|
253
|
-
projectId?: string;
|
|
254
|
-
loveLetterLogging?: boolean;
|
|
255
|
-
startWidth?: number;
|
|
256
|
-
startHeight?: number;
|
|
257
|
-
orientationZoom?: {
|
|
258
|
-
landscape?: number;
|
|
259
|
-
portrait?: number;
|
|
260
|
-
};
|
|
261
|
-
whiteLabelling?: {
|
|
262
|
-
loadingIconUrl?: string;
|
|
263
|
-
loadingIconFadeMs?: number;
|
|
264
|
-
splashScreenUrl?: string;
|
|
265
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
266
|
-
splashScreenPosition?: string;
|
|
267
|
-
splashScreenBgColor?: string;
|
|
268
|
-
hideLoveLetters?: boolean;
|
|
269
|
-
hideAfkOverlay?: boolean;
|
|
270
|
-
};
|
|
271
|
-
fetchRemoteWhiteLabelling?: boolean;
|
|
272
|
-
}>;
|
|
273
|
-
export type Settings = z.infer<typeof ArcwareSettingsSchema>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
declare const ZOptions: z.ZodObject<{
|
|
3
|
-
localStorageKey: z.ZodDefault<z.ZodString>;
|
|
4
|
-
keepSession: z.ZodDefault<z.ZodNumber>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
localStorageKey?: string;
|
|
7
|
-
keepSession?: number;
|
|
8
|
-
}, {
|
|
9
|
-
localStorageKey?: string;
|
|
10
|
-
keepSession?: number;
|
|
11
|
-
}>;
|
|
12
|
-
type Options = z.infer<typeof ZOptions>;
|
|
13
|
-
/** The sessionId is stored in the localStorage to allow for reconnection and
|
|
14
|
-
* to prevent spamming start requests of instances, when smashing F5.
|
|
15
|
-
*/
|
|
16
|
-
export declare class Session {
|
|
17
|
-
private _current?;
|
|
18
|
-
get current(): string;
|
|
19
|
-
get noSession(): boolean;
|
|
20
|
-
get id(): string | null;
|
|
21
|
-
private options;
|
|
22
|
-
private get localStorageKey();
|
|
23
|
-
constructor(options?: Options);
|
|
24
|
-
/** Set's the session with creation date for the given storage key to the localStorage. */
|
|
25
|
-
set(sessionId: string): void;
|
|
26
|
-
/** Removes a session from the localStorage. */
|
|
27
|
-
unset(): void;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { AggregatedStats, CandidatePairStats } from "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5";
|
|
2
|
-
export declare function Stats(stats: AggregatedStats): import("zod").objectOutputType<{
|
|
3
|
-
codecs: import("zod").ZodOptional<import("zod").ZodType<Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>, import("zod").ZodTypeDef, Map<string, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5/dist/types/PeerConnectionController/CodecStats").CodecStats>>>;
|
|
4
|
-
candidatePair: import("zod").ZodOptional<import("zod").ZodType<CandidatePairStats[], import("zod").ZodTypeDef, CandidatePairStats[]>>;
|
|
5
|
-
localCandidates: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
|
|
6
|
-
remoteCandidates: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[], import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").CandidateStat[]>>;
|
|
7
|
-
DataChannelStats: import("zod").ZodOptional<import("zod").ZodType<import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats, import("zod").ZodTypeDef, import("@epicgames-ps/lib-pixelstreamingfrontend-ue5.5").DataChannelStats>>;
|
|
8
|
-
bytesReceived: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
-
packetsLost: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
10
|
-
frameWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11
|
-
frameHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
-
framesDecoded: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
13
|
-
framesPerSecond: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
-
framesDropped: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
15
|
-
videoCodec: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
audioCodec: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
-
browserInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
18
|
-
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
-
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
20
|
-
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
22
|
-
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
-
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
24
|
-
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
26
|
-
userAgent: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
-
platform: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
28
|
-
language: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
30
|
-
currentRTT: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
31
|
-
sessionRunTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
-
controlsStreamInput: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, "true" | "false", string>>;
|
|
33
|
-
videoEncoderAvgQP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
34
|
-
videoBitrate: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
35
|
-
audioBitrate: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
36
|
-
}, import("zod").ZodTypeAny, "passthrough">;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZFileTransfer: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"fileTransfer">;
|
|
4
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
type?: "fileTransfer";
|
|
7
|
-
filename?: string;
|
|
8
|
-
}, {
|
|
9
|
-
type?: "fileTransfer";
|
|
10
|
-
filename?: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type FileTransferMsg = z.infer<typeof ZFileTransfer>;
|
|
13
|
-
export declare function parseControl<T extends z.ZodTypeAny>(input: unknown, schema: T): z.infer<T>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Strict allowlist for white-label brand fields coming from the URL */
|
|
3
|
-
export declare const ZWhiteLabel: z.ZodObject<{
|
|
4
|
-
loadingIconUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
5
|
-
loadingIconFadeMs: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
splashScreenUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
7
|
-
splashScreenMode: z.ZodOptional<z.ZodEnum<["contain", "cover", "stretch", "repeat"]>>;
|
|
8
|
-
splashScreenPosition: z.ZodOptional<z.ZodString>;
|
|
9
|
-
splashScreenBgColor: z.ZodOptional<z.ZodString>;
|
|
10
|
-
hideLoveLetters: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
hideAfkOverlay: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
}, "strict", z.ZodTypeAny, {
|
|
13
|
-
loadingIconUrl?: string;
|
|
14
|
-
loadingIconFadeMs?: number;
|
|
15
|
-
splashScreenUrl?: string;
|
|
16
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
17
|
-
splashScreenPosition?: string;
|
|
18
|
-
splashScreenBgColor?: string;
|
|
19
|
-
hideLoveLetters?: boolean;
|
|
20
|
-
hideAfkOverlay?: boolean;
|
|
21
|
-
}, {
|
|
22
|
-
loadingIconUrl?: string;
|
|
23
|
-
loadingIconFadeMs?: number;
|
|
24
|
-
splashScreenUrl?: string;
|
|
25
|
-
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
26
|
-
splashScreenPosition?: string;
|
|
27
|
-
splashScreenBgColor?: string;
|
|
28
|
-
hideLoveLetters?: boolean;
|
|
29
|
-
hideAfkOverlay?: boolean;
|
|
30
|
-
}>;
|
|
31
|
-
export type WhiteLabel = z.infer<typeof ZWhiteLabel>;
|
package/types/lib/index.d.ts
DELETED
package/types/shared/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./lib";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZErrorMessage: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"error">;
|
|
4
|
-
code: z.ZodNumber;
|
|
5
|
-
reason: z.ZodString;
|
|
6
|
-
verbosity: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type?: "error";
|
|
9
|
-
code?: number;
|
|
10
|
-
reason?: string;
|
|
11
|
-
verbosity?: number;
|
|
12
|
-
}, {
|
|
13
|
-
type?: "error";
|
|
14
|
-
code?: number;
|
|
15
|
-
reason?: string;
|
|
16
|
-
verbosity?: number;
|
|
17
|
-
}>;
|
|
18
|
-
export type ErrorMessage = z.infer<typeof ZErrorMessage>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZLoveLetter: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"letter">;
|
|
4
|
-
reason: z.ZodString;
|
|
5
|
-
code: z.ZodNumber;
|
|
6
|
-
verbosity: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type?: "letter";
|
|
9
|
-
code?: number;
|
|
10
|
-
reason?: string;
|
|
11
|
-
verbosity?: number;
|
|
12
|
-
}, {
|
|
13
|
-
type?: "letter";
|
|
14
|
-
code?: number;
|
|
15
|
-
reason?: string;
|
|
16
|
-
verbosity?: number;
|
|
17
|
-
}>;
|
|
18
|
-
export type LoveLetter = z.infer<typeof ZLoveLetter>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZPing: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"ping">;
|
|
4
|
-
message: z.ZodOptional<z.ZodString>;
|
|
5
|
-
time: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type?: "ping";
|
|
8
|
-
message?: string;
|
|
9
|
-
time?: number;
|
|
10
|
-
}, {
|
|
11
|
-
type?: "ping";
|
|
12
|
-
message?: string;
|
|
13
|
-
time?: number;
|
|
14
|
-
}>;
|
|
15
|
-
export type Ping = z.infer<typeof ZPing>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZQueue: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"queue">;
|
|
4
|
-
queue: z.ZodObject<{
|
|
5
|
-
/** Ticket._id - will not be exposed to frontend. */
|
|
6
|
-
/** Position in queue (zero based). */
|
|
7
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
/** Length of the queue. */
|
|
9
|
-
queueLength: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
/** Already waited for. */
|
|
11
|
-
waited: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
/** Based on Average Watch Time,
|
|
13
|
-
* we calculate an average interval of expected connection closings and based on the amount of concurrent sessions,
|
|
14
|
-
* we can calculate the estimated time until another slot will be freed up. */
|
|
15
|
-
estimatedWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
16
|
-
/** The average time all current sessions.
|
|
17
|
-
* (How long did it actually take those that waited for them that received a connection to the currently running instances.)
|
|
18
|
-
*/
|
|
19
|
-
averageWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
-
/** Type of all time-values in the que. */
|
|
21
|
-
valueType: z.ZodEnum<["milliseconds", "seconds", "minutes", "hours", "days"]>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
index?: number;
|
|
24
|
-
queueLength?: number;
|
|
25
|
-
waited?: number;
|
|
26
|
-
estimatedWaitTime?: number;
|
|
27
|
-
averageWaitTime?: number;
|
|
28
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
29
|
-
}, {
|
|
30
|
-
index?: number;
|
|
31
|
-
queueLength?: number;
|
|
32
|
-
waited?: number;
|
|
33
|
-
estimatedWaitTime?: number;
|
|
34
|
-
averageWaitTime?: number;
|
|
35
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
36
|
-
}>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
type?: "queue";
|
|
39
|
-
queue?: {
|
|
40
|
-
index?: number;
|
|
41
|
-
queueLength?: number;
|
|
42
|
-
waited?: number;
|
|
43
|
-
estimatedWaitTime?: number;
|
|
44
|
-
averageWaitTime?: number;
|
|
45
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
46
|
-
};
|
|
47
|
-
}, {
|
|
48
|
-
type?: "queue";
|
|
49
|
-
queue?: {
|
|
50
|
-
index?: number;
|
|
51
|
-
queueLength?: number;
|
|
52
|
-
waited?: number;
|
|
53
|
-
estimatedWaitTime?: number;
|
|
54
|
-
averageWaitTime?: number;
|
|
55
|
-
valueType?: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
56
|
-
};
|
|
57
|
-
}>;
|
|
58
|
-
export type Queue = z.infer<typeof ZQueue>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ZSessionId: z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"sessionId">;
|
|
4
|
-
sessionId: z.ZodString;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
type?: "sessionId";
|
|
7
|
-
sessionId?: string;
|
|
8
|
-
}, {
|
|
9
|
-
type?: "sessionId";
|
|
10
|
-
sessionId?: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type SessionId = z.infer<typeof ZSessionId>;
|