ntfy-reverse-proxy 2.2.1 → 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.
Files changed (140) hide show
  1. package/README.md +1 -1
  2. package/build/config.sample.json +4 -1
  3. package/build/src/cli/commands/context.d.ts +3 -2
  4. package/build/src/cli/commands/context.d.ts.map +1 -1
  5. package/build/src/cli/commands/context.js +13 -1
  6. package/build/src/cli/commands/context.js.map +1 -1
  7. package/build/src/cli/commands/deploy.d.ts.map +1 -1
  8. package/build/src/cli/commands/deploy.js +34 -26
  9. package/build/src/cli/commands/deploy.js.map +1 -1
  10. package/build/src/cli/commands/generate.d.ts +3 -2
  11. package/build/src/cli/commands/generate.d.ts.map +1 -1
  12. package/build/src/cli/commands/generate.js +33 -23
  13. package/build/src/cli/commands/generate.js.map +1 -1
  14. package/build/src/cli/commands/server.d.ts.map +1 -1
  15. package/build/src/cli/commands/server.js +3 -0
  16. package/build/src/cli/commands/server.js.map +1 -1
  17. package/build/src/cli/commands/settings.d.ts.map +1 -1
  18. package/build/src/cli/commands/settings.js +7 -4
  19. package/build/src/cli/commands/settings.js.map +1 -1
  20. package/build/src/cli/index.d.ts.map +1 -1
  21. package/build/src/cli/index.js +5 -4
  22. package/build/src/cli/index.js.map +1 -1
  23. package/build/src/cli/menu/interactive.d.ts.map +1 -1
  24. package/build/src/cli/menu/interactive.js +137 -19
  25. package/build/src/cli/menu/interactive.js.map +1 -1
  26. package/build/src/lib/package-runtime.d.ts +3 -2
  27. package/build/src/lib/package-runtime.d.ts.map +1 -1
  28. package/build/src/lib/package-runtime.js +5 -1
  29. package/build/src/lib/package-runtime.js.map +1 -1
  30. package/build/src/lib/regex.d.ts +2 -1
  31. package/build/src/lib/regex.d.ts.map +1 -1
  32. package/build/src/lib/regex.js +2 -1
  33. package/build/src/lib/regex.js.map +1 -1
  34. package/build/src/lib/schema.d.ts +51 -1
  35. package/build/src/lib/schema.d.ts.map +1 -1
  36. package/build/src/lib/schema.js +23 -4
  37. package/build/src/lib/schema.js.map +1 -1
  38. package/build/src/types/cli/commands/context.d.ts +7 -0
  39. package/build/src/types/cli/commands/deploy.d.ts +9 -5
  40. package/build/src/types/cli/commands/generate.d.ts +19 -17
  41. package/build/src/types/cli/commands/settings.d.ts +2 -0
  42. package/build/src/types/cli/menu/interactive.d.ts +19 -3
  43. package/build/src/types/lib/package-runtime.d.ts +7 -0
  44. package/build/src/types/lib/schema.d.ts +16 -1
  45. package/build/src/types/tests/cli/commands/context.test.d.ts +59 -0
  46. package/build/src/types/tests/cli/commands/generate.test.d.ts +42 -14
  47. package/build/src/types/tests/cli/commands/server.test.d.ts +7 -0
  48. package/build/src/types/tests/cli/menu/interactive.test.d.ts +25 -0
  49. package/build/src/types/tests/lib/schema.test.d.ts +58 -0
  50. package/build/src/types/tests/worker/durable-objects/delivery-outbox.test.d.ts +413 -0
  51. package/build/src/types/tests/worker/index.test.d.ts +175 -1
  52. package/build/src/types/tests/worker/interpreters/app-payload.test.d.ts +77 -0
  53. package/build/src/types/tests/worker/interpreters/discord-stonker-bot.test.d.ts +23 -0
  54. package/build/src/types/tests/worker/interpreters/mailmask.test.d.ts +103 -0
  55. package/build/src/types/tests/worker/interpreters/ntfy-json.test.d.ts +7 -15
  56. package/build/src/types/tests/worker/interpreters/outpost.test.d.ts +23 -0
  57. package/build/src/types/tests/worker/interpreters/pfsense-actions.test.d.ts +23 -0
  58. package/build/src/types/tests/worker/interpreters/plain-text.test.d.ts +20 -20
  59. package/build/src/types/tests/worker/interpreters/statuspage.test.d.ts +7 -0
  60. package/build/src/types/tests/worker/interpreters/transmission-vpn.test.d.ts +23 -0
  61. package/build/src/types/tests/worker/landing/page.test.d.ts +11 -0
  62. package/build/src/types/tests/worker/pipeline/deliver.test.d.ts +2 -2
  63. package/build/src/types/tests/worker/pipeline/drain-fifo.test.d.ts +146 -2
  64. package/build/src/types/tests/worker/pipeline/interpret.test.d.ts +2 -0
  65. package/build/src/types/tests/worker/pipeline/session.test.d.ts +140 -0
  66. package/build/src/types/worker/durable-objects/delivery-outbox.d.ts +394 -19
  67. package/build/src/types/worker/handlers.d.ts +15 -1
  68. package/build/src/types/worker/index.d.ts +53 -69
  69. package/build/src/types/worker/interpreters/app-payload.d.ts +76 -0
  70. package/build/src/types/worker/interpreters/discord-stonker-bot.d.ts +29 -0
  71. package/build/src/types/worker/interpreters/mailmask.d.ts +91 -0
  72. package/build/src/types/worker/interpreters/ntfy-json.d.ts +1 -1
  73. package/build/src/types/worker/interpreters/outpost.d.ts +29 -0
  74. package/build/src/types/worker/interpreters/pfsense-actions.d.ts +29 -0
  75. package/build/src/types/worker/interpreters/plain-text.d.ts +0 -2
  76. package/build/src/types/worker/interpreters/transmission-vpn.d.ts +29 -0
  77. package/build/src/types/worker/pipeline/deliver.d.ts +21 -2
  78. package/build/src/types/worker/pipeline/drain-fifo.d.ts +29 -5
  79. package/build/src/types/worker/pipeline/session.d.ts +228 -0
  80. package/build/src/worker/durable-objects/delivery-outbox.d.ts +4 -2
  81. package/build/src/worker/durable-objects/delivery-outbox.d.ts.map +1 -1
  82. package/build/src/worker/durable-objects/delivery-outbox.js +216 -21
  83. package/build/src/worker/durable-objects/delivery-outbox.js.map +1 -1
  84. package/build/src/worker/handlers.d.ts.map +1 -1
  85. package/build/src/worker/handlers.js +64 -8
  86. package/build/src/worker/handlers.js.map +1 -1
  87. package/build/src/worker/index.d.ts +3 -4
  88. package/build/src/worker/index.d.ts.map +1 -1
  89. package/build/src/worker/index.js +46 -79
  90. package/build/src/worker/index.js.map +1 -1
  91. package/build/src/worker/interpreters/app-payload.d.ts +4 -0
  92. package/build/src/worker/interpreters/app-payload.d.ts.map +1 -0
  93. package/build/src/worker/interpreters/app-payload.js +63 -0
  94. package/build/src/worker/interpreters/app-payload.js.map +1 -0
  95. package/build/src/worker/interpreters/discord-stonker-bot.d.ts +4 -0
  96. package/build/src/worker/interpreters/discord-stonker-bot.d.ts.map +1 -0
  97. package/build/src/worker/interpreters/discord-stonker-bot.js +10 -0
  98. package/build/src/worker/interpreters/discord-stonker-bot.js.map +1 -0
  99. package/build/src/worker/interpreters/mailmask.d.ts +4 -0
  100. package/build/src/worker/interpreters/mailmask.d.ts.map +1 -0
  101. package/build/src/worker/interpreters/mailmask.js +49 -0
  102. package/build/src/worker/interpreters/mailmask.js.map +1 -0
  103. package/build/src/worker/interpreters/ntfy-json.d.ts.map +1 -1
  104. package/build/src/worker/interpreters/ntfy-json.js +2 -12
  105. package/build/src/worker/interpreters/ntfy-json.js.map +1 -1
  106. package/build/src/worker/interpreters/outpost.d.ts +4 -0
  107. package/build/src/worker/interpreters/outpost.d.ts.map +1 -0
  108. package/build/src/worker/interpreters/outpost.js +10 -0
  109. package/build/src/worker/interpreters/outpost.js.map +1 -0
  110. package/build/src/worker/interpreters/pfsense-actions.d.ts +4 -0
  111. package/build/src/worker/interpreters/pfsense-actions.d.ts.map +1 -0
  112. package/build/src/worker/interpreters/pfsense-actions.js +10 -0
  113. package/build/src/worker/interpreters/pfsense-actions.js.map +1 -0
  114. package/build/src/worker/interpreters/plain-text.d.ts.map +1 -1
  115. package/build/src/worker/interpreters/plain-text.js +6 -4
  116. package/build/src/worker/interpreters/plain-text.js.map +1 -1
  117. package/build/src/worker/interpreters/statuspage.d.ts.map +1 -1
  118. package/build/src/worker/interpreters/statuspage.js +2 -12
  119. package/build/src/worker/interpreters/statuspage.js.map +1 -1
  120. package/build/src/worker/interpreters/transmission-vpn.d.ts +4 -0
  121. package/build/src/worker/interpreters/transmission-vpn.d.ts.map +1 -0
  122. package/build/src/worker/interpreters/transmission-vpn.js +10 -0
  123. package/build/src/worker/interpreters/transmission-vpn.js.map +1 -0
  124. package/build/src/worker/landing/page.d.ts.map +1 -1
  125. package/build/src/worker/landing/page.js +151 -107
  126. package/build/src/worker/landing/page.js.map +1 -1
  127. package/build/src/worker/pipeline/deliver.d.ts.map +1 -1
  128. package/build/src/worker/pipeline/deliver.js +3 -0
  129. package/build/src/worker/pipeline/deliver.js.map +1 -1
  130. package/build/src/worker/pipeline/drain-fifo.d.ts.map +1 -1
  131. package/build/src/worker/pipeline/drain-fifo.js +33 -7
  132. package/build/src/worker/pipeline/drain-fifo.js.map +1 -1
  133. package/build/src/worker/pipeline/interpret.d.ts.map +1 -1
  134. package/build/src/worker/pipeline/interpret.js +10 -0
  135. package/build/src/worker/pipeline/interpret.js.map +1 -1
  136. package/build/src/worker/pipeline/session.d.ts +6 -0
  137. package/build/src/worker/pipeline/session.d.ts.map +1 -0
  138. package/build/src/worker/pipeline/session.js +192 -0
  139. package/build/src/worker/pipeline/session.js.map +1 -0
  140. package/package.json +8 -4
