@r2wa-org/eden 0.0.104 → 0.0.111

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.
Files changed (54) hide show
  1. package/dist/admin/index.d.ts +427 -19
  2. package/dist/asset-convert-product/admin/dto.schemas.d.ts +12 -0
  3. package/dist/asset-convert-product/admin/router.d.ts +12 -12
  4. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  5. package/dist/auth/better-auth.d.ts +7 -1
  6. package/dist/auth/permissions.d.ts +6 -1
  7. package/dist/auth/roles.d.ts +15 -0
  8. package/dist/check-in/user/router.d.ts +1 -13
  9. package/dist/content-video/internal/service.d.ts +2 -2
  10. package/dist/db/schemas.d.ts +1 -0
  11. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  12. package/dist/file-storage/admin/router.d.ts +2 -2
  13. package/dist/file-storage/admin/service.d.ts +2 -2
  14. package/dist/file-storage/db.schemas.d.ts +4 -4
  15. package/dist/file-storage/internal/service.d.ts +1 -1
  16. package/dist/file-storage/s3.client.d.ts +22 -0
  17. package/dist/file-storage/schema.d.ts +3 -3
  18. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  19. package/dist/file-storage/share/router.d.ts +1 -1
  20. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  21. package/dist/file-storage/user/router.d.ts +4 -16
  22. package/dist/file-storage/user/service.d.ts +2 -2
  23. package/dist/index.d.ts +519 -25
  24. package/dist/ledger/admin/dto.schemas.d.ts +12 -0
  25. package/dist/ledger/admin/router.d.ts +4 -4
  26. package/dist/ledger/db.schemas.d.ts +8 -8
  27. package/dist/ledger/schema.d.ts +6 -6
  28. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  29. package/dist/ledger/user/router.d.ts +2 -2
  30. package/dist/ledger/user/service.d.ts +2 -2
  31. package/dist/live-stream-video/admin/dto.schemas.d.ts +128 -0
  32. package/dist/live-stream-video/admin/router.d.ts +861 -0
  33. package/dist/live-stream-video/admin/service.d.ts +211 -0
  34. package/dist/live-stream-video/db.schemas.d.ts +486 -0
  35. package/dist/live-stream-video/errors/index.d.ts +17 -0
  36. package/dist/live-stream-video/errors/locales/zh.d.ts +16 -0
  37. package/dist/live-stream-video/index.d.ts +8 -0
  38. package/dist/live-stream-video/internal/service.d.ts +108 -0
  39. package/dist/live-stream-video/permissions.d.ts +4 -0
  40. package/dist/live-stream-video/schema.d.ts +257 -0
  41. package/dist/live-stream-video/user/dto.schemas.d.ts +52 -0
  42. package/dist/live-stream-video/user/router.d.ts +482 -0
  43. package/dist/live-stream-video/user/service.d.ts +36 -0
  44. package/dist/news/admin/router.d.ts +1 -1
  45. package/dist/news/admin/service.d.ts +1 -1
  46. package/dist/news/user/service.d.ts +2 -2
  47. package/dist/server-test/index.d.ts +13 -1
  48. package/dist/team/milestone-reward/admin/reward.router.d.ts +13 -1
  49. package/dist/team/milestone-reward/admin/reward.service.d.ts +0 -1
  50. package/dist/team/milestone-reward/internal/reward.service.d.ts +33 -0
  51. package/dist/team/milestone-reward/schema.d.ts +288 -0
  52. package/dist/trade-market/admin/router.d.ts +13 -1
  53. package/dist/welfare-cycle/admin/router.d.ts +1 -13
  54. package/package.json +1 -1
