ntfy-reverse-proxy 2.0.3 → 2.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.
Files changed (192) 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 +174 -84
  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.test.d.ts +2 -2
  67. package/build/src/types/tests/lib/schema.test.d.ts +258 -3
  68. package/build/src/types/tests/worker/index.test.d.ts +166 -8
  69. package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +94 -10
  70. package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +163 -4
  71. package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +67 -4
  72. package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +138 -3
  73. package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +235 -30
  74. package/build/src/types/tests/worker/interpreters/synology.test.d.ts +61 -3
  75. package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +93 -3
  76. package/build/src/types/tests/worker/landing/page.test.d.ts +73 -50
  77. package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +226 -15
  78. package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +148 -4
  79. package/build/src/types/tests/worker/pipeline/email.test.d.ts +82 -8
  80. package/build/src/types/tests/worker/pipeline/format.test.d.ts +112 -32
  81. package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +109 -17
  82. package/build/src/types/tests/worker/pipeline/parse.test.d.ts +70 -5
  83. package/build/src/types/tests/worker/pipeline/receive.test.d.ts +156 -15
  84. package/build/src/types/tests/worker/pipeline/respond.test.d.ts +129 -10
  85. package/build/src/types/tests/worker/pipeline/route.test.d.ts +412 -74
  86. package/build/src/types/tests/worker/pipeline/send.test.d.ts +58 -23
  87. package/build/src/types/tests/worker/pipeline/split.test.d.ts +47 -9
  88. package/build/src/types/worker/handlers.d.ts +193 -0
  89. package/build/src/types/worker/index.d.ts +58 -177
  90. package/build/src/types/worker/interpreters/ntfy-json.d.ts +10 -10
  91. package/build/src/types/worker/interpreters/pfsense.d.ts +57 -49
  92. package/build/src/types/worker/interpreters/plain-text.d.ts +7 -7
  93. package/build/src/types/worker/interpreters/seerr.d.ts +63 -61
  94. package/build/src/types/worker/interpreters/statuspage.d.ts +201 -116
  95. package/build/src/types/worker/interpreters/synology.d.ts +48 -46
  96. package/build/src/types/worker/interpreters/unifi.d.ts +79 -54
  97. package/build/src/types/worker/landing/page.d.ts +30 -23
  98. package/build/src/types/worker/pipeline/accumulate.d.ts +46 -32
  99. package/build/src/types/worker/pipeline/authenticate.d.ts +94 -34
  100. package/build/src/types/worker/pipeline/email.d.ts +114 -50
  101. package/build/src/types/worker/pipeline/format.d.ts +31 -23
  102. package/build/src/types/worker/pipeline/interpret.d.ts +34 -34
  103. package/build/src/types/worker/pipeline/parse.d.ts +25 -19
  104. package/build/src/types/worker/pipeline/receive.d.ts +36 -34
  105. package/build/src/types/worker/pipeline/respond.d.ts +119 -63
  106. package/build/src/types/worker/pipeline/route.d.ts +33 -16
  107. package/build/src/types/worker/pipeline/send.d.ts +116 -79
  108. package/build/src/types/worker/pipeline/split.d.ts +21 -16
  109. package/build/src/worker/handlers.d.ts +5 -4
  110. package/build/src/worker/handlers.d.ts.map +1 -1
  111. package/build/src/worker/handlers.js +268 -159
  112. package/build/src/worker/handlers.js.map +1 -1
  113. package/build/src/worker/index.d.ts +2 -2
  114. package/build/src/worker/index.d.ts.map +1 -1
  115. package/build/src/worker/index.js +37 -9
  116. package/build/src/worker/index.js.map +1 -1
  117. package/build/src/worker/interpreters/ntfy-json.d.ts +2 -2
  118. package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
  119. package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
  120. package/build/src/worker/interpreters/pfsense.d.ts +2 -2
  121. package/build/src/worker/interpreters/pfsense.d.ts.map +1 -1
  122. package/build/src/worker/interpreters/pfsense.js +20 -27
  123. package/build/src/worker/interpreters/pfsense.js.map +1 -1
  124. package/build/src/worker/interpreters/plain-text.d.ts +2 -2
  125. package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
  126. package/build/src/worker/interpreters/plain-text.js.map +1 -1
  127. package/build/src/worker/interpreters/seerr.d.ts +2 -2
  128. package/build/src/worker/interpreters/seerr.d.ts.map +1 -1
  129. package/build/src/worker/interpreters/seerr.js +16 -12
  130. package/build/src/worker/interpreters/seerr.js.map +1 -1
  131. package/build/src/worker/interpreters/statuspage.d.ts +2 -2
  132. package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
  133. package/build/src/worker/interpreters/statuspage.js +98 -47
  134. package/build/src/worker/interpreters/statuspage.js.map +1 -1
  135. package/build/src/worker/interpreters/synology.d.ts +2 -2
  136. package/build/src/worker/interpreters/synology.d.ts.map +1 -1
  137. package/build/src/worker/interpreters/synology.js +9 -5
  138. package/build/src/worker/interpreters/synology.js.map +1 -1
  139. package/build/src/worker/interpreters/unifi.d.ts +2 -2
  140. package/build/src/worker/interpreters/unifi.d.ts.map +1 -1
  141. package/build/src/worker/interpreters/unifi.js +34 -20
  142. package/build/src/worker/interpreters/unifi.js.map +1 -1
  143. package/build/src/worker/landing/page.d.ts +2 -2
  144. package/build/src/worker/landing/page.d.ts.map +1 -1
  145. package/build/src/worker/landing/page.js +4 -3
  146. package/build/src/worker/landing/page.js.map +1 -1
  147. package/build/src/worker/pipeline/accumulate.d.ts +5 -6
  148. package/build/src/worker/pipeline/accumulate.d.ts.map +1 -1
  149. package/build/src/worker/pipeline/accumulate.js +4 -11
  150. package/build/src/worker/pipeline/accumulate.js.map +1 -1
  151. package/build/src/worker/pipeline/authenticate.d.ts +2 -2
  152. package/build/src/worker/pipeline/authenticate.d.ts.map +1 -1
  153. package/build/src/worker/pipeline/authenticate.js +25 -7
  154. package/build/src/worker/pipeline/authenticate.js.map +1 -1
  155. package/build/src/worker/pipeline/email.d.ts +2 -2
  156. package/build/src/worker/pipeline/email.d.ts.map +1 -1
  157. package/build/src/worker/pipeline/email.js +34 -11
  158. package/build/src/worker/pipeline/email.js.map +1 -1
  159. package/build/src/worker/pipeline/format.d.ts +2 -3
  160. package/build/src/worker/pipeline/format.d.ts.map +1 -1
  161. package/build/src/worker/pipeline/format.js +2 -1
  162. package/build/src/worker/pipeline/format.js.map +1 -1
  163. package/build/src/worker/pipeline/interpret.d.ts +4 -3
  164. package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
  165. package/build/src/worker/pipeline/interpret.js +7 -7
  166. package/build/src/worker/pipeline/interpret.js.map +1 -1
  167. package/build/src/worker/pipeline/parse.d.ts +2 -2
  168. package/build/src/worker/pipeline/parse.d.ts.map +1 -1
  169. package/build/src/worker/pipeline/parse.js +14 -7
  170. package/build/src/worker/pipeline/parse.js.map +1 -1
  171. package/build/src/worker/pipeline/receive.d.ts +2 -2
  172. package/build/src/worker/pipeline/receive.d.ts.map +1 -1
  173. package/build/src/worker/pipeline/receive.js +6 -6
  174. package/build/src/worker/pipeline/receive.js.map +1 -1
  175. package/build/src/worker/pipeline/respond.d.ts +2 -2
  176. package/build/src/worker/pipeline/respond.d.ts.map +1 -1
  177. package/build/src/worker/pipeline/respond.js +1 -1
  178. package/build/src/worker/pipeline/respond.js.map +1 -1
  179. package/build/src/worker/pipeline/route.d.ts +2 -3
  180. package/build/src/worker/pipeline/route.d.ts.map +1 -1
  181. package/build/src/worker/pipeline/route.js.map +1 -1
  182. package/build/src/worker/pipeline/send.d.ts +2 -2
  183. package/build/src/worker/pipeline/send.d.ts.map +1 -1
  184. package/build/src/worker/pipeline/send.js +80 -41
  185. package/build/src/worker/pipeline/send.js.map +1 -1
  186. package/build/src/worker/pipeline/split.d.ts +2 -2
  187. package/build/src/worker/pipeline/split.d.ts.map +1 -1
  188. package/build/src/worker/pipeline/split.js +4 -2
  189. package/build/src/worker/pipeline/split.js.map +1 -1
  190. package/package.json +10 -9
  191. package/build/src/types/tests/type-declarations.test.d.ts +0 -173
  192. package/build/src/types/worker/pipeline/shared.d.ts +0 -85
