@iobroker/js-controller-common-db 7.2.3 → 8.0.0-alpha.1-20260921-e5941ca8a

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.
Files changed (38) hide show
  1. package/build/cjs/index.js +3 -3
  2. package/build/cjs/lib/common/aliasProcessing.js +6 -0
  3. package/build/cjs/lib/common/aliasProcessing.js.map +2 -2
  4. package/build/cjs/lib/common/interview.js +2 -0
  5. package/build/cjs/lib/common/interview.js.map +1 -1
  6. package/build/cjs/lib/common/logger.d.ts +34 -1
  7. package/build/cjs/lib/common/logger.js +37 -37
  8. package/build/cjs/lib/common/logger.js.map +2 -2
  9. package/build/cjs/lib/common/maybeCallback.js +4 -0
  10. package/build/cjs/lib/common/maybeCallback.js.map +1 -1
  11. package/build/cjs/lib/common/password.d.ts +9 -0
  12. package/build/cjs/lib/common/password.js +8 -6
  13. package/build/cjs/lib/common/password.js.map +2 -2
  14. package/build/cjs/lib/common/session.js +10 -5
  15. package/build/cjs/lib/common/session.js.map +2 -2
  16. package/build/cjs/lib/common/tools.d.ts +164 -59
  17. package/build/cjs/lib/common/tools.js +497 -476
  18. package/build/cjs/lib/common/tools.js.map +3 -3
  19. package/build/esm/lib/common/aliasProcessing.d.ts.map +1 -1
  20. package/build/esm/lib/common/aliasProcessing.js +5 -0
  21. package/build/esm/lib/common/aliasProcessing.js.map +1 -1
  22. package/build/esm/lib/common/logger.d.ts +34 -1
  23. package/build/esm/lib/common/logger.d.ts.map +1 -1
  24. package/build/esm/lib/common/logger.js +45 -49
  25. package/build/esm/lib/common/logger.js.map +1 -1
  26. package/build/esm/lib/common/password.d.ts +9 -0
  27. package/build/esm/lib/common/password.d.ts.map +1 -1
  28. package/build/esm/lib/common/password.js +5 -0
  29. package/build/esm/lib/common/password.js.map +1 -1
  30. package/build/esm/lib/common/session.d.ts.map +1 -1
  31. package/build/esm/lib/common/session.js +6 -6
  32. package/build/esm/lib/common/session.js.map +1 -1
  33. package/build/esm/lib/common/tools.d.ts +164 -59
  34. package/build/esm/lib/common/tools.d.ts.map +1 -1
  35. package/build/esm/lib/common/tools.js +535 -586
  36. package/build/esm/lib/common/tools.js.map +1 -1
  37. package/build/tsconfig.build.tsbuildinfo +1 -1
  38. package/package.json +18 -18