@@ -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 & {};
@@ -3,7 +3,49 @@ import type {
3
3
  Worker_Pipeline_Deliver_EnqueueOptions,
4
4
  Worker_Pipeline_Deliver_Result,
5
5
  } from '../pipeline/deliver.d.ts';
6
- import type { Worker_Pipeline_Send_Result } from '../pipeline/send.d.ts';
6
+ import type {
7
+ Worker_Pipeline_DrainFifo_Action,
8
+ Worker_Pipeline_DrainFifo_DrainResult,
9
+ } from '../pipeline/drain-fifo.d.ts';
10
+ import type {
11
+ Worker_Pipeline_Send_Result,
12
+ Worker_Pipeline_Send_ServerResult,
13
+ } from '../pipeline/send.d.ts';
14
+
15
+ /**
16
+ * Worker - Durable Objects - Delivery Outbox - Delivery Attempt Minimum.
17
+ *
18
+ * @since 2.4.0
19
+ */
20
+ export type Worker_DurableObjects_DeliveryOutbox_DeliveryAttemptMinimum = number;
21
+
22
+ /**
23
+ * Worker - Durable Objects - Delivery Outbox - Delivery Failure Max Age Milliseconds.
24
+ *
25
+ * @since 2.4.0
26
+ */
27
+ export type Worker_DurableObjects_DeliveryOutbox_DeliveryFailureMaxAgeMilliseconds = number;
28
+
29
+ /**
30
+ * Worker - Durable Objects - Delivery Outbox - Delivery Retry Base Milliseconds.
31
+ *
32
+ * @since 2.4.0
33
+ */
34
+ export type Worker_DurableObjects_DeliveryOutbox_DeliveryRetryBaseMilliseconds = number;
35
+
36
+ /**
37
+ * Worker - Durable Objects - Delivery Outbox - Delivery Retry Max Milliseconds.
38
+ *
39
+ * @since 2.4.0
40
+ */
41
+ export type Worker_DurableObjects_DeliveryOutbox_DeliveryRetryMaxMilliseconds = number;
42
+
43
+ /**
44
+ * Worker - Durable Objects - Delivery Outbox - Missing Server Error Name.
45
+ *
46
+ * @since 2.4.0
47
+ */
48
+ export type Worker_DurableObjects_DeliveryOutbox_MissingServerErrorName = string;
7
49
 
