@iobroker/types 7.2.2 → 7.2.3-alpha.1-20260621-61726ea22
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/build/config.d.ts +26 -0
- package/build/objects.d.ts +1 -1
- package/build/types.d.ts +1686 -1
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -46,20 +46,33 @@ interface JsonlOptions {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/** Configuration of a database connection (objects or states) */
|
|
49
50
|
export interface DatabaseOptions {
|
|
50
51
|
/** Possible values: 'file' - [port 9001], 'jsonl' - [port 9001], 'redis' - [port 6379 or 26379 for sentinel]. */
|
|
51
52
|
type: 'jsonl' | 'file' | 'redis';
|
|
53
|
+
/** Name of the sentinel master to connect to */
|
|
52
54
|
sentinelName?: string;
|
|
55
|
+
/** Host name(s) or IP address(es) of the database server */
|
|
53
56
|
host: string | string[];
|
|
57
|
+
/** Port(s) of the database server */
|
|
54
58
|
port: number | number[];
|
|
59
|
+
/** Maximum time in milliseconds to wait for a connection to be established */
|
|
55
60
|
connectTimeout: number;
|
|
61
|
+
/** Interval in milliseconds between flushing the in-memory database to file */
|
|
56
62
|
writeFileInterval: number;
|
|
63
|
+
/** Directory where the database files are stored, relative to the controller dir */
|
|
57
64
|
dataDir?: string;
|
|
65
|
+
/** Low-level connection options passed to the database driver */
|
|
58
66
|
options: {
|
|
67
|
+
/** Password used to authenticate against the database */
|
|
59
68
|
auth_pass: string;
|
|
69
|
+
/** Maximum delay in milliseconds between reconnection attempts */
|
|
60
70
|
retry_max_delay: number;
|
|
71
|
+
/** Maximum number of reconnection attempts */
|
|
61
72
|
retry_max_count: number;
|
|
73
|
+
/** Redis database index to use */
|
|
62
74
|
db: number;
|
|
75
|
+
/** IP stack to use (4 for IPv4, 6 for IPv6) */
|
|
63
76
|
family: number;
|
|
64
77
|
/** As soon as the tls property is defined, redis will try to connect via tls (currently only for redis) */
|
|
65
78
|
tls?: {
|
|
@@ -73,14 +86,19 @@ export interface DatabaseOptions {
|
|
|
73
86
|
cert?: string;
|
|
74
87
|
};
|
|
75
88
|
};
|
|
89
|
+
/** Backup configuration for the database */
|
|
76
90
|
backup: DatabaseBackupOptions;
|
|
91
|
+
/** Options specific to the JSONL database backend */
|
|
77
92
|
jsonlOptions: JsonlOptions;
|
|
78
93
|
}
|
|
79
94
|
|
|
95
|
+
/** Configuration of the objects database connection */
|
|
80
96
|
export interface ObjectsDatabaseOptions extends DatabaseOptions {
|
|
97
|
+
/** Disable the in-memory file cache for objects */
|
|
81
98
|
noFileCache: boolean;
|
|
82
99
|
}
|
|
83
100
|
|
|
101
|
+
/** Configuration of the states database connection */
|
|
84
102
|
export interface StatesDatabaseOptions extends DatabaseOptions {
|
|
85
103
|
/** Limit maximum number of log entries in the list (only read by adapter.ts from the config file) */
|
|
86
104
|
maxQueue: number;
|
|
@@ -90,6 +108,7 @@ export interface StatesDatabaseOptions extends DatabaseOptions {
|
|
|
90
108
|
* The ioBroker global config
|
|
91
109
|
*/
|
|
92
110
|
export interface IoBJson {
|
|
111
|
+
/** System-wide controller settings */
|
|
93
112
|
system: {
|
|
94
113
|
/** Do not use more than memory limit mb by ioB process (0 to deactivate) */
|
|
95
114
|
memoryLimitMB: number;
|
|
@@ -116,14 +135,18 @@ export interface IoBJson {
|
|
|
116
135
|
memLimitError: number;
|
|
117
136
|
'// memLimitError': string;
|
|
118
137
|
};
|
|
138
|
+
/** Configuration of the multihost service used to connect several ioBroker hosts */
|
|
119
139
|
multihostService: {
|
|
120
140
|
enabled: boolean;
|
|
121
141
|
secure: boolean;
|
|
122
142
|
password: string;
|
|
123
143
|
persist: boolean;
|
|
124
144
|
};
|
|
145
|
+
/** Configuration of the objects database */
|
|
125
146
|
objects: ObjectsDatabaseOptions;
|
|
147
|
+
/** Configuration of the states database */
|
|
126
148
|
states: StatesDatabaseOptions;
|
|
149
|
+
/** Logging configuration */
|
|
127
150
|
log: {
|
|
128
151
|
level: ioBroker.LogLevel;
|
|
129
152
|
maxDays: number;
|
|
@@ -132,13 +155,16 @@ export interface IoBJson {
|
|
|
132
155
|
};
|
|
133
156
|
/** Always relative to iobroker.js-controller/ */
|
|
134
157
|
dataDir: string;
|
|
158
|
+
/** Comment/hint shown next to the dataDir setting in the JSON config */
|
|
135
159
|
'// dataDir': string;
|
|
160
|
+
/** Controller plugins configuration keyed by plugin name */
|
|
136
161
|
plugins: {
|
|
137
162
|
[pluginName: string]: {
|
|
138
163
|
enabled: boolean;
|
|
139
164
|
[other: string]: unknown;
|
|
140
165
|
};
|
|
141
166
|
};
|
|
167
|
+
/** Comment/hint shown next to the dnsResolution setting in the JSON config */
|
|
142
168
|
'// dnsResolution': string;
|
|
143
169
|
/** Use 'verbatim' for ipv6 first, else use 'ipv4first' */
|
|
144
170
|
dnsResolution: 'verbatim' | 'ipv4first';
|
package/build/objects.d.ts
CHANGED
|
@@ -735,7 +735,7 @@ declare global {
|
|
|
735
735
|
/** Whether the admin tab is written in a materialized style. Required for Admin 3+ */
|
|
736
736
|
materializeTab?: boolean;
|
|
737
737
|
/** Whether the admin configuration dialog is written in a materialized style. Required for Admin 3+ */
|
|
738
|
-
/** @
|
|
738
|
+
/** @deprecated Use adminUI with config = "materialize". But better use jsonConfig.json */
|
|
739
739
|
materialize: boolean;
|
|
740
740
|
/** @deprecated Use @see supportedMessages up from controller v5 */
|
|
741
741
|
messagebox?: true;
|