@@ -1,6 +1,7 @@
1
- import { type ChildProcessPromise } from 'promisify-child-process';
2
- import type { CommandResult, PackageManager } from '@alcalzone/pak';
3
- import type { ExecOptions } from 'node:child_process';
1
+ import { type ExecOptions } from 'node:child_process';
2
+ import { type CommandResult, type PackageManager } from '@alcalzone/pak';
3
+ type ObjectsRedisClient = any;
4
+ type StatesRedisClient = any;
4
5
  type DockerInformation = {
5
6
  /** If it is a Docker installation */
6
7
  isDocker: boolean;
@@ -14,6 +15,7 @@ type DockerInformation = {
14
15
  /** If it is the official Docker image */
15
16
  isOfficial: false;
16
17
  };
18
+ /** Detailed information about the host system ioBroker runs on */
17
19
  export interface HostInfo {
18
20
  /** Converted OS for human readability */
19
21
  Platform: NodeJS.Platform | 'docker' | 'Windows' | 'OSX';
@@ -52,14 +54,15 @@ interface FormatAliasValueOptions {
52
54
  /** State to format */
53
55
  state: ioBroker.State | null | undefined;
54
56
  /** Logger used for logging */
55
- logger: any;
57
+ logger: InternalLogger;
56
58
  /** Prefix for log messages */
57
59
  logNamespace: string;
58
- /** Id of the source object, used for logging */
60
+ /** ID of the source object, used for logging */
59
61
  sourceId?: string;
60
- /** Id of the target object, used for logging */
62
+ /** ID of the target object, used for logging */
61
63
  targetId?: string;
62
64
  }
65
+ /** Information about the available ioBroker Docker image */
63
66
  export interface DockerImageInformation {
64
67
  /** The official version like v10.0.0 */
65
68
  version: string;
@@ -93,20 +96,26 @@ export declare function copyAttributes(oldObj: Record<string, any>, newObj: Reco
93
96
  */
94
97
  export declare function checkNonEditable(oldObject: ioBroker.SettableObject | null, newObject: ioBroker.SettableObject): boolean;
95
98
  /**
96
- * Checks if a version is up-to-date, throws error on invalid version strings
99
+ * Checks if a version is up to date, throws error on invalid version strings
97
100
  *
98
101
  * @param repoVersion version in repository
99
102
  * @param installedVersion the current installed version
100
103
  */
101
104
  export declare function upToDate(repoVersion: string, installedVersion: string): boolean;
102
- export declare function decryptPhrase(password: string, data: any, callback: (decrypted?: null | string) => void): void;
105
+ /**
106
+ * Decrypt a phrase that was encrypted with the legacy aes192 algorithm
107
+ *
108
+ * @param password The password used to derive the decryption key
109
+ * @param data The encrypted data to decrypt
110
+ */
111
+ export declare function decryptPhrase(password: string, data: string | Buffer): Promise<null | string>;
103
112
  /**
104
113
  * Checks if multiple host objects exists, without using object views
105
114
  *
106
115
  * @param objects the objects db
107
116
  * @returns true if only one host object exists
108
117
  */
109
- export declare function isSingleHost(objects: any): Promise<boolean>;
118
+ export declare function isSingleHost(objects: ObjectsRedisClient): Promise<boolean>;
110
119
  /**
111
120
  * Checks if at least one host is running in a Multihost environment
112
121
  *
@@ -114,7 +123,7 @@ export declare function isSingleHost(objects: any): Promise<boolean>;
114
123
  * @param states the states db
115
124
  * @returns true if one or more hosts running else false
116
125
  */
117
- export declare function isHostRunning(objects: any, states: any): Promise<boolean>;
126
+ export declare function isHostRunning(objects: ObjectsRedisClient, states: StatesRedisClient): Promise<boolean>;
118
127
  /**
119
128
  * Checks if ioBroker is installed in a dev environment
120
129
  */
@@ -151,18 +160,24 @@ export declare function isDocker(): boolean;
151
160
  * @param objects - objects DB
152
161
  * @returns uuid if successfully created/updated
153
162
  */
154
- export declare function createUuid(objects: any): Promise<void | string>;
163
+ export declare function createUuid(objects: ObjectsRedisClient): Promise<void | string>;
155
164
  /**
156
- * Download file to tmp or return file name directly
165
+ * Download the file to tmp or return the file name directly
157
166
  *
158
- * @param urlOrPath
159
- * @param fileName
160
- * @param callback
167
+ * @param urlOrPath URL to download from, or a local file path
168
+ * @param fileName Target file name used when the source is downloaded to the tmp directory
169
+ * @returns The path to the local file
161
170
  */
162
- export declare function getFile(urlOrPath: string, fileName: string, callback: (file?: string) => void): Promise<void>;
163
- export declare function getJson(urlOrPath: string, agent: string, callback: (sources?: Record<string, any> | null, urlOrPath?: string | null) => void): Promise<void>;
171
+ export declare function getFile(urlOrPath: string, fileName: string): Promise<string>;
164
172
  /**
165
- * Return content of the json file. Download it or read directly
173
+ * Return the content of a JSON file, downloading it from a URL or reading it directly from disk
174
+ *
175
+ * @param urlOrPath URL to download the JSON from, or a local file path
176
+ * @param agent User agent string used for the download request
177
+ */
178
+ export declare function getJson<T>(urlOrPath: string, agent?: string): Promise<T | null>;
179
+ /**
180
+ * Return the content of the json file. Download it or read directly
166
181
  *
167
182
  * @param urlOrPath URL where the json file could be found
168
183
  * @param agent optional agent identifier like "Windows Chrome 12.56"
@@ -182,6 +197,7 @@ interface Multilingual {
182
197
  uk?: string;
183
198
  'zh-cn'?: string;
184
199
  }
200
+ /** Information about an installed adapter */
185
201
  export interface AdapterInformation {
186
202
  /** this flag is only true for the js-controller */
187
203
  controller: boolean;
@@ -189,7 +205,7 @@ export interface AdapterInformation {
189
205
  version: string;
190
206
  /** path to icon of the adapter */
191
207
  icon: string;
192
- /** path to local icon of the adater */
208
+ /** path to the local icon of the adapter */
193
209
  localIcon?: string;
194
210
  /** title of the adapter */
195
211
  title: string;
@@ -221,16 +237,12 @@ export interface AdapterInformation {
221
237
  export declare function getInstalledInfo(hostRunningVersion?: string): Record<string, AdapterInformation>;
222
238
  /**
223
239
  * Get a list of all adapters and controller in some repository file or in /conf/source-dist.json
224
- *
225
- * @param urlOrPath URL starting with http:// or https:// or local file link
226
- * @param additionalInfo destination object
227
- * @param callback function (err, sources, actualHash) { }
228
240
  */
229
- export declare function getRepositoryFile(urlOrPath: string, additionalInfo: Record<string, any>, callback: (err?: Error | null, sources?: Record<string, any>, actualHash?: string | number) => void): void;
241
+ export declare function getRepositoryFile(): Promise<ioBroker.RepositoryJson>;
230
242
  /** Result of getRepositoryFileAsync */
231
243
  export interface RepositoryFile {
232
244
  /** The repository JSON content */
233
- json: ioBroker.RepositoryJson;
245
+ json: ioBroker.RepositoryJson | null;
234
246
  /** Whether the repository has changed compared to the provided hash */
235
247
  changed: boolean;
236
248
  /** The actual hash of the repository */
@@ -262,9 +274,13 @@ export declare function getAdapterDir(adapter: string): string | null;
262
274
  * Returns the hostname of this host
263
275
  */
264
276
  export declare function getHostName(): string;
277
+ /** Options for installing a node module */
265
278
  export interface InstallNodeModuleOptions {
279
+ /** Whether the `--unsafe-perm` flag should be used */
266
280
  unsafePerm?: boolean;
281
+ /** Whether to include `stderr` in the output and increase the loglevel to include more than errors */
267
282
  debug?: boolean;
283
+ /** Which directory to work in. If none is given, this defaults to ioBroker's root directory. */
268
284
  cwd?: string;
269
285
  }
270
286
  /**
@@ -281,8 +297,11 @@ export declare function detectPackageManagerWithFallback(cwd?: string): Promise<
281
297
  * @param options Options for the installation
282
298
  */
283
299
  export declare function installNodeModule(npmUrl: string, options?: InstallNodeModuleOptions): Promise<CommandResult>;
300
+ /** Options for uninstalling a node module */
284
301
  export interface UninstallNodeModuleOptions {
302
+ /** Whether to include `stderr` in the output and increase the loglevel to include more than errors */
285
303
  debug?: boolean;
304
+ /** Which directory to work in. If none is given, this defaults to ioBroker's root directory. */
286
305
  cwd?: string;
287
306
  }
288
307
  /**
@@ -292,9 +311,13 @@ export interface UninstallNodeModuleOptions {
292
311
  * @param options Options for the installation
293
312
  */
294
313
  export declare function uninstallNodeModule(packageName: string, options?: UninstallNodeModuleOptions): Promise<CommandResult>;
314
+ /** Options for rebuilding native node modules */
295
315
  export interface RebuildNodeModulesOptions {
316
+ /** Whether to include `stderr` in the output and increase the loglevel to include more than errors */
296
317
  debug?: boolean;
318
+ /** Which directory to work in. If none is given, this defaults to ioBroker's root directory. */
297
319
  cwd?: string;
320
+ /** module that should be rebuilt */
298
321
  module?: string;
299
322
  }
300
323
  /**
@@ -304,15 +327,20 @@ export interface RebuildNodeModulesOptions {
304
327
  * @param options Options for the rebuild
305
328
  */
306
329
  export declare function rebuildNodeModules(options?: RebuildNodeModulesOptions): Promise<CommandResult>;
330
+ /** Information about the disk on which ioBroker is installed */
307
331
  export interface GetDiskInfoResponse {
332
+ /** Total size of the disk in bytes */
308
333
  'Disk size': number;
334
+ /** Free space on the disk in bytes */
309
335
  'Disk free': number;
310
336
  }
311
337
  /**
312
- * Read disk free space
338
+ * Read the disk-free space
313
339
  */
314
340
  export declare function getDiskInfo(): Promise<GetDiskInfoResponse | null>;
341
+ /** Parsed information about an SSL/TLS certificate */
315
342
  export interface CertificateInfo {
343
+ /** path to the certificate file, or null if the certificate was passed directly */
316
344
  certificateFilename: string | null;
317
345
  /** the certificate itself */
318
346
  certificate: string;
@@ -320,15 +348,17 @@ export interface CertificateInfo {
320
348
  serialNumber: string;
321
349
  /** type of signature as text like "RSA" */
322
350
  signature: string;
323
- /** bits used for encryption key like 2048 */
351
+ /** bits used for an encryption key like 2048 */
324
352
  keyLength: number;
325
353
  /** issuer of the certificate */
326
354
  issuer: Record<string, any>;
327
355
  /** subject that is signed */
328
356
  subject: Record<string, any>;
329
- /** server name this certificate belong to */
357
+ /** server name this certificate belongs to */
330
358
  dnsNames: {
359
+ /** Type of the subject alternative name entry */
331
360
  type: number;
361
+ /** Value of the subject alternative name entry */
332
362
  value: string;
333
363
  }[];
334
364
  /** this certificate can be used for the following purposes */
@@ -343,12 +373,15 @@ export interface CertificateInfo {
343
373
  /**
344
374
  * Returns information about a certificate
345
375
  *
346
- * @param cert
376
+ * @param cert The certificate as a PEM string, or a path to the certificate file
347
377
  * @returns certificate information object
348
378
  */
349
379
  export declare function getCertificateInfo(cert: string): null | CertificateInfo;
380
+ /** Default self-signed certificates shipped with the controller */
350
381
  export interface DefaultCertificates {
382
+ /** PEM encoded a default private key */
351
383
  defaultPrivate: string;
384
+ /** PEM encoded default public certificate */
352
385
  defaultPublic: string;
353
386
  }
354
387
  /** Maximum time after which cert has to expire - 365 days in ms */
@@ -369,14 +402,14 @@ export declare function generateDefaultCertificates(): DefaultCertificates;
369
402
  /**
370
403
  * Collects information about host and available adapters
371
404
  *
372
- * Following info will be collected:
405
+ * The following info will be collected:
373
406
  * - available adapters
374
407
  * - node.js --version
375
408
  * - npm --version
376
409
  *
377
410
  * @param objects db
378
411
  */
379
- export declare function getHostInfo(objects: any): Promise<HostInfo>;
412
+ export declare function getHostInfo(objects: ObjectsRedisClient): Promise<HostInfo>;
380
413
  /**
381
414
  * Finds the controller root directory
382
415
  *
@@ -391,7 +424,7 @@ export declare function getRootDir(): string;
391
424
  export declare function isDevServerInstallation(): boolean;
392
425
  /**
393
426
  * All paths are returned always relative to /node_modules/' + appName + '.js-controller
394
- * the result has always "/" as last symbol
427
+ * the result has always "/" as the last symbol
395
428
  */
396
429
  export declare function getDefaultDataDir(): string;
397
430
  /**
@@ -418,7 +451,15 @@ export declare function promisify(fn: (...args: any[]) => void, context?: any, r
418
451
  * Otherwise, the Promise will resolve with an array
419
452
  */
420
453
  export declare function promisifyNoError(fn: (...args: any[]) => void, context?: any, returnArgNames?: string[]): (...args: any[]) => Promise<any>;
421
- export declare function setQualityForInstance(objects: any, states: any, namespace: string, q: number): Promise<void>;
454
+ /**
455
+ * Set the given quality code on all states belonging to an instance
456
+ *
457
+ * @param objects The objects database client
458
+ * @param states The states database client
459
+ * @param namespace The instance namespace whose states should be updated (e.g. "admin.0")
460
+ * @param q The quality code to assign to each state
461
+ */
462
+ export declare function setQualityForInstance(objects: ObjectsRedisClient, states: StatesRedisClient, namespace: string, q: number): Promise<void>;
422
463
  /**
423
464
  * Converts ioB pattern into regex.
424
465
  *
@@ -428,8 +469,7 @@ export declare function pattern2RegEx(pattern: string): string;
428
469
  /**
429
470
  * Checks if a pattern is valid
430
471
  *
431
- * @param pattern
432
- * @pattern pattern to check for validity
472
+ * @param pattern The pattern to check for validity
433
473
  */
434
474
  export declare function isValidPattern(pattern: string): boolean;
435
475
  /**
@@ -473,10 +513,10 @@ export declare function isArray(it: unknown): it is any[];
473
513
  */
474
514
  export declare function measureEventLoopLag(ms: number, cb: (eventLoopLag?: number) => void): void;
475
515
  /**
476
- * This function convert state values by read and write of aliases. Function is synchronous.
516
+ * This function converts state values by read and write of aliases. Function is synchronous.
477
517
  * On errors, null is returned instead
478
518
  *
479
- * @param options
519
+ * @param options Source and target common/id definitions, the state to convert and a logger
480
520
  */
481
521
  export declare function formatAliasValue(options: FormatAliasValueOptions): ioBroker.State | null;
482
522
  /**
@@ -487,9 +527,9 @@ export declare function formatAliasValue(options: FormatAliasValueOptions): ioBr
487
527
  * @param allEnums objects with all enums to use - if not provided all enums will be queried
488
528
  * @returns Promise All objects are tried to be updated - reject will happen as soon as one fails with the error of the first fail
489
529
  */
490
- export declare function removeIdFromAllEnums(objects: any, id: string, allEnums?: Record<string, any>): Promise<void>;
530
+ export declare function removeIdFromAllEnums(objects: ObjectsRedisClient, id: string, allEnums?: Record<string, ioBroker.EnumObject>): Promise<void>;
491
531
  /**
492
- * Parses dependencies to standardized object of form
532
+ * Parses dependencies to a standardized object of form
493
533
  *
494
534
  * @param dependencies dependencies array or single dependency
495
535
  * @returns parsedDeps parsed dependencies
@@ -501,9 +541,9 @@ export declare function parseDependencies(dependencies: string[] | Record<string
501
541
  *
502
542
  * @param obj an object which will be validated
503
543
  * @param extend (optional) if true checks allow more optional cases for extendObject calls
504
- * @throws Error if a property has the wrong type or `obj.type` is non-existing
544
+ * @throws {Error} if a property has the wrong type or `obj.type` is non-existing
505
545
  */
506
- export declare function validateGeneralObjectProperties(obj: any, extend?: boolean): void;
546
+ export declare function validateGeneralObjectProperties(obj: ioBroker.SettableObject | null | undefined, extend?: boolean): void;
507
547
  /**
508
548
  * get all instances of all adapters in the list
509
549
  *
@@ -511,14 +551,14 @@ export declare function validateGeneralObjectProperties(obj: any, extend?: boole
511
551
  * @param objects class redis objects
512
552
  * @returns array of IDs
513
553
  */
514
- export declare function getAllInstances(adapters: string[], objects: any): Promise<string[]>;
554
+ export declare function getAllInstances(adapters: string[], objects: ObjectsRedisClient): Promise<string[]>;
515
555
  /**
516
556
  * Get all existing enums
517
557
  *
518
558
  * @param objects - objects db
519
559
  * @returns Promise
520
560
  */
521
- export declare function getAllEnums(objects: any): Promise<Record<string, ioBroker.EnumObject>>;
561
+ export declare function getAllEnums(objects: ObjectsRedisClient): Promise<Record<string, ioBroker.EnumObject>>;
522
562
  /**
523
563
  * get async all instances of one adapter
524
564
  *
@@ -526,16 +566,36 @@ export declare function getAllEnums(objects: any): Promise<Record<string, ioBrok
526
566
  * @param objects objects DB
527
567
  * @param withObjects return objects instead of only ids
528
568
  */
529
- export declare function getInstances<TWithObjects extends boolean>(adapter: string, objects: any, withObjects: TWithObjects): Promise<TWithObjects extends true ? ioBroker.InstanceObject[] : ioBroker.ObjectIDs.Instance[]>;
569
+ export declare function getInstances<TWithObjects extends boolean>(adapter: string, objects: ObjectsRedisClient, withObjects: TWithObjects): Promise<TWithObjects extends true ? ioBroker.InstanceObject[] : ioBroker.ObjectIDs.Instance[]>;
530
570
  /**
531
571
  * Executes a command asynchronously. On success, the promise resolves with stdout and stderr.
532
- * On error, the promise rejects with the exit code or signal, as well as stdout and stderr.
572
+ * In error, the promise rejects with the exit code or signal, as well as stdout and stderr.
533
573
  *
534
574
  * @param command The command to execute
535
575
  * @param execOptions The options for child_process.exec
536
576
  * @returns child process promise
537
577
  */
538
- export declare function execAsync(command: string, execOptions?: ExecOptions): ChildProcessPromise;
578
+ export declare function execAsync(command: string, execOptions?: ExecOptions): Promise<{
579
+ stdout?: string;
580
+ stderr?: string;
581
+ }>;
582
+ /**
583
+ * Executes a command asynchronously. On success, the promise resolves with stdout and stderr.
584
+ *
585
+ * On error it rejects with the error of `child_process.execFile`, whose `code` (the exit code, or `ENOENT` when
586
+ * the command does not exist), `killed` and `signal` say what happened - a command killed by the `timeout`
587
+ * option has to stay distinguishable from one that exited non-zero. Only the message is replaced by the output
588
+ * on stderr when there is any, because that usually says more than "Command failed".
589
+ *
590
+ * @param file The command to execute
591
+ * @param args The arguments to pass to the command
592
+ * @param execOptions The options for child_process.execFile
593
+ * @returns child process promise
594
+ */
595
+ export declare function execFileAsync(file: string, args: readonly string[], execOptions?: ExecOptions): Promise<{
596
+ stdout?: string;
597
+ stderr?: string;
598
+ }>;
539
599
  /**
540
600
  * Takes input from one stream and writes it to another as soon as a complete line was read.
541
601
  *
@@ -559,7 +619,7 @@ export declare function resolveAdapterMainFile(adapter: string): Promise<string>
559
619
  /**
560
620
  * Returns the default nodeArgs required to execute the main file, e.g., transpile hooks for TypeScript
561
621
  *
562
- * @param mainFile
622
+ * @param mainFile Path to the adapter main file that will be executed
563
623
  * @returns default node args for cli
564
624
  */
565
625
  export declare function getDefaultNodeArgs(mainFile: string): string[];
@@ -575,9 +635,13 @@ export declare function getDefaultRequireResolvePaths(callerModule: NodeModule):
575
635
  * @param url The URL to parse
576
636
  */
577
637
  export declare function isShortGithubUrl(url: string): boolean;
638
+ /** A short GitHub URL parsed into its separate parts */
578
639
  export interface ParsedGithubUrl {
640
+ /** GitHub user or organization name */
579
641
  user: string;
642
+ /** Repository name */
580
643
  repo: string;
644
+ /** Optional commit-ish (branch, tag or commit hash) */
581
645
  commit?: string;
582
646
  }
583
647
  /**
@@ -614,7 +678,12 @@ export declare function removePreservedProperties(preserve: Record<string, any>,
614
678
  */
615
679
  export declare function getInstanceIndicatorObjects(namespace: string, adapterCommon: ioBroker.AdapterCommon): ioBroker.StateObject[];
616
680
  export type InternalLogger = Omit<ioBroker.Logger, 'level'>;
617
- export declare function getLogger(log: any): InternalLogger;
681
+ /**
682
+ * Normalize a logger-like object into a complete logger, filling missing log level methods with no-ops
683
+ *
684
+ * @param log A logger or partial logger object; if falsy, a no-op logger is created
685
+ */
686
+ export declare function getLogger(log?: InternalLogger): InternalLogger;
618
687
  /**
619
688
  * Set capabilities of the given executable on Linux systems
620
689
  *
@@ -634,8 +703,21 @@ export declare function setExecutableCapabilities(execPath: string, capabilities
634
703
  * @param password Decoded password for ioBroker.net
635
704
  * @returns array of all licenses stored on iobroker.net
636
705
  */
637
- export declare function updateLicenses(objects: any, login: string, password: string): Promise<any[]>;
706
+ export declare function updateLicenses(objects: ObjectsRedisClient, login: string, password: string): Promise<{
707
+ json: string;
708
+ id: string;
709
+ email: string;
710
+ product: string;
711
+ version: string;
712
+ invoice: string;
713
+ uuid: string;
714
+ time: string;
715
+ validTill: string;
716
+ usedBy?: string;
717
+ }[]>;
718
+ /** Options for compressing a file with GZip */
638
719
  export interface GZipFileOptions {
720
+ /** Delete the input file after compression. Default: false. */
639
721
  deleteInput?: boolean;
640
722
  }
641
723
  /**
@@ -646,8 +728,9 @@ export interface GZipFileOptions {
646
728
  * @param options Options for the compression
647
729
  */
648
730
  export declare function compressFileGZip(inputFilename: string, outputFilename: string, options?: GZipFileOptions): Promise<void>;
731
+ /** Result of validating a configured data directory */
649
732
  export interface DataDirValidation {
650
- /** if data directory is valid */
733
+ /** if the data directory is valid */
651
734
  valid: boolean;
652
735
  /** absolute path it resolves too */
653
736
  path: string;
@@ -655,26 +738,26 @@ export interface DataDirValidation {
655
738
  reason: string;
656
739
  }
657
740
  /**
658
- * Validate if the dir, is a valid dataDir
741
+ * Validate if the dir is a valid dataDir
659
742
  * Data dirs in node_modules are not allowed, note that dataDirs are relative to js-controller dir or absolute
660
743
  *
661
744
  * @param dataDir dataDir to check
662
745
  */
663
746
  export declare function validateDataDir(dataDir: string): DataDirValidation;
664
747
  /**
665
- * If an array is passed it will be stringified, else the parameter is returned
748
+ * If an array is passed, it will be stringified, else the parameter is returned
666
749
  *
667
750
  * @param maybeArr parameter which will be stringified if it is an array
668
751
  */
669
752
  export declare function maybeArrayToString<T>(maybeArr: T): T extends any[] ? string : T;
670
753
  /**
671
- * Checks if given ip address is matching ipv4 or ipv6 localhost
754
+ * Checks if the given ip address is matching ipv4 or ipv6 localhost
672
755
  *
673
756
  * @param ip ipv4 or ipv6 address
674
757
  */
675
758
  export declare function isLocalAddress(ip: string): boolean;
676
759
  /**
677
- * Checks if given ip address is matching ipv4 or ipv6 "listen all" address
760
+ * Checks if the given ip address is matching ipv4 or ipv6 "listen all" address
678
761
  *
679
762
  * @param ip ipv4 or ipv6 address
680
763
  */
@@ -684,7 +767,7 @@ export declare function isListenAllAddress(ip: string): boolean;
684
767
  */
685
768
  export declare function getLocalAddress(): '127.0.0.1' | '::1';
686
769
  /**
687
- * Get the ip to listen to all addresses according to configured DNS resolution strategy
770
+ * Get the ip to listen to all addresses according to a configured DNS resolution strategy
688
771
  */
689
772
  export declare function getListenAllAddress(): '0.0.0.0' | '::';
690
773
  /**
@@ -692,7 +775,7 @@ export declare function getListenAllAddress(): '0.0.0.0' | '::';
692
775
  */
693
776
  export declare function ensureDNSOrder(): void;
694
777
  /**
695
- * Determine if ioBroker is installed as systemd service
778
+ * Determine if ioBroker is installed as a systemd service
696
779
  */
697
780
  export declare function isIoBrokerInstalledAsSystemd(): Promise<boolean>;
698
781
  /**
@@ -708,13 +791,13 @@ export declare function getHostObject(oldObj?: ioBroker.HostObject | null): ioBr
708
791
  */
709
792
  export declare function getPidsFileName(): string;
710
793
  /**
711
- * Get all ioBroker process ids
794
+ * Get all ioBroker process IDs
712
795
  *
713
- * @returns process ids or empty array if no process running
796
+ * @returns process IDs or empty array if no process running
714
797
  */
715
798
  export declare function getPids(): Promise<number[]>;
716
799
  /**
717
- * Check if given string is a valid loglevel
800
+ * Check if a given string is a valid loglevel
718
801
  *
719
802
  * @param level level to validate
720
803
  */
@@ -725,5 +808,27 @@ export declare function isLogLevel(level: string): level is ioBroker.LogLevel;
725
808
  * @returns pid if running else undefined
726
809
  */
727
810
  export declare function getControllerPid(): Promise<number | undefined>;
811
+ /**
812
+ * Check if a process with the given id currently exists
813
+ *
814
+ * @param pid process id to check
815
+ * @returns true if a process with this id is running
816
+ */
817
+ export declare function isProcessRunning(pid: number): boolean;
818
+ /**
819
+ * Check if a pid is proven to belong to a program which is not the controller
820
+ *
821
+ * After a reboot the operating system may hand a recorded pid to an unrelated program, which
822
+ * Windows in particular does readily, so a live pid alone does not prove the controller is
823
+ * running. Being a Node.js process proves nothing either - Node-RED, zigbee2mqtt or this very CLI
824
+ * are Node.js processes too - so the command line has to identify the controller. This only
825
+ * reports a foreign program when it could actually be identified as one: whenever the process
826
+ * cannot be inspected, the answer is "no", because acting on a wrong guess would start a second
827
+ * controller and both would then fail with EADDRINUSE.
828
+ *
829
+ * @param pid process id to inspect
830
+ * @returns true only if the process was identified as a different program
831
+ */
832
+ export declare function isForeignProcess(pid: number): Promise<boolean>;
728
833
  export * from '../../lib/common/maybeCallback.js';
729
834
  //# sourceMappingURL=tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/tools.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,yBAAyB,CAAC;AAGxF,OAAO,KAAK,EAAE,aAAa,EAAkB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAwBtD,KAAK,iBAAiB,GAChB;IACI,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,UAAU,EAAE,IAAI,CAAC;IACjB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC;CAC3B,GACD;IACI,qCAAqC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,UAAU,EAAE,KAAK,CAAC;CACrB,CAAC;AAER,MAAM,WAAW,QAAQ;IACrB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACzD,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC;IACpB,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,gBAAgB;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,C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