ntfy-reverse-proxy 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +10 -0
- package/build/src/cli/commands/config-io.d.ts +3 -3
- package/build/src/cli/commands/config-io.d.ts.map +1 -1
- package/build/src/cli/commands/config-io.js +1 -1
- package/build/src/cli/commands/config-io.js.map +1 -1
- package/build/src/cli/commands/context.d.ts +7 -7
- package/build/src/cli/commands/context.d.ts.map +1 -1
- package/build/src/cli/commands/context.js +1 -1
- package/build/src/cli/commands/context.js.map +1 -1
- package/build/src/cli/commands/deploy.d.ts +2 -2
- package/build/src/cli/commands/deploy.d.ts.map +1 -1
- package/build/src/cli/commands/deploy.js +72 -30
- package/build/src/cli/commands/deploy.js.map +1 -1
- package/build/src/cli/commands/generate.d.ts +2 -2
- package/build/src/cli/commands/generate.d.ts.map +1 -1
- package/build/src/cli/commands/generate.js +3 -3
- package/build/src/cli/commands/generate.js.map +1 -1
- package/build/src/cli/commands/server.d.ts +5 -5
- package/build/src/cli/commands/server.d.ts.map +1 -1
- package/build/src/cli/commands/server.js.map +1 -1
- package/build/src/cli/commands/settings.d.ts +3 -3
- package/build/src/cli/commands/settings.d.ts.map +1 -1
- package/build/src/cli/commands/settings.js.map +1 -1
- package/build/src/cli/commands/validate.d.ts +2 -2
- package/build/src/cli/commands/validate.d.ts.map +1 -1
- package/build/src/cli/commands/validate.js +3 -0
- package/build/src/cli/commands/validate.js.map +1 -1
- package/build/src/cli/index.d.ts +2 -2
- package/build/src/cli/index.d.ts.map +1 -1
- package/build/src/cli/index.js +4 -4
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/menu/interactive.d.ts +2 -2
- package/build/src/cli/menu/interactive.d.ts.map +1 -1
- package/build/src/cli/menu/interactive.js +174 -84
- package/build/src/cli/menu/interactive.js.map +1 -1
- package/build/src/lib/regex.d.ts +4 -1
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +4 -1
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/schema.d.ts +24 -0
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +11 -2
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/utility.d.ts +2 -2
- package/build/src/lib/utility.d.ts.map +1 -1
- package/build/src/lib/utility.js +1 -1
- package/build/src/lib/utility.js.map +1 -1
- package/build/src/types/cli/commands/config-io.d.ts +12 -12
- package/build/src/types/cli/commands/context.d.ts +96 -58
- package/build/src/types/cli/commands/deploy.d.ts +342 -298
- package/build/src/types/cli/commands/generate.d.ts +40 -24
- package/build/src/types/cli/commands/server.d.ts +23 -23
- package/build/src/types/cli/commands/settings.d.ts +8 -8
- package/build/src/types/cli/commands/validate.d.ts +16 -16
- package/build/src/types/cli/index.d.ts +16 -20
- package/build/src/types/cli/menu/interactive.d.ts +233 -178
- package/build/src/types/lib/schema.d.ts +89 -81
- package/build/src/types/lib/utility.d.ts +4 -2
- package/build/src/types/shared.d.ts +85 -0
- package/build/src/types/tests/cli/commands/context.test.d.ts +102 -31
- package/build/src/types/tests/cli/commands/generate.test.d.ts +50 -4
- package/build/src/types/tests/cli/commands/server.test.d.ts +88 -23
- package/build/src/types/tests/cli/commands/settings.test.d.ts +65 -21
- package/build/src/types/tests/cli/commands/validate.test.d.ts +69 -8
- package/build/src/types/tests/cli/menu/interactive.test.d.ts +2 -2
- package/build/src/types/tests/lib/schema.test.d.ts +258 -3
- package/build/src/types/tests/worker/index.test.d.ts +166 -8
- package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +94 -10
- package/build/src/types/tests/worker/interpreters/pfsense.test.d.ts +163 -4
- package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +67 -4
- package/build/src/types/tests/worker/interpreters/seerr.test.d.ts +138 -3
- package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +235 -30
- package/build/src/types/tests/worker/interpreters/synology.test.d.ts +61 -3
- package/build/src/types/tests/worker/interpreters/unifi.test.d.ts +93 -3
- package/build/src/types/tests/worker/landing/page.test.d.ts +73 -50
- package/build/src/types/tests/worker/pipeline/accumulate.test.d.ts +226 -15
- package/build/src/types/tests/worker/pipeline/authenticate.test.d.ts +148 -4
- package/build/src/types/tests/worker/pipeline/email.test.d.ts +82 -8
- package/build/src/types/tests/worker/pipeline/format.test.d.ts +112 -32
- package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +109 -17
- package/build/src/types/tests/worker/pipeline/parse.test.d.ts +70 -5
- package/build/src/types/tests/worker/pipeline/receive.test.d.ts +156 -15
- package/build/src/types/tests/worker/pipeline/respond.test.d.ts +129 -10
- package/build/src/types/tests/worker/pipeline/route.test.d.ts +412 -74
- package/build/src/types/tests/worker/pipeline/send.test.d.ts +58 -23
- package/build/src/types/tests/worker/pipeline/split.test.d.ts +47 -9
- package/build/src/types/worker/handlers.d.ts +193 -0
- package/build/src/types/worker/index.d.ts +58 -177
- package/build/src/types/worker/interpreters/ntfy-json.d.ts +10 -10
- package/build/src/types/worker/interpreters/pfsense.d.ts +57 -49
- package/build/src/types/worker/interpreters/plain-text.d.ts +7 -7
- package/build/src/types/worker/interpreters/seerr.d.ts +63 -61
- package/build/src/types/worker/interpreters/statuspage.d.ts +201 -116
- package/build/src/types/worker/interpreters/synology.d.ts +48 -46
- package/build/src/types/worker/interpreters/unifi.d.ts +79 -54
- package/build/src/types/worker/landing/page.d.ts +30 -23
- package/build/src/types/worker/pipeline/accumulate.d.ts +46 -32
- package/build/src/types/worker/pipeline/authenticate.d.ts +94 -34
- package/build/src/types/worker/pipeline/email.d.ts +114 -50
- package/build/src/types/worker/pipeline/format.d.ts +31 -23
- package/build/src/types/worker/pipeline/interpret.d.ts +34 -34
- package/build/src/types/worker/pipeline/parse.d.ts +25 -19
- package/build/src/types/worker/pipeline/receive.d.ts +36 -34
- package/build/src/types/worker/pipeline/respond.d.ts +119 -63
- package/build/src/types/worker/pipeline/route.d.ts +33 -16
- package/build/src/types/worker/pipeline/send.d.ts +116 -79
- package/build/src/types/worker/pipeline/split.d.ts +21 -16
- package/build/src/worker/handlers.d.ts +5 -4
- package/build/src/worker/handlers.d.ts.map +1 -1
- package/build/src/worker/handlers.js +268 -159
- package/build/src/worker/handlers.js.map +1 -1
- package/build/src/worker/index.d.ts +2 -2
- package/build/src/worker/index.d.ts.map +1 -1
- package/build/src/worker/index.js +37 -9
- package/build/src/worker/index.js.map +1 -1
- package/build/src/worker/interpreters/ntfy-json.d.ts +2 -2
- package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
- package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
- package/build/src/worker/interpreters/pfsense.d.ts +2 -2
- package/build/src/worker/interpreters/pfsense.d.ts.map +1 -1
- package/build/src/worker/interpreters/pfsense.js +20 -27
- package/build/src/worker/interpreters/pfsense.js.map +1 -1
- package/build/src/worker/interpreters/plain-text.d.ts +2 -2
- package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
- package/build/src/worker/interpreters/plain-text.js.map +1 -1
- package/build/src/worker/interpreters/seerr.d.ts +2 -2
- package/build/src/worker/interpreters/seerr.d.ts.map +1 -1
- package/build/src/worker/interpreters/seerr.js +16 -12
- package/build/src/worker/interpreters/seerr.js.map +1 -1
- package/build/src/worker/interpreters/statuspage.d.ts +2 -2
- package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
- package/build/src/worker/interpreters/statuspage.js +98 -47
- package/build/src/worker/interpreters/statuspage.js.map +1 -1
- package/build/src/worker/interpreters/synology.d.ts +2 -2
- package/build/src/worker/interpreters/synology.d.ts.map +1 -1
- package/build/src/worker/interpreters/synology.js +9 -5
- package/build/src/worker/interpreters/synology.js.map +1 -1
- package/build/src/worker/interpreters/unifi.d.ts +2 -2
- package/build/src/worker/interpreters/unifi.d.ts.map +1 -1
- package/build/src/worker/interpreters/unifi.js +34 -20
- package/build/src/worker/interpreters/unifi.js.map +1 -1
- package/build/src/worker/landing/page.d.ts +2 -2
- package/build/src/worker/landing/page.d.ts.map +1 -1
- package/build/src/worker/landing/page.js +4 -3
- package/build/src/worker/landing/page.js.map +1 -1
- package/build/src/worker/pipeline/accumulate.d.ts +5 -6
- package/build/src/worker/pipeline/accumulate.d.ts.map +1 -1
- package/build/src/worker/pipeline/accumulate.js +4 -11
- package/build/src/worker/pipeline/accumulate.js.map +1 -1
- package/build/src/worker/pipeline/authenticate.d.ts +2 -2
- package/build/src/worker/pipeline/authenticate.d.ts.map +1 -1
- package/build/src/worker/pipeline/authenticate.js +25 -7
- package/build/src/worker/pipeline/authenticate.js.map +1 -1
- package/build/src/worker/pipeline/email.d.ts +2 -2
- package/build/src/worker/pipeline/email.d.ts.map +1 -1
- package/build/src/worker/pipeline/email.js +34 -11
- package/build/src/worker/pipeline/email.js.map +1 -1
- package/build/src/worker/pipeline/format.d.ts +2 -3
- package/build/src/worker/pipeline/format.d.ts.map +1 -1
- package/build/src/worker/pipeline/format.js +2 -1
- package/build/src/worker/pipeline/format.js.map +1 -1
- package/build/src/worker/pipeline/interpret.d.ts +4 -3
- package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
- package/build/src/worker/pipeline/interpret.js +7 -7
- package/build/src/worker/pipeline/interpret.js.map +1 -1
- package/build/src/worker/pipeline/parse.d.ts +2 -2
- package/build/src/worker/pipeline/parse.d.ts.map +1 -1
- package/build/src/worker/pipeline/parse.js +14 -7
- package/build/src/worker/pipeline/parse.js.map +1 -1
- package/build/src/worker/pipeline/receive.d.ts +2 -2
- package/build/src/worker/pipeline/receive.d.ts.map +1 -1
- package/build/src/worker/pipeline/receive.js +6 -6
- package/build/src/worker/pipeline/receive.js.map +1 -1
- package/build/src/worker/pipeline/respond.d.ts +2 -2
- package/build/src/worker/pipeline/respond.d.ts.map +1 -1
- package/build/src/worker/pipeline/respond.js +1 -1
- package/build/src/worker/pipeline/respond.js.map +1 -1
- package/build/src/worker/pipeline/route.d.ts +2 -3
- package/build/src/worker/pipeline/route.d.ts.map +1 -1
- package/build/src/worker/pipeline/route.js.map +1 -1
- package/build/src/worker/pipeline/send.d.ts +2 -2
- package/build/src/worker/pipeline/send.d.ts.map +1 -1
- package/build/src/worker/pipeline/send.js +80 -41
- package/build/src/worker/pipeline/send.js.map +1 -1
- package/build/src/worker/pipeline/split.d.ts +2 -2
- package/build/src/worker/pipeline/split.d.ts.map +1 -1
- package/build/src/worker/pipeline/split.js +4 -2
- package/build/src/worker/pipeline/split.js.map +1 -1
- package/package.json +10 -9
- package/build/src/types/tests/type-declarations.test.d.ts +0 -173
- 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
|
|
26
|
+
export type Worker_Pipeline_Email_ExtractEmailAddress_Header = string;
|
|
7
27
|
|
|
8
|
-
export type
|
|
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
|
|
37
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Body = string;
|
|
16
38
|
|
|
17
|
-
export type
|
|
39
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_HeaderSection = string;
|
|
18
40
|
|
|
19
|
-
export type
|
|
41
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Returns_Text = string;
|
|
20
42
|
|
|
21
|
-
export type
|
|
43
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Returns_Html = string;
|
|
22
44
|
|
|
23
|
-
export type
|
|
24
|
-
text:
|
|
25
|
-
html:
|
|
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
|
|
50
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_NestedBoundaryMatch = RegExpMatchArray | null;
|
|
29
51
|
|
|
30
|
-
export type
|
|
52
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_NestedBoundary = string | undefined;
|
|
31
53
|
|
|
32
|
-
export type
|
|
54
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Text = string;
|
|
33
55
|
|
|
34
|
-
export type
|
|
56
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Html = string;
|
|
35
57
|
|
|
36
|
-
export type
|
|
58
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Parts = string[];
|
|
37
59
|
|
|
38
|
-
export type
|
|
60
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_TrimmedPart = string;
|
|
39
61
|
|
|
40
|
-
export type
|
|
62
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_Separator = string;
|
|
41
63
|
|
|
42
|
-
export type
|
|
64
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_SeparatorIndex = number;
|
|
43
65
|
|
|
44
|
-
export type
|
|
66
|
+
export type Worker_Pipeline_Email_ExtractFromMultipart_PartContentType = string;
|
|
45
67
|
|
|
46
|
-
export type
|
|
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
|
|
75
|
+
export type Worker_Pipeline_Email_ParseEmail_RawEmail = string;
|
|
54
76
|
|
|
55
|
-
export type
|
|
77
|
+
export type Worker_Pipeline_Email_ParseEmail_Result_From = string;
|
|
56
78
|
|
|
57
|
-
export type
|
|
79
|
+
export type Worker_Pipeline_Email_ParseEmail_Result_To = string;
|
|
58
80
|
|
|
59
|
-
export type
|
|
81
|
+
export type Worker_Pipeline_Email_ParseEmail_Result_Subject = string;
|
|
60
82
|
|
|
61
|
-
export type
|
|
83
|
+
export type Worker_Pipeline_Email_ParseEmail_Result_TextBody = string;
|
|
62
84
|
|
|
63
|
-
export type
|
|
64
|
-
from:
|
|
65
|
-
to:
|
|
66
|
-
subject:
|
|
67
|
-
textBody:
|
|
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
|
|
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
|
|
104
|
+
export type Worker_Pipeline_Email_ParseEmail_HeaderLines = string[];
|
|
73
105
|
|
|
74
|
-
export type
|
|
106
|
+
export type Worker_Pipeline_Email_ParseEmail_Headers = Map<string, string>;
|
|
75
107
|
|
|
76
|
-
export type
|
|
108
|
+
export type Worker_Pipeline_Email_ParseEmail_ColonIndex = number;
|
|
77
109
|
|
|
78
|
-
export type
|
|
110
|
+
export type Worker_Pipeline_Email_ParseEmail_Key = string;
|
|
79
111
|
|
|
80
|
-
export type
|
|
112
|
+
export type Worker_Pipeline_Email_ParseEmail_Value = string;
|
|
81
113
|
|
|
82
|
-
export type
|
|
114
|
+
export type Worker_Pipeline_Email_ParseEmail_From = string;
|
|
83
115
|
|
|
84
|
-
export type
|
|
116
|
+
export type Worker_Pipeline_Email_ParseEmail_To = string;
|
|
85
117
|
|
|
86
|
-
export type
|
|
118
|
+
export type Worker_Pipeline_Email_ParseEmail_Subject = string;
|
|
87
119
|
|
|
88
|
-
export type
|
|
120
|
+
export type Worker_Pipeline_Email_ParseEmail_ContentType = string;
|
|
89
121
|
|
|
90
|
-
export type
|
|
122
|
+
export type Worker_Pipeline_Email_ParseEmail_BoundaryMatch = RegExpMatchArray | null;
|
|
91
123
|
|
|
92
|
-
export type
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
153
|
+
export type Worker_Pipeline_Email_ParseEmail_StrippedBody = string;
|
|
98
154
|
|
|
99
|
-
export type
|
|
155
|
+
export type Worker_Pipeline_Email_ParseEmail_HtmlTextBody = string;
|
|
100
156
|
|
|
101
|
-
export type
|
|
157
|
+
export type Worker_Pipeline_Email_ParseEmail_EmbeddedBoundaryMatch = RegExpMatchArray | null;
|
|
102
158
|
|
|
103
|
-
export type
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
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
|
|
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
|
|
12
|
+
export type Worker_Pipeline_Format_OptionsVisitorIp = string;
|
|
9
13
|
|
|
10
|
-
export type
|
|
14
|
+
export type Worker_Pipeline_Format_OptionsCfProperties = Record<string, unknown>;
|
|
11
15
|
|
|
12
|
-
export type
|
|
13
|
-
showVisitorInfo:
|
|
14
|
-
visitorIp?:
|
|
15
|
-
cfProperties?:
|
|
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
|
|
22
|
+
export type Worker_Pipeline_Format_ResultBody = string;
|
|
19
23
|
|
|
20
|
-
export type
|
|
24
|
+
export type Worker_Pipeline_Format_ResultHeaders = Record<string, string>;
|
|
21
25
|
|
|
22
|
-
export type
|
|
23
|
-
body:
|
|
24
|
-
headers:
|
|
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
|
|
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
|
|
37
|
+
export type Worker_Pipeline_Format_Ip = string;
|
|
30
38
|
|
|
31
|
-
export type
|
|
39
|
+
export type Worker_Pipeline_Format_Separator = string;
|
|
32
40
|
|
|
33
|
-
export type
|
|
41
|
+
export type Worker_Pipeline_Format_IsMarkdown = boolean;
|
|
34
42
|
|
|
35
|
-
export type
|
|
43
|
+
export type Worker_Pipeline_Format_Lines = string[];
|
|
36
44
|
|
|
37
|
-
export type
|
|
45
|
+
export type Worker_Pipeline_Format_Headers = Record<string, string>;
|
|
38
46
|
|
|
39
|
-
export type
|
|
47
|
+
export type Worker_Pipeline_Format_PriorityString = string;
|
|
40
48
|
|
|
41
|
-
export type
|
|
49
|
+
export type Worker_Pipeline_Format_TagsString = string;
|
|
42
50
|
|
|
43
|
-
export type
|
|
51
|
+
export type Worker_Pipeline_Format_MarkdownString = string;
|
|
44
52
|
|
|
45
|
-
export type
|
|
53
|
+
export type Worker_Pipeline_Format_Format_Bold_Bold_Returns = string;
|
|
46
54
|
|
|
47
|
-
export type
|
|
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
|
|
6
|
+
export type Worker_Pipeline_Interpret_NotificationObjectTitle = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Worker_Pipeline_Interpret_NotificationObjectBody = string;
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type Worker_Pipeline_Interpret_NotificationObjectPriority = 1 | 2 | 3 | 4 | 5;
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Worker_Pipeline_Interpret_NotificationObjectTags = string[];
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type Worker_Pipeline_Interpret_NotificationObjectIcon = string;
|
|
15
15
|
|
|
16
|
-
export type
|
|
16
|
+
export type Worker_Pipeline_Interpret_NotificationObjectActions = string;
|
|
17
17
|
|
|
18
|
-
export type
|
|
18
|
+
export type Worker_Pipeline_Interpret_NotificationObjectAttach = string;
|
|
19
19
|
|
|
20
|
-
export type
|
|
20
|
+
export type Worker_Pipeline_Interpret_NotificationObjectFilename = string;
|
|
21
21
|
|
|
22
|
-
export type
|
|
22
|
+
export type Worker_Pipeline_Interpret_NotificationObjectMarkdown = boolean;
|
|
23
23
|
|
|
24
|
-
export type
|
|
25
|
-
title?:
|
|
26
|
-
body:
|
|
27
|
-
priority?:
|
|
28
|
-
tags?:
|
|
29
|
-
icon?:
|
|
30
|
-
actions?:
|
|
31
|
-
attach?:
|
|
32
|
-
filename?:
|
|
33
|
-
markdown?:
|
|
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
|
|
36
|
+
export type Worker_Pipeline_Interpret_ResultNotification = Worker_Pipeline_Interpret_NotificationObject;
|
|
37
37
|
|
|
38
|
-
export type
|
|
38
|
+
export type Worker_Pipeline_Interpret_ResultAttachment = ArrayBuffer;
|
|
39
39
|
|
|
40
|
-
export type
|
|
41
|
-
notification:
|
|
42
|
-
attachment?:
|
|
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
|
|
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
|
|
47
|
+
export type Worker_Pipeline_Interpret_InterpreterMap = Record<string, Worker_Pipeline_Interpret_Interpreter>;
|
|
48
48
|
|
|
49
|
-
export type
|
|
49
|
+
export type Worker_Pipeline_Interpret_Input = string | object | ArrayBuffer;
|
|
50
50
|
|
|
51
|
-
export type
|
|
51
|
+
export type Worker_Pipeline_Interpret_ContextKv = KVNamespace;
|
|
52
52
|
|
|
53
|
-
export type
|
|
54
|
-
kv?:
|
|
53
|
+
export type Worker_Pipeline_Interpret_Context = {
|
|
54
|
+
kv?: Worker_Pipeline_Interpret_ContextKv;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
export type
|
|
57
|
+
export type Worker_Pipeline_Interpret_Interpret_InterpreterName = string;
|
|
58
58
|
|
|
59
|
-
export type
|
|
59
|
+
export type Worker_Pipeline_Interpret_Returns = Promise<Worker_Pipeline_Interpret_Result | null>;
|
|
60
60
|
|
|
61
|
-
export type
|
|
61
|
+
export type Worker_Pipeline_Interpret_SelectedInterpreter = Worker_Pipeline_Interpret_Interpreter | undefined;
|
|
62
62
|
|
|
63
|
-
export type
|
|
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
|
|
6
|
+
export type Worker_Pipeline_Parse_ResultType = 'text' | 'json' | 'binary' | 'unknown';
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Worker_Pipeline_Parse_ResultText = string;
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type Worker_Pipeline_Parse_ResultJson = Record<string, unknown>;
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Worker_Pipeline_Parse_ResultBinary = ArrayBuffer;
|
|
13
13
|
|
|
14
|
-
export type
|
|
15
|
-
type:
|
|
16
|
-
text?:
|
|
17
|
-
json?:
|
|
18
|
-
binary?:
|
|
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
|
|
21
|
+
export type Worker_Pipeline_Parse_Returns = Worker_Pipeline_Parse_Result;
|
|
22
22
|
|
|
23
|
-
export type
|
|
23
|
+
export type Worker_Pipeline_Parse_ContentType = string;
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type Worker_Pipeline_Parse_ContentTypePart = string | undefined;
|
|
26
26
|
|
|
27
|
-
export type
|
|
27
|
+
export type Worker_Pipeline_Parse_BaseContentType = string;
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type Worker_Pipeline_Parse_IsBinaryContentType = boolean;
|
|
30
30
|
|
|
31
|
-
export type
|
|
31
|
+
export type Worker_Pipeline_Parse_Bytes = Uint8Array;
|
|
32
32
|
|
|
33
|
-
export type
|
|
33
|
+
export type Worker_Pipeline_Parse_Text = string | undefined;
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type Worker_Pipeline_Parse_Decoder = TextDecoder;
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type Worker_Pipeline_Parse_IsJsonContentType = boolean;
|
|
38
38
|
|
|
39
|
-
export type
|
|
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
|
|
6
|
+
export type Worker_Pipeline_Receive_ResultMethod = string;
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type Worker_Pipeline_Receive_ResultHostname = string;
|
|
9
9
|
|
|
10
|
-
export type
|
|
10
|
+
export type Worker_Pipeline_Receive_ResultUrl = string;
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Worker_Pipeline_Receive_ResultHeaders = Headers;
|
|
13
13
|
|
|
14
|
-
export type
|
|
14
|
+
export type Worker_Pipeline_Receive_ResultRawBody = ArrayBuffer;
|
|
15
15
|
|
|
16
|
-
export type
|
|
16
|
+
export type Worker_Pipeline_Receive_ResultIsGet = boolean;
|
|
17
17
|
|
|
18
|
-
export type
|
|
18
|
+
export type Worker_Pipeline_Receive_ResultRedirect = string;
|
|
19
19
|
|
|
20
|
-
export type
|
|
20
|
+
export type Worker_Pipeline_Receive_ResultError = string;
|
|
21
21
|
|
|
22
|
-
export type
|
|
22
|
+
export type Worker_Pipeline_Receive_ResultCfProperties = IncomingRequestCfProperties;
|
|
23
23
|
|
|
24
|
-
export type
|
|
25
|
-
method:
|
|
26
|
-
hostname:
|
|
27
|
-
url:
|
|
28
|
-
headers:
|
|
29
|
-
rawBody:
|
|
30
|
-
isGet:
|
|
31
|
-
redirect?:
|
|
32
|
-
error?:
|
|
33
|
-
cfProperties?:
|
|
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
|
|
36
|
+
export type Worker_Pipeline_Receive_Request = Request;
|
|
37
37
|
|
|
38
|
-
export type
|
|
38
|
+
export type Worker_Pipeline_Receive_BaseDomain = string;
|
|
39
39
|
|
|
40
|
-
export type
|
|
40
|
+
export type Worker_Pipeline_Receive_Returns = Promise<Worker_Pipeline_Receive_Result>;
|
|
41
41
|
|
|
42
|
-
export type
|
|
42
|
+
export type Worker_Pipeline_Receive_Method = string;
|
|
43
43
|
|
|
44
|
-
export type
|
|
44
|
+
export type Worker_Pipeline_Receive_Hostname = string;
|
|
45
45
|
|
|
46
|
-
export type
|
|
46
|
+
export type Worker_Pipeline_Receive_Protocol = string;
|
|
47
47
|
|
|
48
|
-
export type
|
|
48
|
+
export type Worker_Pipeline_Receive_Url = string;
|
|
49
49
|
|
|
50
|
-
export type
|
|
50
|
+
export type Worker_Pipeline_Receive_Headers = Headers;
|
|
51
51
|
|
|
52
|
-
export type
|
|
52
|
+
export type Worker_Pipeline_Receive_IncludesBaseDomain = boolean;
|
|
53
53
|
|
|
54
|
-
export type
|
|
54
|
+
export type Worker_Pipeline_Receive_Redirect = string;
|
|
55
55
|
|
|
56
|
-
export type
|
|
56
|
+
export type Worker_Pipeline_Receive_RawBody = ArrayBuffer;
|
|
57
57
|
|
|
58
|
-
export type
|
|
58
|
+
export type Worker_Pipeline_Receive_IsGet = boolean;
|
|
59
59
|
|
|
60
|
-
export type
|
|
60
|
+
export type Worker_Pipeline_Receive_CfRequestUnknown = unknown;
|
|
61
61
|
|
|
62
|
-
export type
|
|
62
|
+
export type Worker_Pipeline_Receive_CfRequestRecord = Record<string, unknown>;
|
|
63
63
|
|
|
64
|
-
export type
|
|
64
|
+
export type Worker_Pipeline_Receive_CfProperties = IncomingRequestCfProperties | undefined;
|
|
65
|
+
|
|
66
|
+
export type Worker_Pipeline_Receive_Receive_ParsedUrl = URL;
|