ntfy-reverse-proxy 2.0.4 → 2.1.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 (193) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +10 -0
  3. package/build/src/cli/commands/config-io.d.ts +3 -3
  4. package/build/src/cli/commands/config-io.d.ts.map +1 -1
  5. package/build/src/cli/commands/config-io.js +1 -1
  6. package/build/src/cli/commands/config-io.js.map +1 -1
  7. package/build/src/cli/commands/context.d.ts +7 -7
  8. package/build/src/cli/commands/context.d.ts.map +1 -1
  9. package/build/src/cli/commands/context.js +1 -1
  10. package/build/src/cli/commands/context.js.map +1 -1
  11. package/build/src/cli/commands/deploy.d.ts +2 -2
  12. package/build/src/cli/commands/deploy.d.ts.map +1 -1
  13. package/build/src/cli/commands/deploy.js +72 -30
  14. package/build/src/cli/commands/deploy.js.map +1 -1
  15. package/build/src/cli/commands/generate.d.ts +2 -2
  16. package/build/src/cli/commands/generate.d.ts.map +1 -1
  17. package/build/src/cli/commands/generate.js +3 -3
  18. package/build/src/cli/commands/generate.js.map +1 -1
  19. package/build/src/cli/commands/server.d.ts +5 -5
  20. package/build/src/cli/commands/server.d.ts.map +1 -1
  21. package/build/src/cli/commands/server.js.map +1 -1
  22. package/build/src/cli/commands/settings.d.ts +3 -3
  23. package/build/src/cli/commands/settings.d.ts.map +1 -1
  24. package/build/src/cli/commands/settings.js.map +1 -1
  25. package/build/src/cli/commands/validate.d.ts +2 -2
  26. package/build/src/cli/commands/validate.d.ts.map +1 -1
  27. package/build/src/cli/commands/validate.js +3 -0
  28. package/build/src/cli/commands/validate.js.map +1 -1
  29. package/build/src/cli/index.d.ts +2 -2
  30. package/build/src/cli/index.d.ts.map +1 -1
  31. package/build/src/cli/index.js +4 -4
  32. package/build/src/cli/index.js.map +1 -1
  33. package/build/src/cli/menu/interactive.d.ts +2 -2
  34. package/build/src/cli/menu/interactive.d.ts.map +1 -1
  35. package/build/src/cli/menu/interactive.js +260 -94
  36. package/build/src/cli/menu/interactive.js.map +1 -1
  37. package/build/src/lib/regex.d.ts +4 -1
  38. package/build/src/lib/regex.d.ts.map +1 -1
  39. package/build/src/lib/regex.js +4 -1
  40. package/build/src/lib/regex.js.map +1 -1
  41. package/build/src/lib/schema.d.ts +24 -0
  42. package/build/src/lib/schema.d.ts.map +1 -1
  43. package/build/src/lib/schema.js +11 -2
  44. package/build/src/lib/schema.js.map +1 -1
  45. package/build/src/lib/utility.d.ts +2 -2
  46. package/build/src/lib/utility.d.ts.map +1 -1
  47. package/build/src/lib/utility.js +1 -1
  48. package/build/src/lib/utility.js.map +1 -1
  49. package/build/src/types/cli/commands/config-io.d.ts +12 -12
  50. package/build/src/types/cli/commands/context.d.ts +96 -58
  51. package/build/src/types/cli/commands/deploy.d.ts +342 -298
  52. package/build/src/types/cli/commands/generate.d.ts +40 -24
  53. package/build/src/types/cli/commands/server.d.ts +23 -23
  54. package/build/src/types/cli/commands/settings.d.ts +8 -8
  55. package/build/src/types/cli/commands/validate.d.ts +16 -16
  56. package/build/src/types/cli/index.d.ts +16 -20
  57. package/build/src/types/cli/menu/interactive.d.ts +233 -178
  58. package/build/src/types/lib/schema.d.ts +89 -81
  59. package/build/src/types/lib/utility.d.ts +4 -2
  60. package/build/src/types/shared.d.ts +85 -0
  61. package/build/src/types/tests/cli/commands/context.test.d.ts +102 -31
  62. package/build/src/types/tests/cli/commands/generate.test.d.ts +50 -4
  63. package/build/src/types/tests/cli/commands/server.test.d.ts +88 -23
  64. package/build/src/types/tests/cli/commands/settings.test.d.ts +65 -21
  65. package/build/src/types/tests/cli/commands/validate.test.d.ts +69 -8
  66. package/build/src/types/tests/cli/menu/interactive-integration.test.d.ts +99 -0
  67. package/build/src/types/tests/cli/menu/interactive.test.d.ts +275 -2
  68. package/build/src/types/tests/lib/schema.test.d.ts +258 -3
  69. package/build/src/types/tests/worker/index.test.d.ts +166 -8
  70. package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +94 -10
  71. package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +163 -4
  72. package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +67 -4
  73. package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +138 -3
  74. package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +235 -30
  75. package/build/src/types/tests/worker/interpreters/synology.test.d.ts +61 -3
  76. package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +93 -3
  77. package/build/src/types/tests/worker/landing/page.test.d.ts +73 -50
  78. package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +226 -15
  79. package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +148 -4
  80. package/build/src/types/tests/worker/pipeline/email.test.d.ts +82 -8
  81. package/build/src/types/tests/worker/pipeline/format.test.d.ts +112 -32
  82. package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +109 -17
  83. package/build/src/types/tests/worker/pipeline/parse.test.d.ts +70 -5
  84. package/build/src/types/tests/worker/pipeline/receive.test.d.ts +156 -15
  85. package/build/src/types/tests/worker/pipeline/respond.test.d.ts +129 -10
  86. package/build/src/types/tests/worker/pipeline/route.test.d.ts +412 -74
  87. package/build/src/types/tests/worker/pipeline/send.test.d.ts +58 -23
  88. package/build/src/types/tests/worker/pipeline/split.test.d.ts +47 -9
  89. package/build/src/types/worker/handlers.d.ts +193 -0
  90. package/build/src/types/worker/index.d.ts +58 -203
  91. package/build/src/types/worker/interpreters/ntfy-json.d.ts +10 -10
  92. package/build/src/types/worker/interpreters/pfsense.d.ts +57 -49
  93. package/build/src/types/worker/interpreters/plain-text.d.ts +7 -7
  94. package/build/src/types/worker/interpreters/seerr.d.ts +63 -61
  95. package/build/src/types/worker/interpreters/statuspage.d.ts +201 -116
  96. package/build/src/types/worker/interpreters/synology.d.ts +48 -46
  97. package/build/src/types/worker/interpreters/unifi.d.ts +79 -54
  98. package/build/src/types/worker/landing/page.d.ts +30 -23
  99. package/build/src/types/worker/pipeline/accumulate.d.ts +46 -32
  100. package/build/src/types/worker/pipeline/authenticate.d.ts +94 -34
  101. package/build/src/types/worker/pipeline/email.d.ts +114 -50
  102. package/build/src/types/worker/pipeline/format.d.ts +31 -23
  103. package/build/src/types/worker/pipeline/interpret.d.ts +34 -34
  104. package/build/src/types/worker/pipeline/parse.d.ts +25 -19
  105. package/build/src/types/worker/pipeline/receive.d.ts +36 -34
  106. package/build/src/types/worker/pipeline/respond.d.ts +119 -63
  107. package/build/src/types/worker/pipeline/route.d.ts +33 -16
  108. package/build/src/types/worker/pipeline/send.d.ts +116 -79
  109. package/build/src/types/worker/pipeline/split.d.ts +21 -16
  110. package/build/src/worker/handlers.d.ts +5 -4
  111. package/build/src/worker/handlers.d.ts.map +1 -1
  112. package/build/src/worker/handlers.js +238 -202
  113. package/build/src/worker/handlers.js.map +1 -1
  114. package/build/src/worker/index.d.ts +2 -2
  115. package/build/src/worker/index.d.ts.map +1 -1
  116. package/build/src/worker/index.js +37 -9
  117. package/build/src/worker/index.js.map +1 -1
  118. package/build/src/worker/interpreters/ntfy-json.d.ts +2 -2
  119. package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
  120. package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
  121. package/build/src/worker/interpreters/pfsense.d.ts +2 -2
  122. package/build/src/worker/interpreters/pfsense.d.ts.map +1 -1
  123. package/build/src/worker/interpreters/pfsense.js +20 -27
  124. package/build/src/worker/interpreters/pfsense.js.map +1 -1
  125. package/build/src/worker/interpreters/plain-text.d.ts +2 -2
  126. package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
  127. package/build/src/worker/interpreters/plain-text.js.map +1 -1
  128. package/build/src/worker/interpreters/seerr.d.ts +2 -2
  129. package/build/src/worker/interpreters/seerr.d.ts.map +1 -1
  130. package/build/src/worker/interpreters/seerr.js +16 -12
  131. package/build/src/worker/interpreters/seerr.js.map +1 -1
  132. package/build/src/worker/interpreters/statuspage.d.ts +2 -2
  133. package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
  134. package/build/src/worker/interpreters/statuspage.js +98 -47
  135. package/build/src/worker/interpreters/statuspage.js.map +1 -1
  136. package/build/src/worker/interpreters/synology.d.ts +2 -2
  137. package/build/src/worker/interpreters/synology.d.ts.map +1 -1
  138. package/build/src/worker/interpreters/synology.js +9 -5
  139. package/build/src/worker/interpreters/synology.js.map +1 -1
  140. package/build/src/worker/interpreters/unifi.d.ts +2 -2
  141. package/build/src/worker/interpreters/unifi.d.ts.map +1 -1
  142. package/build/src/worker/interpreters/unifi.js +34 -20
  143. package/build/src/worker/interpreters/unifi.js.map +1 -1
  144. package/build/src/worker/landing/page.d.ts +2 -2
  145. package/build/src/worker/landing/page.d.ts.map +1 -1
  146. package/build/src/worker/landing/page.js +4 -3
  147. package/build/src/worker/landing/page.js.map +1 -1
  148. package/build/src/worker/pipeline/accumulate.d.ts +5 -6
  149. package/build/src/worker/pipeline/accumulate.d.ts.map +1 -1
  150. package/build/src/worker/pipeline/accumulate.js +4 -11
  151. package/build/src/worker/pipeline/accumulate.js.map +1 -1
  152. package/build/src/worker/pipeline/authenticate.d.ts +2 -2
  153. package/build/src/worker/pipeline/authenticate.d.ts.map +1 -1
  154. package/build/src/worker/pipeline/authenticate.js +25 -7
  155. package/build/src/worker/pipeline/authenticate.js.map +1 -1
  156. package/build/src/worker/pipeline/email.d.ts +2 -2
  157. package/build/src/worker/pipeline/email.d.ts.map +1 -1
  158. package/build/src/worker/pipeline/email.js +34 -11
  159. package/build/src/worker/pipeline/email.js.map +1 -1
  160. package/build/src/worker/pipeline/format.d.ts +2 -3
  161. package/build/src/worker/pipeline/format.d.ts.map +1 -1
  162. package/build/src/worker/pipeline/format.js +2 -1
  163. package/build/src/worker/pipeline/format.js.map +1 -1
  164. package/build/src/worker/pipeline/interpret.d.ts +4 -3
  165. package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
  166. package/build/src/worker/pipeline/interpret.js +7 -7
  167. package/build/src/worker/pipeline/interpret.js.map +1 -1
  168. package/build/src/worker/pipeline/parse.d.ts +2 -2
  169. package/build/src/worker/pipeline/parse.d.ts.map +1 -1
  170. package/build/src/worker/pipeline/parse.js +14 -7
  171. package/build/src/worker/pipeline/parse.js.map +1 -1
  172. package/build/src/worker/pipeline/receive.d.ts +2 -2
  173. package/build/src/worker/pipeline/receive.d.ts.map +1 -1
  174. package/build/src/worker/pipeline/receive.js +6 -6
  175. package/build/src/worker/pipeline/receive.js.map +1 -1
  176. package/build/src/worker/pipeline/respond.d.ts +2 -2
  177. package/build/src/worker/pipeline/respond.d.ts.map +1 -1
  178. package/build/src/worker/pipeline/respond.js +1 -1
  179. package/build/src/worker/pipeline/respond.js.map +1 -1
  180. package/build/src/worker/pipeline/route.d.ts +2 -3
  181. package/build/src/worker/pipeline/route.d.ts.map +1 -1
  182. package/build/src/worker/pipeline/route.js.map +1 -1
  183. package/build/src/worker/pipeline/send.d.ts +2 -2
  184. package/build/src/worker/pipeline/send.d.ts.map +1 -1
  185. package/build/src/worker/pipeline/send.js +80 -41
  186. package/build/src/worker/pipeline/send.js.map +1 -1
  187. package/build/src/worker/pipeline/split.d.ts +2 -2
  188. package/build/src/worker/pipeline/split.d.ts.map +1 -1
  189. package/build/src/worker/pipeline/split.js +4 -2
  190. package/build/src/worker/pipeline/split.js.map +1 -1
  191. package/package.json +11 -9
  192. package/build/src/types/tests/type-declarations.test.d.ts +0 -173
  193. package/build/src/types/worker/pipeline/shared.d.ts +0 -85
