alepha 0.13.4 → 0.13.5

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 (132) hide show
  1. package/dist/api-files/index.browser.js +5 -5
  2. package/dist/api-files/index.d.ts +191 -191
  3. package/dist/api-files/index.js +9 -9
  4. package/dist/api-jobs/index.browser.js +5 -5
  5. package/dist/api-jobs/index.d.ts +173 -173
  6. package/dist/api-jobs/index.js +9 -9
  7. package/dist/api-notifications/index.browser.js +11 -11
  8. package/dist/api-notifications/index.d.ts +11 -11
  9. package/dist/api-notifications/index.js +11 -11
  10. package/dist/api-parameters/index.browser.js +2 -2
  11. package/dist/api-parameters/index.d.ts +3 -3
  12. package/dist/api-parameters/index.js +3 -3
  13. package/dist/api-users/index.browser.js +6 -6
  14. package/dist/api-users/index.d.ts +55 -55
  15. package/dist/api-users/index.js +36 -36
  16. package/dist/api-verifications/index.browser.js +5 -5
  17. package/dist/api-verifications/index.d.ts +21 -21
  18. package/dist/api-verifications/index.js +10 -10
  19. package/dist/batch/index.d.ts +3 -3
  20. package/dist/batch/index.js +3 -3
  21. package/dist/bin/index.js +1 -1
  22. package/dist/bucket/index.d.ts +6 -6
  23. package/dist/bucket/index.js +7 -7
  24. package/dist/cache/index.d.ts +4 -4
  25. package/dist/cache/index.js +5 -5
  26. package/dist/cache-redis/index.d.ts +2 -2
  27. package/dist/cache-redis/index.js +2 -2
  28. package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
  29. package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
  30. package/dist/cli/index.d.ts +31 -75
  31. package/dist/cli/index.js +94 -171
  32. package/dist/cli/index.js.map +1 -1
  33. package/dist/command/index.d.ts +8 -8
  34. package/dist/command/index.js +11 -10
  35. package/dist/command/index.js.map +1 -1
  36. package/dist/core/index.browser.js +35 -35
  37. package/dist/core/index.d.ts +39 -39
  38. package/dist/core/index.js +35 -35
  39. package/dist/core/index.native.js +35 -35
  40. package/dist/datetime/index.d.ts +3 -3
  41. package/dist/datetime/index.js +3 -3
  42. package/dist/email/index.d.ts +11 -11
  43. package/dist/email/index.js +42 -42
  44. package/dist/fake/index.d.ts +2 -2
  45. package/dist/fake/index.js +5 -5
  46. package/dist/file/index.d.ts +4 -4
  47. package/dist/file/index.js +4 -4
  48. package/dist/lock/index.d.ts +5 -5
  49. package/dist/lock/index.js +5 -5
  50. package/dist/lock-redis/index.d.ts +2 -2
  51. package/dist/lock-redis/index.js +2 -2
  52. package/dist/logger/index.d.ts +11 -11
  53. package/dist/logger/index.js +12 -12
  54. package/dist/orm/index.browser.js +12 -12
  55. package/dist/orm/index.d.ts +52 -52
  56. package/dist/orm/index.js +32 -32
  57. package/dist/queue/index.d.ts +7 -7
  58. package/dist/queue/index.js +6 -6
  59. package/dist/queue-redis/index.d.ts +2 -2
  60. package/dist/queue-redis/index.js +2 -2
  61. package/dist/redis/index.d.ts +13 -13
  62. package/dist/redis/index.js +3 -3
  63. package/dist/retry/index.d.ts +5 -5
  64. package/dist/retry/index.js +5 -5
  65. package/dist/router/index.d.ts +1 -1
  66. package/dist/router/index.js +1 -1
  67. package/dist/scheduler/index.d.ts +4 -4
  68. package/dist/scheduler/index.js +7 -7
  69. package/dist/security/index.browser.js +7 -7
  70. package/dist/security/index.d.ts +15 -15
  71. package/dist/security/index.js +46 -46
  72. package/dist/server/index.browser.js +14 -14
  73. package/dist/server/index.d.ts +26 -26
  74. package/dist/server/index.js +26 -26
  75. package/dist/server-auth/index.browser.js +6 -6
  76. package/dist/server-auth/index.d.ts +163 -163
  77. package/dist/server-auth/index.js +13 -13
  78. package/dist/server-cache/index.d.ts +2 -2
  79. package/dist/server-cache/index.js +2 -2
  80. package/dist/server-compress/index.d.ts +2 -2
  81. package/dist/server-compress/index.js +2 -2
  82. package/dist/server-cookies/index.browser.js +3 -3
  83. package/dist/server-cookies/index.d.ts +4 -4
  84. package/dist/server-cookies/index.js +4 -4
  85. package/dist/server-cors/index.d.ts +3 -3
  86. package/dist/server-cors/index.js +3 -3
  87. package/dist/server-health/index.d.ts +3 -3
  88. package/dist/server-health/index.js +3 -3
  89. package/dist/server-helmet/index.d.ts +2 -2
  90. package/dist/server-helmet/index.js +2 -2
  91. package/dist/server-links/index.browser.js +5 -5
  92. package/dist/server-links/index.d.ts +40 -40
  93. package/dist/server-links/index.js +7 -7
  94. package/dist/server-metrics/index.d.ts +2 -2
  95. package/dist/server-metrics/index.js +86 -86
  96. package/dist/server-multipart/index.d.ts +2 -2
  97. package/dist/server-multipart/index.js +2 -2
  98. package/dist/server-proxy/index.d.ts +3 -3
  99. package/dist/server-proxy/index.js +3 -3
  100. package/dist/server-rate-limit/index.d.ts +3 -3
  101. package/dist/server-rate-limit/index.js +3 -3
  102. package/dist/server-security/index.browser.js +1 -1
  103. package/dist/server-security/index.d.ts +13 -13
  104. package/dist/server-security/index.js +4 -4
  105. package/dist/server-static/index.d.ts +3 -3
  106. package/dist/server-static/index.js +3 -3
  107. package/dist/server-swagger/index.d.ts +3 -3
  108. package/dist/server-swagger/index.js +3 -3
  109. package/dist/sms/index.d.ts +6 -6
  110. package/dist/sms/index.js +6 -6
  111. package/dist/thread/index.d.ts +3 -3
  112. package/dist/thread/index.js +3 -3
  113. package/dist/topic/index.d.ts +6 -6
  114. package/dist/topic/index.js +6 -6
  115. package/dist/topic-redis/index.d.ts +2 -2
  116. package/dist/topic-redis/index.js +2 -2
  117. package/dist/vite/index.d.ts +17 -17
  118. package/dist/vite/index.js +20 -20
  119. package/dist/websocket/index.browser.js +9 -9
  120. package/dist/websocket/index.d.ts +17 -17
  121. package/dist/websocket/index.js +10 -10
  122. package/package.json +5 -4
  123. package/src/cli/apps/AlephaCli.ts +1 -2
  124. package/src/cli/commands/BiomeCommands.ts +4 -6
  125. package/src/cli/commands/CoreCommands.ts +2 -2
  126. package/src/cli/commands/DrizzleCommands.ts +76 -78
  127. package/src/cli/commands/VerifyCommands.ts +3 -5
  128. package/src/cli/commands/ViteCommands.ts +6 -8
  129. package/src/cli/index.ts +1 -1
  130. package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
  131. package/src/command/providers/CliProvider.ts +12 -4
  132. package/src/cli/services/ProcessRunner.ts +0 -89
