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
@@ -3,132 +3,140 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type LibSchemaConfigSchemaSettings = LibSchemaSettingsConfig;
6
+ export type Lib_Schema_ContextConfigName = string;
7
7
 
8
- export type LibSchemaConfigSchemaServers = LibSchemaServerConfig[];
8
+ export type Lib_Schema_ContextConfigType = 'http' | 'email';
9
9
 
10
- export type LibSchemaConfigSchemaContexts = LibSchemaContextConfig[];
10
+ export type Lib_Schema_ContextConfigId = string;
11
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';
12
+ export type Lib_Schema_ContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
21
13
 
22
- export type LibSchemaContextConfigId = string;
14
+ export type Lib_Schema_ContextConfigTopic = string;
23
15
 
24
- export type LibSchemaContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
16
+ export type Lib_Schema_ContextConfigErrorTopic = string | undefined;
25
17
 
26
- export type LibSchemaContextConfigTopic = string;
18
+ export type Lib_Schema_ContextConfigErrorEvent = 'authentication' | 'interpretation';
27
19
 
28
- export type LibSchemaContextConfigErrorTopic = string | undefined;
20
+ export type Lib_Schema_ContextConfigMode = 'send-once' | 'send-all';
29
21
 
30
- export type LibSchemaContextConfigMode = 'send-once' | 'send-all';
22
+ export type Lib_Schema_ContextConfigShowVisitorInfo = boolean;
31
23
 
32
- export type LibSchemaContextConfigShowVisitorInfo = boolean;
24
+ export type Lib_Schema_ContextConfigPrimaryServer = string;
33
25
 
34
- export type LibSchemaContextConfigPrimaryServer = string;
26
+ export type Lib_Schema_ContextConfigServers = string[];
35
27
 
36
- export type LibSchemaContextConfigServers = string[];
28
+ export type Lib_Schema_EmailContextConfigName = string;
37
29
 
38
- export type LibSchemaEmailContextConfigName = string;
30
+ export type Lib_Schema_EmailContextConfigType = 'email';
39
31
 
40
- export type LibSchemaEmailContextConfigType = 'email';
32
+ export type Lib_Schema_EmailContextConfigId = string;
41
33
 
42
- export type LibSchemaEmailContextConfigId = string;
34
+ export type Lib_Schema_EmailContextConfigInterpreter = Lib_Schema_ContextConfigInterpreter;
43
35
 
44
- export type LibSchemaEmailContextConfigInterpreter = LibSchemaContextConfigInterpreter;
36
+ export type Lib_Schema_EmailContextConfigTopic = string;
45
37
 
46
- export type LibSchemaEmailContextConfigTopic = string;
38
+ export type Lib_Schema_EmailContextConfigErrorTopic = string | undefined;
47
39
 
48
- export type LibSchemaEmailContextConfigErrorTopic = string | undefined;
40
+ export type Lib_Schema_EmailContextConfigErrorEvents = Lib_Schema_ContextConfigErrorEvent[] | undefined;
49
41
 
50
- export type LibSchemaEmailContextConfigMode = 'send-once' | 'send-all';
42
+ export type Lib_Schema_EmailContextConfigMode = 'send-once' | 'send-all';
51
43
 
52
- export type LibSchemaEmailContextConfigShowVisitorInfo = boolean;
44
+ export type Lib_Schema_EmailContextConfigShowVisitorInfo = boolean;
53
45
 
54
- export type LibSchemaEmailContextConfigPrimaryServer = string;
46
+ export type Lib_Schema_EmailContextConfigPrimaryServer = string;
55
47
 
56
- export type LibSchemaEmailContextConfigServers = string[];
48
+ export type Lib_Schema_EmailContextConfigServers = string[];
57
49
 