@@ -1,51 +1,67 @@
1
1
  import type {
2
- LibSchemaConfigSchema,
3
- LibSchemaContextConfig,
4
- LibSchemaEmailContextConfig,
5
- LibSchemaHttpContextConfig,
2
+ Lib_Schema_ConfigSchemaContexts,
3
+ Lib_Schema_ConfigSchemaServers,
4
+ Lib_Schema_ConfigSchemaSettings,
5
+ Lib_Schema_EmailContextConfig,
6
+ Lib_Schema_HttpContextConfig,
6
7
  } from '../../lib/schema.d.ts';
7
8
 
9
+ /**
10
+ * CLI - Commands - Generate.
11
+ *
12
+ * @since 2.0.0
13
+ */
14
+ export type Cli_Commands_Generate_ProjectRoot = string;
15
+
16
+ export type Cli_Commands_Generate_DefaultWranglerTomlPath = string;
17
+
8
18
  /**
9
19
  * CLI - Commands - Generate - Generate Wrangler Toml.
10
20
  *
11
21
  * @since 2.0.0
12
22
  */
13
- export type CliCommandsGenerateGenerateWranglerTomlProjectRoot = string;
23
+ export type Cli_Commands_Generate_GenerateWranglerToml_ConfigPath = string;
24
+
25
+ export type Cli_Commands_Generate_GenerateWranglerToml_OutputPath = string | undefined;
14
26
 
