alepha 0.10.1 → 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/react.d.ts CHANGED
@@ -6,7 +6,7 @@ import { ClientScope, HttpVirtualClient, LinkProvider, VirtualAction } from "ale
6
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 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";
@@ -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>;
@@ -898,7 +898,7 @@ declare module "alepha" {
898
898
  * @see {@link $page}
899
899
  * @module alepha.react
900
900
  */
901
- declare const AlephaReact: _alepha_core5.Service<_alepha_core5.Module>;
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 _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;
@@ -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: _alepha_logger0.Logger;
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: _alepha_logger0.Logger;
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
@@ -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
@@ -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
@@ -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
@@ -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>;
@@ -257,15 +257,15 @@ declare class ServerLinksProvider {
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_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
@@ -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