@arcware-cloud/pixelstreaming-websdk 0.1.0-beta
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/DEPENDENCY_LICENSE.md +136 -0
- package/LICENSE.md +24 -0
- package/README.md +204 -0
- package/index.cjs.js +11 -0
- package/index.esm.js +11 -0
- package/index.umd.js +11 -0
- package/package.json +32 -0
- package/types/index.d.ts +3 -0
- package/types/lib/ApplyUrlHack.d.ts +2 -0
- package/types/lib/ArcwareApplication.d.ts +27 -0
- package/types/lib/ArcwareConfig.d.ts +34 -0
- package/types/lib/ArcwarePixelStreaming.d.ts +84 -0
- package/types/lib/domain/ArcwareSettingsSchema.d.ts +185 -0
- package/types/lib/domain/EventHandler.d.ts +11 -0
- package/types/lib/domain/Session.d.ts +29 -0
- package/types/lib/domain/Stats.d.ts +36 -0
- package/types/lib/index.d.ts +4 -0
- package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +388 -0
- package/types/lib/ui/ArcwareLogoLoader/index.d.ts +5 -0
- package/types/lib/ui/AudioButton/AudioIcon.d.ts +7 -0
- package/types/lib/ui/AudioButton/index.d.ts +15 -0
- package/types/lib/ui/LoveLetters/index.d.ts +6 -0
- package/types/lib/ui/MicButton/index.d.ts +14 -0
- package/types/lib/ui/MicIcon/index.d.ts +7 -0
- package/types/lib/ui/MicrophoneOverlay/index.d.ts +11 -0
- package/types/shared/index.d.ts +1 -0
- package/types/shared/lib/Messages/ErrorMessage.d.ts +18 -0
- package/types/shared/lib/Messages/LoveLetter.d.ts +18 -0
- package/types/shared/lib/Messages/Ping.d.ts +12 -0
- package/types/shared/lib/Messages/Queue.d.ts +58 -0
- package/types/shared/lib/Messages/SessionId.d.ts +12 -0
- package/types/shared/lib/Messages/Stats.d.ts +170 -0
- package/types/shared/lib/Messages/StreamInfo.d.ts +152 -0
- package/types/shared/lib/Messages/index.d.ts +178 -0
- package/types/shared/lib/index.d.ts +1 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
export declare const ArcwareStyles: {
|
|
2
|
+
customStyles: {
|
|
3
|
+
":root": {
|
|
4
|
+
"--color0": string;
|
|
5
|
+
"--color1": string;
|
|
6
|
+
"--color2": string;
|
|
7
|
+
"--color3": string;
|
|
8
|
+
"--color4": string;
|
|
9
|
+
"--color5": string;
|
|
10
|
+
"--color6": string;
|
|
11
|
+
"--color7": string;
|
|
12
|
+
"--color8": string;
|
|
13
|
+
"--color9": string;
|
|
14
|
+
"--color10": string;
|
|
15
|
+
"--color11": string;
|
|
16
|
+
"--color12": string;
|
|
17
|
+
"--color13": string;
|
|
18
|
+
"--colorBoxShadow": string;
|
|
19
|
+
};
|
|
20
|
+
"*": {
|
|
21
|
+
fontFamily: string;
|
|
22
|
+
};
|
|
23
|
+
"::-webkit-scrollbar": {
|
|
24
|
+
width: string;
|
|
25
|
+
};
|
|
26
|
+
"::-webkit-scrollbar-track": {
|
|
27
|
+
background: string;
|
|
28
|
+
opacity: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
borderTop: string;
|
|
31
|
+
borderRight: string;
|
|
32
|
+
borderBottom: string;
|
|
33
|
+
borderLeft: string;
|
|
34
|
+
};
|
|
35
|
+
"::-webkit-scrollbar-track-piece": {
|
|
36
|
+
background: string;
|
|
37
|
+
};
|
|
38
|
+
"::-webkit-scrollbar-thumb": {
|
|
39
|
+
background: string;
|
|
40
|
+
width: string;
|
|
41
|
+
borderRight: string;
|
|
42
|
+
borderLeft: string;
|
|
43
|
+
transition: string;
|
|
44
|
+
borderRadius: string;
|
|
45
|
+
};
|
|
46
|
+
"::-webkit-scrollbar-thumb:hover": {
|
|
47
|
+
transition: string;
|
|
48
|
+
background: string;
|
|
49
|
+
};
|
|
50
|
+
"#uiFeatures #controls": {
|
|
51
|
+
top: string;
|
|
52
|
+
left: string;
|
|
53
|
+
bottom: string;
|
|
54
|
+
right: string;
|
|
55
|
+
display: string;
|
|
56
|
+
flexDirection: string;
|
|
57
|
+
};
|
|
58
|
+
"#uiFeatures #connection": {
|
|
59
|
+
bottom: string;
|
|
60
|
+
left: string;
|
|
61
|
+
width: string;
|
|
62
|
+
heihgt: string;
|
|
63
|
+
};
|
|
64
|
+
"#uiFeatures button": {
|
|
65
|
+
backgroundColor: string;
|
|
66
|
+
border: string;
|
|
67
|
+
position: string;
|
|
68
|
+
width: string;
|
|
69
|
+
height: string;
|
|
70
|
+
padding: string;
|
|
71
|
+
textAlign: string;
|
|
72
|
+
cursor: string;
|
|
73
|
+
display: string;
|
|
74
|
+
flexDirection: string;
|
|
75
|
+
justifyContent: string;
|
|
76
|
+
alignItems: string;
|
|
77
|
+
boxShadow: string;
|
|
78
|
+
borderRadius: string;
|
|
79
|
+
outline: string;
|
|
80
|
+
};
|
|
81
|
+
"#uiFeatures button:hover, #uiFeatures button:active": {
|
|
82
|
+
padding: string;
|
|
83
|
+
border: string;
|
|
84
|
+
};
|
|
85
|
+
"#uiFeatures button #audioIconMuted, #uiFeatures button #audioIconUnmuted, #uiFeatures button #micIconMuted, #uiFeatures button #micIconUnmuted": {
|
|
86
|
+
width: string;
|
|
87
|
+
height: string;
|
|
88
|
+
};
|
|
89
|
+
"#uiFeatures button #maximizeIcon, #uiFeatures button #minimizeIcon": {
|
|
90
|
+
width: string;
|
|
91
|
+
height: string;
|
|
92
|
+
};
|
|
93
|
+
"#uiFeatures button .tooltiptext": {
|
|
94
|
+
right: string;
|
|
95
|
+
left: string;
|
|
96
|
+
boxShadow: string;
|
|
97
|
+
borderRadius: string;
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
width: string;
|
|
100
|
+
};
|
|
101
|
+
"#controls>*": {
|
|
102
|
+
marginBottom: string;
|
|
103
|
+
display: string;
|
|
104
|
+
lineHeight: string;
|
|
105
|
+
padding: string;
|
|
106
|
+
backgroundColor: string;
|
|
107
|
+
};
|
|
108
|
+
".svgIcon": {
|
|
109
|
+
fill: string;
|
|
110
|
+
};
|
|
111
|
+
"#uiFeatures button:hover .svgIcon, #uiFeatures button:active .svgIcon": {
|
|
112
|
+
fill: string;
|
|
113
|
+
};
|
|
114
|
+
".tgl-switch .tgl-slider, .tgl-flat:checked+.tgl-slider": {
|
|
115
|
+
border: string;
|
|
116
|
+
};
|
|
117
|
+
".tgl-switch .tgl-slider": {
|
|
118
|
+
background: string;
|
|
119
|
+
};
|
|
120
|
+
".tgl-switch .tgl-slider::before": {
|
|
121
|
+
content: string;
|
|
122
|
+
display: string;
|
|
123
|
+
background: string;
|
|
124
|
+
position: string;
|
|
125
|
+
height: string;
|
|
126
|
+
width: string;
|
|
127
|
+
borderRadius: string;
|
|
128
|
+
margin: string;
|
|
129
|
+
top: string;
|
|
130
|
+
bottom: string;
|
|
131
|
+
left: string;
|
|
132
|
+
right: string;
|
|
133
|
+
};
|
|
134
|
+
".tgl-switch .tgl-slider::after": {
|
|
135
|
+
height: string;
|
|
136
|
+
width: string;
|
|
137
|
+
borderRadius: string;
|
|
138
|
+
top: string;
|
|
139
|
+
left: string;
|
|
140
|
+
};
|
|
141
|
+
".tgl-flat:checked+.tgl-slider:after": {
|
|
142
|
+
left: string;
|
|
143
|
+
background: string;
|
|
144
|
+
};
|
|
145
|
+
".form-control": {
|
|
146
|
+
backgroundColor: string;
|
|
147
|
+
border: string;
|
|
148
|
+
borderRadius: string;
|
|
149
|
+
color: string;
|
|
150
|
+
textAlign: string;
|
|
151
|
+
fontFamily: string;
|
|
152
|
+
padding: string;
|
|
153
|
+
};
|
|
154
|
+
".btn-flat": {
|
|
155
|
+
background: string;
|
|
156
|
+
color: string;
|
|
157
|
+
border: string;
|
|
158
|
+
padding: string;
|
|
159
|
+
cursor: string;
|
|
160
|
+
borderRadius: string;
|
|
161
|
+
textTransform: string;
|
|
162
|
+
minWidth: string;
|
|
163
|
+
};
|
|
164
|
+
".btn-flat:disabled": {
|
|
165
|
+
background: string;
|
|
166
|
+
borderColor: string;
|
|
167
|
+
color: string;
|
|
168
|
+
cursor: string;
|
|
169
|
+
};
|
|
170
|
+
".btn-flat:focus": {
|
|
171
|
+
outline: string;
|
|
172
|
+
};
|
|
173
|
+
".arcware-logo-loader": {
|
|
174
|
+
position: string;
|
|
175
|
+
display: string;
|
|
176
|
+
width: string;
|
|
177
|
+
height: string;
|
|
178
|
+
};
|
|
179
|
+
"#playOverlay img#playButton": {
|
|
180
|
+
width: string;
|
|
181
|
+
};
|
|
182
|
+
"#disconnectOverlay, #errorOverlay": {
|
|
183
|
+
textTransform: string;
|
|
184
|
+
textAlign: string;
|
|
185
|
+
fontSize: string;
|
|
186
|
+
lineHeight: number;
|
|
187
|
+
};
|
|
188
|
+
"#disconnectOverlay .clickableState": {
|
|
189
|
+
textTransform: string;
|
|
190
|
+
textAlign: string;
|
|
191
|
+
color: string;
|
|
192
|
+
padding: string;
|
|
193
|
+
fontSize: string;
|
|
194
|
+
border: string;
|
|
195
|
+
margin: string;
|
|
196
|
+
width: string;
|
|
197
|
+
};
|
|
198
|
+
"#afkOverlay": {
|
|
199
|
+
background: string;
|
|
200
|
+
transition: string;
|
|
201
|
+
opacity: number;
|
|
202
|
+
pointerEvents: string;
|
|
203
|
+
};
|
|
204
|
+
"#afkOverlayInner": {
|
|
205
|
+
textTransform: string;
|
|
206
|
+
background: string;
|
|
207
|
+
padding: string;
|
|
208
|
+
fontSize: string;
|
|
209
|
+
width: string;
|
|
210
|
+
textAlign: string;
|
|
211
|
+
lineHeight: number;
|
|
212
|
+
};
|
|
213
|
+
"#afkOverlayInner center::first-line": {
|
|
214
|
+
textTransform: string;
|
|
215
|
+
color: string;
|
|
216
|
+
fontWeight: string;
|
|
217
|
+
fontSize: string;
|
|
218
|
+
};
|
|
219
|
+
"#afkOverlayInner #afkCountDownNumber": {
|
|
220
|
+
color: string;
|
|
221
|
+
fontSize: string;
|
|
222
|
+
lineHeight: string;
|
|
223
|
+
};
|
|
224
|
+
"#afkOverlayInner center .retry-button": {
|
|
225
|
+
textTransform: string;
|
|
226
|
+
textAlign: string;
|
|
227
|
+
color: string;
|
|
228
|
+
padding: string;
|
|
229
|
+
fontSize: string;
|
|
230
|
+
border: string;
|
|
231
|
+
margin: string;
|
|
232
|
+
width: string;
|
|
233
|
+
};
|
|
234
|
+
"#infoOverlay.hiddenState": {
|
|
235
|
+
display: string;
|
|
236
|
+
};
|
|
237
|
+
"#disconnectOverlay, #playOverlay, #errorOverlay, #microphoneOverlay": {
|
|
238
|
+
background: string;
|
|
239
|
+
display: string;
|
|
240
|
+
transition: string;
|
|
241
|
+
opacity: number;
|
|
242
|
+
pointerEvents: string;
|
|
243
|
+
};
|
|
244
|
+
"#microphoneOverlay": {
|
|
245
|
+
textTransform: string;
|
|
246
|
+
padding: string;
|
|
247
|
+
fontSize: string;
|
|
248
|
+
height: string;
|
|
249
|
+
width: string;
|
|
250
|
+
textAlign: string;
|
|
251
|
+
lineHeight: number;
|
|
252
|
+
position: string;
|
|
253
|
+
margin: string;
|
|
254
|
+
top: string;
|
|
255
|
+
bottom: string;
|
|
256
|
+
left: string;
|
|
257
|
+
right: string;
|
|
258
|
+
justifyContent: string;
|
|
259
|
+
alignItems: string;
|
|
260
|
+
flexDirection: string;
|
|
261
|
+
zIndex: number;
|
|
262
|
+
};
|
|
263
|
+
"#microphoneOverlay .title": {
|
|
264
|
+
fontSize: string;
|
|
265
|
+
position: string;
|
|
266
|
+
marginBottom: string;
|
|
267
|
+
color: string;
|
|
268
|
+
};
|
|
269
|
+
"#microphoneOverlay .title:after": {
|
|
270
|
+
content: string;
|
|
271
|
+
display: string;
|
|
272
|
+
animation: string;
|
|
273
|
+
position: string;
|
|
274
|
+
};
|
|
275
|
+
"#microphoneOverlay p": {
|
|
276
|
+
margin: number;
|
|
277
|
+
color: string;
|
|
278
|
+
};
|
|
279
|
+
"#microphoneOverlay svg": {
|
|
280
|
+
height: string;
|
|
281
|
+
marginBottom: string;
|
|
282
|
+
marginTop: string;
|
|
283
|
+
};
|
|
284
|
+
"#microphoneOverlay .svgIcon": {
|
|
285
|
+
fill: string;
|
|
286
|
+
};
|
|
287
|
+
"#disconnectOverlay.hiddenState, #playOverlay.hiddenState, #errorOverlay.hiddenState, #afkOverlay.hiddenState, #microphoneOverlay.hiddenState": {
|
|
288
|
+
opacity: number;
|
|
289
|
+
pointerEvents: string;
|
|
290
|
+
};
|
|
291
|
+
"#disconnectOverlay.mic-overlay-is-visible, #errorOverlay.mic-overlay-is-visible, #infoOverlay.mic-overlay-is-visible": {
|
|
292
|
+
opacity: number;
|
|
293
|
+
pointerEvents: string;
|
|
294
|
+
};
|
|
295
|
+
"#infoOverlay.hiddenState, #connectOverlay.hiddenState": {
|
|
296
|
+
display: string;
|
|
297
|
+
};
|
|
298
|
+
"#infoOverlay": {
|
|
299
|
+
display: string;
|
|
300
|
+
};
|
|
301
|
+
".love-letters-box-root": {
|
|
302
|
+
display: string;
|
|
303
|
+
position: string;
|
|
304
|
+
width: string;
|
|
305
|
+
height: string;
|
|
306
|
+
color: string;
|
|
307
|
+
justifyContent: string;
|
|
308
|
+
alignItems: string;
|
|
309
|
+
flexDirection: string;
|
|
310
|
+
background: string;
|
|
311
|
+
zIndex: number;
|
|
312
|
+
};
|
|
313
|
+
".love-letters-box-root.fade-out": {
|
|
314
|
+
opacity: number;
|
|
315
|
+
transition: string;
|
|
316
|
+
};
|
|
317
|
+
"#letters-block": {
|
|
318
|
+
position: string;
|
|
319
|
+
top: number;
|
|
320
|
+
left: number;
|
|
321
|
+
right: number;
|
|
322
|
+
bottom: number;
|
|
323
|
+
margin: string;
|
|
324
|
+
color: string;
|
|
325
|
+
zIndex: number;
|
|
326
|
+
display: string;
|
|
327
|
+
flexDirection: string;
|
|
328
|
+
justifyContent: string;
|
|
329
|
+
alignItems: string;
|
|
330
|
+
fontSize: string;
|
|
331
|
+
textTransform: string;
|
|
332
|
+
textAlign: string;
|
|
333
|
+
};
|
|
334
|
+
"#letters-block p": {
|
|
335
|
+
textAlign: string;
|
|
336
|
+
lineHeight: number;
|
|
337
|
+
margin: string;
|
|
338
|
+
fontSize: string;
|
|
339
|
+
};
|
|
340
|
+
".letter-animation:nth-last-of-type(1)::after": {
|
|
341
|
+
display: string;
|
|
342
|
+
animation: string;
|
|
343
|
+
content: string;
|
|
344
|
+
position: string;
|
|
345
|
+
};
|
|
346
|
+
".letter-animation": {
|
|
347
|
+
transition: string;
|
|
348
|
+
transformOrigin: string;
|
|
349
|
+
};
|
|
350
|
+
".letter-animation-enter": {
|
|
351
|
+
animation: string;
|
|
352
|
+
};
|
|
353
|
+
".letter-animation-exit": {
|
|
354
|
+
opacity: number;
|
|
355
|
+
scale: number;
|
|
356
|
+
transition: string;
|
|
357
|
+
};
|
|
358
|
+
"@keyframes dotty": {
|
|
359
|
+
"0%": {
|
|
360
|
+
content: string;
|
|
361
|
+
};
|
|
362
|
+
"25%": {
|
|
363
|
+
content: string;
|
|
364
|
+
};
|
|
365
|
+
"50%": {
|
|
366
|
+
content: string;
|
|
367
|
+
};
|
|
368
|
+
"75%": {
|
|
369
|
+
content: string;
|
|
370
|
+
};
|
|
371
|
+
"100%": {
|
|
372
|
+
content: string;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
"@keyframes fadeInUp": {
|
|
376
|
+
from: {
|
|
377
|
+
opacity: number;
|
|
378
|
+
transform: string;
|
|
379
|
+
scale: number;
|
|
380
|
+
};
|
|
381
|
+
to: {
|
|
382
|
+
opacity: number;
|
|
383
|
+
transform: string;
|
|
384
|
+
scale: number;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class AudioButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private audioIcon;
|
|
6
|
+
private tooltipText;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
private setAudioMutedByDefault;
|
|
9
|
+
private createButton;
|
|
10
|
+
private createTooltipText;
|
|
11
|
+
private toggleAudio;
|
|
12
|
+
private updateAudioIcon;
|
|
13
|
+
get element(): HTMLButtonElement;
|
|
14
|
+
private onVolumeChange;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class MicButton {
|
|
3
|
+
private button;
|
|
4
|
+
private stream;
|
|
5
|
+
private micIcon;
|
|
6
|
+
private tooltipText;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
private setMicMutedByDefault;
|
|
9
|
+
private createButton;
|
|
10
|
+
private createTooltipText;
|
|
11
|
+
private toggleMic;
|
|
12
|
+
private updateMicIcon;
|
|
13
|
+
get element(): HTMLButtonElement;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ArcwarePixelStreaming } from "../../ArcwarePixelStreaming";
|
|
2
|
+
export declare class MicrophoneOverlay {
|
|
3
|
+
private overlay;
|
|
4
|
+
private parentElement;
|
|
5
|
+
private micIcon;
|
|
6
|
+
private stream;
|
|
7
|
+
constructor(stream: ArcwarePixelStreaming);
|
|
8
|
+
createOverlay(): void;
|
|
9
|
+
toggleMessage(enabled: boolean): void;
|
|
10
|
+
toggleVisibility(visible: boolean): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./lib";
|
|
@@ -0,0 +1,18 @@
|
|
|
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>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ZPing: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"ping">;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
type: "ping";
|
|
7
|
+
message: string;
|
|
8
|
+
}, {
|
|
9
|
+
type: "ping";
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type Ping = z.infer<typeof ZPing>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.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.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
|
+
valueType: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
24
|
+
index?: number | undefined;
|
|
25
|
+
queueLength?: number | undefined;
|
|
26
|
+
waited?: number | undefined;
|
|
27
|
+
estimatedWaitTime?: number | undefined;
|
|
28
|
+
averageWaitTime?: number | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
valueType: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
31
|
+
index?: number | undefined;
|
|
32
|
+
queueLength?: number | undefined;
|
|
33
|
+
waited?: number | undefined;
|
|
34
|
+
estimatedWaitTime?: number | undefined;
|
|
35
|
+
averageWaitTime?: number | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
type: "queue";
|
|
39
|
+
queue: {
|
|
40
|
+
valueType: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
41
|
+
index?: number | undefined;
|
|
42
|
+
queueLength?: number | undefined;
|
|
43
|
+
waited?: number | undefined;
|
|
44
|
+
estimatedWaitTime?: number | undefined;
|
|
45
|
+
averageWaitTime?: number | undefined;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
type: "queue";
|
|
49
|
+
queue: {
|
|
50
|
+
valueType: "milliseconds" | "seconds" | "minutes" | "hours" | "days";
|
|
51
|
+
index?: number | undefined;
|
|
52
|
+
queueLength?: number | undefined;
|
|
53
|
+
waited?: number | undefined;
|
|
54
|
+
estimatedWaitTime?: number | undefined;
|
|
55
|
+
averageWaitTime?: number | undefined;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
export type Queue = z.infer<typeof ZQueue>;
|
|
@@ -0,0 +1,12 @@
|
|
|
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>;
|