15
- export type CliCommandsGenerateGenerateWranglerTomlDefaultPath = string;
27
+ export type Cli_Commands_Generate_GenerateWranglerToml_AccountId = string;
16
28
 
17
- export type CliCommandsGenerateGenerateWranglerTomlConfigPath = string;
29
+ export type Cli_Commands_Generate_GenerateWranglerToml_KvNamespaceId = string;
18
30
 
19
- export type CliCommandsGenerateGenerateWranglerTomlOutputPath = string | undefined;
31
+ export type Cli_Commands_Generate_GenerateWranglerToml_Returns = void;
20
32
 
21
- export type CliCommandsGenerateGenerateWranglerTomlAccountId = string;
33
+ export type Cli_Commands_Generate_GenerateWranglerToml_Config_Settings = Lib_Schema_ConfigSchemaSettings;
22
34
 
23
- export type CliCommandsGenerateGenerateWranglerTomlKvNamespaceId = string;
35
+ export type Cli_Commands_Generate_GenerateWranglerToml_Config_Servers = Lib_Schema_ConfigSchemaServers;
24
36
 
25
- export type CliCommandsGenerateGenerateWranglerTomlReturn = void;
37
+ export type Cli_Commands_Generate_GenerateWranglerToml_Config_Contexts = Lib_Schema_ConfigSchemaContexts;
26
38
 