58
- export type LibSchemaEmailContextConfigAllowedFrom = string | undefined;
50
+ export type Lib_Schema_EmailContextConfigAllowedFrom = string | undefined;
59
51
 
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;
52
+ export type Lib_Schema_EmailContextConfig = {
53
+ name: Lib_Schema_EmailContextConfigName;
54
+ type: Lib_Schema_EmailContextConfigType;
55
+ id: Lib_Schema_EmailContextConfigId;
56
+ interpreter: Lib_Schema_EmailContextConfigInterpreter;
57
+ topic: Lib_Schema_EmailContextConfigTopic;
58
+ error_topic?: Lib_Schema_EmailContextConfigErrorTopic | undefined;
59
+ error_events?: Lib_Schema_EmailContextConfigErrorEvents | undefined;
60
+ mode: Lib_Schema_EmailContextConfigMode;
61
+ show_visitor_info: Lib_Schema_EmailContextConfigShowVisitorInfo;
62
+ primary_server: Lib_Schema_EmailContextConfigPrimaryServer;
63
+ servers: Lib_Schema_EmailContextConfigServers;
64
+ allowed_from?: Lib_Schema_EmailContextConfigAllowedFrom | undefined;
72
65
  };
73
66
 
74
- export type LibSchemaHttpContextConfigName = string;
67
+ export type Lib_Schema_HttpContextConfigName = string;
75
68
 
76
- export type LibSchemaHttpContextConfigType = 'http';
69
+ export type Lib_Schema_HttpContextConfigType = 'http';
77
70
 
78
- export type LibSchemaHttpContextConfigId = string;
71
+ export type Lib_Schema_HttpContextConfigId = string;
79
72
 
80
- export type LibSchemaHttpContextConfigInterpreter = LibSchemaContextConfigInterpreter;
73
+ export type Lib_Schema_HttpContextConfigInterpreter = Lib_Schema_ContextConfigInterpreter;
81
74
 
82
- export type LibSchemaHttpContextConfigTopic = string;
75
+ export type Lib_Schema_HttpContextConfigTopic = string;
83
76
 
84
- export type LibSchemaHttpContextConfigErrorTopic = string | undefined;
77
+ export type Lib_Schema_HttpContextConfigErrorTopic = string | undefined;
85
78
 
86
- export type LibSchemaHttpContextConfigMode = 'send-once' | 'send-all';
79
+ export type Lib_Schema_HttpContextConfigErrorEvents = Lib_Schema_ContextConfigErrorEvent[] | undefined;
87
80
 
88
- export type LibSchemaHttpContextConfigShowVisitorInfo = boolean;
81
+ export type Lib_Schema_HttpContextConfigMode = 'send-once' | 'send-all';
89
82
 
90
- export type LibSchemaHttpContextConfigPrimaryServer = string;
83
+ export type Lib_Schema_HttpContextConfigShowVisitorInfo = boolean;
91
84
 
92
- export type LibSchemaHttpContextConfigServers = string[];
85
+ export type Lib_Schema_HttpContextConfigPrimaryServer = string;
93
86
 
94
- export type LibSchemaHttpContextConfigToken = string | undefined;
87
+ export type Lib_Schema_HttpContextConfigServers = string[];
95
88
 
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;
89
+ export type Lib_Schema_HttpContextConfigToken = string | undefined;
90
+
91
+ export type Lib_Schema_HttpContextConfig = {
92
+ name: Lib_Schema_HttpContextConfigName;
93
+ type: Lib_Schema_HttpContextConfigType;
94
+ id: Lib_Schema_HttpContextConfigId;
95
+ interpreter: Lib_Schema_HttpContextConfigInterpreter;
96
+ topic: Lib_Schema_HttpContextConfigTopic;
97
+ error_topic?: Lib_Schema_HttpContextConfigErrorTopic | undefined;
98
+ error_events?: Lib_Schema_HttpContextConfigErrorEvents | undefined;
99
+ mode: Lib_Schema_HttpContextConfigMode;
100
+ show_visitor_info: Lib_Schema_HttpContextConfigShowVisitorInfo;
101
+ primary_server: Lib_Schema_HttpContextConfigPrimaryServer;
102
+ servers: Lib_Schema_HttpContextConfigServers;
103
+ token?: Lib_Schema_HttpContextConfigToken | undefined;
108
104
  };
109
105
 
