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
|
@@ -103,12 +103,18 @@ export type Cli_Menu_Interactive_AddContextFlow_ResolvedErrorTopic = string | un
|
|
|
103
103
|
|
|
104
104
|
export type Cli_Menu_Interactive_AddContextFlow_TopicString = string;
|
|
105
105
|
|
|
106
|
-
export type Cli_Menu_Interactive_AddContextFlow_TypedInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi' | 'transmission-vpn' | 'pfsense-actions' | 'discord-stonker-bot' | 'outpost';
|
|
106
|
+
export type Cli_Menu_Interactive_AddContextFlow_TypedInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi' | 'transmission-vpn' | 'pfsense-actions' | 'discord-stonker-bot' | 'outpost' | 'mailmask';
|
|
107
107
|
|
|
108
108
|
export type Cli_Menu_Interactive_AddContextFlow_TypedMode = 'send-once' | 'send-all';
|
|
109
109
|
|
|
110
110
|
export type Cli_Menu_Interactive_AddContextFlow_TypedErrorEvents = Array<Lib_Schema_ContextConfigErrorEvent> | undefined;
|
|
111
111
|
|
|
112
|
+
export type Cli_Menu_Interactive_AddContextFlow_UseSessionResponse = prompts.Answers<string>;
|
|
113
|
+
|
|
114
|
+
export type Cli_Menu_Interactive_AddContextFlow_UseSession = boolean | undefined;
|
|
115
|
+
|
|
116
|
+
export type Cli_Menu_Interactive_AddContextFlow_ResolvedToken = string | undefined;
|
|
117
|
+
|
|
112
118
|
export type Cli_Menu_Interactive_AddContextFlow_AutoToken = string;
|
|
113
119
|
|
|
114
120
|
export type Cli_Menu_Interactive_AddContextFlow_TokenResponse = prompts.Answers<string>;
|
|
@@ -117,8 +123,6 @@ export type Cli_Menu_Interactive_AddContextFlow_RawToken = string | undefined;
|
|
|
117
123
|
|
|
118
124
|
export type Cli_Menu_Interactive_AddContextFlow_TokenTrimmed = string;
|
|
119
125
|
|
|
120
|
-
export type Cli_Menu_Interactive_AddContextFlow_ResolvedToken = string | undefined;
|
|
121
|
-
|
|
122
126
|
export type Cli_Menu_Interactive_AddContextFlow_AllowedFromResponse = prompts.Answers<string>;
|
|
123
127
|
|
|
124
128
|
export type Cli_Menu_Interactive_AddContextFlow_RawAllowedFrom = string | undefined;
|
|
@@ -252,6 +256,10 @@ export type Cli_Menu_Interactive_ContextMenu_ErrorTopicTrimmed = string;
|
|
|
252
256
|
|
|
253
257
|
export type Cli_Menu_Interactive_ContextMenu_ResolvedErrorTopic = string | undefined;
|
|
254
258
|
|
|
259
|
+
export type Cli_Menu_Interactive_ContextMenu_UseSession = boolean | undefined;
|
|
260
|
+
|
|
261
|
+
export type Cli_Menu_Interactive_ContextMenu_UseSessionResponse = prompts.Answers<string>;
|
|
262
|
+
|
|
255
263
|
export type Cli_Menu_Interactive_ContextMenu_KeepTokenResponse = prompts.Answers<string>;
|
|
256
264
|
|
|
257
265
|
export type Cli_Menu_Interactive_ContextMenu_KeepToken = boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export type Lib_Schema_ContextConfigType = 'http' | 'email';
|
|
|
9
9
|
|
|
10
10
|
export type Lib_Schema_ContextConfigId = string;
|
|
11
11
|
|
|
12
|
-
export type Lib_Schema_ContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi' | 'transmission-vpn' | 'pfsense-actions' | 'discord-stonker-bot' | 'outpost';
|
|
12
|
+
export type Lib_Schema_ContextConfigInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi' | 'transmission-vpn' | 'pfsense-actions' | 'discord-stonker-bot' | 'outpost' | 'mailmask';
|
|
13
13
|
|
|
14
14
|
export type Lib_Schema_ContextConfigTopic = string;
|
|
15
15
|
|
|
@@ -88,6 +88,8 @@ export type Lib_Schema_HttpContextConfigServers = string[];
|
|
|
88
88
|
|
|
89
89
|
export type Lib_Schema_HttpContextConfigToken = string | undefined;
|
|
90
90
|
|
|
91
|
+
export type Lib_Schema_HttpContextConfigSession = Lib_Schema_SessionConfig | undefined;
|
|
92
|
+
|
|
91
93
|
export type Lib_Schema_HttpContextConfig = {
|
|
92
94
|
name: Lib_Schema_HttpContextConfigName;
|
|
93
95
|
type: Lib_Schema_HttpContextConfigType;
|
|
@@ -101,6 +103,7 @@ export type Lib_Schema_HttpContextConfig = {
|
|
|
101
103
|
primary_server: Lib_Schema_HttpContextConfigPrimaryServer;
|
|
102
104
|
servers: Lib_Schema_HttpContextConfigServers;
|
|
103
105
|
token?: Lib_Schema_HttpContextConfigToken;
|
|
106
|
+
session?: Lib_Schema_HttpContextConfigSession;
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
export type Lib_Schema_ContextConfig = Lib_Schema_HttpContextConfig | Lib_Schema_EmailContextConfig;
|
|
@@ -117,6 +120,18 @@ export type Lib_Schema_ServerConfig = {
|
|
|
117
120
|
token: Lib_Schema_ServerConfigToken;
|
|
118
121
|
};
|
|
119
122
|
|
|
123
|
+
export type Lib_Schema_SessionConfigSecret = string;
|
|
124
|
+
|
|
125
|
+
export type Lib_Schema_SessionConfigTtlSeconds = number | undefined;
|
|
126
|
+
|
|
127
|
+
export type Lib_Schema_SessionConfigMaxPerHour = number | undefined;
|
|
128
|
+
|
|
129
|
+
export type Lib_Schema_SessionConfig = {
|
|
130
|
+
secret: Lib_Schema_SessionConfigSecret;
|
|
131
|
+
ttl_seconds?: Lib_Schema_SessionConfigTtlSeconds;
|
|
132
|
+
max_per_hour?: Lib_Schema_SessionConfigMaxPerHour;
|
|
133
|
+
};
|
|
134
|
+
|
|
120
135
|
export type Lib_Schema_SettingsConfigWorkerName = string;
|
|
121
136
|
|
|
122
137
|
export type Lib_Schema_SettingsConfigBaseDomain = string;
|
|
@@ -82,6 +82,15 @@ export type Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateI
|
|
|
82
82
|
contexts: Tests_Cli_Commands_Context_ContextCommands_AutoRegeneratesDuplicateIds_Config_Contexts;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Tests - CLI - Commands - Context - Context Commands - Generates 64 Character Session Secrets.
|
|
87
|
+
*
|
|
88
|
+
* @since 2.4.0
|
|
89
|
+
*/
|
|
90
|
+
export type Tests_Cli_Commands_Context_ContextCommands_Generates64CharacterSessionSecrets_Secret1 = string;
|
|
91
|
+
|
|
92
|
+
export type Tests_Cli_Commands_Context_ContextCommands_Generates64CharacterSessionSecrets_Secret2 = string;
|
|
93
|
+
|
|
85
94
|
/**
|
|
86
95
|
* Tests - CLI - Commands - Context.
|
|
87
96
|
*
|
|
@@ -167,3 +176,12 @@ export type Tests_Cli_Commands_Context_ContextCommands_RejectsRemovalOfAMissingC
|
|
|
167
176
|
* @since 2.0.0
|
|
168
177
|
*/
|
|
169
178
|
export type Tests_Cli_Commands_Context_ContextCommands_RemovesAContext_Contexts = unknown[];
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Tests - CLI - Commands - Context - Context Commands - Switches A Context From A Token To Session Tokens.
|
|
182
|
+
*
|
|
183
|
+
* @since 2.4.0
|
|
184
|
+
*/
|
|
185
|
+
export type Tests_Cli_Commands_Context_ContextCommands_SwitchesAContextFromATokenToSessionTokens_Contexts = unknown[];
|
|
186
|
+
|
|
187
|
+
export type Tests_Cli_Commands_Context_ContextCommands_SwitchesAContextFromATokenToSessionTokens_Context = unknown;
|
|
@@ -56,6 +56,19 @@ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_Result = {
|
|
|
56
56
|
success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalErrorTopic_ResultSuccess;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Tests - Lib - Schema - Config Schema - Allows Optional Session On HTTP Context.
|
|
61
|
+
*
|
|
62
|
+
* @since 2.4.0
|
|
63
|
+
*/
|
|
64
|
+
export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalSessionOnHTTPContext_Valid = Record<string, unknown>;
|
|
65
|
+
|
|
66
|
+
export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalSessionOnHTTPContext_ResultSuccess = boolean;
|
|
67
|
+
|
|
68
|
+
export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalSessionOnHTTPContext_Result = {
|
|
69
|
+
success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalSessionOnHTTPContext_ResultSuccess;
|
|
70
|
+
};
|
|
71
|
+
|
|
59
72
|
/**
|
|
60
73
|
* Tests - Lib - Schema - Config Schema - Allows Optional Token On HTTP Context.
|
|
61
74
|
*
|
|
@@ -69,6 +82,19 @@ export type Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_Resul
|
|
|
69
82
|
success: Tests_Lib_Schema_ConfigSchema_AllowsOptionalTokenOnHTTPContext_ResultSuccess;
|
|
70
83
|
};
|
|
71
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Tests - Lib - Schema - Config Schema - Rejects A Context With Both Token And Session.
|
|
87
|
+
*
|
|
88
|
+
* @since 2.4.0
|
|
89
|
+
*/
|
|
90
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsAContextWithBothTokenAndSession_Invalid = Record<string, unknown>;
|
|
91
|
+
|
|
92
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsAContextWithBothTokenAndSession_ResultSuccess = boolean;
|
|
93
|
+
|
|
94
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsAContextWithBothTokenAndSession_Result = {
|
|
95
|
+
success: Tests_Lib_Schema_ConfigSchema_RejectsAContextWithBothTokenAndSession_ResultSuccess;
|
|
96
|
+
};
|
|
97
|
+
|
|
72
98
|
/**
|
|
73
99
|
* Tests - Lib - Schema - Config Schema - Rejects Allowed From Field On HTTP Context.
|
|
74
100
|
*
|
|
@@ -82,6 +108,19 @@ export type Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_R
|
|
|
82
108
|
success: Tests_Lib_Schema_ConfigSchema_RejectsAllowedFromFieldOnHTTPContext_ResultSuccess;
|
|
83
109
|
};
|
|
84
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Tests - Lib - Schema - Config Schema - Rejects A Session Secret Shorter Than 32 Characters.
|
|
113
|
+
*
|
|
114
|
+
* @since 2.4.0
|
|
115
|
+
*/
|
|
116
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsASessionSecretShorterThan32Characters_Invalid = Record<string, unknown>;
|
|
117
|
+
|
|
118
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsASessionSecretShorterThan32Characters_ResultSuccess = boolean;
|
|
119
|
+
|
|
120
|
+
export type Tests_Lib_Schema_ConfigSchema_RejectsASessionSecretShorterThan32Characters_Result = {
|
|
121
|
+
success: Tests_Lib_Schema_ConfigSchema_RejectsASessionSecretShorterThan32Characters_ResultSuccess;
|
|
122
|
+
};
|
|
123
|
+
|
|
85
124
|
/**
|
|
86
125
|
* Tests - Lib - Schema - Config Schema - Rejects Context Without Type Discriminator.
|
|
87
126
|
*
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import type { vi } from 'vitest';
|
|
2
|
+
|
|
3
|
+
import type { Runner as DeliveryOutbox } from '../../../../worker/durable-objects/delivery-outbox.js';
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
Worker_Pipeline_Deliver_EnqueueOptions,
|
|
7
|
+
Worker_Pipeline_Deliver_Result,
|
|
8
|
+
} from '../../../worker/pipeline/deliver.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Tests - Worker - Durable Objects - Delivery Outbox.
|
|
12
|
+
*
|
|
13
|
+
* @since 2.4.0
|
|
14
|
+
*/
|
|
15
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_AlarmTimes = number[];
|
|
16
|
+
|
|
17
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Close = () => void;
|
|
18
|
+
|
|
19
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_ConsumeAlarm = () => void;
|
|
20
|
+
|
|
21
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_CreateState = () => DurableObjectState;
|
|
22
|
+
|
|
23
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_GetAlarm = () => Promise<number | null>;
|
|
24
|
+
|
|
25
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Query = string;
|
|
26
|
+
|
|
27
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Bindings = SqlStorageValue[] | undefined;
|
|
28
|
+
|
|
29
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Returns = Array<Record<string, SqlStorageValue>>;
|
|
30
|
+
|
|
31
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query = (
|
|
32
|
+
query: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Query,
|
|
33
|
+
bindings?: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Bindings,
|
|
34
|
+
) => Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query_Returns;
|
|
35
|
+
|
|
36
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner = {
|
|
37
|
+
alarmTimes: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_AlarmTimes;
|
|
38
|
+
close: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Close;
|
|
39
|
+
consumeAlarm: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_ConsumeAlarm;
|
|
40
|
+
createState: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_CreateState;
|
|
41
|
+
getAlarm: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_GetAlarm;
|
|
42
|
+
query: Tests_Worker_DurableObjects_DeliveryOutbox_StorageRunner_Query;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Cloudflare Workers.
|
|
47
|
+
*
|
|
48
|
+
* @since 2.4.0
|
|
49
|
+
*/
|
|
50
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject = (
|
|
51
|
+
this: Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_This,
|
|
52
|
+
ctx: Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Ctx,
|
|
53
|
+
env: Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Env,
|
|
54
|
+
) => Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Returns;
|
|
55
|
+
|
|
56
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_This = object;
|
|
57
|
+
|
|
58
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Ctx = DurableObjectState;
|
|
59
|
+
|
|
60
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Env = Record<string, unknown>;
|
|
61
|
+
|
|
62
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_InitializeDurableObject_Returns = void;
|
|
63
|
+
|
|
64
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CloudflareWorkers_DurableObject = ReturnType<typeof vi['fn']>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Create Delivery Outbox.
|
|
68
|
+
*
|
|
69
|
+
* @since 2.4.0
|
|
70
|
+
*/
|
|
71
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateDeliveryOutbox_Returns = DeliveryOutbox & {};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Create Options.
|
|
75
|
+
*
|
|
76
|
+
* @since 2.4.0
|
|
77
|
+
*/
|
|
78
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateOptions_Body = string;
|
|
79
|
+
|
|
80
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateOptions_ErrorTopic = string | undefined;
|
|
81
|
+
|
|
82
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateOptions_Returns = Worker_Pipeline_Deliver_EnqueueOptions & {};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Create Storage Runner.
|
|
86
|
+
*
|
|
87
|
+
* @since 2.4.0
|
|
88
|
+
*/
|
|
89
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsAlarmTimes = number[];
|
|
90
|
+
|
|
91
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsClose = () => void;
|
|
92
|
+
|
|
93
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsConsumeAlarm = () => void;
|
|
94
|
+
|
|
95
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsCreateState = () => DurableObjectState;
|
|
96
|
+
|
|
97
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsGetAlarm = () => Promise<number | null>;
|
|
98
|
+
|
|
99
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsQuery = (
|
|
100
|
+
query: string,
|
|
101
|
+
bindings?: SqlStorageValue[],
|
|
102
|
+
) => Array<Record<string, SqlStorageValue>>;
|
|
103
|
+
|
|
104
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_Returns = {
|
|
105
|
+
alarmTimes: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsAlarmTimes;
|
|
106
|
+
close: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsClose;
|
|
107
|
+
consumeAlarm: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsConsumeAlarm;
|
|
108
|
+
createState: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsCreateState;
|
|
109
|
+
getAlarm: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsGetAlarm;
|
|
110
|
+
query: Tests_Worker_DurableObjects_DeliveryOutbox_CreateStorageRunner_ReturnsQuery;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Discards An Invalid Queued Payload.
|
|
115
|
+
*
|
|
116
|
+
* @since 2.4.0
|
|
117
|
+
*/
|
|
118
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAnInvalidQueuedPayload_Outbox = DeliveryOutbox & {};
|
|
119
|
+
|
|
120
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAnInvalidQueuedPayload_Rows = Array<Record<string, SqlStorageValue>>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Discards A Permanent 400 Head And Delivers Later Rows In FIFO Order.
|
|
124
|
+
*
|
|
125
|
+
* @since 2.4.0
|
|
126
|
+
*/
|
|
127
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Outbox = DeliveryOutbox & {};
|
|
128
|
+
|
|
129
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_MockFetch = ReturnType<typeof vi['fn']>;
|
|
130
|
+
|
|
131
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Poison = Promise<Worker_Pipeline_Deliver_Result>;
|
|
132
|
+
|
|
133
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_GoodFirst = Promise<Worker_Pipeline_Deliver_Result>;
|
|
134
|
+
|
|
135
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_GoodSecond = Promise<Worker_Pipeline_Deliver_Result>;
|
|
136
|
+
|
|
137
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultDeliveryId = string;
|
|
138
|
+
|
|
139
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultState = 'delivered' | 'discarded' | 'queued';
|
|
140
|
+
|
|
141
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultPending = number;
|
|
142
|
+
|
|
143
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultSendResult = Worker_Pipeline_Deliver_Result['sendResult'];
|
|
144
|
+
|
|
145
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_Result = {
|
|
146
|
+
deliveryId: Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultDeliveryId;
|
|
147
|
+
state: Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultState;
|
|
148
|
+
pending: Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultPending;
|
|
149
|
+
sendResult?: Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_ResultSendResult;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results = Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_Result[];
|
|
153
|
+
|
|
154
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_DiscardedResult = Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Results_Result | undefined;
|
|
155
|
+
|
|
156
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_DiagnosticCall = unknown[] | undefined;
|
|
157
|
+
|
|
158
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_DiagnosticInit = RequestInit;
|
|
159
|
+
|
|
160
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_DiagnosticBytes = Uint8Array;
|
|
161
|
+
|
|
162
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsAPermanent400HeadAndDeliversLaterRowsInFIFOOrder_Diagnostic = Record<string, unknown>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Discards A Row Whose Configured Server Is Missing.
|
|
166
|
+
*
|
|
167
|
+
* @since 2.4.0
|
|
168
|
+
*/
|
|
169
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsARowWhoseConfiguredServerIsMissing_Outbox = DeliveryOutbox & {};
|
|
170
|
+
|
|
171
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsARowWhoseConfiguredServerIsMissing_MockFetch = ReturnType<typeof vi['fn']>;
|
|
172
|
+
|
|
173
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsARowWhoseConfiguredServerIsMissing_Result = Worker_Pipeline_Deliver_Result & {};
|
|
174
|
+
|
|
175
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_DiscardsARowWhoseConfiguredServerIsMissing_Rows = Array<Record<string, SqlStorageValue>>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Preserves Attempt State Across A New Durable Object Instance.
|
|
179
|
+
*
|
|
180
|
+
* @since 2.4.0
|
|
181
|
+
*/
|
|
182
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesAttemptStateAcrossANewDurableObjectInstance_FirstOutbox = DeliveryOutbox & {};
|
|
183
|
+
|
|
184
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesAttemptStateAcrossANewDurableObjectInstance_MockFetch = ReturnType<typeof vi['fn']>;
|
|
185
|
+
|
|
186
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesAttemptStateAcrossANewDurableObjectInstance_SecondOutbox = DeliveryOutbox & {};
|
|
187
|
+
|
|
188
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesAttemptStateAcrossANewDurableObjectInstance_AttemptRows = Array<Record<string, SqlStorageValue>>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Preserves Every Notification Through An Outage Across Several Posts.
|
|
192
|
+
*
|
|
193
|
+
* @since 2.4.0
|
|
194
|
+
*/
|
|
195
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesEveryNotificationThroughAnOutageAcrossSeveralPosts_Outbox = DeliveryOutbox & {};
|
|
196
|
+
|
|
197
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesEveryNotificationThroughAnOutageAcrossSeveralPosts_MockFetch = ReturnType<typeof vi['fn']>;
|
|
198
|
+
|
|
199
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesEveryNotificationThroughAnOutageAcrossSeveralPosts_ExpectedBodies = string[];
|
|
200
|
+
|
|
201
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PreservesEveryNotificationThroughAnOutageAcrossSeveralPosts_Rows = Array<Record<string, SqlStorageValue>>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Purges An Aged Transient Row And Its Persisted Data After The Minimum Attempts.
|
|
205
|
+
*
|
|
206
|
+
* @since 2.4.0
|
|
207
|
+
*/
|
|
208
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PurgesAnAgedTransientRowAndItsPersistedDataAfterTheMinimumAttempts_Outbox = DeliveryOutbox & {};
|
|
209
|
+
|
|
210
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PurgesAnAgedTransientRowAndItsPersistedDataAfterTheMinimumAttempts_MockFetch = ReturnType<typeof vi['fn']>;
|
|
211
|
+
|
|
212
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PurgesAnAgedTransientRowAndItsPersistedDataAfterTheMinimumAttempts_Attachment = ArrayBuffer;
|
|
213
|
+
|
|
214
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_PurgesAnAgedTransientRowAndItsPersistedDataAfterTheMinimumAttempts_Rows = Array<Record<string, SqlStorageValue>>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Retries Transient 503 Failures Through Alarms Until Delivery Succeeds.
|
|
218
|
+
*
|
|
219
|
+
* @since 2.4.0
|
|
220
|
+
*/
|
|
221
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_RetriesTransient503FailuresThroughAlarmsUntilDeliverySucceeds_Outbox = DeliveryOutbox & {};
|
|
222
|
+
|
|
223
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_RetriesTransient503FailuresThroughAlarmsUntilDeliverySucceeds_MockFetch = ReturnType<typeof vi['fn']>;
|
|
224
|
+
|
|
225
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_RetriesTransient503FailuresThroughAlarmsUntilDeliverySucceeds_FirstAlarm = number | undefined;
|
|
226
|
+
|
|
227
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_RetriesTransient503FailuresThroughAlarmsUntilDeliverySucceeds_SecondAlarm = number | undefined;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Delivery Outbox - Upgrades And Handles Rows From The Legacy Notifications Schema.
|
|
231
|
+
*
|
|
232
|
+
* @since 2.4.0
|
|
233
|
+
*/
|
|
234
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_UpgradesAndHandlesRowsFromTheLegacyNotificationsSchema_Payload = string;
|
|
235
|
+
|
|
236
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_UpgradesAndHandlesRowsFromTheLegacyNotificationsSchema_Outbox = DeliveryOutbox & {};
|
|
237
|
+
|
|
238
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_UpgradesAndHandlesRowsFromTheLegacyNotificationsSchema_MockFetch = ReturnType<typeof vi['fn']>;
|
|
239
|
+
|
|
240
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_UpgradesAndHandlesRowsFromTheLegacyNotificationsSchema_Columns = Array<Record<string, SqlStorageValue>>;
|
|
241
|
+
|
|
242
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_DeliveryOutbox_UpgradesAndHandlesRowsFromTheLegacyNotificationsSchema_Rows = Array<Record<string, SqlStorageValue>>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Get First Row.
|
|
246
|
+
*
|
|
247
|
+
* @since 2.4.0
|
|
248
|
+
*/
|
|
249
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_GetFirstRow_Rows = Array<Record<string, SqlStorageValue>>;
|
|
250
|
+
|
|
251
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_GetFirstRow_Returns = Record<string, SqlStorageValue>;
|
|
252
|
+
|
|
253
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_GetFirstRow_Row = Record<string, SqlStorageValue> | undefined;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner.
|
|
257
|
+
*
|
|
258
|
+
* @since 2.4.0
|
|
259
|
+
*/
|
|
260
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_AlarmTimes = number[];
|
|
261
|
+
|
|
262
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Alarm = number | null;
|
|
263
|
+
|
|
264
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseBinding = null | number | bigint | string | Uint8Array;
|
|
265
|
+
|
|
266
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementColumns = () => unknown[];
|
|
267
|
+
|
|
268
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementAll = (...bindings: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseBinding[]) => unknown[];
|
|
269
|
+
|
|
270
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementRun = (...bindings: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseBinding[]) => unknown;
|
|
271
|
+
|
|
272
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatement = {
|
|
273
|
+
columns: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementColumns;
|
|
274
|
+
all: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementAll;
|
|
275
|
+
run: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatementRun;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseClose = () => void;
|
|
279
|
+
|
|
280
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseExec = (query: string) => void;
|
|
281
|
+
|
|
282
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabasePrepare = (query: string) => Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseStatement;
|
|
283
|
+
|
|
284
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Database = {
|
|
285
|
+
close: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseClose;
|
|
286
|
+
exec: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabaseExec;
|
|
287
|
+
prepare: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DatabasePrepare;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Close.
|
|
292
|
+
*
|
|
293
|
+
* @since 2.4.0
|
|
294
|
+
*/
|
|
295
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Close_Returns = void;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Constructor.
|
|
299
|
+
*
|
|
300
|
+
* @since 2.4.0
|
|
301
|
+
*/
|
|
302
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Constructor_DatabasePath = string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Consume Alarm.
|
|
306
|
+
*
|
|
307
|
+
* @since 2.4.0
|
|
308
|
+
*/
|
|
309
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_ConsumeAlarm_Returns = void;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Create State.
|
|
313
|
+
*
|
|
314
|
+
* @since 2.4.0
|
|
315
|
+
*/
|
|
316
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Returns = DurableObjectState;
|
|
317
|
+
|
|
318
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Execute = (
|
|
319
|
+
query: string,
|
|
320
|
+
bindings?: SqlStorageValue[],
|
|
321
|
+
) => SqlStorageCursor<Record<string, SqlStorageValue>>;
|
|
322
|
+
|
|
323
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_SqlExec = Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Execute & {};
|
|
324
|
+
|
|
325
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Query = string;
|
|
326
|
+
|
|
327
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_BindingsCast = unknown;
|
|
328
|
+
|
|
329
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Bindings = SqlStorageValue[];
|
|
330
|
+
|
|
331
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_CreateState_Cast = unknown;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Delete Alarm.
|
|
335
|
+
*
|
|
336
|
+
* @since 2.4.0
|
|
337
|
+
*/
|
|
338
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_DeleteAlarm_Returns = Promise<void>;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Execute.
|
|
342
|
+
*
|
|
343
|
+
* @since 2.4.0
|
|
344
|
+
*/
|
|
345
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Query = string;
|
|
346
|
+
|
|
347
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Bindings = SqlStorageValue[];
|
|
348
|
+
|
|
349
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Returns<Row extends Record<string, SqlStorageValue>> = SqlStorageCursor<Row>;
|
|
350
|
+
|
|
351
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementBinding = null | number | bigint | string | Uint8Array;
|
|
352
|
+
|
|
353
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementColumns = () => unknown[];
|
|
354
|
+
|
|
355
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementAll = (...bindings: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementBinding[]) => unknown[];
|
|
356
|
+
|
|
357
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementRun = (...bindings: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementBinding[]) => unknown;
|
|
358
|
+
|
|
359
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Statement = {
|
|
360
|
+
columns: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementColumns;
|
|
361
|
+
all: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementAll;
|
|
362
|
+
run: Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementRun;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_NormalizedBindings = Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_StatementBinding[];
|
|
366
|
+
|
|
367
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Columns = unknown[];
|
|
368
|
+
|
|
369
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Rows<Row extends Record<string, SqlStorageValue>> = Row[];
|
|
370
|
+
|
|
371
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_RowsCast = unknown;
|
|
372
|
+
|
|
373
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_Row<Row extends Record<string, SqlStorageValue>> = Row;
|
|
374
|
+
|
|
375
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Execute_CursorCast = unknown;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Get Alarm.
|
|
379
|
+
*
|
|
380
|
+
* @since 2.4.0
|
|
381
|
+
*/
|
|
382
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_GetAlarm_Returns = Promise<number | null>;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Query.
|
|
386
|
+
*
|
|
387
|
+
* @since 2.4.0
|
|
388
|
+
*/
|
|
389
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Query_Query = string;
|
|
390
|
+
|
|
391
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Query_Bindings = SqlStorageValue[];
|
|
392
|
+
|
|
393
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_Query_Returns = Array<Record<string, SqlStorageValue>>;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Set Alarm.
|
|
397
|
+
*
|
|
398
|
+
* @since 2.4.0
|
|
399
|
+
*/
|
|
400
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_SetAlarm_ScheduledTime = number;
|
|
401
|
+
|
|
402
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_SetAlarm_Returns = Promise<void>;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Tests - Worker - Durable Objects - Delivery Outbox - Runner - Transaction Sync.
|
|
406
|
+
*
|
|
407
|
+
* @since 2.4.0
|
|
408
|
+
*/
|
|
409
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_TransactionSync_Closure<Return> = () => Return;
|
|
410
|
+
|
|
411
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_TransactionSync_Returns<Return> = Return;
|
|
412
|
+
|
|
413
|
+
export type Tests_Worker_DurableObjects_DeliveryOutbox_Runner_TransactionSync_Result<Return> = Return;
|