8
50
  /**
9
51
  * Worker - Durable Objects - Delivery Outbox - Attachment Chunk Bytes.
@@ -12,6 +54,13 @@ import type { Worker_Pipeline_Send_Result } from '../pipeline/send.d.ts';
12
54
  */
13
55
  export type Worker_DurableObjects_DeliveryOutbox_AttachmentChunkBytes = number;
14
56
 
57
+ /**
58
+ * Worker - Durable Objects - Delivery Outbox - Configured Servers.
59
+ *
60
+ * @since 2.3.0
61
+ */
62
+ export type Worker_DurableObjects_DeliveryOutbox_ConfiguredServers = Array<Lib_Schema_ServerConfig>;
63
+
15
64
  /**
16
65
  * Worker - Durable Objects - Delivery Outbox - Delivery Succeeded.
17
66
  *
@@ -28,13 +77,20 @@ export type Worker_DurableObjects_DeliveryOutbox_DeliverySucceeded_Returns = boo
28
77
  *
29
78
  * @since 2.2.1
30
79
  */
31
- export type Worker_DurableObjects_DeliveryOutbox_Runner_EnvServers = string | undefined;
80
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Env = Record<string, unknown>;
32
81
 
33
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Env = {
34
- SERVERS?: Worker_DurableObjects_DeliveryOutbox_Runner_EnvServers;
35
- };
82
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_DrainPromise = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>> | undefined;
36
83
 
