alepha 0.10.1 → 0.10.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.
package/react.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as _alepha_core5 from "alepha";
1
+ import * as _alepha_core14 from "alepha";
2
2
  import { Alepha, Async, Descriptor, Hooks, KIND, Service, State, Static, TObject, TSchema } from "alepha";
3
3
  import { RequestConfigSchema, ServerHandler, ServerProvider, ServerRequest, ServerRouterProvider, ServerTimingProvider } from "alepha/server";
4
4
  import { ServerRouteCache } from "alepha/server/cache";
5
5
  import { ClientScope, HttpVirtualClient, LinkProvider, VirtualAction } from "alepha/server/links";
6
- import * as _alepha_logger0 from "alepha/logger";
6
+ import * as _alepha_logger1 from "alepha/logger";
7
7
  import * as react0 from "react";
8
8
  import React, { AnchorHTMLAttributes, CSSProperties, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
9
- import * as react_jsx_runtime2 from "react/jsx-runtime";
9
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
  import { ServerStaticProvider } from "alepha/server/static";
11
11
  import { DateTimeProvider } from "alepha/datetime";
12
12
  import { Route, RouterProvider } from "alepha/router";
@@ -40,14 +40,14 @@ declare class Redirection extends Error {
40
40
  }
41
41
  //#endregion
42
42
  //#region src/providers/ReactPageProvider.d.ts
43
- declare const envSchema$2: _alepha_core5.TObject<{
44
- REACT_STRICT_MODE: _alepha_core5.TBoolean;
43
+ declare const envSchema$2: _alepha_core14.TObject<{
44
+ REACT_STRICT_MODE: _alepha_core14.TBoolean;
45
45
  }>;
46
46
  declare module "alepha" {
47
47
  interface Env extends Partial<Static<typeof envSchema$2>> {}
48
48
  }
49
49
  declare class ReactPageProvider {
50
- protected readonly log: _alepha_logger0.Logger;
50
+ protected readonly log: _alepha_logger1.Logger;
51
51
  protected readonly env: {
52
52
  REACT_STRICT_MODE: boolean;
53
53
  };
@@ -83,7 +83,7 @@ declare class ReactPageProvider {
83
83
  }, params?: Record<string, any>): string;
84
84
  compile(path: string, params?: Record<string, string>): string;
85
85
  protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
86
- protected readonly configure: _alepha_core5.HookDescriptor<"configure">;
86
+ protected readonly configure: _alepha_core14.HookDescriptor<"configure">;
87
87
  protected map(pages: Array<PageDescriptor>, target: PageDescriptor): PageRouteEntry;
88
88
  add(entry: PageRouteEntry): void;
89
89
  protected createMatch(page: PageRoute): string;
@@ -489,18 +489,18 @@ interface BrowserRoute extends Route {
489
489
  page: PageRoute;
490
490
  }
491
491
  declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
492
- protected readonly log: _alepha_logger0.Logger;
492
+ protected readonly log: _alepha_logger1.Logger;
493
493
  protected readonly alepha: Alepha;
494
494
  protected readonly pageApi: ReactPageProvider;
495
495
  add(entry: PageRouteEntry): void;
496
- protected readonly configure: _alepha_core5.HookDescriptor<"configure">;
496
+ protected readonly configure: _alepha_core14.HookDescriptor<"configure">;
497
497
  transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
498
498
  root(state: ReactRouterState): ReactNode;
499
499
  }
500
500
  //#endregion
501
501
  //#region src/providers/ReactBrowserProvider.d.ts
502
- declare const envSchema$1: _alepha_core5.TObject<{
503
- REACT_ROOT_ID: _alepha_core5.TString;
502
+ declare const envSchema$1: _alepha_core14.TObject<{
503
+ REACT_ROOT_ID: _alepha_core14.TString;
504
504
  }>;
505
505
  declare module "alepha" {
506
506
  interface Env extends Partial<Static<typeof envSchema$1>> {}
@@ -512,7 +512,7 @@ declare class ReactBrowserProvider {
512
512
  protected readonly env: {
513
513
  REACT_ROOT_ID: string;
514
514
  };
515
- protected readonly log: _alepha_logger0.Logger;
515
+ protected readonly log: _alepha_logger1.Logger;
516
516
  protected readonly client: LinkProvider;
517
517
  protected readonly alepha: Alepha;
518
518
  protected readonly router: ReactBrowserRouterProvider;
@@ -546,8 +546,8 @@ declare class ReactBrowserProvider {
546
546
  * Get embedded layers from the server.
547
547
  */
548
548
  protected getHydrationState(): ReactHydrationState | undefined;
549
- protected readonly onTransitionEnd: _alepha_core5.HookDescriptor<"react:transition:end">;
550
- readonly ready: _alepha_core5.HookDescriptor<"ready">;
549
+ protected readonly onTransitionEnd: _alepha_core14.HookDescriptor<"react:transition:end">;
550
+ readonly ready: _alepha_core14.HookDescriptor<"ready">;
551
551
  }
552
552
  interface RouterGoOptions {
553
553
  replace?: boolean;
@@ -619,25 +619,25 @@ interface ErrorViewerProps {
619
619
  declare const ErrorViewer: ({
620
620
  error,
621
621
  alepha
622
- }: ErrorViewerProps) => react_jsx_runtime2.JSX.Element;
622
+ }: ErrorViewerProps) => react_jsx_runtime0.JSX.Element;
623
623
  //#endregion
624
624
  //#region src/components/Link.d.ts
625
625
  interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
626
626
  href: string;
627
627
  }
628
- declare const Link: (props: LinkProps) => react_jsx_runtime2.JSX.Element;
628
+ declare const Link: (props: LinkProps) => react_jsx_runtime0.JSX.Element;
629
629
  //#endregion
630
630
  //#region src/components/NestedView.d.ts
631
631
  interface NestedViewProps {
632
632
  children?: ReactNode;
633
633
  errorBoundary?: false | ((error: Error) => ReactNode);
634
634
  }
635
- declare const _default: react0.MemoExoticComponent<(props: NestedViewProps) => react_jsx_runtime2.JSX.Element>;
635
+ declare const _default: react0.MemoExoticComponent<(props: NestedViewProps) => react_jsx_runtime0.JSX.Element>;
636
636
  //#endregion
637
637
  //#region src/components/NotFound.d.ts
638
638
  declare function NotFoundPage(props: {
639
639
  style?: CSSProperties;
640
- }): react_jsx_runtime2.JSX.Element;
640
+ }): react_jsx_runtime0.JSX.Element;
641
641
  //#endregion
642
642
  //#region src/contexts/AlephaContext.d.ts
643
643
  declare const AlephaContext: react0.Context<Alepha | undefined>;
@@ -713,6 +713,11 @@ declare class ReactRouter<T extends object> {
713
713
  params?: Record<string, any>;
714
714
  query?: Record<string, any>;
715
715
  }): string;
