@guren/server 2.10.0 → 2.10.1

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 (90) hide show
  1. package/dist/DocsViewerServiceProvider-qFCaeiUv.js +77 -0
  2. package/dist/Hash-CzrwKeDp.js +133 -0
  3. package/dist/HttpException-BkS3euNG.js +161 -0
  4. package/dist/Job-BVT813DO.js +441 -0
  5. package/dist/McpServiceProvider-BoAN-UcD.js +367 -0
  6. package/dist/MessageSigner-Bd25ZJAV.js +93 -0
  7. package/dist/Random-DbIJ22KQ.js +191 -0
  8. package/dist/address-D0Iq-XIH.js +20 -0
  9. package/dist/auth/index.js +2 -122
  10. package/dist/auth-C7sVmYgc.js +1954 -0
  11. package/dist/authorization/index.js +2 -38
  12. package/dist/authorization-Dbcuc5ZK.js +610 -0
  13. package/dist/broadcasting/index.js +2 -26
  14. package/dist/broadcasting-Dw-FhyjN.js +1055 -0
  15. package/dist/cache/index.js +2 -17
  16. package/dist/cache/types.d.ts +4 -4
  17. package/dist/cache-BYnZf2FR.js +812 -0
  18. package/dist/client-Dd7vLcqp.js +27 -0
  19. package/dist/console/Output.d.ts +18 -18
  20. package/dist/encryption/index.js +5 -96
  21. package/dist/encryption-fOWQaKqX.js +250 -0
  22. package/dist/endpoint-D-20PiHY.js +46 -0
  23. package/dist/endpoint-D6GIqOpe.js +31 -0
  24. package/dist/errors-quJOkkCn.js +81 -0
  25. package/dist/events/index.js +2 -28
  26. package/dist/events-aIH_bWRx.js +410 -0
  27. package/dist/health/index.js +2 -24
  28. package/dist/health-VWdWXRwh.js +345 -0
  29. package/dist/hot-disposables-WsTX2ySN.js +281 -0
  30. package/dist/hot-reload/testing.d.ts +1 -1
  31. package/dist/i18n/index.js +2 -30
  32. package/dist/i18n-mcWi7LCd.js +617 -0
  33. package/dist/index.js +7495 -7276
  34. package/dist/lambda/index.js +114 -71
  35. package/dist/logging/index.js +2 -24
  36. package/dist/logging-CPaRMuPP.js +518 -0
  37. package/dist/loopback-guard-D0Kc7-xc.js +224 -0
  38. package/dist/mail/index.js +2 -27
  39. package/dist/mail-DfEfSQEr.js +699 -0
  40. package/dist/mcp/index.js +2 -10
  41. package/dist/notifications/index.js +2 -33
  42. package/dist/notifications-BGqmUNZ8.js +759 -0
  43. package/dist/queue/index.js +3 -42
  44. package/dist/queue-CXrRK85G.js +948 -0
  45. package/dist/redis/index.js +672 -642
  46. package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
  47. package/dist/runtime/index.js +472 -616
  48. package/dist/scheduling/index.js +2 -29
  49. package/dist/scheduling-CPiEdtQd.js +839 -0
  50. package/dist/storage/index.js +2 -15
  51. package/dist/storage-tWHMv2H_.js +841 -0
  52. package/dist/support/expiry.js +69 -12
  53. package/dist/trim-slashes-ZJ_VsY5s.js +25 -0
  54. package/dist/vite/index.js +118 -181
  55. package/dist/vite/plugin.d.ts +1 -1
  56. package/dist/vite-dev-server-CpCUqmiC.js +131 -0
  57. package/package.json +6 -5
  58. package/dist/DocsViewerServiceProvider-RUYDFBMW.js +0 -75
  59. package/dist/McpServiceProvider-SL7DUZ4G.js +0 -8
  60. package/dist/chunk-2SC566CD.js +0 -376
  61. package/dist/chunk-2V3YID4H.js +0 -20
  62. package/dist/chunk-3KV5X2FL.js +0 -31
  63. package/dist/chunk-63SKW5PS.js +0 -457
  64. package/dist/chunk-6J6B5KOB.js +0 -425
  65. package/dist/chunk-A5JJ7XTH.js +0 -24
  66. package/dist/chunk-AZOYI43J.js +0 -18
  67. package/dist/chunk-B5E5VBDI.js +0 -115
  68. package/dist/chunk-DAQKYKLH.js +0 -182
  69. package/dist/chunk-DRNPVBAA.js +0 -1002
  70. package/dist/chunk-EI5GYMAT.js +0 -853
  71. package/dist/chunk-H3B23O6T.js +0 -271
  72. package/dist/chunk-HPET6XY5.js +0 -853
  73. package/dist/chunk-HR2KZ3WL.js +0 -616
  74. package/dist/chunk-IOTWFHZU.js +0 -558
  75. package/dist/chunk-K6CUBJX6.js +0 -642
  76. package/dist/chunk-KTNJG7R7.js +0 -911
  77. package/dist/chunk-LAJQCSSF.js +0 -355
  78. package/dist/chunk-LHR6OHI7.js +0 -189
  79. package/dist/chunk-N7PLD7MB.js +0 -729
  80. package/dist/chunk-Q2P6YLRR.js +0 -24
  81. package/dist/chunk-QQKTH5KX.js +0 -114
  82. package/dist/chunk-SFQP6O52.js +0 -126
  83. package/dist/chunk-SQR7277M.js +0 -911
  84. package/dist/chunk-T2FFUU6J.js +0 -484
  85. package/dist/chunk-TVV5YNEC.js +0 -1842
  86. package/dist/chunk-UY3AZSYL.js +0 -14
  87. package/dist/chunk-V4DNC2ER.js +0 -114
  88. package/dist/chunk-VSA3QY5Q.js +0 -274
  89. package/dist/chunk-YSOJKAAU.js +0 -427
  90. package/dist/errors-PUNHAFL2.js +0 -34