37
- export type Worker_DurableObjects_DeliveryOutbox_Runner_DrainPromise = Promise<Map<string, Worker_Pipeline_Send_Result>> | undefined;
84
+ /**
85
+ * Worker - Durable Objects - Delivery Outbox - Runner - Alarm.
86
+ *
87
+ * @since 2.4.0
88
+ */
89
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Alarm_Returns = Promise<void>;
90
+
91
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Alarm_ActiveDrain = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>> | undefined;
92
+
93
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Alarm_StartedDrain = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>>;
38
94
 
39
95
  /**
40
96
  * Worker - Durable Objects - Delivery Outbox - Runner - Attempt.
@@ -114,14 +170,40 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Checkpoint_Returns = voi
114
170
  /**
115
171
  * Worker - Durable Objects - Delivery Outbox - Runner - Constructor.
116
172
  *
117
- * @since 2.2.1
173
+ * @since 2.4.0
118
174
  */
119
175
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Ctx = DurableObjectState;
120
176
 
121
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_EnvServers = string | undefined;
177
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Env = Record<string, unknown>;
178
+
179
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItemName = string;
122
180
 
123
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_Env = {
124
- SERVERS?: Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_EnvServers;
181
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItem = {
182
+ name: Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItemName;
183
+ };
184
+
185
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumns = Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItem[];
186
+
187
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_AttemptCountColumn = Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItem | undefined;
188
+
189
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_DiagnosticConfigColumn = Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_NotificationColumnsItem | undefined;
190
+
191
+ /**
192
+ * Worker - Durable Objects - Delivery Outbox - Runner - Continue Drain.
193
+ *
194
+ * @since 2.4.0
195
+ */
196
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_PreviousDrain = Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>;
197
+
198
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_Returns = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>>;
199
+
200
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_CurrentDrainResults = Map<string, Worker_Pipeline_Send_Result>;
201
+
202
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_CurrentDrainDiscardedIds = Set<string>;
203
+
204
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_CurrentDrain = {
205
+ results: Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_CurrentDrainResults;
206
+ discardedIds: Worker_DurableObjects_DeliveryOutbox_Runner_ContinueDrain_CurrentDrainDiscardedIds;
125
207
  };
126
208
 
127
209
  /**
@@ -138,7 +220,22 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Delete_Returns = void;
138
220
  *
139
221
  * @since 2.2.1
140
222
  */
141
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_Returns = Promise<Map<string, Worker_Pipeline_Send_Result>>;
223
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_Returns = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>>;
224
+
225
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_DrainResultResults = Map<string, Worker_Pipeline_Send_Result>;
226
+
227
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_DrainResultDiscardedIds = Set<string>;
228
+
229
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_DrainResult = {
230
+ results: Worker_DurableObjects_DeliveryOutbox_Runner_Drain_DrainResultResults;
231
+ discardedIds: Worker_DurableObjects_DeliveryOutbox_Runner_Drain_DrainResultDiscardedIds;
232
+ };
233
+
234
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_PendingNotificationDeliveryId = string;
235
+
236
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Drain_PendingNotification = {
237
+ deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_Drain_PendingNotificationDeliveryId;
238
+ } | undefined;
142
239
 
143
240
  /**
144
241
  * Worker - Durable Objects - Delivery Outbox - Runner - Enqueue.
@@ -151,6 +248,29 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Returns = Promis
151
248
 
152
249
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DeliveryId = string;
153
250
 
251
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigServerNames = string[];
252
+
253
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigPrimaryServerName = string;
254
+
255
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigMode = 'send-once' | 'send-all';
256
+
257
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigContextName = string;
258
+
259
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigInterpreterName = string;
260
+
261
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigErrorTopic = string | undefined;
262
+
263
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfig = {
264
+ serverNames: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigServerNames;
265
+ primaryServerName: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigPrimaryServerName;
266
+ mode: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigMode;
267
+ contextName: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigContextName;
268
+ interpreterName: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigInterpreterName;
269
+ errorTopic?: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigErrorTopic;
270
+ };
271
+
272
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_DiagnosticConfigJson = string;
273
+
154
274
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_PayloadMessages = Worker_Pipeline_Deliver_EnqueueOptions['messages'];
155
275
 
156
276
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_PayloadServerNames = string[];
@@ -191,9 +311,16 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Offset = number;
191
311
 
192
312
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_Chunk = ArrayBuffer;
193
313
 
194
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_StartedDrain = Promise<Map<string, Worker_Pipeline_Send_Result>>;
314
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_StartedDrain = Promise<Worker_Pipeline_DrainFifo_DrainResult<Worker_Pipeline_Send_Result>>;
195
315
 
196
- export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResults = Map<string, Worker_Pipeline_Send_Result>;
316
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResultsResults = Map<string, Worker_Pipeline_Send_Result>;
317
+
318
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResultsDiscardedIds = Set<string>;
319
+
320
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResults = {
321
+ results: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResultsResults;
322
+ discardedIds: Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_AttemptResultsDiscardedIds;
323
+ };
197
324
 
198
325
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_PendingRowPending = number;
199
326
 
@@ -209,6 +336,8 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_QueuedRow = {
209
336
 
210
337
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_SendResult = Worker_Pipeline_Send_Result | undefined;
211
338
 
339
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Enqueue_State = 'delivered' | 'discarded' | 'queued';
340
+
212
341
  /**
213
342
  * Worker - Durable Objects - Delivery Outbox - Runner - Handle Error.
214
343
  *
@@ -220,17 +349,74 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Notification
220
349
 
221
350
  export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationPayload = string;
222
351
 
352
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationAttemptCount = number;
353
+
354
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationDiagnosticConfig = string | null;
355
+
356
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationCreatedAt = number;
357
+
223
358
  export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Notification = {
224
359
  position: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationPosition;
225
360
  deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationDeliveryId;
226
361
  payload: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationPayload;
362
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationAttemptCount;
363
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationDiagnosticConfig;
364
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_NotificationCreatedAt;
227
365
  };
228
366
 
229
367
  export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Err = unknown;
230
368
 
231
- export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Returns = void;
369
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Returns = Promise<Worker_Pipeline_DrainFifo_Action>;
370
+
371
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Classification = 'permanent' | 'transient';
232
372
 
233
- export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_ErrorMessage = string;
373
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleError_Reason = string;
374
+
375
+ /**
376
+ * Worker - Durable Objects - Delivery Outbox - Runner - Handle Failure.
377
+ *
378
+ * @since 2.4.0
379
+ */
380
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationPosition = number;
381
+
382
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationDeliveryId = string;
383
+
384
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationPayload = string;
385
+
386
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationAttemptCount = number;
387
+
388
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationDiagnosticConfig = string | null;
389
+
390
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationCreatedAt = number;
391
+
392
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Notification = {
393
+ position: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationPosition;
394
+ deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationDeliveryId;
395
+ payload: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationPayload;
396
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationAttemptCount;
397
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationDiagnosticConfig;
398
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_NotificationCreatedAt;
399
+ };
400
+
401
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_SendResult = Worker_Pipeline_Send_Result;
402
+
403
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Returns = Promise<Worker_Pipeline_DrainFifo_Action>;
404
+
405
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_SelectedResult = Worker_Pipeline_Send_ServerResult | undefined;
406
+
407
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Classification = 'permanent' | 'transient';
408
+
409
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Status = number;
410
+
411
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Transient = boolean;
412
+
413
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Permanent = boolean;
414
+
415
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_MissingResultReason = string;
416
+
417
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_HttpStatus = number;
418
+
419
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_HandleFailure_Reason = string;
234
420
 
235
421
  /**
236
422
  * Worker - Durable Objects - Delivery Outbox - Runner - Peek.
@@ -243,10 +429,19 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsDeliveryId =
243
429
 
244
430
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsPayload = string;
245
431
 
432
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsAttemptCount = number;
433
+
434
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsDiagnosticConfig = string | null;
435
+
436
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsCreatedAt = number;
437
+
246
438
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_Returns = {
247
439
  position: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsPosition;
248
440
  deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsDeliveryId;
249
441
  payload: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsPayload;
442
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsAttemptCount;
443
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsDiagnosticConfig;
444
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_ReturnsCreatedAt;
250
445
  } | undefined;
251
446
 
252
447
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemPosition = number;
@@ -255,10 +450,19 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemDeliveryId
255
450
 
256
451
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemPayload = string;
257
452
 
453
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemAttemptCount = number;
454
+
455
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemDiagnosticConfig = string | null;
456
+
457
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemCreatedAt = number;
458
+
258
459
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItem = {
259
460
  position: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemPosition;
260
461
  deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemDeliveryId;
261
462
  payload: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemPayload;
463
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemAttemptCount;
464
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemDiagnosticConfig;
465
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItemCreatedAt;
262
466
  };
263
467
 
264
468
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Peek_Rows = Worker_DurableObjects_DeliveryOutbox_Runner_Peek_RowsItem[];
@@ -314,6 +518,50 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_ReadCompletedStages_Comp
314
518
 
315
519
  export type Worker_DurableObjects_DeliveryOutbox_Runner_ReadCompletedStages_ServerStages = string[];
316
520
 
521
+ /**
522
+ * Worker - Durable Objects - Delivery Outbox - Runner - Record Failure.
523
+ *
524
+ * @since 2.4.0
525
+ */
526
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationPosition = number;
527
+
528
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationDeliveryId = string;
529
+
530
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationPayload = string;
531
+
532
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationAttemptCount = number;
533
+
534
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationDiagnosticConfig = string | null;
535
+
536
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationCreatedAt = number;
537
+
538
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Notification = {
539
+ position: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationPosition;
540
+ deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationDeliveryId;
541
+ payload: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationPayload;
542
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationAttemptCount;
543
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationDiagnosticConfig;
544
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_NotificationCreatedAt;
545
+ };
546
+
547
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Classification = 'permanent' | 'transient';
548
+
549
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Reason = string;
550
+
551
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_HttpStatus = number | null;
552
+
553
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Returns = Promise<Worker_Pipeline_DrainFifo_Action>;
554
+
555
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_CurrentTime = number;
556
+
557
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_AttemptCount = number;
558
+
559
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_AgeMilliseconds = number;
560
+
561
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Discarded = boolean;
562
+
563
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_RecordFailure_Debug = 'delivery_outbox_discarded' | 'delivery_outbox_retry';
564
+
317
565
  /**
318
566
  * Worker - Durable Objects - Delivery Outbox - Runner - Remove.
319
567
  *
@@ -356,16 +604,134 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_Returns =
356
604
  primaryServer: Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_ReturnsPrimaryServer;
357
605
  };
358
606
 
359
- export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_ServersJson = string;
360
-
361
- export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_Servers = Array<Lib_Schema_ServerConfig>;
362
-
363
607
  export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_ResolvedServers = Array<Lib_Schema_ServerConfig>;
364
608
 
365
609
  export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_Server = Lib_Schema_ServerConfig | undefined;
366
610
 
611
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_ServerError = Error;
612
+
367
613
  export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_PrimaryServer = Lib_Schema_ServerConfig | undefined;
368
614
 
615
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ResolveServers_PrimaryServerError = Error;
616
+
617
+ /**
618
+ * Worker - Durable Objects - Delivery Outbox - Runner - Schedule Retry.
619
+ *
620
+ * @since 2.4.0
621
+ */
622
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_AttemptCount = number;
623
+
624
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_Returns = Promise<void>;
625
+
626
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_ExistingAlarm = number | null;
627
+
628
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_Exponent = number;
629
+
630
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_Delay = number;
631
+
632
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_ScheduleRetry_ScheduledTime = number;
633
+
634
+ /**
635
+ * Worker - Durable Objects - Delivery Outbox - Runner - Send Discard Diagnostic.
636
+ *
637
+ * @since 2.4.0
638
+ */
639
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationPosition = number;
640
+
641
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationDeliveryId = string;
642
+
643
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationPayload = string;
644
+
645
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationAttemptCount = number;
646
+
647
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationDiagnosticConfig = string | null;
648
+
649
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationCreatedAt = number;
650
+
651
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_Notification = {
652
+ position: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationPosition;
653
+ deliveryId: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationDeliveryId;
654
+ payload: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationPayload;
655
+ attemptCount: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationAttemptCount;
656
+ diagnosticConfig: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationDiagnosticConfig;
657
+ createdAt: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_NotificationCreatedAt;
658
+ };
659
+
660
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_Reason = string;
661
+
662
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_HttpStatus = number | null;
663
+
664
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttemptCount = number;
665
+
666
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AgeMilliseconds = number;
667
+
668
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_Returns = Promise<void>;
669
+
670
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigServerNames = string[];
671
+
672
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigPrimaryServerName = string;
673
+
674
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigMode = 'send-once' | 'send-all';
675
+
676
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigContextName = string;
677
+
678
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigInterpreterName = string;
679
+
680
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigErrorTopic = string | undefined;
681
+
682
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfig = {
683
+ serverNames: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigServerNames;
684
+ primaryServerName: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigPrimaryServerName;
685
+ mode: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigMode;
686
+ contextName: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigContextName;
687
+ interpreterName: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigInterpreterName;
688
+ errorTopic?: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_DiagnosticConfigErrorTopic;
689
+ };
690
+
691
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_ResolvedServers = Array<Lib_Schema_ServerConfig & {}>;
692
+
693
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_Server = Lib_Schema_ServerConfig | undefined;
694
+
695
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_PrimaryServer = Lib_Schema_ServerConfig | undefined;
696
+
697
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataTimestamp = string;
698
+
699
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextName = string;
700
+
701
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextInterpreter = string;
702
+
703
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextStage = 'delivery';
704
+
705
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContext = {
706
+ name: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextName;
707
+ interpreter: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextInterpreter;
708
+ stage: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContextStage;
709
+ };
710
+
711
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataDeliveryId = string;
712
+
713
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataReason = string;
714
+
715
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataHttpStatus = number | null;
716
+
717
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataAttemptCount = number;
718
+
719
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataAgeMs = number;
720
+
721
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentData = {
722
+ timestamp: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataTimestamp;
723
+ context: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataContext;
724
+ delivery_id: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataDeliveryId;
725
+ reason: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataReason;
726
+ http_status: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataHttpStatus;
727
+ attempt_count: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataAttemptCount;
728
+ age_ms: Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentDataAgeMs;
729
+ };
730
+
731
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_AttachmentJson = string;
732
+
733
+ export type Worker_DurableObjects_DeliveryOutbox_Runner_SendDiscardDiagnostic_Attachment = ArrayBuffer;
734
+
369
735
  /**
370
736
  * Worker - Durable Objects - Delivery Outbox - Runner - Succeeded.
371
737
  *
@@ -392,3 +758,12 @@ export type Worker_DurableObjects_DeliveryOutbox_Runner_Succeeded_PayloadMode =
392
758
  export type Worker_DurableObjects_DeliveryOutbox_Runner_Succeeded_Payload = {
393
759
  mode: Worker_DurableObjects_DeliveryOutbox_Runner_Succeeded_PayloadMode;
394
760
  };
761
+
762
+ /**
763
+ * Worker - Durable Objects - Delivery Outbox - Set Configured Servers.
764
+ *
765
+ * @since 2.3.0
766
+ */
767
+ export type Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Servers = Array<Lib_Schema_ServerConfig>;
768
+
769
+ export type Worker_DurableObjects_DeliveryOutbox_SetConfiguredServers_Returns = void;