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,37 +1,72 @@
|
|
|
1
|
+
import type { Worker_Pipeline_Send_Result } from '../../../worker/pipeline/send.d.ts';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Tests - Worker - Pipeline - Send.
|
|
3
5
|
*
|
|
4
6
|
* @since 2.0.0
|
|
5
7
|
*/
|
|
6
|
-
export type
|
|
7
|
-
name: string;
|
|
8
|
-
server: string;
|
|
9
|
-
token: string;
|
|
10
|
-
};
|
|
8
|
+
export type Tests_Worker_Pipeline_Send_Server_Name = string;
|
|
11
9
|
|
|
12
|
-
export type
|
|
10
|
+
export type Tests_Worker_Pipeline_Send_Server_Server = string;
|
|
13
11
|
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
export type Tests_Worker_Pipeline_Send_Server_Token = string;
|
|
13
|
+
|
|
14
|
+
export type Tests_Worker_Pipeline_Send_Server = {
|
|
15
|
+
name: Tests_Worker_Pipeline_Send_Server_Name;
|
|
16
|
+
server: Tests_Worker_Pipeline_Send_Server_Server;
|
|
17
|
+
token: Tests_Worker_Pipeline_Send_Server_Token;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
export type
|
|
20
|
+
export type Tests_Worker_Pipeline_Send_Servers = Tests_Worker_Pipeline_Send_Server[];
|
|
20
21
|
|
|
21
|
-
export type
|
|
22
|
-
results: TestsWorkerPipelineSendServerResult[];
|
|
23
|
-
fallbackUsed: boolean;
|
|
24
|
-
fallbackNote?: string | undefined;
|
|
25
|
-
};
|
|
22
|
+
export type Tests_Worker_Pipeline_Send_Message_Body = string;
|
|
26
23
|
|
|
27
|
-
export type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
error?: string | undefined;
|
|
24
|
+
export type Tests_Worker_Pipeline_Send_Message_Headers = Record<string, string>;
|
|
25
|
+
|
|
26
|
+
export type Tests_Worker_Pipeline_Send_Message = {
|
|
27
|
+
body: Tests_Worker_Pipeline_Send_Message_Body;
|
|
28
|
+
headers: Tests_Worker_Pipeline_Send_Message_Headers;
|
|
33
29
|
};
|
|
34
30
|
|
|
35
|
-
export type
|
|
31
|
+
export type Tests_Worker_Pipeline_Send_Messages = Tests_Worker_Pipeline_Send_Message[];
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Tests - Worker - Pipeline - Send - Send - Falls Back To Next Server When Primary Fails In Send Once.
|
|
35
|
+
*
|
|
36
|
+
* @since 2.0.0
|
|
37
|
+
*/
|
|
38
|
+
export type Tests_Worker_Pipeline_Send_Send_FallsBackToNextServerWhenPrimaryFailsInSendOnce_Result = Readonly<Worker_Pipeline_Send_Result>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Tests - Worker - Pipeline - Send - Send - Handles Stage 2 Binary Attachment.
|
|
42
|
+
*
|
|
43
|
+
* @since 2.0.0
|
|
44
|
+
*/
|
|
45
|
+
export type Tests_Worker_Pipeline_Send_Send_HandlesStage2BinaryAttachment_Attachment = ArrayBuffer;
|
|
46
|
+
|
|
47
|
+
export type Tests_Worker_Pipeline_Send_Send_HandlesStage2BinaryAttachment_Result = Readonly<Worker_Pipeline_Send_Result>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Tests - Worker - Pipeline - Send - Send - Sends To All Servers In Send All Mode.
|
|
51
|
+
*
|
|
52
|
+
* @since 2.0.0
|
|
53
|
+
*/
|
|
54
|
+
export type Tests_Worker_Pipeline_Send_Send_SendsToAllServersInSendAllMode_Result = Readonly<Worker_Pipeline_Send_Result>;
|
|
55
|
+
|
|
56
|
+
export type Tests_Worker_Pipeline_Send_Send_SendsToAllServersInSendAllMode_EveryResult = boolean;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Tests - Worker - Pipeline - Send - Send - Sends To Primary Server In Send Once Mode.
|
|
60
|
+
*
|
|
61
|
+
* @since 2.0.0
|
|
62
|
+
*/
|
|
63
|
+
export type Tests_Worker_Pipeline_Send_Send_SendsToPrimaryServerInSendOnceMode_Result = Readonly<Worker_Pipeline_Send_Result>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Tests - Worker - Pipeline - Send - Send - Skips Stage 2 If Stage 1 Fails On A Server.
|
|
67
|
+
*
|
|
68
|
+
* @since 2.0.0
|
|
69
|
+
*/
|
|
70
|
+
export type Tests_Worker_Pipeline_Send_Send_SkipsStage2IfStage1FailsOnAServer_Attachment = ArrayBuffer;
|
|
36
71
|
|
|
37
|
-
export type
|
|
72
|
+
export type Tests_Worker_Pipeline_Send_Send_SkipsStage2IfStage1FailsOnAServer_Result = Readonly<Worker_Pipeline_Send_Result>;
|
|
@@ -1,17 +1,55 @@
|
|
|
1
|
+
import type { Worker_Pipeline_Split_MessagePart } from '../../../worker/pipeline/split.d.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tests - Worker - Pipeline - Split - Split - Adds Part Numbers To Title.
|
|
5
|
+
*
|
|
6
|
+
* @since 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type Tests_Worker_Pipeline_Split_Split_AddsPartNumbersToTitle_LongBody = string;
|
|
9
|
+
|
|
10
|
+
export type Tests_Worker_Pipeline_Split_Split_AddsPartNumbersToTitle_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Tests - Worker - Pipeline - Split - Split - Creates Title If None Exists When Splitting.
|
|
14
|
+
*
|
|
15
|
+
* @since 2.0.0
|
|
16
|
+
*/
|
|
17
|
+
export type Tests_Worker_Pipeline_Split_Split_CreatesTitleIfNoneExistsWhenSplitting_LongBody = string;
|
|
18
|
+
|
|
19
|
+
export type Tests_Worker_Pipeline_Split_Split_CreatesTitleIfNoneExistsWhenSplitting_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Tests - Worker - Pipeline - Split - Split - Does Not Split On Multi Byte Character Boundaries.
|
|
23
|
+
*
|
|
24
|
+
* @since 2.0.0
|
|
25
|
+
*/
|
|
26
|
+
export type Tests_Worker_Pipeline_Split_Split_DoesNotSplitOnMultiByteCharacterBoundaries_Body = string;
|
|
27
|
+
|
|
28
|
+
export type Tests_Worker_Pipeline_Split_Split_DoesNotSplitOnMultiByteCharacterBoundaries_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
29
|
+
|
|
1
30
|
/**
|
|
2
|
-
* Tests - Worker - Pipeline - Split.
|
|
31
|
+
* Tests - Worker - Pipeline - Split - Split - Preserves All Headers On Each Part.
|
|
3
32
|
*
|
|
4
33
|
* @since 2.0.0
|
|
5
34
|
*/
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
35
|
+
export type Tests_Worker_Pipeline_Split_Split_PreservesAllHeadersOnEachPart_LongBody = string;
|
|
36
|
+
|
|
37
|
+
export type Tests_Worker_Pipeline_Split_Split_PreservesAllHeadersOnEachPart_Headers = Record<string, string>;
|
|
10
38
|
|
|
11
|
-
export type
|
|
39
|
+
export type Tests_Worker_Pipeline_Split_Split_PreservesAllHeadersOnEachPart_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
12
40
|
|
|
13
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Tests - Worker - Pipeline - Split - Split - Returns Single Message When Under Limit.
|
|
43
|
+
*
|
|
44
|
+
* @since 2.0.0
|
|
45
|
+
*/
|
|
46
|
+
export type Tests_Worker_Pipeline_Split_Split_ReturnsSingleMessageWhenUnderLimit_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
14
47
|
|
|
15
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Tests - Worker - Pipeline - Split - Split - Splits Message Exceeding 4000 Bytes.
|
|
50
|
+
*
|
|
51
|
+
* @since 2.0.0
|
|
52
|
+
*/
|
|
53
|
+
export type Tests_Worker_Pipeline_Split_Split_SplitsMessageExceeding4000Bytes_LongBody = string;
|
|
16
54
|
|
|
17
|
-
export type
|
|
55
|
+
export type Tests_Worker_Pipeline_Split_Split_SplitsMessageExceeding4000Bytes_Result = readonly Worker_Pipeline_Split_MessagePart[];
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Lib_Schema_ConfigSchema,
|
|
3
|
+
Lib_Schema_ContextConfigErrorEvent,
|
|
4
|
+
Lib_Schema_EmailContextConfig,
|
|
5
|
+
Lib_Schema_HttpContextConfig,
|
|
6
|
+
Lib_Schema_ServerConfig,
|
|
7
|
+
} from '../lib/schema.d.ts';
|
|
8
|
+
import type { Worker_Pipeline_Authenticate_Result } from './pipeline/authenticate.d.ts';
|
|
9
|
+
import type { Worker_Pipeline_Email_Result } from './pipeline/email.d.ts';
|
|
10
|
+
import type { Worker_Pipeline_Format_Result } from './pipeline/format.d.ts';
|
|
11
|
+
import type { Worker_Pipeline_Interpret_Result } from './pipeline/interpret.d.ts';
|
|
12
|
+
import type { Worker_Pipeline_Parse_Result } from './pipeline/parse.d.ts';
|
|
13
|
+
import type { Worker_Pipeline_Receive_Result } from './pipeline/receive.d.ts';
|
|
14
|
+
import type { Worker_Pipeline_Route_Result } from './pipeline/route.d.ts';
|
|
15
|
+
import type { Worker_Pipeline_Send_Result } from './pipeline/send.d.ts';
|
|
16
|
+
import type { Worker_Pipeline_Split_MessagePart } from './pipeline/split.d.ts';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Worker - Handlers - Handle Email.
|
|
20
|
+
*
|
|
21
|
+
* @since 2.0.0
|
|
22
|
+
*/
|
|
23
|
+
export type Worker_Handlers_HandleEmail_RawEmail = string;
|
|
24
|
+
|
|
25
|
+
export type Worker_Handlers_HandleEmail_From = string;
|
|
26
|
+
|
|
27
|
+
export type Worker_Handlers_HandleEmail_Config = Lib_Schema_ConfigSchema;
|
|
28
|
+
|
|
29
|
+
export type Worker_Handlers_HandleEmail_Kv = KVNamespace | undefined;
|
|
30
|
+
|
|
31
|
+
export type Worker_Handlers_HandleEmail_Returns = Promise<void>;
|
|
32
|
+
|
|
33
|
+
export type Worker_Handlers_HandleEmail_Parsed = Worker_Pipeline_Email_Result & {};
|
|
34
|
+
|
|
35
|
+
export type Worker_Handlers_HandleEmail_DebugRawEmailStr = string;
|
|
36
|
+
|
|
37
|
+
export type Worker_Handlers_HandleEmail_RecipientLocalPart = string;
|
|
38
|
+
|
|
39
|
+
export type Worker_Handlers_HandleEmail_Routed = Worker_Pipeline_Route_Result & {};
|
|
40
|
+
|
|
41
|
+
export type Worker_Handlers_HandleEmail_Ctx = Lib_Schema_EmailContextConfig & {};
|
|
42
|
+
|
|
43
|
+
export type Worker_Handlers_HandleEmail_ResolvedServers = Array<Lib_Schema_ServerConfig>;
|
|
44
|
+
|
|
45
|
+
export type Worker_Handlers_HandleEmail_PrimaryServer = Lib_Schema_ServerConfig & {};
|
|
46
|
+
|
|
47
|
+
export type Worker_Handlers_HandleEmail_AuthResult = Worker_Pipeline_Authenticate_Result & {};
|
|
48
|
+
|
|
49
|
+
export type Worker_Handlers_HandleEmail_AuthErrorAttachmentData = Record<string, unknown>;
|
|
50
|
+
|
|
51
|
+
export type Worker_Handlers_HandleEmail_AuthErrorAttachmentJson = string;
|
|
52
|
+
|
|
53
|
+
export type Worker_Handlers_HandleEmail_AuthErrorAttachmentBuffer = ArrayBuffer;
|
|
54
|
+
|
|
55
|
+
export type Worker_Handlers_HandleEmail_EmailInput = Record<string, string>;
|
|
56
|
+
|
|
57
|
+
export type Worker_Handlers_HandleEmail_Interpreted = Worker_Pipeline_Interpret_Result | null | undefined;
|
|
58
|
+
|
|
59
|
+
export type Worker_Handlers_HandleEmail_ErrorName = string;
|
|
60
|
+
|
|
61
|
+
export type Worker_Handlers_HandleEmail_ErrorMessage = string;
|
|
62
|
+
|
|
63
|
+
export type Worker_Handlers_HandleEmail_ErrorStack = string | undefined;
|
|
64
|
+
|
|
65
|
+
export type Worker_Handlers_HandleEmail_ErrorIssues = unknown[] | undefined;
|
|
66
|
+
|
|
67
|
+
export type Worker_Handlers_HandleEmail_ErrorIssuesRaw = unknown;
|
|
68
|
+
|
|
69
|
+
export type Worker_Handlers_HandleEmail_InterpretErrorAttachmentData = Record<string, unknown>;
|
|
70
|
+
|
|
71
|
+
export type Worker_Handlers_HandleEmail_InterpretErrorAttachmentJson = string;
|
|
72
|
+
|
|
73
|
+
export type Worker_Handlers_HandleEmail_InterpretErrorAttachmentBuffer = ArrayBuffer;
|
|
74
|
+
|
|
75
|
+
export type Worker_Handlers_HandleEmail_Formatted = Worker_Pipeline_Format_Result & {};
|
|
76
|
+
|
|
77
|
+
export type Worker_Handlers_HandleEmail_Messages = Array<Worker_Pipeline_Split_MessagePart>;
|
|
78
|
+
|
|
79
|
+
export type Worker_Handlers_HandleEmail_SendResult = Worker_Pipeline_Send_Result & {};
|
|
80
|
+
|
|
81
|
+
export type Worker_Handlers_HandleEmail_DebugLogStr = string;
|
|
82
|
+
|
|
83
|
+
export type Worker_Handlers_HandleEmail_FatalErrorMessage = string;
|
|
84
|
+
|
|
85
|
+
export type Worker_Handlers_HandleEmail_FatalDebugStr = string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Worker - Handlers - Handle Request.
|
|
89
|
+
*
|
|
90
|
+
* @since 2.0.0
|
|
91
|
+
*/
|
|
92
|
+
export type Worker_Handlers_HandleRequest_Request = Request;
|
|
93
|
+
|
|
94
|
+
export type Worker_Handlers_HandleRequest_Config = Lib_Schema_ConfigSchema;
|
|
95
|
+
|
|
96
|
+
export type Worker_Handlers_HandleRequest_Kv = KVNamespace | undefined;
|
|
97
|
+
|
|
98
|
+
export type Worker_Handlers_HandleRequest_Returns = Promise<Response>;
|
|
99
|
+
|
|
100
|
+
export type Worker_Handlers_HandleRequest_Received = Worker_Pipeline_Receive_Result & {};
|
|
101
|
+
|
|
102
|
+
export type Worker_Handlers_HandleRequest_Subdomain = string;
|
|
103
|
+
|
|
104
|
+
export type Worker_Handlers_HandleRequest_Routed = Worker_Pipeline_Route_Result & {};
|
|
105
|
+
|
|
106
|
+
export type Worker_Handlers_HandleRequest_Ctx = Lib_Schema_HttpContextConfig & {};
|
|
107
|
+
|
|
108
|
+
export type Worker_Handlers_HandleRequest_ResolvedServers = Array<Lib_Schema_ServerConfig>;
|
|
109
|
+
|
|
110
|
+
export type Worker_Handlers_HandleRequest_PrimaryServer = Lib_Schema_ServerConfig & {};
|
|
111
|
+
|
|
112
|
+
export type Worker_Handlers_HandleRequest_AuthResult = Worker_Pipeline_Authenticate_Result & {};
|
|
113
|
+
|
|
114
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentHeaderEntries = string[][];
|
|
115
|
+
|
|
116
|
+
export type Worker_Handlers_HandleRequest_AuthEntryName = string;
|
|
117
|
+
|
|
118
|
+
export type Worker_Handlers_HandleRequest_AuthEntryValue = string;
|
|
119
|
+
|
|
120
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentHeaders = Record<string, string>;
|
|
121
|
+
|
|
122
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentParsed = Worker_Pipeline_Parse_Result & {};
|
|
123
|
+
|
|
124
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentData = Record<string, unknown>;
|
|
125
|
+
|
|
126
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentJson = string;
|
|
127
|
+
|
|
128
|
+
export type Worker_Handlers_HandleRequest_AuthErrorAttachmentBuffer = ArrayBuffer;
|
|
129
|
+
|
|
130
|
+
export type Worker_Handlers_HandleRequest_Parsed = Worker_Pipeline_Parse_Result & {};
|
|
131
|
+
|
|
132
|
+
export type Worker_Handlers_HandleRequest_RawBodyJsonStr = string;
|
|
133
|
+
|
|
134
|
+
export type Worker_Handlers_HandleRequest_RawBodyText = string | undefined;
|
|
135
|
+
|
|
136
|
+
export type Worker_Handlers_HandleRequest_DebugRawRequestStr = string;
|
|
137
|
+
|
|
138
|
+
export type Worker_Handlers_HandleRequest_Input = string | object | ArrayBuffer;
|
|
139
|
+
|
|
140
|
+
export type Worker_Handlers_HandleRequest_Interpreted = Worker_Pipeline_Interpret_Result | null | undefined;
|
|
141
|
+
|
|
142
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorName = string;
|
|
143
|
+
|
|
144
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorMessage = string;
|
|
145
|
+
|
|
146
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorStack = string | undefined;
|
|
147
|
+
|
|
148
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorIssues = unknown[] | undefined;
|
|
149
|
+
|
|
150
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorIssuesRaw = unknown;
|
|
151
|
+
|
|
152
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorAttachmentHeaderEntries = string[][];
|
|
153
|
+
|
|
154
|
+
export type Worker_Handlers_HandleRequest_InterpretEntryName = string;
|
|
155
|
+
|
|
156
|
+
export type Worker_Handlers_HandleRequest_InterpretEntryValue = string;
|
|
157
|
+
|
|
158
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorAttachmentHeaders = Record<string, string>;
|
|
159
|
+
|
|
160
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorAttachmentData = Record<string, unknown>;
|
|
161
|
+
|
|
162
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorAttachmentJson = string;
|
|
163
|
+
|
|
164
|
+
export type Worker_Handlers_HandleRequest_InterpretErrorAttachmentBuffer = ArrayBuffer;
|
|
165
|
+
|
|
166
|
+
export type Worker_Handlers_HandleRequest_VisitorIpHeader = string | null;
|
|
167
|
+
|
|
168
|
+
export type Worker_Handlers_HandleRequest_Formatted = Worker_Pipeline_Format_Result & {};
|
|
169
|
+
|
|
170
|
+
export type Worker_Handlers_HandleRequest_Messages = Array<Worker_Pipeline_Split_MessagePart>;
|
|
171
|
+
|
|
172
|
+
export type Worker_Handlers_HandleRequest_SendResult = Worker_Pipeline_Send_Result & {};
|
|
173
|
+
|
|
174
|
+
export type Worker_Handlers_HandleRequest_Response = Response;
|
|
175
|
+
|
|
176
|
+
export type Worker_Handlers_HandleRequest_Cloned = Response;
|
|
177
|
+
|
|
178
|
+
export type Worker_Handlers_HandleRequest_ResponseBody = string;
|
|
179
|
+
|
|
180
|
+
export type Worker_Handlers_HandleRequest_FatalErrorMessage = string;
|
|
181
|
+
|
|
182
|
+
export type Worker_Handlers_HandleRequest_Body = Record<string, string>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Worker - Handlers - Should Notify Error.
|
|
186
|
+
*
|
|
187
|
+
* @since 2.1.0
|
|
188
|
+
*/
|
|
189
|
+
export type Worker_Handlers_ShouldNotifyError_Ctx = Lib_Schema_HttpContextConfig | Lib_Schema_EmailContextConfig;
|
|
190
|
+
|
|
191
|
+
export type Worker_Handlers_ShouldNotifyError_Category = Lib_Schema_ContextConfigErrorEvent;
|
|
192
|
+
|
|
193
|
+
export type Worker_Handlers_ShouldNotifyError_Returns = boolean;
|
|
@@ -1,232 +1,113 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
LibSchemaConfigSchema,
|
|
5
|
-
LibSchemaEmailContextConfig,
|
|
6
|
-
LibSchemaHttpContextConfig,
|
|
7
|
-
LibSchemaServerConfig,
|
|
8
|
-
} from '../lib/schema.d.ts';
|
|
9
|
-
import type { WorkerPipelineAuthenticateResult } from './pipeline/authenticate.d.ts';
|
|
10
|
-
import type { WorkerPipelineEmailResult } from './pipeline/email.d.ts';
|
|
11
|
-
import type { WorkerPipelineFormatResult } from './pipeline/format.d.ts';
|
|
12
|
-
import type {
|
|
13
|
-
WorkerPipelineInterpretInput,
|
|
14
|
-
WorkerPipelineInterpretResult,
|
|
15
|
-
} from './pipeline/interpret.d.ts';
|
|
16
|
-
import type { WorkerPipelineParseResult } from './pipeline/parse.d.ts';
|
|
17
|
-
import type { WorkerPipelineReceiveResult } from './pipeline/receive.d.ts';
|
|
18
|
-
import type { WorkerPipelineRouteResult } from './pipeline/route.d.ts';
|
|
19
|
-
import type { WorkerPipelineSendResult } from './pipeline/send.d.ts';
|
|
20
|
-
import type { WorkerPipelineSplitMessagePart } from './pipeline/split.d.ts';
|
|
3
|
+
import type { Lib_Schema_ConfigSchema } from '../lib/schema.d.ts';
|
|
21
4
|
|
|
22
5
|
/**
|
|
23
|
-
* Worker -
|
|
6
|
+
* Worker - Index - Module Exports.
|
|
24
7
|
*
|
|
25
8
|
* @since 2.0.0
|
|
26
9
|
*/
|
|
27
|
-
export type
|
|
28
|
-
from: string;
|
|
29
|
-
to: string;
|
|
30
|
-
headers: Headers;
|
|
31
|
-
raw: ReadableStream;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export type WorkerEmailHandlerEnv = Record<string, string | KVNamespace | undefined>;
|
|
35
|
-
|
|
36
|
-
export type WorkerEmailHandlerReturns = Promise<void>;
|
|
37
|
-
|
|
38
|
-
export type WorkerEmailHandlerEnvString = string;
|
|
39
|
-
|
|
40
|
-
export type WorkerEmailHandlerSettings = unknown;
|
|
41
|
-
|
|
42
|
-
export type WorkerEmailHandlerServers = unknown;
|
|
43
|
-
|
|
44
|
-
export type WorkerEmailHandlerContexts = unknown;
|
|
45
|
-
|
|
46
|
-
export type WorkerEmailHandlerResult = z.ZodSafeParseResult<LibSchemaConfigSchema>;
|
|
47
|
-
|
|
48
|
-
export type WorkerEmailHandlerReader = ReadableStreamDefaultReader<Uint8Array>;
|
|
49
|
-
|
|
50
|
-
export type WorkerEmailHandlerChunks = Uint8Array[];
|
|
51
|
-
|
|
52
|
-
export type WorkerEmailHandlerDone = boolean;
|
|
53
|
-
|
|
54
|
-
export type WorkerEmailHandlerReadResult = ReadableStreamReadResult<Uint8Array>;
|
|
55
|
-
|
|
56
|
-
export type WorkerEmailHandlerDecoder = TextDecoder;
|
|
57
|
-
|
|
58
|
-
export type WorkerEmailHandlerRawEmail = string;
|
|
59
|
-
|
|
60
|
-
export type WorkerEmailHandlerKv = KVNamespace | undefined;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Worker - Fetch Handler Variables.
|
|
64
|
-
*
|
|
65
|
-
* @since 2.0.0
|
|
66
|
-
*/
|
|
67
|
-
export type WorkerFetchEnv = Record<string, string | KVNamespace | undefined>;
|
|
10
|
+
export type Worker_Index_ModuleExports_FetchRequest = Request;
|
|
68
11
|
|
|
69
|
-
export type
|
|
12
|
+
export type Worker_Index_ModuleExports_FetchEnv = Record<string, string | KVNamespace | undefined>;
|
|
70
13
|
|
|
71
|
-
export type
|
|
14
|
+
export type Worker_Index_ModuleExports_FetchReturns = Promise<Response>;
|
|
72
15
|
|
|
73
|
-
export type
|
|
16
|
+
export type Worker_Index_ModuleExports_Fetch = (request: Worker_Index_ModuleExports_FetchRequest, env: Worker_Index_ModuleExports_FetchEnv) => Worker_Index_ModuleExports_FetchReturns;
|
|
74
17
|
|
|
75
|
-
export type
|
|
18
|
+
export type Worker_Index_ModuleExports_EmailMessage_From = string;
|
|
76
19
|
|
|
77
|
-
export type
|
|
20
|
+
export type Worker_Index_ModuleExports_EmailMessage_To = string;
|
|
78
21
|
|
|
79
|
-
export type
|
|
22
|
+
export type Worker_Index_ModuleExports_EmailMessage_Headers = Headers;
|
|
80
23
|
|
|
81
|
-
export type
|
|
24
|
+
export type Worker_Index_ModuleExports_EmailMessage_Raw = ReadableStream;
|
|
82
25
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
26
|
+
export type Worker_Index_ModuleExports_EmailMessage = {
|
|
27
|
+
from: Worker_Index_ModuleExports_EmailMessage_From;
|
|
28
|
+
to: Worker_Index_ModuleExports_EmailMessage_To;
|
|
29
|
+
headers: Worker_Index_ModuleExports_EmailMessage_Headers;
|
|
30
|
+
raw: Worker_Index_ModuleExports_EmailMessage_Raw;
|
|
31
|
+
};
|
|
89
32
|
|
|
90
|
-
export type
|
|
33
|
+
export type Worker_Index_ModuleExports_EmailEnv = Record<string, string | KVNamespace | undefined>;
|
|
91
34
|
|
|
92
|
-
export type
|
|
35
|
+
export type Worker_Index_ModuleExports_EmailReturns = Promise<void>;
|
|
93
36
|
|
|
94
|
-
export type
|
|
37
|
+
export type Worker_Index_ModuleExports_Email = (message: Worker_Index_ModuleExports_EmailMessage, env: Worker_Index_ModuleExports_EmailEnv) => Worker_Index_ModuleExports_EmailReturns;
|
|
95
38
|
|
|
96
|
-
export type
|
|
39
|
+
export type Worker_Index_ModuleExports = {
|
|
40
|
+
fetch: Worker_Index_ModuleExports_Fetch;
|
|
41
|
+
email: Worker_Index_ModuleExports_Email;
|
|
42
|
+
};
|
|
97
43
|
|
|
98
44
|
/**
|
|
99
|
-
* Worker -
|
|
45
|
+
* Worker - Index - Email.
|
|
100
46
|
*
|
|
101
47
|
* @since 2.0.0
|
|
102
48
|
*/
|
|
103
|
-
export type
|
|
49
|
+
export type Worker_Index_Email_Message_From = string;
|
|
104
50
|
|
|
105
|
-
export type
|
|
51
|
+
export type Worker_Index_Email_Message_To = string;
|
|
106
52
|
|
|
107
|
-
export type
|
|
53
|
+
export type Worker_Index_Email_Message_Headers = Headers;
|
|
108
54
|
|
|
109
|
-
export type
|
|
55
|
+
export type Worker_Index_Email_Message_Raw = ReadableStream;
|
|
110
56
|
|
|
111
|
-
export type
|
|
112
|
-
|
|
113
|
-
|
|
57
|
+
export type Worker_Index_Email_Message = {
|
|
58
|
+
from: Worker_Index_Email_Message_From;
|
|
59
|
+
to: Worker_Index_Email_Message_To;
|
|
60
|
+
headers: Worker_Index_Email_Message_Headers;
|
|
61
|
+
raw: Worker_Index_Email_Message_Raw;
|
|
62
|
+
};
|
|
114
63
|
|
|
115
|
-
export type
|
|
64
|
+
export type Worker_Index_Email_Env = Record<string, string | KVNamespace | undefined>;
|
|
116
65
|
|
|
117
|
-
export type
|
|
66
|
+
export type Worker_Index_Email_Returns = Promise<void>;
|
|
118
67
|
|
|
119
|
-
export type
|
|
68
|
+
export type Worker_Index_Email_Settings = unknown;
|
|
120
69
|
|
|
121
|
-
export type
|
|
70
|
+
export type Worker_Index_Email_Servers = unknown;
|
|
122
71
|
|
|
123
|
-
export type
|
|
72
|
+
export type Worker_Index_Email_Contexts = unknown;
|
|
124
73
|
|
|
125
|
-
export type
|
|
74
|
+
export type Worker_Index_Email_EnvString = string;
|
|
126
75
|
|
|
127
|
-
export type
|
|
76
|
+
export type Worker_Index_Email_Result = z.ZodSafeParseResult<Lib_Schema_ConfigSchema>;
|
|
128
77
|
|
|
129
|
-
export type
|
|
78
|
+
export type Worker_Index_Email_Reader = ReadableStreamDefaultReader<Uint8Array>;
|
|
130
79
|
|
|
131
|
-
export type
|
|
80
|
+
export type Worker_Index_Email_Chunks = Uint8Array[];
|
|
132
81
|
|
|
133
|
-
export type
|
|
82
|
+
export type Worker_Index_Email_Done = boolean;
|
|
134
83
|
|
|
135
|
-
export type
|
|
84
|
+
export type Worker_Index_Email_ReadResult = ReadableStreamReadResult<Uint8Array>;
|
|
136
85
|
|
|
137
|
-
export type
|
|
86
|
+
export type Worker_Index_Email_Decoder = TextDecoder;
|
|
138
87
|
|
|
139
|
-
export type
|
|
88
|
+
export type Worker_Index_Email_RawEmail = string;
|
|
140
89
|
|
|
141
|
-
export type
|
|
90
|
+
export type Worker_Index_Email_Kv = KVNamespace | undefined;
|
|
142
91
|
|
|
143
92
|
/**
|
|
144
|
-
* Worker -
|
|
93
|
+
* Worker - Index - Fetch.
|
|
145
94
|
*
|
|
146
95
|
* @since 2.0.0
|
|
147
96
|
*/
|
|
148
|
-
export type
|
|
97
|
+
export type Worker_Index_Fetch_Request = Request;
|
|
149
98
|
|
|
150
|
-
export type
|
|
99
|
+
export type Worker_Index_Fetch_Env = Record<string, string | KVNamespace | undefined>;
|
|
151
100
|
|
|
152
|
-
export type
|
|
101
|
+
export type Worker_Index_Fetch_Returns = Promise<Response>;
|
|
153
102
|
|
|
154
|
-
export type
|
|
103
|
+
export type Worker_Index_Fetch_Settings = unknown;
|
|
155
104
|
|
|
156
|
-
|
|
157
|
-
* Worker - Handle Request Variables.
|
|
158
|
-
*
|
|
159
|
-
* @since 2.0.0
|
|
160
|
-
*/
|
|
161
|
-
export type WorkerReceived = WorkerPipelineReceiveResult;
|
|
105
|
+
export type Worker_Index_Fetch_Servers = unknown;
|
|
162
106
|
|
|
163
|
-
export type
|
|
107
|
+
export type Worker_Index_Fetch_Contexts = unknown;
|
|
164
108
|
|
|
165
|
-
export type
|
|
109
|
+
export type Worker_Index_Fetch_EnvString = string;
|
|
166
110
|
|
|
167
|
-
export type
|
|
111
|
+
export type Worker_Index_Fetch_Result = z.ZodSafeParseResult<Lib_Schema_ConfigSchema>;
|
|
168
112
|
|
|
169
|
-
export type
|
|
170
|
-
|
|
171
|
-
export type WorkerPrimaryServer = LibSchemaServerConfig;
|
|
172
|
-
|
|
173
|
-
export type WorkerAuthResult = WorkerPipelineAuthenticateResult;
|
|
174
|
-
|
|
175
|
-
export type WorkerErrorFormatted = WorkerPipelineFormatResult;
|
|
176
|
-
|
|
177
|
-
export type WorkerErrorMessages = WorkerPipelineSplitMessagePart[];
|
|
178
|
-
|
|
179
|
-
export type WorkerErrorAttachmentHeaders = Record<string, string>;
|
|
180
|
-
|
|
181
|
-
export type WorkerErrorAttachmentData = Record<string, unknown>;
|
|
182
|
-
|
|
183
|
-
export type WorkerErrorAttachmentJson = string;
|
|
184
|
-
|
|
185
|
-
export type WorkerErrorAttachmentBuffer = ArrayBuffer;
|
|
186
|
-
|
|
187
|
-
export type WorkerParsed = WorkerPipelineParseResult;
|
|
188
|
-
|
|
189
|
-
export type WorkerRawBodyJsonStr = string;
|
|
190
|
-
|
|
191
|
-
export type WorkerRawBodyText = string | undefined;
|
|
192
|
-
|
|
193
|
-
export type WorkerDebugRawRequestStr = string;
|
|
194
|
-
|
|
195
|
-
export type WorkerInput = WorkerPipelineInterpretInput;
|
|
196
|
-
|
|
197
|
-
export type WorkerInterpreted = WorkerPipelineInterpretResult | null | undefined;
|
|
198
|
-
|
|
199
|
-
export type WorkerErrorMessage = string;
|
|
200
|
-
|
|
201
|
-
export type WorkerErrorNotification = {
|
|
202
|
-
notification: {
|
|
203
|
-
title: string;
|
|
204
|
-
body: string;
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export type WorkerVisitorIpHeader = string | null;
|
|
209
|
-
|
|
210
|
-
export type WorkerFormatted = WorkerPipelineFormatResult;
|
|
211
|
-
|
|
212
|
-
export type WorkerMessages = WorkerPipelineSplitMessagePart[];
|
|
213
|
-
|
|
214
|
-
export type WorkerSendResult = WorkerPipelineSendResult;
|
|
215
|
-
|
|
216
|
-
export type WorkerResponse = Response;
|
|
217
|
-
|
|
218
|
-
export type WorkerCloned = Response;
|
|
219
|
-
|
|
220
|
-
export type WorkerResponseBody = string;
|
|
221
|
-
|
|
222
|
-
export type WorkerBody = Record<string, string>;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Worker - Module Exports.
|
|
226
|
-
*
|
|
227
|
-
* @since 2.0.0
|
|
228
|
-
*/
|
|
229
|
-
export type WorkerModuleExports = {
|
|
230
|
-
fetch: (request: Request, env: WorkerFetchEnv) => WorkerFetchReturns;
|
|
231
|
-
email: (message: WorkerEmailHandlerMessage, env: WorkerEmailHandlerEnv) => WorkerEmailHandlerReturns;
|
|
232
|
-
};
|
|
113
|
+
export type Worker_Index_Fetch_Kv = KVNamespace | undefined;
|