@twin.org/engine-server-types 0.0.3-next.3 → 0.0.3-next.31
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 +23 -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 +37 -0
- package/dist/es/components/authenticationRate.js.map +1 -0
- package/dist/es/components/hosting.js +29 -0
- package/dist/es/components/hosting.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 +38 -46
- package/dist/es/components/restRouteProcessor.js.map +1 -1
- package/dist/es/components/socketRouteProcessor.js +34 -42
- package/dist/es/components/socketRouteProcessor.js.map +1 -1
- package/dist/es/index.js +9 -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/hostingComponentConfig.js +2 -0
- package/dist/es/models/config/hostingComponentConfig.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/hostingComponentType.js +13 -0
- package/dist/es/models/types/hostingComponentType.js.map +1 -0
- 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/hosting.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 +9 -0
- package/dist/types/models/IEngineServerConfig.d.ts +21 -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/hostingComponentConfig.d.ts +9 -0
- package/dist/types/models/config/restRouteProcessorConfig.d.ts +0 -4
- package/dist/types/models/config/socketRouteProcessorConfig.d.ts +0 -4
- 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/hostingComponentType.d.ts +13 -0
- package/docs/changelog.md +478 -1
- 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/initialiseHostingComponent.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 +12 -0
- package/docs/reference/interfaces/IEngineServerConfig.md +473 -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/HostingComponentConfig.md +17 -0
- package/docs/reference/type-aliases/HostingComponentType.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/HostingComponentType.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 +7 -7
- package/docs/reference/variables/SocketRouteProcessorType.md +7 -7
- package/package.json +4 -5
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { AuthHeaderProcessor } from "@twin.org/api-auth-entity-storage-service";
|
|
3
|
+
import { AuthHeaderProcessor, initSchema as initSchemaAuthEntityStorage } from "@twin.org/api-auth-entity-storage-service";
|
|
4
4
|
import { SocketRouteProcessorFactory } from "@twin.org/api-models";
|
|
5
5
|
import { LoggingProcessor, ContextIdProcessor, SocketRouteProcessor, StaticContextIdProcessor } from "@twin.org/api-processors";
|
|
6
6
|
import { initSchema as initSchemaTenantProcessor, TenantProcessor } from "@twin.org/api-tenant-processor";
|
|
7
7
|
import { ContextIdHelper, ContextIdKeys } from "@twin.org/context";
|
|
8
|
-
import { initialiseEntityStorageConnector } from "@twin.org/engine-types";
|
|
9
|
-
import { VerifiableCredentialAuthenticationProcessor } from "@twin.org/identity-authentication";
|
|
8
|
+
import { EngineTypeHelper, initialiseEntityStorageConnector } from "@twin.org/engine-types";
|
|
10
9
|
import { SocketRouteProcessorType } from "../models/types/socketRouteProcessorType.js";
|
|
11
10
|
/**
|
|
12
11
|
* Initialise the socket route processor.
|
|
@@ -15,58 +14,51 @@ import { SocketRouteProcessorType } from "../models/types/socketRouteProcessorTy
|
|
|
15
14
|
* @param instanceConfig The instance config.
|
|
16
15
|
* @returns The instance created and the factory for it.
|
|
17
16
|
*/
|
|
18
|
-
export
|
|
19
|
-
let
|
|
20
|
-
let
|
|
17
|
+
export function initialiseSocketRouteProcessorComponent(engineCore, context, instanceConfig) {
|
|
18
|
+
let createComponent;
|
|
19
|
+
let instanceTypeName;
|
|
21
20
|
if (instanceConfig.type === SocketRouteProcessorType.AuthHeader) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
34
|
-
config: {
|
|
35
|
-
...instanceConfig.options?.config
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
instanceType = "verifiable-credential-authentication-processor";
|
|
21
|
+
createComponent = (createConfig) => {
|
|
22
|
+
initSchemaAuthEntityStorage();
|
|
23
|
+
initialiseEntityStorageConnector(engineCore, context, createConfig.options?.userEntityStorageType, "AuthenticationUser", ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [
|
|
24
|
+
ContextIdKeys.Node,
|
|
25
|
+
ContextIdKeys.Tenant
|
|
26
|
+
]));
|
|
27
|
+
return new AuthHeaderProcessor(EngineTypeHelper.mergeConfig({
|
|
28
|
+
vaultConnectorType: engineCore.getRegisteredInstanceType("vaultConnector")
|
|
29
|
+
}, createConfig.options));
|
|
30
|
+
};
|
|
31
|
+
instanceTypeName = "auth-header-processor";
|
|
39
32
|
}
|
|
40
33
|
else if (instanceConfig.type === SocketRouteProcessorType.Logging) {
|
|
41
|
-
|
|
42
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent")
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
instanceType = "logging-processor";
|
|
34
|
+
createComponent = (createConfig) => new LoggingProcessor(EngineTypeHelper.mergeConfig({
|
|
35
|
+
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent")
|
|
36
|
+
}, createConfig.options));
|
|
37
|
+
instanceTypeName = "logging-processor";
|
|
48
38
|
}
|
|
49
39
|
else if (instanceConfig.type === SocketRouteProcessorType.ContextId) {
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
createComponent = (createConfig) => new ContextIdProcessor(EngineTypeHelper.mergeConfig(createConfig.options));
|
|
41
|
+
instanceTypeName = "context-id-processor";
|
|
52
42
|
}
|
|
53
43
|
else if (instanceConfig.type === SocketRouteProcessorType.StaticContextId) {
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
createComponent = (createConfig) => new StaticContextIdProcessor(EngineTypeHelper.mergeConfig(createConfig.options));
|
|
45
|
+
instanceTypeName = "static-context-id-processor";
|
|
56
46
|
}
|
|
57
47
|
else if (instanceConfig.type === SocketRouteProcessorType.SocketRoute) {
|
|
58
|
-
|
|
59
|
-
|
|
48
|
+
createComponent = (createConfig) => new SocketRouteProcessor(EngineTypeHelper.mergeConfig(createConfig.options));
|
|
49
|
+
instanceTypeName = "socket-route-processor";
|
|
60
50
|
}
|
|
61
51
|
else if (instanceConfig.type === SocketRouteProcessorType.Tenant) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
createComponent = (createConfig) => {
|
|
53
|
+
initSchemaTenantProcessor();
|
|
54
|
+
initialiseEntityStorageConnector(engineCore, context, createConfig.options?.tenantEntityStorageType, "Tenant", ContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node]));
|
|
55
|
+
return new TenantProcessor(EngineTypeHelper.mergeConfig(createConfig.options));
|
|
56
|
+
};
|
|
57
|
+
instanceTypeName = "tenant-processor";
|
|
66
58
|
}
|
|
67
59
|
return {
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
createComponent: createComponent,
|
|
61
|
+
instanceTypeName,
|
|
70
62
|
factory: SocketRouteProcessorFactory
|
|
71
63
|
};
|
|
72
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socketRouteProcessor.js","sourceRoot":"","sources":["../../../src/components/socketRouteProcessor.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"socketRouteProcessor.js","sourceRoot":"","sources":["../../../src/components/socketRouteProcessor.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport {\n\tAuthHeaderProcessor,\n\tinitSchema as initSchemaAuthEntityStorage,\n\ttype AuthenticationUser\n} from \"@twin.org/api-auth-entity-storage-service\";\nimport { SocketRouteProcessorFactory } from \"@twin.org/api-models\";\nimport {\n\tLoggingProcessor,\n\tContextIdProcessor,\n\tSocketRouteProcessor,\n\tStaticContextIdProcessor\n} from \"@twin.org/api-processors\";\nimport {\n\tinitSchema as initSchemaTenantProcessor,\n\ttype Tenant,\n\tTenantProcessor\n} from \"@twin.org/api-tenant-processor\";\nimport { ContextIdHelper, ContextIdKeys } from \"@twin.org/context\";\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { EngineTypeHelper, initialiseEntityStorageConnector } from \"@twin.org/engine-types\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport type { SocketRouteProcessorConfig } from \"../models/config/socketRouteProcessorConfig.js\";\nimport type { IEngineServerConfig } from \"../models/IEngineServerConfig.js\";\nimport { SocketRouteProcessorType } from \"../models/types/socketRouteProcessorType.js\";\n\n/**\n * Initialise the socket route processor.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseSocketRouteProcessorComponent(\n\tengineCore: IEngineCore<IEngineServerConfig>,\n\tcontext: IEngineCoreContext<IEngineServerConfig>,\n\tinstanceConfig: SocketRouteProcessorConfig\n): EngineTypeInitialiserReturn<SocketRouteProcessorConfig, typeof SocketRouteProcessorFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === SocketRouteProcessorType.AuthHeader) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaAuthEntityStorage();\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.userEntityStorageType,\n\t\t\t\tnameof<AuthenticationUser>(),\n\t\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [\n\t\t\t\t\tContextIdKeys.Node,\n\t\t\t\t\tContextIdKeys.Tenant\n\t\t\t\t])\n\t\t\t);\n\n\t\t\treturn new AuthHeaderProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tvaultConnectorType: engineCore.getRegisteredInstanceType(\"vaultConnector\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\t};\n\t\tinstanceTypeName = nameofKebabCase(AuthHeaderProcessor);\n\t} else if (instanceConfig.type === SocketRouteProcessorType.Logging) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew LoggingProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\")\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(LoggingProcessor);\n\t} else if (instanceConfig.type === SocketRouteProcessorType.ContextId) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew ContextIdProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(ContextIdProcessor);\n\t} else if (instanceConfig.type === SocketRouteProcessorType.StaticContextId) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew StaticContextIdProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(StaticContextIdProcessor);\n\t} else if (instanceConfig.type === SocketRouteProcessorType.SocketRoute) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew SocketRouteProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(SocketRouteProcessor);\n\t} else if (instanceConfig.type === SocketRouteProcessorType.Tenant) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) => {\n\t\t\tinitSchemaTenantProcessor();\n\t\t\tinitialiseEntityStorageConnector(\n\t\t\t\tengineCore,\n\t\t\t\tcontext,\n\t\t\t\tcreateConfig.options?.tenantEntityStorageType,\n\t\t\t\tnameof<Tenant>(),\n\t\t\t\tContextIdHelper.pickKeysFromAvailable(engineCore.getContextIdKeys(), [ContextIdKeys.Node])\n\t\t\t);\n\t\t\treturn new TenantProcessor(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(createConfig.options)\n\t\t\t);\n\t\t};\n\t\tinstanceTypeName = nameofKebabCase(TenantProcessor);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: SocketRouteProcessorFactory\n\t};\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -2,19 +2,28 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
export * from "./components/authentication.js";
|
|
4
4
|
export * from "./components/authenticationAdmin.js";
|
|
5
|
+
export * from "./components/authenticationAudit.js";
|
|
6
|
+
export * from "./components/authenticationRate.js";
|
|
7
|
+
export * from "./components/hosting.js";
|
|
5
8
|
export * from "./components/information.js";
|
|
6
9
|
export * from "./components/mimeTypeProcessor.js";
|
|
7
10
|
export * from "./components/restRouteProcessor.js";
|
|
8
11
|
export * from "./components/socketRouteProcessor.js";
|
|
9
12
|
export * from "./models/config/authenticationAdminComponentConfig.js";
|
|
13
|
+
export * from "./models/config/authenticationAuditComponentConfig.js";
|
|
10
14
|
export * from "./models/config/authenticationComponentConfig.js";
|
|
15
|
+
export * from "./models/config/authenticationRateComponentConfig.js";
|
|
16
|
+
export * from "./models/config/hostingComponentConfig.js";
|
|
11
17
|
export * from "./models/config/informationComponentConfig.js";
|
|
12
18
|
export * from "./models/config/mimeTypeProcessorConfig.js";
|
|
13
19
|
export * from "./models/config/restRouteProcessorConfig.js";
|
|
14
20
|
export * from "./models/config/socketRouteProcessorConfig.js";
|
|
15
21
|
export * from "./models/IEngineServerConfig.js";
|
|
16
22
|
export * from "./models/types/authenticationAdminComponentType.js";
|
|
23
|
+
export * from "./models/types/authenticationAuditComponentType.js";
|
|
17
24
|
export * from "./models/types/authenticationComponentType.js";
|
|
25
|
+
export * from "./models/types/authenticationRateComponentType.js";
|
|
26
|
+
export * from "./models/types/hostingComponentType.js";
|
|
18
27
|
export * from "./models/types/informationComponentType.js";
|
|
19
28
|
export * from "./models/types/mimeTypeProcessorType.js";
|
|
20
29
|
export * from "./models/types/restRouteProcessorType.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./components/authentication.js\";\nexport * from \"./components/authenticationAdmin.js\";\nexport * from \"./components/information.js\";\nexport * from \"./components/mimeTypeProcessor.js\";\nexport * from \"./components/restRouteProcessor.js\";\nexport * from \"./components/socketRouteProcessor.js\";\nexport * from \"./models/config/authenticationAdminComponentConfig.js\";\nexport * from \"./models/config/authenticationComponentConfig.js\";\nexport * from \"./models/config/informationComponentConfig.js\";\nexport * from \"./models/config/mimeTypeProcessorConfig.js\";\nexport * from \"./models/config/restRouteProcessorConfig.js\";\nexport * from \"./models/config/socketRouteProcessorConfig.js\";\nexport * from \"./models/IEngineServerConfig.js\";\nexport * from \"./models/types/authenticationAdminComponentType.js\";\nexport * from \"./models/types/authenticationComponentType.js\";\nexport * from \"./models/types/informationComponentType.js\";\nexport * from \"./models/types/mimeTypeProcessorType.js\";\nexport * from \"./models/types/restRouteProcessorType.js\";\nexport * from \"./models/types/socketRouteProcessorType.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./components/authentication.js\";\nexport * from \"./components/authenticationAdmin.js\";\nexport * from \"./components/authenticationAudit.js\";\nexport * from \"./components/authenticationRate.js\";\nexport * from \"./components/hosting.js\";\nexport * from \"./components/information.js\";\nexport * from \"./components/mimeTypeProcessor.js\";\nexport * from \"./components/restRouteProcessor.js\";\nexport * from \"./components/socketRouteProcessor.js\";\nexport * from \"./models/config/authenticationAdminComponentConfig.js\";\nexport * from \"./models/config/authenticationAuditComponentConfig.js\";\nexport * from \"./models/config/authenticationComponentConfig.js\";\nexport * from \"./models/config/authenticationRateComponentConfig.js\";\nexport * from \"./models/config/hostingComponentConfig.js\";\nexport * from \"./models/config/informationComponentConfig.js\";\nexport * from \"./models/config/mimeTypeProcessorConfig.js\";\nexport * from \"./models/config/restRouteProcessorConfig.js\";\nexport * from \"./models/config/socketRouteProcessorConfig.js\";\nexport * from \"./models/IEngineServerConfig.js\";\nexport * from \"./models/types/authenticationAdminComponentType.js\";\nexport * from \"./models/types/authenticationAuditComponentType.js\";\nexport * from \"./models/types/authenticationComponentType.js\";\nexport * from \"./models/types/authenticationRateComponentType.js\";\nexport * from \"./models/types/hostingComponentType.js\";\nexport * from \"./models/types/informationComponentType.js\";\nexport * from \"./models/types/mimeTypeProcessorType.js\";\nexport * from \"./models/types/restRouteProcessorType.js\";\nexport * from \"./models/types/socketRouteProcessorType.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEngineServerConfig.js","sourceRoot":"","sources":["../../../src/models/IEngineServerConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IWebServerOptions } from \"@twin.org/api-models\";\nimport type { IEngineCoreTypeConfig } from \"@twin.org/engine-models\";\nimport type { IEngineConfig } from \"@twin.org/engine-types\";\nimport type { AuthenticationAdminComponentConfig } from \"./config/authenticationAdminComponentConfig.js\";\nimport type { AuthenticationComponentConfig } from \"./config/authenticationComponentConfig.js\";\nimport type { InformationComponentConfig } from \"./config/informationComponentConfig.js\";\nimport type { MimeTypeProcessorConfig } from \"./config/mimeTypeProcessorConfig.js\";\nimport type { RestRouteProcessorConfig } from \"./config/restRouteProcessorConfig.js\";\nimport type { SocketRouteProcessorConfig } from \"./config/socketRouteProcessorConfig.js\";\n\n/**\n * Extended engine server config with known types.\n */\nexport interface IEngineServerConfig extends IEngineConfig {\n\t/**\n\t * Configuration for the web server.\n\t */\n\tweb?: IWebServerOptions;\n\n\t/**\n\t * The types to initialise in the engine.\n\t */\n\ttypes: IEngineConfig[\"types\"] & {\n\t\t[type: string]: IEngineCoreTypeConfig[] | undefined;\n\n\t\t/**\n\t\t * Information component options which can be overridden by individual components by specifying types other than default
|
|
1
|
+
{"version":3,"file":"IEngineServerConfig.js","sourceRoot":"","sources":["../../../src/models/IEngineServerConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IWebServerOptions } from \"@twin.org/api-models\";\nimport type { IEngineCoreTypeConfig } from \"@twin.org/engine-models\";\nimport type { IEngineConfig } from \"@twin.org/engine-types\";\nimport type { AuthenticationAdminComponentConfig } from \"./config/authenticationAdminComponentConfig.js\";\nimport type { AuthenticationAuditComponentConfig } from \"./config/authenticationAuditComponentConfig.js\";\nimport type { AuthenticationComponentConfig } from \"./config/authenticationComponentConfig.js\";\nimport type { AuthenticationRateComponentConfig } from \"./config/authenticationRateComponentConfig.js\";\nimport type { HostingComponentConfig } from \"./config/hostingComponentConfig.js\";\nimport type { InformationComponentConfig } from \"./config/informationComponentConfig.js\";\nimport type { MimeTypeProcessorConfig } from \"./config/mimeTypeProcessorConfig.js\";\nimport type { RestRouteProcessorConfig } from \"./config/restRouteProcessorConfig.js\";\nimport type { SocketRouteProcessorConfig } from \"./config/socketRouteProcessorConfig.js\";\n\n/**\n * Extended engine server config with known types.\n */\nexport interface IEngineServerConfig extends IEngineConfig {\n\t/**\n\t * Configuration for the web server.\n\t */\n\tweb?: IWebServerOptions;\n\n\t/**\n\t * The types to initialise in the engine.\n\t */\n\ttypes: IEngineConfig[\"types\"] & {\n\t\t[type: string]: IEngineCoreTypeConfig[] | undefined;\n\n\t\t/**\n\t\t * Information component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tinformationComponent?: IEngineCoreTypeConfig<InformationComponentConfig>[];\n\n\t\t/**\n\t\t * Hosting component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\thostingComponent?: IEngineCoreTypeConfig<HostingComponentConfig>[];\n\n\t\t/**\n\t\t * REST route processors options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\trestRouteProcessor?: IEngineCoreTypeConfig<RestRouteProcessorConfig>[];\n\n\t\t/**\n\t\t * Socket route processors options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tsocketRouteProcessor?: IEngineCoreTypeConfig<SocketRouteProcessorConfig>[];\n\n\t\t/**\n\t\t * Mime type processors options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tmimeTypeProcessor?: IEngineCoreTypeConfig<MimeTypeProcessorConfig>[];\n\n\t\t/**\n\t\t * Authentication audit component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauthenticationAuditComponent?: IEngineCoreTypeConfig<AuthenticationAuditComponentConfig>[];\n\n\t\t/**\n\t\t * Authentication rate component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauthenticationRateComponent?: IEngineCoreTypeConfig<AuthenticationRateComponentConfig>[];\n\n\t\t/**\n\t\t * Authentication component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauthenticationComponent?: IEngineCoreTypeConfig<AuthenticationComponentConfig>[];\n\n\t\t/**\n\t\t * Authentication admin component options which can be overridden by individual components by specifying types other than default.\n\t\t */\n\t\tauthenticationAdminComponent?: IEngineCoreTypeConfig<AuthenticationAdminComponentConfig>[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationAuditComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/authenticationAuditComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEntityStorageAuthenticationAuditServiceConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type { AuthenticationAuditComponentType } from \"../types/authenticationAuditComponentType.js\";\n\n/**\n * Authentication audit component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type AuthenticationAuditComponentConfig = {\n\ttype: typeof AuthenticationAuditComponentType.EntityStorage;\n\toptions?: IEntityStorageAuthenticationAuditServiceConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationRateComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/authenticationRateComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEntityStorageAuthenticationRateServiceConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type { AuthenticationRateComponentType } from \"../types/authenticationRateComponentType.js\";\n\n/**\n * Authentication rate component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type AuthenticationRateComponentConfig = {\n\ttype: typeof AuthenticationRateComponentType.EntityStorage;\n\toptions?: IEntityStorageAuthenticationRateServiceConstructorOptions;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostingComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/hostingComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IHostingServiceConstructorOptions } from \"@twin.org/api-service\";\nimport type { HostingComponentType } from \"../types/hostingComponentType.js\";\n\n/**\n * Hosting component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type HostingComponentConfig = {\n\ttype: typeof HostingComponentType.Service;\n\toptions: IHostingServiceConstructorOptions;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restRouteProcessorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/restRouteProcessorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuthHeaderProcessorConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type {\n\tIContextIdProcessorConstructorOptions,\n\tILoggingProcessorConstructorOptions,\n\tIRestRouteProcessorConstructorOptions,\n\tIStaticContextIdProcessorConstructorOptions\n} from \"@twin.org/api-processors\";\nimport type { ITenantProcessorConstructorOptions } from \"@twin.org/api-tenant-processor\";\nimport type {
|
|
1
|
+
{"version":3,"file":"restRouteProcessorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/restRouteProcessorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuthHeaderProcessorConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type {\n\tIContextIdProcessorConstructorOptions,\n\tILoggingProcessorConstructorOptions,\n\tIRestRouteProcessorConstructorOptions,\n\tIStaticContextIdProcessorConstructorOptions\n} from \"@twin.org/api-processors\";\nimport type { ITenantProcessorConstructorOptions } from \"@twin.org/api-tenant-processor\";\nimport type { RestRouteProcessorType } from \"../types/restRouteProcessorType.js\";\n\n/**\n * REST route processor config types.\n */\nexport type RestRouteProcessorConfig =\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.AuthHeader;\n\t\t\toptions?: IAuthHeaderProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.Logging;\n\t\t\toptions?: ILoggingProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.ContextId;\n\t\t\toptions: IContextIdProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.StaticContextId;\n\t\t\toptions: IStaticContextIdProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.Tenant;\n\t\t\toptions?: ITenantProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RestRouteProcessorType.RestRoute;\n\t\t\toptions?: IRestRouteProcessorConstructorOptions;\n\t };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socketRouteProcessorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/socketRouteProcessorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuthHeaderProcessorConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type {\n\tIContextIdProcessorConstructorOptions,\n\tILoggingProcessorConstructorOptions,\n\tISocketRouteProcessorConstructorOptions,\n\tIStaticContextIdProcessorConstructorOptions\n} from \"@twin.org/api-processors\";\nimport type { ITenantProcessorConstructorOptions } from \"@twin.org/api-tenant-processor\";\nimport type {
|
|
1
|
+
{"version":3,"file":"socketRouteProcessorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/socketRouteProcessorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuthHeaderProcessorConstructorOptions } from \"@twin.org/api-auth-entity-storage-service\";\nimport type {\n\tIContextIdProcessorConstructorOptions,\n\tILoggingProcessorConstructorOptions,\n\tISocketRouteProcessorConstructorOptions,\n\tIStaticContextIdProcessorConstructorOptions\n} from \"@twin.org/api-processors\";\nimport type { ITenantProcessorConstructorOptions } from \"@twin.org/api-tenant-processor\";\nimport type { SocketRouteProcessorType } from \"../types/socketRouteProcessorType.js\";\n\n/**\n * Socket route processor config types.\n */\nexport type SocketRouteProcessorConfig =\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.AuthHeader;\n\t\t\toptions?: IAuthHeaderProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.Logging;\n\t\t\toptions?: ILoggingProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.ContextId;\n\t\t\toptions: IContextIdProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.StaticContextId;\n\t\t\toptions: IStaticContextIdProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.Tenant;\n\t\t\toptions?: ITenantProcessorConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof SocketRouteProcessorType.SocketRoute;\n\t\t\toptions?: ISocketRouteProcessorConstructorOptions;\n\t };\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Authentication audit component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuthenticationAuditComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Entity storage.
|
|
10
|
+
*/
|
|
11
|
+
EntityStorage: "entity-storage"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=authenticationAuditComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationAuditComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/authenticationAuditComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC/C;;OAEG;IACH,aAAa,EAAE,gBAAgB;CACtB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Authentication audit component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuthenticationAuditComponentType = {\n\t/**\n\t * Entity storage.\n\t */\n\tEntityStorage: \"entity-storage\"\n} as const;\n\n/**\n * Authentication audit component types.\n */\nexport type AuthenticationAuditComponentType =\n\t(typeof AuthenticationAuditComponentType)[keyof typeof AuthenticationAuditComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Authentication rate component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuthenticationRateComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Entity storage.
|
|
10
|
+
*/
|
|
11
|
+
EntityStorage: "entity-storage"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=authenticationRateComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationRateComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/authenticationRateComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC9C;;OAEG;IACH,aAAa,EAAE,gBAAgB;CACtB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Authentication rate component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuthenticationRateComponentType = {\n\t/**\n\t * Entity storage.\n\t */\n\tEntityStorage: \"entity-storage\"\n} as const;\n\n/**\n * Authentication rate component types.\n */\nexport type AuthenticationRateComponentType =\n\t(typeof AuthenticationRateComponentType)[keyof typeof AuthenticationRateComponentType];\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Hosting component types.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const HostingComponentType = {
|
|
8
|
+
/**
|
|
9
|
+
* Service.
|
|
10
|
+
*/
|
|
11
|
+
Service: "service"
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=hostingComponentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostingComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/hostingComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Hosting component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HostingComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * Hosting component types.\n */\nexport type HostingComponentType = (typeof HostingComponentType)[keyof typeof HostingComponentType];\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentFactory
|
|
2
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
3
|
import type { AuthenticationComponentConfig } from "../models/config/authenticationComponentConfig.js";
|
|
4
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
5
|
/**
|
|
@@ -9,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
9
9
|
* @param instanceConfig The instance config.
|
|
10
10
|
* @returns The instance created and the factory for it.
|
|
11
11
|
*/
|
|
12
|
-
export declare function initialiseAuthenticationComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationComponentConfig):
|
|
13
|
-
instanceType?: string;
|
|
14
|
-
factory?: typeof ComponentFactory;
|
|
15
|
-
component?: IComponent;
|
|
16
|
-
}>;
|
|
12
|
+
export declare function initialiseAuthenticationComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationComponentConfig): EngineTypeInitialiserReturn<AuthenticationComponentConfig, typeof ComponentFactory>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentFactory
|
|
2
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
3
|
import type { AuthenticationAdminComponentConfig } from "../models/config/authenticationAdminComponentConfig.js";
|
|
4
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
5
|
/**
|
|
@@ -9,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
9
9
|
* @param instanceConfig The instance config.
|
|
10
10
|
* @returns The instance created and the factory for it.
|
|
11
11
|
*/
|
|
12
|
-
export declare function initialiseAuthenticationAdminComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationAdminComponentConfig):
|
|
13
|
-
instanceType?: string;
|
|
14
|
-
factory?: typeof ComponentFactory;
|
|
15
|
-
component?: IComponent;
|
|
16
|
-
}>;
|
|
12
|
+
export declare function initialiseAuthenticationAdminComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationAdminComponentConfig): EngineTypeInitialiserReturn<AuthenticationAdminComponentConfig, typeof ComponentFactory>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { AuthenticationAuditComponentConfig } from "../models/config/authenticationAuditComponentConfig.js";
|
|
4
|
+
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the authentication audit.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialiseAuthenticationAuditComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationAuditComponentConfig): EngineTypeInitialiserReturn<AuthenticationAuditComponentConfig, typeof ComponentFactory>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { AuthenticationRateComponentConfig } from "../models/config/authenticationRateComponentConfig.js";
|
|
4
|
+
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the authentication rate.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialiseAuthenticationRateComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: AuthenticationRateComponentConfig): EngineTypeInitialiserReturn<AuthenticationRateComponentConfig, typeof ComponentFactory>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
+
import type { HostingComponentConfig } from "../models/config/hostingComponentConfig.js";
|
|
4
|
+
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
|
+
/**
|
|
6
|
+
* Initialise the hosting component.
|
|
7
|
+
* @param engineCore The engine core.
|
|
8
|
+
* @param context The context for the engine.
|
|
9
|
+
* @param instanceConfig The instance config.
|
|
10
|
+
* @returns The instance created and the factory for it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function initialiseHostingComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: HostingComponentConfig): EngineTypeInitialiserReturn<HostingComponentConfig, typeof ComponentFactory>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentFactory
|
|
2
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
1
|
+
import { ComponentFactory } from "@twin.org/core";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
3
|
import type { InformationComponentConfig } from "../models/config/informationComponentConfig.js";
|
|
4
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
5
5
|
/**
|
|
@@ -9,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
9
9
|
* @param instanceConfig The instance config.
|
|
10
10
|
* @returns The instance created and the factory for it.
|
|
11
11
|
*/
|
|
12
|
-
export declare function initialiseInformationComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: InformationComponentConfig):
|
|
13
|
-
instanceType?: string;
|
|
14
|
-
factory?: typeof ComponentFactory;
|
|
15
|
-
component?: IComponent;
|
|
16
|
-
}>;
|
|
12
|
+
export declare function initialiseInformationComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: InformationComponentConfig): EngineTypeInitialiserReturn<InformationComponentConfig, typeof ComponentFactory>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MimeTypeProcessorFactory } from "@twin.org/api-models";
|
|
2
|
-
import type {
|
|
3
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
4
3
|
import type { MimeTypeProcessorConfig } from "../models/config/mimeTypeProcessorConfig.js";
|
|
5
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
6
5
|
/**
|
|
@@ -10,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
10
9
|
* @param instanceConfig The instance config.
|
|
11
10
|
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseMimeTypeProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: MimeTypeProcessorConfig):
|
|
14
|
-
instanceType?: string;
|
|
15
|
-
factory?: typeof MimeTypeProcessorFactory;
|
|
16
|
-
component?: IComponent;
|
|
17
|
-
}>;
|
|
12
|
+
export declare function initialiseMimeTypeProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: MimeTypeProcessorConfig): EngineTypeInitialiserReturn<MimeTypeProcessorConfig, typeof MimeTypeProcessorFactory>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RestRouteProcessorFactory } from "@twin.org/api-models";
|
|
2
|
-
import type {
|
|
3
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
4
3
|
import type { RestRouteProcessorConfig } from "../models/config/restRouteProcessorConfig.js";
|
|
5
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
6
5
|
/**
|
|
@@ -10,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
10
9
|
* @param instanceConfig The instance config.
|
|
11
10
|
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseRestRouteProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: RestRouteProcessorConfig):
|
|
14
|
-
instanceType?: string;
|
|
15
|
-
factory?: typeof RestRouteProcessorFactory;
|
|
16
|
-
component?: IComponent;
|
|
17
|
-
}>;
|
|
12
|
+
export declare function initialiseRestRouteProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: RestRouteProcessorConfig): EngineTypeInitialiserReturn<RestRouteProcessorConfig, typeof RestRouteProcessorFactory>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SocketRouteProcessorFactory } from "@twin.org/api-models";
|
|
2
|
-
import type {
|
|
3
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
2
|
+
import type { EngineTypeInitialiserReturn, IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
4
3
|
import type { SocketRouteProcessorConfig } from "../models/config/socketRouteProcessorConfig.js";
|
|
5
4
|
import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
6
5
|
/**
|
|
@@ -10,8 +9,4 @@ import type { IEngineServerConfig } from "../models/IEngineServerConfig.js";
|
|
|
10
9
|
* @param instanceConfig The instance config.
|
|
11
10
|
* @returns The instance created and the factory for it.
|
|
12
11
|
*/
|
|
13
|
-
export declare function initialiseSocketRouteProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: SocketRouteProcessorConfig):
|
|
14
|
-
instanceType?: string;
|
|
15
|
-
factory?: typeof SocketRouteProcessorFactory;
|
|
16
|
-
component?: IComponent;
|
|
17
|
-
}>;
|
|
12
|
+
export declare function initialiseSocketRouteProcessorComponent(engineCore: IEngineCore<IEngineServerConfig>, context: IEngineCoreContext<IEngineServerConfig>, instanceConfig: SocketRouteProcessorConfig): EngineTypeInitialiserReturn<SocketRouteProcessorConfig, typeof SocketRouteProcessorFactory>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
export * from "./components/authentication.js";
|
|
2
2
|
export * from "./components/authenticationAdmin.js";
|
|
3
|
+
export * from "./components/authenticationAudit.js";
|
|
4
|
+
export * from "./components/authenticationRate.js";
|
|
5
|
+
export * from "./components/hosting.js";
|
|
3
6
|
export * from "./components/information.js";
|
|
4
7
|
export * from "./components/mimeTypeProcessor.js";
|
|
5
8
|
export * from "./components/restRouteProcessor.js";
|
|
6
9
|
export * from "./components/socketRouteProcessor.js";
|
|
7
10
|
export * from "./models/config/authenticationAdminComponentConfig.js";
|
|
11
|
+
export * from "./models/config/authenticationAuditComponentConfig.js";
|
|
8
12
|
export * from "./models/config/authenticationComponentConfig.js";
|
|
13
|
+
export * from "./models/config/authenticationRateComponentConfig.js";
|
|
14
|
+
export * from "./models/config/hostingComponentConfig.js";
|
|
9
15
|
export * from "./models/config/informationComponentConfig.js";
|
|
10
16
|
export * from "./models/config/mimeTypeProcessorConfig.js";
|
|
11
17
|
export * from "./models/config/restRouteProcessorConfig.js";
|
|
12
18
|
export * from "./models/config/socketRouteProcessorConfig.js";
|
|
13
19
|
export * from "./models/IEngineServerConfig.js";
|
|
14
20
|
export * from "./models/types/authenticationAdminComponentType.js";
|
|
21
|
+
export * from "./models/types/authenticationAuditComponentType.js";
|
|
15
22
|
export * from "./models/types/authenticationComponentType.js";
|
|
23
|
+
export * from "./models/types/authenticationRateComponentType.js";
|
|
24
|
+
export * from "./models/types/hostingComponentType.js";
|
|
16
25
|
export * from "./models/types/informationComponentType.js";
|
|
17
26
|
export * from "./models/types/mimeTypeProcessorType.js";
|
|
18
27
|
export * from "./models/types/restRouteProcessorType.js";
|
|
@@ -2,7 +2,10 @@ import type { IWebServerOptions } from "@twin.org/api-models";
|
|
|
2
2
|
import type { IEngineCoreTypeConfig } from "@twin.org/engine-models";
|
|
3
3
|
import type { IEngineConfig } from "@twin.org/engine-types";
|
|
4
4
|
import type { AuthenticationAdminComponentConfig } from "./config/authenticationAdminComponentConfig.js";
|
|
5
|
+
import type { AuthenticationAuditComponentConfig } from "./config/authenticationAuditComponentConfig.js";
|
|
5
6
|
import type { AuthenticationComponentConfig } from "./config/authenticationComponentConfig.js";
|
|
7
|
+
import type { AuthenticationRateComponentConfig } from "./config/authenticationRateComponentConfig.js";
|
|
8
|
+
import type { HostingComponentConfig } from "./config/hostingComponentConfig.js";
|
|
6
9
|
import type { InformationComponentConfig } from "./config/informationComponentConfig.js";
|
|
7
10
|
import type { MimeTypeProcessorConfig } from "./config/mimeTypeProcessorConfig.js";
|
|
8
11
|
import type { RestRouteProcessorConfig } from "./config/restRouteProcessorConfig.js";
|
|
@@ -21,27 +24,39 @@ export interface IEngineServerConfig extends IEngineConfig {
|
|
|
21
24
|
types: IEngineConfig["types"] & {
|
|
22
25
|
[type: string]: IEngineCoreTypeConfig[] | undefined;
|
|
23
26
|
/**
|
|
24
|
-
* Information component options which can be overridden by individual components by specifying types other than default
|
|
27
|
+
* Information component options which can be overridden by individual components by specifying types other than default.
|
|
25
28
|
*/
|
|
26
29
|
informationComponent?: IEngineCoreTypeConfig<InformationComponentConfig>[];
|
|
27
30
|
/**
|
|
28
|
-
*
|
|
31
|
+
* Hosting component options which can be overridden by individual components by specifying types other than default.
|
|
32
|
+
*/
|
|
33
|
+
hostingComponent?: IEngineCoreTypeConfig<HostingComponentConfig>[];
|
|
34
|
+
/**
|
|
35
|
+
* REST route processors options which can be overridden by individual components by specifying types other than default.
|
|
29
36
|
*/
|
|
30
37
|
restRouteProcessor?: IEngineCoreTypeConfig<RestRouteProcessorConfig>[];
|
|
31
38
|
/**
|
|
32
|
-
* Socket route processors options which can be overridden by individual components by specifying types other than default
|
|
39
|
+
* Socket route processors options which can be overridden by individual components by specifying types other than default.
|
|
33
40
|
*/
|
|
34
41
|
socketRouteProcessor?: IEngineCoreTypeConfig<SocketRouteProcessorConfig>[];
|
|
35
42
|
/**
|
|
36
|
-
* Mime type processors options which can be overridden by individual components by specifying types other than default
|
|
43
|
+
* Mime type processors options which can be overridden by individual components by specifying types other than default.
|
|
37
44
|
*/
|
|
38
45
|
mimeTypeProcessor?: IEngineCoreTypeConfig<MimeTypeProcessorConfig>[];
|
|
39
46
|
/**
|
|
40
|
-
* Authentication component options which can be overridden by individual components by specifying types other than default
|
|
47
|
+
* Authentication audit component options which can be overridden by individual components by specifying types other than default.
|
|
48
|
+
*/
|
|
49
|
+
authenticationAuditComponent?: IEngineCoreTypeConfig<AuthenticationAuditComponentConfig>[];
|
|
50
|
+
/**
|
|
51
|
+
* Authentication rate component options which can be overridden by individual components by specifying types other than default.
|
|
52
|
+
*/
|
|
53
|
+
authenticationRateComponent?: IEngineCoreTypeConfig<AuthenticationRateComponentConfig>[];
|
|
54
|
+
/**
|
|
55
|
+
* Authentication component options which can be overridden by individual components by specifying types other than default.
|
|
41
56
|
*/
|
|
42
57
|
authenticationComponent?: IEngineCoreTypeConfig<AuthenticationComponentConfig>[];
|
|
43
58
|
/**
|
|
44
|
-
* Authentication admin component options which can be overridden by individual components by specifying types other than default
|
|
59
|
+
* Authentication admin component options which can be overridden by individual components by specifying types other than default.
|
|
45
60
|
*/
|
|
46
61
|
authenticationAdminComponent?: IEngineCoreTypeConfig<AuthenticationAdminComponentConfig>[];
|
|
47
62
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IEntityStorageAuthenticationAuditServiceConstructorOptions } from "@twin.org/api-auth-entity-storage-service";
|
|
2
|
+
import type { AuthenticationAuditComponentType } from "../types/authenticationAuditComponentType.js";
|
|
3
|
+
/**
|
|
4
|
+
* Authentication audit component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type AuthenticationAuditComponentConfig = {
|
|
7
|
+
type: typeof AuthenticationAuditComponentType.EntityStorage;
|
|
8
|
+
options?: IEntityStorageAuthenticationAuditServiceConstructorOptions;
|
|
9
|
+
};
|
|
@@ -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
|
+
};
|