ntfy-reverse-proxy 2.0.4 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +10 -0
  3. package/build/src/cli/commands/config-io.d.ts +3 -3
  4. package/build/src/cli/commands/config-io.d.ts.map +1 -1
  5. package/build/src/cli/commands/config-io.js +1 -1
  6. package/build/src/cli/commands/config-io.js.map +1 -1
  7. package/build/src/cli/commands/context.d.ts +7 -7
  8. package/build/src/cli/commands/context.d.ts.map +1 -1
  9. package/build/src/cli/commands/context.js +1 -1
  10. package/build/src/cli/commands/context.js.map +1 -1
  11. package/build/src/cli/commands/deploy.d.ts +2 -2
  12. package/build/src/cli/commands/deploy.d.ts.map +1 -1
  13. package/build/src/cli/commands/deploy.js +72 -30
  14. package/build/src/cli/commands/deploy.js.map +1 -1
  15. package/build/src/cli/commands/generate.d.ts +2 -2
  16. package/build/src/cli/commands/generate.d.ts.map +1 -1
  17. package/build/src/cli/commands/generate.js +3 -3
  18. package/build/src/cli/commands/generate.js.map +1 -1
  19. package/build/src/cli/commands/server.d.ts +5 -5
  20. package/build/src/cli/commands/server.d.ts.map +1 -1
  21. package/build/src/cli/commands/server.js.map +1 -1
  22. package/build/src/cli/commands/settings.d.ts +3 -3
  23. package/build/src/cli/commands/settings.d.ts.map +1 -1
  24. package/build/src/cli/commands/settings.js.map +1 -1
  25. package/build/src/cli/commands/validate.d.ts +2 -2
  26. package/build/src/cli/commands/validate.d.ts.map +1 -1
  27. package/build/src/cli/commands/validate.js +3 -0
  28. package/build/src/cli/commands/validate.js.map +1 -1
  29. package/build/src/cli/index.d.ts +2 -2
  30. package/build/src/cli/index.d.ts.map +1 -1
  31. package/build/src/cli/index.js +4 -4
  32. package/build/src/cli/index.js.map +1 -1
  33. package/build/src/cli/menu/interactive.d.ts +2 -2
  34. package/build/src/cli/menu/interactive.d.ts.map +1 -1
  35. package/build/src/cli/menu/interactive.js +260 -94
  36. package/build/src/cli/menu/interactive.js.map +1 -1
  37. package/build/src/lib/regex.d.ts +4 -1
  38. package/build/src/lib/regex.d.ts.map +1 -1
  39. package/build/src/lib/regex.js +4 -1
  40. package/build/src/lib/regex.js.map +1 -1
  41. package/build/src/lib/schema.d.ts +24 -0
  42. package/build/src/lib/schema.d.ts.map +1 -1
  43. package/build/src/lib/schema.js +11 -2
  44. package/build/src/lib/schema.js.map +1 -1
  45. package/build/src/lib/utility.d.ts +2 -2
  46. package/build/src/lib/utility.d.ts.map +1 -1
  47. package/build/src/lib/utility.js +1 -1
  48. package/build/src/lib/utility.js.map +1 -1
  49. package/build/src/types/cli/commands/config-io.d.ts +12 -12
  50. package/build/src/types/cli/commands/context.d.ts +96 -58
  51. package/build/src/types/cli/commands/deploy.d.ts +342 -298
  52. package/build/src/types/cli/commands/generate.d.ts +40 -24
  53. package/build/src/types/cli/commands/server.d.ts +23 -23
  54. package/build/src/types/cli/commands/settings.d.ts +8 -8
  55. package/build/src/types/cli/commands/validate.d.ts +16 -16
  56. package/build/src/types/cli/index.d.ts +16 -20
  57. package/build/src/types/cli/menu/interactive.d.ts +233 -178
  58. package/build/src/types/lib/schema.d.ts +89 -81
  59. package/build/src/types/lib/utility.d.ts +4 -2
  60. package/build/src/types/shared.d.ts +85 -0
  61. package/build/src/types/tests/cli/commands/context.test.d.ts +102 -31
  62. package/build/src/types/tests/cli/commands/generate.test.d.ts +50 -4
  63. package/build/src/types/tests/cli/commands/server.test.d.ts +88 -23
  64. package/build/src/types/tests/cli/commands/settings.test.d.ts +65 -21
  65. package/build/src/types/tests/cli/commands/validate.test.d.ts +69 -8
  66. package/build/src/types/tests/cli/menu/interactive-integration.test.d.ts +99 -0
  67. package/build/src/types/tests/cli/menu/interactive.test.d.ts +275 -2
  68. package/build/src/types/tests/lib/schema.test.d.ts +258 -3
  69. package/build/src/types/tests/worker/index.test.d.ts +166 -8
  70. package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +94 -10
  71. package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +163 -4
  72. package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +67 -4
  73. package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +138 -3
  74. package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +235 -30
  75. package/build/src/types/tests/worker/interpreters/synology.test.d.ts +61 -3
  76. package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +93 -3
  77. package/build/src/types/tests/worker/landing/page.test.d.ts +73 -50
  78. package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +226 -15
  79. package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +148 -4
  80. package/build/src/types/tests/worker/pipeline/email.test.d.ts +82 -8
  81. package/build/src/types/tests/worker/pipeline/format.test.d.ts +112 -32
  82. package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +109 -17
  83. package/build/src/types/tests/worker/pipeline/parse.test.d.ts +70 -5
  84. package/build/src/types/tests/worker/pipeline/receive.test.d.ts +156 -15
  85. package/build/src/types/tests/worker/pipeline/respond.test.d.ts +129 -10
  86. package/build/src/types/tests/worker/pipeline/route.test.d.ts +412 -74
  87. package/build/src/types/tests/worker/pipeline/send.test.d.ts +58 -23
  88. package/build/src/types/tests/worker/pipeline/split.test.d.ts +47 -9
  89. package/build/src/types/worker/handlers.d.ts +193 -0
  90. package/build/src/types/worker/index.d.ts +58 -203
  91. package/build/src/types/worker/interpreters/ntfy-json.d.ts +10 -10
  92. package/build/src/types/worker/interpreters/pfsense.d.ts +57 -49
  93. package/build/src/types/worker/interpreters/plain-text.d.ts +7 -7
  94. package/build/src/types/worker/interpreters/seerr.d.ts +63 -61
  95. package/build/src/types/worker/interpreters/statuspage.d.ts +201 -116
  96. package/build/src/types/worker/interpreters/synology.d.ts +48 -46
  97. package/build/src/types/worker/interpreters/unifi.d.ts +79 -54
  98. package/build/src/types/worker/landing/page.d.ts +30 -23
  99. package/build/src/types/worker/pipeline/accumulate.d.ts +46 -32
  100. package/build/src/types/worker/pipeline/authenticate.d.ts +94 -34
  101. package/build/src/types/worker/pipeline/email.d.ts +114 -50
  102. package/build/src/types/worker/pipeline/format.d.ts +31 -23
  103. package/build/src/types/worker/pipeline/interpret.d.ts +34 -34
  104. package/build/src/types/worker/pipeline/parse.d.ts +25 -19
  105. package/build/src/types/worker/pipeline/receive.d.ts +36 -34
  106. package/build/src/types/worker/pipeline/respond.d.ts +119 -63
  107. package/build/src/types/worker/pipeline/route.d.ts +33 -16
  108. package/build/src/types/worker/pipeline/send.d.ts +116 -79
  109. package/build/src/types/worker/pipeline/split.d.ts +21 -16
  110. package/build/src/worker/handlers.d.ts +5 -4
  111. package/build/src/worker/handlers.d.ts.map +1 -1
  112. package/build/src/worker/handlers.js +238 -202
  113. package/build/src/worker/handlers.js.map +1 -1
  114. package/build/src/worker/index.d.ts +2 -2
  115. package/build/src/worker/index.d.ts.map +1 -1
  116. package/build/src/worker/index.js +37 -9
  117. package/build/src/worker/index.js.map +1 -1
  118. package/build/src/worker/interpreters/ntfy-json.d.ts +2 -2
  119. package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
  120. package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
  121. package/build/src/worker/interpreters/pfsense.d.ts +2 -2
  122. package/build/src/worker/interpreters/pfsense.d.ts.map +1 -1
  123. package/build/src/worker/interpreters/pfsense.js +20 -27
  124. package/build/src/worker/interpreters/pfsense.js.map +1 -1
  125. package/build/src/worker/interpreters/plain-text.d.ts +2 -2
  126. package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
  127. package/build/src/worker/interpreters/plain-text.js.map +1 -1
  128. package/build/src/worker/interpreters/seerr.d.ts +2 -2
  129. package/build/src/worker/interpreters/seerr.d.ts.map +1 -1
  130. package/build/src/worker/interpreters/seerr.js +16 -12
  131. package/build/src/worker/interpreters/seerr.js.map +1 -1
  132. package/build/src/worker/interpreters/statuspage.d.ts +2 -2
  133. package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
  134. package/build/src/worker/interpreters/statuspage.js +98 -47
  135. package/build/src/worker/interpreters/statuspage.js.map +1 -1
  136. package/build/src/worker/interpreters/synology.d.ts +2 -2
  137. package/build/src/worker/interpreters/synology.d.ts.map +1 -1
  138. package/build/src/worker/interpreters/synology.js +9 -5
  139. package/build/src/worker/interpreters/synology.js.map +1 -1
  140. package/build/src/worker/interpreters/unifi.d.ts +2 -2
  141. package/build/src/worker/interpreters/unifi.d.ts.map +1 -1
  142. package/build/src/worker/interpreters/unifi.js +34 -20
  143. package/build/src/worker/interpreters/unifi.js.map +1 -1
  144. package/build/src/worker/landing/page.d.ts +2 -2
  145. package/build/src/worker/landing/page.d.ts.map +1 -1
  146. package/build/src/worker/landing/page.js +4 -3
  147. package/build/src/worker/landing/page.js.map +1 -1
  148. package/build/src/worker/pipeline/accumulate.d.ts +5 -6
  149. package/build/src/worker/pipeline/accumulate.d.ts.map +1 -1
  150. package/build/src/worker/pipeline/accumulate.js +4 -11
  151. package/build/src/worker/pipeline/accumulate.js.map +1 -1
  152. package/build/src/worker/pipeline/authenticate.d.ts +2 -2
  153. package/build/src/worker/pipeline/authenticate.d.ts.map +1 -1
  154. package/build/src/worker/pipeline/authenticate.js +25 -7
  155. package/build/src/worker/pipeline/authenticate.js.map +1 -1
  156. package/build/src/worker/pipeline/email.d.ts +2 -2
  157. package/build/src/worker/pipeline/email.d.ts.map +1 -1
  158. package/build/src/worker/pipeline/email.js +34 -11
  159. package/build/src/worker/pipeline/email.js.map +1 -1
  160. package/build/src/worker/pipeline/format.d.ts +2 -3
  161. package/build/src/worker/pipeline/format.d.ts.map +1 -1
  162. package/build/src/worker/pipeline/format.js +2 -1
  163. package/build/src/worker/pipeline/format.js.map +1 -1
  164. package/build/src/worker/pipeline/interpret.d.ts +4 -3
  165. package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
  166. package/build/src/worker/pipeline/interpret.js +7 -7
  167. package/build/src/worker/pipeline/interpret.js.map +1 -1
  168. package/build/src/worker/pipeline/parse.d.ts +2 -2
  169. package/build/src/worker/pipeline/parse.d.ts.map +1 -1
  170. package/build/src/worker/pipeline/parse.js +14 -7
  171. package/build/src/worker/pipeline/parse.js.map +1 -1
  172. package/build/src/worker/pipeline/receive.d.ts +2 -2
  173. package/build/src/worker/pipeline/receive.d.ts.map +1 -1
  174. package/build/src/worker/pipeline/receive.js +6 -6
  175. package/build/src/worker/pipeline/receive.js.map +1 -1
  176. package/build/src/worker/pipeline/respond.d.ts +2 -2
  177. package/build/src/worker/pipeline/respond.d.ts.map +1 -1
  178. package/build/src/worker/pipeline/respond.js +1 -1
  179. package/build/src/worker/pipeline/respond.js.map +1 -1
  180. package/build/src/worker/pipeline/route.d.ts +2 -3
  181. package/build/src/worker/pipeline/route.d.ts.map +1 -1
  182. package/build/src/worker/pipeline/route.js.map +1 -1
  183. package/build/src/worker/pipeline/send.d.ts +2 -2
  184. package/build/src/worker/pipeline/send.d.ts.map +1 -1
  185. package/build/src/worker/pipeline/send.js +80 -41
  186. package/build/src/worker/pipeline/send.js.map +1 -1
  187. package/build/src/worker/pipeline/split.d.ts +2 -2
  188. package/build/src/worker/pipeline/split.d.ts.map +1 -1
  189. package/build/src/worker/pipeline/split.js +4 -2
  190. package/build/src/worker/pipeline/split.js.map +1 -1
  191. package/package.json +11 -9
  192. package/build/src/types/tests/type-declarations.test.d.ts +0 -173
  193. package/build/src/types/worker/pipeline/shared.d.ts +0 -85