@@ -0,0 +1,482 @@
1
+ import Elysia from 'elysia';
2
+ export declare const liveStreamVideoRouter: Elysia<"/live_stream_videos", {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ typebox: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ standaloneSchema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ parser: {};
16
+ response: {};
17
+ } & {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: Partial<{
21
+ readonly auth: boolean;
22
+ readonly admin: boolean;
23
+ }>;
24
+ macroFn: {
25
+ readonly auth: {
26
+ readonly resolve: ({ status, request: { headers } }: {
27
+ body: unknown;
28
+ query: Record<string, string>;
29
+ params: {};
30
+ headers: Record<string, string | undefined>;
31
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
32
+ server: import("elysia/universal/server").Server | null;
33
+ redirect: import("elysia").redirect;
34
+ set: {
35
+ headers: import("elysia").HTTPHeaders;
36
+ status?: number | keyof import("elysia").StatusMap;
37
+ redirect?: string;
38
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
39
+ };
40
+ path: string;
41
+ route: string;
42
+ request: Request;
43
+ store: {};
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
45
+ readonly 100: "Continue";
46
+ readonly 101: "Switching Protocols";
47
+ readonly 102: "Processing";
48
+ readonly 103: "Early Hints";
49
+ readonly 200: "OK";
50
+ readonly 201: "Created";
51
+ readonly 202: "Accepted";
52
+ readonly 203: "Non-Authoritative Information";
53
+ readonly 204: "No Content";
54
+ readonly 205: "Reset Content";
55
+ readonly 206: "Partial Content";
56
+ readonly 207: "Multi-Status";
57
+ readonly 208: "Already Reported";
58
+ readonly 300: "Multiple Choices";
59
+ readonly 301: "Moved Permanently";
60
+ readonly 302: "Found";
61
+ readonly 303: "See Other";
62
+ readonly 304: "Not Modified";
63
+ readonly 307: "Temporary Redirect";
64
+ readonly 308: "Permanent Redirect";
65
+ readonly 400: "Bad Request";
66
+ readonly 401: "Unauthorized";
67
+ readonly 402: "Payment Required";
68
+ readonly 403: "Forbidden";
69
+ readonly 404: "Not Found";
70
+ readonly 405: "Method Not Allowed";
71
+ readonly 406: "Not Acceptable";
72
+ readonly 407: "Proxy Authentication Required";
73
+ readonly 408: "Request Timeout";
74
+ readonly 409: "Conflict";
75
+ readonly 410: "Gone";
76
+ readonly 411: "Length Required";
77
+ readonly 412: "Precondition Failed";
78
+ readonly 413: "Payload Too Large";
79
+ readonly 414: "URI Too Long";
80
+ readonly 415: "Unsupported Media Type";
81
+ readonly 416: "Range Not Satisfiable";
82
+ readonly 417: "Expectation Failed";
83
+ readonly 418: "I'm a teapot";
84
+ readonly 420: "Enhance Your Calm";
85
+ readonly 421: "Misdirected Request";
86
+ readonly 422: "Unprocessable Content";
87
+ readonly 423: "Locked";
88
+ readonly 424: "Failed Dependency";
89
+ readonly 425: "Too Early";
90
+ readonly 426: "Upgrade Required";
91
+ readonly 428: "Precondition Required";
92
+ readonly 429: "Too Many Requests";
93
+ readonly 431: "Request Header Fields Too Large";
94
+ readonly 451: "Unavailable For Legal Reasons";
95
+ readonly 500: "Internal Server Error";
96
+ readonly 501: "Not Implemented";
97
+ readonly 502: "Bad Gateway";
98
+ readonly 503: "Service Unavailable";
99
+ readonly 504: "Gateway Timeout";
100
+ readonly 505: "HTTP Version Not Supported";
101
+ readonly 506: "Variant Also Negotiates";
102
+ readonly 507: "Insufficient Storage";
103
+ readonly 508: "Loop Detected";
104
+ readonly 510: "Not Extended";
105
+ readonly 511: "Network Authentication Required";
106
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
107
+ readonly Continue: 100;
108
+ readonly 'Switching Protocols': 101;
109
+ readonly Processing: 102;
110
+ readonly 'Early Hints': 103;
111
+ readonly OK: 200;
112
+ readonly Created: 201;
113
+ readonly Accepted: 202;
114
+ readonly 'Non-Authoritative Information': 203;
115
+ readonly 'No Content': 204;
116
+ readonly 'Reset Content': 205;
117
+ readonly 'Partial Content': 206;
118
+ readonly 'Multi-Status': 207;
119
+ readonly 'Already Reported': 208;
120
+ readonly 'Multiple Choices': 300;
121
+ readonly 'Moved Permanently': 301;
122
+ readonly Found: 302;
123
+ readonly 'See Other': 303;
124
+ readonly 'Not Modified': 304;
125
+ readonly 'Temporary Redirect': 307;
126
+ readonly 'Permanent Redirect': 308;
127
+ readonly 'Bad Request': 400;
128
+ readonly Unauthorized: 401;
129
+ readonly 'Payment Required': 402;
130
+ readonly Forbidden: 403;
131
+ readonly 'Not Found': 404;
132
+ readonly 'Method Not Allowed': 405;
133
+ readonly 'Not Acceptable': 406;
134
+ readonly 'Proxy Authentication Required': 407;
135
+ readonly 'Request Timeout': 408;
136
+ readonly Conflict: 409;
137
+ readonly Gone: 410;
138
+ readonly 'Length Required': 411;
139
+ readonly 'Precondition Failed': 412;
140
+ readonly 'Payload Too Large': 413;
141
+ readonly 'URI Too Long': 414;
142
+ readonly 'Unsupported Media Type': 415;
143
+ readonly 'Range Not Satisfiable': 416;
144
+ readonly 'Expectation Failed': 417;
145
+ readonly "I'm a teapot": 418;
146
+ readonly 'Enhance Your Calm': 420;
147
+ readonly 'Misdirected Request': 421;
148
+ readonly 'Unprocessable Content': 422;
149
+ readonly Locked: 423;
150
+ readonly 'Failed Dependency': 424;
151
+ readonly 'Too Early': 425;
152
+ readonly 'Upgrade Required': 426;
153
+ readonly 'Precondition Required': 428;
154
+ readonly 'Too Many Requests': 429;
155
+ readonly 'Request Header Fields Too Large': 431;
156
+ readonly 'Unavailable For Legal Reasons': 451;
157
+ readonly 'Internal Server Error': 500;
158
+ readonly 'Not Implemented': 501;
159
+ readonly 'Bad Gateway': 502;
160
+ readonly 'Service Unavailable': 503;
161
+ readonly 'Gateway Timeout': 504;
162
+ readonly 'HTTP Version Not Supported': 505;
163
+ readonly 'Variant Also Negotiates': 506;
164
+ readonly 'Insufficient Storage': 507;
165
+ readonly 'Loop Detected': 508;
166
+ readonly 'Not Extended': 510;
167
+ readonly 'Network Authentication Required': 511;
168
+ }[Code] : Code>;
169
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
170
+ user: {
171
+ id: string;
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ email: string;
175
+ emailVerified: boolean;
176
+ name: string;
177
+ image?: string | null | undefined;
178
+ banExpires?: Date | null | undefined;
179
+ banReason?: string | null | undefined;
180
+ banned: boolean | null | undefined;
181
+ displayUsername?: string | null | undefined;
182
+ phoneNumber?: string | null | undefined;
183
+ phoneNumberVerified?: boolean | null | undefined;
184
+ role?: string | null | undefined;
185
+ twoFactorEnabled: boolean | null | undefined;
186
+ username?: string | null | undefined;
187
+ };
188
+ session: {
189
+ id: string;
190
+ createdAt: Date;
191
+ updatedAt: Date;
192
+ userId: string;
193
+ expiresAt: Date;
194
+ token: string;
195
+ ipAddress?: string | null | undefined;
196
+ userAgent?: string | null | undefined;
197
+ impersonatedBy?: string | null | undefined;
198
+ };
199
+ }>;
200
+ };
201
+ readonly admin: {
202
+ readonly resolve: ({ status, request: { headers } }: {
203
+ body: unknown;
204
+ query: Record<string, string>;
205
+ params: {};
206
+ headers: Record<string, string | undefined>;
207
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
208
+ server: import("elysia/universal/server").Server | null;
209
+ redirect: import("elysia").redirect;
210
+ set: {
211
+ headers: import("elysia").HTTPHeaders;
212
+ status?: number | keyof import("elysia").StatusMap;
213
+ redirect?: string;
214
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
215
+ };
216
+ path: string;
217
+ route: string;
218
+ request: Request;
219
+ store: {};
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
221
+ readonly 100: "Continue";
222
+ readonly 101: "Switching Protocols";
223
+ readonly 102: "Processing";
224
+ readonly 103: "Early Hints";
225
+ readonly 200: "OK";
226
+ readonly 201: "Created";
227
+ readonly 202: "Accepted";
228
+ readonly 203: "Non-Authoritative Information";
229
+ readonly 204: "No Content";
230
+ readonly 205: "Reset Content";
231
+ readonly 206: "Partial Content";
232
+ readonly 207: "Multi-Status";
233
+ readonly 208: "Already Reported";
234
+ readonly 300: "Multiple Choices";
235
+ readonly 301: "Moved Permanently";
236
+ readonly 302: "Found";
237
+ readonly 303: "See Other";
238
+ readonly 304: "Not Modified";
239
+ readonly 307: "Temporary Redirect";
240
+ readonly 308: "Permanent Redirect";
241
+ readonly 400: "Bad Request";
242
+ readonly 401: "Unauthorized";
243
+ readonly 402: "Payment Required";
244
+ readonly 403: "Forbidden";
245
+ readonly 404: "Not Found";
246
+ readonly 405: "Method Not Allowed";
247
+ readonly 406: "Not Acceptable";
248
+ readonly 407: "Proxy Authentication Required";
249
+ readonly 408: "Request Timeout";
250
+ readonly 409: "Conflict";
251
+ readonly 410: "Gone";
252
+ readonly 411: "Length Required";
253
+ readonly 412: "Precondition Failed";
254
+ readonly 413: "Payload Too Large";
255
+ readonly 414: "URI Too Long";
256
+ readonly 415: "Unsupported Media Type";
257
+ readonly 416: "Range Not Satisfiable";
258
+ readonly 417: "Expectation Failed";
259
+ readonly 418: "I'm a teapot";
260
+ readonly 420: "Enhance Your Calm";
261
+ readonly 421: "Misdirected Request";
262
+ readonly 422: "Unprocessable Content";
263
+ readonly 423: "Locked";
264
+ readonly 424: "Failed Dependency";
265
+ readonly 425: "Too Early";
266
+ readonly 426: "Upgrade Required";
267
+ readonly 428: "Precondition Required";
268
+ readonly 429: "Too Many Requests";
269
+ readonly 431: "Request Header Fields Too Large";
270
+ readonly 451: "Unavailable For Legal Reasons";
271
+ readonly 500: "Internal Server Error";
272
+ readonly 501: "Not Implemented";
273
+ readonly 502: "Bad Gateway";
274
+ readonly 503: "Service Unavailable";
275
+ readonly 504: "Gateway Timeout";
276
+ readonly 505: "HTTP Version Not Supported";
277
+ readonly 506: "Variant Also Negotiates";
278
+ readonly 507: "Insufficient Storage";
279
+ readonly 508: "Loop Detected";
280
+ readonly 510: "Not Extended";
281
+ readonly 511: "Network Authentication Required";
282
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
283
+ readonly Continue: 100;
284
+ readonly 'Switching Protocols': 101;
285
+ readonly Processing: 102;
286
+ readonly 'Early Hints': 103;
287
+ readonly OK: 200;
288
+ readonly Created: 201;
289
+ readonly Accepted: 202;
290
+ readonly 'Non-Authoritative Information': 203;
291
+ readonly 'No Content': 204;
292
+ readonly 'Reset Content': 205;
293
+ readonly 'Partial Content': 206;
294
+ readonly 'Multi-Status': 207;
295
+ readonly 'Already Reported': 208;
296
+ readonly 'Multiple Choices': 300;
297
+ readonly 'Moved Permanently': 301;
298
+ readonly Found: 302;
299
+ readonly 'See Other': 303;
300
+ readonly 'Not Modified': 304;
301
+ readonly 'Temporary Redirect': 307;
302
+ readonly 'Permanent Redirect': 308;
303
+ readonly 'Bad Request': 400;
304
+ readonly Unauthorized: 401;
305
+ readonly 'Payment Required': 402;
306
+ readonly Forbidden: 403;
307
+ readonly 'Not Found': 404;
308
+ readonly 'Method Not Allowed': 405;
309
+ readonly 'Not Acceptable': 406;
310
+ readonly 'Proxy Authentication Required': 407;
311
+ readonly 'Request Timeout': 408;
312
+ readonly Conflict: 409;
313
+ readonly Gone: 410;
314
+ readonly 'Length Required': 411;
315
+ readonly 'Precondition Failed': 412;
316
+ readonly 'Payload Too Large': 413;
317
+ readonly 'URI Too Long': 414;
318
+ readonly 'Unsupported Media Type': 415;
319
+ readonly 'Range Not Satisfiable': 416;
320
+ readonly 'Expectation Failed': 417;
321
+ readonly "I'm a teapot": 418;
322
+ readonly 'Enhance Your Calm': 420;
323
+ readonly 'Misdirected Request': 421;
324
+ readonly 'Unprocessable Content': 422;
325
+ readonly Locked: 423;
326
+ readonly 'Failed Dependency': 424;
327
+ readonly 'Too Early': 425;
328
+ readonly 'Upgrade Required': 426;
329
+ readonly 'Precondition Required': 428;
330
+ readonly 'Too Many Requests': 429;
331
+ readonly 'Request Header Fields Too Large': 431;
332
+ readonly 'Unavailable For Legal Reasons': 451;
333
+ readonly 'Internal Server Error': 500;
334
+ readonly 'Not Implemented': 501;
335
+ readonly 'Bad Gateway': 502;
336
+ readonly 'Service Unavailable': 503;
337
+ readonly 'Gateway Timeout': 504;
338
+ readonly 'HTTP Version Not Supported': 505;
339
+ readonly 'Variant Also Negotiates': 506;
340
+ readonly 'Insufficient Storage': 507;
341
+ readonly 'Loop Detected': 508;
342
+ readonly 'Not Extended': 510;
343
+ readonly 'Network Authentication Required': 511;
344
+ }[Code] : Code>;
345
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
346
+ user: {
347
+ id: string;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ email: string;
351
+ emailVerified: boolean;
352
+ name: string;
353
+ image?: string | null | undefined;
354
+ banExpires?: Date | null | undefined;
355
+ banReason?: string | null | undefined;
356
+ banned: boolean | null | undefined;
357
+ displayUsername?: string | null | undefined;
358
+ phoneNumber?: string | null | undefined;
359
+ phoneNumberVerified?: boolean | null | undefined;
360
+ role?: string | null | undefined;
361
+ twoFactorEnabled: boolean | null | undefined;
362
+ username?: string | null | undefined;
363
+ };
364
+ session: {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ userId: string;
369
+ expiresAt: Date;
370
+ token: string;
371
+ ipAddress?: string | null | undefined;
372
+ userAgent?: string | null | undefined;
373
+ impersonatedBy?: string | null | undefined;
374
+ };
375
+ }>;
376
+ };
377
+ };
378
+ parser: {};
379
+ response: {};
380
+ }, {
381
+ live_stream_videos: {};
382
+ } & {
383
+ live_stream_videos: {
384
+ get: {
385
+ body: {};
386
+ params: {};
387
+ query: {
388
+ limit?: number | undefined;
389
+ offset?: number | undefined;
390
+ pageSize?: number | undefined;
391
+ pageIndex?: number | undefined;
392
+ };
393
+ headers: {};
394
+ response: {
395
+ 200: {
396
+ data: {
397
+ id: string;
398
+ title: string;
399
+ description?: string | undefined;
400
+ videoUrl: string;
401
+ coverUrl?: string | undefined;
402
+ mimeType?: string | undefined;
403
+ fileSize?: number | undefined;
404
+ durationSeconds?: number | undefined;
405
+ sortOrder: number;
406
+ publishedAt?: Date | undefined;
407
+ }[];
408
+ pagination: {
409
+ pageSize: number;
410
+ pageIndex: number;
411
+ total: number;
412
+ totalPages: number;
413
+ hasNextPage: boolean;
414
+ };
415
+ };
416
+ 422: {
417
+ type: 'validation';
418
+ on: string;
419
+ summary?: string;
420
+ message?: string;
421
+ found?: unknown;
422
+ property?: string;
423
+ expected?: string;
424
+ };
425
+ };
426
+ };
427
+ };
428
+ } & {
429
+ live_stream_videos: {
430
+ ":id": {
431
+ get: {
432
+ body: {};
433
+ params: {
434
+ id: string;
435
+ };
436
+ query: {};
437
+ headers: {};
438
+ response: {
439
+ 200: {
440
+ id: string;
441
+ title: string;
442
+ description?: string | undefined;
443
+ videoUrl: string;
444
+ coverUrl?: string | undefined;
445
+ mimeType?: string | undefined;
446
+ fileSize?: number | undefined;
447
+ durationSeconds?: number | undefined;
448
+ sortOrder: number;
449
+ publishedAt?: Date | undefined;
450
+ };
451
+ 422: {
452
+ type: 'validation';
453
+ on: string;
454
+ summary?: string;
455
+ message?: string;
456
+ found?: unknown;
457
+ property?: string;
458
+ expected?: string;
459
+ };
460
+ };
461
+ };
462
+ };
463
+ };
464
+ }, {
465
+ derive: {};
466
+ resolve: {};
467
+ schema: {};
468
+ standaloneSchema: {};
469
+ response: {};
470
+ }, {
471
+ derive: {};
472
+ resolve: {};
473
+ schema: {};
474
+ standaloneSchema: {};
475
+ response: {};
476
+ } & {
477
+ derive: {};
478
+ resolve: {};
479
+ schema: {};
480
+ standaloneSchema: {};
481
+ response: {};
482
+ }>;
@@ -0,0 +1,36 @@
1
+ import type { LiveStreamVideoPublicListQueryType } from './dto.schemas';
2
+ export declare abstract class UserLiveStreamVideoService {
3
+ static listPublishedVideos(query?: LiveStreamVideoPublicListQueryType): Promise<{
4
+ data: {
5
+ id: string;
6
+ title: string;
7
+ description: string | undefined;
8
+ videoUrl: string;
9
+ coverUrl: string | undefined;
10
+ mimeType: string | undefined;
11
+ fileSize: number | undefined;
12
+ durationSeconds: number | undefined;
13
+ sortOrder: number;
14
+ publishedAt: Date | undefined;
15
+ }[];
16
+ pagination: {
17
+ pageSize: number;
18
+ pageIndex: number;
19
+ total: number;
20
+ totalPages: number;
21
+ hasNextPage: boolean;
22
+ };
23
+ }>;
24
+ static getPublishedVideo(id: string): Promise<{
25
+ id: string;
26
+ title: string;
27
+ description: string | undefined;
28
+ videoUrl: string;
29
+ coverUrl: string | undefined;
30
+ mimeType: string | undefined;
31
+ fileSize: number | undefined;
32
+ durationSeconds: number | undefined;
33
+ sortOrder: number;
34
+ publishedAt: Date | undefined;
35
+ }>;
36
+ }
@@ -539,7 +539,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
539
539
  archivedAt: Date | null;
