hoffmation-base 3.2.25 → 3.2.26

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,3 +1,4 @@
1
+ import { iRestUser } from './iRestUser';
1
2
  /**
2
3
  * Interface for the REST settings.
3
4
  * This is primarily used to configure the REST service within Hoffmation-Express.
@@ -7,8 +8,16 @@ export interface iRestSettings {
7
8
  * Whether the REST service should be active.
8
9
  */
9
10
  active: boolean;
11
+ /**
12
+ * Whether the Web UI should be active.
13
+ */
14
+ webUi: boolean;
10
15
  /**
11
16
  * The port the REST service should listen on.
12
17
  */
13
18
  port?: number;
19
+ /**
20
+ * The allowed users for the REST service.
21
+ */
22
+ user?: iRestUser[];
14
23
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface iRestUser {
5
+ /**
6
+ *
7
+ */
8
+ username: string;
9
+ /**
10
+ *
11
+ */
12
+ passwordHash: string;
13
+ /**
14
+ *
15
+ */
16
+ publicKey: string;
17
+ /**
18
+ *
19
+ */
20
+ permissions: string[];
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,4 +30,5 @@ export { iLedSettings } from './iLedSettings';
30
30
  export { iSceneSettings } from './iSceneSettings';
31
31
  export { iSettingsProvider } from './iSettingsProvider';
32
32
  export { iWledSettings } from './iWledSettings';
33
+ export { iRestUser } from './iRestUser';
33
34
  export { iGlobalHeaterSettings } from './iGlobalHeaterSettings';
@@ -18,6 +18,7 @@ exports.ExampleConfig = {
18
18
  },
19
19
  restServer: {
20
20
  active: true,
21
+ webUi: true,
21
22
  expressPort: 4444,
22
23
  },
23
24
  roomDefault: {