@@ -1,108 +1,172 @@
1
+ /**
2
+ * Worker - Pipeline - Email.
3
+ *
4
+ * @since 2.0.0
5
+ */
6
+ export type Worker_Pipeline_Email_ResultFrom = string;
7
+
8
+ export type Worker_Pipeline_Email_ResultTo = string;
9
+
10
+ export type Worker_Pipeline_Email_ResultSubject = string;
11
+
12
+ export type Worker_Pipeline_Email_ResultTextBody = string;
13
+
14
+ export type Worker_Pipeline_Email_Result = {
15
+ from: Worker_Pipeline_Email_ResultFrom;
16
+ to: Worker_Pipeline_Email_ResultTo;
17
+ subject: Worker_Pipeline_Email_ResultSubject;
18
+ textBody: Worker_Pipeline_Email_ResultTextBody;
19
+ };
20
+
1
21
  /**
2
22
  * Worker - Pipeline - Email - Extract Email Address.
3
23
  *
4
24
  * @since 2.0.0
5
25
  */
6
- export type WorkerPipelineEmailHeaderValue = string;
26
+ export type Worker_Pipeline_Email_ExtractEmailAddress_Header = string;
7
27
 
8
- export type WorkerPipelineEmailExtractEmailAddressMatch = RegExpMatchArray | null;
28
+ export type Worker_Pipeline_Email_ExtractEmailAddress_Returns = string;
29
+
30
+ export type Worker_Pipeline_Email_ExtractEmailAddress_Match = RegExpMatchArray | null;
9
31
 
