homebridge-config-ui-x 5.6.1-beta.8 → 5.6.1

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 (183) hide show
  1. package/CHANGELOG.md +6 -11
  2. package/dist/core/auth/auth.controller.d.ts +0 -5
  3. package/dist/core/auth/auth.controller.js +0 -13
  4. package/dist/core/auth/auth.controller.js.map +1 -1
  5. package/dist/core/auth/auth.service.d.ts +0 -1
  6. package/dist/core/auth/auth.service.js +0 -24
  7. package/dist/core/auth/auth.service.js.map +1 -1
  8. package/dist/core/config/config.service.d.ts +74 -8
  9. package/dist/core/config/config.service.js +0 -6
  10. package/dist/core/config/config.service.js.map +1 -1
  11. package/dist/core/config/config.startup.d.ts +12 -2
  12. package/dist/core/config/config.startup.js +0 -12
  13. package/dist/core/config/config.startup.js.map +1 -1
  14. package/dist/core/spa/spa.filter.d.ts +0 -3
  15. package/dist/core/spa/spa.filter.js +2 -22
  16. package/dist/core/spa/spa.filter.js.map +1 -1
  17. package/dist/globalDefaults.js +0 -3
  18. package/dist/globalDefaults.js.map +1 -1
  19. package/dist/main.js +3 -67
  20. package/dist/main.js.map +1 -1
  21. package/dist/modules/backup/backup.service.js +1 -4
  22. package/dist/modules/backup/backup.service.js.map +1 -1
  23. package/dist/modules/config-editor/config-editor.controller.d.ts +3 -3
  24. package/dist/modules/config-editor/config-editor.service.d.ts +2 -3
  25. package/dist/modules/config-editor/config-editor.service.js +13 -36
  26. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  27. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
  28. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -2
  29. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  30. package/dist/modules/log/log.gateway.d.ts +1 -1
  31. package/dist/modules/log/log.service.d.ts +4 -1
  32. package/dist/modules/log/log.service.js.map +1 -1
  33. package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +1 -1
  34. package/dist/modules/platform-tools/terminal/terminal.service.d.ts +8 -1
  35. package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
  36. package/dist/modules/plugins/plugins.controller.d.ts +5 -5
  37. package/dist/modules/plugins/plugins.service.d.ts +1 -1
  38. package/dist/modules/plugins/plugins.service.js +12 -16
  39. package/dist/modules/plugins/plugins.service.js.map +1 -1
  40. package/dist/modules/server/server.controller.d.ts +0 -3
  41. package/dist/modules/server/server.controller.js +0 -13
  42. package/dist/modules/server/server.controller.js.map +1 -1
  43. package/dist/modules/server/server.service.js +3 -5
  44. package/dist/modules/server/server.service.js.map +1 -1
  45. package/dist/modules/status/status.controller.d.ts +2 -2
  46. package/dist/modules/status/status.gateway.d.ts +5 -5
  47. package/dist/modules/status/status.service.d.ts +29 -2
  48. package/dist/modules/status/status.service.js +9 -4
  49. package/dist/modules/status/status.service.js.map +1 -1
  50. package/package.json +6 -7
  51. package/public/3rdpartylicenses.txt +13 -13
  52. package/public/chunk-23H472HH.js +1 -0
  53. package/public/chunk-2IG2NOH4.js +49 -0
  54. package/public/{chunk-5N45B6R7.js → chunk-2SMLTKN6.js} +1 -1
  55. package/public/{chunk-DHBOA4LC.js → chunk-4A7PQXPM.js} +1 -1
  56. package/public/chunk-4DQEF3SY.js +1 -0
  57. package/public/chunk-52FJYRHM.js +1 -0
  58. package/public/chunk-52ZZ4IF4.js +1 -0
  59. package/public/chunk-5MWJFCCW.js +1 -0
  60. package/public/chunk-6KGJCE3V.js +1 -0
  61. package/public/chunk-7AQJWYJX.js +1 -0
  62. package/public/{chunk-N6ZHR345.js → chunk-7HHGB4JN.js} +1 -1
  63. package/public/chunk-7N7XQXQX.js +1 -0
  64. package/public/chunk-A5X6BX5R.js +1 -0
  65. package/public/{chunk-PFIRHRM5.js → chunk-AD7SNE53.js} +1 -1
  66. package/public/{chunk-GN5FMREA.js → chunk-ALBW3CN3.js} +4 -4
  67. package/public/chunk-B3AJBIHT.js +1 -0
  68. package/public/chunk-BBLNIMTZ.js +1 -0
  69. package/public/chunk-BR6USPEJ.js +1 -0
  70. package/public/{chunk-IQZSTP24.js → chunk-BWUD4MPH.js} +1 -1
  71. package/public/chunk-BZQMBZCK.js +40 -0
  72. package/public/chunk-CSU4CRXM.js +1 -0
  73. package/public/chunk-CZE6VJCO.js +1 -0
  74. package/public/{chunk-5TSHBP5C.js → chunk-D5RIMAWO.js} +1 -1
  75. package/public/{chunk-AI5A63LU.js → chunk-DSHT67FQ.js} +1 -1
  76. package/public/chunk-EFH72TOO.js +1 -0
  77. package/public/chunk-GBGOQFTO.js +1 -0
  78. package/public/{chunk-D2RHA7X2.js → chunk-GGZZFW2G.js} +1 -1
  79. package/public/chunk-HRXJGOOF.js +1 -0
  80. package/public/chunk-HVB6HFMT.js +1 -0
  81. package/public/{chunk-E2M35VWY.js → chunk-IDW2S7VV.js} +1 -1
  82. package/public/chunk-IRK2N2M7.js +1 -0
  83. package/public/{chunk-CGPMZGNR.js → chunk-J6L2XE5U.js} +1 -1
  84. package/public/chunk-JHUR7SXC.js +1 -0
  85. package/public/chunk-JVZO7GIO.js +1 -0
  86. package/public/chunk-JXPV6V53.js +2 -0
  87. package/public/chunk-L6NRYVMD.js +1 -0
  88. package/public/chunk-LGDYVAWH.js +1 -0
  89. package/public/{chunk-U4P7WR2C.js → chunk-LSU6AEJS.js} +1 -1
  90. package/public/{chunk-CIAPBFKZ.js → chunk-LY3D63PH.js} +1 -1
  91. package/public/chunk-M3NG5DHK.js +19 -0
  92. package/public/chunk-MJZG627D.js +1 -0
  93. package/public/{chunk-LHQCUFCP.js → chunk-MSSNDMBK.js} +1 -1
  94. package/public/{chunk-YRDGMK4T.js → chunk-MXQEKDB7.js} +1 -1
  95. package/public/chunk-NC3YB7JQ.js +1 -0
  96. package/public/chunk-NJ7NTAUG.js +1 -0
  97. package/public/chunk-OBYXJY4V.js +1 -0
  98. package/public/{chunk-NTKEANN7.js → chunk-ODN4SLC6.js} +1 -1
  99. package/public/chunk-OMPHX32Y.js +2 -0
  100. package/public/{chunk-QHDPBN4J.js → chunk-Q5UJ7RBG.js} +1 -1
  101. package/public/{chunk-V4K2YYFC.js → chunk-Q6UH4DEV.js} +1 -1
  102. package/public/{chunk-RIS2FZSQ.js → chunk-QJRU2AHW.js} +1 -1
  103. package/public/{chunk-MD7IQ7EC.js → chunk-QVKCJ4SR.js} +1 -1
  104. package/public/{chunk-KHDK27FO.js → chunk-R5CEAGDB.js} +1 -1
  105. package/public/chunk-RULAYELM.js +1 -0
  106. package/public/chunk-RW3TZQNH.js +1 -0
  107. package/public/{chunk-NFU4DBAC.js → chunk-SXPAZSXC.js} +1 -1
  108. package/public/{chunk-7XOTQTHO.js → chunk-SZUTWP25.js} +1 -1
  109. package/public/{chunk-IHGRCBAQ.js → chunk-TLGNUWU6.js} +1 -1
  110. package/public/chunk-U4JDF4NW.js +1 -0
  111. package/public/chunk-URAOB565.js +1 -0
  112. package/public/chunk-USJUSGFU.js +1 -0
  113. package/public/{chunk-UERLDONE.js → chunk-UUXVPC6B.js} +1 -1
  114. package/public/chunk-V2MV6MJL.js +4 -0
  115. package/public/chunk-VBTRILWF.js +1 -0
  116. package/public/chunk-WC6VTXQW.js +1 -0
  117. package/public/{chunk-OQM4FTFW.js → chunk-WIJDDKLW.js} +1 -1
  118. package/public/{chunk-FMBVMMBJ.js → chunk-YAMQWXR3.js} +1 -1
  119. package/public/chunk-YBBBKFU2.js +1 -0
  120. package/public/chunk-ZCWNIAD2.js +1 -0
  121. package/public/index.html +2 -2
  122. package/public/main-U2ERWF3M.js +1 -0
  123. package/public/{styles-IKV7T7ID.css → styles-KAER7B5R.css} +1 -1
  124. package/dist/core/config/config.interfaces.d.ts +0 -120
  125. package/dist/core/config/config.interfaces.js +0 -3
  126. package/dist/core/config/config.interfaces.js.map +0 -1
  127. package/dist/core/spa/spa-html.service.d.ts +0 -5
  128. package/dist/core/spa/spa-html.service.js +0 -38
  129. package/dist/core/spa/spa-html.service.js.map +0 -1
  130. package/dist/modules/log/log.interfaces.d.ts +0 -4
  131. package/dist/modules/log/log.interfaces.js +0 -3
  132. package/dist/modules/log/log.interfaces.js.map +0 -1
  133. package/dist/modules/platform-tools/terminal/terminal.interfaces.d.ts +0 -8
  134. package/dist/modules/platform-tools/terminal/terminal.interfaces.js +0 -3
  135. package/dist/modules/platform-tools/terminal/terminal.interfaces.js.map +0 -1
  136. package/dist/modules/plugins/plugins.interfaces.d.ts +0 -211
  137. package/dist/modules/plugins/plugins.interfaces.js +0 -3
  138. package/dist/modules/plugins/plugins.interfaces.js.map +0 -1
  139. package/dist/modules/status/status.interfaces.d.ts +0 -27
  140. package/dist/modules/status/status.interfaces.js +0 -10
  141. package/dist/modules/status/status.interfaces.js.map +0 -1
  142. package/public/chunk-4FO5UJ73.js +0 -40
  143. package/public/chunk-5JJXJMTI.js +0 -1
  144. package/public/chunk-5OZIUVYJ.js +0 -1
  145. package/public/chunk-6EBZNWJK.js +0 -1
  146. package/public/chunk-6ILG4RQW.js +0 -1
  147. package/public/chunk-6P4WGTHP.js +0 -1
  148. package/public/chunk-7LGP2LGU.js +0 -1
  149. package/public/chunk-AYPB5SEI.js +0 -1
  150. package/public/chunk-BELBXWW4.js +0 -49
  151. package/public/chunk-EI35ZB6P.js +0 -1
  152. package/public/chunk-FS4HPCDY.js +0 -1
  153. package/public/chunk-HRMJRQS2.js +0 -2
  154. package/public/chunk-IZEJRRLC.js +0 -1
  155. package/public/chunk-KDCSPDC5.js +0 -1
  156. package/public/chunk-LSAEGUZ7.js +0 -1
  157. package/public/chunk-LV5TYHZ7.js +0 -1
  158. package/public/chunk-MFUIR6OX.js +0 -1
  159. package/public/chunk-NGC4RLUS.js +0 -1
  160. package/public/chunk-NQ2VO3ZP.js +0 -1
  161. package/public/chunk-NWTBS5A2.js +0 -1
  162. package/public/chunk-OXQBRM2Z.js +0 -1
  163. package/public/chunk-Q5DFPWME.js +0 -1
  164. package/public/chunk-QC6ZIIMD.js +0 -1
  165. package/public/chunk-QR53DQ65.js +0 -19
  166. package/public/chunk-QYDPIFC2.js +0 -1
  167. package/public/chunk-RBMXXX3I.js +0 -1
  168. package/public/chunk-SGSWJ4KD.js +0 -1
  169. package/public/chunk-TUN7H57E.js +0 -1
  170. package/public/chunk-U3PYLXC2.js +0 -1
  171. package/public/chunk-V6XV6GKR.js +0 -1
  172. package/public/chunk-VG2UUEEG.js +0 -1
  173. package/public/chunk-WORY3KDA.js +0 -1
  174. package/public/chunk-XOK4DSBD.js +0 -1
  175. package/public/chunk-Y7LR6M7Q.js +0 -1
  176. package/public/chunk-YEO2VV34.js +0 -1
  177. package/public/chunk-YH3Q3KIB.js +0 -1
  178. package/public/chunk-YWKROYG6.js +0 -1
  179. package/public/chunk-YXJXJFXG.js +0 -1
  180. package/public/chunk-Z2EH7EW7.js +0 -1
  181. package/public/chunk-Z5FSXC5Z.js +0 -1
  182. package/public/chunk-ZHRPBG7M.js +0 -5
  183. package/public/main-I74CIGKM.js +0 -1
