alepha 0.12.1 → 0.13.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 (198) hide show
  1. package/dist/api-notifications/index.d.ts +111 -111
  2. package/dist/api-users/index.d.ts +1240 -1240
  3. package/dist/api-verifications/index.d.ts +94 -94
  4. package/dist/cli/{dist-Sz2EXvQX.cjs → dist-Dl9Vl7Ur.js} +17 -13
  5. package/dist/cli/{dist-BBPjuQ56.js.map → dist-Dl9Vl7Ur.js.map} +1 -1
  6. package/dist/cli/index.d.ts +3 -11
  7. package/dist/cli/index.js +106 -74
  8. package/dist/cli/index.js.map +1 -1
  9. package/dist/email/index.js +71 -73
  10. package/dist/email/index.js.map +1 -1
  11. package/dist/orm/index.d.ts +1 -1
  12. package/dist/orm/index.js.map +1 -1
  13. package/dist/queue/index.d.ts +4 -4
  14. package/dist/redis/index.d.ts +10 -10
  15. package/dist/retry/index.d.ts +1 -1
  16. package/dist/retry/index.js +2 -2
  17. package/dist/retry/index.js.map +1 -1
  18. package/dist/scheduler/index.d.ts +6 -6
  19. package/dist/server/index.js +1 -1
  20. package/dist/server/index.js.map +1 -1
  21. package/dist/server-auth/index.d.ts +193 -193
  22. package/dist/server-health/index.d.ts +17 -17
  23. package/dist/server-links/index.d.ts +34 -34
  24. package/dist/server-metrics/index.js +170 -174
  25. package/dist/server-metrics/index.js.map +1 -1
  26. package/dist/server-security/index.d.ts +9 -9
  27. package/dist/vite/index.js +4 -5
  28. package/dist/vite/index.js.map +1 -1
  29. package/dist/websocket/index.d.ts +7 -7
  30. package/package.json +52 -103
  31. package/src/cli/apps/AlephaPackageBuilderCli.ts +7 -2
  32. package/src/cli/assets/appRouterTs.ts +9 -0
  33. package/src/cli/assets/indexHtml.ts +2 -1
  34. package/src/cli/assets/mainBrowserTs.ts +10 -0
  35. package/src/cli/commands/CoreCommands.ts +6 -5
  36. package/src/cli/commands/DrizzleCommands.ts +65 -57
  37. package/src/cli/commands/VerifyCommands.ts +1 -1
  38. package/src/cli/services/ProjectUtils.ts +44 -38
  39. package/src/orm/providers/DrizzleKitProvider.ts +1 -1
  40. package/src/retry/descriptors/$retry.ts +5 -3
  41. package/src/server/providers/NodeHttpServerProvider.ts +1 -1
  42. package/src/vite/helpers/boot.ts +3 -3
  43. package/dist/api-files/index.cjs +0 -1293
  44. package/dist/api-files/index.cjs.map +0 -1
  45. package/dist/api-files/index.d.cts +0 -829
  46. package/dist/api-jobs/index.cjs +0 -274
  47. package/dist/api-jobs/index.cjs.map +0 -1
  48. package/dist/api-jobs/index.d.cts +0 -654
  49. package/dist/api-notifications/index.cjs +0 -380
  50. package/dist/api-notifications/index.cjs.map +0 -1
  51. package/dist/api-notifications/index.d.cts +0 -289
  52. package/dist/api-parameters/index.cjs +0 -66
  53. package/dist/api-parameters/index.cjs.map +0 -1
  54. package/dist/api-parameters/index.d.cts +0 -84
  55. package/dist/api-users/index.cjs +0 -6009
  56. package/dist/api-users/index.cjs.map +0 -1
  57. package/dist/api-users/index.d.cts +0 -4740
  58. package/dist/api-verifications/index.cjs +0 -407
  59. package/dist/api-verifications/index.cjs.map +0 -1
  60. package/dist/api-verifications/index.d.cts +0 -207
  61. package/dist/batch/index.cjs +0 -408
  62. package/dist/batch/index.cjs.map +0 -1
  63. package/dist/batch/index.d.cts +0 -330
  64. package/dist/bin/index.cjs +0 -17
  65. package/dist/bin/index.cjs.map +0 -1
  66. package/dist/bin/index.d.cts +0 -1
  67. package/dist/bucket/index.cjs +0 -303
  68. package/dist/bucket/index.cjs.map +0 -1
  69. package/dist/bucket/index.d.cts +0 -355
  70. package/dist/cache/index.cjs +0 -241
  71. package/dist/cache/index.cjs.map +0 -1
  72. package/dist/cache/index.d.cts +0 -202
  73. package/dist/cache-redis/index.cjs +0 -84
  74. package/dist/cache-redis/index.cjs.map +0 -1
  75. package/dist/cache-redis/index.d.cts +0 -40
  76. package/dist/cli/chunk-DSlc6foC.cjs +0 -43
  77. package/dist/cli/dist-BBPjuQ56.js +0 -2778
  78. package/dist/cli/dist-Sz2EXvQX.cjs.map +0 -1
  79. package/dist/cli/index.cjs +0 -1241
  80. package/dist/cli/index.cjs.map +0 -1
  81. package/dist/cli/index.d.cts +0 -422
  82. package/dist/command/index.cjs +0 -693
  83. package/dist/command/index.cjs.map +0 -1
  84. package/dist/command/index.d.cts +0 -340
  85. package/dist/core/index.cjs +0 -2264
  86. package/dist/core/index.cjs.map +0 -1
  87. package/dist/core/index.d.cts +0 -1927
  88. package/dist/datetime/index.cjs +0 -318
  89. package/dist/datetime/index.cjs.map +0 -1
  90. package/dist/datetime/index.d.cts +0 -145
  91. package/dist/email/index.cjs +0 -10874
  92. package/dist/email/index.cjs.map +0 -1
  93. package/dist/email/index.d.cts +0 -186
  94. package/dist/fake/index.cjs +0 -34641
  95. package/dist/fake/index.cjs.map +0 -1
  96. package/dist/fake/index.d.cts +0 -74
  97. package/dist/file/index.cjs +0 -1212
  98. package/dist/file/index.cjs.map +0 -1
  99. package/dist/file/index.d.cts +0 -698
  100. package/dist/lock/index.cjs +0 -226
  101. package/dist/lock/index.cjs.map +0 -1
  102. package/dist/lock/index.d.cts +0 -361
  103. package/dist/lock-redis/index.cjs +0 -113
  104. package/dist/lock-redis/index.cjs.map +0 -1
  105. package/dist/lock-redis/index.d.cts +0 -24
  106. package/dist/logger/index.cjs +0 -521
  107. package/dist/logger/index.cjs.map +0 -1
  108. package/dist/logger/index.d.cts +0 -281
  109. package/dist/orm/index.cjs +0 -2986
  110. package/dist/orm/index.cjs.map +0 -1
  111. package/dist/orm/index.d.cts +0 -2213
  112. package/dist/queue/index.cjs +0 -1044
  113. package/dist/queue/index.cjs.map +0 -1
  114. package/dist/queue/index.d.cts +0 -1265
  115. package/dist/queue-redis/index.cjs +0 -873
  116. package/dist/queue-redis/index.cjs.map +0 -1
  117. package/dist/queue-redis/index.d.cts +0 -82
  118. package/dist/redis/index.cjs +0 -153
  119. package/dist/redis/index.cjs.map +0 -1
  120. package/dist/redis/index.d.cts +0 -82
  121. package/dist/retry/index.cjs +0 -146
  122. package/dist/retry/index.cjs.map +0 -1
  123. package/dist/retry/index.d.cts +0 -172
  124. package/dist/router/index.cjs +0 -111
  125. package/dist/router/index.cjs.map +0 -1
  126. package/dist/router/index.d.cts +0 -46
  127. package/dist/scheduler/index.cjs +0 -576
  128. package/dist/scheduler/index.cjs.map +0 -1
  129. package/dist/scheduler/index.d.cts +0 -145
  130. package/dist/security/index.cjs +0 -2402
  131. package/dist/security/index.cjs.map +0 -1
  132. package/dist/security/index.d.cts +0 -598
  133. package/dist/server/index.cjs +0 -1680
  134. package/dist/server/index.cjs.map +0 -1
  135. package/dist/server/index.d.cts +0 -810
  136. package/dist/server-auth/index.cjs +0 -3146
  137. package/dist/server-auth/index.cjs.map +0 -1
  138. package/dist/server-auth/index.d.cts +0 -1164
  139. package/dist/server-cache/index.cjs +0 -252
  140. package/dist/server-cache/index.cjs.map +0 -1
  141. package/dist/server-cache/index.d.cts +0 -164
  142. package/dist/server-compress/index.cjs +0 -141
  143. package/dist/server-compress/index.cjs.map +0 -1
  144. package/dist/server-compress/index.d.cts +0 -38
  145. package/dist/server-cookies/index.cjs +0 -234
  146. package/dist/server-cookies/index.cjs.map +0 -1
  147. package/dist/server-cookies/index.d.cts +0 -144
  148. package/dist/server-cors/index.cjs +0 -201
  149. package/dist/server-cors/index.cjs.map +0 -1
  150. package/dist/server-cors/index.d.cts +0 -140
  151. package/dist/server-health/index.cjs +0 -62
  152. package/dist/server-health/index.cjs.map +0 -1
  153. package/dist/server-health/index.d.cts +0 -58
  154. package/dist/server-helmet/index.cjs +0 -131
  155. package/dist/server-helmet/index.cjs.map +0 -1
  156. package/dist/server-helmet/index.d.cts +0 -97
  157. package/dist/server-links/index.cjs +0 -992
  158. package/dist/server-links/index.cjs.map +0 -1
  159. package/dist/server-links/index.d.cts +0 -513
  160. package/dist/server-metrics/index.cjs +0 -4535
  161. package/dist/server-metrics/index.cjs.map +0 -1
  162. package/dist/server-metrics/index.d.cts +0 -35
  163. package/dist/server-multipart/index.cjs +0 -237
  164. package/dist/server-multipart/index.cjs.map +0 -1
  165. package/dist/server-multipart/index.d.cts +0 -50
  166. package/dist/server-proxy/index.cjs +0 -186
  167. package/dist/server-proxy/index.cjs.map +0 -1
  168. package/dist/server-proxy/index.d.cts +0 -234
  169. package/dist/server-rate-limit/index.cjs +0 -241
  170. package/dist/server-rate-limit/index.cjs.map +0 -1
  171. package/dist/server-rate-limit/index.d.cts +0 -183
  172. package/dist/server-security/index.cjs +0 -316
  173. package/dist/server-security/index.cjs.map +0 -1
  174. package/dist/server-security/index.d.cts +0 -173
  175. package/dist/server-static/index.cjs +0 -170
  176. package/dist/server-static/index.cjs.map +0 -1
  177. package/dist/server-static/index.d.cts +0 -121
  178. package/dist/server-swagger/index.cjs +0 -1021
  179. package/dist/server-swagger/index.cjs.map +0 -1
  180. package/dist/server-swagger/index.d.cts +0 -382
  181. package/dist/sms/index.cjs +0 -221
  182. package/dist/sms/index.cjs.map +0 -1
  183. package/dist/sms/index.d.cts +0 -130
  184. package/dist/thread/index.cjs +0 -350
  185. package/dist/thread/index.cjs.map +0 -1
  186. package/dist/thread/index.d.cts +0 -260
  187. package/dist/topic/index.cjs +0 -282
  188. package/dist/topic/index.cjs.map +0 -1
  189. package/dist/topic/index.d.cts +0 -523
  190. package/dist/topic-redis/index.cjs +0 -71
  191. package/dist/topic-redis/index.cjs.map +0 -1
  192. package/dist/topic-redis/index.d.cts +0 -42
  193. package/dist/vite/index.cjs +0 -1077
  194. package/dist/vite/index.cjs.map +0 -1
  195. package/dist/vite/index.d.cts +0 -542
  196. package/dist/websocket/index.cjs +0 -1117
  197. package/dist/websocket/index.cjs.map +0 -1
  198. package/dist/websocket/index.d.cts +0 -861
