alepha 0.9.3 → 0.9.5

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.
@@ -1,12 +1,12 @@
1
1
  import * as _alepha_core1 from "alepha";
2
- import * as _alepha_core0 from "alepha";
3
2
  import { Alepha } from "alepha";
4
- import { JwtProvider, Permission, SecurityProvider, UserAccountToken } from "alepha/security";
3
+ import { JwtProvider, Permission, SecurityProvider, UserAccount, UserAccountToken } from "alepha/security";
5
4
  import { FetchOptions } from "alepha/server";
5
+ import * as _alepha_logger0 from "alepha/logger";
6
6
 
7
7
  //#region src/providers/ServerSecurityProvider.d.ts
8
8
  declare class ServerSecurityProvider {
9
- protected readonly log: _alepha_core1.Logger;
9
+ protected readonly log: _alepha_logger0.Logger;
10
10
  protected readonly securityProvider: SecurityProvider;
11
11
  protected readonly jwtProvider: JwtProvider;
12
12
  protected readonly alepha: Alepha;
@@ -36,7 +36,6 @@ type ServerRouteSecure = boolean | {
36
36
  realms?: string[];
37
37
  organizations?: string[];
38
38
  };
39
- //# sourceMappingURL=ServerSecurityProvider.d.ts.map
40
39
  //#endregion
41
40
  //#region src/index.d.ts
42
41
  declare module "alepha" {
@@ -48,6 +47,7 @@ declare module "alepha" {
48
47
  * > To force a different user, you need to pass it explicitly in the options.
49
48
  */
50
49
  "server.security.system.user"?: UserAccountToken;
50
+ user?: UserAccount;
51
51
  }
52
52
  }
53
53
  declare module "alepha/server" {
@@ -70,7 +70,7 @@ declare module "alepha/server" {
70
70
  * If "system", use system user. @see {ServerSecurityProvider.localSystemUser}
71
71
  * If "context", use the user from the current context (e.g. request).
72
72
  *
73
- * @default "system" is provided, else "context" is used.
73
+ * @default "system" if provided, else "context" if available.
74
74
  */
75
75
  user?: UserAccountToken | "system" | "context";
76
76
  }
@@ -83,8 +83,7 @@ declare module "alepha/server" {
83
83
  * @see {@link ServerSecurityProvider}
84
84
  * @module alepha.server.security
85
85
  */
86
- declare const AlephaServerSecurity: _alepha_core0.Service<_alepha_core0.Module>;
87
- //# sourceMappingURL=index.d.ts.map
86
+ declare const AlephaServerSecurity: _alepha_core1.Service<_alepha_core1.Module>;
88
87
  //#endregion
89
88
  export { AlephaServerSecurity, ServerRouteSecure, ServerSecurityProvider };
90
89
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import * as _alepha_core1 from "alepha";
2
- import * as _alepha_core0 from "alepha";
3
- import { Alepha, Descriptor, KIND, Logger } from "alepha";
2
+ import { Alepha, Descriptor, KIND } from "alepha";
4
3
  import { ServerHandler, ServerRouterProvider } from "alepha/server";
5
4
  import { DateTimeProvider, DurationLike } from "alepha/datetime";
5
+ import * as _alepha_logger0 from "alepha/logger";
6
6
 
7
7
  //#region src/descriptors/$serve.d.ts
8
8
  /**
@@ -83,14 +83,13 @@ interface CacheControlOptions {
83
83
  immutable: boolean;
84
84
  }
85
85
  declare class ServeDescriptor extends Descriptor<ServeDescriptorOptions> {}
86
- //# sourceMappingURL=$serve.d.ts.map
87
86
  //#endregion
88
87
  //#region src/providers/ServerStaticProvider.d.ts
89
88
  declare class ServerStaticProvider {
90
89
  protected readonly alepha: Alepha;
91
90
  protected readonly routerProvider: ServerRouterProvider;
92
91
  protected readonly dateTimeProvider: DateTimeProvider;
93
- protected readonly log: Logger;
92
+ protected readonly log: _alepha_logger0.Logger;
94
93
  protected readonly directories: ServeDirectory[];
95
94
  protected readonly configure: _alepha_core1.HookDescriptor<"configure">;
96
95
  createStaticServer(options: ServeDescriptorOptions): Promise<void>;
@@ -106,7 +105,6 @@ interface ServeDirectory {
106
105
  options: ServeDescriptorOptions;
107
106
  files: string[];
108
107
  }
109
- //# sourceMappingURL=ServerStaticProvider.d.ts.map
110
108
  //#endregion
111
109
  //#region src/index.d.ts
112
110
  /**
@@ -115,9 +113,7 @@ interface ServeDirectory {
115
113
  * @see {@link ServerStaticProvider}
116
114
  * @module alepha.server.static
117
115
  */
118
- declare const AlephaServerStatic: _alepha_core0.Service<_alepha_core0.Module>;
119
- //# sourceMappingURL=index.d.ts.map
120
-
116
+ declare const AlephaServerStatic: _alepha_core1.Service<_alepha_core1.Module>;
121
117
  //#endregion
122
118
  export { $serve, AlephaServerStatic, CacheControlOptions, ServeDescriptor, ServeDescriptorOptions, ServeDirectory, ServerStaticProvider };
123
119
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
+ import "alepha/server/security";
1
2
  import * as _alepha_core1 from "alepha";
2
- import * as _alepha_core0 from "alepha";
3
3
  import { Alepha, Descriptor, KIND, TObject } from "alepha";
4
4
  import { ActionDescriptor, RequestConfigSchema, ServerRouterProvider } from "alepha/server";
5
5
  import { ServerStaticProvider } from "alepha/server/static";
@@ -82,7 +82,6 @@ interface SwaggerUiOptions {
82
82
  };
83
83
  }
84
84
  declare class SwaggerDescriptor extends Descriptor<SwaggerDescriptorOptions> {}
85
- //# sourceMappingURL=$swagger.d.ts.map
86
85
  //#endregion
87
86
  //#region src/ServerSwaggerProvider.d.ts
88
87
  declare class ServerSwaggerProvider {
@@ -103,7 +102,6 @@ declare class ServerSwaggerProvider {
103
102
  protected configureSwaggerApi(prefix: string, json: OpenAPIV3.Document): void;
104
103
  protected configureSwaggerUi(prefix: string, options: SwaggerDescriptorOptions): Promise<void>;
105
104
  }
106
- //# sourceMappingURL=ServerSwaggerProvider.d.ts.map
107
105
  //#endregion
108
106
  //#region src/index.d.ts
109
107
  declare module "alepha/server" {
@@ -126,9 +124,7 @@ declare module "alepha/server" {
126
124
  * @see {@link ServerSwaggerProvider}
127
125
  * @module alepha.server.swagger
128
126
  */
129
- declare const AlephaServerSwagger: _alepha_core0.Service<_alepha_core0.Module>;
130
- //# sourceMappingURL=index.d.ts.map
131
-
127
+ declare const AlephaServerSwagger: _alepha_core1.Service<_alepha_core1.Module>;
132
128
  //#endregion
133
129
  export { $swagger, AlephaServerSwagger, ServerSwaggerProvider, SwaggerDescriptor, SwaggerDescriptorOptions, SwaggerUiOptions };
134
130
  //# sourceMappingURL=index.d.ts.map