@twin.org/engine-server-types 0.0.1-next.14
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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/cjs/index.cjs +354 -0
- package/dist/esm/index.mjs +343 -0
- package/dist/types/components/authentication.d.ts +13 -0
- package/dist/types/components/information.d.ts +13 -0
- package/dist/types/components/mimeTypeProcessor.d.ts +13 -0
- package/dist/types/components/restRouteProcessor.d.ts +13 -0
- package/dist/types/components/socketRouteProcessor.d.ts +13 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/IEngineServerTypesConfig.d.ts +43 -0
- package/dist/types/models/config/authenticationComponentConfig.d.ts +13 -0
- package/dist/types/models/config/informationComponentConfig.d.ts +11 -0
- package/dist/types/models/config/mimeTypeProcessorConfig.d.ts +8 -0
- package/dist/types/models/config/restRouteProcessorConfig.d.ts +32 -0
- package/dist/types/models/config/socketRouteProcessorConfig.d.ts +32 -0
- package/dist/types/models/types/authenticationComponentType.d.ts +13 -0
- package/dist/types/models/types/informationComponentType.d.ts +13 -0
- package/dist/types/models/types/mimeTypeProcessorType.d.ts +13 -0
- package/dist/types/models/types/restRouteProcessorType.d.ts +29 -0
- package/dist/types/models/types/socketRouteProcessorType.d.ts +29 -0
- package/docs/changelog.md +5 -0
- package/docs/examples.md +1 -0
- package/docs/reference/functions/initialiseAuthenticationComponent.md +33 -0
- package/docs/reference/functions/initialiseInformationComponent.md +33 -0
- package/docs/reference/functions/initialiseMimeTypeProcessorComponent.md +33 -0
- package/docs/reference/functions/initialiseRestRouteProcessorComponent.md +33 -0
- package/docs/reference/functions/initialiseSocketRouteProcessorComponent.md +33 -0
- package/docs/reference/index.md +34 -0
- package/docs/reference/interfaces/IEngineServerTypesConfig.md +59 -0
- package/docs/reference/type-aliases/AuthenticationComponentConfig.md +27 -0
- package/docs/reference/type-aliases/AuthenticationComponentType.md +5 -0
- package/docs/reference/type-aliases/InformationComponentConfig.md +19 -0
- package/docs/reference/type-aliases/InformationComponentType.md +5 -0
- package/docs/reference/type-aliases/MimeTypeProcessorConfig.md +15 -0
- package/docs/reference/type-aliases/MimeTypeProcessorType.md +5 -0
- package/docs/reference/type-aliases/RestRouteProcessorConfig.md +5 -0
- package/docs/reference/type-aliases/RestRouteProcessorType.md +5 -0
- package/docs/reference/type-aliases/SocketRouteProcessorConfig.md +5 -0
- package/docs/reference/type-aliases/SocketRouteProcessorType.md +5 -0
- package/docs/reference/variables/AuthenticationComponentType.md +13 -0
- package/docs/reference/variables/InformationComponentType.md +13 -0
- package/docs/reference/variables/MimeTypeProcessorType.md +13 -0
- package/docs/reference/variables/RestRouteProcessorType.md +37 -0
- package/docs/reference/variables/SocketRouteProcessorType.md +37 -0
- package/locales/en.json +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Socket route processor types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const SocketRouteProcessorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Auth header.
|
|
7
|
+
*/
|
|
8
|
+
readonly AuthHeader: "auth-header";
|
|
9
|
+
/**
|
|
10
|
+
* Logging.
|
|
11
|
+
*/
|
|
12
|
+
readonly Logging: "logging";
|
|
13
|
+
/**
|
|
14
|
+
* Node Identity.
|
|
15
|
+
*/
|
|
16
|
+
readonly NodeIdentity: "node-identity";
|
|
17
|
+
/**
|
|
18
|
+
* Static User Identity.
|
|
19
|
+
*/
|
|
20
|
+
readonly StaticUserIdentity: "static-user-identity";
|
|
21
|
+
/**
|
|
22
|
+
* Socket Route.
|
|
23
|
+
*/
|
|
24
|
+
readonly SocketRoute: "socket-route";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Socket route processor types.
|
|
28
|
+
*/
|
|
29
|
+
export type SocketRouteProcessorType = (typeof SocketRouteProcessorType)[keyof typeof SocketRouteProcessorType];
|
package/docs/examples.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @twin.org/engine-server-types - Examples
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Function: initialiseAuthenticationComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseAuthenticationComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType`?): `string` \| `undefined`
|
|
4
|
+
|
|
5
|
+
Initialise the authentication.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
• **engineCore**: `IEngineCore`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
10
|
+
|
|
11
|
+
The engine core.
|
|
12
|
+
|
|
13
|
+
• **context**: `IEngineCoreContext`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
14
|
+
|
|
15
|
+
The context for the engine.
|
|
16
|
+
|
|
17
|
+
• **instanceConfig**: [`AuthenticationComponentConfig`](../type-aliases/AuthenticationComponentConfig.md)
|
|
18
|
+
|
|
19
|
+
The instance config.
|
|
20
|
+
|
|
21
|
+
• **overrideInstanceType?**: `string`
|
|
22
|
+
|
|
23
|
+
The instance type to override the default.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string` \| `undefined`
|
|
28
|
+
|
|
29
|
+
The name of the instance created.
|
|
30
|
+
|
|
31
|
+
## Throws
|
|
32
|
+
|
|
33
|
+
GeneralError if the component type is unknown.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Function: initialiseInformationComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseInformationComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType`?): `string` \| `undefined`
|
|
4
|
+
|
|
5
|
+
Initialise the information component.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
• **engineCore**: `IEngineCore`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
10
|
+
|
|
11
|
+
The engine core.
|
|
12
|
+
|
|
13
|
+
• **context**: `IEngineCoreContext`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
14
|
+
|
|
15
|
+
The context for the engine.
|
|
16
|
+
|
|
17
|
+
• **instanceConfig**: [`InformationComponentConfig`](../type-aliases/InformationComponentConfig.md)
|
|
18
|
+
|
|
19
|
+
The instance config.
|
|
20
|
+
|
|
21
|
+
• **overrideInstanceType?**: `string`
|
|
22
|
+
|
|
23
|
+
The instance type to override the default.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string` \| `undefined`
|
|
28
|
+
|
|
29
|
+
The name of the instance created.
|
|
30
|
+
|
|
31
|
+
## Throws
|
|
32
|
+
|
|
33
|
+
GeneralError if the component type is unknown.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Function: initialiseMimeTypeProcessorComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseMimeTypeProcessorComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType`?): `string` \| `undefined`
|
|
4
|
+
|
|
5
|
+
Initialise the mime type processor.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
• **engineCore**: `IEngineCore`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
10
|
+
|
|
11
|
+
The engine core.
|
|
12
|
+
|
|
13
|
+
• **context**: `IEngineCoreContext`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
14
|
+
|
|
15
|
+
The context for the engine.
|
|
16
|
+
|
|
17
|
+
• **instanceConfig**: [`MimeTypeProcessorConfig`](../type-aliases/MimeTypeProcessorConfig.md)
|
|
18
|
+
|
|
19
|
+
The instance config.
|
|
20
|
+
|
|
21
|
+
• **overrideInstanceType?**: `string`
|
|
22
|
+
|
|
23
|
+
The instance type to override the default.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string` \| `undefined`
|
|
28
|
+
|
|
29
|
+
The name of the instance created.
|
|
30
|
+
|
|
31
|
+
## Throws
|
|
32
|
+
|
|
33
|
+
GeneralError if the component type is unknown.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Function: initialiseRestRouteProcessorComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseRestRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType`?): `string` \| `undefined`
|
|
4
|
+
|
|
5
|
+
Initialise the rest route processor.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
• **engineCore**: `IEngineCore`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
10
|
+
|
|
11
|
+
The engine core.
|
|
12
|
+
|
|
13
|
+
• **context**: `IEngineCoreContext`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
14
|
+
|
|
15
|
+
The context for the engine.
|
|
16
|
+
|
|
17
|
+
• **instanceConfig**: [`RestRouteProcessorConfig`](../type-aliases/RestRouteProcessorConfig.md)
|
|
18
|
+
|
|
19
|
+
The instance config.
|
|
20
|
+
|
|
21
|
+
• **overrideInstanceType?**: `string`
|
|
22
|
+
|
|
23
|
+
The instance type to override the default.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string` \| `undefined`
|
|
28
|
+
|
|
29
|
+
The name of the instance created.
|
|
30
|
+
|
|
31
|
+
## Throws
|
|
32
|
+
|
|
33
|
+
GeneralError if the component type is unknown.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Function: initialiseSocketRouteProcessorComponent()
|
|
2
|
+
|
|
3
|
+
> **initialiseSocketRouteProcessorComponent**(`engineCore`, `context`, `instanceConfig`, `overrideInstanceType`?): `string` \| `undefined`
|
|
4
|
+
|
|
5
|
+
Initialise the socket route processor.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
• **engineCore**: `IEngineCore`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
10
|
+
|
|
11
|
+
The engine core.
|
|
12
|
+
|
|
13
|
+
• **context**: `IEngineCoreContext`\<[`IEngineServerTypesConfig`](../interfaces/IEngineServerTypesConfig.md), `IEngineState`\>
|
|
14
|
+
|
|
15
|
+
The context for the engine.
|
|
16
|
+
|
|
17
|
+
• **instanceConfig**: [`SocketRouteProcessorConfig`](../type-aliases/SocketRouteProcessorConfig.md)
|
|
18
|
+
|
|
19
|
+
The instance config.
|
|
20
|
+
|
|
21
|
+
• **overrideInstanceType?**: `string`
|
|
22
|
+
|
|
23
|
+
The instance type to override the default.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`string` \| `undefined`
|
|
28
|
+
|
|
29
|
+
The name of the instance created.
|
|
30
|
+
|
|
31
|
+
## Throws
|
|
32
|
+
|
|
33
|
+
GeneralError if the component type is unknown.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @twin.org/engine-server-types
|
|
2
|
+
|
|
3
|
+
## Interfaces
|
|
4
|
+
|
|
5
|
+
- [IEngineServerTypesConfig](interfaces/IEngineServerTypesConfig.md)
|
|
6
|
+
|
|
7
|
+
## Type Aliases
|
|
8
|
+
|
|
9
|
+
- [AuthenticationComponentConfig](type-aliases/AuthenticationComponentConfig.md)
|
|
10
|
+
- [InformationComponentConfig](type-aliases/InformationComponentConfig.md)
|
|
11
|
+
- [MimeTypeProcessorConfig](type-aliases/MimeTypeProcessorConfig.md)
|
|
12
|
+
- [RestRouteProcessorConfig](type-aliases/RestRouteProcessorConfig.md)
|
|
13
|
+
- [SocketRouteProcessorConfig](type-aliases/SocketRouteProcessorConfig.md)
|
|
14
|
+
- [AuthenticationComponentType](type-aliases/AuthenticationComponentType.md)
|
|
15
|
+
- [InformationComponentType](type-aliases/InformationComponentType.md)
|
|
16
|
+
- [MimeTypeProcessorType](type-aliases/MimeTypeProcessorType.md)
|
|
17
|
+
- [RestRouteProcessorType](type-aliases/RestRouteProcessorType.md)
|
|
18
|
+
- [SocketRouteProcessorType](type-aliases/SocketRouteProcessorType.md)
|
|
19
|
+
|
|
20
|
+
## Variables
|
|
21
|
+
|
|
22
|
+
- [AuthenticationComponentType](variables/AuthenticationComponentType.md)
|
|
23
|
+
- [InformationComponentType](variables/InformationComponentType.md)
|
|
24
|
+
- [MimeTypeProcessorType](variables/MimeTypeProcessorType.md)
|
|
25
|
+
- [RestRouteProcessorType](variables/RestRouteProcessorType.md)
|
|
26
|
+
- [SocketRouteProcessorType](variables/SocketRouteProcessorType.md)
|
|
27
|
+
|
|
28
|
+
## Functions
|
|
29
|
+
|
|
30
|
+
- [initialiseAuthenticationComponent](functions/initialiseAuthenticationComponent.md)
|
|
31
|
+
- [initialiseInformationComponent](functions/initialiseInformationComponent.md)
|
|
32
|
+
- [initialiseMimeTypeProcessorComponent](functions/initialiseMimeTypeProcessorComponent.md)
|
|
33
|
+
- [initialiseRestRouteProcessorComponent](functions/initialiseRestRouteProcessorComponent.md)
|
|
34
|
+
- [initialiseSocketRouteProcessorComponent](functions/initialiseSocketRouteProcessorComponent.md)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Interface: IEngineServerTypesConfig
|
|
2
|
+
|
|
3
|
+
Extended engine server config with known types.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- `IEngineCoreTypesConfig`
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### web?
|
|
12
|
+
|
|
13
|
+
> `optional` **web**: `IWebServerOptions`
|
|
14
|
+
|
|
15
|
+
Configuration for the web server.
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### types
|
|
20
|
+
|
|
21
|
+
> **types**: `object` & `object`
|
|
22
|
+
|
|
23
|
+
The types to initialise in the engine.
|
|
24
|
+
|
|
25
|
+
#### Type declaration
|
|
26
|
+
|
|
27
|
+
##### informationComponent?
|
|
28
|
+
|
|
29
|
+
> `optional` **informationComponent**: `IEngineCoreTypeConfig`\<[`InformationComponentConfig`](../type-aliases/InformationComponentConfig.md)\>[]
|
|
30
|
+
|
|
31
|
+
Information component options which can be overridden by individual components by specifying types other than default..
|
|
32
|
+
|
|
33
|
+
##### restRouteProcessor?
|
|
34
|
+
|
|
35
|
+
> `optional` **restRouteProcessor**: `IEngineCoreTypeConfig`\<[`RestRouteProcessorConfig`](../type-aliases/RestRouteProcessorConfig.md)\>[]
|
|
36
|
+
|
|
37
|
+
REST route processors options which can be overridden by individual components by specifying types other than default..
|
|
38
|
+
|
|
39
|
+
##### socketRouteProcessor?
|
|
40
|
+
|
|
41
|
+
> `optional` **socketRouteProcessor**: `IEngineCoreTypeConfig`\<[`SocketRouteProcessorConfig`](../type-aliases/SocketRouteProcessorConfig.md)\>[]
|
|
42
|
+
|
|
43
|
+
Socket route processors options which can be overridden by individual components by specifying types other than default..
|
|
44
|
+
|
|
45
|
+
##### mimeTypeProcessor?
|
|
46
|
+
|
|
47
|
+
> `optional` **mimeTypeProcessor**: `IEngineCoreTypeConfig`\<[`MimeTypeProcessorConfig`](../type-aliases/MimeTypeProcessorConfig.md)\>[]
|
|
48
|
+
|
|
49
|
+
Mime type processors options which can be overridden by individual components by specifying types other than default..
|
|
50
|
+
|
|
51
|
+
##### authenticationComponent?
|
|
52
|
+
|
|
53
|
+
> `optional` **authenticationComponent**: `IEngineCoreTypeConfig`\<[`AuthenticationComponentConfig`](../type-aliases/AuthenticationComponentConfig.md)\>[]
|
|
54
|
+
|
|
55
|
+
Authentication component options which can be overridden by individual components by specifying types other than default..
|
|
56
|
+
|
|
57
|
+
#### Overrides
|
|
58
|
+
|
|
59
|
+
`IEngineCoreTypesConfig.types`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Type Alias: AuthenticationComponentConfig
|
|
2
|
+
|
|
3
|
+
> **AuthenticationComponentConfig**: `object`
|
|
4
|
+
|
|
5
|
+
Authentication component config types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### type
|
|
10
|
+
|
|
11
|
+
> **type**: *typeof* `AuthenticationComponentType.EntityStorage`
|
|
12
|
+
|
|
13
|
+
### options?
|
|
14
|
+
|
|
15
|
+
> `optional` **options**: `object`
|
|
16
|
+
|
|
17
|
+
### options.userEntityStorageType?
|
|
18
|
+
|
|
19
|
+
> `optional` **userEntityStorageType**: `string`
|
|
20
|
+
|
|
21
|
+
### options.vaultConnectorType?
|
|
22
|
+
|
|
23
|
+
> `optional` **vaultConnectorType**: `string`
|
|
24
|
+
|
|
25
|
+
### options.config?
|
|
26
|
+
|
|
27
|
+
> `optional` **config**: `IEntityStorageAuthenticationServiceConfig`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuthenticationComponentType
|
|
2
|
+
|
|
3
|
+
> **AuthenticationComponentType**: *typeof* [`AuthenticationComponentType`](../variables/AuthenticationComponentType.md)\[keyof *typeof* [`AuthenticationComponentType`](../variables/AuthenticationComponentType.md)\]
|
|
4
|
+
|
|
5
|
+
Authentication component types.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Type Alias: InformationComponentConfig
|
|
2
|
+
|
|
3
|
+
> **InformationComponentConfig**: `object`
|
|
4
|
+
|
|
5
|
+
Information component config types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### type
|
|
10
|
+
|
|
11
|
+
> **type**: *typeof* `InformationComponentType.Service`
|
|
12
|
+
|
|
13
|
+
### options
|
|
14
|
+
|
|
15
|
+
> **options**: `object`
|
|
16
|
+
|
|
17
|
+
### options.config
|
|
18
|
+
|
|
19
|
+
> **config**: `IInformationServiceConfig`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: InformationComponentType
|
|
2
|
+
|
|
3
|
+
> **InformationComponentType**: *typeof* [`InformationComponentType`](../variables/InformationComponentType.md)\[keyof *typeof* [`InformationComponentType`](../variables/InformationComponentType.md)\]
|
|
4
|
+
|
|
5
|
+
Information component types.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Type Alias: MimeTypeProcessorConfig
|
|
2
|
+
|
|
3
|
+
> **MimeTypeProcessorConfig**: `object`
|
|
4
|
+
|
|
5
|
+
Mime type processor config types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### type
|
|
10
|
+
|
|
11
|
+
> **type**: *typeof* `MimeTypeProcessorType.Jwt`
|
|
12
|
+
|
|
13
|
+
### options?
|
|
14
|
+
|
|
15
|
+
> `optional` **options**: `never`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: SocketRouteProcessorType
|
|
2
|
+
|
|
3
|
+
> **SocketRouteProcessorType**: *typeof* [`SocketRouteProcessorType`](../variables/SocketRouteProcessorType.md)\[keyof *typeof* [`SocketRouteProcessorType`](../variables/SocketRouteProcessorType.md)\]
|
|
4
|
+
|
|
5
|
+
Socket route processor types.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: AuthenticationComponentType
|
|
2
|
+
|
|
3
|
+
> `const` **AuthenticationComponentType**: `object`
|
|
4
|
+
|
|
5
|
+
Authentication component types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### EntityStorage
|
|
10
|
+
|
|
11
|
+
> `readonly` **EntityStorage**: `"entity-storage"` = `"entity-storage"`
|
|
12
|
+
|
|
13
|
+
Entity storage.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Variable: RestRouteProcessorType
|
|
2
|
+
|
|
3
|
+
> `const` **RestRouteProcessorType**: `object`
|
|
4
|
+
|
|
5
|
+
REST route processor types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### AuthHeader
|
|
10
|
+
|
|
11
|
+
> `readonly` **AuthHeader**: `"auth-header"` = `"auth-header"`
|
|
12
|
+
|
|
13
|
+
Auth header.
|
|
14
|
+
|
|
15
|
+
### Logging
|
|
16
|
+
|
|
17
|
+
> `readonly` **Logging**: `"logging"` = `"logging"`
|
|
18
|
+
|
|
19
|
+
Logging.
|
|
20
|
+
|
|
21
|
+
### NodeIdentity
|
|
22
|
+
|
|
23
|
+
> `readonly` **NodeIdentity**: `"node-identity"` = `"node-identity"`
|
|
24
|
+
|
|
25
|
+
Node Identity.
|
|
26
|
+
|
|
27
|
+
### StaticUserIdentity
|
|
28
|
+
|
|
29
|
+
> `readonly` **StaticUserIdentity**: `"static-user-identity"` = `"static-user-identity"`
|
|
30
|
+
|
|
31
|
+
Static User Identity.
|
|
32
|
+
|
|
33
|
+
### RestRoute
|
|
34
|
+
|
|
35
|
+
> `readonly` **RestRoute**: `"rest-route"` = `"rest-route"`
|
|
36
|
+
|
|
37
|
+
REST Route.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Variable: SocketRouteProcessorType
|
|
2
|
+
|
|
3
|
+
> `const` **SocketRouteProcessorType**: `object`
|
|
4
|
+
|
|
5
|
+
Socket route processor types.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### AuthHeader
|
|
10
|
+
|
|
11
|
+
> `readonly` **AuthHeader**: `"auth-header"` = `"auth-header"`
|
|
12
|
+
|
|
13
|
+
Auth header.
|
|
14
|
+
|
|
15
|
+
### Logging
|
|
16
|
+
|
|
17
|
+
> `readonly` **Logging**: `"logging"` = `"logging"`
|
|
18
|
+
|
|
19
|
+
Logging.
|
|
20
|
+
|
|
21
|
+
### NodeIdentity
|
|
22
|
+
|
|
23
|
+
> `readonly` **NodeIdentity**: `"node-identity"` = `"node-identity"`
|
|
24
|
+
|
|
25
|
+
Node Identity.
|
|
26
|
+
|
|
27
|
+
### StaticUserIdentity
|
|
28
|
+
|
|
29
|
+
> `readonly` **StaticUserIdentity**: `"static-user-identity"` = `"static-user-identity"`
|
|
30
|
+
|
|
31
|
+
Static User Identity.
|
|
32
|
+
|
|
33
|
+
### SocketRoute
|
|
34
|
+
|
|
35
|
+
> `readonly` **SocketRoute**: `"socket-route"` = `"socket-route"`
|
|
36
|
+
|
|
37
|
+
Socket Route.
|
package/locales/en.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@twin.org/engine-server-types",
|
|
3
|
+
"version": "0.0.1-next.14",
|
|
4
|
+
"description": "Server types to use in an engine server.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/twinfoundation/engine.git",
|
|
8
|
+
"directory": "packages/engine-server-types"
|
|
9
|
+
},
|
|
10
|
+
"author": "martyn.janes@iota.org",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@twin.org/api-auth-entity-storage-service": "next",
|
|
18
|
+
"@twin.org/api-models": "next",
|
|
19
|
+
"@twin.org/api-processors": "next",
|
|
20
|
+
"@twin.org/api-service": "next",
|
|
21
|
+
"@twin.org/core": "next",
|
|
22
|
+
"@twin.org/engine-models": "0.0.1-next.14",
|
|
23
|
+
"@twin.org/engine-types": "0.0.1-next.14",
|
|
24
|
+
"@twin.org/entity": "next",
|
|
25
|
+
"@twin.org/nameof": "next"
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/cjs/index.cjs",
|
|
28
|
+
"module": "./dist/esm/index.mjs",
|
|
29
|
+
"types": "./dist/types/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"require": "./dist/cjs/index.cjs",
|
|
33
|
+
"import": "./dist/esm/index.mjs",
|
|
34
|
+
"types": "./dist/types/index.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"./locales/*.json": "./locales/*.json"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist/cjs",
|
|
40
|
+
"dist/esm",
|
|
41
|
+
"dist/types",
|
|
42
|
+
"locales",
|
|
43
|
+
"docs"
|
|
44
|
+
]
|
|
45
|
+
}
|