alepha 0.10.0 → 0.10.2
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/README.md +189 -5
- package/batch.d.ts +2 -2
- package/bucket.d.ts +1 -1
- package/cache/redis.d.ts +1 -1
- package/cache.d.ts +1 -1
- package/command.d.ts +48 -9
- package/core.d.ts +20 -11
- package/datetime.d.ts +3 -2
- package/email.d.ts +6 -6
- package/lock/redis.d.ts +1 -1
- package/lock.d.ts +1 -1
- package/logger.d.ts +1 -1
- package/package.json +44 -44
- package/postgres.d.ts +77 -382
- package/queue/redis.d.ts +1 -1
- package/queue.d.ts +1 -1
- package/react/auth.d.ts +1 -1
- package/react/form.d.ts +1 -1
- package/react/head.d.ts +1 -1
- package/react/i18n.d.ts +1 -1
- package/react.d.ts +28 -28
- package/redis.d.ts +1 -1
- package/scheduler.d.ts +1 -1
- package/security.d.ts +5 -5
- package/server/cache.d.ts +1 -1
- package/server/compress.d.ts +5 -5
- package/server/cookies.d.ts +1 -1
- package/server/cors.d.ts +1 -1
- package/server/health.d.ts +1 -1
- package/server/helmet.d.ts +1 -1
- package/server/links.d.ts +1 -1
- package/server/metrics.d.ts +1 -1
- package/server/multipart.d.ts +1 -1
- package/server/proxy.d.ts +1 -1
- package/server/security.d.ts +1 -1
- package/server/static.d.ts +1 -1
- package/server/swagger.d.ts +14 -1
- package/server.d.ts +35 -390
- package/topic/redis.d.ts +1 -1
- package/topic.d.ts +1 -1
package/react.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core5 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
|
|
6
|
+
import * as _alepha_logger0 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
|
|
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:
|
|
44
|
-
REACT_STRICT_MODE:
|
|
43
|
+
declare const envSchema$2: _alepha_core5.TObject<{
|
|
44
|
+
REACT_STRICT_MODE: _alepha_core5.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:
|
|
50
|
+
protected readonly log: _alepha_logger0.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:
|
|
86
|
+
protected readonly configure: _alepha_core5.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:
|
|
492
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
493
493
|
protected readonly alepha: Alepha;
|
|
494
494
|
protected readonly pageApi: ReactPageProvider;
|
|
495
495
|
add(entry: PageRouteEntry): void;
|
|
496
|
-
protected readonly configure:
|
|
496
|
+
protected readonly configure: _alepha_core5.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:
|
|
503
|
-
REACT_ROOT_ID:
|
|
502
|
+
declare const envSchema$1: _alepha_core5.TObject<{
|
|
503
|
+
REACT_ROOT_ID: _alepha_core5.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:
|
|
515
|
+
protected readonly log: _alepha_logger0.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:
|
|
550
|
-
readonly ready:
|
|
549
|
+
protected readonly onTransitionEnd: _alepha_core5.HookDescriptor<"react:transition:end">;
|
|
550
|
+
readonly ready: _alepha_core5.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) =>
|
|
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) =>
|
|
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) =>
|
|
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
|
-
}):
|
|
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>;
|
|
@@ -795,12 +795,12 @@ declare const ssrSchemaLoading: (alepha: Alepha, name: string) => RequestConfigS
|
|
|
795
795
|
declare const useStore: <Key extends keyof State>(key: Key, defaultValue?: State[Key]) => [State[Key], (value: State[Key]) => void];
|
|
796
796
|
//#endregion
|
|
797
797
|
//#region src/providers/ReactServerProvider.d.ts
|
|
798
|
-
declare const envSchema:
|
|
799
|
-
REACT_SERVER_DIST:
|
|
800
|
-
REACT_SERVER_PREFIX:
|
|
801
|
-
REACT_SSR_ENABLED:
|
|
802
|
-
REACT_ROOT_ID:
|
|
803
|
-
REACT_SERVER_TEMPLATE:
|
|
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>;
|
|
804
804
|
}>;
|
|
805
805
|
declare module "alepha" {
|
|
806
806
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -809,7 +809,7 @@ declare module "alepha" {
|
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
declare class ReactServerProvider {
|
|
812
|
-
protected readonly log:
|
|
812
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
813
813
|
protected readonly alepha: Alepha;
|
|
814
814
|
protected readonly pageApi: ReactPageProvider;
|
|
815
815
|
protected readonly serverProvider: ServerProvider;
|
|
@@ -819,13 +819,13 @@ declare class ReactServerProvider {
|
|
|
819
819
|
protected readonly env: {
|
|
820
820
|
REACT_SSR_ENABLED?: boolean | undefined;
|
|
821
821
|
REACT_SERVER_TEMPLATE?: string | undefined;
|
|
822
|
+
REACT_ROOT_ID: string;
|
|
822
823
|
REACT_SERVER_DIST: string;
|
|
823
824
|
REACT_SERVER_PREFIX: string;
|
|
824
|
-
REACT_ROOT_ID: string;
|
|
825
825
|
};
|
|
826
826
|
protected readonly ROOT_DIV_REGEX: RegExp;
|
|
827
827
|
protected preprocessedTemplate: PreprocessedTemplate | null;
|
|
828
|
-
readonly onConfigure:
|
|
828
|
+
readonly onConfigure: _alepha_core5.HookDescriptor<"configure">;
|
|
829
829
|
get template(): string;
|
|
830
830
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
831
831
|
protected getPublicDirectory(): string;
|
|
@@ -898,7 +898,7 @@ declare module "alepha" {
|
|
|
898
898
|
* @see {@link $page}
|
|
899
899
|
* @module alepha.react
|
|
900
900
|
*/
|
|
901
|
-
declare const AlephaReact:
|
|
901
|
+
declare const AlephaReact: _alepha_core5.Service<_alepha_core5.Module<{}>>;
|
|
902
902
|
//#endregion
|
|
903
903
|
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
904
|
//# 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
|
|
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:
|
|
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;
|
|
@@ -140,7 +140,7 @@ 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:
|
|
143
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
144
144
|
protected readonly jwt: JwtProvider;
|
|
145
145
|
protected readonly env: {
|
|
146
146
|
SECURITY_SECRET_KEY: string;
|
|
@@ -397,7 +397,7 @@ declare class RealmDescriptor extends Descriptor<RealmDescriptorOptions> {
|
|
|
397
397
|
protected readonly securityProvider: SecurityProvider;
|
|
398
398
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
399
399
|
protected readonly jwt: JwtProvider;
|
|
400
|
-
protected readonly log:
|
|
400
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
401
401
|
get name(): string;
|
|
402
402
|
get accessTokenExpiration(): Duration;
|
|
403
403
|
get refreshTokenExpiration(): Duration;
|
|
@@ -573,7 +573,7 @@ declare module "alepha" {
|
|
|
573
573
|
* @see {@link $permission}
|
|
574
574
|
* @module alepha.security
|
|
575
575
|
*/
|
|
576
|
-
declare const AlephaSecurity: _alepha_core1.Service<_alepha_core1.Module
|
|
576
|
+
declare const AlephaSecurity: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
577
577
|
//#endregion
|
|
578
578
|
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
579
|
//# 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
|
package/server/compress.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import { Transform } from "node:stream";
|
|
|
5
5
|
|
|
6
6
|
//#region src/providers/ServerCompressProvider.d.ts
|
|
7
7
|
declare class ServerCompressProvider {
|
|
8
|
-
compressors: Record<string, {
|
|
8
|
+
static compressors: Record<string, {
|
|
9
9
|
compress: (...args: any[]) => Promise<Buffer>;
|
|
10
10
|
stream: (options?: any) => Transform;
|
|
11
11
|
} | undefined>;
|
|
12
12
|
options: ServerCompressProviderOptions;
|
|
13
13
|
readonly onResponse: HookDescriptor<"server:onResponse">;
|
|
14
14
|
protected isAllowedContentType(contentType: string | undefined): boolean;
|
|
15
|
-
protected compress(encoding: keyof typeof
|
|
16
|
-
protected getParams(encoding: keyof typeof
|
|
17
|
-
protected setHeaders(response: ServerResponse, encoding: keyof typeof
|
|
15
|
+
protected compress(encoding: keyof typeof ServerCompressProvider.compressors, response: ServerResponse): Promise<void>;
|
|
16
|
+
protected getParams(encoding: keyof typeof ServerCompressProvider.compressors): Record<number, any>;
|
|
17
|
+
protected setHeaders(response: ServerResponse, encoding: keyof typeof ServerCompressProvider.compressors): void;
|
|
18
18
|
}
|
|
19
19
|
interface ServerCompressProviderOptions {
|
|
20
20
|
allowedContentTypes: string[];
|
|
@@ -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
|
package/server/cookies.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ declare module "alepha/server" {
|
|
|
147
147
|
* @see {@link $cookie}
|
|
148
148
|
* @module alepha.server.cookies
|
|
149
149
|
*/
|
|
150
|
-
declare const AlephaServerCookies: _alepha_core1.Service<_alepha_core1.Module
|
|
150
|
+
declare const AlephaServerCookies: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
151
151
|
//#endregion
|
|
152
152
|
export { $cookie, AbstractCookieDescriptor, AlephaServerCookies, Cookie, CookieDescriptor, CookieDescriptorOptions, Cookies, ServerCookiesProvider };
|
|
153
153
|
//# 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
|
package/server/health.d.ts
CHANGED
|
@@ -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
|
package/server/helmet.d.ts
CHANGED
|
@@ -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
|
@@ -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_core2.Service<_alepha_core2.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
|
package/server/metrics.d.ts
CHANGED
|
@@ -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
|
package/server/multipart.d.ts
CHANGED
|
@@ -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
|
package/server/security.d.ts
CHANGED
|
@@ -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
|
package/server/static.d.ts
CHANGED
|
@@ -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
|
package/server/swagger.d.ts
CHANGED
|
@@ -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
|