27
- export type CliCommandsGenerateGenerateWranglerTomlConfig = LibSchemaConfigSchema;
39
+ export type Cli_Commands_Generate_GenerateWranglerToml_Config = {
40
+ settings: Cli_Commands_Generate_GenerateWranglerToml_Config_Settings;
41
+ servers: Cli_Commands_Generate_GenerateWranglerToml_Config_Servers;
42
+ contexts: Cli_Commands_Generate_GenerateWranglerToml_Config_Contexts;
43
+ };
28
44
 
29
- export type CliCommandsGenerateGenerateWranglerTomlSettings = LibSchemaConfigSchema['settings'];
45
+ export type Cli_Commands_Generate_GenerateWranglerToml_Settings = Cli_Commands_Generate_GenerateWranglerToml_Config['settings'];
30
46
 
31
- export type CliCommandsGenerateGenerateWranglerTomlServers = LibSchemaConfigSchema['servers'];
47
+ export type Cli_Commands_Generate_GenerateWranglerToml_Servers = Cli_Commands_Generate_GenerateWranglerToml_Config['servers'];
32
48
 
33
- export type CliCommandsGenerateGenerateWranglerTomlContexts = LibSchemaContextConfig[];
49
+ export type Cli_Commands_Generate_GenerateWranglerToml_Contexts = Cli_Commands_Generate_GenerateWranglerToml_Config['contexts'];
34
50
 
