ntfy-reverse-proxy 0.0.0 → 2.0.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 (199) hide show
  1. package/README.md +48 -0
  2. package/build/src/cli/commands/config-io.d.ts +5 -0
  3. package/build/src/cli/commands/config-io.d.ts.map +1 -0
  4. package/build/src/cli/commands/config-io.js +19 -0
  5. package/build/src/cli/commands/config-io.js.map +1 -0
  6. package/build/src/cli/commands/context.d.ts +9 -0
  7. package/build/src/cli/commands/context.d.ts.map +1 -0
  8. package/build/src/cli/commands/context.js +108 -0
  9. package/build/src/cli/commands/context.js.map +1 -0
  10. package/build/src/cli/commands/deploy.d.ts +4 -0
  11. package/build/src/cli/commands/deploy.d.ts.map +1 -0
  12. package/build/src/cli/commands/deploy.js +496 -0
  13. package/build/src/cli/commands/deploy.js.map +1 -0
  14. package/build/src/cli/commands/generate.d.ts +4 -0
  15. package/build/src/cli/commands/generate.d.ts.map +1 -0
  16. package/build/src/cli/commands/generate.js +68 -0
  17. package/build/src/cli/commands/generate.js.map +1 -0
  18. package/build/src/cli/commands/server.d.ts +7 -0
  19. package/build/src/cli/commands/server.d.ts.map +1 -0
  20. package/build/src/cli/commands/server.js +43 -0
  21. package/build/src/cli/commands/server.js.map +1 -0
  22. package/build/src/cli/commands/settings.d.ts +5 -0
  23. package/build/src/cli/commands/settings.d.ts.map +1 -0
  24. package/build/src/cli/commands/settings.js +16 -0
  25. package/build/src/cli/commands/settings.js.map +1 -0
  26. package/build/src/cli/commands/validate.d.ts +4 -0
  27. package/build/src/cli/commands/validate.d.ts.map +1 -0
  28. package/build/src/cli/commands/validate.js +45 -0
  29. package/build/src/cli/commands/validate.js.map +1 -0
  30. package/build/src/cli/index.d.ts +5 -0
  31. package/build/src/cli/index.d.ts.map +1 -0
  32. package/build/src/cli/index.js +118 -0
  33. package/build/src/cli/index.js.map +1 -0
  34. package/build/src/cli/menu/interactive.d.ts +4 -0
  35. package/build/src/cli/menu/interactive.d.ts.map +1 -0
  36. package/build/src/cli/menu/interactive.js +902 -0
  37. package/build/src/cli/menu/interactive.js.map +1 -0
  38. package/build/src/lib/item.d.ts +3 -0
  39. package/build/src/lib/item.d.ts.map +1 -0
  40. package/build/src/lib/item.js +3 -0
  41. package/build/src/lib/item.js.map +1 -0
  42. package/build/src/lib/regex.d.ts +30 -0
  43. package/build/src/lib/regex.d.ts.map +1 -0
  44. package/build/src/lib/regex.js +30 -0
  45. package/build/src/lib/regex.js.map +1 -0
  46. package/build/src/lib/schema.d.ts +167 -0
  47. package/build/src/lib/schema.d.ts.map +1 -0
  48. package/build/src/lib/schema.js +70 -0
  49. package/build/src/lib/schema.js.map +1 -0
  50. package/build/src/lib/utility.d.ts +4 -0
  51. package/build/src/lib/utility.d.ts.map +1 -0
  52. package/build/src/lib/utility.js +14 -0
  53. package/build/src/lib/utility.js.map +1 -0
  54. package/build/src/types/cli/commands/config-io.d.ts +38 -0
  55. package/build/src/types/cli/commands/context.d.ts +131 -0
  56. package/build/src/types/cli/commands/deploy.d.ts +622 -0
  57. package/build/src/types/cli/commands/generate.d.ts +51 -0
  58. package/build/src/types/cli/commands/server.d.ts +65 -0
  59. package/build/src/types/cli/commands/settings.d.ts +25 -0
  60. package/build/src/types/cli/commands/validate.d.ts +37 -0
  61. package/build/src/types/cli/index.d.ts +55 -0
  62. package/build/src/types/cli/menu/interactive.d.ts +381 -0
  63. package/build/src/types/fetch-response.d.ts +11 -0
  64. package/build/src/types/lib/schema.d.ts +134 -0
  65. package/build/src/types/lib/utility.d.ts +8 -0
  66. package/build/src/types/tests/cli/commands/context.test.d.ts +57 -0
  67. package/build/src/types/tests/cli/commands/generate.test.d.ts +12 -0
  68. package/build/src/types/tests/cli/commands/server.test.d.ts +45 -0
  69. package/build/src/types/tests/cli/commands/settings.test.d.ts +40 -0
  70. package/build/src/types/tests/cli/commands/validate.test.d.ts +19 -0
  71. package/build/src/types/tests/cli/menu/interactive.test.d.ts +6 -0
  72. package/build/src/types/tests/lib/schema.test.d.ts +10 -0
  73. package/build/src/types/tests/type-declarations.test.d.ts +173 -0
  74. package/build/src/types/tests/worker/index.test.d.ts +20 -0
  75. package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +19 -0
  76. package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +10 -0
  77. package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +10 -0
  78. package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +8 -0
  79. package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +58 -0
  80. package/build/src/types/tests/worker/interpreters/synology.test.d.ts +8 -0
  81. package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +8 -0
  82. package/build/src/types/tests/worker/landing/page.test.d.ts +55 -0
  83. package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +28 -0
  84. package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +9 -0
  85. package/build/src/types/tests/worker/pipeline/email.test.d.ts +15 -0
  86. package/build/src/types/tests/worker/pipeline/format.test.d.ts +38 -0
  87. package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +43 -0
  88. package/build/src/types/tests/worker/pipeline/parse.test.d.ts +17 -0
  89. package/build/src/types/tests/worker/pipeline/receive.test.d.ts +23 -0
  90. package/build/src/types/tests/worker/pipeline/respond.test.d.ts +20 -0
  91. package/build/src/types/tests/worker/pipeline/route.test.d.ts +80 -0
  92. package/build/src/types/tests/worker/pipeline/send.test.d.ts +37 -0
  93. package/build/src/types/tests/worker/pipeline/split.test.d.ts +17 -0
  94. package/build/src/types/worker/index.d.ts +232 -0
  95. package/build/src/types/worker/interpreters/ntfy-json.d.ts +28 -0
  96. package/build/src/types/worker/interpreters/pfsense.d.ts +97 -0
  97. package/build/src/types/worker/interpreters/plain-text.d.ts +24 -0
  98. package/build/src/types/worker/interpreters/seerr.d.ts +124 -0
  99. package/build/src/types/worker/interpreters/statuspage.d.ts +239 -0
  100. package/build/src/types/worker/interpreters/synology.d.ts +99 -0
  101. package/build/src/types/worker/interpreters/unifi.d.ts +111 -0
  102. package/build/src/types/worker/landing/page.d.ts +44 -0
  103. package/build/src/types/worker/pipeline/accumulate.d.ts +79 -0
  104. package/build/src/types/worker/pipeline/authenticate.d.ts +68 -0
  105. package/build/src/types/worker/pipeline/email.d.ts +108 -0
  106. package/build/src/types/worker/pipeline/format.d.ts +47 -0
  107. package/build/src/types/worker/pipeline/interpret.d.ts +63 -0
  108. package/build/src/types/worker/pipeline/parse.d.ts +39 -0
  109. package/build/src/types/worker/pipeline/receive.d.ts +64 -0
  110. package/build/src/types/worker/pipeline/respond.d.ts +113 -0
  111. package/build/src/types/worker/pipeline/route.d.ts +34 -0
  112. package/build/src/types/worker/pipeline/send.d.ts +143 -0
  113. package/build/src/types/worker/pipeline/shared.d.ts +85 -0
  114. package/build/src/types/worker/pipeline/split.d.ts +35 -0
  115. package/build/src/worker/handlers.d.ts +5 -0
  116. package/build/src/worker/handlers.d.ts.map +1 -0
  117. package/build/src/worker/handlers.js +360 -0
  118. package/build/src/worker/handlers.js.map +1 -0
  119. package/build/src/worker/index.d.ts +4 -0
  120. package/build/src/worker/index.d.ts.map +1 -0
  121. package/build/src/worker/index.js +52 -0
  122. package/build/src/worker/index.js.map +1 -0
  123. package/build/src/worker/interpreters/ntfy-json.d.ts +4 -0
  124. package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -0
  125. package/build/src/worker/interpreters/ntfy-json.js +49 -0
  126. package/build/src/worker/interpreters/ntfy-json.js.map +1 -0
  127. package/build/src/worker/interpreters/pfsense.d.ts +4 -0
  128. package/build/src/worker/interpreters/pfsense.d.ts.map +1 -0
  129. package/build/src/worker/interpreters/pfsense.js +150 -0
  130. package/build/src/worker/interpreters/pfsense.js.map +1 -0
  131. package/build/src/worker/interpreters/plain-text.d.ts +4 -0
  132. package/build/src/worker/interpreters/plain-text.d.ts.map +1 -0
  133. package/build/src/worker/interpreters/plain-text.js +18 -0
  134. package/build/src/worker/interpreters/plain-text.js.map +1 -0
  135. package/build/src/worker/interpreters/seerr.d.ts +4 -0
  136. package/build/src/worker/interpreters/seerr.d.ts.map +1 -0
  137. package/build/src/worker/interpreters/seerr.js +173 -0
  138. package/build/src/worker/interpreters/seerr.js.map +1 -0
  139. package/build/src/worker/interpreters/statuspage.d.ts +4 -0
  140. package/build/src/worker/interpreters/statuspage.d.ts.map +1 -0
  141. package/build/src/worker/interpreters/statuspage.js +266 -0
  142. package/build/src/worker/interpreters/statuspage.js.map +1 -0
  143. package/build/src/worker/interpreters/synology.d.ts +4 -0
  144. package/build/src/worker/interpreters/synology.d.ts.map +1 -0
  145. package/build/src/worker/interpreters/synology.js +177 -0
  146. package/build/src/worker/interpreters/synology.js.map +1 -0
  147. package/build/src/worker/interpreters/unifi.d.ts +4 -0
  148. package/build/src/worker/interpreters/unifi.d.ts.map +1 -0
  149. package/build/src/worker/interpreters/unifi.js +152 -0
  150. package/build/src/worker/interpreters/unifi.js.map +1 -0
  151. package/build/src/worker/landing/page.d.ts +4 -0
  152. package/build/src/worker/landing/page.d.ts.map +1 -0
  153. package/build/src/worker/landing/page.js +260 -0
  154. package/build/src/worker/landing/page.js.map +1 -0
  155. package/build/src/worker/pipeline/accumulate.d.ts +7 -0
  156. package/build/src/worker/pipeline/accumulate.d.ts.map +1 -0
  157. package/build/src/worker/pipeline/accumulate.js +53 -0
  158. package/build/src/worker/pipeline/accumulate.js.map +1 -0
  159. package/build/src/worker/pipeline/authenticate.d.ts +4 -0
  160. package/build/src/worker/pipeline/authenticate.d.ts.map +1 -0
  161. package/build/src/worker/pipeline/authenticate.js +53 -0
  162. package/build/src/worker/pipeline/authenticate.js.map +1 -0
  163. package/build/src/worker/pipeline/email.d.ts +4 -0
  164. package/build/src/worker/pipeline/email.d.ts.map +1 -0
  165. package/build/src/worker/pipeline/email.js +149 -0
  166. package/build/src/worker/pipeline/email.js.map +1 -0
  167. package/build/src/worker/pipeline/format.d.ts +5 -0
  168. package/build/src/worker/pipeline/format.d.ts.map +1 -0
  169. package/build/src/worker/pipeline/format.js +48 -0
  170. package/build/src/worker/pipeline/format.js.map +1 -0
  171. package/build/src/worker/pipeline/interpret.d.ts +4 -0
  172. package/build/src/worker/pipeline/interpret.d.ts.map +1 -0
  173. package/build/src/worker/pipeline/interpret.js +30 -0
  174. package/build/src/worker/pipeline/interpret.js.map +1 -0
  175. package/build/src/worker/pipeline/parse.d.ts +4 -0
  176. package/build/src/worker/pipeline/parse.d.ts.map +1 -0
  177. package/build/src/worker/pipeline/parse.js +59 -0
  178. package/build/src/worker/pipeline/parse.js.map +1 -0
  179. package/build/src/worker/pipeline/receive.d.ts +4 -0
  180. package/build/src/worker/pipeline/receive.d.ts.map +1 -0
  181. package/build/src/worker/pipeline/receive.js +52 -0
  182. package/build/src/worker/pipeline/receive.js.map +1 -0
  183. package/build/src/worker/pipeline/respond.d.ts +4 -0
  184. package/build/src/worker/pipeline/respond.d.ts.map +1 -0
  185. package/build/src/worker/pipeline/respond.js +48 -0
  186. package/build/src/worker/pipeline/respond.js.map +1 -0
  187. package/build/src/worker/pipeline/route.d.ts +5 -0
  188. package/build/src/worker/pipeline/route.d.ts.map +1 -0
  189. package/build/src/worker/pipeline/route.js +23 -0
  190. package/build/src/worker/pipeline/route.js.map +1 -0
  191. package/build/src/worker/pipeline/send.d.ts +4 -0
  192. package/build/src/worker/pipeline/send.d.ts.map +1 -0
  193. package/build/src/worker/pipeline/send.js +156 -0
  194. package/build/src/worker/pipeline/send.js.map +1 -0
  195. package/build/src/worker/pipeline/split.d.ts +4 -0
  196. package/build/src/worker/pipeline/split.d.ts.map +1 -0
  197. package/build/src/worker/pipeline/split.js +40 -0
  198. package/build/src/worker/pipeline/split.js.map +1 -0
  199. package/package.json +95 -2
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Lib - Schema.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type LibSchemaConfigSchemaSettings = LibSchemaSettingsConfig;
7
+
8
+ export type LibSchemaConfigSchemaServers = LibSchemaServerConfig[];
9
+
10
+ export type LibSchemaConfigSchemaContexts = LibSchemaContextConfig[];
11
+
12
+ export type LibSchemaConfigSchema = {
13
+ settings: LibSchemaConfigSchemaSettings;
14
+ servers: LibSchemaConfigSchemaServers;
15
+ contexts: LibSchemaConfigSchemaContexts;
16
+ };
17
+
18
+ export type LibSchemaContextConfigName = string;
19
+
20
+ export type LibSchemaContextConfigType = 'http' | 'email';
21
+
22
+ export type LibSchemaContextConfigId = string;
23
+
24
+ export type LibSchemaContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
25
+
26
+ export type LibSchemaContextConfigTopic = string;
27
+
28
+ export type LibSchemaContextConfigErrorTopic = string | undefined;
29
+
30
+ export type LibSchemaContextConfigMode = 'send-once' | 'send-all';
31
+
32
+ export type LibSchemaContextConfigShowVisitorInfo = boolean;
33
+
34
+ export type LibSchemaContextConfigPrimaryServer = string;
35
+
36
+ export type LibSchemaContextConfigServers = string[];
37
+
38
+ export type LibSchemaEmailContextConfigName = string;
39
+
40
+ export type LibSchemaEmailContextConfigType = 'email';
41
+
42
+ export type LibSchemaEmailContextConfigId = string;
43
+
44
+ export type LibSchemaEmailContextConfigInterpreter = LibSchemaContextConfigInterpreter;
45
+
46
+ export type LibSchemaEmailContextConfigTopic = string;
47
+
48
+ export type LibSchemaEmailContextConfigErrorTopic = string | undefined;
49
+
50
+ export type LibSchemaEmailContextConfigMode = 'send-once' | 'send-all';
51
+
52
+ export type LibSchemaEmailContextConfigShowVisitorInfo = boolean;
53
+
54
+ export type LibSchemaEmailContextConfigPrimaryServer = string;
55
+
56
+ export type LibSchemaEmailContextConfigServers = string[];
57
+
58
+ export type LibSchemaEmailContextConfigAllowedFrom = string | undefined;
59
+
60
+ export type LibSchemaEmailContextConfig = {
61
+ name: LibSchemaEmailContextConfigName;
62
+ type: LibSchemaEmailContextConfigType;
63
+ id: LibSchemaEmailContextConfigId;
64
+ interpreter: LibSchemaEmailContextConfigInterpreter;
65
+ topic: LibSchemaEmailContextConfigTopic;
66
+ error_topic?: LibSchemaEmailContextConfigErrorTopic | undefined;
67
+ mode: LibSchemaEmailContextConfigMode;
68
+ show_visitor_info: LibSchemaEmailContextConfigShowVisitorInfo;
69
+ primary_server: LibSchemaEmailContextConfigPrimaryServer;
70
+ servers: LibSchemaEmailContextConfigServers;
71
+ allowed_from?: LibSchemaEmailContextConfigAllowedFrom | undefined;
72
+ };
73
+
74
+ export type LibSchemaHttpContextConfigName = string;
75
+
76
+ export type LibSchemaHttpContextConfigType = 'http';
77
+
78
+ export type LibSchemaHttpContextConfigId = string;
79
+
80
+ export type LibSchemaHttpContextConfigInterpreter = LibSchemaContextConfigInterpreter;
81
+
82
+ export type LibSchemaHttpContextConfigTopic = string;
83
+
84
+ export type LibSchemaHttpContextConfigErrorTopic = string | undefined;
85
+
86
+ export type LibSchemaHttpContextConfigMode = 'send-once' | 'send-all';
87
+
88
+ export type LibSchemaHttpContextConfigShowVisitorInfo = boolean;
89
+
90
+ export type LibSchemaHttpContextConfigPrimaryServer = string;
91
+
92
+ export type LibSchemaHttpContextConfigServers = string[];
93
+
94
+ export type LibSchemaHttpContextConfigToken = string | undefined;
95
+
96
+ export type LibSchemaHttpContextConfig = {
97
+ name: LibSchemaHttpContextConfigName;
98
+ type: LibSchemaHttpContextConfigType;
99
+ id: LibSchemaHttpContextConfigId;
100
+ interpreter: LibSchemaHttpContextConfigInterpreter;
101
+ topic: LibSchemaHttpContextConfigTopic;
102
+ error_topic?: LibSchemaHttpContextConfigErrorTopic | undefined;
103
+ mode: LibSchemaHttpContextConfigMode;
104
+ show_visitor_info: LibSchemaHttpContextConfigShowVisitorInfo;
105
+ primary_server: LibSchemaHttpContextConfigPrimaryServer;
106
+ servers: LibSchemaHttpContextConfigServers;
107
+ token?: LibSchemaHttpContextConfigToken | undefined;
108
+ };
109
+
110
+ export type LibSchemaContextConfig = LibSchemaHttpContextConfig | LibSchemaEmailContextConfig;
111
+
112
+ export type LibSchemaServerConfigName = string;
113
+
114
+ export type LibSchemaServerConfigServer = string;
115
+
116
+ export type LibSchemaServerConfigToken = string;
117
+
118
+ export type LibSchemaServerConfig = {
119
+ name: LibSchemaServerConfigName;
120
+ server: LibSchemaServerConfigServer;
121
+ token: LibSchemaServerConfigToken;
122
+ };
123
+
124
+ export type LibSchemaSettingsConfigWorkerName = string;
125
+
126
+ export type LibSchemaSettingsConfigBaseDomain = string;
127
+
128
+ export type LibSchemaSettingsConfigShowResponseOutput = boolean;
129
+
130
+ export type LibSchemaSettingsConfig = {
131
+ worker_name: LibSchemaSettingsConfigWorkerName;
132
+ base_domain: LibSchemaSettingsConfigBaseDomain;
133
+ show_response_output: LibSchemaSettingsConfigShowResponseOutput;
134
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Lib - Utility - Strip Html.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type LibUtilityStripHtmlHtml = string;
7
+
8
+ export type LibUtilityStripHtmlText = string;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Tests - CLI - Commands - Context.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliCommandsContextTestConfigPath = string;
7
+
8
+ export type TestsCliCommandsContextBaseConfig = {
9
+ settings: TestsCliCommandsContextBaseConfigSettings;
10
+ servers: TestsCliCommandsContextBaseConfigServers;
11
+ contexts: TestsCliCommandsContextBaseConfigContexts;
12
+ };
13
+
14
+ export type TestsCliCommandsContextBaseConfigSettings = {
15
+ worker_name: TestsCliCommandsContextBaseConfigSettingsWorkerName;
16
+ base_domain: TestsCliCommandsContextBaseConfigSettingsBaseDomain;
17
+ show_response_output: TestsCliCommandsContextBaseConfigSettingsShowResponseOutput;
18
+ };
19
+
20
+ export type TestsCliCommandsContextBaseConfigSettingsWorkerName = string;
21
+
22
+ export type TestsCliCommandsContextBaseConfigSettingsBaseDomain = string;
23
+
24
+ export type TestsCliCommandsContextBaseConfigSettingsShowResponseOutput = boolean;
25
+
26
+ export type TestsCliCommandsContextBaseConfigServers = TestsCliCommandsContextBaseConfigServer[];
27
+
28
+ export type TestsCliCommandsContextBaseConfigServer = {
29
+ name: TestsCliCommandsContextBaseConfigServerName;
30
+ server: TestsCliCommandsContextBaseConfigServerUrl;
31
+ token: TestsCliCommandsContextBaseConfigServerToken;
32
+ };
33
+
34
+ export type TestsCliCommandsContextBaseConfigServerName = string;
35
+
36
+ export type TestsCliCommandsContextBaseConfigServerUrl = string;
37
+
38
+ export type TestsCliCommandsContextBaseConfigServerToken = string;
39
+
40
+ export type TestsCliCommandsContextBaseConfigContexts = never[];
41
+
42
+ export type TestsCliCommandsContextConfigJson = string;
43
+
44
+ export type TestsCliCommandsContextParsedConfig = {
45
+ contexts: TestsCliCommandsContextParsedConfigContexts;
46
+ };
47
+
48
+ export type TestsCliCommandsContextParsedConfigContexts = TestsCliCommandsContextParsedConfigContext[];
49
+
50
+ export type TestsCliCommandsContextParsedConfigContext = {
51
+ id: string;
52
+ name: string;
53
+ };
54
+
55
+ export type TestsCliCommandsContextContextList = unknown[];
56
+
57
+ export type TestsCliCommandsContextGeneratedId = string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Tests - CLI - Commands - Generate.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliCommandsGenerateTestConfigPath = string;
7
+
8
+ export type TestsCliCommandsGenerateTestOutputPath = string;
9
+
10
+ export type TestsCliCommandsGenerateConfigJson = string;
11
+
12
+ export type TestsCliCommandsGenerateTomlContent = string;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tests - CLI - Commands - Server.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliCommandsServerTestConfigPath = string;
7
+
8
+ export type TestsCliCommandsServerBaseConfig = {
9
+ settings: TestsCliCommandsServerBaseConfigSettings;
10
+ servers: TestsCliCommandsServerBaseConfigServers;
11
+ contexts: TestsCliCommandsServerBaseConfigContexts;
12
+ };
13
+
14
+ export type TestsCliCommandsServerBaseConfigSettings = {
15
+ worker_name: TestsCliCommandsServerBaseConfigSettingsWorkerName;
16
+ base_domain: TestsCliCommandsServerBaseConfigSettingsBaseDomain;
17
+ show_response_output: TestsCliCommandsServerBaseConfigSettingsShowResponseOutput;
18
+ };
19
+
20
+ export type TestsCliCommandsServerBaseConfigSettingsWorkerName = string;
21
+
22
+ export type TestsCliCommandsServerBaseConfigSettingsBaseDomain = string;
23
+
24
+ export type TestsCliCommandsServerBaseConfigSettingsShowResponseOutput = boolean;
25
+
26
+ export type TestsCliCommandsServerBaseConfigServers = never[];
27
+
28
+ export type TestsCliCommandsServerBaseConfigContexts = never[];
29
+
30
+ export type TestsCliCommandsServerParsedConfig = {
31
+ servers: TestsCliCommandsServerParsedConfigServers;
32
+ contexts: TestsCliCommandsServerParsedConfigContexts;
33
+ };
34
+
35
+ export type TestsCliCommandsServerParsedConfigServers = TestsCliCommandsServerParsedConfigServer[];
36
+
37
+ export type TestsCliCommandsServerParsedConfigServer = {
38
+ name: string;
39
+ };
40
+
41
+ export type TestsCliCommandsServerParsedConfigContexts = TestsCliCommandsServerParsedConfigContextsList;
42
+
43
+ export type TestsCliCommandsServerParsedConfigContextsList = unknown[];
44
+
45
+ export type TestsCliCommandsServerServerList = unknown[];
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Tests - CLI - Commands - Settings.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliCommandsSettingsTestConfigPath = string;
7
+
8
+ export type TestsCliCommandsSettingsBaseConfig = {
9
+ settings: TestsCliCommandsSettingsBaseConfigSettings;
10
+ servers: TestsCliCommandsSettingsBaseConfigServers;
11
+ contexts: TestsCliCommandsSettingsBaseConfigContexts;
12
+ };
13
+
14
+ export type TestsCliCommandsSettingsBaseConfigSettings = {
15
+ worker_name: TestsCliCommandsSettingsBaseConfigSettingsWorkerName;
16
+ base_domain: TestsCliCommandsSettingsBaseConfigSettingsBaseDomain;
17
+ show_response_output: TestsCliCommandsSettingsBaseConfigSettingsShowResponseOutput;
18
+ };
19
+
20
+ export type TestsCliCommandsSettingsBaseConfigSettingsWorkerName = string;
21
+
22
+ export type TestsCliCommandsSettingsBaseConfigSettingsBaseDomain = string;
23
+
24
+ export type TestsCliCommandsSettingsBaseConfigSettingsShowResponseOutput = boolean;
25
+
26
+ export type TestsCliCommandsSettingsBaseConfigServers = never[];
27
+
28
+ export type TestsCliCommandsSettingsBaseConfigContexts = never[];
29
+
30
+ export type TestsCliCommandsSettingsSettings = {
31
+ worker_name: string;
32
+ base_domain: string;
33
+ show_response_output: boolean;
34
+ };
35
+
36
+ export type TestsCliCommandsSettingsGetSettingsResult = TestsCliCommandsSettingsSettings;
37
+
38
+ export type TestsCliCommandsSettingsParsedConfig = {
39
+ settings: TestsCliCommandsSettingsSettings;
40
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Tests - CLI - Commands - Validate.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliCommandsValidateTestConfigPath = string;
7
+
8
+ export type TestsCliCommandsValidateConfigJson = string;
9
+
10
+ export type TestsCliCommandsValidateResult = {
11
+ valid: TestsCliCommandsValidateResultValid;
12
+ errors: TestsCliCommandsValidateResultErrors;
13
+ };
14
+
15
+ export type TestsCliCommandsValidateResultValid = boolean;
16
+
17
+ export type TestsCliCommandsValidateResultErrors = string[];
18
+
19
+ export type TestsCliCommandsValidateHasMatch = boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tests - CLI - Menu - Interactive.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsCliMenuInteractiveTestPlaceholder = undefined;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Tests - Lib - Schema.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type TestsLibSchemaInput = Record<string, unknown>;
7
+
8
+ export type TestsLibSchemaParseResult = {
9
+ success: boolean;
10
+ };
@@ -0,0 +1,173 @@
1
+ /**
2
+ * Tests - Type Declarations.
3
+ *
4
+ * @since 0.15.0
5
+ */
6
+ export type TestsTypeDeclarationsTestConfigStandaloneTypeFiles = string[];
7
+
8
+ export type TestsTypeDeclarationsTestConfigTypeRoots = string[];
9
+
10
+ export type TestsTypeDeclarationsTestConfig = {
11
+ standaloneTypeFiles: TestsTypeDeclarationsTestConfigStandaloneTypeFiles;
12
+ typeRoots: TestsTypeDeclarationsTestConfigTypeRoots;
13
+ };
14
+
15
+ export type TestsTypeDeclarationsFiles = string[];
16
+
17
+ export type TestsTypeDeclarationsCurrentDirectory = string;
18
+
19
+ export type TestsTypeDeclarationsRelativePath = string;
20
+
21
+ export type TestsTypeDeclarationsContent = string;
22
+
23
+ export type TestsTypeDeclarationsLines = string[];
24
+
25
+ export type TestsTypeDeclarationsClassPrefix = string;
26
+
27
+ export type TestsTypeDeclarationsImportedNames = Set<string>;
28
+
29
+ export type TestsTypeDeclarationsSections = TestsTypeDeclarationsSection[];
30
+
31
+ export type TestsTypeDeclarationsSectionPrefixes = string[];
32
+
33
+ export type TestsTypeDeclarationsViolations = string[];
34
+
35
+ export type TestsTypeDeclarationsCurrentSectionPrefix = string;
36
+
37
+ export type TestsTypeDeclarationsReferencedTypes = string[];
38
+
39
+ export type TestsTypeDeclarationsIsSameSection = boolean;
40
+
41
+ export type TestsTypeDeclarationsIsImported = boolean;
42
+
43
+ export type TestsTypeDeclarationsIsOtherSection = boolean;
44
+
45
+ export type TestsTypeDeclarationsViolation = string;
46
+
47
+ export type TestsTypeDeclarationsSectionIndex = number;
48
+
49
+ export type TestsTypeDeclarationsSectionPrefix = string;
50
+
51
+ export type TestsTypeDeclarationsSection = {
52
+ prefix: TestsTypeDeclarationsSectionPrefix;
53
+ typeLines: TestsTypeDeclarationsSectionTypeLines;
54
+ };
55
+
56
+ export type TestsTypeDeclarationsCompareResult = number;
57
+
58
+ export type TestsTypeDeclarationsSpecifierBuffer = string[];
59
+
60
+ export type TestsTypeDeclarationsInImportBlock = boolean;
61
+
62
+ export type TestsTypeDeclarationsMatch = RegExpMatchArray | null;
63
+
64
+ export type TestsTypeDeclarationsInlineMatchCapture = string;
65
+
66
+ export type TestsTypeDeclarationsSpecifiers = string[];
67
+
68
+ export type TestsTypeDeclarationsPreviousSpecifier = string | undefined;
69
+
70
+ export type TestsTypeDeclarationsCurrentSpecifier = string | undefined;
71
+
72
+ export type TestsTypeDeclarationsTrimmed = string;
73
+
74
+ export type TestsTypeDeclarationsSourcePath = string;
75
+
76
+ export type TestsTypeDeclarationsSourceExists = boolean;
77
+
78
+ export type TestsTypeDeclarationsSourcePathAlternative = string;
79
+
80
+ export type TestsTypeDeclarationsTypeNames = string[];
81
+
82
+ export type TestsTypeDeclarationsTypePositionName = string;
83
+
84
+ export type TestsTypeDeclarationsTypePositionSourceLine = number;
85
+
86
+ export type TestsTypeDeclarationsTypePositions = TestsTypeDeclarationsTypePosition[];
87
+
88
+ export type TestsTypeDeclarationsSourceLineIndex = number;
89
+
90
+ export type TestsTypeDeclarationsLineIndex = number;
91
+
92
+ export type TestsTypeDeclarationsTypePosition = {
93
+ name: TestsTypeDeclarationsTypePositionName;
94
+ sourceLine: TestsTypeDeclarationsTypePositionSourceLine;
95
+ };
96
+
97
+ export type TestsTypeDeclarationsDefinedTypes = Set<string>;
98
+
99
+ export type TestsTypeDeclarationsLine = string;
100
+
101
+ export type TestsTypeDeclarationsObjectTypeName = string;
102
+
103
+ export type TestsTypeDeclarationsObjectTypeLineIndex = number;
104
+
105
+ export type TestsTypeDeclarationsObjectPropertyLineIndex = number;
106
+
107
+ export type TestsTypeDeclarationsObjectProperty = {
108
+ key: TestsTypeDeclarationsPropertyKey;
109
+ valueType: TestsTypeDeclarationsPropertyValueType;
110
+ typeLineIndex: TestsTypeDeclarationsObjectPropertyLineIndex;
111
+ };
112
+
113
+ export type TestsTypeDeclarationsObjectType = {
114
+ name: TestsTypeDeclarationsObjectTypeName;
115
+ lineIndex: TestsTypeDeclarationsObjectTypeLineIndex;
116
+ properties: TestsTypeDeclarationsObjectProperties;
117
+ };
118
+
119
+ export type TestsTypeDeclarationsObjectTypes = TestsTypeDeclarationsObjectType[];
120
+
121
+ export type TestsTypeDeclarationsPropertyExpectedPrefix = string;
122
+
123
+ export type TestsTypeDeclarationsDiscoverTypeFilesReturns = Promise<TestsTypeDeclarationsFiles>;
124
+
125
+ export type TestsTypeDeclarationsPatterns = string[];
126
+
127
+ export type TestsTypeDeclarationsMatched = string[];
128
+
129
+ export type TestsTypeDeclarationsRelativeCleaned = string;
130
+
131
+ export type TestsTypeDeclarationsSegments = string[];
132
+
133
+ export type TestsTypeDeclarationsCurrentSection = TestsTypeDeclarationsSection | undefined;
134
+
135
+ export type TestsTypeDeclarationsSectionComment = RegExpMatchArray | null;
136
+
137
+ export type TestsTypeDeclarationsRawPrefix = string;
138
+
139
+ export type TestsTypeDeclarationsMethodName = string;
140
+
141
+ export type TestsTypeDeclarationsTypeName = string;
142
+
143
+ export type TestsTypeDeclarationsRightSide = string;
144
+
145
+ export type TestsTypeDeclarationsTypePattern = RegExp;
146
+
147
+ export type TestsTypeDeclarationsTypeMatch = RegExpExecArray | null;
148
+
149
+ export type TestsTypeDeclarationsReferencedType = string;
150
+
151
+ export type TestsTypeDeclarationsFileExistsReturns = Promise<boolean>;
152
+
153
+ export type TestsTypeDeclarationsPackageRoot = string;
154
+
155
+ export type TestsTypeDeclarationsCurrentFilePath = string;
156
+
157
+ export type TestsTypeDeclarationsCurrentFileDirectory = string;
158
+
159
+ export type TestsTypeDeclarationsSectionTypeLines = string[];
160
+
161
+ export type TestsTypeDeclarationsTypeNamePattern = RegExp;
162
+
163
+ export type TestsTypeDeclarationsTypeLineMap = Map<string, number>;
164
+
165
+ export type TestsTypeDeclarationsObjectProperties = TestsTypeDeclarationsObjectProperty[];
166
+
167
+ export type TestsTypeDeclarationsPropertyKey = string;
168
+
169
+ export type TestsTypeDeclarationsPropertyValueType = string;
170
+
171
+ export type TestsTypeDeclarationsExpectedPrefix = string;
172
+
173
+ export type TestsTypeDeclarationsObjectPropertyName = string;
@@ -0,0 +1,20 @@
1
+ import type { LibSchemaConfigSchema } from '../../lib/schema.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Index.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerIndexConfig = LibSchemaConfigSchema;
9
+
10
+ export type TestsWorkerIndexRequest = Request;
11
+
12
+ export type TestsWorkerIndexResponse = Response;
13
+
14
+ export type TestsWorkerIndexResponseBody = Record<string, unknown>;
15
+
16
+ export type TestsWorkerIndexContentType = string | null;
17
+
18
+ export type TestsWorkerIndexMockFetch = ReturnType<typeof import('vitest')['vi']['fn']>;
19
+
20
+ export type TestsWorkerIndexRawEmail = string;
@@ -0,0 +1,19 @@
1
+ import type {
2
+ WorkerPipelineInterpretNotificationObject,
3
+ WorkerPipelineInterpretResult,
4
+ } from '../../../worker/pipeline/interpret.d.ts';
5
+
6
+ /**
7
+ * Tests - Worker - Interpreters - Ntfy JSON.
8
+ *
9
+ * @since 2.0.0
10
+ */
11
+ export type TestsWorkerInterpretersNtfyJsonResult = WorkerPipelineInterpretResult | null;
12
+
13
+ export type TestsWorkerInterpretersNtfyJsonInput = Record<string, unknown>;
14
+
15
+ export type TestsWorkerInterpretersNtfyJsonNotification = WorkerPipelineInterpretNotificationObject;
16
+
17
+ export type TestsWorkerInterpretersNtfyJsonUnknownField = unknown;
18
+
19
+ export type TestsWorkerInterpretersNtfyJsonRecordCast = Record<string, unknown>;
@@ -0,0 +1,10 @@
1
+ import type { WorkerPipelineInterpretResult } from '../../../worker/pipeline/interpret.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Interpreters - Pfsense.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerInterpretersPfsenseResult = WorkerPipelineInterpretResult;
9
+
10
+ export type TestsWorkerInterpretersPfsenseBody = string;
@@ -0,0 +1,10 @@
1
+ import type { WorkerPipelineInterpretResult } from '../../../worker/pipeline/interpret.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Interpreters - Plain Text.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerInterpretersPlainTextResult = WorkerPipelineInterpretResult;
9
+
10
+ export type TestsWorkerInterpretersPlainTextBuffer = ArrayBuffer;
@@ -0,0 +1,8 @@
1
+ import type { WorkerPipelineInterpretResult } from '../../../worker/pipeline/interpret.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Interpreters - Seerr.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerInterpretersSeerrResult = WorkerPipelineInterpretResult;
@@ -0,0 +1,58 @@
1
+ import type {
2
+ WorkerPipelineInterpretNotificationObject,
3
+ WorkerPipelineInterpretResult,
4
+ } from '../../../worker/pipeline/interpret.d.ts';
5
+
6
+ /**
7
+ * Tests - Worker - Interpreters - Statuspage.
8
+ *
9
+ * @since 2.0.0
10
+ */
11
+ export type TestsWorkerInterpretersStatuspageKvInitial = Record<string, string>;
12
+
13
+ export type TestsWorkerInterpretersStatuspageKvMock = {
14
+ get: TestsWorkerInterpretersStatuspageKvMockFn;
15
+ put: TestsWorkerInterpretersStatuspageKvMockFn;
16
+ delete: TestsWorkerInterpretersStatuspageKvMockFn;
17
+ store: TestsWorkerInterpretersStatuspageKvStore;
18
+ };
19
+
20
+ export type TestsWorkerInterpretersStatuspageKvStore = Map<string, string>;
21
+
22
+ export type TestsWorkerInterpretersStatuspageKvGetFn = (key: string) => Promise<string | null>;
23
+
24
+ export type TestsWorkerInterpretersStatuspageStoredRaw = string | undefined;
25
+
26
+ export type TestsWorkerInterpretersStatuspageKvGetReturn = string | null;
27
+
28
+ export type TestsWorkerInterpretersStatuspageKvPutFn = (key: string, value: string) => Promise<void>;
29
+
30
+ export type TestsWorkerInterpretersStatuspageKvDeleteFn = (key: string) => Promise<void>;
31
+
32
+ export type TestsWorkerInterpretersStatuspageKvMockFn = ReturnType<typeof import('vitest')['vi']['fn']>;
33
+
34
+ export type TestsWorkerInterpretersStatuspageImpact = string;
35
+
36
+ export type TestsWorkerInterpretersStatuspageMakeInputReturn = Record<string, unknown>;
37
+
38
+ export type TestsWorkerInterpretersStatuspageInput = Record<string, unknown>;
39
+
40
+ export type TestsWorkerInterpretersStatuspageResult = WorkerPipelineInterpretResult | null;
41
+
42
+ export type TestsWorkerInterpretersStatuspageKvCast = unknown;
43
+
44
+ export type TestsWorkerInterpretersStatuspageStoredParsed = Record<string, unknown>;
45
+
46
+ export type TestsWorkerInterpretersStatuspageStoredRawCast = string;
47
+
48
+ export type TestsWorkerInterpretersStatuspageStoredComponentsRecord = Record<string, unknown>;
49
+
50
+ export type TestsWorkerInterpretersStatuspageExistingState = string;
51
+
52
+ export type TestsWorkerInterpretersStatuspageNotification = WorkerPipelineInterpretNotificationObject;
53
+
54
+ export type TestsWorkerInterpretersStatuspageResultNotNull = WorkerPipelineInterpretResult;
55
+
56
+ export type TestsWorkerInterpretersStatuspageStoreHasResult = boolean;
57
+
58
+ export type TestsWorkerInterpretersStatuspagePromise = Promise<WorkerPipelineInterpretResult | null>;
@@ -0,0 +1,8 @@
1
+ import type { WorkerPipelineInterpretResult } from '../../../worker/pipeline/interpret.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Interpreters - Synology.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerInterpretersSynologyResult = WorkerPipelineInterpretResult;
@@ -0,0 +1,8 @@
1
+ import type { WorkerPipelineInterpretResult } from '../../../worker/pipeline/interpret.d.ts';
2
+
3
+ /**
4
+ * Tests - Worker - Interpreters - Unifi.
5
+ *
6
+ * @since 2.0.0
7
+ */
8
+ export type TestsWorkerInterpretersUnifiResult = WorkerPipelineInterpretResult;