716
+ /**
717
+ * Reload the current page.
718
+ * This is equivalent to calling `go()` with the current pathname and search.
719
+ */
720
+ reload(): Promise<void>;
716
721
  getURL(): URL;
717
722
  get location(): Location;
718
723
  get current(): ReactRouterState;
@@ -795,12 +800,12 @@ declare const ssrSchemaLoading: (alepha: Alepha, name: string) => RequestConfigS
795
800
  declare const useStore: <Key extends keyof State>(key: Key, defaultValue?: State[Key]) => [State[Key], (value: State[Key]) => void];
796
801
  //#endregion
797
802
  //#region src/providers/ReactServerProvider.d.ts
798
- declare const envSchema: _alepha_core5.TObject<{
799
- REACT_SERVER_DIST: _alepha_core5.TString;
800
- REACT_SERVER_PREFIX: _alepha_core5.TString;
801
- REACT_SSR_ENABLED: _alepha_core5.TOptional<_alepha_core5.TBoolean>;
802
- REACT_ROOT_ID: _alepha_core5.TString;
803
- REACT_SERVER_TEMPLATE: _alepha_core5.TOptional<_alepha_core5.TString>;
803
+ declare const envSchema: _alepha_core14.TObject<{
804
+ REACT_SERVER_DIST: _alepha_core14.TString;
805
+ REACT_SERVER_PREFIX: _alepha_core14.TString;
806
+ REACT_SSR_ENABLED: _alepha_core14.TOptional<_alepha_core14.TBoolean>;
807
+ REACT_ROOT_ID: _alepha_core14.TString;
808
+ REACT_SERVER_TEMPLATE: _alepha_core14.TOptional<_alepha_core14.TString>;
804
809
  }>;
805
810
  declare module "alepha" {
806
811
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -809,7 +814,7 @@ declare module "alepha" {
809
814
  }
810
815
  }
811
816
  declare class ReactServerProvider {
812
- protected readonly log: _alepha_logger0.Logger;
817
+ protected readonly log: _alepha_logger1.Logger;
813
818
  protected readonly alepha: Alepha;
814
819
  protected readonly pageApi: ReactPageProvider;
815
820
  protected readonly serverProvider: ServerProvider;
@@ -819,13 +824,13 @@ declare class ReactServerProvider {
819
824
  protected readonly env: {
820
825
  REACT_SSR_ENABLED?: boolean | undefined;
821
826
  REACT_SERVER_TEMPLATE?: string | undefined;
822
- REACT_ROOT_ID: string;
823
827
  REACT_SERVER_DIST: string;
824
828
  REACT_SERVER_PREFIX: string;
829
+ REACT_ROOT_ID: string;
825
830
  };
826
831
  protected readonly ROOT_DIV_REGEX: RegExp;
827
832
  protected preprocessedTemplate: PreprocessedTemplate | null;
828
- readonly onConfigure: _alepha_core5.HookDescriptor<"configure">;
833
+ readonly onConfigure: _alepha_core14.HookDescriptor<"configure">;
829
834
  get template(): string;
830
835
  protected registerPages(templateLoader: TemplateLoader): Promise<void>;
831
836
  protected getPublicDirectory(): string;
@@ -898,7 +903,7 @@ declare module "alepha" {
898
903
  * @see {@link $page}
899
904
  * @module alepha.react
900
905
  */
901
- declare const AlephaReact: _alepha_core5.Service<_alepha_core5.Module>;
906
+ declare const AlephaReact: _alepha_core14.Service<_alepha_core14.Module<{}>>;
902
907
  //#endregion
903
908
  export { $page, AlephaContext, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, LinkProps, _default as NestedView, NotFoundPage as NotFound, PageAnimation, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorRenderOptions, PageDescriptorRenderResult, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactBrowserRendererOptions, ReactHydrationState, ReactPageProvider, ReactRouter, ReactRouterState, ReactServerProvider, Redirection, RouterGoOptions, RouterLayerContext, RouterLayerContextValue, RouterRenderOptions, RouterStackItem, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActiveHook, UseActiveOptions, UseQueryParamsHookOptions, UseSchemaReturn, VirtualRouter, isPageRoute, ssrSchemaLoading, useActive, useAlepha, useClient, useInject, useQueryParams, useRouter, useRouterEvents, useRouterState, useSchema, useStore };
904
909
  //# sourceMappingURL=index.d.ts.map
package/redis.d.ts CHANGED
@@ -76,7 +76,7 @@ declare class RedisSubscriberProvider {
76
76
  * @see {@link RedisProvider}
77
77
  * @module alepha.redis
78
78
  */
79
- declare const AlephaRedis: _alepha_core3.Service<_alepha_core3.Module>;
79
+ declare const AlephaRedis: _alepha_core3.Service<_alepha_core3.Module<{}>>;
80
80
  //#endregion
81
81
  export { AlephaRedis, RedisClient, RedisClientOptions, RedisProvider, RedisSetOptions, RedisSubscriberProvider };
82
82
  //# sourceMappingURL=index.d.ts.map
package/scheduler.d.ts CHANGED
@@ -109,7 +109,7 @@ interface SchedulerHandlerArguments {
109
109
  * @see {@link $scheduler}
110
110
  * @module alepha.scheduler
111
111
  */
112
- declare const AlephaScheduler: _alepha_core4.Service<_alepha_core4.Module>;
112
+ declare const AlephaScheduler: _alepha_core4.Service<_alepha_core4.Module<{}>>;
113
113
  //#endregion
114
114
  export { $scheduler, AlephaScheduler, SchedulerDescriptor, SchedulerDescriptorOptions, SchedulerHandlerArguments };
115
115
  //# sourceMappingURL=index.d.ts.map
package/security.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _alepha_core1 from "alepha";
2
2
  import { Alepha, Descriptor, KIND, Static } from "alepha";
3
- import * as _alepha_logger0 from "alepha/logger";
3
+ import * as _alepha_logger1 from "alepha/logger";
4
4
  import { DateTimeProvider, Duration, DurationLike } from "alepha/datetime";
5
5
  import { CryptoKey, FlattenedJWSInput, JSONWebKeySet, JWSHeaderParameters, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject } from "jose";
6
6
  import * as typebox0 from "typebox";
@@ -68,7 +68,7 @@ type Role = Static<typeof roleSchema>;
68
68
  * Provides utilities for working with JSON Web Tokens (JWT).
69
69
  */
70
70
  declare class JwtProvider {
71
- protected readonly log: _alepha_logger0.Logger;
71
+ protected readonly log: _alepha_logger1.Logger;
72
72
  protected readonly keystore: KeyLoaderHolder[];
73
73
  protected readonly dateTimeProvider: DateTimeProvider;
74
74
  protected readonly encoder: TextEncoder;
@@ -131,7 +131,7 @@ interface JwtParseResult {
131
131
  //#endregion
132
132
  //#region src/providers/SecurityProvider.d.ts
133
133
  declare const envSchema: _alepha_core1.TObject<{
134
- SECURITY_SECRET_KEY: _alepha_core1.TString;
134
+ APP_SECRET: _alepha_core1.TString;
135
135
  }>;
136
136
  declare module "alepha" {
137
137
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -140,12 +140,13 @@ declare class SecurityProvider {
140
140
  protected readonly UNKNOWN_USER_NAME = "Anonymous User";
141
141
  protected readonly PERMISSION_REGEXP: RegExp;
142
142
  protected readonly PERMISSION_REGEXP_WILDCARD: RegExp;
143
- protected readonly log: _alepha_logger0.Logger;
143
+ protected readonly log: _alepha_logger1.Logger;
144
144
  protected readonly jwt: JwtProvider;
145
145
  protected readonly env: {
146
- SECURITY_SECRET_KEY: string;
146
+ APP_SECRET: string;
147
147
  };
148
148
  protected readonly alepha: Alepha;
149
+ get secretKey(): string;
149
150
  /**
150
151
  * The permissions configured for the security provider.
151
152
  */
@@ -397,7 +398,7 @@ declare class RealmDescriptor extends Descriptor<RealmDescriptorOptions> {
397
398
  protected readonly securityProvider: SecurityProvider;
398
399
  protected readonly dateTimeProvider: DateTimeProvider;
399
400
  protected readonly jwt: JwtProvider;
400
- protected readonly log: _alepha_logger0.Logger;
401
+ protected readonly log: _alepha_logger1.Logger;
401
402
  get name(): string;
402
403
  get accessTokenExpiration(): Duration;
403
404
  get refreshTokenExpiration(): Duration;
@@ -573,7 +574,7 @@ declare module "alepha" {
573
574
  * @see {@link $permission}
574
575
  * @module alepha.security
575
576
  */
576
- declare const AlephaSecurity: _alepha_core1.Service<_alepha_core1.Module>;
577
+ declare const AlephaSecurity: _alepha_core1.Service<_alepha_core1.Module<{}>>;
577
578
  //#endregion
578
579
  export { $permission, $realm, $role, $serviceAccount, AccessTokenResponse, AlephaSecurity, CreateTokenOptions, CryptoProvider, ExtendedJWTPayload, InvalidPermissionError, JwtParseResult, JwtProvider, JwtSignOptions, KeyLoader, KeyLoaderHolder, Oauth2ServiceAccountDescriptorOptions, Permission, PermissionDescriptor, PermissionDescriptorOptions, Realm, RealmDescriptor, RealmDescriptorOptions, RealmExternal, RealmInternal, RealmSettings, Role, RoleDescriptor, RoleDescriptorOptions, SecurityCheckResult, SecurityError, SecurityProvider, ServiceAccountDescriptor, ServiceAccountDescriptorOptions, ServiceAccountStore, UserAccount, UserAccountToken, permissionSchema, roleSchema, userAccountInfoSchema };
579
580
  //# sourceMappingURL=index.d.ts.map
package/server/cache.d.ts CHANGED
@@ -73,7 +73,7 @@ interface RouteCacheEntry {
73
73
  * @see {@link ServerCacheProvider}
74
74
  * @module alepha.server.cache
75
75
  */
76
- declare const AlephaServerCache: _alepha_core1.Service<_alepha_core1.Module>;
76
+ declare const AlephaServerCache: _alepha_core1.Service<_alepha_core1.Module<{}>>;
77
77
  //#endregion
78
78
  export { AlephaServerCache, ServerCacheProvider, ServerRouteCache };
79
79
  //# sourceMappingURL=index.d.ts.map
@@ -26,7 +26,7 @@ interface ServerCompressProviderOptions {
26
26
  *
27
27
  * Compresses responses using gzip, brotli, or zstd based on the `Accept-Encoding` header.
28
28
  */
29
- declare const AlephaServerCompress: _alepha_core0.Service<_alepha_core0.Module>;
29
+ declare const AlephaServerCompress: _alepha_core0.Service<_alepha_core0.Module<{}>>;
30
30
  //#endregion
31
31
  export { AlephaServerCompress, ServerCompressProvider, ServerCompressProviderOptions };
32
32
  //# sourceMappingURL=index.d.ts.map
@@ -2,6 +2,7 @@ import * as _alepha_core1 from "alepha";
2
2
  import { Alepha, Descriptor, KIND, Static, TSchema } from "alepha";
3
3
  import { DateTimeProvider, DurationLike } from "alepha/datetime";
4
4
  import * as _alepha_logger0 from "alepha/logger";
5
+ import { SecurityProvider } from "alepha/security";
5
6
 
6
7
  //#region src/services/CookieParser.d.ts
7
8
  declare class CookieParser {
@@ -11,23 +12,12 @@ declare class CookieParser {
11
12
  }
12
13
  //#endregion
13
14
  //#region src/providers/ServerCookiesProvider.d.ts
14
- declare const envSchema: _alepha_core1.TObject<{
15
- /**
16
- * A 32-byte secret key used for cookie encryption and signing. MUST be set for `encrypt` or `sign` to work.
17
- */
18
- COOKIE_SECRET: _alepha_core1.TOptional<_alepha_core1.TString>;
19
- }>;
20
- declare module "alepha" {
21
- interface Env extends Partial<Static<typeof envSchema>> {}
22
- }
23
15
  declare class ServerCookiesProvider {
24
16
  protected readonly alepha: Alepha;
25
17
  protected readonly log: _alepha_logger0.Logger;
26
- protected readonly env: {
27
- COOKIE_SECRET?: string | undefined;
28
- };
29
18
  protected readonly cookieParser: CookieParser;
30
19
  protected readonly dateTimeProvider: DateTimeProvider;
20
+ protected readonly securityProvider: SecurityProvider;
31
21
  protected readonly ALGORITHM = "aes-256-gcm";
32
22
  protected readonly IV_LENGTH = 16;
33
23
  protected readonly AUTH_TAG_LENGTH = 16;
@@ -147,7 +137,7 @@ declare module "alepha/server" {
147
137
  * @see {@link $cookie}
148
138
  * @module alepha.server.cookies
149
139
  */
150
- declare const AlephaServerCookies: _alepha_core1.Service<_alepha_core1.Module>;
140
+ declare const AlephaServerCookies: _alepha_core1.Service<_alepha_core1.Module<{}>>;
151
141
  //#endregion
152
142
  export { $cookie, AbstractCookieDescriptor, AlephaServerCookies, Cookie, CookieDescriptor, CookieDescriptorOptions, Cookies, ServerCookiesProvider };
153
143
  //# sourceMappingURL=index.d.ts.map
package/server/cors.d.ts CHANGED
@@ -21,7 +21,7 @@ interface ServerCorsProviderOptions {
21
21
  /**
22
22
  * Plugin for configuring CORS on the Alepha server.
23
23
  */
24
- declare const AlephaServerCors: _alepha_core1.Service<_alepha_core1.Module>;
24
+ declare const AlephaServerCors: _alepha_core1.Service<_alepha_core1.Module<ServerCorsProviderOptions>>;
25
25
  //#endregion
26
26
  export { AlephaServerCors, ServerCorsProvider, ServerCorsProviderOptions };
27
27
  //# sourceMappingURL=index.d.ts.map
@@ -30,7 +30,7 @@ declare class ServerHealthProvider {
30
30
  * @see {@link ServerHealthProvider}
31
31
  * @module alepha.server.health
32
32
  */
33
- declare const AlephaServerHealth: _alepha_core0.Service<_alepha_core0.Module>;
33
+ declare const AlephaServerHealth: _alepha_core0.Service<_alepha_core0.Module<{}>>;
34
34
  //#endregion
35
35
  export { AlephaServerHealth, ServerHealthProvider };
36
36
  //# sourceMappingURL=index.d.ts.map
@@ -63,7 +63,7 @@ declare class ServerHelmetProvider {
63
63
  * @see {@link ServerHelmetProvider}
64
64
  * @module alepha.server.helmet
65
65
  */
66
- declare const AlephaServerHelmet: _alepha_core1.Service<_alepha_core1.Module>;
66
+ declare const AlephaServerHelmet: _alepha_core1.Service<_alepha_core1.Module<{}>>;
67
67
  //#endregion
68
68
  export { AlephaServerHelmet, CspDirectives, CspOptions, HelmetOptions, HstsOptions, ServerHelmetProvider };
69
69
  //# sourceMappingURL=index.d.ts.map
package/server/links.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "alepha/server/security";
2
- import * as _alepha_core2 from "alepha";
2
+ import * as _alepha_core1 from "alepha";
3
3
  import { Alepha, Descriptor, KIND, Static } from "alepha";
4
4
  import * as _alepha_server0 from "alepha/server";
5
5
  import { ActionDescriptor, ClientRequestEntry, ClientRequestOptions, ClientRequestResponse, FetchResponse, HttpClient, RequestConfigSchema, ServerHandler, ServerRequestConfigEntry, ServerTimingProvider } from "alepha/server";
@@ -7,26 +7,26 @@ import * as _alepha_logger0 from "alepha/logger";
7
7
  import * as _alepha_retry0 from "alepha/retry";
8
8
  import { ProxyDescriptorOptions, ServerProxyProvider } from "alepha/server/proxy";
9
9
  import { ServiceAccountDescriptor, UserAccountToken } from "alepha/security";
10
- import * as typebox18 from "typebox";
10
+ import * as typebox0 from "typebox";
11
11
 
12
12
  //#region src/schemas/apiLinksResponseSchema.d.ts
13
- declare const apiLinkSchema: typebox18.TObject<{
14
- name: typebox18.TString;
15
- group: typebox18.TOptional<typebox18.TString>;
16
- path: typebox18.TString;
17
- method: typebox18.TOptional<typebox18.TString>;
18
- requestBodyType: typebox18.TOptional<typebox18.TString>;
19
- service: typebox18.TOptional<typebox18.TString>;
13
+ declare const apiLinkSchema: typebox0.TObject<{
14
+ name: typebox0.TString;
15
+ group: typebox0.TOptional<typebox0.TString>;
16
+ path: typebox0.TString;
17
+ method: typebox0.TOptional<typebox0.TString>;
18
+ requestBodyType: typebox0.TOptional<typebox0.TString>;
19
+ service: typebox0.TOptional<typebox0.TString>;
20
20
  }>;
21
- declare const apiLinksResponseSchema: typebox18.TObject<{
22
- prefix: typebox18.TOptional<typebox18.TString>;
23
- links: typebox18.TArray<typebox18.TObject<{
24
- name: typebox18.TString;
25
- group: typebox18.TOptional<typebox18.TString>;
26
- path: typebox18.TString;
27
- method: typebox18.TOptional<typebox18.TString>;
28
- requestBodyType: typebox18.TOptional<typebox18.TString>;
29
- service: typebox18.TOptional<typebox18.TString>;
21
+ declare const apiLinksResponseSchema: typebox0.TObject<{
22
+ prefix: typebox0.TOptional<typebox0.TString>;
23
+ links: typebox0.TArray<typebox0.TObject<{
24
+ name: typebox0.TString;
25
+ group: typebox0.TOptional<typebox0.TString>;
26
+ path: typebox0.TString;
27
+ method: typebox0.TOptional<typebox0.TString>;
28
+ requestBodyType: typebox0.TOptional<typebox0.TString>;
29
+ service: typebox0.TOptional<typebox0.TString>;
30
30
  }>>;
31
31
  }>;
32
32
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -181,8 +181,8 @@ declare class RemoteDescriptorProvider {
181
181
  protected readonly remotes: Array<ServerRemote>;
182
182
  protected readonly log: _alepha_logger0.Logger;
183
183
  getRemotes(): ServerRemote[];
184
- readonly configure: _alepha_core2.HookDescriptor<"configure">;
185
- readonly start: _alepha_core2.HookDescriptor<"start">;
184
+ readonly configure: _alepha_core1.HookDescriptor<"configure">;
185
+ readonly start: _alepha_core1.HookDescriptor<"start">;
186
186
  registerRemote(value: RemoteDescriptor): Promise<void>;
187
187
  protected readonly fetchLinks: _alepha_retry0.RetryDescriptorFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
188
188
  }
@@ -250,22 +250,22 @@ declare class ServerLinksProvider {
250
250
  protected readonly remoteProvider: RemoteDescriptorProvider;
251
251
  protected readonly serverTimingProvider: ServerTimingProvider;
252
252
  get prefix(): string;
253
- readonly onRoute: _alepha_core2.HookDescriptor<"configure">;
253
+ readonly onRoute: _alepha_core1.HookDescriptor<"configure">;
254
254
  /**
255
255
  * First API - Get all API links for the user.
256
256
  *
257
257
  * This is based on the user's permissions.
258
258
  */
259
259
  readonly links: _alepha_server0.RouteDescriptor<{
260
- response: typebox18.TObject<{
261
- prefix: typebox18.TOptional<typebox18.TString>;
262
- links: typebox18.TArray<typebox18.TObject<{
263
- name: typebox18.TString;
264
- group: typebox18.TOptional<typebox18.TString>;
265
- path: typebox18.TString;
266
- method: typebox18.TOptional<typebox18.TString>;
267
- requestBodyType: typebox18.TOptional<typebox18.TString>;
268
- service: typebox18.TOptional<typebox18.TString>;
260
+ response: typebox0.TObject<{
261
+ prefix: typebox0.TOptional<typebox0.TString>;
262
+ links: typebox0.TArray<typebox0.TObject<{
263
+ name: typebox0.TString;
264
+ group: typebox0.TOptional<typebox0.TString>;
265
+ path: typebox0.TString;
266
+ method: typebox0.TOptional<typebox0.TString>;
267
+ requestBodyType: typebox0.TOptional<typebox0.TString>;
268
+ service: typebox0.TOptional<typebox0.TString>;
269
269
  }>>;
270
270
  }>;
271
271
  }>;
@@ -276,10 +276,10 @@ declare class ServerLinksProvider {
276
276
  * I mean for 150+ links, you got 50ms of serialization time.
277
277
  */
278
278
  readonly schema: _alepha_server0.RouteDescriptor<{
279
- params: typebox18.TObject<{
280
- name: typebox18.TString;
279
+ params: typebox0.TObject<{
280
+ name: typebox0.TString;
281
281
  }>;
282
- response: typebox18.TRecord<string, typebox18.TAny>;
282
+ response: typebox0.TRecord<string, typebox0.TAny>;
283
283
  }>;
284
284
  getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
285
285
  /**
@@ -310,7 +310,7 @@ declare module "alepha" {
310
310
  * @see {@link $client}
311
311
  * @module alepha.server.links
312
312
  */
313
- declare const AlephaServerLinks: _alepha_core2.Service<_alepha_core2.Module>;
313
+ declare const AlephaServerLinks: _alepha_core1.Service<_alepha_core1.Module<{}>>;
314
314
  //#endregion
315
315
  export { $client, $remote, AlephaServerLinks, ApiLink, ApiLinksResponse, ClientScope, FetchLinksOptions, GetApiLinksOptions, HttpClientLink, HttpVirtualClient, LinkProvider, RemoteDescriptor, RemoteDescriptorOptions, RemoteDescriptorProvider, ServerLinksProvider, ServerRemote, VirtualAction, apiLinkSchema, apiLinksResponseSchema };
316
316
  //# sourceMappingURL=index.d.ts.map
@@ -29,7 +29,7 @@ interface ServerMetricsProviderOptions {
29
29
  * @see {@link ServerMetricsProvider}
30
30
  * @module alepha.server.metrics
31
31
  */
32
- declare const AlephaServerMetrics: _alepha_core1.Service<_alepha_core1.Module>;
32
+ declare const AlephaServerMetrics: _alepha_core1.Service<_alepha_core1.Module<{}>>;
33
33
  //#endregion
34
34
  export { AlephaServerMetrics, ServerMetricsProvider, ServerMetricsProviderOptions };
35
35
  //# sourceMappingURL=index.d.ts.map
@@ -36,7 +36,7 @@ interface HybridFile extends FileLike {
36
36
  * @see {@link ServerMultipartProvider}
37
37
  * @module alepha.server.multipart
38
38
  */
39
- declare const AlephaServerMultipart: _alepha_core0.Service<_alepha_core0.Module>;
39
+ declare const AlephaServerMultipart: _alepha_core0.Service<_alepha_core0.Module<{}>>;
40
40
  //#endregion
41
41
  export { AlephaServerMultipart, ServerMultipartProvider };
42
42
  //# sourceMappingURL=index.d.ts.map
package/server/proxy.d.ts CHANGED
@@ -228,7 +228,7 @@ declare class ServerProxyProvider {
228
228
  * @see {@link $proxy}
229
229
  * @module alepha.server.proxy
230
230
  */
231
- declare const AlephaServerProxy: _alepha_core1.Service<_alepha_core1.Module>;
231
+ declare const AlephaServerProxy: _alepha_core1.Service<_alepha_core1.Module<{}>>;
232
232
  //#endregion
233
233
  export { $proxy, AlephaServerProxy, ProxyDescriptor, ProxyDescriptorOptions, ServerProxyProvider };
234
234
  //# sourceMappingURL=index.d.ts.map
@@ -83,7 +83,7 @@ declare module "alepha/server" {
83
83
  * @see {@link ServerSecurityProvider}
84
84
  * @module alepha.server.security
85
85
  */
86
- declare const AlephaServerSecurity: _alepha_core1.Service<_alepha_core1.Module>;
86
+ declare const AlephaServerSecurity: _alepha_core1.Service<_alepha_core1.Module<{}>>;
87
87
  //#endregion
88
88
  export { AlephaServerSecurity, ServerRouteSecure, ServerSecurityProvider };
89
89
  //# sourceMappingURL=index.d.ts.map
@@ -113,7 +113,7 @@ interface ServeDirectory {
113
113
  * @see {@link ServerStaticProvider}
114
114
  * @module alepha.server.static
115
115
  */
116
- declare const AlephaServerStatic: _alepha_core1.Service<_alepha_core1.Module>;
116
+ declare const AlephaServerStatic: _alepha_core1.Service<_alepha_core1.Module<{}>>;
117
117
  //#endregion
118
118
  export { $serve, AlephaServerStatic, CacheControlOptions, ServeDescriptor, ServeDescriptorOptions, ServeDirectory, ServerStaticProvider };
119
119
  //# sourceMappingURL=index.d.ts.map
@@ -2,6 +2,7 @@ import "alepha/server/security";
2
2
  import * as _alepha_core1 from "alepha";
3
3
  import { Alepha, Descriptor, KIND, TObject } from "alepha";
4
4
  import { ActionDescriptor, RequestConfigSchema, ServerRouterProvider } from "alepha/server";
5
+ import * as _alepha_logger0 from "alepha/logger";
5
6
  import { ServerStaticProvider } from "alepha/server/static";
6
7
  import { OpenAPIV3 } from "openapi-types";
7
8
 
@@ -23,8 +24,19 @@ interface SwaggerDescriptorOptions {
23
24
  * If true, docs will be disabled.
24
25
  */
25
26
  disabled?: boolean;
27
+ /**
28
+ * Tags to exclude from the documentation.
29
+ */
26
30
  excludeTags?: string[];
31
+ /**
32
+ * Enable Swagger UI.
33
+ *
34
+ * @default true
35
+ */
27
36
  ui?: boolean | SwaggerUiOptions;
37
+ /**
38
+ * Function to rewrite the OpenAPI document before serving it.
39
+ */
28
40
  rewrite?: (doc: OpenAPIV3.Document) => void;
29
41
  }
30
42
  interface SwaggerUiOptions {
@@ -88,6 +100,7 @@ declare class ServerSwaggerProvider {
88
100
  protected readonly serverStaticProvider: ServerStaticProvider;
89
101
  protected readonly serverRouterProvider: ServerRouterProvider;
90
102
  protected readonly alepha: Alepha;
103
+ protected readonly log: _alepha_logger0.Logger;
91
104
  json?: OpenAPIV3.Document;
92
105
  protected readonly configure: _alepha_core1.HookDescriptor<"configure">;
93
106
  createSwagger(options: SwaggerDescriptorOptions): Promise<OpenAPIV3.Document | undefined>;
@@ -124,7 +137,7 @@ declare module "alepha/server" {
124
137
  * @see {@link ServerSwaggerProvider}
125
138
  * @module alepha.server.swagger
126
139
  */
127
- declare const AlephaServerSwagger: _alepha_core1.Service<_alepha_core1.Module>;
140
+ declare const AlephaServerSwagger: _alepha_core1.Service<_alepha_core1.Module<{}>>;
128
141
  //#endregion
129
142
  export { $swagger, AlephaServerSwagger, ServerSwaggerProvider, SwaggerDescriptor, SwaggerDescriptorOptions, SwaggerUiOptions };
130
143
  //# sourceMappingURL=index.d.ts.map