35
- export type CliCommandsGenerateGenerateWranglerTomlCompatibilityDate = string;
51
+ export type Cli_Commands_Generate_GenerateWranglerToml_CompatibilityDate = string;
36
52
 
37
- export type CliCommandsGenerateGenerateWranglerTomlHttpContexts = LibSchemaHttpContextConfig[];
53
+ export type Cli_Commands_Generate_GenerateWranglerToml_HttpContexts = Array<Lib_Schema_HttpContextConfig>;
38
54
 
39
- export type CliCommandsGenerateGenerateWranglerTomlEmailContexts = LibSchemaEmailContextConfig[];
55
+ export type Cli_Commands_Generate_GenerateWranglerToml_EmailContexts = Array<Lib_Schema_EmailContextConfig>;
40
56
 
41
- export type CliCommandsGenerateGenerateWranglerTomlRouteLines = string[];
57
+ export type Cli_Commands_Generate_GenerateWranglerToml_RouteLines = string[];
42
58
 
43
- export type CliCommandsGenerateGenerateWranglerTomlLines = string[];
59
+ export type Cli_Commands_Generate_GenerateWranglerToml_Lines = string[];
44
60
 
45
- export type CliCommandsGenerateGenerateWranglerTomlSettingsJson = string;
61
+ export type Cli_Commands_Generate_GenerateWranglerToml_SettingsJson = string;
46
62
 
47
- export type CliCommandsGenerateGenerateWranglerTomlServersJson = string;
63
+ export type Cli_Commands_Generate_GenerateWranglerToml_ServersJson = string;
48
64
 
49
- export type CliCommandsGenerateGenerateWranglerTomlContextsJson = string;
65
+ export type Cli_Commands_Generate_GenerateWranglerToml_ContextsJson = string;
50
66
 
51
- export type CliCommandsGenerateGenerateWranglerTomlOutputDir = string;
67
+ export type Cli_Commands_Generate_GenerateWranglerToml_OutputDir = string;
@@ -1,65 +1,65 @@
1
- import type { LibSchemaConfigSchema, LibSchemaContextConfig, LibSchemaServerConfig } from '../../lib/schema.d.ts';
1
+ import type { Lib_Schema_ConfigSchema, Lib_Schema_ServerConfig } from '../../lib/schema.d.ts';
2
2
 
3
3
  /**
4
4
  * CLI - Commands - Server - Add Server.
5
5
  *
6
6
  * @since 2.0.0
7
7
  */
8
- export type CliCommandsServerAddServerConfigPath = string;
8
+ export type Cli_Commands_Server_AddServer_ConfigPath = string;
9
9
 
10
- export type CliCommandsServerAddServerServer = LibSchemaServerConfig;
10
+ export type Cli_Commands_Server_AddServer_Server = Lib_Schema_ServerConfig;
11
11
 
12
- export type CliCommandsServerAddServerReturn = void;
12
+ export type Cli_Commands_Server_AddServer_Returns = void;
13
13
 