@@ -1,120 +0,0 @@
1
- import type { Buffer } from 'node:buffer';
2
- export interface StartupConfig {
3
- host?: '::' | '0.0.0.0' | string;
4
- httpsOptions?: {
5
- key?: Buffer;
6
- cert?: Buffer;
7
- pfx?: Buffer;
8
- passphrase?: string;
9
- };
10
- cspWsOverride?: string;
11
- debug?: boolean;
12
- webroot?: string;
13
- }
14
- interface PluginChildBridge {
15
- username: string;
16
- port?: number;
17
- pin?: string;
18
- name?: string;
19
- manufacturer?: string;
20
- model?: string;
21
- firmwareRevision?: string;
22
- env?: {
23
- DEBUG?: string;
24
- NODE_OPTIONS?: string;
25
- };
26
- }
27
- export interface PlatformConfig {
28
- platform: string;
29
- name?: string;
30
- _bridge?: PluginChildBridge;
31
- [key: string]: any;
32
- }
33
- export interface AccessoryConfig {
34
- accessory: string;
35
- name: string;
36
- _bridge?: PluginChildBridge;
37
- [key: string]: any;
38
- }
39
- export interface HomebridgeConfig {
40
- bridge: {
41
- username: string;
42
- pin: string;
43
- name: string;
44
- port: number;
45
- advertiser?: 'avahi' | 'resolved' | 'ciao' | 'bonjour-hap';
46
- bind?: string | string[];
47
- manufacturer?: string;
48
- model?: string;
49
- firmwareRevision?: string;
50
- };
51
- mdns?: {
52
- interface?: string | string[];
53
- legacyAdvertiser?: boolean;
54
- };
55
- ports?: {
56
- start?: number;
57
- end?: number;
58
- };
59
- platforms?: PlatformConfig[];
60
- accessories?: AccessoryConfig[];
61
- plugins?: string[];
62
- disabledPlugins?: string[];
63
- }
64
- export interface HomebridgeUiConfig {
65
- name: string;
66
- port: number;
67
- host?: '::' | '0.0.0.0' | string;
68
- webroot?: string;
69
- proxyHost?: string;
70
- auth: 'form' | 'none';
71
- theme: string;
72
- lightingMode: 'auto' | 'light' | 'dark';
73
- menuMode?: 'default' | 'freeze';
74
- sudo?: boolean;
75
- restart?: string;
76
- lang?: string;
77
- log?: {
78
- method?: 'file' | 'custom' | 'systemd' | 'native';
79
- command?: string;
80
- path?: string;
81
- service?: string;
82
- maxSize?: number;
83
- truncateSize?: number;
84
- };
85
- ssl?: {
86
- key?: string;
87
- cert?: string;
88
- pfx?: string;
89
- passphrase?: string;
90
- };
91
- accessoryControl?: {
92
- debug?: boolean;
93
- instanceBlacklist?: string[];
94
- };
95
- plugins?: {
96
- hideUpdatesFor?: string[];
97
- alwaysShowBetas?: boolean;
98
- };
99
- temp?: string;
100
- tempUnits?: string;
101
- wallpaper?: string;
102
- linux?: {
103
- shutdown?: string;
104
- restart?: string;
105
- };
106
- debug?: boolean;
107
- sessionTimeout?: number;
108
- sessionTimeoutInactivityBased?: boolean;
109
- homebridgePackagePath?: string;
110
- scheduledBackupPath?: string;
111
- scheduledBackupDisable?: boolean;
112
- disableServerMetricsMonitoring?: boolean;
113
- enableMdnsAdvertise?: boolean;
114
- terminal?: {
115
- persistence?: boolean;
116
- hideWarning?: boolean;
117
- bufferSize?: number;
118
- };
119
- }
120
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=config.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.interfaces.js","sourceRoot":"","sources":["../../../src/core/config/config.interfaces.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export declare class SpaHtmlService {
2
- static updateIndexHtml(webroot: string): Promise<void>;
3
- private static normalizeWebroot;
4
- private static transformHtmlForWebroot;
5
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SpaHtmlService = void 0;
7
- const node_path_1 = require("node:path");
8
- const node_process_1 = __importDefault(require("node:process"));
9
- const fs_extra_1 = require("fs-extra");
10
- class SpaHtmlService {
11
- static async updateIndexHtml(webroot) {
12
- const indexPath = (0, node_path_1.resolve)(node_process_1.default.env.UIX_BASE_PATH, 'public/index.html');
13
- if (!(await (0, fs_extra_1.exists)(indexPath))) {
14
- return;
15
- }
16
- const originalHtml = await (0, fs_extra_1.readFile)(indexPath, 'utf-8');
17
- const normalizedWebroot = this.normalizeWebroot(webroot);
18
- const modifiedHtml = this.transformHtmlForWebroot(originalHtml, normalizedWebroot);
19
- await (0, fs_extra_1.writeFile)(indexPath, modifiedHtml);
20
- }
21
- static normalizeWebroot(webroot) {
22
- if (!webroot || webroot === '/') {
23
- return '';
24
- }
25
- return webroot.replace(/\/+/g, '/').replace(/^\/+|\/+$/g, '');
26
- }
27
- static transformHtmlForWebroot(html, webroot) {
28
- const baseHref = webroot ? `/${webroot}/` : '/';
29
- return html
30
- .replace(/<base href="[^"]*"(\s*)\/?>/g, `<base href="${baseHref}"$1/>`)
31
- .replace(/href="\/(?:.*?\/)?assets\//g, 'href="assets/')
32
- .replace(/href="\/(?:.*?\/)?favicon\.ico"/g, 'href="favicon.ico"')
33
- .replace(/href="\/(?:.*?\/)?([^"/]+\.(png|svg|webmanifest))"/g, 'href="$1"')
34
- .replace(/src="\/(?:.*?\/)?assets\//g, 'src="assets/');
35
- }
36
- }
37
- exports.SpaHtmlService = SpaHtmlService;
38
- //# sourceMappingURL=spa-html.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spa-html.service.js","sourceRoot":"","sources":["../../../src/core/spa/spa-html.service.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAmC;AACnC,gEAAkC;AAElC,uCAAsD;AAEtD,MAAa,cAAc;IAKzB,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,OAAe;QAC1C,MAAM,SAAS,GAAG,IAAA,mBAAO,EAAC,sBAAO,CAAC,GAAG,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,MAAM,IAAA,iBAAM,EAAC,SAAS,CAAC,CAAC,EAAE,CAAC;YAC/B,OAAM;QACR,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAA,mBAAQ,EAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QACvD,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;QACxD,MAAM,YAAY,GAAG,IAAI,CAAC,uBAAuB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAA;QAClF,MAAM,IAAA,oBAAS,EAAC,SAAS,EAAE,YAAY,CAAC,CAAA;IAC1C,CAAC;IAOO,MAAM,CAAC,gBAAgB,CAAC,OAAe;QAC7C,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YAChC,OAAO,EAAE,CAAA;QACX,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAA;IAC/D,CAAC;IAQO,MAAM,CAAC,uBAAuB,CAAC,IAAY,EAAE,OAAe;QAClE,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;QAE/C,OAAO,IAAI;aACR,OAAO,CAAC,8BAA8B,EAAE,eAAe,QAAQ,OAAO,CAAC;aACvE,OAAO,CAAC,6BAA6B,EAAE,eAAe,CAAC;aACvD,OAAO,CAAC,kCAAkC,EAAE,oBAAoB,CAAC;aACjE,OAAO,CAAC,qDAAqD,EAAE,WAAW,CAAC;aAC3E,OAAO,CAAC,4BAA4B,EAAE,cAAc,CAAC,CAAA;IAC1D,CAAC;CACF;AA7CD,wCA6CC"}
@@ -1,4 +0,0 @@
1
- export interface LogTermSize {
2
- cols: number;
3
- rows: number;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=log.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.interfaces.js","sourceRoot":"","sources":["../../../src/modules/log/log.interfaces.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import type { EventEmitter } from 'node:events';
2
- export interface TermSize {
3
- cols: number;
4
- rows: number;
5
- }
6
- export interface WsEventEmitter extends EventEmitter {
7
- disconnect: () => void;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=terminal.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terminal.interfaces.js","sourceRoot":"","sources":["../../../../src/modules/platform-tools/terminal/terminal.interfaces.ts"],"names":[],"mappings":""}
@@ -1,211 +0,0 @@
1
- export interface HomebridgePlugin {
2
- name: string;
3
- private: boolean;
4
- displayName?: string;
5
- description?: string;
6
- keywords?: string[];
7
- verifiedPlugin?: boolean;
8
- verifiedPlusPlugin?: boolean;
9
- icon?: string;
10
- publicPackage?: boolean;
11
- installedVersion?: string;
12
- latestVersion?: string;
13
- lastUpdated?: string;
14
- updateAvailable?: boolean;
15
- updateEngines?: {
16
- homebridge?: string;
17
- node?: string;
18
- };
19
- updateTag?: string;
20
- installPath?: string;
21
- globalInstall?: boolean;
22
- settingsSchema?: boolean;
23
- disabled?: boolean;
24
- links?: {
25
- npm?: string;
26
- homepage?: string;
27
- bugs?: string;
28
- };
29
- author?: string;
30
- engines?: {
31
- homebridge?: string;
32
- node?: string;
33
- };
34
- funding?: NpmFunding;
35
- isHbScoped?: boolean;
36
- isHbMaintained?: boolean;
37
- newHbScope?: {
38
- from: string;
39
- to: string;
40
- switch: string;
41
- };
42
- }
43
- export interface HomebridgePluginUiMetadata {
44
- devServer: null | string;
45
- publicPath: string;
46
- serverPath: string;
47
- plugin: HomebridgePlugin;
48
- }
49
- export interface HomebridgePluginVersions {
50
- tags: Record<string, string>;
51
- versions: {
52
- [key: string]: IPackageJson;
53
- };
54
- }
55
- export interface INpmPerson {
56
- name?: string;
57
- email?: string;
58
- homepage?: string;
59
- username?: string;
60
- url?: string;
61
- }
62
- export interface INpmRegistryModule {
63
- '_id': string;
64
- '_rev': string;
65
- 'name': string;
66
- 'dist-tags': {
67
- latest: string;
68
- [key: string]: string;
69
- };
70
- 'versions': {
71
- [key: string]: IPackageJson;
72
- };
73
- 'time': {
74
- created: string;
75
- modified: string;
76
- [key: string]: string;
77
- };
78
- 'maintainers': INpmPerson[];
79
- 'description': string;
80
- 'homepage': string;
81
- 'keywords': string[];
82
- 'repository': {
83
- type: string;
84
- url: string;
85
- };
86
- 'author': INpmPerson;
87
- 'bugs': {
88
- email?: string;
89
- url?: string;
90
- };
91
- 'license': string;
92
- 'readme': string;
93
- 'readmeFilename': string;
94
- }
95
- export interface INpmSearchResultItem {
96
- package: {
97
- name: string;
98
- scope: string;
99
- version: string;
100
- description: string;
101
- keywords: string[];
102
- date: string;
103
- links: {
104
- npm: string;
105
- homebridge?: string;
106
- repository?: string;
107
- bugs?: string;
108
- };
109
- author: INpmPerson;
110
- publisher: INpmPerson;
111
- maintainers: INpmPerson[];
112
- };
113
- flags: {
114
- unstable: boolean;
115
- };
116
- score: {
117
- final: number;
118
- detail: {
119
- quality: number;
120
- popularity: number;
121
- maintenance: number;
122
- };
123
- };
124
- searchScore: number;
125
- }
126
- export interface INpmSearchResults {
127
- objects: INpmSearchResultItem[];
128
- }
129
- export interface IPackageJson {
130
- name: string;
131
- displayName?: string;
132
- version?: string;
133
- description?: string;
134
- keywords?: string[];
135
- homepage?: string;
136
- bugs?: string | {
137
- email?: string;
138
- url?: string;
139
- };
140
- license?: string;
141
- author?: string | INpmPerson;
142
- maintainers?: INpmPerson[];
143
- contributors?: string[] | INpmPerson[];
144
- funding?: NpmFunding;
145
- files?: string[];
146
- main?: string;
147
- bin?: string | {
148
- [key: string]: string;
149
- };
150
- repository?: string | {
151
- type: string;
152
- url: string;
153
- };
154
- scripts?: {
155
- [key: string]: string;
156
- };
157
- dependencies?: {
158
- [key: string]: string;
159
- };
160
- devDependencies?: {
161
- [key: string]: string;
162
- };
163
- peerDependencies?: {
164
- [key: string]: string;
165
- };
166
- optionalDependencies?: {
167
- [key: string]: string;
168
- };
169
- bundledDependencies?: string[];
170
- engines?: {
171
- [key: string]: string;
172
- };
173
- os?: string[];
174
- cpu?: string[];
175
- preferGlobal?: boolean;
176
- private?: boolean;
177
- publishConfig?: {
178
- registry?: string;
179
- };
180
- deprecated?: string;
181
- }
182
- export type NpmFunding = {
183
- type: string;
184
- url: string;
185
- } | string | Array<{
186
- type: string;
187
- url: string;
188
- } | string>;
189
- export interface PluginAlias {
190
- pluginAlias: null | string;
191
- pluginType: null | 'platform' | 'accessory';
192
- }
193
- export interface PluginListNewScopeItem {
194
- from: string;
195
- to: string;
196
- switch: string;
197
- }
198
- export interface PluginListItem {
199
- c?: string;
200
- h?: 1;
201
- i?: string;
202
- m?: 1;
203
- a?: string;
204
- n?: string;
205
- s?: PluginListNewScopeItem;
206
- v?: 1;
207
- p?: 1;
208
- }
209
- export interface PluginListData {
210
- data: Record<string, PluginListItem>;
211
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=plugins.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.interfaces.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.interfaces.ts"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
1
- export declare enum HomebridgeStatus {
2
- OK = "ok",
3
- UP = "up",
4
- DOWN = "down"
5
- }
6
- export interface HomebridgeStatusUpdate {
7
- status: HomebridgeStatus;
8
- paired?: null | boolean;
9
- setupUri?: null | string;
10
- name?: string;
11
- username?: string;
12
- pin?: string;
13
- }
14
- export interface DockerRelease {
15
- tag_name: string;
16
- published_at: string;
17
- prerelease: boolean;
18
- body: string;
19
- }
20
- export interface DockerReleaseInfo {
21
- version: string;
22
- publishedAt: string;
23
- isPrerelease: boolean;
24
- isTest: boolean;
25
- testTag: 'beta' | 'test' | null;
26
- isLatestStable: boolean;
27
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HomebridgeStatus = void 0;
4
- var HomebridgeStatus;
5
- (function (HomebridgeStatus) {
6
- HomebridgeStatus["OK"] = "ok";
7
- HomebridgeStatus["UP"] = "up";
8
- HomebridgeStatus["DOWN"] = "down";
9
- })(HomebridgeStatus || (exports.HomebridgeStatus = HomebridgeStatus = {}));
10
- //# sourceMappingURL=status.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.interfaces.js","sourceRoot":"","sources":["../../../src/modules/status/status.interfaces.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,6BAAS,CAAA;IACT,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}