@iobroker/types 7.0.8-alpha.8-20251127-036be0224 → 7.1.0
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 +4 -4
- package/build/objects.d.ts +39 -10
- package/package.json +3 -3
package/build/config.d.ts
CHANGED
|
@@ -49,12 +49,12 @@ interface JsonlOptions {
|
|
|
49
49
|
export interface DatabaseOptions {
|
|
50
50
|
/** Possible values: 'file' - [port 9001], 'jsonl' - [port 9001], 'redis' - [port 6379 or 26379 for sentinel]. */
|
|
51
51
|
type: 'jsonl' | 'file' | 'redis';
|
|
52
|
-
|
|
53
|
-
host: string;
|
|
54
|
-
port: number;
|
|
52
|
+
sentinelName?: string;
|
|
53
|
+
host: string | string[];
|
|
54
|
+
port: number | number[];
|
|
55
55
|
connectTimeout: number;
|
|
56
56
|
writeFileInterval: number;
|
|
57
|
-
dataDir
|
|
57
|
+
dataDir?: string;
|
|
58
58
|
options: {
|
|
59
59
|
auth_pass: string;
|
|
60
60
|
retry_max_delay: number;
|
package/build/objects.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ declare global {
|
|
|
89
89
|
type Host = `system.host.${string}`;
|
|
90
90
|
// Guaranteed repository object
|
|
91
91
|
type Repository = 'system.repositories';
|
|
92
|
+
// Guaranteed repository object
|
|
93
|
+
type DockerConfigs = 'system.dockers';
|
|
92
94
|
// Guaranteed config objects
|
|
93
95
|
type Config = 'system.certificates';
|
|
94
96
|
// Guaranteed system config objects
|
|
@@ -147,13 +149,15 @@ declare global {
|
|
|
147
149
|
? RepositoryObject
|
|
148
150
|
: T extends ObjectIDs.SystemConfig
|
|
149
151
|
? SystemConfigObject
|
|
150
|
-
: T extends ObjectIDs.
|
|
151
|
-
?
|
|
152
|
-
: T extends ObjectIDs.
|
|
153
|
-
?
|
|
154
|
-
:
|
|
155
|
-
?
|
|
156
|
-
:
|
|
152
|
+
: T extends ObjectIDs.DockerConfigs
|
|
153
|
+
? DockerApiObject
|
|
154
|
+
: T extends ObjectIDs.Config
|
|
155
|
+
? OtherObject & { type: 'config' }
|
|
156
|
+
: T extends ObjectIDs.AdapterScoped
|
|
157
|
+
? AdapterScopedObject
|
|
158
|
+
: Read extends 'read'
|
|
159
|
+
? ioBroker.Object
|
|
160
|
+
: AnyObject;
|
|
157
161
|
|
|
158
162
|
type Languages = 'en' | 'de' | 'ru' | 'pt' | 'nl' | 'fr' | 'it' | 'es' | 'pl' | 'uk' | 'zh-cn';
|
|
159
163
|
type Translated = { en: string } & { [lang in Languages]?: string };
|
|
@@ -427,7 +431,7 @@ declare global {
|
|
|
427
431
|
tmpdir: ReturnType<(typeof os)['tmpdir']>;
|
|
428
432
|
};
|
|
429
433
|
hardware: {
|
|
430
|
-
/** Return value of os.cpu but property `times` could be removed from every entry */
|
|
434
|
+
/** Return value of `os.cpu` but property `times` could be removed from every entry */
|
|
431
435
|
cpus: (Omit<ReturnType<(typeof os)['cpus']>[number], 'times'> &
|
|
432
436
|
Partial<Pick<ReturnType<(typeof os)['cpus']>[number], 'times'>>)[];
|
|
433
437
|
totalmem: ReturnType<(typeof os)['totalmem']>;
|
|
@@ -1052,7 +1056,7 @@ declare global {
|
|
|
1052
1056
|
version: string;
|
|
1053
1057
|
/** Array of blocked versions, each entry represents a semver range */
|
|
1054
1058
|
blockedVersions: string[];
|
|
1055
|
-
/** If true the unsafe perm flag is needed on install */
|
|
1059
|
+
/** If true, the unsafe perm flag is needed on install */
|
|
1056
1060
|
unsafePerm?: boolean;
|
|
1057
1061
|
/** If given, the packet name differs from the adapter name, e.g. because it is a scoped package */
|
|
1058
1062
|
packetName?: string;
|
|
@@ -1068,7 +1072,7 @@ declare global {
|
|
|
1068
1072
|
name: Required<ioBroker.Translated>;
|
|
1069
1073
|
/** Time of repository update */
|
|
1070
1074
|
repoTime: string;
|
|
1071
|
-
/** Time when repository was last read/fetched */
|
|
1075
|
+
/** Time when the repository was last read/fetched */
|
|
1072
1076
|
repoReadTime?: string;
|
|
1073
1077
|
}
|
|
1074
1078
|
|
|
@@ -1104,6 +1108,31 @@ declare global {
|
|
|
1104
1108
|
common: RepositoryCommon;
|
|
1105
1109
|
}
|
|
1106
1110
|
|
|
1111
|
+
interface DockerApiConfig {
|
|
1112
|
+
socketPath?: string;
|
|
1113
|
+
host?: string;
|
|
1114
|
+
port?: number | string;
|
|
1115
|
+
username?: string;
|
|
1116
|
+
/** Filename, name in ioBroker certificate or base64 certificate */
|
|
1117
|
+
ca?: string;
|
|
1118
|
+
cert?: string;
|
|
1119
|
+
key?: string;
|
|
1120
|
+
protocol?: 'https' | 'http';
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/** Docker API configuration */
|
|
1124
|
+
interface DockerApiObject extends BaseObject {
|
|
1125
|
+
_id: ObjectIDs.DockerConfigs;
|
|
1126
|
+
type: 'config';
|
|
1127
|
+
native: {
|
|
1128
|
+
dockerApis: {
|
|
1129
|
+
[configName: string]: DockerApiConfig;
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
// Make it possible to narrow the object type using the custom property
|
|
1133
|
+
common: ObjectCommon & { custom?: undefined };
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1107
1136
|
interface InstanceObject extends Omit<AdapterObject, 'type'>, BaseObject {
|
|
1108
1137
|
_id: ObjectIDs.Instance;
|
|
1109
1138
|
type: 'instance';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/types",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/ioBroker/ioBroker.js-controller
|
|
16
|
+
"url": "https://github.com/ioBroker/ioBroker.js-controller"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "ts-node build.ts",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "2af345f043ec5a1b8c1623ce14e6dc091274352c"
|
|
45
45
|
}
|