110
- export type LibSchemaContextConfig = LibSchemaHttpContextConfig | LibSchemaEmailContextConfig;
106
+ export type Lib_Schema_ContextConfig = Lib_Schema_HttpContextConfig | Lib_Schema_EmailContextConfig;
107
+
108
+ export type Lib_Schema_ServerConfigName = string;
109
+
110
+ export type Lib_Schema_ServerConfigServer = string;
111
+
112
+ export type Lib_Schema_ServerConfigToken = string;
113
+
114
+ export type Lib_Schema_ServerConfig = {
115
+ name: Lib_Schema_ServerConfigName;
116
+ server: Lib_Schema_ServerConfigServer;
117
+ token: Lib_Schema_ServerConfigToken;
118
+ };
111
119
 
112
- export type LibSchemaServerConfigName = string;
120
+ export type Lib_Schema_SettingsConfigWorkerName = string;
113
121
 
114
- export type LibSchemaServerConfigServer = string;
122
+ export type Lib_Schema_SettingsConfigBaseDomain = string;
115
123
 
116
- export type LibSchemaServerConfigToken = string;
124
+ export type Lib_Schema_SettingsConfigShowResponseOutput = boolean;
117
125
 
118
- export type LibSchemaServerConfig = {
119
- name: LibSchemaServerConfigName;
120
- server: LibSchemaServerConfigServer;
121
- token: LibSchemaServerConfigToken;
126
+ export type Lib_Schema_SettingsConfig = {
127
+ worker_name: Lib_Schema_SettingsConfigWorkerName;
128
+ base_domain: Lib_Schema_SettingsConfigBaseDomain;
129
+ show_response_output: Lib_Schema_SettingsConfigShowResponseOutput;
122
130
  };
123
131
 
124
- export type LibSchemaSettingsConfigWorkerName = string;
132
+ export type Lib_Schema_ConfigSchemaSettings = Lib_Schema_SettingsConfig;
125
133
 
126
- export type LibSchemaSettingsConfigBaseDomain = string;
134
+ export type Lib_Schema_ConfigSchemaServers = Lib_Schema_ServerConfig[];
127
135
 
128
- export type LibSchemaSettingsConfigShowResponseOutput = boolean;
136
+ export type Lib_Schema_ConfigSchemaContexts = Lib_Schema_ContextConfig[];
129
137
 
130
- export type LibSchemaSettingsConfig = {
131
- worker_name: LibSchemaSettingsConfigWorkerName;
132
- base_domain: LibSchemaSettingsConfigBaseDomain;
133
- show_response_output: LibSchemaSettingsConfigShowResponseOutput;
138
+ export type Lib_Schema_ConfigSchema = {
139
+ settings: Lib_Schema_ConfigSchemaSettings;
140
+ servers: Lib_Schema_ConfigSchemaServers;
141
+ contexts: Lib_Schema_ConfigSchemaContexts;
134
142
  };
@@ -3,6 +3,8 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type LibUtilityStripHtmlHtml = string;
6
+ export type Lib_Utility_StripHtml_Html = string;
7
7
 
8
- export type LibUtilityStripHtmlText = string;
8
+ export type Lib_Utility_StripHtml_Returns = string;
9
+
10
+ export type Lib_Utility_StripHtml_Text = string;
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Shared - Status Page - Component Diff Entry.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type Shared_StatusPage_ComponentDiffEntry_Name = string;
7
+
8
+ export type Shared_StatusPage_ComponentDiffEntry_NewStatus = string;
9
+
10
+ export type Shared_StatusPage_ComponentDiffEntry_OldStatus = string | undefined;
11
+
12
+ export type Shared_StatusPage_ComponentDiffEntry_Changed = boolean;
13
+
14
+ export type Shared_StatusPage_ComponentDiffEntry = {
15
+ name: Shared_StatusPage_ComponentDiffEntry_Name;
16
+ oldStatus: Shared_StatusPage_ComponentDiffEntry_OldStatus;
17
+ newStatus: Shared_StatusPage_ComponentDiffEntry_NewStatus;
18
+ changed: Shared_StatusPage_ComponentDiffEntry_Changed;
19
+ };
20
+
21
+ /**
22
+ * Shared - Status Page - Component Diff.
23
+ *
24
+ * @since 2.0.0
25
+ */
26
+ export type Shared_StatusPage_ComponentDiff = Shared_StatusPage_ComponentDiffEntry[];
27
+
28
+ /**
29
+ * Shared - Status Page - Component State.
30
+ *
31
+ * @since 2.0.0
32
+ */
33
+ export type Shared_StatusPage_ComponentState_Name = string;
34
+
35
+ export type Shared_StatusPage_ComponentState_Status = string;
36
+
37
+ export type Shared_StatusPage_ComponentState = {
38
+ name: Shared_StatusPage_ComponentState_Name;
39
+ status: Shared_StatusPage_ComponentState_Status;
40
+ };
41
+
42
+ /**
43
+ * Shared - Status Page - Components Map.
44
+ *
45
+ * @since 2.0.0
46
+ */
47
+ export type Shared_StatusPage_ComponentsMap = Record<string, Shared_StatusPage_ComponentState>;
48
+
49
+ /**
50
+ * Shared - Status Page - Stored State.
51
+ *
52
+ * @since 2.0.0
53
+ */
54
+ export type Shared_StatusPage_StoredState_IncidentId = string | undefined;
55
+
56
+ export type Shared_StatusPage_StoredState_IncidentName = string | undefined;
57
+
58
+ export type Shared_StatusPage_StoredState_Status = string | undefined;
59
+
60
+ export type Shared_StatusPage_StoredState_Impact = string | undefined;
61
+
62
+ export type Shared_StatusPage_StoredState_Body = string | undefined;
63
+
64
+ export type Shared_StatusPage_StoredState_Shortlink = string | undefined;
65
+
66
+ export type Shared_StatusPage_StoredState_ServiceName = string;
67
+
68
+ export type Shared_StatusPage_StoredState_UnsubscribeUrl = string | undefined;
69
+
70
+ export type Shared_StatusPage_StoredState_UpdateId = string | undefined;
71
+
72
+ export type Shared_StatusPage_StoredState_Components = Shared_StatusPage_ComponentsMap;
73
+
74
+ export type Shared_StatusPage_StoredState = {
75
+ incidentId: Shared_StatusPage_StoredState_IncidentId;
76
+ incidentName: Shared_StatusPage_StoredState_IncidentName;
77
+ status: Shared_StatusPage_StoredState_Status;
78
+ impact: Shared_StatusPage_StoredState_Impact;
79
+ body: Shared_StatusPage_StoredState_Body;
80
+ shortlink: Shared_StatusPage_StoredState_Shortlink;
81
+ serviceName: Shared_StatusPage_StoredState_ServiceName;
82
+ unsubscribeUrl: Shared_StatusPage_StoredState_UnsubscribeUrl;
83
+ updateId: Shared_StatusPage_StoredState_UpdateId;
84
+ components: Shared_StatusPage_StoredState_Components;
85
+ };
@@ -3,55 +3,126 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliCommandsContextTestConfigPath = string;
6
+ export type Tests_Cli_Commands_Context_TestConfigPathFragment = string;
7
7
 
8
- export type TestsCliCommandsContextBaseConfig = {
9
- settings: TestsCliCommandsContextBaseConfigSettings;
10
- servers: TestsCliCommandsContextBaseConfigServers;
11
- contexts: TestsCliCommandsContextBaseConfigContexts;
12
- };
8
+ export type Tests_Cli_Commands_Context_TestConfigTmpDir = string;
9
+
10
+ export type Tests_Cli_Commands_Context_TestConfigPath = string;
11
+
12
+ export type Tests_Cli_Commands_Context_BaseConfigSettingsWorkerName = string;
13
+
14
+ export type Tests_Cli_Commands_Context_BaseConfigSettingsBaseDomain = string;
13
15
 
14
- export type TestsCliCommandsContextBaseConfigSettings = {
15
- worker_name: TestsCliCommandsContextBaseConfigSettingsWorkerName;
16
- base_domain: TestsCliCommandsContextBaseConfigSettingsBaseDomain;
17
- show_response_output: TestsCliCommandsContextBaseConfigSettingsShowResponseOutput;
16
+ export type Tests_Cli_Commands_Context_BaseConfigSettingsShowResponseOutput = boolean;
17
+
18
+ export type Tests_Cli_Commands_Context_BaseConfigSettings = {
19
+ worker_name: Tests_Cli_Commands_Context_BaseConfigSettingsWorkerName;
20
+ base_domain: Tests_Cli_Commands_Context_BaseConfigSettingsBaseDomain;
21
+ show_response_output: Tests_Cli_Commands_Context_BaseConfigSettingsShowResponseOutput;
18
22
  };
19
23
 
20
- export type TestsCliCommandsContextBaseConfigSettingsWorkerName = string;
24
+ export type Tests_Cli_Commands_Context_BaseConfigServerName = string;
25
+
26
+ export type Tests_Cli_Commands_Context_BaseConfigServerUrl = string;
21
27
 
22
- export type TestsCliCommandsContextBaseConfigSettingsBaseDomain = string;
28
+ export type Tests_Cli_Commands_Context_BaseConfigServerToken = string;
29
+
30
+ export type Tests_Cli_Commands_Context_BaseConfigServer = {
31
+ name: Tests_Cli_Commands_Context_BaseConfigServerName;
32
+ server: Tests_Cli_Commands_Context_BaseConfigServerUrl;
33
+ token: Tests_Cli_Commands_Context_BaseConfigServerToken;
34
+ };
23
35
 
24
- export type TestsCliCommandsContextBaseConfigSettingsShowResponseOutput = boolean;
36
+ export type Tests_Cli_Commands_Context_BaseConfigServers = Tests_Cli_Commands_Context_BaseConfigServer[];
25
37
 
26
- export type TestsCliCommandsContextBaseConfigServers = TestsCliCommandsContextBaseConfigServer[];
38
+ export type Tests_Cli_Commands_Context_BaseConfigContexts = never[];
27
39
 
28
- export type TestsCliCommandsContextBaseConfigServer = {
29
- name: TestsCliCommandsContextBaseConfigServerName;
30
- server: TestsCliCommandsContextBaseConfigServerUrl;
31
- token: TestsCliCommandsContextBaseConfigServerToken;
40
+ export type Tests_Cli_Commands_Context_BaseConfig = {
41
+ settings: Tests_Cli_Commands_Context_BaseConfigSettings;
42
+ servers: Tests_Cli_Commands_Context_BaseConfigServers;
43
+ contexts: Tests_Cli_Commands_Context_BaseConfigContexts;
32
44
  };
33
45
 
34
- export type TestsCliCommandsContextBaseConfigServerName = string;
46
+ /**
47
+ * Tests - CLI - Commands - Context.
48
+ *
49
+ * @since 2.0.0
50
+ */
51
+ export type Tests_Cli_Commands_Context_ContextCommands_ConfigJson = string;
35
52
 
36
- export type TestsCliCommandsContextBaseConfigServerUrl = string;
53
+ /**
54
+ * Tests - CLI - Commands - Context.
55
+ *
56
+ * @since 2.0.0
57
+ */
58
+ export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_ConfigJson = string;
59
+
60
+ export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config_Contexts = unknown[];
61
+
62
+ export type Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config = {
63
+ contexts: Tests_Cli_Commands_Context_ContextCommands_AddsAContext_Config_Contexts;
64
+ };
65
+
66
+ /**
67
+ * Tests - CLI - Commands - Context.
68
+ *
69
+ * @since 2.0.0
70
+ */
71
+ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_ConfigJson = string;
37
72
 
38
- export type TestsCliCommandsContextBaseConfigServerToken = string;
73
+ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item_Id = string;
39
74
 
40
- export type TestsCliCommandsContextBaseConfigContexts = never[];
75
+ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item = {
76
+ id: Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item_Id;
77
+ };
41
78
 
42
- export type TestsCliCommandsContextConfigJson = string;
79
+ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts = Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts_Item[];
43
80
 
44
- export type TestsCliCommandsContextParsedConfig = {
45
- contexts: TestsCliCommandsContextParsedConfigContexts;
81
+ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config = {
82
+ contexts: Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts;
46
83
  };
47
84
 
48
- export type TestsCliCommandsContextParsedConfigContexts = TestsCliCommandsContextParsedConfigContext[];
85
+ /**
86
+ * Tests - CLI - Commands - Context.
87
+ *
88
+ * @since 2.0.0
89
+ */
90
+ export type Tests_Cli_Commands_Context_ContextCommands_GeneratesRandomIdStrings_Id1 = string;
91
+
92
+ export type Tests_Cli_Commands_Context_ContextCommands_GeneratesRandomIdStrings_Id2 = string;
49
93
 
50
- export type TestsCliCommandsContextParsedConfigContext = {
51
- id: string;
52
- name: string;
94
+ /**
95
+ * Tests - CLI - Commands - Context.
96
+ *
97
+ * @since 2.0.0
98
+ */
99
+ export type Tests_Cli_Commands_Context_ContextCommands_ListsContexts_Contexts = unknown[];
100
+
101
+ /**
102
+ * Tests - CLI - Commands - Context.
103
+ *
104
+ * @since 2.0.0
105
+ */
106
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config_Contexts = unknown[];
107
+
108
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config = {
109
+ contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsContextReferencingNonExistentServer_Config_Contexts;
53
110
  };
54
111
 
55
- export type TestsCliCommandsContextContextList = unknown[];
112
+ /**
113
+ * Tests - CLI - Commands - Context.
114
+ *
115
+ * @since 2.0.0
116
+ */
117
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config_Contexts = unknown[];
118
+
119
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config = {
120
+ contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config_Contexts;
121
+ };
56
122
 
57
- export type TestsCliCommandsContextGeneratedId = string;
123
+ /**
124
+ * Tests - CLI - Commands - Context.
125
+ *
126
+ * @since 2.0.0
127
+ */
128
+ export type Tests_Cli_Commands_Context_ContextCommands_RemovesAContext_Contexts = unknown[];
@@ -3,10 +3,56 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type TestsCliCommandsGenerateTestConfigPath = string;
6
+ export type Tests_Cli_Commands_Generate_TestConfigPathFragment = string;
7
7
 
8
- export type TestsCliCommandsGenerateTestOutputPath = string;
8
+ export type Tests_Cli_Commands_Generate_TestConfigTmpDir = string;
9
9
 
10
- export type TestsCliCommandsGenerateConfigJson = string;
10
+ export type Tests_Cli_Commands_Generate_TestConfigPath = string;
11
11
 
12
- export type TestsCliCommandsGenerateTomlContent = string;
12
+ export type Tests_Cli_Commands_Generate_TestOutputPathFragment = string;
13
+
14
+ export type Tests_Cli_Commands_Generate_TestOutputPath = string;
15
+
16
+ /**
17
+ * Tests - CLI - Commands - Generate.
18
+ *
19
+ * @since 2.0.0
20
+ */
21
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ConfigJson = string;
22
+
23
+ /**
24
+ * Tests - CLI - Commands - Generate.
25
+ *
26
+ * @since 2.0.0
27
+ */
28
+ export type Tests_Cli_Commands_Generate_GenerateCommand_EmbedsConfigAsVars_Toml = string;
29
+
30
+ /**
31
+ * Tests - CLI - Commands - Generate.
32
+ *
33
+ * @since 2.0.0
34
+ */
35
+ export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesEmailRoutingCommentsForEmailContexts_Toml = string;
36
+
37
+ /**
38
+ * Tests - CLI - Commands - Generate.
39
+ *
40
+ * @since 2.0.0
41
+ */
42
+ export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesRoutesFromHTTPContextIdsAndBaseDomain_Toml = string;
43
+
44
+ /**
45
+ * Tests - CLI - Commands - Generate.
46
+ *
47
+ * @since 2.0.0
48
+ */
49
+ export type Tests_Cli_Commands_Generate_GenerateCommand_GeneratesValidWranglerToml_Toml = string;
50
+
51
+ /**
52
+ * Tests - CLI - Commands - Generate.
53
+ *
54
+ * @since 2.0.0
55
+ */
56
+ export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSectionWhenNoEmailContextsExist_ConfigJson = string;
57
+
58
+ export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSectionWhenNoEmailContextsExist_Toml = string;