alepha 0.15.2 → 0.15.3

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/README.md +68 -80
  2. package/dist/api/audits/index.d.ts +332 -332
  3. package/dist/api/audits/index.d.ts.map +1 -1
  4. package/dist/api/files/index.d.ts +170 -170
  5. package/dist/api/files/index.d.ts.map +1 -1
  6. package/dist/api/jobs/index.d.ts +151 -151
  7. package/dist/api/keys/index.d.ts +195 -195
  8. package/dist/api/keys/index.d.ts.map +1 -1
  9. package/dist/api/parameters/index.d.ts +260 -260
  10. package/dist/api/users/index.d.ts +22 -11
  11. package/dist/api/users/index.d.ts.map +1 -1
  12. package/dist/api/users/index.js +7 -2
  13. package/dist/api/users/index.js.map +1 -1
  14. package/dist/api/verifications/index.d.ts +128 -128
  15. package/dist/api/verifications/index.d.ts.map +1 -1
  16. package/dist/bucket/index.d.ts +8 -0
  17. package/dist/bucket/index.d.ts.map +1 -1
  18. package/dist/bucket/index.js +7 -2
  19. package/dist/bucket/index.js.map +1 -1
  20. package/dist/cli/index.d.ts +191 -74
  21. package/dist/cli/index.d.ts.map +1 -1
  22. package/dist/cli/index.js +215 -48
  23. package/dist/cli/index.js.map +1 -1
  24. package/dist/command/index.d.ts +10 -0
  25. package/dist/command/index.d.ts.map +1 -1
  26. package/dist/command/index.js +67 -13
  27. package/dist/command/index.js.map +1 -1
  28. package/dist/core/index.browser.js +28 -21
  29. package/dist/core/index.browser.js.map +1 -1
  30. package/dist/core/index.d.ts.map +1 -1
  31. package/dist/core/index.js +28 -21
  32. package/dist/core/index.js.map +1 -1
  33. package/dist/core/index.native.js +28 -21
  34. package/dist/core/index.native.js.map +1 -1
  35. package/dist/email/index.d.ts +8 -0
  36. package/dist/email/index.d.ts.map +1 -1
  37. package/dist/email/index.js +7 -2
  38. package/dist/email/index.js.map +1 -1
  39. package/dist/mcp/index.d.ts +5 -5
  40. package/dist/orm/index.bun.js +32 -16
  41. package/dist/orm/index.bun.js.map +1 -1
  42. package/dist/orm/index.d.ts +4 -1
  43. package/dist/orm/index.d.ts.map +1 -1
  44. package/dist/orm/index.js +34 -22
  45. package/dist/orm/index.js.map +1 -1
  46. package/dist/react/router/index.browser.js +9 -15
  47. package/dist/react/router/index.browser.js.map +1 -1
  48. package/dist/react/router/index.d.ts +295 -407
  49. package/dist/react/router/index.d.ts.map +1 -1
  50. package/dist/react/router/index.js +566 -776
  51. package/dist/react/router/index.js.map +1 -1
  52. package/dist/redis/index.d.ts +19 -19
  53. package/dist/security/index.d.ts +42 -42
  54. package/dist/security/index.d.ts.map +1 -1
  55. package/dist/security/index.js +8 -7
  56. package/dist/security/index.js.map +1 -1
  57. package/dist/server/auth/index.d.ts +167 -167
  58. package/dist/server/core/index.d.ts +9 -9
  59. package/dist/server/health/index.d.ts +17 -17
  60. package/dist/server/links/index.d.ts +39 -39
  61. package/dist/server/static/index.js +7 -2
  62. package/dist/server/static/index.js.map +1 -1
  63. package/dist/server/swagger/index.d.ts +8 -0
  64. package/dist/server/swagger/index.d.ts.map +1 -1
  65. package/dist/server/swagger/index.js +7 -2
  66. package/dist/server/swagger/index.js.map +1 -1
  67. package/dist/sms/index.d.ts +8 -0
  68. package/dist/sms/index.d.ts.map +1 -1
  69. package/dist/sms/index.js +7 -2
  70. package/dist/sms/index.js.map +1 -1
  71. package/dist/system/index.browser.js +734 -12
  72. package/dist/system/index.browser.js.map +1 -1
  73. package/dist/system/index.d.ts +8 -0
  74. package/dist/system/index.d.ts.map +1 -1
  75. package/dist/system/index.js +7 -2
  76. package/dist/system/index.js.map +1 -1
  77. package/dist/vite/index.d.ts +1 -1
  78. package/dist/vite/index.js +15 -7
  79. package/dist/vite/index.js.map +1 -1
  80. package/package.json +4 -2
  81. package/src/api/logs/TODO.md +13 -10
  82. package/src/cli/apps/AlephaPackageBuilderCli.ts +9 -0
  83. package/src/cli/atoms/buildOptions.ts +99 -9
  84. package/src/cli/commands/build.ts +149 -32
  85. package/src/cli/commands/db.ts +5 -7
  86. package/src/cli/commands/init.spec.ts +50 -6
  87. package/src/cli/commands/init.ts +28 -5
  88. package/src/cli/providers/ViteDevServerProvider.ts +1 -10
  89. package/src/cli/services/AlephaCliUtils.ts +16 -0
  90. package/src/cli/services/PackageManagerUtils.ts +2 -0
  91. package/src/cli/services/ProjectScaffolder.spec.ts +97 -0
  92. package/src/cli/services/ProjectScaffolder.ts +28 -6
  93. package/src/cli/templates/agentMd.ts +6 -1
  94. package/src/cli/templates/apiAppSecurityTs.ts +11 -0
  95. package/src/cli/templates/apiIndexTs.ts +18 -4
  96. package/src/cli/templates/webAppRouterTs.ts +25 -1
  97. package/src/cli/templates/webHelloComponentTsx.ts +15 -5
  98. package/src/command/helpers/Runner.spec.ts +135 -0
  99. package/src/command/helpers/Runner.ts +4 -1
  100. package/src/command/providers/CliProvider.spec.ts +325 -0
  101. package/src/command/providers/CliProvider.ts +117 -7
  102. package/src/core/Alepha.ts +32 -25
  103. package/src/orm/index.bun.ts +1 -1
  104. package/src/orm/index.ts +2 -6
  105. package/src/orm/providers/drivers/BunSqliteProvider.ts +4 -1
  106. package/src/orm/providers/drivers/CloudflareD1Provider.ts +57 -30
  107. package/src/orm/providers/drivers/DatabaseProvider.ts +9 -1
  108. package/src/orm/providers/drivers/NodeSqliteProvider.ts +4 -1
  109. package/src/react/router/hooks/useActive.ts +1 -1
  110. package/src/react/router/hooks/useRouter.ts +1 -1
  111. package/src/react/router/index.ts +4 -0
  112. package/src/react/router/primitives/$page.browser.spec.tsx +24 -24
  113. package/src/react/router/primitives/$page.spec.tsx +0 -32
  114. package/src/react/router/primitives/$page.ts +6 -14
  115. package/src/react/router/providers/ReactBrowserProvider.ts +6 -3
  116. package/src/react/router/providers/ReactPageProvider.ts +1 -1
  117. package/src/react/router/providers/ReactPreloadProvider.spec.ts +142 -0
  118. package/src/react/router/providers/ReactPreloadProvider.ts +85 -0
  119. package/src/react/router/providers/ReactServerProvider.ts +7 -78
  120. package/src/react/router/providers/ReactServerTemplateProvider.spec.ts +210 -0
  121. package/src/react/router/providers/ReactServerTemplateProvider.ts +228 -665
  122. package/src/react/router/services/ReactRouter.ts +13 -13
  123. package/src/security/__tests__/ServerSecurityProvider.spec.ts +77 -0
  124. package/src/security/providers/ServerSecurityProvider.ts +30 -22
  125. package/src/server/core/providers/NodeHttpServerProvider.spec.ts +9 -3
  126. package/src/system/index.browser.ts +25 -0
  127. package/src/system/index.workerd.ts +1 -0
  128. package/src/system/providers/FileSystemProvider.ts +8 -0
  129. package/src/system/providers/NodeFileSystemProvider.ts +11 -2
  130. package/src/vite/tasks/buildServer.ts +2 -12
  131. package/src/vite/tasks/generateCloudflare.ts +10 -7
  132. package/src/vite/tasks/generateDocker.ts +4 -0
