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
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,QAAA,MAAM,YAAY;;;;iBAIhB,CAAC;AAUH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BZ,CAAC;AAUZ,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2Bb,CAAC;AAUZ,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGjB,CAAC;AAUH,QAAA,MAAM,cAAc;;;;iBAIlB,CAAC;AAUH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhB,CAAC;AAEH,OAAO,EACL,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,QAAA,MAAM,YAAY;;;;iBAIhB,CAAC;AAUH,QAAA,MAAM,aAAa;;;;kBAIR,CAAC;AAUZ,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoCrB,CAAC;AAUH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgCb,CAAC;AAUZ,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAGjB,CAAC;AAUH,QAAA,MAAM,cAAc;;;;iBAIlB,CAAC;AAUH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIhB,CAAC;AAEH,OAAO,EACL,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,CAAC"}
@@ -1,14 +1,19 @@
1
1
  import { z } from 'zod';
2
- import { LIB_REGEX_BASE_DOMAIN, LIB_REGEX_WORKER_NAME } from './regex.js';
2
+ import { LIB_REGEX_BASE_DOMAIN, LIB_REGEX_WORKER_NAME, } from './regex.js';
3
3
  const serverSchema = z.object({
4
4
  name: z.string().min(1),
5
5
  server: z.string().url().refine((s) => s.startsWith('https://'), { message: 'Server URL must start with https://' }),
6
6
  token: z.string().startsWith('tk_'),
7
7
  });