@@ -1,182 +0,0 @@
1
- // src/errors/HttpException.ts
2
- var HttpException = class _HttpException extends Error {
3
- /**
4
- * HTTP status code.
5
- */
6
- statusCode;
7
- /**
8
- * Validation or field-specific errors.
9
- */
10
- errors;
11
- /**
12
- * Additional error data.
13
- */
14
- data;
15
- constructor(statusCode, message, errors, data) {
16
- super(message);
17
- this.name = this.constructor.name;
18
- this.statusCode = statusCode;
19
- this.errors = errors;
20
- this.data = data;
21
- if (Error.captureStackTrace) {
22
- Error.captureStackTrace(this, this.constructor);
23
- }
24
- }
25
- /**
26
- * Convert to response format.
27
- */
28
- toResponse(debug = false) {
29
- const body = {
30
- message: this.message
31
- };
32
- if (this.errors) {
33
- body.errors = this.errors;
34
- }
35
- if (debug) {
36
- body.exception = this.name;
37
- body.stack = this.stack;
38
- }
39
- return {
40
- status: this.statusCode,
41
- body
42
- };
43
- }
44
- /**
45
- * Convert to JSON.
46
- */
47
- toJSON() {
48
- return {
49
- name: this.name,
50
- message: this.message,
51
- statusCode: this.statusCode,
52
- errors: this.errors,
53
- data: this.data
54
- };
55
- }
56
- // Factory methods
57
- /**
58
- * Create a 400 Bad Request exception.
59
- */
60
- static badRequest(message = "Bad Request") {
61
- return new _HttpException(400, message);
62
- }
63
- /**
64
- * Create a 401 Unauthorized exception.
65
- */
66
- static unauthorized(message = "Unauthorized") {
67
- return new _HttpException(401, message);
68
- }
69
- /**
70
- * Create a 403 Forbidden exception.
71
- */
72
- static forbidden(message = "Forbidden") {
73
- return new _HttpException(403, message);
74
- }
75
- /**
76
- * Create a 404 Not Found exception.
77
- */
78
- static notFound(message = "Not Found") {
79
- return new _HttpException(404, message);
80
- }
81
- /**
82
- * Create a 405 Method Not Allowed exception.
83
- */
84
- static methodNotAllowed(message = "Method Not Allowed") {
85
- return new _HttpException(405, message);
86
- }
87
- /**
88
- * Create a 409 Conflict exception.
89
- */
90
- static conflict(message = "Conflict") {
91
- return new _HttpException(409, message);
92
- }
93
- /**
94
- * Create a 410 Gone exception.
95
- */
96
- static gone(message = "Gone") {
97
- return new _HttpException(410, message);
98
- }
99
- /**
100
- * Create a 422 Unprocessable Entity exception.
101
- */
102
- static unprocessable(message = "Unprocessable Entity", errors) {
103
- return new _HttpException(422, message, errors);
104
- }
105
- /**
106
- * Create a 429 Too Many Requests exception.
107
- */
108
- static tooManyRequests(message = "Too Many Requests") {
109
- return new _HttpException(429, message);
110
- }
111
- /**
112
- * Create a 500 Internal Server Error exception.
113
- */
114
- static internal(message = "Internal Server Error") {
115
- return new _HttpException(500, message);
116
- }
117
- /**
118
- * Create a 501 Not Implemented exception.
119
- */
120
- static notImplemented(message = "Not Implemented") {
121
- return new _HttpException(501, message);
122
- }
123
- /**
124
- * Create a 502 Bad Gateway exception.
125
- */
126
- static badGateway(message = "Bad Gateway") {
127
- return new _HttpException(502, message);
128
- }
129
- /**
130
- * Create a 503 Service Unavailable exception.
131
- */
132
- static serviceUnavailable(message = "Service Unavailable") {
133
- return new _HttpException(503, message);
134
- }
135
- /**
136
- * Create a 504 Gateway Timeout exception.
137
- */
138
- static gatewayTimeout(message = "Gateway Timeout") {
139
- return new _HttpException(504, message);
140
- }
141
- /**
142
- * Check if an error is an HTTP exception.
143
- */
144
- static isHttpException(error) {
145
- return error instanceof _HttpException || typeof error === "object" && error !== null && "statusCode" in error && typeof error.statusCode === "number" && "toResponse" in error && typeof error.toResponse === "function";
146
- }
147
- };
148
-
149
- // src/errors/exceptions/AuthenticationException.ts
150
- var AuthenticationException = class _AuthenticationException extends HttpException {
151
- /**
152
- * The guard that threw the exception.
153
- */
154
- guard;
155
- /**
156
- * URL to redirect to for authentication.
157
- */
158
- redirectTo;
159
- constructor(message = "Unauthenticated.", guard, redirectTo) {
160
- super(401, message);
161
- this.name = "AuthenticationException";
162
- this.guard = guard;
163
- this.redirectTo = redirectTo;
164
- }
165
- /**
166
- * Create exception with redirect URL.
167
- */
168
- static withRedirect(redirectTo, message) {
169
- return new _AuthenticationException(message, void 0, redirectTo);
170
- }
171
- /**
172
- * Create exception for a specific guard.
173
- */
174
- static forGuard(guard, message) {
175
- return new _AuthenticationException(message, guard);
176
- }
177
- };
178
-
179
- export {
180
- HttpException,
181
- AuthenticationException
182
- };