10
32
  /**
11
33
  * Worker - Pipeline - Email - Extract From Multipart.
12
34
  *
13
35
  * @since 2.0.0
14
36
  */
15
- export type WorkerPipelineEmailBodySection = string;
37
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Body = string;
16
38
 
17
- export type WorkerPipelineEmailHeaderSection = string;
39
+ export type Worker_Pipeline_Email_ExtractFromMultipart_HeaderSection = string;
18
40
 
19
- export type WorkerPipelineEmailExtractFromMultipartResultText = string;
41
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Returns_Text = string;
20
42
 
21
- export type WorkerPipelineEmailExtractFromMultipartResultHtml = string;
43
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Returns_Html = string;
22
44
 
23
- export type WorkerPipelineEmailExtractFromMultipartResult = {
24
- text: WorkerPipelineEmailExtractFromMultipartResultText;
25
- html: WorkerPipelineEmailExtractFromMultipartResultHtml;
45
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Returns = {
46
+ text: Worker_Pipeline_Email_ExtractFromMultipart_Returns_Text;
47
+ html: Worker_Pipeline_Email_ExtractFromMultipart_Returns_Html;
26
48
  };
27
49
 
28
- export type WorkerPipelineEmailBoundaryMatch = RegExpMatchArray | null;
50
+ export type Worker_Pipeline_Email_ExtractFromMultipart_NestedBoundaryMatch = RegExpMatchArray | null;
29
51
 
30
- export type WorkerPipelineEmailBoundary = string | undefined;
52
+ export type Worker_Pipeline_Email_ExtractFromMultipart_NestedBoundary = string | undefined;
31
53
 
32
- export type WorkerPipelineEmailExtractFromMultipartText = string;
54
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Text = string;
33
55
 
34
- export type WorkerPipelineEmailExtractFromMultipartHtml = string;
56
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Html = string;
35
57
 
36
- export type WorkerPipelineEmailParts = string[];
58
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Parts = string[];
37
59
 
38
- export type WorkerPipelineEmailPart = string;
60
+ export type Worker_Pipeline_Email_ExtractFromMultipart_TrimmedPart = string;
39
61
 
40
- export type WorkerPipelineEmailExtractFromMultipartSeparator = string;
62
+ export type Worker_Pipeline_Email_ExtractFromMultipart_Separator = string;
41
63
 
42
- export type WorkerPipelineEmailPartHeaderSeparatorIndex = number;
64
+ export type Worker_Pipeline_Email_ExtractFromMultipart_SeparatorIndex = number;
43
65
 
44
- export type WorkerPipelineEmailPartContentType = string;
66
+ export type Worker_Pipeline_Email_ExtractFromMultipart_PartContentType = string;
45
67
 
46
- export type WorkerPipelineEmailPartBody = string;
68
+ export type Worker_Pipeline_Email_ExtractFromMultipart_PartBody = string;
47
69
 
48
70
  /**
49
71
  * Worker - Pipeline - Email - Parse Email.
50
72
  *
51
73
  * @since 2.0.0
52
74
  */
53
- export type WorkerPipelineEmailRawEmail = string;
75
+ export type Worker_Pipeline_Email_ParseEmail_RawEmail = string;
54
76
 
55
- export type WorkerPipelineEmailResultFrom = string;
77
+ export type Worker_Pipeline_Email_ParseEmail_Result_From = string;
56
78
 
57
- export type WorkerPipelineEmailResultTo = string;
79
+ export type Worker_Pipeline_Email_ParseEmail_Result_To = string;
58
80
 
59
- export type WorkerPipelineEmailResultSubject = string;
81
+ export type Worker_Pipeline_Email_ParseEmail_Result_Subject = string;
60
82
 
61
- export type WorkerPipelineEmailResultTextBody = string;
83
+ export type Worker_Pipeline_Email_ParseEmail_Result_TextBody = string;
62
84
 
63
- export type WorkerPipelineEmailResult = {
64
- from: WorkerPipelineEmailResultFrom;
65
- to: WorkerPipelineEmailResultTo;
66
- subject: WorkerPipelineEmailResultSubject;
67
- textBody: WorkerPipelineEmailResultTextBody;
85
+ export type Worker_Pipeline_Email_ParseEmail_Result = {
86
+ from: Worker_Pipeline_Email_ParseEmail_Result_From;
87
+ to: Worker_Pipeline_Email_ParseEmail_Result_To;
88
+ subject: Worker_Pipeline_Email_ParseEmail_Result_Subject;
89
+ textBody: Worker_Pipeline_Email_ParseEmail_Result_TextBody;
68
90
  };
69
91
 
70
- export type WorkerPipelineEmailParseEmailReturns = Promise<WorkerPipelineEmailResult>;
92
+ export type Worker_Pipeline_Email_ParseEmail_Returns = Promise<Worker_Pipeline_Email_ParseEmail_Result>;
93
+
94
+ export type Worker_Pipeline_Email_ParseEmail_Separator = string;
95
+
96
+ export type Worker_Pipeline_Email_ParseEmail_HeaderSeparatorIndex = number;
97
+
98
+ export type Worker_Pipeline_Email_ParseEmail_HeaderSection = string;
99
+
100
+ export type Worker_Pipeline_Email_ParseEmail_BodySection = string;
101
+
102
+ export type Worker_Pipeline_Email_ParseEmail_UnfoldedHeaderSection = string;
71
103
 
72
- export type WorkerPipelineEmailParseEmailSeparator = string;
104
+ export type Worker_Pipeline_Email_ParseEmail_HeaderLines = string[];
73
105
 
74
- export type WorkerPipelineEmailHeaderSeparatorIndex = number;
106
+ export type Worker_Pipeline_Email_ParseEmail_Headers = Map<string, string>;
75
107
 
76
- export type WorkerPipelineEmailHeaderLines = string[];
108
+ export type Worker_Pipeline_Email_ParseEmail_ColonIndex = number;
77
109
 
78
- export type WorkerPipelineEmailHeaders = Map<string, string>;
110
+ export type Worker_Pipeline_Email_ParseEmail_Key = string;
79
111
 
80
- export type WorkerPipelineEmailHeaderKey = string;
112
+ export type Worker_Pipeline_Email_ParseEmail_Value = string;
81
113
 
82
- export type WorkerPipelineEmailContentType = string;
114
+ export type Worker_Pipeline_Email_ParseEmail_From = string;
83
115
 
84
- export type WorkerPipelineEmailTextBody = string;
116
+ export type Worker_Pipeline_Email_ParseEmail_To = string;
85
117
 
86
- export type WorkerPipelineEmailParseEmailNestedPartHeaders = string;
118
+ export type Worker_Pipeline_Email_ParseEmail_Subject = string;
87
119
 
88
- export type WorkerPipelineEmailParseEmailNestedResultText = string;
120
+ export type Worker_Pipeline_Email_ParseEmail_ContentType = string;
89
121
 
90
- export type WorkerPipelineEmailParseEmailNestedResultHtml = string;
122
+ export type Worker_Pipeline_Email_ParseEmail_BoundaryMatch = RegExpMatchArray | null;
91
123
 
92
- export type WorkerPipelineEmailParseEmailNestedResult = {
93
- text: WorkerPipelineEmailParseEmailNestedResultText;
94
- html: WorkerPipelineEmailParseEmailNestedResultHtml;
124
+ export type Worker_Pipeline_Email_ParseEmail_Boundary = string | undefined;
125
+
126
+ export type Worker_Pipeline_Email_ParseEmail_Parts = string[];
127
+
128
+ export type Worker_Pipeline_Email_ParseEmail_TextBody = string;
129
+
130
+ export type Worker_Pipeline_Email_ParseEmail_HtmlBody = string;
131
+
132
+ export type Worker_Pipeline_Email_ParseEmail_TrimmedPart = string;
133
+
134
+ export type Worker_Pipeline_Email_ParseEmail_PartSeparator = string;
135
+
136
+ export type Worker_Pipeline_Email_ParseEmail_PartHeaderSeparatorIndex = number;
137
+
138
+ export type Worker_Pipeline_Email_ParseEmail_PartContentType = string;
139
+
140
+ export type Worker_Pipeline_Email_ParseEmail_PartBody = string;
141
+
142
+ export type Worker_Pipeline_Email_ParseEmail_NestedPartHeaders = string;
143
+
144
+ export type Worker_Pipeline_Email_ParseEmail_NestedResult_Text = string;
145
+
146
+ export type Worker_Pipeline_Email_ParseEmail_NestedResult_Html = string;
147
+
148
+ export type Worker_Pipeline_Email_ParseEmail_NestedResult = {
149
+ text: Worker_Pipeline_Email_ParseEmail_NestedResult_Text;
150
+ html: Worker_Pipeline_Email_ParseEmail_NestedResult_Html;
95
151
  };
96
152
 
97
- export type WorkerPipelineEmailParseEmailEmbeddedBoundaryArg = string;
153
+ export type Worker_Pipeline_Email_ParseEmail_StrippedBody = string;
98
154
 
99
- export type WorkerPipelineEmailParseEmailEmbeddedResultText = string;
155
+ export type Worker_Pipeline_Email_ParseEmail_HtmlTextBody = string;
100
156
 
101
- export type WorkerPipelineEmailParseEmailEmbeddedResultHtml = string;
157
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedBoundaryMatch = RegExpMatchArray | null;
102
158
 
103
- export type WorkerPipelineEmailParseEmailEmbeddedResult = {
104
- text: WorkerPipelineEmailParseEmailEmbeddedResultText;
105
- html: WorkerPipelineEmailParseEmailEmbeddedResultHtml;
159
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedBoundaryArg = string;
160
+
161
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedResult_Text = string;
162
+
163
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedResult_Html = string;
164
+
165
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedResult = {
166
+ text: Worker_Pipeline_Email_ParseEmail_EmbeddedResult_Text;
167
+ html: Worker_Pipeline_Email_ParseEmail_EmbeddedResult_Html;
106
168
  };
107
169
 
108
- export type WorkerPipelineEmailParseEmailEmbeddedHtmlStripped = string;
170
+ export type Worker_Pipeline_Email_ParseEmail_EmbeddedHtmlStripped = string;
171
+
172
+ export type Worker_Pipeline_Email_ParseEmail_PlainTextBody = string;
@@ -1,47 +1,55 @@
1
+ import type { Worker_Pipeline_Interpret_NotificationObject } from './interpret.d.ts';
2
+
1
3
  /**
2
4
  * Worker - Pipeline - Format.
3
5
  *
4
6
  * @since 2.0.0
5
7
  */
6
- export type WorkerPipelineFormatOptionsShowVisitorInfo = boolean;
8
+ export type Worker_Pipeline_Format_Notification = Worker_Pipeline_Interpret_NotificationObject;
9
+
10
+ export type Worker_Pipeline_Format_OptionsShowVisitorInfo = boolean;
7
11
 
8
- export type WorkerPipelineFormatOptionsVisitorIp = string;
12
+ export type Worker_Pipeline_Format_OptionsVisitorIp = string;
9
13
 
10
- export type WorkerPipelineFormatOptionsCfProperties = Record<string, unknown>;
14
+ export type Worker_Pipeline_Format_OptionsCfProperties = Record<string, unknown>;
11
15
 
12
- export type WorkerPipelineFormatOptions = {
13
- showVisitorInfo: WorkerPipelineFormatOptionsShowVisitorInfo;
14
- visitorIp?: WorkerPipelineFormatOptionsVisitorIp;
15
- cfProperties?: WorkerPipelineFormatOptionsCfProperties;
16
+ export type Worker_Pipeline_Format_Options = {
17
+ showVisitorInfo: Worker_Pipeline_Format_OptionsShowVisitorInfo;
18
+ visitorIp?: Worker_Pipeline_Format_OptionsVisitorIp;
19
+ cfProperties?: Worker_Pipeline_Format_OptionsCfProperties;
16
20
  };
17
21
 
18
- export type WorkerPipelineFormatResultBody = string;
22
+ export type Worker_Pipeline_Format_ResultBody = string;
19
23
 
20
- export type WorkerPipelineFormatResultHeaders = Record<string, string>;
24
+ export type Worker_Pipeline_Format_ResultHeaders = Record<string, string>;
21
25
 
22
- export type WorkerPipelineFormatResult = {
23
- body: WorkerPipelineFormatResultBody;
24
- headers: WorkerPipelineFormatResultHeaders;
26
+ export type Worker_Pipeline_Format_Result = {
27
+ body: Worker_Pipeline_Format_ResultBody;
28
+ headers: Worker_Pipeline_Format_ResultHeaders;
25
29
  };
26
30
 
27
- export type WorkerPipelineFormatBody = string;
31
+ export type Worker_Pipeline_Format_Returns = Worker_Pipeline_Format_Result;
32
+
33
+ export type Worker_Pipeline_Format_Body = string;
34
+
35
+ export type Worker_Pipeline_Format_Cf = Worker_Pipeline_Format_OptionsCfProperties;
28
36
 
29
- export type WorkerPipelineFormatCf = WorkerPipelineFormatOptionsCfProperties;
37
+ export type Worker_Pipeline_Format_Ip = string;
30
38
 
31
- export type WorkerPipelineFormatIp = string;
39
+ export type Worker_Pipeline_Format_Separator = string;
32
40
 
33
- export type WorkerPipelineFormatSeparator = string;
41
+ export type Worker_Pipeline_Format_IsMarkdown = boolean;
34
42
 
35
- export type WorkerPipelineFormatIsMarkdown = boolean;
43
+ export type Worker_Pipeline_Format_Lines = string[];
36
44
 
37
- export type WorkerPipelineFormatBoldFn = (text: string) => string;
45
+ export type Worker_Pipeline_Format_Headers = Record<string, string>;
38
46
 
39
- export type WorkerPipelineFormatLines = string[];
47
+ export type Worker_Pipeline_Format_PriorityString = string;
40
48
 
41
- export type WorkerPipelineFormatHeaders = Record<string, string>;
49
+ export type Worker_Pipeline_Format_TagsString = string;
42
50
 
43
- export type WorkerPipelineFormatPriorityString = string;
51
+ export type Worker_Pipeline_Format_MarkdownString = string;
44
52
 
45
- export type WorkerPipelineFormatTagsString = string;
53
+ export type Worker_Pipeline_Format_Format_Bold_Bold_Returns = string;
46
54
 
47
- export type WorkerPipelineFormatMarkdownString = string;
55
+ export type Worker_Pipeline_Format_Format_Bold_Bold = (text: string) => Worker_Pipeline_Format_Format_Bold_Bold_Returns;
@@ -3,61 +3,61 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type WorkerPipelineInterpretNotificationObjectTitle = string;
6
+ export type Worker_Pipeline_Interpret_NotificationObjectTitle = string;
7
7
 
8
- export type WorkerPipelineInterpretNotificationObjectBody = string;
8
+ export type Worker_Pipeline_Interpret_NotificationObjectBody = string;
9
9
 
10
- export type WorkerPipelineInterpretNotificationObjectPriority = 1 | 2 | 3 | 4 | 5;
10
+ export type Worker_Pipeline_Interpret_NotificationObjectPriority = 1 | 2 | 3 | 4 | 5;
11
11
 
12
- export type WorkerPipelineInterpretNotificationObjectTags = string[];
12
+ export type Worker_Pipeline_Interpret_NotificationObjectTags = string[];
13
13
 
14
- export type WorkerPipelineInterpretNotificationObjectIcon = string;
14
+ export type Worker_Pipeline_Interpret_NotificationObjectIcon = string;
15
15
 
16
- export type WorkerPipelineInterpretNotificationObjectActions = string;
16
+ export type Worker_Pipeline_Interpret_NotificationObjectActions = string;
17
17
 
18
- export type WorkerPipelineInterpretNotificationObjectAttach = string;
18
+ export type Worker_Pipeline_Interpret_NotificationObjectAttach = string;
19
19
 
20
- export type WorkerPipelineInterpretNotificationObjectFilename = string;
20
+ export type Worker_Pipeline_Interpret_NotificationObjectFilename = string;
21
21
 
22
- export type WorkerPipelineInterpretNotificationObjectMarkdown = boolean;
22
+ export type Worker_Pipeline_Interpret_NotificationObjectMarkdown = boolean;
23
23
 
24
- export type WorkerPipelineInterpretNotificationObject = {
25
- title?: WorkerPipelineInterpretNotificationObjectTitle | undefined;
26
- body: WorkerPipelineInterpretNotificationObjectBody;
27
- priority?: WorkerPipelineInterpretNotificationObjectPriority | undefined;
28
- tags?: WorkerPipelineInterpretNotificationObjectTags | undefined;
29
- icon?: WorkerPipelineInterpretNotificationObjectIcon | undefined;
30
- actions?: WorkerPipelineInterpretNotificationObjectActions | undefined;
31
- attach?: WorkerPipelineInterpretNotificationObjectAttach | undefined;
32
- filename?: WorkerPipelineInterpretNotificationObjectFilename | undefined;
33
- markdown?: WorkerPipelineInterpretNotificationObjectMarkdown | undefined;
24
+ export type Worker_Pipeline_Interpret_NotificationObject = {
25
+ title?: Worker_Pipeline_Interpret_NotificationObjectTitle | undefined;
26
+ body: Worker_Pipeline_Interpret_NotificationObjectBody;
27
+ priority?: Worker_Pipeline_Interpret_NotificationObjectPriority | undefined;
28
+ tags?: Worker_Pipeline_Interpret_NotificationObjectTags | undefined;
29
+ icon?: Worker_Pipeline_Interpret_NotificationObjectIcon | undefined;
30
+ actions?: Worker_Pipeline_Interpret_NotificationObjectActions | undefined;
31
+ attach?: Worker_Pipeline_Interpret_NotificationObjectAttach | undefined;
32
+ filename?: Worker_Pipeline_Interpret_NotificationObjectFilename | undefined;
33
+ markdown?: Worker_Pipeline_Interpret_NotificationObjectMarkdown | undefined;
34
34
  };
35
35
 
36
- export type WorkerPipelineInterpretResultNotification = WorkerPipelineInterpretNotificationObject;
36
+ export type Worker_Pipeline_Interpret_ResultNotification = Worker_Pipeline_Interpret_NotificationObject;
37
37
 
38
- export type WorkerPipelineInterpretResultAttachment = ArrayBuffer;
38
+ export type Worker_Pipeline_Interpret_ResultAttachment = ArrayBuffer;
39
39
 
40
- export type WorkerPipelineInterpretResult = {
41
- notification: WorkerPipelineInterpretResultNotification;
42
- attachment?: WorkerPipelineInterpretResultAttachment;
40
+ export type Worker_Pipeline_Interpret_Result = {
41
+ notification: Worker_Pipeline_Interpret_ResultNotification;
42
+ attachment?: Worker_Pipeline_Interpret_ResultAttachment;
43
43
  };
44
44
 
45
- export type WorkerPipelineInterpretInterpreter = (input: WorkerPipelineInterpretInput, context?: WorkerPipelineInterpretContext) => WorkerPipelineInterpretResult | null | Promise<WorkerPipelineInterpretResult | null>;
45
+ export type Worker_Pipeline_Interpret_Interpreter = (input: Worker_Pipeline_Interpret_Input, context?: Worker_Pipeline_Interpret_Context) => Worker_Pipeline_Interpret_Result | null | Promise<Worker_Pipeline_Interpret_Result | null>;
46
46
 
47
- export type WorkerPipelineInterpretInterpreterMap = Record<string, WorkerPipelineInterpretInterpreter>;
47
+ export type Worker_Pipeline_Interpret_InterpreterMap = Record<string, Worker_Pipeline_Interpret_Interpreter>;
48
48
 
49
- export type WorkerPipelineInterpretInput = string | object | ArrayBuffer;
49
+ export type Worker_Pipeline_Interpret_Input = string | object | ArrayBuffer;
50
50
 
51
- export type WorkerPipelineInterpretContextKv = KVNamespace;
51
+ export type Worker_Pipeline_Interpret_ContextKv = KVNamespace;
52
52
 
53
- export type WorkerPipelineInterpretContext = {
54
- kv?: WorkerPipelineInterpretContextKv;
53
+ export type Worker_Pipeline_Interpret_Context = {
54
+ kv?: Worker_Pipeline_Interpret_ContextKv;
55
55
  };
56
56
 
57
- export type WorkerPipelineInterpretInterpreterName = string;
57
+ export type Worker_Pipeline_Interpret_Interpret_InterpreterName = string;
58
58
 
59
- export type WorkerPipelineInterpretReturns = Promise<WorkerPipelineInterpretResult | null>;
59
+ export type Worker_Pipeline_Interpret_Returns = Promise<Worker_Pipeline_Interpret_Result | null>;
60
60
 
61
- export type WorkerPipelineInterpretSelectedInterpreter = WorkerPipelineInterpretInterpreter | undefined;
61
+ export type Worker_Pipeline_Interpret_SelectedInterpreter = Worker_Pipeline_Interpret_Interpreter | undefined;
62
62
 
63
- export type WorkerPipelineInterpretInterpreterResult = WorkerPipelineInterpretResult | null;
63
+ export type Worker_Pipeline_Interpret_InterpreterResult = Worker_Pipeline_Interpret_Result | null;
@@ -3,37 +3,43 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type WorkerPipelineParseResultType = 'text' | 'json' | 'binary' | 'unknown';
6
+ export type Worker_Pipeline_Parse_ResultType = 'text' | 'json' | 'binary' | 'unknown';
7
7
 
8
- export type WorkerPipelineParseResultText = string;
8
+ export type Worker_Pipeline_Parse_ResultText = string;
9
9
 
10
- export type WorkerPipelineParseResultJson = Record<string, unknown>;
10
+ export type Worker_Pipeline_Parse_ResultJson = Record<string, unknown>;
11
11
 
12
- export type WorkerPipelineParseResultBinary = ArrayBuffer;
12
+ export type Worker_Pipeline_Parse_ResultBinary = ArrayBuffer;
13
13
 
14
- export type WorkerPipelineParseResult = {
15
- type: WorkerPipelineParseResultType;
16
- text?: WorkerPipelineParseResultText;
17
- json?: WorkerPipelineParseResultJson;
18
- binary?: WorkerPipelineParseResultBinary;
14
+ export type Worker_Pipeline_Parse_Result = {
15
+ type: Worker_Pipeline_Parse_ResultType;
16
+ text?: Worker_Pipeline_Parse_ResultText;
17
+ json?: Worker_Pipeline_Parse_ResultJson;
18
+ binary?: Worker_Pipeline_Parse_ResultBinary;
19
19
  };
20
20
 
21
- export type WorkerPipelineParseContentType = string;
21
+ export type Worker_Pipeline_Parse_Returns = Worker_Pipeline_Parse_Result;
22
22
 
23
- export type WorkerPipelineParseContentTypePart = string | undefined;
23
+ export type Worker_Pipeline_Parse_ContentType = string;
24
24
 
25
- export type WorkerPipelineParseBaseContentType = string;
25
+ export type Worker_Pipeline_Parse_ContentTypePart = string | undefined;
26
26
 
27
- export type WorkerPipelineParseIsBinaryContentType = boolean;
27
+ export type Worker_Pipeline_Parse_BaseContentType = string;
28
28
 
29
- export type WorkerPipelineParseBytes = Uint8Array;
29
+ export type Worker_Pipeline_Parse_IsBinaryContentType = boolean;
30
30
 
31
- export type WorkerPipelineParseText = string | undefined;
31
+ export type Worker_Pipeline_Parse_Bytes = Uint8Array;
32
32
 
33
- export type WorkerPipelineParseDecoder = TextDecoder;
33
+ export type Worker_Pipeline_Parse_Text = string | undefined;
34
34
 
35
- export type WorkerPipelineParseIsJsonContentType = boolean;
35
+ export type Worker_Pipeline_Parse_Decoder = TextDecoder;
36
36
 
37
- export type WorkerPipelineParseLooksLikeJson = boolean;
37
+ export type Worker_Pipeline_Parse_IsJsonContentType = boolean;
38
38
 
39
- export type WorkerPipelineParseJson = Record<string, unknown>;
39
+ export type Worker_Pipeline_Parse_LooksLikeJson = boolean;
40
+
41
+ export type Worker_Pipeline_Parse_Json = Record<string, unknown>;
42
+
43
+ export type Worker_Pipeline_Parse_Parse_RawBody = ArrayBuffer;
44
+
45
+ export type Worker_Pipeline_Parse_Parse_Headers = Headers;
@@ -3,62 +3,64 @@
3
3
  *
4
4
  * @since 2.0.0
5
5
  */
6
- export type WorkerPipelineReceiveResultMethod = string;
6
+ export type Worker_Pipeline_Receive_ResultMethod = string;
7
7
 
8
- export type WorkerPipelineReceiveResultHostname = string;
8
+ export type Worker_Pipeline_Receive_ResultHostname = string;
9
9
 
10
- export type WorkerPipelineReceiveResultUrl = string;
10
+ export type Worker_Pipeline_Receive_ResultUrl = string;
11
11
 
12
- export type WorkerPipelineReceiveResultHeaders = Headers;
12
+ export type Worker_Pipeline_Receive_ResultHeaders = Headers;
13
13
 
14
- export type WorkerPipelineReceiveResultRawBody = ArrayBuffer;
14
+ export type Worker_Pipeline_Receive_ResultRawBody = ArrayBuffer;
15
15
 
16
- export type WorkerPipelineReceiveResultIsGet = boolean;
16
+ export type Worker_Pipeline_Receive_ResultIsGet = boolean;
17
17
 
18
- export type WorkerPipelineReceiveResultRedirect = string;
18
+ export type Worker_Pipeline_Receive_ResultRedirect = string;
19
19
 
20
- export type WorkerPipelineReceiveResultError = string;
20
+ export type Worker_Pipeline_Receive_ResultError = string;
21
21
 
22
- export type WorkerPipelineReceiveResultCfProperties = IncomingRequestCfProperties;
22
+ export type Worker_Pipeline_Receive_ResultCfProperties = IncomingRequestCfProperties;
23
23
 
24
- export type WorkerPipelineReceiveResult = {
25
- method: WorkerPipelineReceiveResultMethod;
26
- hostname: WorkerPipelineReceiveResultHostname;
27
- url: WorkerPipelineReceiveResultUrl;
28
- headers: WorkerPipelineReceiveResultHeaders;
29
- rawBody: WorkerPipelineReceiveResultRawBody;
30
- isGet: WorkerPipelineReceiveResultIsGet;
31
- redirect?: WorkerPipelineReceiveResultRedirect;
32
- error?: WorkerPipelineReceiveResultError;
33
- cfProperties?: WorkerPipelineReceiveResultCfProperties;
24
+ export type Worker_Pipeline_Receive_Result = {
25
+ method: Worker_Pipeline_Receive_ResultMethod;
26
+ hostname: Worker_Pipeline_Receive_ResultHostname;
27
+ url: Worker_Pipeline_Receive_ResultUrl;
28
+ headers: Worker_Pipeline_Receive_ResultHeaders;
29
+ rawBody: Worker_Pipeline_Receive_ResultRawBody;
30
+ isGet: Worker_Pipeline_Receive_ResultIsGet;
31
+ redirect?: Worker_Pipeline_Receive_ResultRedirect;
32
+ error?: Worker_Pipeline_Receive_ResultError;
33
+ cfProperties?: Worker_Pipeline_Receive_ResultCfProperties;
34
34
  };
35
35
 
36
- export type WorkerPipelineReceiveRequest = Request;
36
+ export type Worker_Pipeline_Receive_Request = Request;
37
37
 
38
- export type WorkerPipelineReceiveBaseDomain = string;
38
+ export type Worker_Pipeline_Receive_BaseDomain = string;
39
39
 
40
- export type WorkerPipelineReceiveReturns = Promise<WorkerPipelineReceiveResult>;
40
+ export type Worker_Pipeline_Receive_Returns = Promise<Worker_Pipeline_Receive_Result>;
41
41
 
42
- export type WorkerPipelineReceiveMethod = string;
42
+ export type Worker_Pipeline_Receive_Method = string;
43
43
 
44
- export type WorkerPipelineReceiveHostname = string;
44
+ export type Worker_Pipeline_Receive_Hostname = string;
45
45
 
46
- export type WorkerPipelineReceiveProtocol = string;
46
+ export type Worker_Pipeline_Receive_Protocol = string;
47
47
 
48
- export type WorkerPipelineReceiveUrl = string;
48
+ export type Worker_Pipeline_Receive_Url = string;
49
49
 
50
- export type WorkerPipelineReceiveHeaders = Headers;
50
+ export type Worker_Pipeline_Receive_Headers = Headers;
51
51
 
52
- export type WorkerPipelineReceiveIncludesBaseDomain = boolean;
52
+ export type Worker_Pipeline_Receive_IncludesBaseDomain = boolean;
53
53
 
54
- export type WorkerPipelineReceiveRedirect = string;
54
+ export type Worker_Pipeline_Receive_Redirect = string;
55
55
 
56
- export type WorkerPipelineReceiveRawBody = ArrayBuffer;
56
+ export type Worker_Pipeline_Receive_RawBody = ArrayBuffer;
57
57
 
58
- export type WorkerPipelineReceiveIsGet = boolean;
58
+ export type Worker_Pipeline_Receive_IsGet = boolean;
59
59
 
60
- export type WorkerPipelineReceiveCfRequestUnknown = unknown;
60
+ export type Worker_Pipeline_Receive_CfRequestUnknown = unknown;
61
61
 
62
- export type WorkerPipelineReceiveCfRequestRecord = Record<string, unknown>;
62
+ export type Worker_Pipeline_Receive_CfRequestRecord = Record<string, unknown>;
63
63
 
64
- export type WorkerPipelineReceiveCfProperties = IncomingRequestCfProperties | undefined;
64
+ export type Worker_Pipeline_Receive_CfProperties = IncomingRequestCfProperties | undefined;
65
+
66
+ export type Worker_Pipeline_Receive_Receive_ParsedUrl = URL;