8
+ const sessionSchema = z.object({
9
+ secret: z.string().min(32),
10
+ ttl_seconds: z.number().int().min(60).max(3600).optional(),
11
+ max_per_hour: z.number().int().min(1).max(1000).optional(),
12
+ }).strict();
8
13
  const httpContextSchema = z.object({
9
14
  type: z.literal('http'),
10
15
  name: z.string().min(1),
11
- id: z.string().min(1),
16
+ id: z.string().min(1).max(63).regex(LIB_REGEX_WORKER_NAME, { message: 'HTTP context ID must contain only lowercase alphanumeric characters and hyphens, and cannot start or end with a hyphen' }),
12
17
  interpreter: z.enum([
13
18
  'plain-text',
14
19
  'ntfy-json',
@@ -17,6 +22,11 @@ const httpContextSchema = z.object({
17
22
  'statuspage',
18
23
  'pfsense',
19
24
  'unifi',
25
+ 'transmission-vpn',
26
+ 'pfsense-actions',
27
+ 'discord-stonker-bot',
28
+ 'outpost',
29
+ 'mailmask',
20
30
  ]),
21
31
  topic: z.string().min(1),
22
32
  error_topic: z.string().min(1).optional(),
@@ -32,7 +42,11 @@ const httpContextSchema = z.object({
32
42
  primary_server: z.string().min(1),
33
43
  servers: z.array(z.string().min(1)).min(1),
34
44
  token: z.string().min(1).optional(),
35
- }).strict();
45
+ session: sessionSchema.optional(),
46
+ }).strict().refine((context) => context['token'] === undefined || context['session'] === undefined, {
47
+ message: 'HTTP context cannot set both token and session',
48
+ path: ['session'],
49
+ });
36
50
  const emailContextSchema = z.object({
37
51
  type: z.literal('email'),
38
52
  name: z.string().min(1),
@@ -45,6 +59,11 @@ const emailContextSchema = z.object({
45
59
  'statuspage',
46
60
  'pfsense',
47
61
  'unifi',
62
+ 'transmission-vpn',
63
+ 'pfsense-actions',
64
+ 'discord-stonker-bot',
65
+ 'outpost',
66
+ 'mailmask',
48
67
  ]),
49
68
  topic: z.string().min(1),
50
69
  error_topic: z.string().min(1).optional(),
@@ -75,5 +94,5 @@ const configSchema = z.object({
75
94
  contexts: z.array(contextSchema),
76
95
  settings: settingsSchema,
77
96
  });
78
- export { configSchema, contextSchema, emailContextSchema, httpContextSchema, serverSchema, settingsSchema, };
97
+ export { configSchema, contextSchema, emailContextSchema, httpContextSchema, serverSchema, sessionSchema, settingsSchema, };
79
98
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,YAAY,C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MAAM,CAAC;IAC9B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,oHAAoH,EAAE,CAAC;IAC9L,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,gGAAgG,EAAE,CAAC;IAC1K,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE;CAClC,CAAC,CAAC;AAUH,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAChC,QAAQ,EAAE,cAAc;CACzB,CAAC,CAAC;AAEH,OAAO,EACL,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,CAAC"}
@@ -106,6 +106,13 @@ export type Cli_Commands_Context_GenerateRandomString_Result = string;
106
106
 
107
107
  export type Cli_Commands_Context_GenerateRandomString_Chunk = string;
108
108
 
109
+ /**
110
+ * CLI - Commands - Context.
111
+ *
112
+ * @since 2.4.0
113
+ */
114
+ export type Cli_Commands_Context_GenerateSessionSecret_Returns = string;
115
+
109
116
  /**
110
117
  * CLI - Commands - Context.
111
118
  *
@@ -132,8 +132,6 @@ export type Cli_Commands_Deploy_Deploy_AccountId = string;
132
132
 
133
133
  export type Cli_Commands_Deploy_Deploy_KvNamespaceId = string;
134
134
 
135
- export type Cli_Commands_Deploy_Deploy_ProjectRoot = string;
136
-
137
135
  export type Cli_Commands_Deploy_Deploy_WranglerTomlPath = string;
138
136
 
139
137
  /**
@@ -141,11 +139,11 @@ export type Cli_Commands_Deploy_Deploy_WranglerTomlPath = string;
141
139
  *
142
140
  * @since 2.0.0
143
141
  */
144
- export type Cli_Commands_Deploy_DeployWorker_Returns = void;
142
+ export type Cli_Commands_Deploy_DeployWorker_WranglerTomlPath = string;
145
143
 
146
- export type Cli_Commands_Deploy_DeployWorker_ProjectRoot = string;
144
+ export type Cli_Commands_Deploy_DeployWorker_Returns = void;
147
145
 
148
- export type Cli_Commands_Deploy_DeployWorker_WranglerTomlPath = string;
146
+ export type Cli_Commands_Deploy_DeployWorker_WranglerCliPath = string;
149
147
 
150
148
  export type Cli_Commands_Deploy_DeployWorker_DeployResult = SpawnSyncReturns<string>;
151
149
 
@@ -360,6 +358,12 @@ export type Cli_Commands_Deploy_ListEmailRoutingRules_Rule = {
360
358
  actions: Cli_Commands_Deploy_ListEmailRoutingRules_RuleActions;
361
359
  };
362
360
 
361
+ export type Cli_Commands_Deploy_ListEmailRoutingRules_AllRules = Cli_Commands_Deploy_ListEmailRoutingRules_Rule[];
362
+
363
+ export type Cli_Commands_Deploy_ListEmailRoutingRules_Page = number;
364
+
365
+ export type Cli_Commands_Deploy_ListEmailRoutingRules_PageRules = Cli_Commands_Deploy_ListEmailRoutingRules_Rule[];
366
+
363
367
  export type Cli_Commands_Deploy_ListEmailRoutingRules_Response = Response;
364
368
 
365
369
  export type Cli_Commands_Deploy_ListEmailRoutingRules_DataSuccess = boolean;
@@ -6,15 +6,6 @@ import type {
6
6
  Lib_Schema_HttpContextConfig,
7
7
  } from '../../lib/schema.d.ts';
8
8
 
9
- /**
10
- * CLI - Commands - Generate.
11
- *
12
- * @since 2.0.0
13
- */
14
- export type Cli_Commands_Generate_ProjectRoot = string;
15
-
16
- export type Cli_Commands_Generate_DefaultWranglerTomlPath = string;
17
-
18
9
  /**
19
10
  * CLI - Commands - Generate - Generate Wrangler Toml.
20
11
  *
@@ -44,21 +35,29 @@ export type Cli_Commands_Generate_GenerateWranglerToml_Config = {
44
35
 
45
36
  export type Cli_Commands_Generate_GenerateWranglerToml_Settings = Cli_Commands_Generate_GenerateWranglerToml_Config['settings'];
46
37
 
47
- export type Cli_Commands_Generate_GenerateWranglerToml_Servers = Cli_Commands_Generate_GenerateWranglerToml_Config['servers'];
48
-
49
38
  export type Cli_Commands_Generate_GenerateWranglerToml_Contexts = Cli_Commands_Generate_GenerateWranglerToml_Config['contexts'];
50
39
 
51
40
  export type Cli_Commands_Generate_GenerateWranglerToml_CompatibilityDate = string;
52
41
 
53
42
  export type Cli_Commands_Generate_GenerateWranglerToml_OutputDir = string;
54
43
 
44
+ export type Cli_Commands_Generate_GenerateWranglerToml_BundleDir = string;
45
+
46
+ export type Cli_Commands_Generate_GenerateWranglerToml_BundleConfigPath = string;
47
+
48
+ export type Cli_Commands_Generate_GenerateWranglerToml_BundleEntryPath = string;
49
+
50
+ export type Cli_Commands_Generate_GenerateWranglerToml_RealBundleDir = string;
51
+
55
52
  export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryPath = string;
56
53
 
57
54
  export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryRelativePath = string;
58
55
 
59
- export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryConfigPath = string;
56
+ export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryImportPath = string;
57
+
58
+ export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryImport = string;
60
59
 
61
- export type Cli_Commands_Generate_GenerateWranglerToml_WorkerEntryToml = string;
60
+ export type Cli_Commands_Generate_GenerateWranglerToml_EntryLines = string[];
62
61
 
63
62
  export type Cli_Commands_Generate_GenerateWranglerToml_HttpContexts = Array<Lib_Schema_HttpContextConfig>;
64
63
 
@@ -68,8 +67,11 @@ export type Cli_Commands_Generate_GenerateWranglerToml_RouteLines = string[];
68
67
 
69
68
  export type Cli_Commands_Generate_GenerateWranglerToml_Lines = string[];
70
69
 
71
- export type Cli_Commands_Generate_GenerateWranglerToml_SettingsJson = string;
72
-
73
- export type Cli_Commands_Generate_GenerateWranglerToml_ServersJson = string;
70
+ /**
71
+ * CLI - Commands - Generate - Get Wrangler Toml Path.
72
+ *
73
+ * @since 2.3.0
74
+ */
75
+ export type Cli_Commands_Generate_GetWranglerTomlPath_ConfigPath = string;
74
76
 
75
- export type Cli_Commands_Generate_GenerateWranglerToml_ContextsJson = string;
77
+ export type Cli_Commands_Generate_GetWranglerTomlPath_Returns = string;
@@ -23,3 +23,5 @@ export type Cli_Commands_Settings_UpdateSettings_Updates = Partial<Lib_Schema_Se
23
23
  export type Cli_Commands_Settings_UpdateSettings_Returns = void;
24
24
 
25
25
  export type Cli_Commands_Settings_UpdateSettings_Config = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
26
+
27
+ export type Cli_Commands_Settings_UpdateSettings_UpdatedConfig = { [Key in keyof Lib_Schema_ConfigSchema]: Lib_Schema_ConfigSchema[Key] };
@@ -49,6 +49,8 @@ export type Cli_Menu_Interactive_AddContextFlow_IdResponse = prompts.Answers<str
49
49
 
50
50
  export type Cli_Menu_Interactive_AddContextFlow_IdValidateValue = string;
51
51
 
52
+ export type Cli_Menu_Interactive_AddContextFlow_Trimmed = string;
53
+
52
54
  export type Cli_Menu_Interactive_AddContextFlow_RawId = string | undefined;
53
55
 
54
56
  export type Cli_Menu_Interactive_AddContextFlow_InterpreterChoices = Cli_Menu_Interactive_AddContextFlow_Choice[];
@@ -101,12 +103,18 @@ export type Cli_Menu_Interactive_AddContextFlow_ResolvedErrorTopic = string | un
101
103
 
102
104
  export type Cli_Menu_Interactive_AddContextFlow_TopicString = string;
103
105
 
104
- export type Cli_Menu_Interactive_AddContextFlow_TypedInterpreter = 'plain-text' | 'ntfy-json' | 'seerr' | 'synology' | 'statuspage' | 'pfsense' | 'unifi';
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';
105
107
 
106
108
  export type Cli_Menu_Interactive_AddContextFlow_TypedMode = 'send-once' | 'send-all';
107
109
 
108
110
  export type Cli_Menu_Interactive_AddContextFlow_TypedErrorEvents = Array<Lib_Schema_ContextConfigErrorEvent> | undefined;
109
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
+
110
118
  export type Cli_Menu_Interactive_AddContextFlow_AutoToken = string;
111
119
 
112
120
  export type Cli_Menu_Interactive_AddContextFlow_TokenResponse = prompts.Answers<string>;
@@ -115,8 +123,6 @@ export type Cli_Menu_Interactive_AddContextFlow_RawToken = string | undefined;
115
123
 
116
124
  export type Cli_Menu_Interactive_AddContextFlow_TokenTrimmed = string;
117
125
 
118
- export type Cli_Menu_Interactive_AddContextFlow_ResolvedToken = string | undefined;
119
-
120
126
  export type Cli_Menu_Interactive_AddContextFlow_AllowedFromResponse = prompts.Answers<string>;
121
127
 
122
128
  export type Cli_Menu_Interactive_AddContextFlow_RawAllowedFrom = string | undefined;
@@ -165,6 +171,12 @@ export type Cli_Menu_Interactive_ContextMenu_KeepId = boolean | undefined;
165
171
 
166
172
  export type Cli_Menu_Interactive_ContextMenu_Id = string | undefined;
167
173
 
174
+ export type Cli_Menu_Interactive_ContextMenu_IdResponse = prompts.Answers<string>;
175
+
176
+ export type Cli_Menu_Interactive_ContextMenu_RawId = string | undefined;
177
+
178
+ export type Cli_Menu_Interactive_ContextMenu_IdTrimmed = string;
179
+
168
180
  export type Cli_Menu_Interactive_ContextMenu_ChoiceTitle = string;
169
181
 
170
182
  export type Cli_Menu_Interactive_ContextMenu_ChoiceValue = string;
@@ -244,6 +256,10 @@ export type Cli_Menu_Interactive_ContextMenu_ErrorTopicTrimmed = string;
244
256
 
245
257
  export type Cli_Menu_Interactive_ContextMenu_ResolvedErrorTopic = string | undefined;
246
258
 
259
+ export type Cli_Menu_Interactive_ContextMenu_UseSession = boolean | undefined;
260
+
261
+ export type Cli_Menu_Interactive_ContextMenu_UseSessionResponse = prompts.Answers<string>;
262
+
247
263
  export type Cli_Menu_Interactive_ContextMenu_KeepTokenResponse = prompts.Answers<string>;
248
264
 
249
265
  export type Cli_Menu_Interactive_ContextMenu_KeepToken = boolean | undefined;
@@ -59,3 +59,10 @@ export type Lib_PackageRuntime_GetWorkerEntryPath_Extension = string;
59
59
  export type Lib_PackageRuntime_GetWorkerEntryPath_WorkerFileName = string;
60
60
 
61
61
  export type Lib_PackageRuntime_GetWorkerEntryPath_WorkerEntryPath = string;
62
+
63
+ /**
64
+ * Lib - Package Runtime - Get Wrangler CLI Path.
65
+ *
66
+ * @since 2.3.0
67
+ */
68
+ export type Lib_PackageRuntime_GetWranglerCliPath_Returns = string;
@@ -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';
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
  *
@@ -120,9 +129,59 @@ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNa
120
129
  contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateContextNames_Config_Contexts;
121
130
  };
122
131
 
132
+ /**
133
+ * Tests - CLI - Commands - Context - Context Commands - Rejects Duplicate Email IDs.
134
+ *
135
+ * @since 2.3.0
136
+ */
137
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Context_Id = string;
138
+
139
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Context = {
140
+ id: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Context_Id;
141
+ };
142
+
143
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Contexts = Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Context[];
144
+
145
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config = {
146
+ contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIds_Config_Contexts;
147
+ };
148
+
149
+ /**
150
+ * Tests - CLI - Commands - Context - Context Commands - Rejects Duplicate Email IDs On Edit.
151
+ *
152
+ * @since 2.3.0
153
+ */
154
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Context_Id = string;
155
+
156
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Context = {
157
+ id: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Context_Id;
158
+ };
159
+
160
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Contexts = Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Context[];
161
+
162
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config = {
163
+ contexts: Tests_Cli_Commands_Context_ContextCommands_RejectsDuplicateEmailIdsOnEdit_Config_Contexts;
164
+ };
165
+
166
+ /**
167
+ * Tests - CLI - Commands - Context - Context Commands - Rejects Removal Of A Missing Context.
168
+ *
169
+ * @since 2.3.0
170
+ */
171
+ export type Tests_Cli_Commands_Context_ContextCommands_RejectsRemovalOfAMissingContext_Contexts = unknown[];
172
+
123
173
  /**
124
174
  * Tests - CLI - Commands - Context.
125
175
  *
126
176
  * @since 2.0.0
127
177
  */
128
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;
@@ -1,3 +1,5 @@
1
+ import type { Lib_Schema_ConfigSchema } from '../../../lib/schema.d.ts';
2
+
1
3
  /**
2
4
  * Tests - CLI - Commands - Generate.
3
5
  *
@@ -9,7 +11,7 @@ export type Tests_Cli_Commands_Generate_TestConfigTmpDir = string;
9
11
 
10
12
  export type Tests_Cli_Commands_Generate_TestConfigPath = string;
11
13
 
12
- export type Tests_Cli_Commands_Generate_TestOutputPathFragment = string;
14
+ export type Tests_Cli_Commands_Generate_TestOutputDir = string;
13
15
 
14
16
  export type Tests_Cli_Commands_Generate_TestOutputPath = string;
15
17
 
@@ -27,13 +29,6 @@ export type Tests_Cli_Commands_Generate_GenerateCommand_ConfigJson = string;
27
29
  */
28
30
  export type Tests_Cli_Commands_Generate_GenerateCommand_BindsTheSQLiteDeliveryOutboxDurableObject_Toml = string;
29
31
 
30
- /**
31
- * Tests - CLI - Commands - Generate.
32
- *
33
- * @since 2.0.0
34
- */
35
- export type Tests_Cli_Commands_Generate_GenerateCommand_EmbedsConfigAsVars_Toml = string;
36
-
37
32
  /**
38
33
  * Tests - CLI - Commands - Generate.
39
34
  *
@@ -65,14 +60,47 @@ export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSection
65
60
  export type Tests_Cli_Commands_Generate_GenerateCommand_OmitsEmailRoutingSectionWhenNoEmailContextsExist_Toml = string;
66
61
 
67
62
  /**
68
- * Tests - CLI - Commands - Generate - Generate Command - References An Existing Worker Entry.
63
+ * Tests - CLI - Commands - Generate - Generate Command - Points Main At The Bundled Worker Entry.
69
64
  *
70
- * @since 2.1.4
65
+ * @since 2.3.0
71
66
  */
72
- export type Tests_Cli_Commands_Generate_GenerateCommand_ReferencesAnExistingWorkerEntry_Toml = string;
67
+ export type Tests_Cli_Commands_Generate_GenerateCommand_PointsMainAtTheBundledWorkerEntry_Toml = string;
68
+
69
+ /**
70
+ * Tests - CLI - Commands - Generate - Generate Command - Resolves The Worker Import From A Symlinked Config Folder.
71
+ *
72
+ * @since 2.3.0
73
+ */
74
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ResolvesTheWorkerImportFromASymlinkedConfigFolder_RealDir = string;
75
+
76
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ResolvesTheWorkerImportFromASymlinkedConfigFolder_LinkedDir = string;
77
+
78
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ResolvesTheWorkerImportFromASymlinkedConfigFolder_BundleDir = string;
79
+
80
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ResolvesTheWorkerImportFromASymlinkedConfigFolder_EntryLines = string[];
81
+
82
+ export type Tests_Cli_Commands_Generate_GenerateCommand_ResolvesTheWorkerImportFromASymlinkedConfigFolder_ImportPath = string;
83
+
84
+ /**
85
+ * Tests - CLI - Commands - Generate - Generate Command - Writes Next To The Config File By Default.
86
+ *
87
+ * @since 2.3.0
88
+ */
89
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesNextToTheConfigFileByDefault_ConfigPath = string;
90
+
91
+ /**
92
+ * Tests - CLI - Commands - Generate - Generate Command - Writes The Config And An Entry That Imports The Worker.
93
+ *
94
+ * @since 2.3.0
95
+ */
96
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_BundleDir = string;
97
+
98
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_BundledConfig = unknown;
99
+
100
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_ExpectedConfig = Lib_Schema_ConfigSchema & {};
73
101
 
74
- export type Tests_Cli_Commands_Generate_GenerateCommand_ReferencesAnExistingWorkerEntry_OutputDir = string;
102
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_Entry = string;
75
103
 
76
- export type Tests_Cli_Commands_Generate_GenerateCommand_ReferencesAnExistingWorkerEntry_WorkerEntryPath = string;
104
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_WorkerEntryPath = string;
77
105
 
78
- export type Tests_Cli_Commands_Generate_GenerateCommand_ReferencesAnExistingWorkerEntry_WorkerEntryRelativePath = string;
106
+ export type Tests_Cli_Commands_Generate_GenerateCommand_WritesTheConfigAndAnEntryThatImportsTheWorker_ExpectedImport = string;
@@ -81,6 +81,13 @@ export type Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames
81
81
  token: Tests_Cli_Commands_Server_ServerCommands_RejectsDuplicateServerNames_DuplicateToken;
82
82
  };
83
83
 
84
+ /**
85
+ * Tests - CLI - Commands - Server - Server Commands - Rejects Removal Of A Missing Server.
86
+ *
87
+ * @since 2.3.0
88
+ */
89
+ export type Tests_Cli_Commands_Server_ServerCommands_RejectsRemovalOfAMissingServer_Servers = unknown[];
90
+
84
91
  /**
85
92
  * Tests - CLI - Commands - Server - Server Commands - Removes A Server.
86
93
  *
@@ -211,6 +211,31 @@ export type Tests_Cli_Menu_Interactive_InteractiveMenu_CtrlCAtServerEditSelectRe
211
211
 
212
212
  export type Tests_Cli_Menu_Interactive_InteractiveMenu_CtrlCAtServerEditSelectReturnsToServerMenu_Call = Record<string, unknown>;
213
213
 
214
+ /**
215
+ * Tests - CLI - Menu - Interactive - Interactive Menu - Email Context Edit Prompts For A Replacement ID.
216
+ *
217
+ * @since 2.3.0
218
+ */
219
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_Prompts_Default = typeof prompts;
220
+
221
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_Prompts = {
222
+ default: Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_Prompts_Default;
223
+ };
224
+
225
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_PromptsDefaultUnknown = unknown;
226
+
227
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_MockPrompts = ReturnType<typeof vi['fn']>;
228
+
229
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_ContextModuleUnknown = unknown;
230
+
231
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_ContextModule = Record<string, unknown>;
232
+
233
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_ListContexts = ReturnType<typeof vi['fn']>;
234
+
235
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_EditContext = ReturnType<typeof vi['fn']>;
236
+
237
+ export type Tests_Cli_Menu_Interactive_InteractiveMenu_EmailContextEditPromptsForAReplacementId_GenerateId = ReturnType<typeof vi['fn']>;
238
+
214
239
  /**
215
240
  * Tests - CLI - Menu - Interactive - Interactive Menu - Exits On Ctrl C At Config Dir Selection.
216
241
  *
@@ -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
  *
@@ -95,6 +134,25 @@ export type Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator
95
134
  success: Tests_Lib_Schema_ConfigSchema_RejectsContextWithoutTypeDiscriminator_ResultSuccess;
96
135
  };
97
136
 
137
+ /**
138
+ * Tests - Lib - Schema - Config Schema - Rejects HTTP Context IDs That Cannot Be Host Labels.
139
+ *
140
+ * @since 2.3.0
141
+ */
142
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_InvalidIds = string[];
143
+
144
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_InvalidId = string;
145
+
146
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_AssertInvalidId = (invalidId: Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_InvalidId) => void;
147
+
148
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_AssertInvalidId_Invalid = Record<string, unknown>;
149
+
150
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_AssertInvalidId_ResultSuccess = boolean;
151
+
152
+ export type Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_AssertInvalidId_Result = {
153
+ success: Tests_Lib_Schema_ConfigSchema_RejectsHTTPContextIDsThatCannotBeHostLabels_AssertInvalidId_ResultSuccess;
154
+ };
155
+
98
156
  /**
99
157
  * Tests - Lib - Schema - Config Schema - Rejects Invalid Error Events Values.
100
158
  *