ntfy-reverse-proxy 2.3.0 → 2.4.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/build/config.sample.json +4 -1
- package/build/src/cli/commands/context.d.ts +3 -2
- package/build/src/cli/commands/context.d.ts.map +1 -1
- package/build/src/cli/commands/context.js +4 -1
- package/build/src/cli/commands/context.js.map +1 -1
- package/build/src/cli/menu/interactive.d.ts.map +1 -1
- package/build/src/cli/menu/interactive.js +60 -13
- package/build/src/cli/menu/interactive.js.map +1 -1
- package/build/src/lib/regex.d.ts +2 -1
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +2 -1
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/schema.d.ts +27 -1
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +13 -2
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/types/cli/commands/context.d.ts +7 -0
- package/build/src/types/cli/menu/interactive.d.ts +11 -3
- package/build/src/types/lib/schema.d.ts +16 -1
- package/build/src/types/tests/cli/commands/context.test.d.ts +18 -0
- package/build/src/types/tests/lib/schema.test.d.ts +39 -0
- package/build/src/types/tests/worker/durable-objects/delivery-outbox.test.d.ts +413 -0
- package/build/src/types/tests/worker/index.test.d.ts +56 -0
- package/build/src/types/tests/worker/interpreters/mailmask.test.d.ts +103 -0
- package/build/src/types/tests/worker/landing/page.test.d.ts +11 -0
- package/build/src/types/tests/worker/pipeline/deliver.test.d.ts +2 -2
- package/build/src/types/tests/worker/pipeline/drain-fifo.test.d.ts +146 -2
- package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +2 -0
- package/build/src/types/tests/worker/pipeline/session.test.d.ts +140 -0
- package/build/src/types/worker/durable-objects/delivery-outbox.d.ts +379 -8
- package/build/src/types/worker/handlers.d.ts +11 -1
- package/build/src/types/worker/interpreters/app-payload.d.ts +10 -1
- package/build/src/types/worker/interpreters/mailmask.d.ts +91 -0
- package/build/src/types/worker/pipeline/deliver.d.ts +21 -2
- package/build/src/types/worker/pipeline/drain-fifo.d.ts +29 -5
- package/build/src/types/worker/pipeline/session.d.ts +228 -0
- package/build/src/worker/durable-objects/delivery-outbox.d.ts +2 -1
- package/build/src/worker/durable-objects/delivery-outbox.d.ts.map +1 -1
- package/build/src/worker/durable-objects/delivery-outbox.js +209 -16
- package/build/src/worker/durable-objects/delivery-outbox.js.map +1 -1
- package/build/src/worker/handlers.d.ts.map +1 -1
- package/build/src/worker/handlers.js +53 -1
- package/build/src/worker/handlers.js.map +1 -1
- package/build/src/worker/interpreters/app-payload.d.ts.map +1 -1
- package/build/src/worker/interpreters/app-payload.js +6 -1
- package/build/src/worker/interpreters/app-payload.js.map +1 -1
- package/build/src/worker/interpreters/mailmask.d.ts +4 -0
- package/build/src/worker/interpreters/mailmask.d.ts.map +1 -0
- package/build/src/worker/interpreters/mailmask.js +49 -0
- package/build/src/worker/interpreters/mailmask.js.map +1 -0
- package/build/src/worker/landing/page.d.ts.map +1 -1
- package/build/src/worker/landing/page.js +151 -107
- package/build/src/worker/landing/page.js.map +1 -1
- package/build/src/worker/pipeline/deliver.d.ts.map +1 -1
- package/build/src/worker/pipeline/deliver.js +3 -0
- package/build/src/worker/pipeline/deliver.js.map +1 -1
- package/build/src/worker/pipeline/drain-fifo.d.ts.map +1 -1
- package/build/src/worker/pipeline/drain-fifo.js +33 -7
- package/build/src/worker/pipeline/drain-fifo.js.map +1 -1
- package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
- package/build/src/worker/pipeline/interpret.js +2 -0
- package/build/src/worker/pipeline/interpret.js.map +1 -1
- package/build/src/worker/pipeline/session.d.ts +6 -0
- package/build/src/worker/pipeline/session.d.ts.map +1 -0
- package/build/src/worker/pipeline/session.js +192 -0
- package/build/src/worker/pipeline/session.js.map +1 -0
- package/package.json +2 -2
|
@@ -24,6 +24,8 @@ export type Tests_Worker_Index_MockEmailConfigWithErrorTopicAndErrorEvents = Lib
|
|
|
24
24
|
|
|
25
25
|
export type Tests_Worker_Index_MockConfigWithErrorTopicAndErrorEvents = Lib_Schema_ConfigSchema & {};
|
|
26
26
|
|
|
27
|
+
export type Tests_Worker_Index_MockConfigWithSession = Lib_Schema_ConfigSchema & {};
|
|
28
|
+
|
|
27
29
|
export type Tests_Worker_Index_Outbox = Worker_Pipeline_Deliver_Namespace & {};
|
|
28
30
|
|
|
29
31
|
export type Tests_Worker_Index_SendResult = Worker_Pipeline_Send_Result & {};
|
|
@@ -37,6 +39,19 @@ export type Tests_Worker_Index_Env = Record<string, string | KVNamespace | Worke
|
|
|
37
39
|
*/
|
|
38
40
|
export type Tests_Worker_Index_CloudflareWorkers_DurableObject = ReturnType<typeof vi['fn']>;
|
|
39
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Tests - Worker - Index - Create Mock Kv.
|
|
44
|
+
*
|
|
45
|
+
* @since 2.4.0
|
|
46
|
+
*/
|
|
47
|
+
export type Tests_Worker_Index_CreateMockKv_Returns = KVNamespace;
|
|
48
|
+
|
|
49
|
+
export type Tests_Worker_Index_CreateMockKv_Store = Map<string, string>;
|
|
50
|
+
|
|
51
|
+
export type Tests_Worker_Index_CreateMockKv_Resolved = string | null;
|
|
52
|
+
|
|
53
|
+
export type Tests_Worker_Index_CreateMockKv_KvCast = unknown;
|
|
54
|
+
|
|
40
55
|
/**
|
|
41
56
|
* Tests - Worker - Index - Create Worker - Ignores An Email When The Config Is Invalid.
|
|
42
57
|
*
|
|
@@ -147,6 +162,27 @@ export type Tests_Worker_Index_HandleEmail_SuppressesAuthErrorNotificationWhenEm
|
|
|
147
162
|
|
|
148
163
|
export type Tests_Worker_Index_HandleEmail_SuppressesAuthErrorNotificationWhenEmailErrorEventsExcludesAuthentication_RawEmail = string;
|
|
149
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Tests - Worker - Index - Handle Request - Accepts One Message With A Session Token From The Session Path.
|
|
167
|
+
*
|
|
168
|
+
* @since 2.4.0
|
|
169
|
+
*/
|
|
170
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_Kv = KVNamespace;
|
|
171
|
+
|
|
172
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_SessionRequest = Request;
|
|
173
|
+
|
|
174
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_SessionResponse = Response;
|
|
175
|
+
|
|
176
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_SessionBody = Record<string, unknown>;
|
|
177
|
+
|
|
178
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_MessageRequest = Request;
|
|
179
|
+
|
|
180
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_MessageResponse = Response;
|
|
181
|
+
|
|
182
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_ReplayRequest = Request;
|
|
183
|
+
|
|
184
|
+
export type Tests_Worker_Index_HandleRequest_AcceptsOneMessageWithASessionTokenFromTheSessionPath_ReplayResponse = Response;
|
|
185
|
+
|
|
150
186
|
/**
|
|
151
187
|
* Tests - Worker - Index - Handle Request - Ignores The Context Header Outside Localhost.
|
|
152
188
|
*
|
|
@@ -208,6 +244,15 @@ export type Tests_Worker_Index_HandleRequest_ProcessesLaterNotificationsAfterAnE
|
|
|
208
244
|
|
|
209
245
|
export type Tests_Worker_Index_HandleRequest_ProcessesLaterNotificationsAfterAnErrorTopicAttachmentFails_ValidResponse = Response;
|
|
210
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Tests - Worker - Index - Handle Request - Rejects A Message Without A Session Token When Sessions Are On.
|
|
249
|
+
*
|
|
250
|
+
* @since 2.4.0
|
|
251
|
+
*/
|
|
252
|
+
export type Tests_Worker_Index_HandleRequest_RejectsAMessageWithoutASessionTokenWhenSessionsAreOn_Request = Request;
|
|
253
|
+
|
|
254
|
+
export type Tests_Worker_Index_HandleRequest_RejectsAMessageWithoutASessionTokenWhenSessionsAreOn_Response = Response;
|
|
255
|
+
|
|
211
256
|
/**
|
|
212
257
|
* Tests - Worker - Index - Handle Request - Returns 403 With No Authorization Header When Token Required.
|
|
213
258
|
*
|
|
@@ -237,6 +282,17 @@ export type Tests_Worker_Index_HandleRequest_Returns404ForUnmatchedSubdomain_Req
|
|
|
237
282
|
|
|
238
283
|
export type Tests_Worker_Index_HandleRequest_Returns404ForUnmatchedSubdomain_Response = Response;
|
|
239
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Tests - Worker - Index - Handle Request - Returns 404 On The Session Path When Sessions Are Off.
|
|
287
|
+
*
|
|
288
|
+
* @since 2.4.0
|
|
289
|
+
*/
|
|
290
|
+
export type Tests_Worker_Index_HandleRequest_Returns404OnTheSessionPathWhenSessionsAreOff_Request = Request;
|
|
291
|
+
|
|
292
|
+
export type Tests_Worker_Index_HandleRequest_Returns404OnTheSessionPathWhenSessionsAreOff_Response = Response;
|
|
293
|
+
|
|
294
|
+
export type Tests_Worker_Index_HandleRequest_Returns404OnTheSessionPathWhenSessionsAreOff_Body = Record<string, unknown>;
|
|
295
|
+
|
|
240
296
|
/**
|
|
241
297
|
* Tests - Worker - Index - Handle Request - Returns 405 For Unsupported Methods.
|
|
242
298
|
*
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Accepts A Future Reason Value Within Version 1.
|
|
3
|
+
*
|
|
4
|
+
* @since 2.4.0
|
|
5
|
+
*/
|
|
6
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_AcceptsAFutureReasonValueWithinVersion1_Result_Notification_Body = string;
|
|
7
|
+
|
|
8
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_AcceptsAFutureReasonValueWithinVersion1_Result_Notification = {
|
|
9
|
+
body: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_AcceptsAFutureReasonValueWithinVersion1_Result_Notification_Body;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_AcceptsAFutureReasonValueWithinVersion1_Result = {
|
|
13
|
+
notification: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_AcceptsAFutureReasonValueWithinVersion1_Result_Notification;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Reads A Refusal Notification.
|
|
18
|
+
*
|
|
19
|
+
* @since 2.4.0
|
|
20
|
+
*/
|
|
21
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Title = string | undefined;
|
|
22
|
+
|
|
23
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Body = string;
|
|
24
|
+
|
|
25
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Priority = 1 | 2 | 3 | 4 | 5 | undefined;
|
|
26
|
+
|
|
27
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Tags = string[] | undefined;
|
|
28
|
+
|
|
29
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification = {
|
|
30
|
+
title?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Title;
|
|
31
|
+
body: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Body;
|
|
32
|
+
priority?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Priority;
|
|
33
|
+
tags?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification_Tags;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result = {
|
|
37
|
+
notification: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsARefusalNotification_Result_Notification;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Reads A Test Event.
|
|
42
|
+
*
|
|
43
|
+
* @since 2.4.0
|
|
44
|
+
*/
|
|
45
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Title = string | undefined;
|
|
46
|
+
|
|
47
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Body = string;
|
|
48
|
+
|
|
49
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Priority = 1 | 2 | 3 | 4 | 5 | undefined;
|
|
50
|
+
|
|
51
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Tags = string[] | undefined;
|
|
52
|
+
|
|
53
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification = {
|
|
54
|
+
title?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Title;
|
|
55
|
+
body: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Body;
|
|
56
|
+
priority?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Priority;
|
|
57
|
+
tags?: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification_Tags;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result = {
|
|
61
|
+
notification: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsATestEvent_Result_Notification;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Reads Every Reason Value.
|
|
66
|
+
*
|
|
67
|
+
* @since 2.4.0
|
|
68
|
+
*/
|
|
69
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Reason = 'disabled' | 'expired' | 'filtered' | 'misconfigured' | 'refused' | 'test';
|
|
70
|
+
|
|
71
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Reasons = Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Reason[];
|
|
72
|
+
|
|
73
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Event = 'message-refused' | 'test';
|
|
74
|
+
|
|
75
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Result_Notification_Body = string;
|
|
76
|
+
|
|
77
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Result_Notification = {
|
|
78
|
+
body: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Result_Notification_Body;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Result = {
|
|
82
|
+
notification: Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_ReadsEveryReasonValue_Result_Notification;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Rejects Malformed Bodies And Unknown Versions.
|
|
87
|
+
*
|
|
88
|
+
* @since 2.4.0
|
|
89
|
+
*/
|
|
90
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_RejectsMalformedBodiesAndUnknownVersions_Malformed = Record<string, unknown>;
|
|
91
|
+
|
|
92
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_RejectsMalformedBodiesAndUnknownVersions_FutureVersion = Record<string, unknown>;
|
|
93
|
+
|
|
94
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_RejectsMalformedBodiesAndUnknownVersions_UnknownEvent = Record<string, unknown>;
|
|
95
|
+
|
|
96
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_RejectsMalformedBodiesAndUnknownVersions_InvalidDetails = Record<string, unknown>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Tests - Worker - Interpreters - Mailmask - Interpreter - Rejects Payloads From Another App.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.4.0
|
|
102
|
+
*/
|
|
103
|
+
export type Tests_Worker_Interpreters_Mailmask_MailmaskInterpreter_RejectsPayloadsFromAnotherApp_Alert = Record<string, unknown>;
|
|
@@ -16,6 +16,17 @@ export type Tests_Worker_Landing_Page_LandingPage_DoesNotShowDebugInfoWhenShowRe
|
|
|
16
16
|
|
|
17
17
|
export type Tests_Worker_Landing_Page_LandingPage_DoesNotShowDebugInfoWhenShowResponseOutputIsFalse_Html = string;
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Tests - Worker - Landing - Page - Landing Page - Escapes Config Values In Debug Output.
|
|
21
|
+
*
|
|
22
|
+
* @since 2.4.0
|
|
23
|
+
*/
|
|
24
|
+
export type Tests_Worker_Landing_Page_LandingPage_EscapesConfigValuesInDebugOutput_DebugConfig = Lib_Schema_ConfigSchema & {};
|
|
25
|
+
|
|
26
|
+
export type Tests_Worker_Landing_Page_LandingPage_EscapesConfigValuesInDebugOutput_Response = Response;
|
|
27
|
+
|
|
28
|
+
export type Tests_Worker_Landing_Page_LandingPage_EscapesConfigValuesInDebugOutput_Html = string;
|
|
29
|
+
|
|
19
30
|
/**
|
|
20
31
|
* Tests - Worker - Landing - Page - Landing Page - Includes GitHub Link.
|
|
21
32
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
Worker_Pipeline_Deliver_EnqueueOptions,
|
|
3
3
|
Worker_Pipeline_Deliver_Namespace,
|
|
4
|
+
Worker_Pipeline_Deliver_Options,
|
|
4
5
|
Worker_Pipeline_Deliver_Result,
|
|
5
6
|
} from '../../../worker/pipeline/deliver.d.ts';
|
|
6
|
-
import type { Worker_Pipeline_Send_Options } from '../../../worker/pipeline/send.d.ts';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Tests - Worker - Pipeline - Deliver - Deliver - Uses The Explicit Context ID As The Isolated Lane Name.
|
|
@@ -16,6 +16,6 @@ export type Tests_Worker_Pipeline_Deliver_Deliver_UsesTheExplicitContextIDAsTheI
|
|
|
16
16
|
|
|
17
17
|
export type Tests_Worker_Pipeline_Deliver_Deliver_UsesTheExplicitContextIDAsTheIsolatedLaneName_Outbox = Worker_Pipeline_Deliver_Namespace & {};
|
|
18
18
|
|
|
19
|
-
export type Tests_Worker_Pipeline_Deliver_Deliver_UsesTheExplicitContextIDAsTheIsolatedLaneName_Options =
|
|
19
|
+
export type Tests_Worker_Pipeline_Deliver_Deliver_UsesTheExplicitContextIDAsTheIsolatedLaneName_Options = Worker_Pipeline_Deliver_Options & {};
|
|
20
20
|
|
|
21
21
|
export type Tests_Worker_Pipeline_Deliver_Deliver_UsesTheExplicitContextIDAsTheIsolatedLaneName_Result = Worker_Pipeline_Deliver_Result & {};
|
|
@@ -3,6 +3,34 @@ import type {
|
|
|
3
3
|
Worker_Pipeline_DrainFifo_Options,
|
|
4
4
|
} from '../../../worker/pipeline/drain-fifo.d.ts';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Tests - Worker - Pipeline - Drain Fifo - Drain Fifo - Does Not Route An On Failure Error Through On Error.
|
|
8
|
+
*
|
|
9
|
+
* @since 2.4.0
|
|
10
|
+
*/
|
|
11
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ItemBody = string;
|
|
12
|
+
|
|
13
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ItemAttemptCount = number;
|
|
14
|
+
|
|
15
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Item = Worker_Pipeline_DrainFifo_Item & {
|
|
16
|
+
body: Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ItemBody;
|
|
17
|
+
attemptCount: Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ItemAttemptCount;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Queue = Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Item[];
|
|
21
|
+
|
|
22
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ErrorCalls = number;
|
|
23
|
+
|
|
24
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_RemoveCalls = number;
|
|
25
|
+
|
|
26
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Options = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Result> & {};
|
|
27
|
+
|
|
28
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ResultSuccess = boolean;
|
|
29
|
+
|
|
30
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_Result = {
|
|
31
|
+
success: Tests_Worker_Pipeline_DrainFifo_DrainFifo_DoesNotRouteAnOnFailureErrorThroughOnError_ResultSuccess;
|
|
32
|
+
};
|
|
33
|
+
|
|
6
34
|
/**
|
|
7
35
|
* Tests - Worker - Pipeline - Drain Fifo.
|
|
8
36
|
*
|
|
@@ -10,8 +38,11 @@ import type {
|
|
|
10
38
|
*/
|
|
11
39
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ItemBody = string;
|
|
12
40
|
|
|
41
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ItemAttemptCount = number;
|
|
42
|
+
|
|
13
43
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Item = Worker_Pipeline_DrainFifo_Item & {
|
|
14
44
|
body: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ItemBody;
|
|
45
|
+
attemptCount: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ItemAttemptCount;
|
|
15
46
|
};
|
|
16
47
|
|
|
17
48
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Queue = Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Item[];
|
|
@@ -22,15 +53,31 @@ export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetries
|
|
|
22
53
|
|
|
23
54
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Options = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Result> & {};
|
|
24
55
|
|
|
56
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_AttemptCount = number;
|
|
57
|
+
|
|
25
58
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ResultSuccess = boolean;
|
|
26
59
|
|
|
27
60
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Result = {
|
|
28
61
|
success: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_ResultSuccess;
|
|
29
62
|
};
|
|
30
63
|
|
|
31
|
-
export type
|
|
64
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_FailedResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Result>;
|
|
32
65
|
|
|
33
|
-
export type
|
|
66
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_FailedResultsDiscardedIds = Set<string>;
|
|
67
|
+
|
|
68
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_FailedResults = {
|
|
69
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_FailedResultsResults;
|
|
70
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_FailedResultsDiscardedIds;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_RetriedResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_Result>;
|
|
74
|
+
|
|
75
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_RetriedResultsDiscardedIds = Set<string>;
|
|
76
|
+
|
|
77
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_RetriedResults = {
|
|
78
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_RetriedResultsResults;
|
|
79
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetriesItBeforeLaterItems_RetriedResultsDiscardedIds;
|
|
80
|
+
};
|
|
34
81
|
|
|
35
82
|
/**
|
|
36
83
|
* Tests - Worker - Pipeline - Drain Fifo.
|
|
@@ -39,8 +86,11 @@ export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_KeepsAFailedHeadAndRetries
|
|
|
39
86
|
*/
|
|
40
87
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_ItemBody = string;
|
|
41
88
|
|
|
89
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_ItemAttemptCount = number;
|
|
90
|
+
|
|
42
91
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Item = Worker_Pipeline_DrainFifo_Item & {
|
|
43
92
|
body: Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_ItemBody;
|
|
93
|
+
attemptCount: Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_ItemAttemptCount;
|
|
44
94
|
};
|
|
45
95
|
|
|
46
96
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_BlockedQueue = Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Item[];
|
|
@@ -55,4 +105,98 @@ export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrain
|
|
|
55
105
|
|
|
56
106
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_BlockedOptions = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Result> & {};
|
|
57
107
|
|
|
108
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_BlockedAttemptCount = number;
|
|
109
|
+
|
|
58
110
|
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_FlowingOptions = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_LetsAnIndependentLaneDrainWhileAnotherLaneIsBlocked_Result> & {};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Tests - Worker - Pipeline - Drain Fifo.
|
|
114
|
+
*
|
|
115
|
+
* @since 2.4.0
|
|
116
|
+
*/
|
|
117
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ItemBody = string;
|
|
118
|
+
|
|
119
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ItemAttemptCount = number;
|
|
120
|
+
|
|
121
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Item = Worker_Pipeline_DrainFifo_Item & {
|
|
122
|
+
body: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ItemBody;
|
|
123
|
+
attemptCount: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ItemAttemptCount;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Queue = Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Item[];
|
|
127
|
+
|
|
128
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Attempts = string[];
|
|
129
|
+
|
|
130
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Options = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Result> & {};
|
|
131
|
+
|
|
132
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ResultSuccess = boolean;
|
|
133
|
+
|
|
134
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Result = {
|
|
135
|
+
success: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ResultSuccess;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_AttemptCount = number;
|
|
139
|
+
|
|
140
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_FirstResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Result>;
|
|
141
|
+
|
|
142
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_FirstResultsDiscardedIds = Set<string>;
|
|
143
|
+
|
|
144
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_FirstResults = {
|
|
145
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_FirstResultsResults;
|
|
146
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_FirstResultsDiscardedIds;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_SecondResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Result>;
|
|
150
|
+
|
|
151
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_SecondResultsDiscardedIds = Set<string>;
|
|
152
|
+
|
|
153
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_SecondResults = {
|
|
154
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_SecondResultsResults;
|
|
155
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_SecondResultsDiscardedIds;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_Result>;
|
|
159
|
+
|
|
160
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsDiscardedIds = Set<string>;
|
|
161
|
+
|
|
162
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResults = {
|
|
163
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsResults;
|
|
164
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAFailedHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsDiscardedIds;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Tests - Worker - Pipeline - Drain Fifo.
|
|
169
|
+
*
|
|
170
|
+
* @since 2.4.0
|
|
171
|
+
*/
|
|
172
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ItemBody = string;
|
|
173
|
+
|
|
174
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ItemAttemptCount = number;
|
|
175
|
+
|
|
176
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Item = Worker_Pipeline_DrainFifo_Item & {
|
|
177
|
+
body: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ItemBody;
|
|
178
|
+
attemptCount: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ItemAttemptCount;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Queue = Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Item[];
|
|
182
|
+
|
|
183
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Attempts = string[];
|
|
184
|
+
|
|
185
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Options = Worker_Pipeline_DrainFifo_Options<Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Item, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Result> & {};
|
|
186
|
+
|
|
187
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ResultSuccess = boolean;
|
|
188
|
+
|
|
189
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Result = {
|
|
190
|
+
success: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ResultSuccess;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ErrorAttemptCount = number;
|
|
194
|
+
|
|
195
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsResults = Map<string, Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_Result>;
|
|
196
|
+
|
|
197
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsDiscardedIds = Set<string>;
|
|
198
|
+
|
|
199
|
+
export type Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResults = {
|
|
200
|
+
results: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsResults;
|
|
201
|
+
discardedIds: Tests_Worker_Pipeline_DrainFifo_DrainFifo_PurgesAThrowingHeadAfterTheRetryLimitAndContinuesTheLane_ThirdResultsDiscardedIds;
|
|
202
|
+
};
|
|
@@ -5,6 +5,8 @@ import type { Worker_Pipeline_Interpret_Result } from '../../../worker/pipeline/
|
|
|
5
5
|
*
|
|
6
6
|
* @since 2.0.0
|
|
7
7
|
*/
|
|
8
|
+
export type Tests_Worker_Pipeline_Interpret_Interpret_DispatchesToMailmaskInterpreter_Result = Worker_Pipeline_Interpret_Result | null;
|
|
9
|
+
|
|
8
10
|
export type Tests_Worker_Pipeline_Interpret_Interpret_DispatchesToNtfyJsonInterpreter_Result = Worker_Pipeline_Interpret_Result | null;
|
|
9
11
|
|
|
10
12
|
export type Tests_Worker_Pipeline_Interpret_Interpret_DispatchesToPlainTextInterpreter_Result = Worker_Pipeline_Interpret_Result | null;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { Lib_Schema_SessionConfig } from '../../../lib/schema.d.ts';
|
|
2
|
+
import type {
|
|
3
|
+
Worker_Pipeline_Session_IssueSession_ReturnsResult,
|
|
4
|
+
Worker_Pipeline_Session_VerifySession_ReturnsResult,
|
|
5
|
+
} from '../../../worker/pipeline/session.d.ts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tests - Worker - Pipeline - Session.
|
|
9
|
+
*
|
|
10
|
+
* @since 2.4.0
|
|
11
|
+
*/
|
|
12
|
+
export type Tests_Worker_Pipeline_Session_Session = Lib_Schema_SessionConfig & {};
|
|
13
|
+
|
|
14
|
+
export type Tests_Worker_Pipeline_Session_KvCast = unknown;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Tests - Worker - Pipeline - Session - Create Mock Kv.
|
|
18
|
+
*
|
|
19
|
+
* @since 2.4.0
|
|
20
|
+
*/
|
|
21
|
+
export type Tests_Worker_Pipeline_Session_CreateMockKv_Returns = KVNamespace;
|
|
22
|
+
|
|
23
|
+
export type Tests_Worker_Pipeline_Session_CreateMockKv_Store = Map<string, string>;
|
|
24
|
+
|
|
25
|
+
export type Tests_Worker_Pipeline_Session_CreateMockKv_Resolved = string | null;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Tests - Worker - Pipeline - Session - Issue Session - Issues A Token With The Default Lifetime.
|
|
29
|
+
*
|
|
30
|
+
* @since 2.4.0
|
|
31
|
+
*/
|
|
32
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_IssuesATokenWithTheDefaultLifetime_Issued = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
33
|
+
|
|
34
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_IssuesATokenWithTheDefaultLifetime_Segments = string[];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Tests - Worker - Pipeline - Session - Issue Session - Refuses Once The Hourly Limit Is Reached.
|
|
38
|
+
*
|
|
39
|
+
* @since 2.4.0
|
|
40
|
+
*/
|
|
41
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesOnceTheHourlyLimitIsReached_Kv = KVNamespace;
|
|
42
|
+
|
|
43
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesOnceTheHourlyLimitIsReached_Limited = Lib_Schema_SessionConfig & {};
|
|
44
|
+
|
|
45
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesOnceTheHourlyLimitIsReached_First = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
46
|
+
|
|
47
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesOnceTheHourlyLimitIsReached_Second = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
48
|
+
|
|
49
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesOnceTheHourlyLimitIsReached_Third = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Tests - Worker - Pipeline - Session - Issue Session - Refuses Without Session Storage.
|
|
53
|
+
*
|
|
54
|
+
* @since 2.4.0
|
|
55
|
+
*/
|
|
56
|
+
export type Tests_Worker_Pipeline_Session_IssueSession_RefusesWithoutSessionStorage_Issued = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Tests - Worker - Pipeline - Session - Issue Token.
|
|
60
|
+
*
|
|
61
|
+
* @since 2.4.0
|
|
62
|
+
*/
|
|
63
|
+
export type Tests_Worker_Pipeline_Session_IssueToken_Kv = KVNamespace;
|
|
64
|
+
|
|
65
|
+
export type Tests_Worker_Pipeline_Session_IssueToken_Returns = Promise<string>;
|
|
66
|
+
|
|
67
|
+
export type Tests_Worker_Pipeline_Session_IssueToken_Issued = Worker_Pipeline_Session_IssueSession_ReturnsResult & {};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Accepts A Fresh Token Once.
|
|
71
|
+
*
|
|
72
|
+
* @since 2.4.0
|
|
73
|
+
*/
|
|
74
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_AcceptsAFreshTokenOnce_Kv = KVNamespace;
|
|
75
|
+
|
|
76
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_AcceptsAFreshTokenOnce_Issued = string;
|
|
77
|
+
|
|
78
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_AcceptsAFreshTokenOnce_First = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
79
|
+
|
|
80
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_AcceptsAFreshTokenOnce_Second = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects A Malformed Token.
|
|
84
|
+
*
|
|
85
|
+
* @since 2.4.0
|
|
86
|
+
*/
|
|
87
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAMalformedToken_Kv = KVNamespace;
|
|
88
|
+
|
|
89
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAMalformedToken_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects A Missing Authorization Header.
|
|
93
|
+
*
|
|
94
|
+
* @since 2.4.0
|
|
95
|
+
*/
|
|
96
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAMissingAuthorizationHeader_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects An Expired Token.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.4.0
|
|
102
|
+
*/
|
|
103
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAnExpiredToken_Kv = KVNamespace;
|
|
104
|
+
|
|
105
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAnExpiredToken_Issued = string;
|
|
106
|
+
|
|
107
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsAnExpiredToken_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects A Token For Another Context.
|
|
111
|
+
*
|
|
112
|
+
* @since 2.4.0
|
|
113
|
+
*/
|
|
114
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenForAnotherContext_Kv = KVNamespace;
|
|
115
|
+
|
|
116
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenForAnotherContext_Issued = string;
|
|
117
|
+
|
|
118
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenForAnotherContext_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects A Token From Another Address.
|
|
122
|
+
*
|
|
123
|
+
* @since 2.4.0
|
|
124
|
+
*/
|
|
125
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenFromAnotherAddress_Kv = KVNamespace;
|
|
126
|
+
|
|
127
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenFromAnotherAddress_Issued = string;
|
|
128
|
+
|
|
129
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenFromAnotherAddress_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Tests - Worker - Pipeline - Session - Verify Session - Rejects A Token Signed With Another Secret.
|
|
133
|
+
*
|
|
134
|
+
* @since 2.4.0
|
|
135
|
+
*/
|
|
136
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenSignedWithAnotherSecret_Kv = KVNamespace;
|
|
137
|
+
|
|
138
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenSignedWithAnotherSecret_Issued = string;
|
|
139
|
+
|
|
140
|
+
export type Tests_Worker_Pipeline_Session_VerifySession_RejectsATokenSignedWithAnotherSecret_Result = Worker_Pipeline_Session_VerifySession_ReturnsResult & {};
|