14
- export type CliCommandsServerAddServerConfig = LibSchemaConfigSchema;
14
+ export type Cli_Commands_Server_AddServer_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
15
15
 
16
- export type CliCommandsServerAddServerDuplicate = boolean;
16
+ export type Cli_Commands_Server_AddServer_Duplicate = boolean;
17
17
 
18
18
  /**
19
19
  * CLI - Commands - Server - Edit Server.
20
20
  *
21
21
  * @since 2.0.0
22
22
  */
23
- export type CliCommandsServerEditServerConfigPath = string;
23
+ export type Cli_Commands_Server_EditServer_ConfigPath = string;
24
24
 
25
- export type CliCommandsServerEditServerName = string;
25
+ export type Cli_Commands_Server_EditServer_Name = string;
26
26
 
27
- export type CliCommandsServerEditServerUpdates = Partial<LibSchemaServerConfig>;
27
+ export type Cli_Commands_Server_EditServer_Updates = Partial<Lib_Schema_ServerConfig>;
28
28
 
29
- export type CliCommandsServerEditServerReturn = void;
29
+ export type Cli_Commands_Server_EditServer_Returns = void;
30
30
 
31
- export type CliCommandsServerEditServerConfig = LibSchemaConfigSchema;
31
+ export type Cli_Commands_Server_EditServer_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
32
32
 
33
- export type CliCommandsServerEditServerIndex = number;
33
+ export type Cli_Commands_Server_EditServer_Index = number;
34
34
 
35
- export type CliCommandsServerEditServerMerged = LibSchemaServerConfig;
35
+ export type Cli_Commands_Server_EditServer_Merged = { [Key in keyof Lib_Schema_ServerConfig]: Lib_Schema_ServerConfig[Key] };
36
36
 
37
37
  /**
38
38
  * CLI - Commands - Server - List Servers.
39
39
  *
40
40
  * @since 2.0.0
41
41
  */
42
- export type CliCommandsServerListServersConfigPath = string;
42
+ export type Cli_Commands_Server_ListServers_ConfigPath = string;
43
43
 
44
- export type CliCommandsServerListServersReturn = LibSchemaServerConfig[];
44
+ export type Cli_Commands_Server_ListServers_Returns = Lib_Schema_ServerConfig[];
45
45
 
46
- export type CliCommandsServerListServersConfig = LibSchemaConfigSchema;
46
+ export type Cli_Commands_Server_ListServers_Config = Lib_Schema_ConfigSchema;
47
47
 
48
48
  /**
49
49
  * CLI - Commands - Server - Remove Server.
50
50
  *
51
51
  * @since 2.0.0
52
52
  */
53
- export type CliCommandsServerRemoveServerConfigPath = string;
53
+ export type Cli_Commands_Server_RemoveServer_ConfigPath = string;
54
54
 
55
- export type CliCommandsServerRemoveServerName = string;
55
+ export type Cli_Commands_Server_RemoveServer_Name = string;
56
56
 
57
- export type CliCommandsServerRemoveServerReturn = void;
57
+ export type Cli_Commands_Server_RemoveServer_Returns = void;
58
58
 
59
- export type CliCommandsServerRemoveServerConfig = LibSchemaConfigSchema;
59
+ export type Cli_Commands_Server_RemoveServer_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
60
60
 
61
- export type CliCommandsServerRemoveServerReferencedContexts = LibSchemaContextConfig[];
61
+ export type Cli_Commands_Server_RemoveServer_ReferencedContexts = Lib_Schema_ConfigSchema['contexts'];
62
62
 
63
- export type CliCommandsServerRemoveServerContextNames = string;
63
+ export type Cli_Commands_Server_RemoveServer_ContextNames = string;
64
64
 
65
- export type CliCommandsServerRemoveServerFiltered = LibSchemaServerConfig[];
65
+ export type Cli_Commands_Server_RemoveServer_Filtered = Lib_Schema_ConfigSchema['servers'];
@@ -1,25 +1,25 @@
1
- import type { LibSchemaConfigSchema, LibSchemaSettingsConfig } from '../../lib/schema.d.ts';
1
+ import type { Lib_Schema_ConfigSchema, Lib_Schema_SettingsConfig } from '../../lib/schema.d.ts';
2
2
 