@@ -8,7 +8,7 @@ import { TLocalizedValidationError } from "typebox/error";
8
8
  import { Readable } from "node:stream";
9
9
  import { ReadableStream as ReadableStream$1 } from "node:stream/web";
10
10
 
11
- //#region src/core/constants/KIND.d.ts
11
+ //#region ../../src/core/constants/KIND.d.ts
12
12
  /**
13
13
  * Used for identifying primitives.
14
14
  *
@@ -16,7 +16,7 @@ import { ReadableStream as ReadableStream$1 } from "node:stream/web";
16
16
  */
17
17
  declare const KIND: unique symbol;
18
18
  //#endregion
19
- //#region src/core/constants/MODULE.d.ts
19
+ //#region ../../src/core/constants/MODULE.d.ts
20
20
  /**
21
21
  * Used for identifying modules.
22
22
  *
@@ -24,7 +24,7 @@ declare const KIND: unique symbol;
24
24
  */
25
25
  declare const MODULE: unique symbol;
26
26
  //#endregion
27
- //#region src/core/interfaces/Service.d.ts
27
+ //#region ../../src/core/interfaces/Service.d.ts
28
28
  /**
29
29
  * In Alepha, a service is a class that can be instantiated or an abstract class. Nothing more, nothing less...
30
30
  */