540
540
  businessId: string | null;
541
541
  businessMetadata: string | null;
542
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
542
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
543
543
  createdAt: Date;
544
544
  deletedAt: Date | null;
545
545
  downloadCount: number | null;
@@ -91,7 +91,7 @@ export declare abstract class AdminNewsService extends BaseNewsService {
91
91
  archivedAt: Date | null;
92
92
  businessId: string | null;
93
93
  businessMetadata: string | null;
94
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
94
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
95
95
  createdAt: Date;
96
96
  deletedAt: Date | null;
97
97
  downloadCount: number | null;
@@ -85,7 +85,7 @@ export declare abstract class UserNewsService extends BaseNewsService {
85
85
  archivedAt: Date | null;
86
86
  businessId: string | null;
87
87
  businessMetadata: string | null;
88
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
88
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
89
89
  createdAt: Date;
90
90
  deletedAt: Date | null;
91
91
  downloadCount: number | null;
@@ -152,7 +152,7 @@ export declare abstract class UserNewsService extends BaseNewsService {
152
152
  archivedAt: Date | null;
153
153
  businessId: string | null;
154
154
  businessMetadata: string | null;
155
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
155
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
156
156
  createdAt: Date;
157
157
  deletedAt: Date | null;
158
158
  downloadCount: number | null;
@@ -35,7 +35,19 @@ export declare const serverTest: Elysia<"", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
38
+ cookie?: Record<string, {
39
+ domain?: string | undefined;
40
+ expires?: Date | undefined;
41
+ httpOnly?: boolean | undefined;
42
+ maxAge?: number | undefined;
43
+ path?: string | undefined;
44
+ priority?: 'low' | 'medium' | 'high' | undefined;
45
+ partitioned?: boolean | undefined;
46
+ sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
+ secure?: boolean | undefined;
48
+ secrets?: string | null | (string | null)[];
49
+ value?: unknown;
50
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;
@@ -35,7 +35,19 @@ export declare const teamMilestoneRewardPlanAdminRouter: Elysia<"/milestone-rewa
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
38
+ cookie?: Record<string, {
39
+ domain?: string | undefined;
40
+ expires?: Date | undefined;
41
+ httpOnly?: boolean | undefined;
42
+ maxAge?: number | undefined;
43
+ path?: string | undefined;
44
+ priority?: 'low' | 'medium' | 'high' | undefined;
45
+ partitioned?: boolean | undefined;
46
+ sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
+ secure?: boolean | undefined;
48
+ secrets?: string | null | (string | null)[];
49
+ value?: unknown;
50
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;
@@ -1,7 +1,6 @@
1
1
  import type { TeamMilestoneRewardPlanCreateInputType, TeamMilestoneRewardPlanUpdateInputType, TeamMilestoneRewardRuleCreateInputType, TeamMilestoneRewardRuleUpdateInputType } from './reward.dto.schemas';
2
2
  export declare abstract class AdminTeamMilestoneRewardConfigService {
3
3
  private static formatPlanRow;
4
- private static sortRules;
5
4
  private static loadPlanDetail;
6
5
  private static touchPlanUpdatedBy;
7
6
  private static validatePlanAssetsAndAccounts;
@@ -1,8 +1,40 @@
1
+ import type { TransactionTx } from '../../../db/transaction';
2
+ type TeamMilestoneRewardGrantItem = {
3
+ grantId: string;
4
+ userId: string;
5
+ ruleId: string;
6
+ thresholdMemberCount: number;
7
+ memberCountSnapshot: number;
8
+ platformAmount: string;
9
+ valueAddedAmount: string;
10
+ rewardDescription: string | null;
11
+ platformLedgerEntryId: string | null;
12
+ valueAddedLedgerEntryId: string | null;
13
+ isIdempotent: boolean;
14
+ };
15
+ export type TeamMilestoneRewardPayoutResult = {
16
+ grants: TeamMilestoneRewardGrantItem[];
17
+ };
1
18
  export declare abstract class InternalTeamMilestoneRewardService {
2
19
  static sortRules<T extends {
3
20
  sortOrder: number;
4
21
  thresholdMemberCount: number;
5
22
  }>(rules: T[]): T[];
23
+ private static buildGrantIdempotencyKey;
24
+ private static buildPlatformPayoutIdempotencyKey;
25
+ private static buildValueAddedPayoutIdempotencyKey;
26
+ private static resolveActivePlanInTx;
27
+ static countTeamMembers(tx: TransactionTx, userId: string, maxDepth: number): Promise<number>;
28
+ private static payoutAmount;
29
+ private static processGrantForLeader;
30
+ private static processRewardsForLeader;
31
+ /**
32
+ * 新人绑定邀请码成功后,为受影响的团队长检查并发放里程碑奖励
33
+ */
34
+ static onReferralMemberJoined(tx: TransactionTx, params: {
35
+ newUserId: string;
36
+ referralBindLogId: string;
37
+ }): Promise<TeamMilestoneRewardPayoutResult>;
6
38
  /** 查询已启用的团队里程碑奖励方案(含已启用规则),未配置或未启用时返回 null */
7
39
  static getActivePlan(): Promise<{
8
40
  id: string;
@@ -36,3 +68,4 @@ export declare abstract class InternalTeamMilestoneRewardService {
36
68
  }[];
37
69
  } | null>;
38
70
  }
71
+ export {};