3
3
  /**
4
4
  * CLI - Commands - Settings - Get Settings.
5
5
  *
6
6
  * @since 2.0.0
7
7
  */
8
- export type CliCommandsSettingsGetSettingsConfigPath = string;
8
+ export type Cli_Commands_Settings_GetSettings_ConfigPath = string;
9
9
 
10
- export type CliCommandsSettingsGetSettingsReturn = LibSchemaSettingsConfig;
10
+ export type Cli_Commands_Settings_GetSettings_Returns = Lib_Schema_SettingsConfig;
11
11
 
12
- export type CliCommandsSettingsGetSettingsConfig = LibSchemaConfigSchema;
12
+ export type Cli_Commands_Settings_GetSettings_Config = Lib_Schema_ConfigSchema;
13
13
 
14
14
  /**
15
15
  * CLI - Commands - Settings - Update Settings.
16
16
  *
17
17
  * @since 2.0.0
18
18
  */
19
- export type CliCommandsSettingsUpdateSettingsConfigPath = string;
19
+ export type Cli_Commands_Settings_UpdateSettings_ConfigPath = string;
20
20
 
21
- export type CliCommandsSettingsUpdateSettingsUpdates = Partial<LibSchemaSettingsConfig>;
21
+ export type Cli_Commands_Settings_UpdateSettings_Updates = Partial<Lib_Schema_SettingsConfig>;
22
22
 
23
- export type CliCommandsSettingsUpdateSettingsReturn = void;
23
+ export type Cli_Commands_Settings_UpdateSettings_Returns = void;
24
24
 
25
- export type CliCommandsSettingsUpdateSettingsConfig = LibSchemaConfigSchema;
25
+ export type Cli_Commands_Settings_UpdateSettings_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
@@ -1,37 +1,37 @@
1
1
  import type { z } from 'zod';
2
2
 
3
- import type { LibSchemaConfigSchema } from '../../lib/schema.d.ts';
3
+ import type { Lib_Schema_ConfigSchema } from '../../lib/schema.d.ts';
4
4
 
5
5
  /**
6
6
  * CLI - Commands - Validate - Validate Config.
7
7
  *
8
8
  * @since 2.0.0
9
9
  */
10
- export type CliCommandsValidateValidateConfigConfigPath = string;
10
+ export type Cli_Commands_Validate_ValidateConfig_ConfigPath = string;
11
11
 
12
- export type CliCommandsValidateValidateConfigReturn = CliCommandsValidateValidateConfigResult;
12
+ export type Cli_Commands_Validate_ValidateConfig_Returns = Cli_Commands_Validate_ValidateConfig_Result;
13
13
 
14
- export type CliCommandsValidateValidateConfigErrors = string[];
14
+ export type Cli_Commands_Validate_ValidateConfig_Errors = string[];
15
15
 
16
- export type CliCommandsValidateValidateConfigRaw = unknown;
16
+ export type Cli_Commands_Validate_ValidateConfig_Raw = unknown;
17
17
 
18
- export type CliCommandsValidateValidateConfigParseResult = z.ZodSafeParseResult<LibSchemaConfigSchema>;
18
+ export type Cli_Commands_Validate_ValidateConfig_ParseResult = z.ZodSafeParseResult<Lib_Schema_ConfigSchema>;
19
19
 
20
- export type CliCommandsValidateValidateConfigConfig = LibSchemaConfigSchema;
20
+ export type Cli_Commands_Validate_ValidateConfig_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
21
21
 
22
- export type CliCommandsValidateValidateConfigServerNames = Set<string>;
22
+ export type Cli_Commands_Validate_ValidateConfig_ServerNames = Set<string>;
23
23
 
24
- export type CliCommandsValidateValidateConfigIdCounts = Map<string, number>;
24
+ export type Cli_Commands_Validate_ValidateConfig_IdCounts = Map<string, number>;
25
25
 
26
- export type CliCommandsValidateValidateConfigEntryId = string;
26
+ export type Cli_Commands_Validate_ValidateConfig_EntryId = string;
27
27
 
