@r2wa-org/eden 0.0.54 → 0.0.57

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 (145) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
  2. package/dist/src/admin/admin/router.d.ts +19 -24
  3. package/dist/src/admin/admin/service.d.ts +0 -2
  4. package/dist/src/admin/index.d.ts +1329 -343
  5. package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
  6. package/dist/src/asset/admin/router.d.ts +132 -32
  7. package/dist/src/asset/admin/service.d.ts +52 -4
  8. package/dist/src/asset/user/dto.schemas.d.ts +7 -15
  9. package/dist/src/asset/user/router.d.ts +15 -15
  10. package/dist/src/asset/user/service.d.ts +1 -1
  11. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
  12. package/dist/src/asset-convert-product/admin/router.d.ts +581 -42
  13. package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
  14. package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
  16. package/dist/src/asset-convert-product/permissions.d.ts +2 -2
  17. package/dist/src/asset-convert-product/user/router.d.ts +20 -20
  18. package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
  19. package/dist/src/asset-price/admin/router.d.ts +132 -20
  20. package/dist/src/asset-price/admin/service.d.ts +157 -0
  21. package/dist/src/asset-price/errors/index.d.ts +2 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
  23. package/dist/src/asset-price/internal/service.d.ts +1 -0
  24. package/dist/src/asset-price/user/router.d.ts +13 -13
  25. package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
  26. package/dist/src/asset-type/admin/router.d.ts +67 -28
  27. package/dist/src/asset-type/admin/service.d.ts +16 -6
  28. package/dist/src/asset-type/db.schemas.d.ts +6 -6
  29. package/dist/src/asset-type/errors/index.d.ts +6 -0
  30. package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
  31. package/dist/src/asset-type/internal/service.d.ts +4 -4
  32. package/dist/src/asset-type/permissions.d.ts +1 -1
  33. package/dist/src/asset-type/schema.d.ts +3 -5
  34. package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
  35. package/dist/src/asset-type/user/router.d.ts +12 -12
  36. package/dist/src/asset-type/user/service.d.ts +1 -1
  37. package/dist/src/auth/better-auth.d.ts +706 -451
  38. package/dist/src/auth/db.schemas.d.ts +27 -407
  39. package/dist/src/auth/permissions.d.ts +20 -20
  40. package/dist/src/auth/roles.d.ts +60 -60
  41. package/dist/src/auth/router.d.ts +6 -6
  42. package/dist/src/auth/schema.d.ts +8 -206
  43. package/dist/src/bank-account/admin/router.d.ts +10 -13
  44. package/dist/src/bank-account/user/router.d.ts +8 -8
  45. package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
  46. package/dist/src/check-in/admin/router.d.ts +12 -16
  47. package/dist/src/check-in/admin/service.d.ts +0 -1
  48. package/dist/src/check-in/internal/service.d.ts +0 -1
  49. package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
  50. package/dist/src/check-in/user/router.d.ts +18 -19
  51. package/dist/src/check-in/user/service.d.ts +0 -1
  52. package/dist/src/cron/index.d.ts +8 -74
  53. package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
  54. package/dist/src/deposit/admin/router.d.ts +16 -20
  55. package/dist/src/deposit/admin/service.d.ts +0 -2
  56. package/dist/src/deposit/errors/index.d.ts +4 -0
  57. package/dist/src/deposit/errors/locales/zh.d.ts +2 -0
  58. package/dist/src/deposit/user/dto.schemas.d.ts +16 -42
  59. package/dist/src/deposit/user/router.d.ts +68 -19
  60. package/dist/src/deposit/user/service.d.ts +22 -3
  61. package/dist/src/dynamic-env/admin.router.d.ts +27 -30
  62. package/dist/src/env/server.d.ts +1 -1
  63. package/dist/src/file-storage/admin/router.d.ts +17 -20
  64. package/dist/src/file-storage/share/router.d.ts +16 -16
  65. package/dist/src/file-storage/user/router.d.ts +16 -16
  66. package/dist/src/index.d.ts +1688 -660
  67. package/dist/src/ledger/admin/router.d.ts +12 -15
  68. package/dist/src/ledger/user/router.d.ts +10 -10
  69. package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
  70. package/dist/src/ledger-account/admin/router.d.ts +22 -25
  71. package/dist/src/ledger-account/user/router.d.ts +10 -10
  72. package/dist/src/ledger-account-import/admin/router.d.ts +22 -25
  73. package/dist/src/ledger-account-transfer/user/router.d.ts +10 -10
  74. package/dist/src/ledger-account-type/admin/router.d.ts +19 -22
  75. package/dist/src/ledger-account-type/user/router.d.ts +10 -10
  76. package/dist/src/market-data/admin/router.d.ts +17 -20
  77. package/dist/src/market-data/cron.d.ts +3 -54
  78. package/dist/src/market-data/user/router.d.ts +12 -12
  79. package/dist/src/market-pricing/admin/router.d.ts +31 -34
  80. package/dist/src/market-pricing/cron.d.ts +2 -53
  81. package/dist/src/news/admin/dto.schemas.d.ts +6 -6
  82. package/dist/src/news/admin/router.d.ts +29 -32
  83. package/dist/src/news/user/dto.schemas.d.ts +12 -12
  84. package/dist/src/news/user/router.d.ts +19 -19
  85. package/dist/src/news-category/user/router.d.ts +12 -12
  86. package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
  87. package/dist/src/notification/admin/router.d.ts +17 -20
  88. package/dist/src/notification/user/dto.schemas.d.ts +2 -2
  89. package/dist/src/notification/user/router.d.ts +21 -21
  90. package/dist/src/receipt-method/admin/router.d.ts +10 -13
  91. package/dist/src/receipt-method/user/router.d.ts +6 -6
  92. package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
  93. package/dist/src/referral/admin/router.d.ts +14 -18
  94. package/dist/src/referral/user/dto.schemas.d.ts +2 -36
  95. package/dist/src/referral/user/router.d.ts +17 -18
  96. package/dist/src/referral-depth-config/admin/router.d.ts +22 -25
  97. package/dist/src/server-test/index.d.ts +15 -15
  98. package/dist/src/shipping-address/admin/router.d.ts +10 -13
  99. package/dist/src/shipping-address/user/router.d.ts +6 -6
  100. package/dist/src/team/admin/dto.schemas.d.ts +2 -36
  101. package/dist/src/team/admin/router.d.ts +14 -18
  102. package/dist/src/team/user/dto.schemas.d.ts +5 -90
  103. package/dist/src/team/user/router.d.ts +21 -24
  104. package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
  105. package/dist/src/trade-market/admin/router.d.ts +27 -30
  106. package/dist/src/trade-market/user/router.d.ts +22 -22
  107. package/dist/src/transfer/admin/router.d.ts +12 -15
  108. package/dist/src/transfer/admin/service.d.ts +0 -2
  109. package/dist/src/transfer/user/router.d.ts +12 -12
  110. package/dist/src/transfer/user/service.d.ts +0 -2
  111. package/dist/src/user/admin/dto.schemas.d.ts +1 -21
  112. package/dist/src/user/admin/router.d.ts +24 -32
  113. package/dist/src/user/admin/service.d.ts +0 -4
  114. package/dist/src/user/user/router.d.ts +6 -8
  115. package/dist/src/user/user/service.d.ts +0 -2
  116. package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
  117. package/dist/src/user-kyc/admin/router.d.ts +19 -22
  118. package/dist/src/user-kyc/user/router.d.ts +18 -18
  119. package/dist/src/user-security/admin/router.d.ts +13 -16
  120. package/dist/src/user-security/user/router.d.ts +17 -17
  121. package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
  122. package/dist/src/wallet/admin/router.d.ts +77 -15
  123. package/dist/src/wallet/admin/service.d.ts +46 -8
  124. package/dist/src/wallet/internal/service.d.ts +118 -14
  125. package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
  126. package/dist/src/wallet/user/router.d.ts +16 -15
  127. package/dist/src/wallet/user/service.d.ts +18 -8
  128. package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
  129. package/dist/src/wallet-type/admin/router.d.ts +149 -19
  130. package/dist/src/wallet-type/admin/service.d.ts +51 -0
  131. package/dist/src/wallet-type/errors/index.d.ts +4 -0
  132. package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
  133. package/dist/src/wallet-type/internal/service.d.ts +37 -0
  134. package/dist/src/wallet-type/user/router.d.ts +10 -10
  135. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
  136. package/dist/src/welfare-cycle/admin/router.d.ts +35 -38
  137. package/dist/src/welfare-cycle/cron.d.ts +2 -53
  138. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
  139. package/dist/src/welfare-cycle/user/router.d.ts +66 -71
  140. package/dist/src/welfare-cycle/user/service.d.ts +1 -1
  141. package/dist/src/withdraw/admin/router.d.ts +19 -22
  142. package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
  143. package/dist/src/withdraw/user/router.d.ts +59 -12
  144. package/dist/src/withdraw/user/service.d.ts +20 -1
  145. package/package.json +1 -1