@@ -3,43 +3,108 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliCommandsServerTestConfigPath = string;
6
+ export type Tests_Cli_Commands_Server_TestConfigPathFragment = string;
7
7
 
8
- export type TestsCliCommandsServerBaseConfig = {
9
- settings: TestsCliCommandsServerBaseConfigSettings;
10
- servers: TestsCliCommandsServerBaseConfigServers;
11
- contexts: TestsCliCommandsServerBaseConfigContexts;
8
+ export type Tests_Cli_Commands_Server_TestConfigTmpDir = string;
9
+
10
+ export type Tests_Cli_Commands_Server_TestConfigPath = string;
11
+
12
+ export type Tests_Cli_Commands_Server_BaseConfigSettingsWorkerName = string;
13
+
14
+ export type Tests_Cli_Commands_Server_BaseConfigSettingsBaseDomain = string;
15
+
16
+ export type Tests_Cli_Commands_Server_BaseConfigSettingsShowResponseOutput = boolean;
17
+
18
+ export type Tests_Cli_Commands_Server_BaseConfigSettings = {
19
+ worker_name: Tests_Cli_Commands_Server_BaseConfigSettingsWorkerName;
20
+ base_domain: Tests_Cli_Commands_Server_BaseConfigSettingsBaseDomain;
21
+ show_response_output: Tests_Cli_Commands_Server_BaseConfigSettingsShowResponseOutput;
12
22
  };
13
23
 
14
- export type TestsCliCommandsServerBaseConfigSettings = {
15
- worker_name: TestsCliCommandsServerBaseConfigSettingsWorkerName;
16
- base_domain: TestsCliCommandsServerBaseConfigSettingsBaseDomain;
17
- show_response_output: TestsCliCommandsServerBaseConfigSettingsShowResponseOutput;
24
+ export type Tests_Cli_Commands_Server_BaseConfigServers = never[];
25
+
26
+ export type Tests_Cli_Commands_Server_BaseConfigContexts = never[];
27
+
28
+ export type Tests_Cli_Commands_Server_BaseConfig = {
29
+ settings: Tests_Cli_Commands_Server_BaseConfigSettings;
30
+ servers: Tests_Cli_Commands_Server_BaseConfigServers;
31
+ contexts: Tests_Cli_Commands_Server_BaseConfigContexts;
18
32
  };
19
33
 
20
- export type TestsCliCommandsServerBaseConfigSettingsWorkerName = string;
34
+ /**
35
+ * Tests - CLI - Commands - Server - Server Commands.
36
+ *
37
+ * @since 2.0.0
38
+ */
39
+ export type Tests_Cli_Commands_Server_ServerCommands_ConfigJson = string;
21
40
 
22
- export type TestsCliCommandsServerBaseConfigSettingsBaseDomain = string;
41
+ /**
42
+ * Tests - CLI - Commands - Server - Server Commands - Adds A Server To Config.
43
+ *
44
+ * @since 2.0.0
45
+ */
46
+ export type Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigJson = string;
23
47
 
24
- export type TestsCliCommandsServerBaseConfigSettingsShowResponseOutput = boolean;
48
+ export type Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServerName = string;
25
49
 
26
- export type TestsCliCommandsServerBaseConfigServers = never[];
50
+ export type Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServer = {
51
+ name: Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServerName;
52
+ };
27
53
 
28
- export type TestsCliCommandsServerBaseConfigContexts = never[];
54
+ export type Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServers = Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServer[];
29
55
 
30
- export type TestsCliCommandsServerParsedConfig = {
31
- servers: TestsCliCommandsServerParsedConfigServers;
32
- contexts: TestsCliCommandsServerParsedConfigContexts;
56
+ export type Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_Config = {
57
+ servers: Tests_Cli_Commands_Server_ServerCommands_AddsAServerToConfig_ConfigServers;
33
58
  };
34
59
 
35
- export type TestsCliCommandsServerParsedConfigServers = TestsCliCommandsServerParsedConfigServer[];
60
+ /**
61
+ * Tests - CLI - Commands - Server - Server Commands - Lists Servers.
62
+ *
63
+ * @since 2.0.0
64
+ */
65
+ export type Tests_Cli_Commands_Server_ServerCommands_ListsServers_Servers = unknown[];
36
66
 
37
- export type TestsCliCommandsServerParsedConfigServer = {
38
- name: string;
67
+ /**
68
+ * Tests - CLI - Commands - Server - Server Commands - Rejects Duplicate Server Names.
69
+ *
70
+ * @since 2.0.0
71
+ */
72
+ export type Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateName = string;
73
+
74
+ export type Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateServer = string;
75
+
76
+ export type Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateToken = string;
77
+
78
+ export type Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_Duplicate = {
79
+ name: Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateName;
80
+ server: Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateServer;
81
+ token: Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateToken;
82
+ };
83
+
84
+ /**
85
+ * Tests - CLI - Commands - Server - Server Commands - Removes A Server.
86
+ *
87
+ * @since 2.0.0
88
+ */
89
+ export type Tests_Cli_Commands_Server_ServerCommands_RemovesAServer_ConfigJson = string;
90
+
91
+ export type Tests_Cli_Commands_Server_ServerCommands_RemovesAServer_ConfigServers = unknown[];
92
+
93
+ export type Tests_Cli_Commands_Server_ServerCommands_RemovesAServer_Config = {
94
+ servers: Tests_Cli_Commands_Server_ServerCommands_RemovesAServer_ConfigServers;
39
95
  };
40
96
 
41
- export type TestsCliCommandsServerParsedConfigContexts = TestsCliCommandsServerParsedConfigContextsList;
97
+ /**
98
+ * Tests - CLI - Commands - Server - Server Commands - Warns When Removing A Server Referenced By Contexts.
99
+ *
100
+ * @since 2.0.0
101
+ */
102
+ export type Tests_Cli_Commands_Server_ServerCommands_WarnsWhenRemovingAServerReferencedByContexts_ConfigJson = string;
103
+
104
+ export type Tests_Cli_Commands_Server_ServerCommands_WarnsWhenRemovingAServerReferencedByContexts_ConfigContexts = unknown[];
42
105
 
43
- export type TestsCliCommandsServerParsedConfigContextsList = unknown[];
106
+ export type Tests_Cli_Commands_Server_ServerCommands_WarnsWhenRemovingAServerReferencedByContexts_Config = {
107
+ contexts: Tests_Cli_Commands_Server_ServerCommands_WarnsWhenRemovingAServerReferencedByContexts_ConfigContexts;
108
+ };
44
109
 
45
- export type TestsCliCommandsServerServerList = unknown[];
110
+ export type Tests_Cli_Commands_Server_ServerCommands_WarnsWhenRemovingAServerReferencedByContexts_UpdatedConfigJson = string;
@@ -3,38 +3,82 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliCommandsSettingsTestConfigPath = string;
6
+ export type Tests_Cli_Commands_Settings_TestConfigPathFragment = string;
7
7
 
8
- export type TestsCliCommandsSettingsBaseConfig = {
9
- settings: TestsCliCommandsSettingsBaseConfigSettings;
10
- servers: TestsCliCommandsSettingsBaseConfigServers;
11
- contexts: TestsCliCommandsSettingsBaseConfigContexts;
8
+ export type Tests_Cli_Commands_Settings_TestConfigTmpDir = string;
9
+
10
+ export type Tests_Cli_Commands_Settings_TestConfigPath = string;
11
+
12
+ export type Tests_Cli_Commands_Settings_BaseConfigSettingsWorkerName = string;
13
+
14
+ export type Tests_Cli_Commands_Settings_BaseConfigSettingsBaseDomain = string;
15
+
16
+ export type Tests_Cli_Commands_Settings_BaseConfigSettingsShowResponseOutput = boolean;
17
+
18
+ export type Tests_Cli_Commands_Settings_BaseConfigSettings = {
19
+ worker_name: Tests_Cli_Commands_Settings_BaseConfigSettingsWorkerName;
20
+ base_domain: Tests_Cli_Commands_Settings_BaseConfigSettingsBaseDomain;
21
+ show_response_output: Tests_Cli_Commands_Settings_BaseConfigSettingsShowResponseOutput;
12
22
  };
13
23
 
14
- export type TestsCliCommandsSettingsBaseConfigSettings = {
15
- worker_name: TestsCliCommandsSettingsBaseConfigSettingsWorkerName;
16
- base_domain: TestsCliCommandsSettingsBaseConfigSettingsBaseDomain;
17
- show_response_output: TestsCliCommandsSettingsBaseConfigSettingsShowResponseOutput;
24
+ export type Tests_Cli_Commands_Settings_BaseConfigServers = never[];
25
+
26
+ export type Tests_Cli_Commands_Settings_BaseConfigContexts = never[];
27
+
28
+ export type Tests_Cli_Commands_Settings_BaseConfig = {
29
+ settings: Tests_Cli_Commands_Settings_BaseConfigSettings;
30
+ servers: Tests_Cli_Commands_Settings_BaseConfigServers;
31
+ contexts: Tests_Cli_Commands_Settings_BaseConfigContexts;
18
32
  };
19
33
 
20
- export type TestsCliCommandsSettingsBaseConfigSettingsWorkerName = string;
34
+ /**
35
+ * Tests - CLI - Commands - Settings - Settings Commands.
36
+ *
37
+ * @since 2.0.0
38
+ */
39
+ export type Tests_Cli_Commands_Settings_SettingsCommands_ConfigJson = string;
21
40
 
22
- export type TestsCliCommandsSettingsBaseConfigSettingsBaseDomain = string;
41
+ /**
42
+ * Tests - CLI - Commands - Settings - Settings Commands - Reads Current Settings.
43
+ *
44
+ * @since 2.0.0
45
+ */
46
+ export type Tests_Cli_Commands_Settings_SettingsCommands_ReadsCurrentSettings_SettingsBaseDomain = string;
23
47
 
24
- export type TestsCliCommandsSettingsBaseConfigSettingsShowResponseOutput = boolean;
48
+ export type Tests_Cli_Commands_Settings_SettingsCommands_ReadsCurrentSettings_Settings = {
49
+ base_domain: Tests_Cli_Commands_Settings_SettingsCommands_ReadsCurrentSettings_SettingsBaseDomain;
50
+ };
25
51
 
26
- export type TestsCliCommandsSettingsBaseConfigServers = never[];
52
+ /**
53
+ * Tests - CLI - Commands - Settings - Settings Commands - Toggles Show Response Output.
54
+ *
55
+ * @since 2.0.0
56
+ */
57
+ export type Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_ConfigJson = string;
58
+
59
+ export type Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_ConfigSettingsShowResponseOutput = boolean;
27
60
 
28
- export type TestsCliCommandsSettingsBaseConfigContexts = never[];
61
+ export type Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_ConfigSettings = {
62
+ show_response_output: Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_ConfigSettingsShowResponseOutput;
63
+ };
29
64
 
30
- export type TestsCliCommandsSettingsSettings = {
31
- worker_name: string;
32
- base_domain: string;
33
- show_response_output: boolean;
65
+ export type Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_Config = {
66
+ settings: Tests_Cli_Commands_Settings_SettingsCommands_TogglesShowResponseOutput_ConfigSettings;
34
67
  };
35
68
 
36
- export type TestsCliCommandsSettingsGetSettingsResult = TestsCliCommandsSettingsSettings;
69
+ /**
70
+ * Tests - CLI - Commands - Settings - Settings Commands - Updates Base Domain.
71
+ *
72
+ * @since 2.0.0
73
+ */
74
+ export type Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_ConfigJson = string;
75
+
76
+ export type Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_ConfigSettingsBaseDomain = string;
77
+
78
+ export type Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_ConfigSettings = {
79
+ base_domain: Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_ConfigSettingsBaseDomain;
80
+ };
37
81
 
38
- export type TestsCliCommandsSettingsParsedConfig = {
39
- settings: TestsCliCommandsSettingsSettings;
82
+ export type Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_Config = {
83
+ settings: Tests_Cli_Commands_Settings_SettingsCommands_UpdatesBaseDomain_ConfigSettings;
40
84
  };
@@ -3,17 +3,78 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliCommandsValidateTestConfigPath = string;
6
+ export type Tests_Cli_Commands_Validate_TestConfigPathFragment = string;
7
7
 
8
- export type TestsCliCommandsValidateConfigJson = string;
8
+ export type Tests_Cli_Commands_Validate_TestConfigTmpDir = string;
9
9
 
10
- export type TestsCliCommandsValidateResult = {
11
- valid: TestsCliCommandsValidateResultValid;
12
- errors: TestsCliCommandsValidateResultErrors;
10
+ export type Tests_Cli_Commands_Validate_TestConfigPath = string;
11
+
12
+ /**
13
+ * Tests - CLI - Commands - Validate - Validate Command - Detects Duplicate Ids.
14
+ *
15
+ * @since 2.0.0
16
+ */
17
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_ConfigJson = string;
18
+
19
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_ResultValid = boolean;
20
+
21
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_ResultErrors = string[];
22
+
23
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_Result = {
24
+ valid: Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_ResultValid;
25
+ errors: Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_ResultErrors;
26
+ };
27
+
28
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsDuplicateIds_HasMatch = boolean;
29
+
30
+ /**
31
+ * Tests - CLI - Commands - Validate - Validate Command - Detects Orphaned Server References.
32
+ *
33
+ * @since 2.0.0
34
+ */
35
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_ConfigJson = string;
36
+
37
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_ResultValid = boolean;
38
+
39
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_ResultErrors = string[];
40
+
41
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_Result = {
42
+ valid: Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_ResultValid;
43
+ errors: Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_ResultErrors;
13
44
  };
14
45
 
15
- export type TestsCliCommandsValidateResultValid = boolean;
46
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsOrphanedServerReferences_HasMatch = boolean;
47
+
48
+ /**
49
+ * Tests - CLI - Commands - Validate - Validate Command - Detects Primary Server Not In Context Servers List.
50
+ *
51
+ * @since 2.1.0
52
+ */
53
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_ConfigJson = string;
54
+
55
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_ResultValid = boolean;
56
+
57
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_ResultErrors = string[];
58
+
59
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_Result = {
60
+ valid: Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_ResultValid;
61
+ errors: Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_ResultErrors;
62
+ };
16
63
 
17
- export type TestsCliCommandsValidateResultErrors = string[];
64
+ export type Tests_Cli_Commands_Validate_ValidateCommand_DetectsPrimaryServerNotInContextServersList_HasMatch = boolean;
18
65
 
19
- export type TestsCliCommandsValidateHasMatch = boolean;
66
+ /**
67
+ * Tests - CLI - Commands - Validate - Validate Command - Passes Valid Config.
68
+ *
69
+ * @since 2.0.0
70
+ */
71
+ export type Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_ConfigJson = string;
72
+
73
+ export type Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_ResultValid = boolean;
74
+
75
+ export type Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_ResultErrors = string[];
76
+
77
+ export type Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_Result = {
78
+ valid: Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_ResultValid;
79
+ errors: Tests_Cli_Commands_Validate_ValidateCommand_PassesValidConfig_ResultErrors;
80
+ };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Tests - CLI - Menu - Interactive.
2
+ * Tests - CLI - Menu - Interactive - Interactive Menu - Exports The Interactive Menu Function.
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliMenuInteractiveTestPlaceholder = undefined;
6
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_ExportsTheInteractiveMenuFunction_ExportedType = string;
@@ -3,8 +3,263 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsLibSchemaInput = Record<string, unknown>;
7
6
 
8
- export type TestsLibSchemaParseResult = {
9
- success: boolean;
7
+ /**
8
+ * Tests - Lib - Schema - Config Schema - Allows Optional Allowed From On Email Context.
9
+ *
10
+ * @since 2.0.0
11
+ */
12
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalAllowedFromOnEmailContext_Valid = Record<string, unknown>;
13
+
14
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalAllowedFromOnEmailContext_ResultSuccess = boolean;
15
+
16
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalAllowedFromOnEmailContext_Result = {
17
+ success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalAllowedFromOnEmailContext_ResultSuccess;
18
+ };
19
+
20
+ /**
21
+ * Tests - Lib - Schema - Config Schema - Allows Optional Error Events.
22
+ *
23
+ * @since 2.1.0
24
+ */
25
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEvents_Valid = Record<string, unknown>;
26
+
27
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEvents_ResultSuccess = boolean;
28
+
29
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEvents_Result = {
30
+ success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEvents_ResultSuccess;
31
+ };
32
+
33
+ /**
34
+ * Tests - Lib - Schema - Config Schema - Allows Optional Error Events On Email Context.
35
+ *
36
+ * @since 2.1.0
37
+ */
38
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEventsOnEmailContext_Valid = Record<string, unknown>;
39
+
40
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEventsOnEmailContext_ResultSuccess = boolean;
41
+
42
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEventsOnEmailContext_Result = {
43
+ success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorEventsOnEmailContext_ResultSuccess;
44
+ };
45
+
46
+ /**
47
+ * Tests - Lib - Schema - Config Schema - Allows Optional Error Topic.
48
+ *
49
+ * @since 2.0.0
50
+ */
51
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_Valid = Record<string, unknown>;
52
+
53
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_ResultSuccess = boolean;
54
+
55
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_Result = {
56
+ success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_ResultSuccess;
57
+ };
58
+
59
+ /**
60
+ * Tests - Lib - Schema - Config Schema - Allows Optional Token On HTTP Context.
61
+ *
62
+ * @since 2.0.0
63
+ */
64
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_Valid = Record<string, unknown>;
65
+
66
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_ResultSuccess = boolean;
67
+
68
+ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_Result = {
69
+ success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_ResultSuccess;
70
+ };
71
+
72
+ /**
73
+ * Tests - Lib - Schema - Config Schema - Rejects Allowed From Field On HTTP Context.
74
+ *
75
+ * @since 2.0.0
76
+ */
77
+ export type Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_Invalid = Record<string, unknown>;
78
+
79
+ export type Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_ResultSuccess = boolean;
80
+
81
+ export type Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_Result = {
82
+ success: Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_ResultSuccess;
83
+ };
84
+
85
+ /**
86
+ * Tests - Lib - Schema - Config Schema - Rejects Context Without Type Discriminator.
87
+ *
88
+ * @since 2.0.0
89
+ */
90
+ export type Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator_Invalid = Record<string, unknown>;
91
+
92
+ export type Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator_ResultSuccess = boolean;
93
+
94
+ export type Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator_Result = {
95
+ success: Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator_ResultSuccess;
96
+ };
97
+
98
+ /**
99
+ * Tests - Lib - Schema - Config Schema - Rejects Invalid Error Events Values.
100
+ *
101
+ * @since 2.1.0
102
+ */
103
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidErrorEventsValues_Invalid = Record<string, unknown>;
104
+
105
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidErrorEventsValues_ResultSuccess = boolean;
106
+
107
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidErrorEventsValues_Result = {
108
+ success: Tests_Lib_Schema_ConfigSchema_RejectsInvalidErrorEventsValues_ResultSuccess;
109
+ };
110
+
111
+ /**
112
+ * Tests - Lib - Schema - Config Schema - Rejects Invalid Interpreter Names.
113
+ *
114
+ * @since 2.0.0
115
+ */
116
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidInterpreterNames_Invalid = Record<string, unknown>;
117
+
118
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidInterpreterNames_ResultSuccess = boolean;
119
+
120
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidInterpreterNames_Result = {
121
+ success: Tests_Lib_Schema_ConfigSchema_RejectsInvalidInterpreterNames_ResultSuccess;
122
+ };
123
+
124
+ /**
125
+ * Tests - Lib - Schema - Config Schema - Rejects Invalid Mode Values.
126
+ *
127
+ * @since 2.0.0
128
+ */
129
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidModeValues_Invalid = Record<string, unknown>;
130
+
131
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidModeValues_ResultSuccess = boolean;
132
+
133
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidModeValues_Result = {
134
+ success: Tests_Lib_Schema_ConfigSchema_RejectsInvalidModeValues_ResultSuccess;
135
+ };
136
+
137
+ /**
138
+ * Tests - Lib - Schema - Config Schema - Rejects Invalid Type Discriminator Value.
139
+ *
140
+ * @since 2.0.0
141
+ */
142
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidTypeDiscriminatorValue_Invalid = Record<string, unknown>;
143
+
144
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidTypeDiscriminatorValue_ResultSuccess = boolean;
145
+
146
+ export type Tests_Lib_Schema_ConfigSchema_RejectsInvalidTypeDiscriminatorValue_Result = {
147
+ success: Tests_Lib_Schema_ConfigSchema_RejectsInvalidTypeDiscriminatorValue_ResultSuccess;
148
+ };
149
+
150
+ /**
151
+ * Tests - Lib - Schema - Config Schema - Rejects Server URLs Not Starting With Https.
152
+ *
153
+ * @since 2.0.0
154
+ */
155
+ export type Tests_Lib_Schema_ConfigSchema_RejectsServerURLsNotStartingWithHttps_Invalid = Record<string, unknown>;
156
+
157
+ export type Tests_Lib_Schema_ConfigSchema_RejectsServerURLsNotStartingWithHttps_ResultSuccess = boolean;
158
+
159
+ export type Tests_Lib_Schema_ConfigSchema_RejectsServerURLsNotStartingWithHttps_Result = {
160
+ success: Tests_Lib_Schema_ConfigSchema_RejectsServerURLsNotStartingWithHttps_ResultSuccess;
161
+ };
162
+
163
+ /**
164
+ * Tests - Lib - Schema - Config Schema - Rejects Token Field On Email Context.
165
+ *
166
+ * @since 2.0.0
167
+ */
168
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokenFieldOnEmailContext_Invalid = Record<string, unknown>;
169
+
170
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokenFieldOnEmailContext_ResultSuccess = boolean;
171
+
172
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokenFieldOnEmailContext_Result = {
173
+ success: Tests_Lib_Schema_ConfigSchema_RejectsTokenFieldOnEmailContext_ResultSuccess;
174
+ };
175
+
176
+ /**
177
+ * Tests - Lib - Schema - Config Schema - Rejects Tokens Not Starting With Tk.
178
+ *
179
+ * @since 2.0.0
180
+ */
181
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokensNotStartingWithTk_Invalid = Record<string, unknown>;
182
+
183
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokensNotStartingWithTk_ResultSuccess = boolean;
184
+
185
+ export type Tests_Lib_Schema_ConfigSchema_RejectsTokensNotStartingWithTk_Result = {
186
+ success: Tests_Lib_Schema_ConfigSchema_RejectsTokensNotStartingWithTk_ResultSuccess;
187
+ };
188
+
189
+ /**
190
+ * Tests - Lib - Schema - Config Schema - Validates A Complete Valid Email Context Config.
191
+ *
192
+ * @since 2.0.0
193
+ */
194
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidEmailContextConfig_Valid = Record<string, unknown>;
195
+
196
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidEmailContextConfig_ResultSuccess = boolean;
197
+
198
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidEmailContextConfig_Result = {
199
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidEmailContextConfig_ResultSuccess;
200
+ };
201
+
202
+ /**
203
+ * Tests - Lib - Schema - Config Schema - Validates A Complete Valid HTTP Context Config.
204
+ *
205
+ * @since 2.0.0
206
+ */
207
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidHTTPContextConfig_Valid = Record<string, unknown>;
208
+
209
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidHTTPContextConfig_ResultSuccess = boolean;
210
+
211
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidHTTPContextConfig_Result = {
212
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesACompleteValidHTTPContextConfig_ResultSuccess;
213
+ };
214
+
215
+ /**
216
+ * Tests - Lib - Schema - Config Schema - Validates Config With Mixed HTTP And Email Contexts.
217
+ *
218
+ * @since 2.0.0
219
+ */
220
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesConfigWithMixedHTTPAndEmailContexts_Valid = Record<string, unknown>;
221
+
222
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesConfigWithMixedHTTPAndEmailContexts_ResultSuccess = boolean;
223
+
224
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesConfigWithMixedHTTPAndEmailContexts_Result = {
225
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesConfigWithMixedHTTPAndEmailContexts_ResultSuccess;
226
+ };
227
+
228
+ /**
229
+ * Tests - Lib - Schema - Config Schema - Validates Email Interpreter.
230
+ *
231
+ * @since 2.0.0
232
+ */
233
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesEmailInterpreter_Valid = Record<string, unknown>;
234
+
235
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesEmailInterpreter_ResultSuccess = boolean;
236
+
237
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesEmailInterpreter_Result = {
238
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesEmailInterpreter_ResultSuccess;
239
+ };
240
+
241
+ /**
242
+ * Tests - Lib - Schema - Config Schema - Validates Pfsense Interpreter.
243
+ *
244
+ * @since 2.0.0
245
+ */
246
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesPfsenseInterpreter_Valid = Record<string, unknown>;
247
+
248
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesPfsenseInterpreter_ResultSuccess = boolean;
249
+
250
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesPfsenseInterpreter_Result = {
251
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesPfsenseInterpreter_ResultSuccess;
252
+ };
253
+
254
+ /**
255
+ * Tests - Lib - Schema - Config Schema - Validates Unifi Interpreter.
256
+ *
257
+ * @since 2.0.0
258
+ */
259
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesUnifiInterpreter_Valid = Record<string, unknown>;
260
+
261
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesUnifiInterpreter_ResultSuccess = boolean;
262
+
263
+ export type Tests_Lib_Schema_ConfigSchema_ValidatesUnifiInterpreter_Result = {
264
+ success: Tests_Lib_Schema_ConfigSchema_ValidatesUnifiInterpreter_ResultSuccess;
10
265
  };