28
- export type CliCommandsValidateValidateConfigEntryCount = number;
28
+ export type Cli_Commands_Validate_ValidateConfig_EntryCount = number;
29
29
 
30
- export type CliCommandsValidateValidateConfigResultValid = boolean;
30
+ export type Cli_Commands_Validate_ValidateConfig_ResultValid = boolean;
31
31
 
32
- export type CliCommandsValidateValidateConfigResultErrors = string[];
32
+ export type Cli_Commands_Validate_ValidateConfig_ResultErrors = string[];
33
33
 
34
- export type CliCommandsValidateValidateConfigResult = {
35
- valid: CliCommandsValidateValidateConfigResultValid;
36
- errors: CliCommandsValidateValidateConfigResultErrors;
34
+ export type Cli_Commands_Validate_ValidateConfig_Result = {
35
+ valid: Cli_Commands_Validate_ValidateConfig_ResultValid;
36
+ errors: Cli_Commands_Validate_ValidateConfig_ResultErrors;
37
37
  };
@@ -1,55 +1,51 @@
1
1
  import type { Command } from 'commander';
2
2
 
3
- import type { CliCommandsValidateValidateConfigReturn } from './commands/validate.d.ts';
3
+ import type { Cli_Commands_Validate_ValidateConfig_Returns } from './commands/validate.d.ts';
4
4
 
5
5
  /**
6
6
  * CLI - Env Dir.
7
7
  *
8
8
  * @since 2.0.0
9
9
  */
10
- export type CliIndexEnvDir = string | undefined;
10
+ export type Cli_Index_EnvDir = string | undefined;
11
11
 
12
12
  /**
13
13
  * CLI - Get Config File Path.
14
14
  *
15
15
  * @since 2.0.0
16
16
  */
17
- export type CliIndexGetConfigFilePathReturn = string;
17
+ export type Cli_Index_GetConfigFilePath_Returns = string;
18
18
 
19
- export type CliIndexConfigDir = string | undefined;
19
+ export type Cli_Index_ConfigDir = string | undefined;
20
20
 
21
- export type CliIndexConfigPath = string;
21
+ export type Cli_Index_ConfigPath = string;
22
22
 
23
- export type CliIndexSamplePath = string;
23
+ export type Cli_Index_GetConfigFilePath_DefaultDir = string;
24
+
25
+ export type Cli_Index_SamplePath = string;
24
26
 
25
27
  /**
26
28
  * CLI - Main.
27
29
  *
28
30
  * @since 2.0.0
29
31
  */
30
- export type CliIndexMainReturn = Promise<void>;
31
-
32
- export type CliIndexMainConfigDirs = string[];
33
-
34
- export type CliIndexMainConfigPath = string;
35
-
36
- export type CliIndexMainServerCommand = Command;
32
+ export type Cli_Index_Main_Returns = Promise<void>;
37
33
 
38
- export type CliIndexMainServerRemoveName = string;
34
+ export type Cli_Index_Main_ConfigDirs = string[];
39
35
 
40
- export type CliIndexMainContextCommand = Command;
36
+ export type Cli_Index_Main_ConfigPath = string;
41
37
 
42
- export type CliIndexMainContextRemoveName = string;
38
+ export type Cli_Index_Main_ServerCommand = Command;
43
39
 
44
- export type CliIndexMainValidateResult = CliCommandsValidateValidateConfigReturn;
40
+ export type Cli_Index_Main_ContextCommand = Command;
45
41
 
46
- export type CliIndexMainValidateError = string;
42
+ export type Cli_Index_Main_Result = { [Key in keyof Cli_Commands_Validate_ValidateConfig_Returns]: Cli_Commands_Validate_ValidateConfig_Returns[Key] };
47
43
 
48
- export type CliIndexMainCatchError = unknown;
44
+ export type Cli_Index_Main_Message = string;
49
45
 
50
46
  /**
51
47
  * CLI - Program.
52
48
  *
53
49
  * @since 2.0.0
54
50
  */
55
- export type CliIndexProgram = Command;
51
+ export type Cli_Index_Program = Command;