@epic-web/workshop-utils 6.63.0 → 6.64.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/apps.server.d.ts +706 -3500
- package/dist/cache.server.d.ts +45 -99
- package/dist/cache.server.js +8 -5
- package/dist/config.server.d.ts +41 -272
- package/dist/config.server.js +22 -12
- package/dist/db.server.d.ts +37 -344
- package/dist/db.server.js +27 -7
- package/dist/env.server.d.ts +8 -36
- package/dist/epic-api.server.d.ts +18 -72
- package/dist/notifications.server.d.ts +10 -34
- package/dist/offline-video-crypto.server.d.ts +2 -2
- package/dist/process-manager.server.d.ts +1 -1
- package/dist/workshops.server.d.ts +1 -5
- package/package.json +81 -52
package/dist/db.server.d.ts
CHANGED
|
@@ -4,64 +4,22 @@ declare const TokenSetSchema: z.ZodObject<{
|
|
|
4
4
|
access_token: z.ZodString;
|
|
5
5
|
token_type: z.ZodString;
|
|
6
6
|
scope: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
access_token: string;
|
|
9
|
-
token_type: string;
|
|
10
|
-
scope: string;
|
|
11
|
-
}, {
|
|
12
|
-
access_token: string;
|
|
13
|
-
token_type: string;
|
|
14
|
-
scope: string;
|
|
15
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
export declare const PlayerPreferencesSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
17
9
|
minResolution: z.ZodOptional<z.ZodNumber>;
|
|
18
10
|
maxResolution: z.ZodOptional<z.ZodNumber>;
|
|
19
11
|
volumeRate: z.ZodOptional<z.ZodNumber>;
|
|
20
12
|
playbackRate: z.ZodOptional<z.ZodNumber>;
|
|
21
13
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
subtitle: z.ZodDefault<z.
|
|
14
|
+
subtitle: z.ZodDefault<z.ZodObject<{
|
|
23
15
|
id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
24
16
|
mode: z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"disabled">, z.ZodLiteral<"hidden">]>, z.ZodLiteral<"showing">]>>>;
|
|
25
|
-
},
|
|
26
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
27
|
-
id: string | null;
|
|
28
|
-
}, {
|
|
29
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
30
|
-
id?: string | null | undefined;
|
|
31
|
-
}>>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
32
18
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
33
19
|
theater: z.ZodOptional<z.ZodBoolean>;
|
|
34
20
|
defaultView: z.ZodOptional<z.ZodString>;
|
|
35
21
|
activeSidebarTab: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
},
|
|
37
|
-
subtitle: {
|
|
38
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
39
|
-
id: string | null;
|
|
40
|
-
};
|
|
41
|
-
minResolution?: number | undefined;
|
|
42
|
-
maxResolution?: number | undefined;
|
|
43
|
-
volumeRate?: number | undefined;
|
|
44
|
-
playbackRate?: number | undefined;
|
|
45
|
-
autoplay?: boolean | undefined;
|
|
46
|
-
muted?: boolean | undefined;
|
|
47
|
-
theater?: boolean | undefined;
|
|
48
|
-
defaultView?: string | undefined;
|
|
49
|
-
activeSidebarTab?: number | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
subtitle?: {
|
|
52
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
53
|
-
id?: string | null | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
minResolution?: number | undefined;
|
|
56
|
-
maxResolution?: number | undefined;
|
|
57
|
-
volumeRate?: number | undefined;
|
|
58
|
-
playbackRate?: number | undefined;
|
|
59
|
-
autoplay?: boolean | undefined;
|
|
60
|
-
muted?: boolean | undefined;
|
|
61
|
-
theater?: boolean | undefined;
|
|
62
|
-
defaultView?: string | undefined;
|
|
63
|
-
activeSidebarTab?: number | undefined;
|
|
64
|
-
}>>>;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
65
23
|
declare const DataSchema: z.ZodObject<{
|
|
66
24
|
preferences: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
67
25
|
player: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
@@ -70,323 +28,58 @@ declare const DataSchema: z.ZodObject<{
|
|
|
70
28
|
volumeRate: z.ZodOptional<z.ZodNumber>;
|
|
71
29
|
playbackRate: z.ZodOptional<z.ZodNumber>;
|
|
72
30
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
subtitle: z.ZodDefault<z.
|
|
31
|
+
subtitle: z.ZodDefault<z.ZodObject<{
|
|
74
32
|
id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
75
33
|
mode: z.ZodDefault<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"disabled">, z.ZodLiteral<"hidden">]>, z.ZodLiteral<"showing">]>>>;
|
|
76
|
-
},
|
|
77
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
78
|
-
id: string | null;
|
|
79
|
-
}, {
|
|
80
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
81
|
-
id?: string | null | undefined;
|
|
82
|
-
}>>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
83
35
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
84
36
|
theater: z.ZodOptional<z.ZodBoolean>;
|
|
85
37
|
defaultView: z.ZodOptional<z.ZodString>;
|
|
86
38
|
activeSidebarTab: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
},
|
|
88
|
-
subtitle: {
|
|
89
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
90
|
-
id: string | null;
|
|
91
|
-
};
|
|
92
|
-
minResolution?: number | undefined;
|
|
93
|
-
maxResolution?: number | undefined;
|
|
94
|
-
volumeRate?: number | undefined;
|
|
95
|
-
playbackRate?: number | undefined;
|
|
96
|
-
autoplay?: boolean | undefined;
|
|
97
|
-
muted?: boolean | undefined;
|
|
98
|
-
theater?: boolean | undefined;
|
|
99
|
-
defaultView?: string | undefined;
|
|
100
|
-
activeSidebarTab?: number | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
subtitle?: {
|
|
103
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
104
|
-
id?: string | null | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
minResolution?: number | undefined;
|
|
107
|
-
maxResolution?: number | undefined;
|
|
108
|
-
volumeRate?: number | undefined;
|
|
109
|
-
playbackRate?: number | undefined;
|
|
110
|
-
autoplay?: boolean | undefined;
|
|
111
|
-
muted?: boolean | undefined;
|
|
112
|
-
theater?: boolean | undefined;
|
|
113
|
-
defaultView?: string | undefined;
|
|
114
|
-
activeSidebarTab?: number | undefined;
|
|
115
|
-
}>>>;
|
|
39
|
+
}, z.core.$strip>>>;
|
|
116
40
|
offlineVideo: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
117
|
-
downloadResolution: z.ZodOptional<z.ZodEnum<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
41
|
+
downloadResolution: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
best: "best";
|
|
43
|
+
high: "high";
|
|
44
|
+
medium: "medium";
|
|
45
|
+
low: "low";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
123
48
|
presence: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
124
49
|
optOut: z.ZodBoolean;
|
|
125
|
-
},
|
|
126
|
-
optOut: boolean;
|
|
127
|
-
}, {
|
|
128
|
-
optOut: boolean;
|
|
129
|
-
}>>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
130
51
|
playground: z.ZodOptional<z.ZodObject<{
|
|
131
52
|
persist: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
-
},
|
|
133
|
-
persist: boolean;
|
|
134
|
-
}, {
|
|
135
|
-
persist?: boolean | undefined;
|
|
136
|
-
}>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
137
54
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
138
55
|
exerciseWarning: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
139
56
|
dismissed: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
dismissed?: boolean | undefined;
|
|
144
|
-
}>>>;
|
|
145
|
-
onboardingComplete: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
player: {
|
|
148
|
-
subtitle: {
|
|
149
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
150
|
-
id: string | null;
|
|
151
|
-
};
|
|
152
|
-
minResolution?: number | undefined;
|
|
153
|
-
maxResolution?: number | undefined;
|
|
154
|
-
volumeRate?: number | undefined;
|
|
155
|
-
playbackRate?: number | undefined;
|
|
156
|
-
autoplay?: boolean | undefined;
|
|
157
|
-
muted?: boolean | undefined;
|
|
158
|
-
theater?: boolean | undefined;
|
|
159
|
-
defaultView?: string | undefined;
|
|
160
|
-
activeSidebarTab?: number | undefined;
|
|
161
|
-
};
|
|
162
|
-
offlineVideo: {
|
|
163
|
-
downloadResolution?: "best" | "high" | "medium" | "low" | undefined;
|
|
164
|
-
};
|
|
165
|
-
presence: {
|
|
166
|
-
optOut: boolean;
|
|
167
|
-
};
|
|
168
|
-
exerciseWarning: {
|
|
169
|
-
dismissed: boolean;
|
|
170
|
-
};
|
|
171
|
-
onboardingComplete: string[];
|
|
172
|
-
playground?: {
|
|
173
|
-
persist: boolean;
|
|
174
|
-
} | undefined;
|
|
175
|
-
fontSize?: number | undefined;
|
|
176
|
-
}, {
|
|
177
|
-
player?: {
|
|
178
|
-
subtitle?: {
|
|
179
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
180
|
-
id?: string | null | undefined;
|
|
181
|
-
} | undefined;
|
|
182
|
-
minResolution?: number | undefined;
|
|
183
|
-
maxResolution?: number | undefined;
|
|
184
|
-
volumeRate?: number | undefined;
|
|
185
|
-
playbackRate?: number | undefined;
|
|
186
|
-
autoplay?: boolean | undefined;
|
|
187
|
-
muted?: boolean | undefined;
|
|
188
|
-
theater?: boolean | undefined;
|
|
189
|
-
defaultView?: string | undefined;
|
|
190
|
-
activeSidebarTab?: number | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
offlineVideo?: {
|
|
193
|
-
downloadResolution?: "best" | "high" | "medium" | "low" | undefined;
|
|
194
|
-
} | undefined;
|
|
195
|
-
presence?: {
|
|
196
|
-
optOut: boolean;
|
|
197
|
-
} | undefined;
|
|
198
|
-
playground?: {
|
|
199
|
-
persist?: boolean | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
fontSize?: number | undefined;
|
|
202
|
-
exerciseWarning?: {
|
|
203
|
-
dismissed?: boolean | undefined;
|
|
204
|
-
} | undefined;
|
|
205
|
-
onboardingComplete?: string[] | undefined;
|
|
206
|
-
}>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
onboardingComplete: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
207
60
|
authInfo: z.ZodOptional<z.ZodObject<{
|
|
208
61
|
id: z.ZodString;
|
|
209
62
|
tokenSet: z.ZodObject<{
|
|
210
63
|
access_token: z.ZodString;
|
|
211
64
|
token_type: z.ZodString;
|
|
212
65
|
scope: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
access_token: string;
|
|
215
|
-
token_type: string;
|
|
216
|
-
scope: string;
|
|
217
|
-
}, {
|
|
218
|
-
access_token: string;
|
|
219
|
-
token_type: string;
|
|
220
|
-
scope: string;
|
|
221
|
-
}>;
|
|
66
|
+
}, z.core.$strip>;
|
|
222
67
|
email: z.ZodString;
|
|
223
68
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
-
},
|
|
225
|
-
id: string;
|
|
226
|
-
email: string;
|
|
227
|
-
tokenSet: {
|
|
228
|
-
access_token: string;
|
|
229
|
-
token_type: string;
|
|
230
|
-
scope: string;
|
|
231
|
-
};
|
|
232
|
-
name?: string | null | undefined;
|
|
233
|
-
}, {
|
|
234
|
-
id: string;
|
|
235
|
-
email: string;
|
|
236
|
-
tokenSet: {
|
|
237
|
-
access_token: string;
|
|
238
|
-
token_type: string;
|
|
239
|
-
scope: string;
|
|
240
|
-
};
|
|
241
|
-
name?: string | null | undefined;
|
|
242
|
-
}>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
243
70
|
authInfos: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
244
71
|
id: z.ZodString;
|
|
245
72
|
tokenSet: z.ZodObject<{
|
|
246
73
|
access_token: z.ZodString;
|
|
247
74
|
token_type: z.ZodString;
|
|
248
75
|
scope: z.ZodString;
|
|
249
|
-
},
|
|
250
|
-
access_token: string;
|
|
251
|
-
token_type: string;
|
|
252
|
-
scope: string;
|
|
253
|
-
}, {
|
|
254
|
-
access_token: string;
|
|
255
|
-
token_type: string;
|
|
256
|
-
scope: string;
|
|
257
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
258
77
|
email: z.ZodString;
|
|
259
78
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
-
},
|
|
261
|
-
id: string;
|
|
262
|
-
email: string;
|
|
263
|
-
tokenSet: {
|
|
264
|
-
access_token: string;
|
|
265
|
-
token_type: string;
|
|
266
|
-
scope: string;
|
|
267
|
-
};
|
|
268
|
-
name?: string | null | undefined;
|
|
269
|
-
}, {
|
|
270
|
-
id: string;
|
|
271
|
-
email: string;
|
|
272
|
-
tokenSet: {
|
|
273
|
-
access_token: string;
|
|
274
|
-
token_type: string;
|
|
275
|
-
scope: string;
|
|
276
|
-
};
|
|
277
|
-
name?: string | null | undefined;
|
|
278
|
-
}>>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
279
80
|
clientId: z.ZodOptional<z.ZodString>;
|
|
280
|
-
mutedNotifications: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString
|
|
281
|
-
},
|
|
282
|
-
preferences: {
|
|
283
|
-
player: {
|
|
284
|
-
subtitle: {
|
|
285
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
286
|
-
id: string | null;
|
|
287
|
-
};
|
|
288
|
-
minResolution?: number | undefined;
|
|
289
|
-
maxResolution?: number | undefined;
|
|
290
|
-
volumeRate?: number | undefined;
|
|
291
|
-
playbackRate?: number | undefined;
|
|
292
|
-
autoplay?: boolean | undefined;
|
|
293
|
-
muted?: boolean | undefined;
|
|
294
|
-
theater?: boolean | undefined;
|
|
295
|
-
defaultView?: string | undefined;
|
|
296
|
-
activeSidebarTab?: number | undefined;
|
|
297
|
-
};
|
|
298
|
-
offlineVideo: {
|
|
299
|
-
downloadResolution?: "best" | "high" | "medium" | "low" | undefined;
|
|
300
|
-
};
|
|
301
|
-
presence: {
|
|
302
|
-
optOut: boolean;
|
|
303
|
-
};
|
|
304
|
-
exerciseWarning: {
|
|
305
|
-
dismissed: boolean;
|
|
306
|
-
};
|
|
307
|
-
onboardingComplete: string[];
|
|
308
|
-
playground?: {
|
|
309
|
-
persist: boolean;
|
|
310
|
-
} | undefined;
|
|
311
|
-
fontSize?: number | undefined;
|
|
312
|
-
};
|
|
313
|
-
authInfo?: {
|
|
314
|
-
id: string;
|
|
315
|
-
email: string;
|
|
316
|
-
tokenSet: {
|
|
317
|
-
access_token: string;
|
|
318
|
-
token_type: string;
|
|
319
|
-
scope: string;
|
|
320
|
-
};
|
|
321
|
-
name?: string | null | undefined;
|
|
322
|
-
} | undefined;
|
|
323
|
-
authInfos?: Record<string, {
|
|
324
|
-
id: string;
|
|
325
|
-
email: string;
|
|
326
|
-
tokenSet: {
|
|
327
|
-
access_token: string;
|
|
328
|
-
token_type: string;
|
|
329
|
-
scope: string;
|
|
330
|
-
};
|
|
331
|
-
name?: string | null | undefined;
|
|
332
|
-
}> | undefined;
|
|
333
|
-
clientId?: string | undefined;
|
|
334
|
-
mutedNotifications?: string[] | undefined;
|
|
335
|
-
}, {
|
|
336
|
-
preferences?: {
|
|
337
|
-
player?: {
|
|
338
|
-
subtitle?: {
|
|
339
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
340
|
-
id?: string | null | undefined;
|
|
341
|
-
} | undefined;
|
|
342
|
-
minResolution?: number | undefined;
|
|
343
|
-
maxResolution?: number | undefined;
|
|
344
|
-
volumeRate?: number | undefined;
|
|
345
|
-
playbackRate?: number | undefined;
|
|
346
|
-
autoplay?: boolean | undefined;
|
|
347
|
-
muted?: boolean | undefined;
|
|
348
|
-
theater?: boolean | undefined;
|
|
349
|
-
defaultView?: string | undefined;
|
|
350
|
-
activeSidebarTab?: number | undefined;
|
|
351
|
-
} | undefined;
|
|
352
|
-
offlineVideo?: {
|
|
353
|
-
downloadResolution?: "best" | "high" | "medium" | "low" | undefined;
|
|
354
|
-
} | undefined;
|
|
355
|
-
presence?: {
|
|
356
|
-
optOut: boolean;
|
|
357
|
-
} | undefined;
|
|
358
|
-
playground?: {
|
|
359
|
-
persist?: boolean | undefined;
|
|
360
|
-
} | undefined;
|
|
361
|
-
fontSize?: number | undefined;
|
|
362
|
-
exerciseWarning?: {
|
|
363
|
-
dismissed?: boolean | undefined;
|
|
364
|
-
} | undefined;
|
|
365
|
-
onboardingComplete?: string[] | undefined;
|
|
366
|
-
} | undefined;
|
|
367
|
-
authInfo?: {
|
|
368
|
-
id: string;
|
|
369
|
-
email: string;
|
|
370
|
-
tokenSet: {
|
|
371
|
-
access_token: string;
|
|
372
|
-
token_type: string;
|
|
373
|
-
scope: string;
|
|
374
|
-
};
|
|
375
|
-
name?: string | null | undefined;
|
|
376
|
-
} | undefined;
|
|
377
|
-
authInfos?: Record<string, {
|
|
378
|
-
id: string;
|
|
379
|
-
email: string;
|
|
380
|
-
tokenSet: {
|
|
381
|
-
access_token: string;
|
|
382
|
-
token_type: string;
|
|
383
|
-
scope: string;
|
|
384
|
-
};
|
|
385
|
-
name?: string | null | undefined;
|
|
386
|
-
}> | undefined;
|
|
387
|
-
clientId?: string | undefined;
|
|
388
|
-
mutedNotifications?: string[] | undefined;
|
|
389
|
-
}>;
|
|
81
|
+
mutedNotifications: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
390
83
|
export declare function getClientId(): Promise<string>;
|
|
391
84
|
export declare function logout({ productHost }?: {
|
|
392
85
|
productHost?: string;
|
|
@@ -396,8 +89,8 @@ export declare function readDb(): Promise<{
|
|
|
396
89
|
preferences: {
|
|
397
90
|
player: {
|
|
398
91
|
subtitle: {
|
|
399
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
400
92
|
id: string | null;
|
|
93
|
+
mode: "disabled" | "hidden" | "showing" | null;
|
|
401
94
|
};
|
|
402
95
|
minResolution?: number | undefined;
|
|
403
96
|
maxResolution?: number | undefined;
|
|
@@ -426,22 +119,22 @@ export declare function readDb(): Promise<{
|
|
|
426
119
|
};
|
|
427
120
|
authInfo?: {
|
|
428
121
|
id: string;
|
|
429
|
-
email: string;
|
|
430
122
|
tokenSet: {
|
|
431
123
|
access_token: string;
|
|
432
124
|
token_type: string;
|
|
433
125
|
scope: string;
|
|
434
126
|
};
|
|
127
|
+
email: string;
|
|
435
128
|
name?: string | null | undefined;
|
|
436
129
|
} | undefined;
|
|
437
130
|
authInfos?: Record<string, {
|
|
438
131
|
id: string;
|
|
439
|
-
email: string;
|
|
440
132
|
tokenSet: {
|
|
441
133
|
access_token: string;
|
|
442
134
|
token_type: string;
|
|
443
135
|
scope: string;
|
|
444
136
|
};
|
|
137
|
+
email: string;
|
|
445
138
|
name?: string | null | undefined;
|
|
446
139
|
}> | undefined;
|
|
447
140
|
clientId?: string | undefined;
|
|
@@ -451,12 +144,12 @@ export declare function getAuthInfo({ productHost, }?: {
|
|
|
451
144
|
productHost?: string;
|
|
452
145
|
}): Promise<{
|
|
453
146
|
id: string;
|
|
454
|
-
email: string;
|
|
455
147
|
tokenSet: {
|
|
456
148
|
access_token: string;
|
|
457
149
|
token_type: string;
|
|
458
150
|
scope: string;
|
|
459
151
|
};
|
|
152
|
+
email: string;
|
|
460
153
|
name?: string | null | undefined;
|
|
461
154
|
} | null | undefined>;
|
|
462
155
|
/**
|
|
@@ -469,12 +162,12 @@ export declare function requireAuthInfo({ request, redirectTo, }: {
|
|
|
469
162
|
redirectTo?: string | null;
|
|
470
163
|
}): Promise<{
|
|
471
164
|
id: string;
|
|
472
|
-
email: string;
|
|
473
165
|
tokenSet: {
|
|
474
166
|
access_token: string;
|
|
475
167
|
token_type: string;
|
|
476
168
|
scope: string;
|
|
477
169
|
};
|
|
170
|
+
email: string;
|
|
478
171
|
name?: string | null | undefined;
|
|
479
172
|
}>;
|
|
480
173
|
export declare function setAuthInfo({ id, tokenSet, email, name, productHost, }: {
|
|
@@ -485,19 +178,19 @@ export declare function setAuthInfo({ id, tokenSet, email, name, productHost, }:
|
|
|
485
178
|
productHost?: string;
|
|
486
179
|
}): Promise<{
|
|
487
180
|
id: string;
|
|
488
|
-
email: string;
|
|
489
181
|
tokenSet: {
|
|
490
182
|
access_token: string;
|
|
491
183
|
token_type: string;
|
|
492
184
|
scope: string;
|
|
493
185
|
};
|
|
186
|
+
email: string;
|
|
494
187
|
name?: string | null | undefined;
|
|
495
188
|
}>;
|
|
496
189
|
export declare function getPreferences(): Promise<{
|
|
497
190
|
player: {
|
|
498
191
|
subtitle: {
|
|
499
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
500
192
|
id: string | null;
|
|
193
|
+
mode: "disabled" | "hidden" | "showing" | null;
|
|
501
194
|
};
|
|
502
195
|
minResolution?: number | undefined;
|
|
503
196
|
maxResolution?: number | undefined;
|
|
@@ -526,15 +219,15 @@ export declare function getPreferences(): Promise<{
|
|
|
526
219
|
} | null>;
|
|
527
220
|
export declare function setPreferences(preferences: z.input<typeof DataSchema>['preferences']): Promise<{
|
|
528
221
|
player: {
|
|
529
|
-
subtitle?: {
|
|
530
|
-
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
531
|
-
id?: string | null | undefined;
|
|
532
|
-
} | undefined;
|
|
533
222
|
minResolution?: number | undefined;
|
|
534
223
|
maxResolution?: number | undefined;
|
|
535
224
|
volumeRate?: number | undefined;
|
|
536
225
|
playbackRate?: number | undefined;
|
|
537
226
|
autoplay?: boolean | undefined;
|
|
227
|
+
subtitle?: {
|
|
228
|
+
id?: string | null | undefined;
|
|
229
|
+
mode?: "disabled" | "hidden" | "showing" | null | undefined;
|
|
230
|
+
} | undefined;
|
|
538
231
|
muted?: boolean | undefined;
|
|
539
232
|
theater?: boolean | undefined;
|
|
540
233
|
defaultView?: string | undefined;
|
|
@@ -564,8 +257,8 @@ export declare function markOnboardingComplete(featureId: string): Promise<{
|
|
|
564
257
|
onboardingComplete: string[];
|
|
565
258
|
player?: {
|
|
566
259
|
subtitle: {
|
|
567
|
-
mode: "disabled" | "hidden" | "showing" | null;
|
|
568
260
|
id: string | null;
|
|
261
|
+
mode: "disabled" | "hidden" | "showing" | null;
|
|
569
262
|
};
|
|
570
263
|
minResolution?: number | undefined;
|
|
571
264
|
maxResolution?: number | undefined;
|
package/dist/db.server.js
CHANGED
|
@@ -12,6 +12,27 @@ const TokenSetSchema = z.object({
|
|
|
12
12
|
token_type: z.string(),
|
|
13
13
|
scope: z.string(),
|
|
14
14
|
});
|
|
15
|
+
const defaultSubtitlePreferences = {
|
|
16
|
+
id: null,
|
|
17
|
+
mode: 'disabled',
|
|
18
|
+
};
|
|
19
|
+
const defaultPlayerPreferences = {
|
|
20
|
+
subtitle: defaultSubtitlePreferences,
|
|
21
|
+
};
|
|
22
|
+
const defaultOfflineVideoPreferences = {};
|
|
23
|
+
const defaultPresencePreferences = {
|
|
24
|
+
optOut: false,
|
|
25
|
+
};
|
|
26
|
+
const defaultExerciseWarningPreferences = {
|
|
27
|
+
dismissed: false,
|
|
28
|
+
};
|
|
29
|
+
const defaultPreferences = {
|
|
30
|
+
player: defaultPlayerPreferences,
|
|
31
|
+
offlineVideo: defaultOfflineVideoPreferences,
|
|
32
|
+
presence: defaultPresencePreferences,
|
|
33
|
+
exerciseWarning: defaultExerciseWarningPreferences,
|
|
34
|
+
onboardingComplete: [],
|
|
35
|
+
};
|
|
15
36
|
export const PlayerPreferencesSchema = z
|
|
16
37
|
.object({
|
|
17
38
|
minResolution: z.number().optional(),
|
|
@@ -29,28 +50,27 @@ export const PlayerPreferencesSchema = z
|
|
|
29
50
|
.nullable()
|
|
30
51
|
.default('disabled'),
|
|
31
52
|
})
|
|
32
|
-
.
|
|
33
|
-
.default({}),
|
|
53
|
+
.default(defaultSubtitlePreferences),
|
|
34
54
|
muted: z.boolean().optional(),
|
|
35
55
|
theater: z.boolean().optional(),
|
|
36
56
|
defaultView: z.string().optional(),
|
|
37
57
|
activeSidebarTab: z.number().optional(),
|
|
38
58
|
})
|
|
39
59
|
.optional()
|
|
40
|
-
.default(
|
|
60
|
+
.default(defaultPlayerPreferences);
|
|
41
61
|
const OfflineVideoResolutionSchema = z.enum(['best', 'high', 'medium', 'low']);
|
|
42
62
|
const OfflineVideoPreferencesSchema = z
|
|
43
63
|
.object({
|
|
44
64
|
downloadResolution: OfflineVideoResolutionSchema.optional(),
|
|
45
65
|
})
|
|
46
66
|
.optional()
|
|
47
|
-
.default(
|
|
67
|
+
.default(defaultOfflineVideoPreferences);
|
|
48
68
|
const PresencePreferencesSchema = z
|
|
49
69
|
.object({
|
|
50
70
|
optOut: z.boolean(),
|
|
51
71
|
})
|
|
52
72
|
.optional()
|
|
53
|
-
.default(
|
|
73
|
+
.default(defaultPresencePreferences);
|
|
54
74
|
const AuthInfoSchema = z.object({
|
|
55
75
|
id: z.string(),
|
|
56
76
|
tokenSet: TokenSetSchema,
|
|
@@ -75,12 +95,12 @@ const DataSchema = z.object({
|
|
|
75
95
|
dismissed: z.boolean().default(false),
|
|
76
96
|
})
|
|
77
97
|
.optional()
|
|
78
|
-
.default(
|
|
98
|
+
.default(defaultExerciseWarningPreferences),
|
|
79
99
|
// Array of completed onboarding feature IDs (e.g., ['files-popover', 'persist-playground'])
|
|
80
100
|
onboardingComplete: z.array(z.string()).optional().default([]),
|
|
81
101
|
})
|
|
82
102
|
.optional()
|
|
83
|
-
.default(
|
|
103
|
+
.default(defaultPreferences),
|
|
84
104
|
// deprecated. Probably safe to remove in May 2026:
|
|
85
105
|
authInfo: AuthInfoSchema.optional(),
|
|
86
106
|
// new:
|
package/dist/env.server.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const schema: z.
|
|
2
|
+
declare const schema: z.ZodPipe<z.ZodObject<{
|
|
3
3
|
EPICSHOP_CONTEXT_CWD: z.ZodDefault<z.ZodString>;
|
|
4
4
|
EPICSHOP_WORKSHOP_INSTANCE_ID: z.ZodDefault<z.ZodString>;
|
|
5
|
-
NODE_ENV: z.ZodDefault<z.ZodEnum<
|
|
5
|
+
NODE_ENV: z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
production: "production";
|
|
7
|
+
development: "development";
|
|
8
|
+
test: "test";
|
|
9
|
+
}>>;
|
|
6
10
|
EPICSHOP_GITHUB_REPO: z.ZodDefault<z.ZodString>;
|
|
7
11
|
EPICSHOP_GITHUB_ROOT: z.ZodDefault<z.ZodString>;
|
|
8
12
|
EPICSHOP_APP_VERSION: z.ZodOptional<z.ZodString>;
|
|
@@ -15,7 +19,7 @@ declare const schema: z.ZodEffects<z.ZodObject<{
|
|
|
15
19
|
SENTRY_ORG: z.ZodDefault<z.ZodString>;
|
|
16
20
|
SENTRY_PROJECT: z.ZodDefault<z.ZodString>;
|
|
17
21
|
SENTRY_PROJECT_ID: z.ZodDefault<z.ZodString>;
|
|
18
|
-
},
|
|
22
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
19
23
|
EPICSHOP_CONTEXT_CWD: string;
|
|
20
24
|
EPICSHOP_WORKSHOP_INSTANCE_ID: string;
|
|
21
25
|
NODE_ENV: "production" | "development" | "test";
|
|
@@ -32,22 +36,6 @@ declare const schema: z.ZodEffects<z.ZodObject<{
|
|
|
32
36
|
EPICSHOP_PARENT_TOKEN?: string | undefined;
|
|
33
37
|
EPICSHOP_APP_LOCATION?: string | undefined;
|
|
34
38
|
}, {
|
|
35
|
-
EPICSHOP_CONTEXT_CWD?: string | undefined;
|
|
36
|
-
EPICSHOP_WORKSHOP_INSTANCE_ID?: string | undefined;
|
|
37
|
-
NODE_ENV?: "production" | "development" | "test" | undefined;
|
|
38
|
-
EPICSHOP_GITHUB_REPO?: string | undefined;
|
|
39
|
-
EPICSHOP_GITHUB_ROOT?: string | undefined;
|
|
40
|
-
EPICSHOP_APP_VERSION?: string | undefined;
|
|
41
|
-
EPICSHOP_PARENT_PORT?: string | undefined;
|
|
42
|
-
EPICSHOP_PARENT_TOKEN?: string | undefined;
|
|
43
|
-
EPICSHOP_APP_LOCATION?: string | undefined;
|
|
44
|
-
EPICSHOP_HOME_DIR?: string | undefined;
|
|
45
|
-
EPICSHOP_IS_PUBLISHED?: string | undefined;
|
|
46
|
-
SENTRY_DSN?: string | undefined;
|
|
47
|
-
SENTRY_ORG?: string | undefined;
|
|
48
|
-
SENTRY_PROJECT?: string | undefined;
|
|
49
|
-
SENTRY_PROJECT_ID?: string | undefined;
|
|
50
|
-
}>, {
|
|
51
39
|
EPICSHOP_CONTEXT_CWD: string;
|
|
52
40
|
EPICSHOP_WORKSHOP_INSTANCE_ID: string;
|
|
53
41
|
NODE_ENV: "production" | "development" | "test";
|
|
@@ -63,23 +51,7 @@ declare const schema: z.ZodEffects<z.ZodObject<{
|
|
|
63
51
|
EPICSHOP_PARENT_PORT?: string | undefined;
|
|
64
52
|
EPICSHOP_PARENT_TOKEN?: string | undefined;
|
|
65
53
|
EPICSHOP_APP_LOCATION?: string | undefined;
|
|
66
|
-
}
|
|
67
|
-
EPICSHOP_CONTEXT_CWD?: string | undefined;
|
|
68
|
-
EPICSHOP_WORKSHOP_INSTANCE_ID?: string | undefined;
|
|
69
|
-
NODE_ENV?: "production" | "development" | "test" | undefined;
|
|
70
|
-
EPICSHOP_GITHUB_REPO?: string | undefined;
|
|
71
|
-
EPICSHOP_GITHUB_ROOT?: string | undefined;
|
|
72
|
-
EPICSHOP_APP_VERSION?: string | undefined;
|
|
73
|
-
EPICSHOP_PARENT_PORT?: string | undefined;
|
|
74
|
-
EPICSHOP_PARENT_TOKEN?: string | undefined;
|
|
75
|
-
EPICSHOP_APP_LOCATION?: string | undefined;
|
|
76
|
-
EPICSHOP_HOME_DIR?: string | undefined;
|
|
77
|
-
EPICSHOP_IS_PUBLISHED?: string | undefined;
|
|
78
|
-
SENTRY_DSN?: string | undefined;
|
|
79
|
-
SENTRY_ORG?: string | undefined;
|
|
80
|
-
SENTRY_PROJECT?: string | undefined;
|
|
81
|
-
SENTRY_PROJECT_ID?: string | undefined;
|
|
82
|
-
}>;
|
|
54
|
+
}>>;
|
|
83
55
|
declare global {
|
|
84
56
|
namespace NodeJS {
|
|
85
57
|
interface ProcessEnv extends z.infer<typeof schema> {
|