@@ -1,4 +1,4 @@
1
- import * as alepha181 from "alepha";
1
+ import * as alepha206 from "alepha";
2
2
  import { Alepha, Async, KIND, Primitive, Static } from "alepha";
3
3
  import * as alepha_server_cookies0 from "alepha/server/cookies";
4
4
  import { Cookies, ServerCookiesProvider } from "alepha/server/cookies";
@@ -19,45 +19,45 @@ declare const alephaServerAuthRoutes: {
19
19
  };
20
20
  //#endregion
21
21
  //#region ../../src/server/auth/schemas/authenticationProviderSchema.d.ts
22
- declare const authenticationProviderSchema: alepha181.TObject<{
23
- name: alepha181.TString;
24
- type: alepha181.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
22
+ declare const authenticationProviderSchema: alepha206.TObject<{
23
+ name: alepha206.TString;
24
+ type: alepha206.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
25
25
  }>;
26
26
  type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
27
27
  //#endregion
28
28
  //#region ../../src/server/auth/schemas/tokenResponseSchema.d.ts
29
- declare const tokenResponseSchema: alepha181.TObject<{
30
- provider: alepha181.TString;
31
- access_token: alepha181.TString;
32
- issued_at: alepha181.TNumber;
33
- expires_in: alepha181.TOptional<alepha181.TNumber>;
34
- refresh_token: alepha181.TOptional<alepha181.TString>;
35
- refresh_token_expires_in: alepha181.TOptional<alepha181.TNumber>;
36
- refresh_expires_in: alepha181.TOptional<alepha181.TNumber>;
37
- id_token: alepha181.TOptional<alepha181.TString>;
38
- scope: alepha181.TOptional<alepha181.TString>;
39
- user: alepha181.TObject<{
40
- id: alepha181.TString;
41
- name: alepha181.TOptional<alepha181.TString>;
42
- email: alepha181.TOptional<alepha181.TString>;
43
- username: alepha181.TOptional<alepha181.TString>;
44
- picture: alepha181.TOptional<alepha181.TString>;
45
- sessionId: alepha181.TOptional<alepha181.TString>;
46
- organizations: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
47
- roles: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
29
+ declare const tokenResponseSchema: alepha206.TObject<{
30
+ provider: alepha206.TString;
31
+ access_token: alepha206.TString;
32
+ issued_at: alepha206.TNumber;
33
+ expires_in: alepha206.TOptional<alepha206.TNumber>;
34
+ refresh_token: alepha206.TOptional<alepha206.TString>;
35
+ refresh_token_expires_in: alepha206.TOptional<alepha206.TNumber>;
36
+ refresh_expires_in: alepha206.TOptional<alepha206.TNumber>;
37
+ id_token: alepha206.TOptional<alepha206.TString>;
38
+ scope: alepha206.TOptional<alepha206.TString>;
39
+ user: alepha206.TObject<{
40
+ id: alepha206.TString;
41
+ name: alepha206.TOptional<alepha206.TString>;
42
+ email: alepha206.TOptional<alepha206.TString>;
43
+ username: alepha206.TOptional<alepha206.TString>;
44
+ picture: alepha206.TOptional<alepha206.TString>;
45
+ sessionId: alepha206.TOptional<alepha206.TString>;
46
+ organizations: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
47
+ roles: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
48
48
  }>;
49
- api: alepha181.TObject<{
50
- prefix: alepha181.TOptional<alepha181.TString>;
51
- links: alepha181.TArray<alepha181.TObject<{
52
- name: alepha181.TString;
53
- group: alepha181.TOptional<alepha181.TString>;
54
- path: alepha181.TString;
55
- method: alepha181.TOptional<alepha181.TString>;
56
- requestBodyType: alepha181.TOptional<alepha181.TString>;
57
- service: alepha181.TOptional<alepha181.TString>;
58
- rawSchema: alepha181.TOptional<alepha181.TObject<{
59
- body: alepha181.TOptional<alepha181.TString>;
60
- response: alepha181.TOptional<alepha181.TString>;
49
+ api: alepha206.TObject<{
50
+ prefix: alepha206.TOptional<alepha206.TString>;
51
+ links: alepha206.TArray<alepha206.TObject<{
52
+ name: alepha206.TString;
53
+ group: alepha206.TOptional<alepha206.TString>;
54
+ path: alepha206.TString;
55
+ method: alepha206.TOptional<alepha206.TString>;
56
+ requestBodyType: alepha206.TOptional<alepha206.TString>;
57
+ service: alepha206.TOptional<alepha206.TString>;
58
+ rawSchema: alepha206.TOptional<alepha206.TObject<{
59
+ body: alepha206.TOptional<alepha206.TString>;
60
+ response: alepha206.TOptional<alepha206.TString>;
61
61
  }>>;
62
62
  }>>;
63
63
  }>;
@@ -65,43 +65,43 @@ declare const tokenResponseSchema: alepha181.TObject<{
65
65
  type TokenResponse = Static<typeof tokenResponseSchema>;
66
66
  //#endregion
67
67
  //#region ../../src/server/auth/schemas/tokensSchema.d.ts
68
- declare const tokensSchema: alepha181.TObject<{
69
- provider: alepha181.TString;
70
- access_token: alepha181.TString;
71
- issued_at: alepha181.TNumber;
72
- expires_in: alepha181.TOptional<alepha181.TNumber>;
73
- refresh_token: alepha181.TOptional<alepha181.TString>;
74
- refresh_token_expires_in: alepha181.TOptional<alepha181.TNumber>;
75
- refresh_expires_in: alepha181.TOptional<alepha181.TNumber>;
76
- id_token: alepha181.TOptional<alepha181.TString>;
77
- scope: alepha181.TOptional<alepha181.TString>;
68
+ declare const tokensSchema: alepha206.TObject<{
69
+ provider: alepha206.TString;
70
+ access_token: alepha206.TString;
71
+ issued_at: alepha206.TNumber;
72
+ expires_in: alepha206.TOptional<alepha206.TNumber>;
73
+ refresh_token: alepha206.TOptional<alepha206.TString>;
74
+ refresh_token_expires_in: alepha206.TOptional<alepha206.TNumber>;
75
+ refresh_expires_in: alepha206.TOptional<alepha206.TNumber>;
76
+ id_token: alepha206.TOptional<alepha206.TString>;
77
+ scope: alepha206.TOptional<alepha206.TString>;
78
78
  }>;
79
79
  type Tokens = Static<typeof tokensSchema>;
80
80
  //#endregion
81
81
  //#region ../../src/server/auth/schemas/userinfoResponseSchema.d.ts
82
- declare const userinfoResponseSchema: alepha181.TObject<{
83
- user: alepha181.TOptional<alepha181.TObject<{
84
- id: alepha181.TString;
85
- name: alepha181.TOptional<alepha181.TString>;
86
- email: alepha181.TOptional<alepha181.TString>;
87
- username: alepha181.TOptional<alepha181.TString>;
88
- picture: alepha181.TOptional<alepha181.TString>;
89
- sessionId: alepha181.TOptional<alepha181.TString>;
90
- organizations: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
91
- roles: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
82
+ declare const userinfoResponseSchema: alepha206.TObject<{
83
+ user: alepha206.TOptional<alepha206.TObject<{
84
+ id: alepha206.TString;
85
+ name: alepha206.TOptional<alepha206.TString>;
86
+ email: alepha206.TOptional<alepha206.TString>;
87
+ username: alepha206.TOptional<alepha206.TString>;
88
+ picture: alepha206.TOptional<alepha206.TString>;
89
+ sessionId: alepha206.TOptional<alepha206.TString>;
90
+ organizations: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
91
+ roles: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
92
92
  }>>;
93
- api: alepha181.TObject<{
94
- prefix: alepha181.TOptional<alepha181.TString>;
95
- links: alepha181.TArray<alepha181.TObject<{
96
- name: alepha181.TString;
97
- group: alepha181.TOptional<alepha181.TString>;
98
- path: alepha181.TString;
99
- method: alepha181.TOptional<alepha181.TString>;
100
- requestBodyType: alepha181.TOptional<alepha181.TString>;
101
- service: alepha181.TOptional<alepha181.TString>;
102
- rawSchema: alepha181.TOptional<alepha181.TObject<{
103
- body: alepha181.TOptional<alepha181.TString>;
104
- response: alepha181.TOptional<alepha181.TString>;
93
+ api: alepha206.TObject<{
94
+ prefix: alepha206.TOptional<alepha206.TString>;
95
+ links: alepha206.TArray<alepha206.TObject<{
96
+ name: alepha206.TString;
97
+ group: alepha206.TOptional<alepha206.TString>;
98
+ path: alepha206.TString;
99
+ method: alepha206.TOptional<alepha206.TString>;
100
+ requestBodyType: alepha206.TOptional<alepha206.TString>;
101
+ service: alepha206.TOptional<alepha206.TString>;
102
+ rawSchema: alepha206.TOptional<alepha206.TObject<{
103
+ body: alepha206.TOptional<alepha206.TString>;
104
+ response: alepha206.TOptional<alepha206.TString>;
105
105
  }>>;
106
106
  }>>;
107
107
  }>;
@@ -1141,35 +1141,35 @@ declare class ServerAuthProvider {
1141
1141
  protected readonly serverCookiesProvider: ServerCookiesProvider;
1142
1142
  protected readonly dateTimeProvider: DateTimeProvider;
1143
1143
  protected readonly serverLinksProvider: ServerLinksProvider;
1144
- protected readonly authorizationCode: alepha_server_cookies0.AbstractCookiePrimitive<alepha181.TObject<{
1145
- provider: alepha181.TString;
1146
- realm: alepha181.TOptional<alepha181.TString>;
1147
- codeVerifier: alepha181.TOptional<alepha181.TString>;
1148
- redirectUri: alepha181.TOptional<alepha181.TString>;
1149
- state: alepha181.TOptional<alepha181.TString>;
1150
- nonce: alepha181.TOptional<alepha181.TString>;
1144
+ protected readonly authorizationCode: alepha_server_cookies0.AbstractCookiePrimitive<alepha206.TObject<{
1145
+ provider: alepha206.TString;
1146
+ realm: alepha206.TOptional<alepha206.TString>;
1147
+ codeVerifier: alepha206.TOptional<alepha206.TString>;
1148
+ redirectUri: alepha206.TOptional<alepha206.TString>;
1149
+ state: alepha206.TOptional<alepha206.TString>;
1150
+ nonce: alepha206.TOptional<alepha206.TString>;
1151
1151
  }>>;
1152
- readonly tokens: alepha_server_cookies0.AbstractCookiePrimitive<alepha181.TObject<{
1153
- provider: alepha181.TString;
1154
- access_token: alepha181.TString;
1155
- issued_at: alepha181.TNumber;
1156
- expires_in: alepha181.TOptional<alepha181.TNumber>;
1157
- refresh_token: alepha181.TOptional<alepha181.TString>;
1158
- refresh_token_expires_in: alepha181.TOptional<alepha181.TNumber>;
1159
- refresh_expires_in: alepha181.TOptional<alepha181.TNumber>;
1160
- id_token: alepha181.TOptional<alepha181.TString>;
1161
- scope: alepha181.TOptional<alepha181.TString>;
1152
+ readonly tokens: alepha_server_cookies0.AbstractCookiePrimitive<alepha206.TObject<{
1153
+ provider: alepha206.TString;
1154
+ access_token: alepha206.TString;
1155
+ issued_at: alepha206.TNumber;
1156
+ expires_in: alepha206.TOptional<alepha206.TNumber>;
1157
+ refresh_token: alepha206.TOptional<alepha206.TString>;
1158
+ refresh_token_expires_in: alepha206.TOptional<alepha206.TNumber>;
1159
+ refresh_expires_in: alepha206.TOptional<alepha206.TNumber>;
1160
+ id_token: alepha206.TOptional<alepha206.TString>;
1161
+ scope: alepha206.TOptional<alepha206.TString>;
1162
1162
  }>>;
1163
1163
  get identities(): Array<AuthPrimitive>;
1164
1164
  getAuthenticationProviders(filters?: {
1165
1165
  realmName?: string;
1166
1166
  }): AuthenticationProvider[];
1167
- protected readonly configure: alepha181.HookPrimitive<"configure">;
1167
+ protected readonly configure: alepha206.HookPrimitive<"configure">;
1168
1168
  protected getAccessTokens(tokens: Tokens): string | undefined;
1169
1169
  /**
1170
1170
  * Fill request headers with access token from cookies or fallback to provider's fallback function.
1171
1171
  */
1172
- protected readonly onRequest: alepha181.HookPrimitive<"server:onRequest">;
1172
+ protected readonly onRequest: alepha206.HookPrimitive<"server:onRequest">;
1173
1173
  /**
1174
1174
  * Convert cookies to tokens.
1175
1175
  * If the tokens are expired, try to refresh them using the refresh token.
@@ -1180,29 +1180,29 @@ declare class ServerAuthProvider {
1180
1180
  * Get user information.
1181
1181
  */
1182
1182
  readonly userinfo: alepha_server0.RoutePrimitive<{
1183
- response: alepha181.TObject<{
1184
- user: alepha181.TOptional<alepha181.TObject<{
1185
- id: alepha181.TString;
1186
- name: alepha181.TOptional<alepha181.TString>;
1187
- email: alepha181.TOptional<alepha181.TString>;
1188
- username: alepha181.TOptional<alepha181.TString>;
1189
- picture: alepha181.TOptional<alepha181.TString>;
1190
- sessionId: alepha181.TOptional<alepha181.TString>;
1191
- organizations: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
1192
- roles: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
1183
+ response: alepha206.TObject<{
1184
+ user: alepha206.TOptional<alepha206.TObject<{
1185
+ id: alepha206.TString;
1186
+ name: alepha206.TOptional<alepha206.TString>;
1187
+ email: alepha206.TOptional<alepha206.TString>;
1188
+ username: alepha206.TOptional<alepha206.TString>;
1189
+ picture: alepha206.TOptional<alepha206.TString>;
1190
+ sessionId: alepha206.TOptional<alepha206.TString>;
1191
+ organizations: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
1192
+ roles: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
1193
1193
  }>>;
1194
- api: alepha181.TObject<{
1195
- prefix: alepha181.TOptional<alepha181.TString>;
1196
- links: alepha181.TArray<alepha181.TObject<{
1197
- name: alepha181.TString;
1198
- group: alepha181.TOptional<alepha181.TString>;
1199
- path: alepha181.TString;
1200
- method: alepha181.TOptional<alepha181.TString>;
1201
- requestBodyType: alepha181.TOptional<alepha181.TString>;
1202
- service: alepha181.TOptional<alepha181.TString>;
1203
- rawSchema: alepha181.TOptional<alepha181.TObject<{
1204
- body: alepha181.TOptional<alepha181.TString>;
1205
- response: alepha181.TOptional<alepha181.TString>;
1194
+ api: alepha206.TObject<{
1195
+ prefix: alepha206.TOptional<alepha206.TString>;
1196
+ links: alepha206.TArray<alepha206.TObject<{
1197
+ name: alepha206.TString;
1198
+ group: alepha206.TOptional<alepha206.TString>;
1199
+ path: alepha206.TString;
1200
+ method: alepha206.TOptional<alepha206.TString>;
1201
+ requestBodyType: alepha206.TOptional<alepha206.TString>;
1202
+ service: alepha206.TOptional<alepha206.TString>;
1203
+ rawSchema: alepha206.TOptional<alepha206.TObject<{
1204
+ body: alepha206.TOptional<alepha206.TString>;
1205
+ response: alepha206.TOptional<alepha206.TString>;
1206
1206
  }>>;
1207
1207
  }>>;
1208
1208
  }>;
@@ -1212,69 +1212,69 @@ declare class ServerAuthProvider {
1212
1212
  * Refresh a token for internal providers.
1213
1213
  */
1214
1214
  readonly refresh: alepha_server0.RoutePrimitive<{
1215
- query: alepha181.TObject<{
1216
- provider: alepha181.TString;
1215
+ query: alepha206.TObject<{
1216
+ provider: alepha206.TString;
1217
1217
  }>;
1218
- body: alepha181.TObject<{
1219
- refresh_token: alepha181.TString;
1220
- access_token: alepha181.TOptional<alepha181.TString>;
1218
+ body: alepha206.TObject<{
1219
+ refresh_token: alepha206.TString;
1220
+ access_token: alepha206.TOptional<alepha206.TString>;
1221
1221
  }>;
1222
- response: alepha181.TObject<{
1223
- provider: alepha181.TString;
1224
- access_token: alepha181.TString;
1225
- issued_at: alepha181.TNumber;
1226
- expires_in: alepha181.TOptional<alepha181.TNumber>;
1227
- refresh_token: alepha181.TOptional<alepha181.TString>;
1228
- refresh_token_expires_in: alepha181.TOptional<alepha181.TNumber>;
1229
- refresh_expires_in: alepha181.TOptional<alepha181.TNumber>;
1230
- id_token: alepha181.TOptional<alepha181.TString>;
1231
- scope: alepha181.TOptional<alepha181.TString>;
1222
+ response: alepha206.TObject<{
1223
+ provider: alepha206.TString;
1224
+ access_token: alepha206.TString;
1225
+ issued_at: alepha206.TNumber;
1226
+ expires_in: alepha206.TOptional<alepha206.TNumber>;
1227
+ refresh_token: alepha206.TOptional<alepha206.TString>;
1228
+ refresh_token_expires_in: alepha206.TOptional<alepha206.TNumber>;
1229
+ refresh_expires_in: alepha206.TOptional<alepha206.TNumber>;
1230
+ id_token: alepha206.TOptional<alepha206.TString>;
1231
+ scope: alepha206.TOptional<alepha206.TString>;
1232
1232
  }>;
1233
1233
  }>;
1234
1234
  /**
1235
1235
  * Login for local password-based authentication.
1236
1236
  */
1237
1237
  readonly token: alepha_server0.RoutePrimitive<{
1238
- query: alepha181.TObject<{
1239
- provider: alepha181.TString;
1240
- realm: alepha181.TOptional<alepha181.TString>;
1238
+ query: alepha206.TObject<{
1239
+ provider: alepha206.TString;
1240
+ realm: alepha206.TOptional<alepha206.TString>;
1241
1241
  }>;
1242
- body: alepha181.TObject<{
1243
- username: alepha181.TString;
1244
- password: alepha181.TString;
1242
+ body: alepha206.TObject<{
1243
+ username: alepha206.TString;
1244
+ password: alepha206.TString;
1245
1245
  }>;
1246
- response: alepha181.TObject<{
1247
- provider: alepha181.TString;
1248
- access_token: alepha181.TString;
1249
- issued_at: alepha181.TNumber;
1250
- expires_in: alepha181.TOptional<alepha181.TNumber>;
1251
- refresh_token: alepha181.TOptional<alepha181.TString>;
1252
- refresh_token_expires_in: alepha181.TOptional<alepha181.TNumber>;
1253
- refresh_expires_in: alepha181.TOptional<alepha181.TNumber>;
1254
- id_token: alepha181.TOptional<alepha181.TString>;
1255
- scope: alepha181.TOptional<alepha181.TString>;
1256
- user: alepha181.TObject<{
1257
- id: alepha181.TString;
1258
- name: alepha181.TOptional<alepha181.TString>;
1259
- email: alepha181.TOptional<alepha181.TString>;
1260
- username: alepha181.TOptional<alepha181.TString>;
1261
- picture: alepha181.TOptional<alepha181.TString>;
1262
- sessionId: alepha181.TOptional<alepha181.TString>;
1263
- organizations: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
1264
- roles: alepha181.TOptional<alepha181.TArray<alepha181.TString>>;
1246
+ response: alepha206.TObject<{
1247
+ provider: alepha206.TString;
1248
+ access_token: alepha206.TString;
1249
+ issued_at: alepha206.TNumber;
1250
+ expires_in: alepha206.TOptional<alepha206.TNumber>;
1251
+ refresh_token: alepha206.TOptional<alepha206.TString>;
1252
+ refresh_token_expires_in: alepha206.TOptional<alepha206.TNumber>;
1253
+ refresh_expires_in: alepha206.TOptional<alepha206.TNumber>;
1254
+ id_token: alepha206.TOptional<alepha206.TString>;
1255
+ scope: alepha206.TOptional<alepha206.TString>;
1256
+ user: alepha206.TObject<{
1257
+ id: alepha206.TString;
1258
+ name: alepha206.TOptional<alepha206.TString>;
1259
+ email: alepha206.TOptional<alepha206.TString>;
1260
+ username: alepha206.TOptional<alepha206.TString>;
1261
+ picture: alepha206.TOptional<alepha206.TString>;
1262
+ sessionId: alepha206.TOptional<alepha206.TString>;
1263
+ organizations: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
1264
+ roles: alepha206.TOptional<alepha206.TArray<alepha206.TString>>;
1265
1265
  }>;
1266
- api: alepha181.TObject<{
1267
- prefix: alepha181.TOptional<alepha181.TString>;
1268
- links: alepha181.TArray<alepha181.TObject<{
1269
- name: alepha181.TString;
1270
- group: alepha181.TOptional<alepha181.TString>;
1271
- path: alepha181.TString;
1272
- method: alepha181.TOptional<alepha181.TString>;
1273
- requestBodyType: alepha181.TOptional<alepha181.TString>;
1274
- service: alepha181.TOptional<alepha181.TString>;
1275
- rawSchema: alepha181.TOptional<alepha181.TObject<{
1276
- body: alepha181.TOptional<alepha181.TString>;
1277
- response: alepha181.TOptional<alepha181.TString>;
1266
+ api: alepha206.TObject<{
1267
+ prefix: alepha206.TOptional<alepha206.TString>;
1268
+ links: alepha206.TArray<alepha206.TObject<{
1269
+ name: alepha206.TString;
1270
+ group: alepha206.TOptional<alepha206.TString>;
1271
+ path: alepha206.TString;
1272
+ method: alepha206.TOptional<alepha206.TString>;
1273
+ requestBodyType: alepha206.TOptional<alepha206.TString>;
1274
+ service: alepha206.TOptional<alepha206.TString>;
1275
+ rawSchema: alepha206.TOptional<alepha206.TObject<{
1276
+ body: alepha206.TOptional<alepha206.TString>;
1277
+ response: alepha206.TOptional<alepha206.TString>;
1278
1278
  }>>;
1279
1279
  }>>;
1280
1280
  }>;
@@ -1284,10 +1284,10 @@ declare class ServerAuthProvider {
1284
1284
  * Oauth2/OIDC login route.
1285
1285
  */
1286
1286
  readonly login: alepha_server0.RoutePrimitive<{
1287
- query: alepha181.TObject<{
1288
- provider: alepha181.TString;
1289
- realm: alepha181.TOptional<alepha181.TString>;
1290
- redirect_uri: alepha181.TOptional<alepha181.TString>;
1287
+ query: alepha206.TObject<{
1288
+ provider: alepha206.TString;
1289
+ realm: alepha206.TOptional<alepha206.TString>;
1290
+ redirect_uri: alepha206.TOptional<alepha206.TString>;
1291
1291
  }>;
1292
1292
  }>;
1293
1293
  /**
@@ -1299,8 +1299,8 @@ declare class ServerAuthProvider {
1299
1299
  * Logout route for OAuth2/OIDC providers.
1300
1300
  */
1301
1301
  readonly logout: alepha_server0.RoutePrimitive<{
1302
- query: alepha181.TObject<{
1303
- post_logout_redirect_uri: alepha181.TOptional<alepha181.TString>;
1302
+ query: alepha206.TObject<{
1303
+ post_logout_redirect_uri: alepha206.TOptional<alepha206.TString>;
1304
1304
  }>;
1305
1305
  }>;
1306
1306
  /**
@@ -1634,7 +1634,7 @@ declare module "alepha" {
1634
1634
  *
1635
1635
  * @module alepha.server.auth
1636
1636
  */
1637
- declare const AlephaServerAuth: alepha181.Service<alepha181.Module>;
1637
+ declare const AlephaServerAuth: alepha206.Service<alepha206.Module>;
1638
1638
  //#endregion
1639
1639
  export { $auth, $authCredentials, $authGithub, $authGoogle, AccessToken, AlephaServerAuth, AuthExternal, AuthInternal, AuthPrimitive, AuthPrimitiveOptions, AuthenticationProvider, Credentials, CredentialsFn, CredentialsOptions, LinkAccountFn, LinkAccountOptions, OAuth2Options, OAuth2Profile, OidcOptions, ServerAuthProvider, TokenResponse, Tokens, UserinfoResponse, WithLinkFn, WithLoginFn, alephaServerAuthRoutes, authenticationProviderSchema, tokenResponseSchema, tokensSchema, userinfoResponseSchema };
1640
1640
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import * as alepha19 from "alepha";
2
2
  import { Alepha, AlephaError, Async, CompiledEventExecutor, FileLike, Hooks, KIND, Primitive, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
3
- import * as alepha_logger6 from "alepha/logger";
3
+ import * as alepha_logger4 from "alepha/logger";
4
4
  import { Readable } from "node:stream";
5
5
  import { DateTimeProvider, DurationLike } from "alepha/datetime";
6
6
  import { ReadableStream } from "node:stream/web";
@@ -311,7 +311,7 @@ declare class ServerRequestParser {
311
311
  //#region ../../src/server/core/providers/ServerTimingProvider.d.ts
312
312
  type TimingMap = Record<string, [number, number]>;
313
313
  declare class ServerTimingProvider {
314
- protected readonly log: alepha_logger6.Logger;
314
+ protected readonly log: alepha_logger4.Logger;
315
315
  protected readonly alepha: Alepha;
316
316
  options: {
317
317
  prefix: string;
@@ -335,7 +335,7 @@ declare class ServerTimingProvider {
335
335
  * - $page => React route (for React SSR)
336
336
  */
337
337
  declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
338
- protected readonly log: alepha_logger6.Logger;
338
+ protected readonly log: alepha_logger4.Logger;
339
339
  protected readonly alepha: Alepha;
340
340
  protected readonly routes: ServerRoute[];
341
341
  protected readonly serverTimingProvider: ServerTimingProvider;
@@ -426,7 +426,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
426
426
  * ServerProvider supports both Node.js HTTP requests and Web (Fetch API) requests.
427
427
  */
428
428
  declare class ServerProvider {
429
- protected readonly log: alepha_logger6.Logger;
429
+ protected readonly log: alepha_logger4.Logger;
430
430
  protected readonly alepha: Alepha;
431
431
  protected readonly dateTimeProvider: DateTimeProvider;
432
432
  protected readonly router: ServerRouterProvider;
@@ -487,7 +487,7 @@ declare class ServerProvider {
487
487
  //#endregion
488
488
  //#region ../../src/server/core/services/HttpClient.d.ts
489
489
  declare class HttpClient {
490
- protected readonly log: alepha_logger6.Logger;
490
+ protected readonly log: alepha_logger4.Logger;
491
491
  protected readonly alepha: Alepha;
492
492
  readonly cache: alepha_cache0.CachePrimitiveFn<HttpClientCache, any[]>;
493
493
  protected readonly pendingRequests: HttpClientPendingRequests;
@@ -703,7 +703,7 @@ interface ActionPrimitiveOptions<TConfig extends RequestConfigSchema> extends Om
703
703
  handler: ServerActionHandler<TConfig>;
704
704
  }
705
705
  declare class ActionPrimitive<TConfig extends RequestConfigSchema> extends Primitive<ActionPrimitiveOptions<TConfig>> {
706
- protected readonly log: alepha_logger6.Logger;
706
+ protected readonly log: alepha_logger4.Logger;
707
707
  protected readonly env: {
708
708
  SERVER_API_PREFIX: string;
709
709
  };
@@ -852,7 +852,7 @@ declare module "alepha" {
852
852
  declare class BunHttpServerProvider extends ServerProvider {
853
853
  protected readonly alepha: Alepha;
854
854
  protected readonly dateTimeProvider: DateTimeProvider;
855
- protected readonly log: alepha_logger6.Logger;
855
+ protected readonly log: alepha_logger4.Logger;
856
856
  protected readonly env: {
857
857
  SERVER_PORT: number;
858
858
  SERVER_HOST: string;
@@ -877,7 +877,7 @@ declare module "alepha" {
877
877
  declare class NodeHttpServerProvider extends ServerProvider {
878
878
  protected readonly alepha: Alepha;
879
879
  protected readonly dateTimeProvider: DateTimeProvider;
880
- protected readonly log: alepha_logger6.Logger;
880
+ protected readonly log: alepha_logger4.Logger;
881
881
  protected readonly env: {
882
882
  SERVER_PORT: number;
883
883
  SERVER_HOST: string;
@@ -919,7 +919,7 @@ declare class NodeHttpServerProvider extends ServerProvider {
919
919
  //#endregion
920
920
  //#region ../../src/server/core/providers/ServerLoggerProvider.d.ts
921
921
  declare class ServerLoggerProvider {
922
- protected readonly log: alepha_logger6.Logger;
922
+ protected readonly log: alepha_logger4.Logger;
923
923
  protected readonly alepha: Alepha;
924
924
  readonly onRequest: alepha19.HookPrimitive<"server:onRequest">;
925
925
  readonly onError: alepha19.HookPrimitive<"server:onError">;
@@ -1,4 +1,4 @@
1
- import * as alepha1 from "alepha";
1
+ import * as alepha6 from "alepha";
2
2
  import { Alepha } from "alepha";
3
3
  import * as alepha_server0 from "alepha/server";
4
4
  import { DateTimeProvider } from "alepha/datetime";
@@ -13,19 +13,19 @@ declare class ServerHealthProvider {
13
13
  protected readonly time: DateTimeProvider;
14
14
  protected readonly alepha: Alepha;
15
15
  readonly health: alepha_server0.RoutePrimitive<{
16
- response: alepha1.TObject<{
17
- message: alepha1.TString;
18
- uptime: alepha1.TNumber;
19
- date: alepha1.TString;
20
- ready: alepha1.TBoolean;
16
+ response: alepha6.TObject<{
17
+ message: alepha6.TString;
18
+ uptime: alepha6.TNumber;
19
+ date: alepha6.TString;
20
+ ready: alepha6.TBoolean;
21
21
  }>;
22
22
  }>;
23
23
  readonly healthz: alepha_server0.RoutePrimitive<{
24
- response: alepha1.TObject<{
25
- message: alepha1.TString;
26
- uptime: alepha1.TNumber;
27
- date: alepha1.TString;
28
- ready: alepha1.TBoolean;
24
+ response: alepha6.TObject<{
25
+ message: alepha6.TString;
26
+ uptime: alepha6.TNumber;
27
+ date: alepha6.TString;
28
+ ready: alepha6.TBoolean;
29
29
  }>;
30
30
  }>;
31
31
  protected healthCheck(): {
@@ -37,11 +37,11 @@ declare class ServerHealthProvider {
37
37
  }
38
38
  //#endregion
39
39
  //#region ../../src/server/health/schemas/healthSchema.d.ts
40
- declare const healthSchema: alepha1.TObject<{
41
- message: alepha1.TString;
42
- uptime: alepha1.TNumber;
43
- date: alepha1.TString;
44
- ready: alepha1.TBoolean;
40
+ declare const healthSchema: alepha6.TObject<{
41
+ message: alepha6.TString;
42
+ uptime: alepha6.TNumber;
43
+ date: alepha6.TString;
44
+ ready: alepha6.TBoolean;
45
45
  }>;
46
46
  //#endregion
47
47
  //#region ../../src/server/health/index.d.ts
@@ -57,7 +57,7 @@ declare const healthSchema: alepha1.TObject<{
57
57
  *
58
58
  * @module alepha.server.health
59
59
  */
60
- declare const AlephaServerHealth: alepha1.Service<alepha1.Module>;
60
+ declare const AlephaServerHealth: alepha6.Service<alepha6.Module>;
61
61
  //#endregion
62
62
  export { AlephaServerHealth, ServerHealthProvider, healthSchema };
63
63
  //# sourceMappingURL=index.d.ts.map