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
|
@@ -9,7 +9,17 @@ export type Worker_Pipeline_Deliver_ContextId = string;
|
|
|
9
9
|
|
|
10
10
|
export type Worker_Pipeline_Deliver_Outbox = Worker_Pipeline_Deliver_Namespace;
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Worker_Pipeline_Deliver_OptionsContextName = string;
|
|
13
|
+
|
|
14
|
+
export type Worker_Pipeline_Deliver_OptionsInterpreterName = string;
|
|
15
|
+
|
|
16
|
+
export type Worker_Pipeline_Deliver_OptionsErrorTopic = string | undefined;
|
|
17
|
+
|
|
18
|
+
export type Worker_Pipeline_Deliver_Options = Worker_Pipeline_Send_Options & {
|
|
19
|
+
contextName: Worker_Pipeline_Deliver_OptionsContextName;
|
|
20
|
+
interpreterName: Worker_Pipeline_Deliver_OptionsInterpreterName;
|
|
21
|
+
errorTopic?: Worker_Pipeline_Deliver_OptionsErrorTopic;
|
|
22
|
+
};
|
|
13
23
|
|
|
14
24
|
export type Worker_Pipeline_Deliver_Returns = Promise<Worker_Pipeline_Deliver_Result>;
|
|
15
25
|
|
|
@@ -23,6 +33,12 @@ export type Worker_Pipeline_Deliver_EnqueueOptionsTopic = Worker_Pipeline_Send_O
|
|
|
23
33
|
|
|
24
34
|
export type Worker_Pipeline_Deliver_EnqueueOptionsMode = Worker_Pipeline_Send_Options['mode'];
|
|
25
35
|
|
|
36
|
+
export type Worker_Pipeline_Deliver_EnqueueOptionsContextName = Worker_Pipeline_Deliver_OptionsContextName;
|
|
37
|
+
|
|
38
|
+
export type Worker_Pipeline_Deliver_EnqueueOptionsInterpreterName = Worker_Pipeline_Deliver_OptionsInterpreterName;
|
|
39
|
+
|
|
40
|
+
export type Worker_Pipeline_Deliver_EnqueueOptionsErrorTopic = Worker_Pipeline_Deliver_OptionsErrorTopic;
|
|
41
|
+
|
|
26
42
|
export type Worker_Pipeline_Deliver_EnqueueOptionsVisitorIp = Worker_Pipeline_Send_Options['visitorIp'];
|
|
27
43
|
|
|
28
44
|
export type Worker_Pipeline_Deliver_EnqueueOptionsAttachment = Worker_Pipeline_Send_Options['attachment'];
|
|
@@ -37,6 +53,9 @@ export type Worker_Pipeline_Deliver_EnqueueOptions = {
|
|
|
37
53
|
primaryServerName: Worker_Pipeline_Deliver_EnqueueOptionsPrimaryServerName;
|
|
38
54
|
topic: Worker_Pipeline_Deliver_EnqueueOptionsTopic;
|
|
39
55
|
mode: Worker_Pipeline_Deliver_EnqueueOptionsMode;
|
|
56
|
+
contextName: Worker_Pipeline_Deliver_EnqueueOptionsContextName;
|
|
57
|
+
interpreterName: Worker_Pipeline_Deliver_EnqueueOptionsInterpreterName;
|
|
58
|
+
errorTopic?: Worker_Pipeline_Deliver_EnqueueOptionsErrorTopic;
|
|
40
59
|
visitorIp?: Worker_Pipeline_Deliver_EnqueueOptionsVisitorIp;
|
|
41
60
|
attachment?: Worker_Pipeline_Deliver_EnqueueOptionsAttachment;
|
|
42
61
|
filename?: Worker_Pipeline_Deliver_EnqueueOptionsFilename;
|
|
@@ -45,7 +64,7 @@ export type Worker_Pipeline_Deliver_EnqueueOptions = {
|
|
|
45
64
|
|
|
46
65
|
export type Worker_Pipeline_Deliver_ResultDeliveryId = string;
|
|
47
66
|
|
|
48
|
-
export type Worker_Pipeline_Deliver_ResultState = 'delivered' | 'queued';
|
|
67
|
+
export type Worker_Pipeline_Deliver_ResultState = 'delivered' | 'discarded' | 'queued';
|
|
49
68
|
|
|
50
69
|
export type Worker_Pipeline_Deliver_ResultPending = number;
|
|
51
70
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Worker - Pipeline - Drain Fifo.
|
|
3
3
|
*
|
|
4
|
-
* @since 2.
|
|
4
|
+
* @since 2.4.0
|
|
5
5
|
*/
|
|
6
6
|
export type Worker_Pipeline_DrainFifo_ItemDeliveryId = string;
|
|
7
7
|
|
|
@@ -11,6 +11,8 @@ export type Worker_Pipeline_DrainFifo_Item = {
|
|
|
11
11
|
|
|
12
12
|
export type Worker_Pipeline_DrainFifo_MaybePromise<Value> = Promise<Value> | Value;
|
|
13
13
|
|
|
14
|
+
export type Worker_Pipeline_DrainFifo_Action = 'discard' | 'retry';
|
|
15
|
+
|
|
14
16
|
export type Worker_Pipeline_DrainFifo_OptionsPeek<Item extends Worker_Pipeline_DrainFifo_Item> = () => Worker_Pipeline_DrainFifo_MaybePromise<Item | undefined>;
|
|
15
17
|
|
|
16
18
|
export type Worker_Pipeline_DrainFifo_OptionsAttempt<Item extends Worker_Pipeline_DrainFifo_Item, Result> = (item: Item) => Promise<Result>;
|
|
@@ -19,27 +21,49 @@ export type Worker_Pipeline_DrainFifo_OptionsSucceeded<Item extends Worker_Pipel
|
|
|
19
21
|
|
|
20
22
|
export type Worker_Pipeline_DrainFifo_OptionsRemove<Item extends Worker_Pipeline_DrainFifo_Item> = (item: Item) => Worker_Pipeline_DrainFifo_MaybePromise<void>;
|
|
21
23
|
|
|
22
|
-
export type
|
|
24
|
+
export type Worker_Pipeline_DrainFifo_OptionsOnFailure<Item extends Worker_Pipeline_DrainFifo_Item, Result> = (item: Item, result: Result) => Worker_Pipeline_DrainFifo_MaybePromise<Worker_Pipeline_DrainFifo_Action>;
|
|
25
|
+
|
|
26
|
+
export type Worker_Pipeline_DrainFifo_OptionsOnError<Item extends Worker_Pipeline_DrainFifo_Item> = (item: Item, error: unknown) => Worker_Pipeline_DrainFifo_MaybePromise<Worker_Pipeline_DrainFifo_Action>;
|
|
23
27
|
|
|
24
28
|
export type Worker_Pipeline_DrainFifo_Options<Item extends Worker_Pipeline_DrainFifo_Item, Result> = {
|
|
25
29
|
peek: Worker_Pipeline_DrainFifo_OptionsPeek<Item>;
|
|
26
30
|
attempt: Worker_Pipeline_DrainFifo_OptionsAttempt<Item, Result>;
|
|
27
31
|
succeeded: Worker_Pipeline_DrainFifo_OptionsSucceeded<Item, Result>;
|
|
28
32
|
remove: Worker_Pipeline_DrainFifo_OptionsRemove<Item>;
|
|
33
|
+
onFailure: Worker_Pipeline_DrainFifo_OptionsOnFailure<Item, Result>;
|
|
29
34
|
onError: Worker_Pipeline_DrainFifo_OptionsOnError<Item>;
|
|
30
35
|
};
|
|
31
36
|
|
|
32
|
-
export type
|
|
37
|
+
export type Worker_Pipeline_DrainFifo_DrainResultResults<Result> = Map<string, Result>;
|
|
38
|
+
|
|
39
|
+
export type Worker_Pipeline_DrainFifo_DrainResultDiscardedIds = Set<string>;
|
|
40
|
+
|
|
41
|
+
export type Worker_Pipeline_DrainFifo_DrainResult<Result> = {
|
|
42
|
+
results: Worker_Pipeline_DrainFifo_DrainResultResults<Result>;
|
|
43
|
+
discardedIds: Worker_Pipeline_DrainFifo_DrainResultDiscardedIds;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type Worker_Pipeline_DrainFifo_Returns<Result> = Promise<Worker_Pipeline_DrainFifo_DrainResult<Result>>;
|
|
33
47
|
|
|
34
48
|
export type Worker_Pipeline_DrainFifo_Results<Result> = Map<string, Result>;
|
|
35
49
|
|
|
50
|
+
export type Worker_Pipeline_DrainFifo_DiscardedIds = Set<string>;
|
|
51
|
+
|
|
36
52
|
export type Worker_Pipeline_DrainFifo_DrainFifo_Item<Item extends Worker_Pipeline_DrainFifo_Item> = Item | undefined;
|
|
37
53
|
|
|
38
|
-
export type Worker_Pipeline_DrainFifo_DrainFifo_Result<Result> = Result;
|
|
54
|
+
export type Worker_Pipeline_DrainFifo_DrainFifo_Result<Result> = Result | undefined;
|
|
39
55
|
|
|
40
56
|
/**
|
|
41
57
|
* Worker - Pipeline - Drain Fifo.
|
|
42
58
|
*
|
|
43
|
-
* @since 2.
|
|
59
|
+
* @since 2.4.0
|
|
44
60
|
*/
|
|
45
61
|
export type Worker_Pipeline_DrainFifo_DrainFifo_Succeeded = boolean;
|
|
62
|
+
|
|
63
|
+
export type Worker_Pipeline_DrainFifo_DrainFifo_AttemptError = unknown;
|
|
64
|
+
|
|
65
|
+
export type Worker_Pipeline_DrainFifo_DrainFifo_AttemptThrew = boolean;
|
|
66
|
+
|
|
67
|
+
export type Worker_Pipeline_DrainFifo_DrainFifo_ErrorAction = 'discard' | 'retry';
|
|
68
|
+
|
|
69
|
+
export type Worker_Pipeline_DrainFifo_DrainFifo_FailureAction = 'discard' | 'retry';
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import type { Lib_Schema_SessionConfig } from '../../lib/schema.d.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Worker - Pipeline - Session - Decode Base64 URL.
|
|
7
|
+
*
|
|
8
|
+
* @since 2.4.0
|
|
9
|
+
*/
|
|
10
|
+
export type Worker_Pipeline_Session_DecodeBase64Url_Value = string;
|
|
11
|
+
|
|
12
|
+
export type Worker_Pipeline_Session_DecodeBase64Url_Returns = Uint8Array<ArrayBuffer> | null;
|
|
13
|
+
|
|
14
|
+
export type Worker_Pipeline_Session_DecodeBase64Url_Standard = string;
|
|
15
|
+
|
|
16
|
+
export type Worker_Pipeline_Session_DecodeBase64Url_Padded = string;
|
|
17
|
+
|
|
18
|
+
export type Worker_Pipeline_Session_DecodeBase64Url_Binary = string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Worker - Pipeline - Session - Encode Base64 URL.
|
|
22
|
+
*
|
|
23
|
+
* @since 2.4.0
|
|
24
|
+
*/
|
|
25
|
+
export type Worker_Pipeline_Session_EncodeBase64Url_Bytes = Uint8Array;
|
|
26
|
+
|
|
27
|
+
export type Worker_Pipeline_Session_EncodeBase64Url_Returns = string;
|
|
28
|
+
|
|
29
|
+
export type Worker_Pipeline_Session_EncodeBase64Url_Binary = string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Worker - Pipeline - Session - Import Key.
|
|
33
|
+
*
|
|
34
|
+
* @since 2.4.0
|
|
35
|
+
*/
|
|
36
|
+
export type Worker_Pipeline_Session_ImportKey_Secret = string;
|
|
37
|
+
|
|
38
|
+
export type Worker_Pipeline_Session_ImportKey_Returns = Promise<CryptoKey>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Worker - Pipeline - Session - Issue Session.
|
|
42
|
+
*
|
|
43
|
+
* @since 2.4.0
|
|
44
|
+
*/
|
|
45
|
+
export type Worker_Pipeline_Session_IssueSession_OptionsContextId = string;
|
|
46
|
+
|
|
47
|
+
export type Worker_Pipeline_Session_IssueSession_OptionsSession = Lib_Schema_SessionConfig;
|
|
48
|
+
|
|
49
|
+
export type Worker_Pipeline_Session_IssueSession_OptionsClientIp = string;
|
|
50
|
+
|
|
51
|
+
export type Worker_Pipeline_Session_IssueSession_OptionsKv = KVNamespace | undefined;
|
|
52
|
+
|
|
53
|
+
export type Worker_Pipeline_Session_IssueSession_Options = {
|
|
54
|
+
contextId: Worker_Pipeline_Session_IssueSession_OptionsContextId;
|
|
55
|
+
session: Worker_Pipeline_Session_IssueSession_OptionsSession;
|
|
56
|
+
clientIp: Worker_Pipeline_Session_IssueSession_OptionsClientIp;
|
|
57
|
+
kv: Worker_Pipeline_Session_IssueSession_OptionsKv;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsSuccessIssued = true;
|
|
61
|
+
|
|
62
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsSuccessToken = string;
|
|
63
|
+
|
|
64
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsSuccessExpiresIn = number;
|
|
65
|
+
|
|
66
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsSuccess = {
|
|
67
|
+
issued: Worker_Pipeline_Session_IssueSession_ReturnsSuccessIssued;
|
|
68
|
+
token: Worker_Pipeline_Session_IssueSession_ReturnsSuccessToken;
|
|
69
|
+
expiresIn: Worker_Pipeline_Session_IssueSession_ReturnsSuccessExpiresIn;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsFailureIssued = false;
|
|
73
|
+
|
|
74
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsFailureStatus = 429 | 503;
|
|
75
|
+
|
|
76
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsFailureReason = string;
|
|
77
|
+
|
|
78
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsFailure = {
|
|
79
|
+
issued: Worker_Pipeline_Session_IssueSession_ReturnsFailureIssued;
|
|
80
|
+
status: Worker_Pipeline_Session_IssueSession_ReturnsFailureStatus;
|
|
81
|
+
reason: Worker_Pipeline_Session_IssueSession_ReturnsFailureReason;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type Worker_Pipeline_Session_IssueSession_ReturnsResult = Worker_Pipeline_Session_IssueSession_ReturnsSuccess | Worker_Pipeline_Session_IssueSession_ReturnsFailure;
|
|
85
|
+
|
|
86
|
+
export type Worker_Pipeline_Session_IssueSession_Returns = Promise<Worker_Pipeline_Session_IssueSession_ReturnsResult>;
|
|
87
|
+
|
|
88
|
+
export type Worker_Pipeline_Session_IssueSession_TtlSeconds = number;
|
|
89
|
+
|
|
90
|
+
export type Worker_Pipeline_Session_IssueSession_MaxPerHour = number;
|
|
91
|
+
|
|
92
|
+
export type Worker_Pipeline_Session_IssueSession_IssuedAt = number;
|
|
93
|
+
|
|
94
|
+
export type Worker_Pipeline_Session_IssueSession_HourBucket = number;
|
|
95
|
+
|
|
96
|
+
export type Worker_Pipeline_Session_IssueSession_RateKey = string;
|
|
97
|
+
|
|
98
|
+
export type Worker_Pipeline_Session_IssueSession_RawCount = string | null;
|
|
99
|
+
|
|
100
|
+
export type Worker_Pipeline_Session_IssueSession_Count = number;
|
|
101
|
+
|
|
102
|
+
export type Worker_Pipeline_Session_IssueSession_ExpiresAt = number;
|
|
103
|
+
|
|
104
|
+
export type Worker_Pipeline_Session_IssueSession_PayloadAud = string;
|
|
105
|
+
|
|
106
|
+
export type Worker_Pipeline_Session_IssueSession_PayloadIp = string;
|
|
107
|
+
|
|
108
|
+
export type Worker_Pipeline_Session_IssueSession_PayloadJti = string;
|
|
109
|
+
|
|
110
|
+
export type Worker_Pipeline_Session_IssueSession_PayloadIat = number;
|
|
111
|
+
|
|
112
|
+
export type Worker_Pipeline_Session_IssueSession_PayloadExp = number;
|
|
113
|
+
|
|
114
|
+
export type Worker_Pipeline_Session_IssueSession_Payload = {
|
|
115
|
+
aud: Worker_Pipeline_Session_IssueSession_PayloadAud;
|
|
116
|
+
ip: Worker_Pipeline_Session_IssueSession_PayloadIp;
|
|
117
|
+
jti: Worker_Pipeline_Session_IssueSession_PayloadJti;
|
|
118
|
+
iat: Worker_Pipeline_Session_IssueSession_PayloadIat;
|
|
119
|
+
exp: Worker_Pipeline_Session_IssueSession_PayloadExp;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type Worker_Pipeline_Session_IssueSession_EncodedHeader = string;
|
|
123
|
+
|
|
124
|
+
export type Worker_Pipeline_Session_IssueSession_EncodedPayload = string;
|
|
125
|
+
|
|
126
|
+
export type Worker_Pipeline_Session_IssueSession_SigningInput = string;
|
|
127
|
+
|
|
128
|
+
export type Worker_Pipeline_Session_IssueSession_Key = CryptoKey;
|
|
129
|
+
|
|
130
|
+
export type Worker_Pipeline_Session_IssueSession_Signature = ArrayBuffer;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Worker - Pipeline - Session - Verify Session.
|
|
134
|
+
*
|
|
135
|
+
* @since 2.4.0
|
|
136
|
+
*/
|
|
137
|
+
export type Worker_Pipeline_Session_VerifySession_OptionsContextId = string;
|
|
138
|
+
|
|
139
|
+
export type Worker_Pipeline_Session_VerifySession_OptionsSession = Lib_Schema_SessionConfig;
|
|
140
|
+
|
|
141
|
+
export type Worker_Pipeline_Session_VerifySession_OptionsAuthorization = string | undefined;
|
|
142
|
+
|
|
143
|
+
export type Worker_Pipeline_Session_VerifySession_OptionsClientIp = string;
|
|
144
|
+
|
|
145
|
+
export type Worker_Pipeline_Session_VerifySession_OptionsKv = KVNamespace | undefined;
|
|
146
|
+
|
|
147
|
+
export type Worker_Pipeline_Session_VerifySession_Options = {
|
|
148
|
+
contextId: Worker_Pipeline_Session_VerifySession_OptionsContextId;
|
|
149
|
+
session: Worker_Pipeline_Session_VerifySession_OptionsSession;
|
|
150
|
+
authorization: Worker_Pipeline_Session_VerifySession_OptionsAuthorization;
|
|
151
|
+
clientIp: Worker_Pipeline_Session_VerifySession_OptionsClientIp;
|
|
152
|
+
kv: Worker_Pipeline_Session_VerifySession_OptionsKv;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsSuccessAuthenticated = true;
|
|
156
|
+
|
|
157
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsSuccess = {
|
|
158
|
+
authenticated: Worker_Pipeline_Session_VerifySession_ReturnsSuccessAuthenticated;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsFailureAuthenticated = false;
|
|
162
|
+
|
|
163
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsFailureReason = string;
|
|
164
|
+
|
|
165
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsFailure = {
|
|
166
|
+
authenticated: Worker_Pipeline_Session_VerifySession_ReturnsFailureAuthenticated;
|
|
167
|
+
reason: Worker_Pipeline_Session_VerifySession_ReturnsFailureReason;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export type Worker_Pipeline_Session_VerifySession_ReturnsResult = Worker_Pipeline_Session_VerifySession_ReturnsSuccess | Worker_Pipeline_Session_VerifySession_ReturnsFailure;
|
|
171
|
+
|
|
172
|
+
export type Worker_Pipeline_Session_VerifySession_Returns = Promise<Worker_Pipeline_Session_VerifySession_ReturnsResult>;
|
|
173
|
+
|
|
174
|
+
export type Worker_Pipeline_Session_VerifySession_Authorization = string | undefined;
|
|
175
|
+
|
|
176
|
+
export type Worker_Pipeline_Session_VerifySession_Token = string;
|
|
177
|
+
|
|
178
|
+
export type Worker_Pipeline_Session_VerifySession_Parts = string[];
|
|
179
|
+
|
|
180
|
+
export type Worker_Pipeline_Session_VerifySession_EncodedHeader = string | undefined;
|
|
181
|
+
|
|
182
|
+
export type Worker_Pipeline_Session_VerifySession_EncodedPayload = string | undefined;
|
|
183
|
+
|
|
184
|
+
export type Worker_Pipeline_Session_VerifySession_EncodedSignature = string | undefined;
|
|
185
|
+
|
|
186
|
+
export type Worker_Pipeline_Session_VerifySession_DecodedHeader = Uint8Array<ArrayBuffer> | null;
|
|
187
|
+
|
|
188
|
+
export type Worker_Pipeline_Session_VerifySession_DecodedPayload = Uint8Array<ArrayBuffer> | null;
|
|
189
|
+
|
|
190
|
+
export type Worker_Pipeline_Session_VerifySession_DecodedSignature = Uint8Array<ArrayBuffer> | null;
|
|
191
|
+
|
|
192
|
+
export type Worker_Pipeline_Session_VerifySession_HeaderJson = unknown;
|
|
193
|
+
|
|
194
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadJson = unknown;
|
|
195
|
+
|
|
196
|
+
export type Worker_Pipeline_Session_VerifySession_SigningInput = string;
|
|
197
|
+
|
|
198
|
+
export type Worker_Pipeline_Session_VerifySession_Key = CryptoKey;
|
|
199
|
+
|
|
200
|
+
export type Worker_Pipeline_Session_VerifySession_IsValidSignature = boolean;
|
|
201
|
+
|
|
202
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadResult = z.ZodSafeParseResult<Worker_Pipeline_Session_VerifySession_Payload>;
|
|
203
|
+
|
|
204
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadAud = string;
|
|
205
|
+
|
|
206
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadIp = string;
|
|
207
|
+
|
|
208
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadJti = string;
|
|
209
|
+
|
|
210
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadIat = number;
|
|
211
|
+
|
|
212
|
+
export type Worker_Pipeline_Session_VerifySession_PayloadExp = number;
|
|
213
|
+
|
|
214
|
+
export type Worker_Pipeline_Session_VerifySession_Payload = {
|
|
215
|
+
aud: Worker_Pipeline_Session_VerifySession_PayloadAud;
|
|
216
|
+
ip: Worker_Pipeline_Session_VerifySession_PayloadIp;
|
|
217
|
+
jti: Worker_Pipeline_Session_VerifySession_PayloadJti;
|
|
218
|
+
iat: Worker_Pipeline_Session_VerifySession_PayloadIat;
|
|
219
|
+
exp: Worker_Pipeline_Session_VerifySession_PayloadExp;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export type Worker_Pipeline_Session_VerifySession_Now = number;
|
|
223
|
+
|
|
224
|
+
export type Worker_Pipeline_Session_VerifySession_UsedKey = string;
|
|
225
|
+
|
|
226
|
+
export type Worker_Pipeline_Session_VerifySession_WasUsed = string | null;
|
|
227
|
+
|
|
228
|
+
export type Worker_Pipeline_Session_VerifySession_UsedTtl = number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DurableObject } from 'cloudflare:workers';
|
|
2
|
-
import type { Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Ctx, Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Env, Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Options, Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Returns, Worker_DurableObjects_DeliveryOutbox_Runner_Env, Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Returns, Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Servers } from '../../types/worker/durable-objects/delivery-outbox.d.ts';
|
|
2
|
+
import type { Worker_DurableObjects_DeliveryOutbox_Runner_Alarm_Returns, Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Ctx, Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Env, Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Options, Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Returns, Worker_DurableObjects_DeliveryOutbox_Runner_Env, Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Returns, Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Servers } from '../../types/worker/durable-objects/delivery-outbox.d.ts';
|
|
3
3
|
declare class Runner extends DurableObject<Worker_DurableObjects_DeliveryOutbox_Runner_Env> {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(ctx: Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Ctx, env: Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Env);
|
|
6
|
+
alarm(): Worker_DurableObjects_DeliveryOutbox_Runner_Alarm_Returns;
|
|
6
7
|
enqueue(options: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Options): Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Returns;
|
|
7
8
|
}
|
|
8
9
|
declare function setConfiguredServers(servers: Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Servers): Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Returns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-outbox.d.ts","sourceRoot":"","sources":["../../../../src/worker/durable-objects/delivery-outbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"delivery-outbox.d.ts","sourceRoot":"","sources":["../../../../src/worker/durable-objects/delivery-outbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,OAAO,KAAK,EAYV,yDAAyD,EAazD,2DAA2D,EAE3D,2DAA2D,EAmB3D,2DAA2D,EAK3D,2DAA2D,EAI3D,+CAA+C,EA6E/C,iEAAiE,EACjE,iEAAiE,EAClE,MAAM,yDAAyD,CAAC;AAqGjE,cAAM,MAAO,SAAQ,aAAa,CAAC,+CAA+C,CAAC;;gBAqB9D,GAAG,EAAE,2DAA2D,EAAE,GAAG,EAAE,2DAA2D;IA2D/H,KAAK,IAAI,yDAAyD;IAoC3E,OAAO,CAAC,OAAO,EAAE,2DAA2D,GAAG,2DAA2D;CAspBxJ;AAcD,iBAAS,oBAAoB,CAAC,OAAO,EAAE,iEAAiE,GAAG,iEAAiE,CAI3K;AAED,OAAO,EACL,MAAM,EACN,oBAAoB,GACrB,CAAC"}
|