@twin.org/engine-server-types 0.0.3-next.8 → 0.9.0-next.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.
- package/README.md +1 -1
- package/dist/es/components/authentication.js +24 -19
- package/dist/es/components/authentication.js.map +1 -1
- package/dist/es/components/authenticationAdmin.js +19 -15
- package/dist/es/components/authenticationAdmin.js.map +1 -1
- package/dist/es/components/authenticationAudit.js +35 -0
- package/dist/es/components/authenticationAudit.js.map +1 -0
- package/dist/es/components/authenticationRate.js +38 -0
- package/dist/es/components/authenticationRate.js.map +1 -0
- package/dist/es/components/information.js +12 -9
- package/dist/es/components/information.js.map +1 -1
- package/dist/es/components/mimeTypeProcessor.js +7 -7
- package/dist/es/components/mimeTypeProcessor.js.map +1 -1
- package/dist/es/components/restRouteProcessor.js +44 -47
- package/dist/es/components/restRouteProcessor.js.map +1 -1
- package/dist/es/components/socketRouteProcessor.js +43 -43
- package/dist/es/components/socketRouteProcessor.js.map +1 -1
- package/dist/es/index.js +6 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineServerConfig.js.map +1 -1
- package/dist/es/models/config/authenticationAuditComponentConfig.js +2 -0
- package/dist/es/models/config/authenticationAuditComponentConfig.js.map +1 -0
- package/dist/es/models/config/authenticationRateComponentConfig.js +2 -0
- package/dist/es/models/config/authenticationRateComponentConfig.js.map +1 -0
- package/dist/es/models/config/restRouteProcessorConfig.js.map +1 -1
- package/dist/es/models/config/socketRouteProcessorConfig.js.map +1 -1
- package/dist/es/models/types/authenticationAuditComponentType.js +13 -0
- package/dist/es/models/types/authenticationAuditComponentType.js.map +1 -0
- package/dist/es/models/types/authenticationRateComponentType.js +13 -0
- package/dist/es/models/types/authenticationRateComponentType.js.map +1 -0
- package/dist/es/models/types/restRouteProcessorType.js +4 -0
- package/dist/es/models/types/restRouteProcessorType.js.map +1 -1
- package/dist/es/models/types/socketRouteProcessorType.js +4 -0
- package/dist/es/models/types/socketRouteProcessorType.js.map +1 -1
- package/dist/types/components/authentication.d.ts +3 -7
- package/dist/types/components/authenticationAdmin.d.ts +3 -7
- package/dist/types/components/authenticationAudit.d.ts +12 -0
- package/dist/types/components/authenticationRate.d.ts +12 -0
- package/dist/types/components/information.d.ts +3 -7
- package/dist/types/components/mimeTypeProcessor.d.ts +2 -7
- package/dist/types/components/restRouteProcessor.d.ts +2 -7
- package/dist/types/components/socketRouteProcessor.d.ts +2 -7
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/IEngineServerConfig.d.ts +16 -6
- package/dist/types/models/config/authenticationAuditComponentConfig.d.ts +9 -0
- package/dist/types/models/config/authenticationRateComponentConfig.d.ts +9 -0
- package/dist/types/models/config/restRouteProcessorConfig.d.ts +4 -5
- package/dist/types/models/config/socketRouteProcessorConfig.d.ts +4 -5
- package/dist/types/models/types/authenticationAuditComponentType.d.ts +13 -0
- package/dist/types/models/types/authenticationRateComponentType.d.ts +13 -0
- package/dist/types/models/types/restRouteProcessorType.d.ts +4 -0
- package/dist/types/models/types/socketRouteProcessorType.d.ts +4 -0
- package/docs/changelog.md +1000 -124
- package/docs/examples.md +64 -1
- package/docs/reference/functions/initialiseAuthenticationAdminComponent.md +2 -2
- package/docs/reference/functions/initialiseAuthenticationAuditComponent.md +31 -0
- package/docs/reference/functions/initialiseAuthenticationComponent.md +2 -2
- package/docs/reference/functions/initialiseAuthenticationRateComponent.md +31 -0
- package/docs/reference/functions/initialiseInformationComponent.md +2 -2
- package/docs/reference/functions/initialiseMimeTypeProcessorComponent.md +2 -2
- package/docs/reference/functions/initialiseRestRouteProcessorComponent.md +2 -2
- package/docs/reference/functions/initialiseSocketRouteProcessorComponent.md +2 -2
- package/docs/reference/index.md +8 -0
- package/docs/reference/interfaces/IEngineServerConfig.md +503 -15
- package/docs/reference/type-aliases/AuthenticationAdminComponentConfig.md +3 -3
- package/docs/reference/type-aliases/AuthenticationAuditComponentConfig.md +17 -0
- package/docs/reference/type-aliases/AuthenticationAuditComponentType.md +5 -0
- package/docs/reference/type-aliases/AuthenticationRateComponentConfig.md +17 -0
- package/docs/reference/type-aliases/AuthenticationRateComponentType.md +5 -0
- package/docs/reference/type-aliases/MimeTypeProcessorConfig.md +3 -3
- package/docs/reference/type-aliases/RestRouteProcessorConfig.md +1 -1
- package/docs/reference/type-aliases/SocketRouteProcessorConfig.md +1 -1
- package/docs/reference/variables/AuthenticationAdminComponentType.md +1 -1
- package/docs/reference/variables/AuthenticationAuditComponentType.md +13 -0
- package/docs/reference/variables/AuthenticationComponentType.md +2 -2
- package/docs/reference/variables/AuthenticationRateComponentType.md +13 -0
- package/docs/reference/variables/InformationComponentType.md +2 -2
- package/docs/reference/variables/MimeTypeProcessorType.md +1 -1
- package/docs/reference/variables/RestRouteProcessorType.md +13 -7
- package/docs/reference/variables/SocketRouteProcessorType.md +13 -7
- package/package.json +19 -20
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IEntityStorageAuthenticationRateServiceConstructorOptions } from "@twin.org/api-auth-entity-storage-service";
|
|
2
|
+
import type { AuthenticationRateComponentType } from "../types/authenticationRateComponentType.js";
|
|
3
|
+
/**
|
|
4
|
+
* Authentication rate component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type AuthenticationRateComponentConfig = {
|
|
7
|
+
type: typeof AuthenticationRateComponentType.EntityStorage;
|
|
8
|
+
options?: IEntityStorageAuthenticationRateServiceConstructorOptions;
|
|
9
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { IAuthHeaderProcessorConstructorOptions } from "@twin.org/api-auth-entity-storage-service";
|
|
2
2
|
import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, IRestRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@twin.org/api-processors";
|
|
3
|
-
import type { ITenantProcessorConstructorOptions } from "@twin.org/api-tenant-processor";
|
|
4
|
-
import type { IVerifiableCredentialAuthenticationProcessorConstructorOptions } from "@twin.org/identity-authentication";
|
|
3
|
+
import type { ISingleTenantProcessorConstructorOptions, ITenantProcessorConstructorOptions } from "@twin.org/api-tenant-processor";
|
|
5
4
|
import type { RestRouteProcessorType } from "../types/restRouteProcessorType.js";
|
|
6
5
|
/**
|
|
7
6
|
* REST route processor config types.
|
|
@@ -9,9 +8,6 @@ import type { RestRouteProcessorType } from "../types/restRouteProcessorType.js"
|
|
|
9
8
|
export type RestRouteProcessorConfig = {
|
|
10
9
|
type: typeof RestRouteProcessorType.AuthHeader;
|
|
11
10
|
options?: IAuthHeaderProcessorConstructorOptions;
|
|
12
|
-
} | {
|
|
13
|
-
type: typeof RestRouteProcessorType.AuthVerifiableCredential;
|
|
14
|
-
options?: IVerifiableCredentialAuthenticationProcessorConstructorOptions;
|
|
15
11
|
} | {
|
|
16
12
|
type: typeof RestRouteProcessorType.Logging;
|
|
17
13
|
options?: ILoggingProcessorConstructorOptions;
|
|
@@ -24,6 +20,9 @@ export type RestRouteProcessorConfig = {
|
|
|
24
20
|
} | {
|
|
25
21
|
type: typeof RestRouteProcessorType.Tenant;
|
|
26
22
|
options?: ITenantProcessorConstructorOptions;
|
|
23
|
+
} | {
|
|
24
|
+
type: typeof RestRouteProcessorType.SingleTenant;
|
|
25
|
+
options?: ISingleTenantProcessorConstructorOptions;
|
|
27
26
|
} | {
|
|
28
27
|
type: typeof RestRouteProcessorType.RestRoute;
|
|
29
28
|
options?: IRestRouteProcessorConstructorOptions;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { IAuthHeaderProcessorConstructorOptions } from "@twin.org/api-auth-entity-storage-service";
|
|
2
2
|
import type { IContextIdProcessorConstructorOptions, ILoggingProcessorConstructorOptions, ISocketRouteProcessorConstructorOptions, IStaticContextIdProcessorConstructorOptions } from "@twin.org/api-processors";
|
|
3
|
-
import type { ITenantProcessorConstructorOptions } from "@twin.org/api-tenant-processor";
|
|
4
|
-
import type { IVerifiableCredentialAuthenticationProcessorConstructorOptions } from "@twin.org/identity-authentication";
|
|
3
|
+
import type { ISingleTenantProcessorConstructorOptions, ITenantProcessorConstructorOptions } from "@twin.org/api-tenant-processor";
|
|
5
4
|
import type { SocketRouteProcessorType } from "../types/socketRouteProcessorType.js";
|
|
6
5
|
/**
|
|
7
6
|
* Socket route processor config types.
|
|
@@ -9,9 +8,6 @@ import type { SocketRouteProcessorType } from "../types/socketRouteProcessorType
|
|
|
9
8
|
export type SocketRouteProcessorConfig = {
|
|
10
9
|
type: typeof SocketRouteProcessorType.AuthHeader;
|
|
11
10
|
options?: IAuthHeaderProcessorConstructorOptions;
|
|
12
|
-
} | {
|
|
13
|
-
type: typeof SocketRouteProcessorType.AuthVerifiableCredential;
|
|
14
|
-
options?: IVerifiableCredentialAuthenticationProcessorConstructorOptions;
|
|
15
11
|
} | {
|
|
16
12
|
type: typeof SocketRouteProcessorType.Logging;
|
|
17
13
|
options?: ILoggingProcessorConstructorOptions;
|
|
@@ -24,6 +20,9 @@ export type SocketRouteProcessorConfig = {
|
|
|
24
20
|
} | {
|
|
25
21
|
type: typeof SocketRouteProcessorType.Tenant;
|
|
26
22
|
options?: ITenantProcessorConstructorOptions;
|
|
23
|
+
} | {
|
|
24
|
+
type: typeof SocketRouteProcessorType.SingleTenant;
|
|
25
|
+
options?: ISingleTenantProcessorConstructorOptions;
|
|
27
26
|
} | {
|
|
28
27
|
type: typeof SocketRouteProcessorType.SocketRoute;
|
|
29
28
|
options?: ISocketRouteProcessorConstructorOptions;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication audit component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuthenticationAuditComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Authentication audit component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AuthenticationAuditComponentType = (typeof AuthenticationAuditComponentType)[keyof typeof AuthenticationAuditComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication rate component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuthenticationRateComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Authentication rate component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AuthenticationRateComponentType = (typeof AuthenticationRateComponentType)[keyof typeof AuthenticationRateComponentType];
|