@@ -41,7 +41,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -398,8 +398,8 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
398
398
  quoteAssetId: string;
399
399
  };
400
400
  params: {};
401
- query: unknown;
402
- headers: unknown;
401
+ query: {};
402
+ headers: {};
403
403
  response: {
404
404
  200: {
405
405
  id: string;
@@ -455,8 +455,8 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
455
455
  params: {
456
456
  id: string;
457
457
  };
458
- query: unknown;
459
- headers: unknown;
458
+ query: {};
459
+ headers: {};
460
460
  response: {
461
461
  200: {
462
462
  createdAt: Date;
@@ -497,12 +497,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
497
497
  ":id": {
498
498
  enable: {
499
499
  post: {
500
- body: unknown;
500
+ body: {};
501
501
  params: {
502
502
  id: string;
503
503
  };
504
- query: unknown;
505
- headers: unknown;
504
+ query: {};
505
+ headers: {};
506
506
  response: {
507
507
  200: {
508
508
  createdAt: Date;
@@ -544,12 +544,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
544
544
  ":id": {
545
545
  disable: {
546
546
  post: {
547
- body: unknown;
547
+ body: {};
548
548
  params: {
549
549
  id: string;
550
550
  };
551
- query: unknown;
552
- headers: unknown;
551
+ query: {};
552
+ headers: {};
553
553
  response: {
554
554
  200: {
555
555
  createdAt: Date;
@@ -589,7 +589,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
589
589
  market_pricing: {
590
590
  strategies: {
591
591
  get: {
592
- body: unknown;
592
+ body: {};
593
593
  params: {};
594
594
  query: {
595
595
  baseAssetId?: string | undefined;
@@ -600,7 +600,7 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
600
600
  pageSize?: number | undefined;
601
601
  pageIndex?: number | undefined;
602
602
  };
603
- headers: unknown;
603
+ headers: {};
604
604
  response: {
605
605
  200: {
606
606
  data: {
@@ -648,12 +648,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
648
648
  strategies: {
649
649
  ":id": {
650
650
  get: {
651
- body: unknown;
651
+ body: {};
652
652
  params: {
653
653
  id: string;
654
654
  };
655
- query: unknown;
656
- headers: unknown;
655
+ query: {};
656
+ headers: {};
657
657
  response: {
658
658
  200: {
659
659
  id: string;
@@ -694,12 +694,12 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
694
694
  ":id": {
695
695
  "run-now": {
696
696
  post: {
697
- body: unknown;
697
+ body: {};
698
698
  params: {
699
699
  id: string;
700
700
  };
701
- query: unknown;
702
- headers: unknown;
701
+ query: {};
702
+ headers: {};
703
703
  response: {
704
704
  200: {
705
705
  price: string;
@@ -729,10 +729,10 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
729
729
  jobs: {
730
730
  "run-enabled": {
731
731
  post: {
732
- body: unknown;
732
+ body: {};
733
733
  params: {};
734
- query: unknown;
735
- headers: unknown;
734
+ query: {};
735
+ headers: {};
736
736
  response: {
737
737
  200: {
738
738
  successCount: number;
@@ -771,11 +771,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
771
771
  emailVerified: boolean;
772
772
  name: string;
773
773
  image?: string | null | undefined | undefined;
774
- phoneNumber?: string | null | undefined;
775
- phoneNumberVerified?: boolean | null | undefined;
776
774
  twoFactorEnabled: boolean | null | undefined;
777
775
  username?: string | null | undefined;
778
776
  displayUsername?: string | null | undefined;
777
+ phoneNumber?: string | null | undefined;
778
+ phoneNumberVerified?: boolean | null | undefined;
779
779
  banned: boolean | null | undefined;
780
780
  role?: string | null | undefined;
781
781
  banReason?: string | null | undefined;
@@ -801,11 +801,11 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
801
801
  emailVerified: boolean;
802
802
  name: string;
803
803
  image?: string | null | undefined | undefined;
804
- phoneNumber?: string | null | undefined;
805
- phoneNumberVerified?: boolean | null | undefined;
806
804
  twoFactorEnabled: boolean | null | undefined;
807
805
  username?: string | null | undefined;
808
806
  displayUsername?: string | null | undefined;
807
+ phoneNumber?: string | null | undefined;
808
+ phoneNumberVerified?: boolean | null | undefined;
809
809
  banned: boolean | null | undefined;
810
810
  role?: string | null | undefined;
811
811
  banReason?: string | null | undefined;
@@ -827,9 +827,6 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
827
827
  standaloneSchema: {};
828
828
  response: {
829
829
  401: "Unauthorized";
830
- } & {
831
- 401: "Unauthorized";
832
- } & {
833
830
  403: "Forbidden: Admins only";
834
831
  };
835
832
  }>;
@@ -1,57 +1,6 @@
1
- import { Elysia } from "elysia";
1
+ import type { CronTaskDefinition } from "../cron";
2
2
  /**
3
3
  * 自动报价任务
4
4
  * 每分钟执行启用策略产价
5
5
  */
6
- export declare const marketPricingCronJobs: Elysia<"", {
7
- decorator: {};
8
- store: {
9
- cron: Record<`${string}-market-pricing-run-enabled`, import("croner").Cron>;
10
- };
11
- derive: {};
12
- resolve: {};
13
- }, {
14
- typebox: {};
15
- error: {};
16
- } & {
17
- typebox: {};
18
- error: {};
19
- }, {
20
- schema: {};
21
- standaloneSchema: {};
22
- macro: {};
23
- macroFn: {};
24
- parser: {};
25
- response: {};
26
- } & {
27
- schema: {};
28
- standaloneSchema: {};
29
- macro: {};
30
- macroFn: {};
31
- parser: {};
32
- response: {};
33
- }, {}, {
34
- derive: {};
35
- resolve: {};
36
- schema: {};
37
- standaloneSchema: {};
38
- response: {};
39
- } & {
40
- derive: {};
41
- resolve: {};
42
- schema: {};
43
- standaloneSchema: {};
44
- response: {};
45
- }, {
46
- derive: {};
47
- resolve: {};
48
- schema: {};
49
- standaloneSchema: {};
50
- response: {};
51
- } & {
52
- derive: {};
53
- resolve: {};
54
- schema: {};
55
- standaloneSchema: {};
56
- response: {};
57
- }>;
6
+ export declare const marketPricingCronTasks: CronTaskDefinition[];
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
30
30
  createdAt: import("@sinclair/typebox").TDate;
31
31
  updatedAt: import("@sinclair/typebox").TDate;
32
32
  id: import("@sinclair/typebox").TString;
33
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
34
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
35
+ sortOrder: import("@sinclair/typebox").TInteger;
33
36
  status: import("@sinclair/typebox").TEnum<{
34
37
  archived: "archived";
35
38
  draft: "draft";
36
39
  published: "published";
37
40
  }>;
38
- sortOrder: import("@sinclair/typebox").TInteger;
39
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
40
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
41
41
  createdBy: import("@sinclair/typebox").TString;
42
42
  title: import("@sinclair/typebox").TString;
43
43
  content: import("@sinclair/typebox").TString;
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
62
62
  createdAt: import("@sinclair/typebox").TDate;
63
63
  updatedAt: import("@sinclair/typebox").TDate;
64
64
  id: import("@sinclair/typebox").TString;
65
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
66
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
67
+ sortOrder: import("@sinclair/typebox").TInteger;
65
68
  status: import("@sinclair/typebox").TEnum<{
66
69
  archived: "archived";
67
70
  draft: "draft";
68
71
  published: "published";
69
72
  }>;
70
- sortOrder: import("@sinclair/typebox").TInteger;
71
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
72
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
73
73
  createdBy: import("@sinclair/typebox").TString;
74
74
  title: import("@sinclair/typebox").TString;
75
75
  content: import("@sinclair/typebox").TString;
@@ -41,7 +41,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -401,8 +401,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
401
401
  content: string;
402
402
  };
403
403
  params: {};
404
- query: unknown;
405
- headers: unknown;
404
+ query: {};
405
+ headers: {};
406
406
  response: {
407
407
  422: {
408
408
  type: "validation";
@@ -421,7 +421,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
421
421
  } & {
422
422
  news: {
423
423
  get: {
424
- body: unknown;
424
+ body: {};
425
425
  params: {};
426
426
  query: {
427
427
  status?: "archived" | "draft" | "published" | undefined;
@@ -433,7 +433,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
433
433
  pageSize?: number | undefined;
434
434
  pageIndex?: number | undefined;
435
435
  };
436
- headers: unknown;
436
+ headers: {};
437
437
  response: {
438
438
  200: {
439
439
  data: {
@@ -497,12 +497,12 @@ export declare const newsAdminRouter: Elysia<"/news", {
497
497
  news: {
498
498
  ":id": {
499
499
  get: {
500
- body: unknown;
500
+ body: {};
501
501
  params: {
502
502
  id: string;
503
503
  };
504
- query: unknown;
505
- headers: unknown;
504
+ query: {};
505
+ headers: {};
506
506
  response: {
507
507
  200: {
508
508
  id: string;
@@ -611,8 +611,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
611
611
  params: {
612
612
  id: string;
613
613
  };
614
- query: unknown;
615
- headers: unknown;
614
+ query: {};
615
+ headers: {};
616
616
  response: {
617
617
  422: {
618
618
  type: "validation";
@@ -633,12 +633,12 @@ export declare const newsAdminRouter: Elysia<"/news", {
633
633
  news: {
634
634
  ":id": {
635
635
  delete: {
636
- body: unknown;
636
+ body: {};
637
637
  params: {
638
638
  id: string;
639
639
  };
640
- query: unknown;
641
- headers: unknown;
640
+ query: {};
641
+ headers: {};
642
642
  response: {
643
643
  200: {
644
644
  success: boolean;
@@ -670,8 +670,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
670
670
  params: {
671
671
  id: string;
672
672
  };
673
- query: unknown;
674
- headers: unknown;
673
+ query: {};
674
+ headers: {};
675
675
  response: {
676
676
  422: {
677
677
  type: "validation";
@@ -700,8 +700,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
700
700
  params: {
701
701
  id: string;
702
702
  };
703
- query: unknown;
704
- headers: unknown;
703
+ query: {};
704
+ headers: {};
705
705
  response: {
706
706
  422: {
707
707
  type: "validation";
@@ -723,10 +723,10 @@ export declare const newsAdminRouter: Elysia<"/news", {
723
723
  news: {
724
724
  stats: {
725
725
  get: {
726
- body: unknown;
726
+ body: {};
727
727
  params: {};
728
- query: unknown;
729
- headers: unknown;
728
+ query: {};
729
+ headers: {};
730
730
  response: {
731
731
  200: {
732
732
  total: number;
@@ -757,11 +757,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
757
757
  emailVerified: boolean;
758
758
  name: string;
759
759
  image?: string | null | undefined | undefined;
760
- phoneNumber?: string | null | undefined;
761
- phoneNumberVerified?: boolean | null | undefined;
762
760
  twoFactorEnabled: boolean | null | undefined;
763
761
  username?: string | null | undefined;
764
762
  displayUsername?: string | null | undefined;
763
+ phoneNumber?: string | null | undefined;
764
+ phoneNumberVerified?: boolean | null | undefined;
765
765
  banned: boolean | null | undefined;
766
766
  role?: string | null | undefined;
767
767
  banReason?: string | null | undefined;
@@ -787,11 +787,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
787
787
  emailVerified: boolean;
788
788
  name: string;
789
789
  image?: string | null | undefined | undefined;
790
- phoneNumber?: string | null | undefined;
791
- phoneNumberVerified?: boolean | null | undefined;
792
790
  twoFactorEnabled: boolean | null | undefined;
793
791
  username?: string | null | undefined;
794
792
  displayUsername?: string | null | undefined;
793
+ phoneNumber?: string | null | undefined;
794
+ phoneNumberVerified?: boolean | null | undefined;
795
795
  banned: boolean | null | undefined;
796
796
  role?: string | null | undefined;
797
797
  banReason?: string | null | undefined;
@@ -813,9 +813,6 @@ export declare const newsAdminRouter: Elysia<"/news", {
813
813
  standaloneSchema: {};
814
814
  response: {
815
815
  401: "Unauthorized";
816
- } & {
817
- 401: "Unauthorized";
818
- } & {
819
816
  403: "Forbidden: Admins only";
820
817
  };
821
818
  }>;
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
30
30
  createdAt: import("@sinclair/typebox").TDate;
31
31
  updatedAt: import("@sinclair/typebox").TDate;
32
32
  id: import("@sinclair/typebox").TString;
33
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
34
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
35
+ sortOrder: import("@sinclair/typebox").TInteger;
33
36
  status: import("@sinclair/typebox").TEnum<{
34
37
  archived: "archived";
35
38
  draft: "draft";
36
39
  published: "published";
37
40
  }>;
38
- sortOrder: import("@sinclair/typebox").TInteger;
39
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
40
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
41
41
  createdBy: import("@sinclair/typebox").TString;
42
42
  title: import("@sinclair/typebox").TString;
43
43
  content: import("@sinclair/typebox").TString;
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
62
62
  createdAt: import("@sinclair/typebox").TDate;
63
63
  updatedAt: import("@sinclair/typebox").TDate;
64
64
  id: import("@sinclair/typebox").TString;
65
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
66
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
67
+ sortOrder: import("@sinclair/typebox").TInteger;
65
68
  status: import("@sinclair/typebox").TEnum<{
66
69
  archived: "archived";
67
70
  draft: "draft";
68
71
  published: "published";
69
72
  }>;
70
- sortOrder: import("@sinclair/typebox").TInteger;
71
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
72
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
73
73
  createdBy: import("@sinclair/typebox").TString;
74
74
  title: import("@sinclair/typebox").TString;
75
75
  content: import("@sinclair/typebox").TString;
@@ -115,14 +115,14 @@ export declare const newsDetailResponse: import("@sinclair/typebox").TObject<{
115
115
  createdAt: import("@sinclair/typebox").TDate;
116
116
  updatedAt: import("@sinclair/typebox").TDate;
117
117
  id: import("@sinclair/typebox").TString;
118
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
119
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
120
+ sortOrder: import("@sinclair/typebox").TInteger;
118
121
  status: import("@sinclair/typebox").TEnum<{
119
122
  archived: "archived";
120
123
  draft: "draft";
121
124
  published: "published";
122
125
  }>;
123
- sortOrder: import("@sinclair/typebox").TInteger;
124
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
125
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
126
126
  createdBy: import("@sinclair/typebox").TString;
127
127
  title: import("@sinclair/typebox").TString;
128
128
  content: import("@sinclair/typebox").TString;
@@ -151,14 +151,14 @@ export declare const pendingConfirmationsResponse: import("@sinclair/typebox").T
151
151
  createdAt: import("@sinclair/typebox").TDate;
152
152
  updatedAt: import("@sinclair/typebox").TDate;
153
153
  id: import("@sinclair/typebox").TString;
154
+ expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
155
+ scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
156
+ sortOrder: import("@sinclair/typebox").TInteger;
154
157
  status: import("@sinclair/typebox").TEnum<{
155
158
  archived: "archived";
156
159
  draft: "draft";
157
160
  published: "published";
158
161
  }>;
159
- sortOrder: import("@sinclair/typebox").TInteger;
160
- expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
161
- scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
162
162
  createdBy: import("@sinclair/typebox").TString;
163
163
  title: import("@sinclair/typebox").TString;
164
164
  content: import("@sinclair/typebox").TString;