@@ -1,9 +1,9 @@
1
- import * as alepha304 from "alepha";
1
+ import * as alepha254 from "alepha";
2
2
  import { Alepha, Async, Descriptor, KIND, Static, TSchema } from "alepha";
3
3
  import * as alepha_server6 from "alepha/server";
4
4
  import { ActionDescriptor, ClientRequestEntry, ClientRequestOptions, ClientRequestResponse, FetchOptions, FetchResponse, HttpClient, RequestConfigSchema, ServerHandler, ServerRequest, ServerRequestConfigEntry, ServerResponseBody, ServerRouterProvider, ServerTimingProvider } from "alepha/server";
5
5
  import { DateTimeProvider, DurationLike } from "alepha/datetime";
6
- import * as alepha_logger2 from "alepha/logger";
6
+ import * as alepha_logger0 from "alepha/logger";
7
7
  import { AccessTokenResponse, JwtProvider, RealmDescriptor, SecurityProvider, ServiceAccountDescriptor, UserAccount, UserAccountToken } from "alepha/security";
8
8
  import * as alepha_retry0 from "alepha/retry";
9
9
  import { Configuration } from "openid-client";
@@ -18,7 +18,7 @@ declare class CookieParser {
18
18
  //#region src/server-cookies/providers/ServerCookiesProvider.d.ts
19
19
  declare class ServerCookiesProvider {
20
20
  protected readonly alepha: Alepha;
21
- protected readonly log: alepha_logger2.Logger;
21
+ protected readonly log: alepha_logger0.Logger;
22
22
  protected readonly cookieParser: CookieParser;
23
23
  protected readonly dateTimeProvider: DateTimeProvider;
24
24
  protected readonly env: {
@@ -28,9 +28,9 @@ declare class ServerCookiesProvider {
28
28
  protected readonly IV_LENGTH = 16;
29
29
  protected readonly AUTH_TAG_LENGTH = 16;
30
30
  protected readonly SIGNATURE_LENGTH = 32;
31
- readonly onRequest: alepha304.HookDescriptor<"server:onRequest">;
32
- readonly onAction: alepha304.HookDescriptor<"action:onRequest">;
33
- readonly onSend: alepha304.HookDescriptor<"server:onSend">;
31
+ readonly onRequest: alepha254.HookDescriptor<"server:onRequest">;
32
+ readonly onAction: alepha254.HookDescriptor<"action:onRequest">;
33
+ readonly onSend: alepha254.HookDescriptor<"server:onSend">;
34
34
  protected getCookiesFromContext(cookies?: Cookies): Cookies;
35
35
  getCookie<T extends TSchema>(name: string, options: CookieDescriptorOptions<T>, contextCookies?: Cookies): Static<T> | undefined;
36
36
  setCookie<T extends TSchema>(name: string, options: CookieDescriptorOptions<T>, data: Static<T>, contextCookies?: Cookies): void;
@@ -176,23 +176,23 @@ declare module "alepha/server" {
176
176
  */
177
177
  //#endregion
178
178
  //#region src/server-links/schemas/apiLinksResponseSchema.d.ts
179
- declare const apiLinkSchema: alepha304.TObject<{
180
- name: alepha304.TString;
181
- group: alepha304.TOptional<alepha304.TString>;
182
- path: alepha304.TString;
183
- method: alepha304.TOptional<alepha304.TString>;
184
- requestBodyType: alepha304.TOptional<alepha304.TString>;
185
- service: alepha304.TOptional<alepha304.TString>;
179
+ declare const apiLinkSchema: alepha254.TObject<{
180
+ name: alepha254.TString;
181
+ group: alepha254.TOptional<alepha254.TString>;
182
+ path: alepha254.TString;
183
+ method: alepha254.TOptional<alepha254.TString>;
184
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
185
+ service: alepha254.TOptional<alepha254.TString>;
186
186
  }>;
187
- declare const apiLinksResponseSchema: alepha304.TObject<{
188
- prefix: alepha304.TOptional<alepha304.TString>;
189
- links: alepha304.TArray<alepha304.TObject<{
190
- name: alepha304.TString;
191
- group: alepha304.TOptional<alepha304.TString>;
192
- path: alepha304.TString;
193
- method: alepha304.TOptional<alepha304.TString>;
194
- requestBodyType: alepha304.TOptional<alepha304.TString>;
195
- service: alepha304.TOptional<alepha304.TString>;
187
+ declare const apiLinksResponseSchema: alepha254.TObject<{
188
+ prefix: alepha254.TOptional<alepha254.TString>;
189
+ links: alepha254.TArray<alepha254.TObject<{
190
+ name: alepha254.TString;
191
+ group: alepha254.TOptional<alepha254.TString>;
192
+ path: alepha254.TString;
193
+ method: alepha254.TOptional<alepha254.TString>;
194
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
195
+ service: alepha254.TOptional<alepha254.TString>;
196
196
  }>>;
197
197
  }>;
198
198
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -207,7 +207,7 @@ declare class LinkProvider {
207
207
  apiLinks: string;
208
208
  apiSchema: string;
209
209
  };
210
- protected readonly log: alepha_logger2.Logger;
210
+ protected readonly log: alepha_logger0.Logger;
211
211
  protected readonly alepha: Alepha;
212
212
  protected readonly httpClient: HttpClient;
213
213
  protected serverLinks: Array<HttpClientLink>;
@@ -385,10 +385,10 @@ type ProxyDescriptorOptions = {
385
385
  //#endregion
386
386
  //#region src/server-proxy/providers/ServerProxyProvider.d.ts
387
387
  declare class ServerProxyProvider {
388
- protected readonly log: alepha_logger2.Logger;
388
+ protected readonly log: alepha_logger0.Logger;
389
389
  protected readonly routerProvider: ServerRouterProvider;
390
390
  protected readonly alepha: Alepha;
391
- protected readonly configure: alepha304.HookDescriptor<"configure">;
391
+ protected readonly configure: alepha254.HookDescriptor<"configure">;
392
392
  createProxy(options: ProxyDescriptorOptions): void;
393
393
  createProxyHandler(target: string, options: Omit<ProxyDescriptorOptions, "path">): ServerHandler;
394
394
  private getRawRequestBody;
@@ -452,10 +452,10 @@ declare class RemoteDescriptorProvider {
452
452
  protected readonly proxyProvider: ServerProxyProvider;
453
453
  protected readonly linkProvider: LinkProvider;
454
454
  protected readonly remotes: Array<ServerRemote>;
455
- protected readonly log: alepha_logger2.Logger;
455
+ protected readonly log: alepha_logger0.Logger;
456
456
  getRemotes(): ServerRemote[];
457
- readonly configure: alepha304.HookDescriptor<"configure">;
458
- readonly start: alepha304.HookDescriptor<"start">;
457
+ readonly configure: alepha254.HookDescriptor<"configure">;
458
+ readonly start: alepha254.HookDescriptor<"start">;
459
459
  registerRemote(value: RemoteDescriptor): Promise<void>;
460
460
  protected readonly fetchLinks: alepha_retry0.RetryDescriptorFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
461
461
  }
@@ -523,22 +523,22 @@ declare class ServerLinksProvider {
523
523
  protected readonly remoteProvider: RemoteDescriptorProvider;
524
524
  protected readonly serverTimingProvider: ServerTimingProvider;
525
525
  get prefix(): string;
526
- readonly onRoute: alepha304.HookDescriptor<"configure">;
526
+ readonly onRoute: alepha254.HookDescriptor<"configure">;
527
527
  /**
528
528
  * First API - Get all API links for the user.
529
529
  *
530
530
  * This is based on the user's permissions.
531
531
  */
532
532
  readonly links: alepha_server6.RouteDescriptor<{
533
- response: alepha304.TObject<{
534
- prefix: alepha304.TOptional<alepha304.TString>;
535
- links: alepha304.TArray<alepha304.TObject<{
536
- name: alepha304.TString;
537
- group: alepha304.TOptional<alepha304.TString>;
538
- path: alepha304.TString;
539
- method: alepha304.TOptional<alepha304.TString>;
540
- requestBodyType: alepha304.TOptional<alepha304.TString>;
541
- service: alepha304.TOptional<alepha304.TString>;
533
+ response: alepha254.TObject<{
534
+ prefix: alepha254.TOptional<alepha254.TString>;
535
+ links: alepha254.TArray<alepha254.TObject<{
536
+ name: alepha254.TString;
537
+ group: alepha254.TOptional<alepha254.TString>;
538
+ path: alepha254.TString;
539
+ method: alepha254.TOptional<alepha254.TString>;
540
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
541
+ service: alepha254.TOptional<alepha254.TString>;
542
542
  }>>;
543
543
  }>;
544
544
  }>;
@@ -549,10 +549,10 @@ declare class ServerLinksProvider {
549
549
  * I mean for 150+ links, you got 50ms of serialization time.
550
550
  */
551
551
  readonly schema: alepha_server6.RouteDescriptor<{
552
- params: alepha304.TObject<{
553
- name: alepha304.TString;
552
+ params: alepha254.TObject<{
553
+ name: alepha254.TString;
554
554
  }>;
555
- response: alepha304.TRecord<string, alepha304.TAny>;
555
+ response: alepha254.TRecord<string, alepha254.TAny>;
556
556
  }>;
557
557
  getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
558
558
  /**
@@ -591,61 +591,61 @@ declare module "alepha" {
591
591
  */
592
592
  //#endregion
593
593
  //#region src/server-auth/schemas/authenticationProviderSchema.d.ts
594
- declare const authenticationProviderSchema: alepha304.TObject<{
595
- name: alepha304.TString;
596
- type: alepha304.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
594
+ declare const authenticationProviderSchema: alepha254.TObject<{
595
+ name: alepha254.TString;
596
+ type: alepha254.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
597
597
  }>;
598
598
  type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
599
599
  //#endregion
600
600
  //#region src/server-auth/schemas/tokensSchema.d.ts
601
- declare const tokensSchema: alepha304.TObject<{
602
- provider: alepha304.TString;
603
- access_token: alepha304.TString;
604
- issued_at: alepha304.TNumber;
605
- expires_in: alepha304.TOptional<alepha304.TNumber>;
606
- refresh_token: alepha304.TOptional<alepha304.TString>;
607
- refresh_token_expires_in: alepha304.TOptional<alepha304.TNumber>;
608
- refresh_expires_in: alepha304.TOptional<alepha304.TNumber>;
609
- id_token: alepha304.TOptional<alepha304.TString>;
610
- scope: alepha304.TOptional<alepha304.TString>;
601
+ declare const tokensSchema: alepha254.TObject<{
602
+ provider: alepha254.TString;
603
+ access_token: alepha254.TString;
604
+ issued_at: alepha254.TNumber;
605
+ expires_in: alepha254.TOptional<alepha254.TNumber>;
606
+ refresh_token: alepha254.TOptional<alepha254.TString>;
607
+ refresh_token_expires_in: alepha254.TOptional<alepha254.TNumber>;
608
+ refresh_expires_in: alepha254.TOptional<alepha254.TNumber>;
609
+ id_token: alepha254.TOptional<alepha254.TString>;
610
+ scope: alepha254.TOptional<alepha254.TString>;
611
611
  }>;
612
612
  type Tokens = Static<typeof tokensSchema>;
613
613
  //#endregion
614
614
  //#region src/server-auth/providers/ServerAuthProvider.d.ts
615
615
  declare class ServerAuthProvider {
616
- protected readonly log: alepha_logger2.Logger;
616
+ protected readonly log: alepha_logger0.Logger;
617
617
  protected readonly alepha: Alepha;
618
618
  protected readonly serverCookiesProvider: ServerCookiesProvider;
619
619
  protected readonly dateTimeProvider: DateTimeProvider;
620
620
  protected readonly serverLinksProvider: ServerLinksProvider;
621
- protected readonly authorizationCode: AbstractCookieDescriptor<alepha304.TObject<{
622
- provider: alepha304.TString;
623
- codeVerifier: alepha304.TOptional<alepha304.TString>;
624
- redirectUri: alepha304.TOptional<alepha304.TString>;
625
- state: alepha304.TOptional<alepha304.TString>;
626
- nonce: alepha304.TOptional<alepha304.TString>;
621
+ protected readonly authorizationCode: AbstractCookieDescriptor<alepha254.TObject<{
622
+ provider: alepha254.TString;
623
+ codeVerifier: alepha254.TOptional<alepha254.TString>;
624
+ redirectUri: alepha254.TOptional<alepha254.TString>;
625
+ state: alepha254.TOptional<alepha254.TString>;
626
+ nonce: alepha254.TOptional<alepha254.TString>;
627
627
  }>>;
628
- readonly tokens: AbstractCookieDescriptor<alepha304.TObject<{
629
- provider: alepha304.TString;
630
- access_token: alepha304.TString;
631
- issued_at: alepha304.TNumber;
632
- expires_in: alepha304.TOptional<alepha304.TNumber>;
633
- refresh_token: alepha304.TOptional<alepha304.TString>;
634
- refresh_token_expires_in: alepha304.TOptional<alepha304.TNumber>;
635
- refresh_expires_in: alepha304.TOptional<alepha304.TNumber>;
636
- id_token: alepha304.TOptional<alepha304.TString>;
637
- scope: alepha304.TOptional<alepha304.TString>;
628
+ readonly tokens: AbstractCookieDescriptor<alepha254.TObject<{
629
+ provider: alepha254.TString;
630
+ access_token: alepha254.TString;
631
+ issued_at: alepha254.TNumber;
632
+ expires_in: alepha254.TOptional<alepha254.TNumber>;
633
+ refresh_token: alepha254.TOptional<alepha254.TString>;
634
+ refresh_token_expires_in: alepha254.TOptional<alepha254.TNumber>;
635
+ refresh_expires_in: alepha254.TOptional<alepha254.TNumber>;
636
+ id_token: alepha254.TOptional<alepha254.TString>;
637
+ scope: alepha254.TOptional<alepha254.TString>;
638
638
  }>>;
639
639
  get identities(): Array<AuthDescriptor>;
640
640
  getAuthenticationProviders(filters?: {
641
641
  realmName?: string;
642
642
  }): AuthenticationProvider[];
643
- protected readonly configure: alepha304.HookDescriptor<"configure">;
643
+ protected readonly configure: alepha254.HookDescriptor<"configure">;
644
644
  protected getAccessTokens(tokens: Tokens): string | undefined;
645
645
  /**
646
646
  * Fill request headers with access token from cookies or fallback to provider's fallback function.
647
647
  */
648
- protected readonly onRequest: alepha304.HookDescriptor<"server:onRequest">;
648
+ protected readonly onRequest: alepha254.HookDescriptor<"server:onRequest">;
649
649
  /**
650
650
  * Convert cookies to tokens.
651
651
  * If the tokens are expired, try to refresh them using the refresh token.
@@ -656,26 +656,26 @@ declare class ServerAuthProvider {
656
656
  * Get user information.
657
657
  */
658
658
  readonly userinfo: alepha_server6.RouteDescriptor<{
659
- response: alepha304.TObject<{
660
- user: alepha304.TOptional<alepha304.TObject<{
661
- id: alepha304.TString;
662
- name: alepha304.TOptional<alepha304.TString>;
663
- email: alepha304.TOptional<alepha304.TString>;
664
- username: alepha304.TOptional<alepha304.TString>;
665
- picture: alepha304.TOptional<alepha304.TString>;
666
- sessionId: alepha304.TOptional<alepha304.TString>;
667
- organizations: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
668
- roles: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
659
+ response: alepha254.TObject<{
660
+ user: alepha254.TOptional<alepha254.TObject<{
661
+ id: alepha254.TString;
662
+ name: alepha254.TOptional<alepha254.TString>;
663
+ email: alepha254.TOptional<alepha254.TString>;
664
+ username: alepha254.TOptional<alepha254.TString>;
665
+ picture: alepha254.TOptional<alepha254.TString>;
666
+ sessionId: alepha254.TOptional<alepha254.TString>;
667
+ organizations: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
668
+ roles: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
669
669
  }>>;
670
- api: alepha304.TObject<{
671
- prefix: alepha304.TOptional<alepha304.TString>;
672
- links: alepha304.TArray<alepha304.TObject<{
673
- name: alepha304.TString;
674
- group: alepha304.TOptional<alepha304.TString>;
675
- path: alepha304.TString;
676
- method: alepha304.TOptional<alepha304.TString>;
677
- requestBodyType: alepha304.TOptional<alepha304.TString>;
678
- service: alepha304.TOptional<alepha304.TString>;
670
+ api: alepha254.TObject<{
671
+ prefix: alepha254.TOptional<alepha254.TString>;
672
+ links: alepha254.TArray<alepha254.TObject<{
673
+ name: alepha254.TString;
674
+ group: alepha254.TOptional<alepha254.TString>;
675
+ path: alepha254.TString;
676
+ method: alepha254.TOptional<alepha254.TString>;
677
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
678
+ service: alepha254.TOptional<alepha254.TString>;
679
679
  }>>;
680
680
  }>;
681
681
  }>;
@@ -684,65 +684,65 @@ declare class ServerAuthProvider {
684
684
  * Refresh a token for internal providers.
685
685
  */
686
686
  readonly refresh: alepha_server6.RouteDescriptor<{
687
- query: alepha304.TObject<{
688
- provider: alepha304.TString;
687
+ query: alepha254.TObject<{
688
+ provider: alepha254.TString;
689
689
  }>;
690
- body: alepha304.TObject<{
691
- refresh_token: alepha304.TString;
692
- access_token: alepha304.TOptional<alepha304.TString>;
690
+ body: alepha254.TObject<{
691
+ refresh_token: alepha254.TString;
692
+ access_token: alepha254.TOptional<alepha254.TString>;
693
693
  }>;
694
- response: alepha304.TObject<{
695
- provider: alepha304.TString;
696
- access_token: alepha304.TString;
697
- issued_at: alepha304.TNumber;
698
- expires_in: alepha304.TOptional<alepha304.TNumber>;
699
- refresh_token: alepha304.TOptional<alepha304.TString>;
700
- refresh_token_expires_in: alepha304.TOptional<alepha304.TNumber>;
701
- refresh_expires_in: alepha304.TOptional<alepha304.TNumber>;
702
- id_token: alepha304.TOptional<alepha304.TString>;
703
- scope: alepha304.TOptional<alepha304.TString>;
694
+ response: alepha254.TObject<{
695
+ provider: alepha254.TString;
696
+ access_token: alepha254.TString;
697
+ issued_at: alepha254.TNumber;
698
+ expires_in: alepha254.TOptional<alepha254.TNumber>;
699
+ refresh_token: alepha254.TOptional<alepha254.TString>;
700
+ refresh_token_expires_in: alepha254.TOptional<alepha254.TNumber>;
701
+ refresh_expires_in: alepha254.TOptional<alepha254.TNumber>;
702
+ id_token: alepha254.TOptional<alepha254.TString>;
703
+ scope: alepha254.TOptional<alepha254.TString>;
704
704
  }>;
705
705
  }>;
706
706
  /**
707
707
  * Login for local password-based authentication.
708
708
  */
709
709
  readonly token: alepha_server6.RouteDescriptor<{
710
- query: alepha304.TObject<{
711
- provider: alepha304.TString;
710
+ query: alepha254.TObject<{
711
+ provider: alepha254.TString;
712
712
  }>;
713
- body: alepha304.TObject<{
714
- username: alepha304.TString;
715
- password: alepha304.TString;
713
+ body: alepha254.TObject<{
714
+ username: alepha254.TString;
715
+ password: alepha254.TString;
716
716
  }>;
717
- response: alepha304.TObject<{
718
- provider: alepha304.TString;
719
- access_token: alepha304.TString;
720
- issued_at: alepha304.TNumber;
721
- expires_in: alepha304.TOptional<alepha304.TNumber>;
722
- refresh_token: alepha304.TOptional<alepha304.TString>;
723
- refresh_token_expires_in: alepha304.TOptional<alepha304.TNumber>;
724
- refresh_expires_in: alepha304.TOptional<alepha304.TNumber>;
725
- id_token: alepha304.TOptional<alepha304.TString>;
726
- scope: alepha304.TOptional<alepha304.TString>;
727
- user: alepha304.TObject<{
728
- id: alepha304.TString;
729
- name: alepha304.TOptional<alepha304.TString>;
730
- email: alepha304.TOptional<alepha304.TString>;
731
- username: alepha304.TOptional<alepha304.TString>;
732
- picture: alepha304.TOptional<alepha304.TString>;
733
- sessionId: alepha304.TOptional<alepha304.TString>;
734
- organizations: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
735
- roles: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
717
+ response: alepha254.TObject<{
718
+ provider: alepha254.TString;
719
+ access_token: alepha254.TString;
720
+ issued_at: alepha254.TNumber;
721
+ expires_in: alepha254.TOptional<alepha254.TNumber>;
722
+ refresh_token: alepha254.TOptional<alepha254.TString>;
723
+ refresh_token_expires_in: alepha254.TOptional<alepha254.TNumber>;
724
+ refresh_expires_in: alepha254.TOptional<alepha254.TNumber>;
725
+ id_token: alepha254.TOptional<alepha254.TString>;
726
+ scope: alepha254.TOptional<alepha254.TString>;
727
+ user: alepha254.TObject<{
728
+ id: alepha254.TString;
729
+ name: alepha254.TOptional<alepha254.TString>;
730
+ email: alepha254.TOptional<alepha254.TString>;
731
+ username: alepha254.TOptional<alepha254.TString>;
732
+ picture: alepha254.TOptional<alepha254.TString>;
733
+ sessionId: alepha254.TOptional<alepha254.TString>;
734
+ organizations: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
735
+ roles: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
736
736
  }>;
737
- api: alepha304.TObject<{
738
- prefix: alepha304.TOptional<alepha304.TString>;
739
- links: alepha304.TArray<alepha304.TObject<{
740
- name: alepha304.TString;
741
- group: alepha304.TOptional<alepha304.TString>;
742
- path: alepha304.TString;
743
- method: alepha304.TOptional<alepha304.TString>;
744
- requestBodyType: alepha304.TOptional<alepha304.TString>;
745
- service: alepha304.TOptional<alepha304.TString>;
737
+ api: alepha254.TObject<{
738
+ prefix: alepha254.TOptional<alepha254.TString>;
739
+ links: alepha254.TArray<alepha254.TObject<{
740
+ name: alepha254.TString;
741
+ group: alepha254.TOptional<alepha254.TString>;
742
+ path: alepha254.TString;
743
+ method: alepha254.TOptional<alepha254.TString>;
744
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
745
+ service: alepha254.TOptional<alepha254.TString>;
746
746
  }>>;
747
747
  }>;
748
748
  }>;
@@ -751,9 +751,9 @@ declare class ServerAuthProvider {
751
751
  * Oauth2/OIDC login route.
752
752
  */
753
753
  readonly login: alepha_server6.RouteDescriptor<{
754
- query: alepha304.TObject<{
755
- provider: alepha304.TString;
756
- redirect_uri: alepha304.TOptional<alepha304.TString>;
754
+ query: alepha254.TObject<{
755
+ provider: alepha254.TString;
756
+ redirect_uri: alepha254.TOptional<alepha254.TString>;
757
757
  }>;
758
758
  }>;
759
759
  /**
@@ -765,8 +765,8 @@ declare class ServerAuthProvider {
765
765
  * Logout route for OAuth2/OIDC providers.
766
766
  */
767
767
  readonly logout: alepha_server6.RouteDescriptor<{
768
- query: alepha304.TObject<{
769
- post_logout_redirect_uri: alepha304.TOptional<alepha304.TString>;
768
+ query: alepha254.TObject<{
769
+ post_logout_redirect_uri: alepha254.TOptional<alepha254.TString>;
770
770
  }>;
771
771
  }>;
772
772
  protected provider(opts: string | {
@@ -1074,61 +1074,61 @@ declare const alephaServerAuthRoutes: {
1074
1074
  };
1075
1075
  //#endregion
1076
1076
  //#region src/server-auth/schemas/tokenResponseSchema.d.ts
1077
- declare const tokenResponseSchema: alepha304.TObject<{
1078
- provider: alepha304.TString;
1079
- access_token: alepha304.TString;
1080
- issued_at: alepha304.TNumber;
1081
- expires_in: alepha304.TOptional<alepha304.TNumber>;
1082
- refresh_token: alepha304.TOptional<alepha304.TString>;
1083
- refresh_token_expires_in: alepha304.TOptional<alepha304.TNumber>;
1084
- refresh_expires_in: alepha304.TOptional<alepha304.TNumber>;
1085
- id_token: alepha304.TOptional<alepha304.TString>;
1086
- scope: alepha304.TOptional<alepha304.TString>;
1087
- user: alepha304.TObject<{
1088
- id: alepha304.TString;
1089
- name: alepha304.TOptional<alepha304.TString>;
1090
- email: alepha304.TOptional<alepha304.TString>;
1091
- username: alepha304.TOptional<alepha304.TString>;
1092
- picture: alepha304.TOptional<alepha304.TString>;
1093
- sessionId: alepha304.TOptional<alepha304.TString>;
1094
- organizations: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
1095
- roles: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
1077
+ declare const tokenResponseSchema: alepha254.TObject<{
1078
+ provider: alepha254.TString;
1079
+ access_token: alepha254.TString;
1080
+ issued_at: alepha254.TNumber;
1081
+ expires_in: alepha254.TOptional<alepha254.TNumber>;
1082
+ refresh_token: alepha254.TOptional<alepha254.TString>;
1083
+ refresh_token_expires_in: alepha254.TOptional<alepha254.TNumber>;
1084
+ refresh_expires_in: alepha254.TOptional<alepha254.TNumber>;
1085
+ id_token: alepha254.TOptional<alepha254.TString>;
1086
+ scope: alepha254.TOptional<alepha254.TString>;
1087
+ user: alepha254.TObject<{
1088
+ id: alepha254.TString;
1089
+ name: alepha254.TOptional<alepha254.TString>;
1090
+ email: alepha254.TOptional<alepha254.TString>;
1091
+ username: alepha254.TOptional<alepha254.TString>;
1092
+ picture: alepha254.TOptional<alepha254.TString>;
1093
+ sessionId: alepha254.TOptional<alepha254.TString>;
1094
+ organizations: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
1095
+ roles: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
1096
1096
  }>;
1097
- api: alepha304.TObject<{
1098
- prefix: alepha304.TOptional<alepha304.TString>;
1099
- links: alepha304.TArray<alepha304.TObject<{
1100
- name: alepha304.TString;
1101
- group: alepha304.TOptional<alepha304.TString>;
1102
- path: alepha304.TString;
1103
- method: alepha304.TOptional<alepha304.TString>;
1104
- requestBodyType: alepha304.TOptional<alepha304.TString>;
1105
- service: alepha304.TOptional<alepha304.TString>;
1097
+ api: alepha254.TObject<{
1098
+ prefix: alepha254.TOptional<alepha254.TString>;
1099
+ links: alepha254.TArray<alepha254.TObject<{
1100
+ name: alepha254.TString;
1101
+ group: alepha254.TOptional<alepha254.TString>;
1102
+ path: alepha254.TString;
1103
+ method: alepha254.TOptional<alepha254.TString>;
1104
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
1105
+ service: alepha254.TOptional<alepha254.TString>;
1106
1106
  }>>;
1107
1107
  }>;
1108
1108
  }>;
1109
1109
  type TokenResponse = Static<typeof tokenResponseSchema>;
1110
1110
  //#endregion
1111
1111
  //#region src/server-auth/schemas/userinfoResponseSchema.d.ts
1112
- declare const userinfoResponseSchema: alepha304.TObject<{
1113
- user: alepha304.TOptional<alepha304.TObject<{
1114
- id: alepha304.TString;
1115
- name: alepha304.TOptional<alepha304.TString>;
1116
- email: alepha304.TOptional<alepha304.TString>;
1117
- username: alepha304.TOptional<alepha304.TString>;
1118
- picture: alepha304.TOptional<alepha304.TString>;
1119
- sessionId: alepha304.TOptional<alepha304.TString>;
1120
- organizations: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
1121
- roles: alepha304.TOptional<alepha304.TArray<alepha304.TString>>;
1112
+ declare const userinfoResponseSchema: alepha254.TObject<{
1113
+ user: alepha254.TOptional<alepha254.TObject<{
1114
+ id: alepha254.TString;
1115
+ name: alepha254.TOptional<alepha254.TString>;
1116
+ email: alepha254.TOptional<alepha254.TString>;
1117
+ username: alepha254.TOptional<alepha254.TString>;
1118
+ picture: alepha254.TOptional<alepha254.TString>;
1119
+ sessionId: alepha254.TOptional<alepha254.TString>;
1120
+ organizations: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
1121
+ roles: alepha254.TOptional<alepha254.TArray<alepha254.TString>>;
1122
1122
  }>>;
1123
- api: alepha304.TObject<{
1124
- prefix: alepha304.TOptional<alepha304.TString>;
1125
- links: alepha304.TArray<alepha304.TObject<{
1126
- name: alepha304.TString;
1127
- group: alepha304.TOptional<alepha304.TString>;
1128
- path: alepha304.TString;
1129
- method: alepha304.TOptional<alepha304.TString>;
1130
- requestBodyType: alepha304.TOptional<alepha304.TString>;
1131
- service: alepha304.TOptional<alepha304.TString>;
1123
+ api: alepha254.TObject<{
1124
+ prefix: alepha254.TOptional<alepha254.TString>;
1125
+ links: alepha254.TArray<alepha254.TObject<{
1126
+ name: alepha254.TString;
1127
+ group: alepha254.TOptional<alepha254.TString>;
1128
+ path: alepha254.TString;
1129
+ method: alepha254.TOptional<alepha254.TString>;
1130
+ requestBodyType: alepha254.TOptional<alepha254.TString>;
1131
+ service: alepha254.TOptional<alepha254.TString>;
1132
1132
  }>>;
1133
1133
  }>;
1134
1134
  }>;
@@ -1158,7 +1158,7 @@ declare module "alepha" {
1158
1158
  * @see {@link ServerAuthProvider}
1159
1159
  * @module alepha.server.auth
1160
1160
  */
1161
- declare const AlephaServerAuth: alepha304.Service<alepha304.Module>;
1161
+ declare const AlephaServerAuth: alepha254.Service<alepha254.Module>;
1162
1162
  //#endregion
1163
1163
  export { $auth, $authCredentials, $authGithub, $authGoogle, AccessToken, AlephaServerAuth, AuthDescriptor, AuthDescriptorOptions, AuthExternal, AuthInternal, AuthenticationProvider, Credentials, CredentialsFn, CredentialsOptions, LinkAccountFn, LinkAccountOptions, OAuth2Options, OAuth2Profile, OidcOptions, ServerAuthProvider, TokenResponse, Tokens, UserinfoResponse, WithLinkFn, WithLoginFn, alephaServerAuthRoutes, authenticationProviderSchema, tokenResponseSchema, tokensSchema, userinfoResponseSchema };
1164
1164
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as alepha6 from "alepha";
1
+ import * as alepha1 from "alepha";
2
2
  import { Alepha } from "alepha";
3
3
  import * as alepha_server0 from "alepha/server";
4
4
  import { DateTimeProvider } from "alepha/datetime";
@@ -14,19 +14,19 @@ declare class ServerHealthProvider {
14
14
  protected readonly time: DateTimeProvider;
15
15
  protected readonly alepha: Alepha;
16
16
  readonly health: alepha_server0.RouteDescriptor<{
17
- response: alepha6.TObject<{
18
- message: alepha6.TString;
19
- uptime: alepha6.TNumber;
20
- date: alepha6.TString;
21
- ready: alepha6.TBoolean;
17
+ response: alepha1.TObject<{
18
+ message: alepha1.TString;
19
+ uptime: alepha1.TNumber;
20
+ date: alepha1.TString;
21
+ ready: alepha1.TBoolean;
22
22
  }>;
23
23
  }>;
24
24
  readonly healthz: alepha_server0.RouteDescriptor<{
25
- response: alepha6.TObject<{
26
- message: alepha6.TString;
27
- uptime: alepha6.TNumber;
28
- date: alepha6.TString;
29
- ready: alepha6.TBoolean;
25
+ response: alepha1.TObject<{
26
+ message: alepha1.TString;
27
+ uptime: alepha1.TNumber;
28
+ date: alepha1.TString;
29
+ ready: alepha1.TBoolean;
30
30
  }>;
31
31
  }>;
32
32
  protected healthCheck(): {
@@ -38,11 +38,11 @@ declare class ServerHealthProvider {
38
38
  }
39
39
  //#endregion
40
40
  //#region src/server-health/schemas/healthSchema.d.ts
41
- declare const healthSchema: alepha6.TObject<{
42
- message: alepha6.TString;
43
- uptime: alepha6.TNumber;
44
- date: alepha6.TString;
45
- ready: alepha6.TBoolean;
41
+ declare const healthSchema: alepha1.TObject<{
42
+ message: alepha1.TString;
43
+ uptime: alepha1.TNumber;
44
+ date: alepha1.TString;
45
+ ready: alepha1.TBoolean;
46
46
  }>;
47
47
  //#endregion
48
48
  //#region src/server-health/index.d.ts
@@ -52,7 +52,7 @@ declare const healthSchema: alepha6.TObject<{
52
52
  * @see {@link ServerHealthProvider}
53
53
  * @module alepha.server.health
54
54
  */
55
- declare const AlephaServerHealth: alepha6.Service<alepha6.Module>;
55
+ declare const AlephaServerHealth: alepha1.Service<alepha1.Module>;
56
56
  //#endregion
57
57
  export { AlephaServerHealth, ServerHealthProvider, healthSchema };
58
58
  //# sourceMappingURL=index.d.ts.map