@@ -72,7 +72,7 @@ interface ServiceSubstitution<T extends object = any> {
72
72
  type ServiceEntry<T extends object = any> = Service<T> | ServiceSubstitution<T>;
73
73
  declare function isClass(func: any): func is InstantiableClass;
74
74
  //#endregion
75
- //#region src/core/helpers/primitive.d.ts
75
+ //#region ../../src/core/helpers/primitive.d.ts
76
76
  interface PrimitiveArgs<T extends object = {}> {
77
77
  options: T;
78
78
  alepha: Alepha;
@@ -106,7 +106,7 @@ declare const createPrimitive: <TPrimitive extends Primitive>(primitive: Instant
106
106
  [MODULE]?: Service;
107
107
  }, options: TPrimitive["options"]) => TPrimitive;
108
108
  //#endregion
109
- //#region src/core/interfaces/Async.d.ts
109
+ //#region ../../src/core/interfaces/Async.d.ts
110
110
  /**
111
111
  * Represents a value that can be either a value or a promise of value.
112
112
  */
@@ -120,7 +120,7 @@ type AsyncFn = (...args: any[]) => Async<any>;
120
120
  */
121
121
  type MaybePromise<T> = T extends Promise<any> ? T : Promise<T>;
122
122
  //#endregion
123
- //#region src/core/interfaces/LoggerInterface.d.ts
123
+ //#region ../../src/core/interfaces/LoggerInterface.d.ts
124
124
  type LogLevel = "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE" | "SILENT";
125
125
  interface LoggerInterface {
126
126
  trace(message: string, data?: unknown): void;
@@ -130,7 +130,7 @@ interface LoggerInterface {
130
130
  error(message: string, data?: unknown): void;
131
131
  }
132
132
  //#endregion
133
- //#region src/core/errors/AlephaError.d.ts
133
+ //#region ../../src/core/errors/AlephaError.d.ts
134
134
  /**
135
135
  * Default error class for Alepha.
136
136
  */
@@ -138,7 +138,7 @@ declare class AlephaError extends Error {
138
138
  name: string;
139
139
  }
140
140
  //#endregion
141
- //#region src/core/errors/TypeBoxError.d.ts
141
+ //#region ../../src/core/errors/TypeBoxError.d.ts
142
142
  declare class TypeBoxError extends AlephaError {
143
143
  name: string;
144
144
  readonly cause: TLocalizedValidationError;
@@ -152,7 +152,7 @@ interface TypeBoxErrorParams {
152
152
  requiredProperties?: string[];
153
153
  }
154
154
  //#endregion
155
- //#region src/core/helpers/FileLike.d.ts
155
+ //#region ../../src/core/helpers/FileLike.d.ts
156
156
  interface FileLike {
157
157
  /**
158
158
  * Filename.
@@ -215,7 +215,7 @@ declare const isFileLike: (value: any) => value is FileLike;
215
215
  type StreamLike = ReadableStream | ReadableStream$1 | Readable | NodeJS.ReadableStream;
216
216
  type TStream = TUnsafe$1<StreamLike>;
217
217
  //#endregion
218
- //#region src/core/providers/TypeProvider.d.ts
218
+ //#region ../../src/core/providers/TypeProvider.d.ts
219
219
  declare const isUUID: typeof TypeBoxFormat.IsUuid;
220
220
  declare const isEmail: typeof TypeBoxFormat.IsEmail;
221
221
  declare const isURL: typeof TypeBoxFormat.IsUrl;
@@ -329,8 +329,8 @@ declare class TypeProvider {
329
329
  * ```
330
330
  */
331
331
  readonly schema: TypeGuard;
332
- extend<T extends TSchema$1[], U$1 extends TProperties$1>(schema: [...T], properties: U$1, options?: TSchemaOptions): TInterface<T, U$1>;
333
- extend<T extends TObject$1, U$1 extends TProperties$1>(schema: T, properties: U$1, options?: TSchemaOptions): TInterface<[T], U$1>;
332
+ extend<T extends TSchema$1[], U extends TProperties$1>(schema: [...T], properties: U, options?: TSchemaOptions): TInterface<T, U>;
333
+ extend<T extends TObject$1, U extends TProperties$1>(schema: T, properties: U, options?: TSchemaOptions): TInterface<[T], U>;
334
334
  pick<T extends TObject$1, Indexer extends PropertyKey[]>(schema: T, keys: [...Indexer], options?: TObjectOptions$1): TPick$1<T, TKeysToIndexer$1<Indexer>>;
335
335
  omit<T extends TObject$1, Indexer extends PropertyKey[]>(schema: T, keys: [...Indexer], options?: TObjectOptions$1): TOmit<T, TKeysToIndexer$1<Indexer>>;
336
336
  partial<T extends TSchema$1>(schema: T, options?: TSchemaOptions): TPartial<T>;
@@ -512,7 +512,7 @@ interface TTextOptions extends TStringOptions$1 {
512
512
  }
513
513
  declare const t: TypeProvider;
514
514
  //#endregion
515
- //#region src/core/primitives/$atom.d.ts
515
+ //#region ../../src/core/primitives/$atom.d.ts
516
516
  /**
517
517
  * Define an atom for state management.
518
518
  *
@@ -568,7 +568,7 @@ type TProperties$2 = any;
568
568
  type TAtomObject = TObject<any> | TArray$1;
569
569
  type AtomStatic<T extends TAtomObject> = T extends TOptionalAdd<T> ? Static<T> | undefined : Static<T>;
570
570
  //#endregion
571
- //#region src/core/primitives/$inject.d.ts
571
+ //#region ../../src/core/primitives/$inject.d.ts
572
572
  /**
573
573
  * Get the instance of the specified type from the context.
574
574
  *
@@ -605,7 +605,7 @@ interface InjectOptions<T extends object = any> {
605
605
  parent?: Service | null;
606
606
  }
607
607
  //#endregion
608
- //#region src/core/primitives/$module.d.ts
608
+ //#region ../../src/core/primitives/$module.d.ts
609
609
  /**
610
610
  * Wrap Services and Primitives into a Module.
611
611
  *
@@ -707,7 +707,7 @@ type WithModule<T extends object = any> = T & {
707
707
  [MODULE]?: Service;
708
708
  };
709
709
  //#endregion
710
- //#region src/core/providers/AlsProvider.d.ts
710
+ //#region ../../src/core/providers/AlsProvider.d.ts
711
711
  type AsyncLocalStorageData = any;
712
712
  declare class AlsProvider {
713
713
  static create: () => AsyncLocalStorage<AsyncLocalStorageData> | undefined;
@@ -720,7 +720,7 @@ declare class AlsProvider {
720
720
  set<T>(key: string, value: T): void;
721
721
  }
722
722
  //#endregion
723
- //#region src/core/providers/Json.d.ts
723
+ //#region ../../src/core/providers/Json.d.ts
724
724
  /**
725
725
  * Mimics the JSON global object with stringify and parse methods.
726
726
  *
@@ -731,7 +731,7 @@ declare class Json {
731
731
  parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
732
732
  }
733
733
  //#endregion
734
- //#region src/core/providers/SchemaCodec.d.ts
734
+ //#region ../../src/core/providers/SchemaCodec.d.ts
735
735
  declare abstract class SchemaCodec {
736
736
  /**
737
737
  * Encode the value to a string format.
@@ -747,7 +747,7 @@ declare abstract class SchemaCodec {
747
747
  abstract decode<T>(schema: TSchema, value: unknown): T;
748
748
  }
749
749
  //#endregion
750
- //#region src/core/providers/JsonSchemaCodec.d.ts
750
+ //#region ../../src/core/providers/JsonSchemaCodec.d.ts
751
751
  declare class JsonSchemaCodec extends SchemaCodec {
752
752
  protected readonly json: Json;
753
753
  protected readonly encoder: TextEncoder;
@@ -757,7 +757,7 @@ declare class JsonSchemaCodec extends SchemaCodec {
757
757
  decode<T>(schema: TSchema$1, value: unknown): T;
758
758
  }
759
759
  //#endregion
760
- //#region src/core/providers/SchemaValidator.d.ts
760
+ //#region ../../src/core/providers/SchemaValidator.d.ts
761
761
  declare class SchemaValidator {
762
762
  protected cache: Map<TSchema$1, Validator<TypeBox.TProperties, TSchema$1, unknown, unknown>>;
763
763
  /**
@@ -785,7 +785,7 @@ interface ValidateOptions {
785
785
  deleteUndefined?: boolean;
786
786
  }
787
787
  //#endregion
788
- //#region src/core/providers/CodecManager.d.ts
788
+ //#region ../../src/core/providers/CodecManager.d.ts
789
789
  type Encoding = "object" | "string" | "binary";
790
790
  interface EncodeOptions<T extends Encoding = Encoding> {
791
791
  /**
@@ -861,7 +861,7 @@ declare class CodecManager {
861
861
  validate<T extends TSchema$1>(schema: T, value: unknown, options?: ValidateOptions): Static<T>;
862
862
  }
863
863
  //#endregion
864
- //#region src/core/providers/EventManager.d.ts
864
+ //#region ../../src/core/providers/EventManager.d.ts
865
865
  declare class EventManager {
866
866
  protected logFn?: () => LoggerInterface | undefined;
867
867
  /**
@@ -900,7 +900,7 @@ declare class EventManager {
900
900
  }): Promise<void>;
901
901
  }
902
902
  //#endregion
903
- //#region src/core/providers/StateManager.d.ts
903
+ //#region ../../src/core/providers/StateManager.d.ts
904
904
  interface AtomWithValue {
905
905
  atom: Atom;
906
906
  value: unknown;
@@ -952,7 +952,7 @@ declare class StateManager<State$1 extends object = State> {
952
952
  }
953
953
  type OnlyArray<T extends object> = { [K in keyof T]: NonNullable<T[K]> extends Array<any> ? K : never };
954
954
  //#endregion
955
- //#region src/core/Alepha.d.ts
955
+ //#region ../../src/core/Alepha.d.ts
956
956
  /**
957
957
  * Core container of the Alepha framework.
958
958
  *
@@ -1473,7 +1473,7 @@ interface Hooks {
1473
1473
  };
1474
1474
  }
1475
1475
  //#endregion
1476
- //#region src/core/interfaces/Run.d.ts
1476
+ //#region ../../src/core/interfaces/Run.d.ts
1477
1477
  interface RunOptions {
1478
1478
  /**
1479
1479
  * Environment variables to be used by the application.
@@ -1500,7 +1500,7 @@ interface RunOptions {
1500
1500
  cluster?: boolean;
1501
1501
  }
1502
1502
  //#endregion
1503
- //#region src/core/constants/OPTIONS.d.ts
1503
+ //#region ../../src/core/constants/OPTIONS.d.ts
1504
1504
  /**
1505
1505
  * Used for primitives options.
1506
1506
  *
@@ -1508,31 +1508,31 @@ interface RunOptions {
1508
1508
  */
1509
1509
  declare const OPTIONS: unique symbol;
1510
1510
  //#endregion
1511
- //#region src/core/errors/AppNotStartedError.d.ts
1511
+ //#region ../../src/core/errors/AppNotStartedError.d.ts
1512
1512
  declare class AppNotStartedError extends AlephaError {
1513
1513
  readonly name = "AppNotStartedError";
1514
1514
  constructor();
1515
1515
  }
1516
1516
  //#endregion
1517
- //#region src/core/errors/CircularDependencyError.d.ts
1517
+ //#region ../../src/core/errors/CircularDependencyError.d.ts
1518
1518
  declare class CircularDependencyError extends AlephaError {
1519
1519
  readonly name = "CircularDependencyError";
1520
1520
  constructor(provider: string, parents?: string[]);
1521
1521
  }
1522
1522
  //#endregion
1523
- //#region src/core/errors/ContainerLockedError.d.ts
1523
+ //#region ../../src/core/errors/ContainerLockedError.d.ts
1524
1524
  declare class ContainerLockedError extends AlephaError {
1525
1525
  readonly name = "ContainerLockedError";
1526
1526
  constructor(message?: string);
1527
1527
  }
1528
1528
  //#endregion
1529
- //#region src/core/errors/TooLateSubstitutionError.d.ts
1529
+ //#region ../../src/core/errors/TooLateSubstitutionError.d.ts
1530
1530
  declare class TooLateSubstitutionError extends AlephaError {
1531
1531
  readonly name = "TooLateSubstitutionError";
1532
1532
  constructor(original: string, substitution: string);
1533
1533
  }
1534
1534
  //#endregion
1535
- //#region src/core/schemas/pageSchema.d.ts
1535
+ //#region ../../src/core/schemas/pageSchema.d.ts
1536
1536
  declare const pageMetadataSchema: TObject<{
1537
1537
  number: TInteger;
1538
1538
  size: TInteger;
@@ -1625,7 +1625,7 @@ declare module "alepha" {
1625
1625
  }
1626
1626
  }
1627
1627
  //#endregion
1628
- //#region src/core/helpers/createPagination.d.ts
1628
+ //#region ../../src/core/helpers/createPagination.d.ts
1629
1629
  /**
1630
1630
  * Create a pagination object from an array of entities.
1631
1631
  *
@@ -1675,7 +1675,7 @@ declare function createPagination<T>(entities: T[], limit?: number, offset?: num
1675
1675
  direction: "asc" | "desc";
1676
1676
  }>): Page<T>;
1677
1677
  //#endregion
1678
- //#region src/core/interfaces/Pagination.d.ts
1678
+ //#region ../../src/core/interfaces/Pagination.d.ts
1679
1679
  /**
1680
1680
  * Generic pagination request parameters.
1681
1681
  *
@@ -1730,7 +1730,7 @@ interface SortField {
1730
1730
  direction: SortDirection;
1731
1731
  }
1732
1732
  //#endregion
1733
- //#region src/core/primitives/$context.d.ts
1733
+ //#region ../../src/core/primitives/$context.d.ts
1734
1734
  /**
1735
1735
  * Get Alepha instance and current service from the current context.
1736
1736
  *
@@ -1775,7 +1775,7 @@ interface ContextPrimitive {
1775
1775
  module?: Service;
1776
1776
  }
1777
1777
  //#endregion
1778
- //#region src/core/primitives/$env.d.ts
1778
+ //#region ../../src/core/primitives/$env.d.ts
1779
1779
  /**
1780
1780
  * Get typed values from environment variables.
1781
1781
  *
@@ -1804,7 +1804,7 @@ interface ContextPrimitive {
1804
1804
  */
1805
1805
  declare const $env: <T extends TObject$1>(type: T) => Static$1<T>;
1806
1806
  //#endregion
1807
- //#region src/core/primitives/$hook.d.ts
1807
+ //#region ../../src/core/primitives/$hook.d.ts
1808
1808
  /**
1809
1809
  * Registers a new hook.
1810
1810
  *
@@ -1875,7 +1875,7 @@ declare class HookPrimitive<T extends keyof Hooks> extends Primitive<HookOptions
1875
1875
  protected onInit(): void;
1876
1876
  }
1877
1877
  //#endregion
1878
- //#region src/core/primitives/$use.d.ts
1878
+ //#region ../../src/core/primitives/$use.d.ts
1879
1879
  /**
1880
1880
  * Subscribes to an atom's state and returns its current value for use in components.
1881
1881
  *
@@ -1900,7 +1900,7 @@ declare class HookPrimitive<T extends keyof Hooks> extends Primitive<HookOptions
1900
1900
  */
1901
1901
  declare const $use: <T extends TObject, N extends string>(atom: Atom<T, N>) => Readonly<Static<T>>;
1902
1902
  //#endregion
1903
- //#region src/core/schemas/pageQuerySchema.d.ts
1903
+ //#region ../../src/core/schemas/pageQuerySchema.d.ts
1904
1904
  declare const pageQuerySchema: TObject<{
1905
1905
  page: TOptional<TInteger>;
1906
1906
  size: TOptional<TInteger>;
@@ -1908,7 +1908,7 @@ declare const pageQuerySchema: TObject<{
1908
1908
  }>;
1909
1909
  type PageQuery = Static<typeof pageQuerySchema>;
1910
1910
  //#endregion
1911
- //#region src/core/index.d.ts
1911
+ //#region ../../src/core/index.d.ts
1912
1912
  /**
1913
1913
  * Run Alepha application, trigger start lifecycle.
1914
1914
  *
@@ -8,7 +8,7 @@ import TypeBoxFormat from "typebox/format";
8
8
  import { Locale } from "typebox/system";
9
9
  import * as TypeBoxValue from "typebox/value";
10
10
 
11
- //#region src/core/constants/KIND.ts
11
+ //#region ../../src/core/constants/KIND.ts
12
12
  /**
13
13
  * Used for identifying primitives.
14
14
  *
@@ -17,7 +17,7 @@ import * as TypeBoxValue from "typebox/value";
17
17
  const KIND = Symbol.for("Alepha.Kind");
18
18
 
19
19
  //#endregion
20
- //#region src/core/constants/MODULE.ts
20
+ //#region ../../src/core/constants/MODULE.ts
21
21
  /**
22
22
  * Used for identifying modules.
23
23
  *
@@ -26,7 +26,7 @@ const KIND = Symbol.for("Alepha.Kind");
26
26
  const MODULE = Symbol.for("Alepha.Module");
27
27
 
28
28
  //#endregion
29
- //#region src/core/constants/OPTIONS.ts
29
+ //#region ../../src/core/constants/OPTIONS.ts
30
30
  /**
31
31
  * Used for primitives options.
32
32
  *
@@ -35,7 +35,7 @@ const MODULE = Symbol.for("Alepha.Module");
35
35
  const OPTIONS = Symbol.for("Alepha.Options");
36
36
 
37
37
  //#endregion
38
- //#region src/core/errors/AlephaError.ts
38
+ //#region ../../src/core/errors/AlephaError.ts
39
39
  /**
40
40
  * Default error class for Alepha.
41
41
  */
@@ -44,7 +44,7 @@ var AlephaError = class extends Error {
44
44
  };
45
45
 
46
46
  //#endregion
47
- //#region src/core/errors/CircularDependencyError.ts
47
+ //#region ../../src/core/errors/CircularDependencyError.ts
48
48
  var CircularDependencyError = class extends AlephaError {
49
49
  name = "CircularDependencyError";
50
50
  constructor(provider, parents) {
@@ -53,7 +53,7 @@ var CircularDependencyError = class extends AlephaError {
53
53
  };
54
54
 
55
55
  //#endregion
56
- //#region src/core/errors/ContainerLockedError.ts
56
+ //#region ../../src/core/errors/ContainerLockedError.ts
57
57
  var ContainerLockedError = class extends AlephaError {
58
58
  name = "ContainerLockedError";
59
59
  constructor(message = "Container is locked. No more providers can be added.") {
@@ -62,7 +62,7 @@ var ContainerLockedError = class extends AlephaError {
62
62
  };
63
63
 
64
64
  //#endregion
65
- //#region src/core/errors/TooLateSubstitutionError.ts
65
+ //#region ../../src/core/errors/TooLateSubstitutionError.ts
66
66
  var TooLateSubstitutionError = class extends AlephaError {
67
67
  name = "TooLateSubstitutionError";
68
68
  constructor(original, substitution) {
@@ -71,7 +71,7 @@ var TooLateSubstitutionError = class extends AlephaError {
71
71
  };
72
72
 
73
73
  //#endregion
74
- //#region src/core/errors/MissingContextError.ts
74
+ //#region ../../src/core/errors/MissingContextError.ts
75
75
  var MissingContextError = class extends AlephaError {
76
76
  name = "MissingContextError";
77
77
  constructor() {
@@ -81,7 +81,7 @@ var MissingContextError = class extends AlephaError {
81
81
  };
82
82
 
83
83
  //#endregion
84
- //#region src/core/helpers/ref.ts
84
+ //#region ../../src/core/helpers/ref.ts
85
85
  /**
86
86
  * Store the current context and definition during injection phase.
87
87
  *
@@ -130,7 +130,7 @@ const __alephaRef = {};
130
130
  */
131
131
 
132
132
  //#endregion
133
- //#region src/core/primitives/$context.ts
133
+ //#region ../../src/core/primitives/$context.ts
134
134
  /**
135
135
  * Get Alepha instance and current service from the current context.
136
136
  *
@@ -168,7 +168,7 @@ const $context = () => {
168
168
  };
169
169
 
170
170
  //#endregion
171
- //#region src/core/helpers/primitive.ts
171
+ //#region ../../src/core/helpers/primitive.ts
172
172
  var Primitive = class {
173
173
  alepha;
174
174
  options;
@@ -201,7 +201,7 @@ const createPrimitive = (primitive, options) => {
201
201
  };
202
202
 
203
203
  //#endregion
204
- //#region src/core/interfaces/Service.ts
204
+ //#region ../../src/core/interfaces/Service.ts
205
205
  function isClass(func) {
206
206
  if (typeof func !== "function") return false;
207
207
  const descriptor = Object.getOwnPropertyDescriptor(func, "prototype");
@@ -209,7 +209,7 @@ function isClass(func) {
209
209
  }
210
210
 
211
211
  //#endregion
212
- //#region src/core/primitives/$module.ts
212
+ //#region ../../src/core/primitives/$module.ts
213
213
  /**
214
214
  * Wrap Services and Primitives into a Module.
215
215
  *
@@ -301,7 +301,7 @@ var Module = class Module {
301
301
  };
302
302
 
303
303
  //#endregion
304
- //#region src/core/providers/AlsProvider.ts
304
+ //#region ../../src/core/providers/AlsProvider.ts
305
305
  var AlsProvider = class AlsProvider {
306
306
  static create = () => {};
307
307
  als;
@@ -333,7 +333,7 @@ var AlsProvider = class AlsProvider {
333
333
  };
334
334
 
335
335
  //#endregion
336
- //#region src/core/primitives/$inject.ts
336
+ //#region ../../src/core/primitives/$inject.ts
337
337
  /**
338
338
  * Get the instance of the specified type from the context.
339
339
  *
@@ -355,7 +355,7 @@ const $inject = (type, opts = {}) => {
355
355
  var InjectPrimitive = class extends Primitive {};
356
356
 
357
357
  //#endregion
358
- //#region src/core/providers/Json.ts
358
+ //#region ../../src/core/providers/Json.ts
359
359
  /**
360
360
  * Mimics the JSON global object with stringify and parse methods.
361
361
  *
@@ -371,11 +371,11 @@ var Json = class {
371
371
  };
372
372
 
373
373
  //#endregion
374
- //#region src/core/providers/SchemaCodec.ts
374
+ //#region ../../src/core/providers/SchemaCodec.ts
375
375
  var SchemaCodec = class {};
376
376
 
377
377
  //#endregion
378
- //#region src/core/providers/JsonSchemaCodec.ts
378
+ //#region ../../src/core/providers/JsonSchemaCodec.ts
379
379
  var JsonSchemaCodec = class extends SchemaCodec {
380
380
  json = $inject(Json);
381
381
  encoder = new TextEncoder();
@@ -401,7 +401,7 @@ var JsonSchemaCodec = class extends SchemaCodec {
401
401
  };
402
402
 
403
403
  //#endregion
404
- //#region src/core/errors/TypeBoxError.ts
404
+ //#region ../../src/core/errors/TypeBoxError.ts
405
405
  var TypeBoxError = class extends AlephaError {
406
406
  name = "TypeBoxError";
407
407
  cause;
@@ -422,7 +422,7 @@ var TypeBoxError = class extends AlephaError {
422
422
  };
423
423
 
424
424
  //#endregion
425
- //#region src/core/providers/SchemaValidator.ts
425
+ //#region ../../src/core/providers/SchemaValidator.ts
426
426
  var SchemaValidator = class {
427
427
  cache = /* @__PURE__ */ new Map();
428
428
  /**
@@ -491,7 +491,7 @@ var SchemaValidator = class {
491
491
  };
492
492
 
493
493
  //#endregion
494
- //#region src/core/providers/CodecManager.ts
494
+ //#region ../../src/core/providers/CodecManager.ts
495
495
  /**
496
496
  * CodecManager manages multiple codec formats and provides a unified interface
497
497
  * for encoding and decoding data with different formats.
@@ -556,7 +556,7 @@ var CodecManager = class {
556
556
  };
557
557
 
558
558
  //#endregion
559
- //#region src/core/providers/EventManager.ts
559
+ //#region ../../src/core/providers/EventManager.ts
560
560
  var EventManager = class {
561
561
  logFn;
562
562
  /**
@@ -620,7 +620,7 @@ var EventManager = class {
620
620
  };
621
621
 
622
622
  //#endregion
623
- //#region src/core/primitives/$atom.ts
623
+ //#region ../../src/core/primitives/$atom.ts
624
624
  /**
625
625
  * Define an atom for state management.
626
626
  *
@@ -671,7 +671,7 @@ var Atom = class {
671
671
  $atom[KIND] = "atom";
672
672
 
673
673
  //#endregion
674
- //#region src/core/providers/StateManager.ts
674
+ //#region ../../src/core/providers/StateManager.ts
675
675
  var StateManager = class {
676
676
  als = $inject(AlsProvider);
677
677
  events = $inject(EventManager);
@@ -765,7 +765,7 @@ var StateManager = class {
765
765
  };
766
766
 
767
767
  //#endregion
768
- //#region src/core/Alepha.ts
768
+ //#region ../../src/core/Alepha.ts
769
769
  /**
770
770
  * Core container of the Alepha framework.
771
771
  *
@@ -1369,7 +1369,7 @@ var Alepha = class Alepha {
1369
1369
  };
1370
1370
 
1371
1371
  //#endregion
1372
- //#region src/core/errors/AppNotStartedError.ts
1372
+ //#region ../../src/core/errors/AppNotStartedError.ts
1373
1373
  var AppNotStartedError = class extends AlephaError {
1374
1374
  name = "AppNotStartedError";
1375
1375
  constructor() {
@@ -1378,7 +1378,7 @@ var AppNotStartedError = class extends AlephaError {
1378
1378
  };
1379
1379
 
1380
1380
  //#endregion
1381
- //#region src/core/helpers/createPagination.ts
1381
+ //#region ../../src/core/helpers/createPagination.ts
1382
1382
  /**
1383
1383
  * Create a pagination object from an array of entities.
1384
1384
  *
@@ -1449,7 +1449,7 @@ function createPagination(entities, limit = 10, offset = 0, sort) {
1449
1449
  }
1450
1450
 
1451
1451
  //#endregion
1452
- //#region src/core/helpers/FileLike.ts
1452
+ //#region ../../src/core/helpers/FileLike.ts
1453
1453
  const isTypeFile = (value) => {
1454
1454
  return value && typeof value === "object" && "format" in value && value.format === "binary";
1455
1455
  };
@@ -1458,7 +1458,7 @@ const isFileLike = (value) => {
1458
1458
  };
1459
1459
 
1460
1460
  //#endregion
1461
- //#region src/core/providers/TypeProvider.ts
1461
+ //#region ../../src/core/providers/TypeProvider.ts
1462
1462
  const isUUID = TypeBoxFormat.IsUuid;
1463
1463
  const isEmail = TypeBoxFormat.IsEmail;
1464
1464
  const isURL = TypeBoxFormat.IsUrl;
@@ -1903,7 +1903,7 @@ var TypeProvider = class TypeProvider {
1903
1903
  const t = new TypeProvider();
1904
1904
 
1905
1905
  //#endregion
1906
- //#region src/core/primitives/$env.ts
1906
+ //#region ../../src/core/primitives/$env.ts
1907
1907
  /**
1908
1908
  * Get typed values from environment variables.
1909
1909
  *
@@ -1937,7 +1937,7 @@ const $env = (type) => {
1937
1937
  };
1938
1938
 
1939
1939
  //#endregion
1940
- //#region src/core/primitives/$hook.ts
1940
+ //#region ../../src/core/primitives/$hook.ts
1941
1941
  /**
1942
1942
  * Registers a new hook.
1943
1943
  *
@@ -1994,7 +1994,7 @@ var HookPrimitive = class extends Primitive {
1994
1994
  $hook[KIND] = HookPrimitive;
1995
1995
 
1996
1996
  //#endregion
1997
- //#region src/core/primitives/$use.ts
1997
+ //#region ../../src/core/primitives/$use.ts
1998
1998
  /**
1999
1999
  * Subscribes to an atom's state and returns its current value for use in components.
2000
2000
  *
@@ -2028,7 +2028,7 @@ const $use = (atom) => {
2028
2028
  };
2029
2029
 
2030
2030
  //#endregion
2031
- //#region src/core/schemas/pageQuerySchema.ts
2031
+ //#region ../../src/core/schemas/pageQuerySchema.ts
2032
2032
  const pageQuerySchema = t.object({
2033
2033
  page: t.optional(t.integer({
2034
2034
  description: "The page number to retrieve.",
@@ -2045,7 +2045,7 @@ const pageQuerySchema = t.object({
2045
2045
  });
2046
2046
 
2047
2047
  //#endregion
2048
- //#region src/core/schemas/pageSchema.ts
2048
+ //#region ../../src/core/schemas/pageSchema.ts
2049
2049
  const pageMetadataSchema = t.object({
2050
2050
  number: t.integer({ description: "Page number, starting from 0" }),
2051
2051
  size: t.integer({ description: "Number of items per page (requested page size)" }),
@@ -2093,7 +2093,7 @@ const pageSchema = (objectSchema, options) => t.object({
2093
2093
  TypeProvider.prototype.page = (itemSchema) => pageSchema(itemSchema);
2094
2094
 
2095
2095
  //#endregion
2096
- //#region src/core/index.ts
2096
+ //#region ../../src/core/index.ts
2097
2097
  /**
2098
2098
  * Run Alepha application, trigger start lifecycle.
2099
2099
  *