ntfy-reverse-proxy 2.3.0 → 2.5.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 (381) hide show
  1. package/README.md +4 -1
  2. package/build/cli/commands/config-io.d.ts.map +1 -0
  3. package/build/cli/commands/config-io.js.map +1 -0
  4. package/build/{src/cli → cli}/commands/context.d.ts +3 -2
  5. package/build/cli/commands/context.d.ts.map +1 -0
  6. package/build/{src/cli → cli}/commands/context.js +4 -1
  7. package/build/cli/commands/context.js.map +1 -0
  8. package/build/cli/commands/deploy.d.ts +5 -0
  9. package/build/cli/commands/deploy.d.ts.map +1 -0
  10. package/build/{src/cli → cli}/commands/deploy.js +63 -244
  11. package/build/cli/commands/deploy.js.map +1 -0
  12. package/build/cli/commands/generate.d.ts.map +1 -0
  13. package/build/cli/commands/generate.js.map +1 -0
  14. package/build/cli/commands/server.d.ts.map +1 -0
  15. package/build/cli/commands/server.js.map +1 -0
  16. package/build/cli/commands/settings.d.ts.map +1 -0
  17. package/build/cli/commands/settings.js.map +1 -0
  18. package/build/cli/commands/validate.d.ts.map +1 -0
  19. package/build/cli/commands/validate.js.map +1 -0
  20. package/build/cli/index.d.ts.map +1 -0
  21. package/build/cli/index.js.map +1 -0
  22. package/build/cli/menu/interactive.d.ts.map +1 -0
  23. package/build/{src/cli → cli}/menu/interactive.js +60 -13
  24. package/build/cli/menu/interactive.js.map +1 -0
  25. package/build/config.sample.json +4 -1
  26. package/build/lib/cloudflare.d.ts +16 -0
  27. package/build/lib/cloudflare.d.ts.map +1 -0
  28. package/build/lib/cloudflare.js +184 -0
  29. package/build/lib/cloudflare.js.map +1 -0
  30. package/build/lib/item.d.ts.map +1 -0
  31. package/build/lib/item.js.map +1 -0
  32. package/build/lib/package-runtime.d.ts.map +1 -0
  33. package/build/lib/package-runtime.js.map +1 -0
  34. package/build/lib/public-dns.d.ts +9 -0
  35. package/build/lib/public-dns.d.ts.map +1 -0
  36. package/build/lib/public-dns.js +67 -0
  37. package/build/lib/public-dns.js.map +1 -0
  38. package/build/{src/lib → lib}/regex.d.ts +2 -1
  39. package/build/lib/regex.d.ts.map +1 -0
  40. package/build/{src/lib → lib}/regex.js +2 -1
  41. package/build/lib/regex.js.map +1 -0
  42. package/build/{src/lib → lib}/schema.d.ts +75 -1
  43. package/build/lib/schema.d.ts.map +1 -0
  44. package/build/{src/lib → lib}/schema.js +61 -2
  45. package/build/lib/schema.js.map +1 -0
  46. package/build/lib/utility.d.ts.map +1 -0
  47. package/build/lib/utility.js.map +1 -0
  48. package/build/{src/types → types}/cli/commands/context.d.ts +7 -0
  49. package/build/types/cli/commands/deploy.d.ts +318 -0
  50. package/build/{src/types → types}/cli/menu/interactive.d.ts +11 -3
  51. package/build/types/lib/cloudflare.d.ts +245 -0
  52. package/build/types/lib/public-dns.d.ts +96 -0
  53. package/build/{src/types → types}/lib/schema.d.ts +145 -1
  54. package/build/types/shared.d.ts +219 -0
  55. package/build/{src/types → types}/tests/cli/commands/context.test.d.ts +18 -0
  56. package/build/types/tests/cli/commands/deploy.test.d.ts +33 -0
  57. package/build/types/tests/lib/cloudflare.test.d.ts +64 -0
  58. package/build/types/tests/lib/public-dns.test.d.ts +68 -0
  59. package/build/{src/types → types}/tests/lib/schema.test.d.ts +39 -0
  60. package/build/types/tests/worker/durable-objects/delivery-outbox.test.d.ts +413 -0
  61. package/build/{src/types → types}/tests/worker/index.test.d.ts +56 -0
  62. package/build/types/tests/worker/interpreters/mailmask.test.d.ts +103 -0
  63. package/build/{src/types → types}/tests/worker/landing/page.test.d.ts +11 -0
  64. package/build/types/tests/worker/ntfy-client.test.d.ts +54 -0
  65. package/build/{src/types → types}/tests/worker/pipeline/deliver.test.d.ts +2 -2
  66. package/build/types/tests/worker/pipeline/drain-fifo.test.d.ts +202 -0
  67. package/build/{src/types → types}/tests/worker/pipeline/format.test.d.ts +10 -37
  68. package/build/{src/types → types}/tests/worker/pipeline/interpret.test.d.ts +2 -0
  69. package/build/{src/types → types}/tests/worker/pipeline/send.test.d.ts +2 -2
  70. package/build/types/tests/worker/pipeline/session.test.d.ts +140 -0
  71. package/build/{src/types → types}/tests/worker/pipeline/split.test.d.ts +1 -1
  72. package/build/types/worker/durable-objects/delivery-outbox.d.ts +778 -0
  73. package/build/{src/types → types}/worker/handlers.d.ts +11 -1
  74. package/build/{src/types → types}/worker/interpreters/app-payload.d.ts +10 -1
  75. package/build/types/worker/interpreters/mailmask.d.ts +91 -0
  76. package/build/types/worker/ntfy-client.d.ts +104 -0
  77. package/build/{src/types → types}/worker/pipeline/deliver.d.ts +23 -4
  78. package/build/{src/types → types}/worker/pipeline/drain-fifo.d.ts +29 -5
  79. package/build/{src/types → types}/worker/pipeline/format.d.ts +2 -16
  80. package/build/{src/types → types}/worker/pipeline/send.d.ts +8 -20
  81. package/build/types/worker/pipeline/session.d.ts +228 -0
  82. package/build/{src/types → types}/worker/pipeline/split.d.ts +5 -12
  83. package/build/worker/durable-objects/delivery-outbox.d.ts +11 -0
  84. package/build/worker/durable-objects/delivery-outbox.d.ts.map +1 -0
  85. package/build/worker/durable-objects/delivery-outbox.js +399 -0
  86. package/build/worker/durable-objects/delivery-outbox.js.map +1 -0
  87. package/build/worker/handlers.d.ts.map +1 -0
  88. package/build/{src/worker → worker}/handlers.js +59 -7
  89. package/build/worker/handlers.js.map +1 -0
  90. package/build/worker/index.d.ts.map +1 -0
  91. package/build/worker/index.js.map +1 -0
  92. package/build/worker/interpreters/app-payload.d.ts.map +1 -0
  93. package/build/{src/worker → worker}/interpreters/app-payload.js +6 -1
  94. package/build/worker/interpreters/app-payload.js.map +1 -0
  95. package/build/worker/interpreters/discord-stonker-bot.d.ts.map +1 -0
  96. package/build/worker/interpreters/discord-stonker-bot.js.map +1 -0
  97. package/build/worker/interpreters/mailmask.d.ts +4 -0
  98. package/build/worker/interpreters/mailmask.d.ts.map +1 -0
  99. package/build/worker/interpreters/mailmask.js +49 -0
  100. package/build/worker/interpreters/mailmask.js.map +1 -0
  101. package/build/worker/interpreters/ntfy-json.d.ts.map +1 -0
  102. package/build/worker/interpreters/ntfy-json.js.map +1 -0
  103. package/build/worker/interpreters/outpost.d.ts.map +1 -0
  104. package/build/worker/interpreters/outpost.js.map +1 -0
  105. package/build/worker/interpreters/pfsense-actions.d.ts.map +1 -0
  106. package/build/worker/interpreters/pfsense-actions.js.map +1 -0
  107. package/build/worker/interpreters/pfsense.d.ts.map +1 -0
  108. package/build/worker/interpreters/pfsense.js.map +1 -0
  109. package/build/worker/interpreters/plain-text.d.ts.map +1 -0
  110. package/build/worker/interpreters/plain-text.js.map +1 -0
  111. package/build/worker/interpreters/seerr.d.ts.map +1 -0
  112. package/build/worker/interpreters/seerr.js.map +1 -0
  113. package/build/worker/interpreters/statuspage.d.ts.map +1 -0
  114. package/build/worker/interpreters/statuspage.js.map +1 -0
  115. package/build/worker/interpreters/synology.d.ts.map +1 -0
  116. package/build/worker/interpreters/synology.js.map +1 -0
  117. package/build/worker/interpreters/transmission-vpn.d.ts.map +1 -0
  118. package/build/worker/interpreters/transmission-vpn.js.map +1 -0
  119. package/build/worker/interpreters/unifi.d.ts.map +1 -0
  120. package/build/worker/interpreters/unifi.js.map +1 -0
  121. package/build/worker/landing/page.d.ts.map +1 -0
  122. package/build/worker/landing/page.js +305 -0
  123. package/build/worker/landing/page.js.map +1 -0
  124. package/build/worker/ntfy-client.d.ts +9 -0
  125. package/build/worker/ntfy-client.d.ts.map +1 -0
  126. package/build/worker/ntfy-client.js +102 -0
  127. package/build/worker/ntfy-client.js.map +1 -0
  128. package/build/worker/pipeline/accumulate.d.ts.map +1 -0
  129. package/build/worker/pipeline/accumulate.js.map +1 -0
  130. package/build/worker/pipeline/authenticate.d.ts.map +1 -0
  131. package/build/worker/pipeline/authenticate.js.map +1 -0
  132. package/build/worker/pipeline/deliver.d.ts.map +1 -0
  133. package/build/{src/worker → worker}/pipeline/deliver.js +4 -1
  134. package/build/worker/pipeline/deliver.js.map +1 -0
  135. package/build/worker/pipeline/drain-fifo.d.ts.map +1 -0
  136. package/build/worker/pipeline/drain-fifo.js +51 -0
  137. package/build/worker/pipeline/drain-fifo.js.map +1 -0
  138. package/build/worker/pipeline/email.d.ts.map +1 -0
  139. package/build/worker/pipeline/email.js.map +1 -0
  140. package/build/worker/pipeline/format.d.ts.map +1 -0
  141. package/build/{src/worker → worker}/pipeline/format.js +8 -26
  142. package/build/worker/pipeline/format.js.map +1 -0
  143. package/build/worker/pipeline/interpret.d.ts.map +1 -0
  144. package/build/{src/worker → worker}/pipeline/interpret.js +2 -0
  145. package/build/worker/pipeline/interpret.js.map +1 -0
  146. package/build/worker/pipeline/parse.d.ts.map +1 -0
  147. package/build/worker/pipeline/parse.js.map +1 -0
  148. package/build/worker/pipeline/receive.d.ts.map +1 -0
  149. package/build/worker/pipeline/receive.js.map +1 -0
  150. package/build/worker/pipeline/respond.d.ts.map +1 -0
  151. package/build/worker/pipeline/respond.js.map +1 -0
  152. package/build/worker/pipeline/route.d.ts.map +1 -0
  153. package/build/worker/pipeline/route.js.map +1 -0
  154. package/build/worker/pipeline/send.d.ts.map +1 -0
  155. package/build/{src/worker → worker}/pipeline/send.js +21 -51
  156. package/build/worker/pipeline/send.js.map +1 -0
  157. package/build/worker/pipeline/session.d.ts +6 -0
  158. package/build/worker/pipeline/session.d.ts.map +1 -0
  159. package/build/worker/pipeline/session.js +192 -0
  160. package/build/worker/pipeline/session.js.map +1 -0
  161. package/build/worker/pipeline/split.d.ts +4 -0
  162. package/build/worker/pipeline/split.d.ts.map +1 -0
  163. package/build/{src/worker → worker}/pipeline/split.js +9 -16
  164. package/build/worker/pipeline/split.js.map +1 -0
  165. package/package.json +11 -9
  166. package/build/src/cli/commands/config-io.d.ts.map +0 -1
  167. package/build/src/cli/commands/config-io.js.map +0 -1
  168. package/build/src/cli/commands/context.d.ts.map +0 -1
  169. package/build/src/cli/commands/context.js.map +0 -1
  170. package/build/src/cli/commands/deploy.d.ts +0 -4
  171. package/build/src/cli/commands/deploy.d.ts.map +0 -1
  172. package/build/src/cli/commands/deploy.js.map +0 -1
  173. package/build/src/cli/commands/generate.d.ts.map +0 -1
  174. package/build/src/cli/commands/generate.js.map +0 -1
  175. package/build/src/cli/commands/server.d.ts.map +0 -1
  176. package/build/src/cli/commands/server.js.map +0 -1
  177. package/build/src/cli/commands/settings.d.ts.map +0 -1
  178. package/build/src/cli/commands/settings.js.map +0 -1
  179. package/build/src/cli/commands/validate.d.ts.map +0 -1
  180. package/build/src/cli/commands/validate.js.map +0 -1
  181. package/build/src/cli/index.d.ts.map +0 -1
  182. package/build/src/cli/index.js.map +0 -1
  183. package/build/src/cli/menu/interactive.d.ts.map +0 -1
  184. package/build/src/cli/menu/interactive.js.map +0 -1
  185. package/build/src/lib/item.d.ts.map +0 -1
  186. package/build/src/lib/item.js.map +0 -1
  187. package/build/src/lib/package-runtime.d.ts.map +0 -1
  188. package/build/src/lib/package-runtime.js.map +0 -1
  189. package/build/src/lib/regex.d.ts.map +0 -1
  190. package/build/src/lib/regex.js.map +0 -1
  191. package/build/src/lib/schema.d.ts.map +0 -1
  192. package/build/src/lib/schema.js.map +0 -1
  193. package/build/src/lib/utility.d.ts.map +0 -1
  194. package/build/src/lib/utility.js.map +0 -1
  195. package/build/src/types/cli/commands/deploy.d.ts +0 -659
  196. package/build/src/types/shared.d.ts +0 -85
  197. package/build/src/types/tests/worker/pipeline/drain-fifo.test.d.ts +0 -58
  198. package/build/src/types/worker/durable-objects/delivery-outbox.d.ts +0 -398
  199. package/build/src/worker/durable-objects/delivery-outbox.d.ts +0 -10
  200. package/build/src/worker/durable-objects/delivery-outbox.d.ts.map +0 -1
  201. package/build/src/worker/durable-objects/delivery-outbox.js +0 -204
  202. package/build/src/worker/durable-objects/delivery-outbox.js.map +0 -1
  203. package/build/src/worker/handlers.d.ts.map +0 -1
  204. package/build/src/worker/handlers.js.map +0 -1
  205. package/build/src/worker/index.d.ts.map +0 -1
  206. package/build/src/worker/index.js.map +0 -1
  207. package/build/src/worker/interpreters/app-payload.d.ts.map +0 -1
  208. package/build/src/worker/interpreters/app-payload.js.map +0 -1
  209. package/build/src/worker/interpreters/discord-stonker-bot.d.ts.map +0 -1
  210. package/build/src/worker/interpreters/discord-stonker-bot.js.map +0 -1
  211. package/build/src/worker/interpreters/ntfy-json.d.ts.map +0 -1
  212. package/build/src/worker/interpreters/ntfy-json.js.map +0 -1
  213. package/build/src/worker/interpreters/outpost.d.ts.map +0 -1
  214. package/build/src/worker/interpreters/outpost.js.map +0 -1
  215. package/build/src/worker/interpreters/pfsense-actions.d.ts.map +0 -1
  216. package/build/src/worker/interpreters/pfsense-actions.js.map +0 -1
  217. package/build/src/worker/interpreters/pfsense.d.ts.map +0 -1
  218. package/build/src/worker/interpreters/pfsense.js.map +0 -1
  219. package/build/src/worker/interpreters/plain-text.d.ts.map +0 -1
  220. package/build/src/worker/interpreters/plain-text.js.map +0 -1
  221. package/build/src/worker/interpreters/seerr.d.ts.map +0 -1
  222. package/build/src/worker/interpreters/seerr.js.map +0 -1
  223. package/build/src/worker/interpreters/statuspage.d.ts.map +0 -1
  224. package/build/src/worker/interpreters/statuspage.js.map +0 -1
  225. package/build/src/worker/interpreters/synology.d.ts.map +0 -1
  226. package/build/src/worker/interpreters/synology.js.map +0 -1
  227. package/build/src/worker/interpreters/transmission-vpn.d.ts.map +0 -1
  228. package/build/src/worker/interpreters/transmission-vpn.js.map +0 -1
  229. package/build/src/worker/interpreters/unifi.d.ts.map +0 -1
  230. package/build/src/worker/interpreters/unifi.js.map +0 -1
  231. package/build/src/worker/landing/page.d.ts.map +0 -1
  232. package/build/src/worker/landing/page.js +0 -261
  233. package/build/src/worker/landing/page.js.map +0 -1
  234. package/build/src/worker/pipeline/accumulate.d.ts.map +0 -1
  235. package/build/src/worker/pipeline/accumulate.js.map +0 -1
  236. package/build/src/worker/pipeline/authenticate.d.ts.map +0 -1
  237. package/build/src/worker/pipeline/authenticate.js.map +0 -1
  238. package/build/src/worker/pipeline/deliver.d.ts.map +0 -1
  239. package/build/src/worker/pipeline/deliver.js.map +0 -1
  240. package/build/src/worker/pipeline/drain-fifo.d.ts.map +0 -1
  241. package/build/src/worker/pipeline/drain-fifo.js +0 -25
  242. package/build/src/worker/pipeline/drain-fifo.js.map +0 -1
  243. package/build/src/worker/pipeline/email.d.ts.map +0 -1
  244. package/build/src/worker/pipeline/email.js.map +0 -1
  245. package/build/src/worker/pipeline/format.d.ts.map +0 -1
  246. package/build/src/worker/pipeline/format.js.map +0 -1
  247. package/build/src/worker/pipeline/interpret.d.ts.map +0 -1
  248. package/build/src/worker/pipeline/interpret.js.map +0 -1
  249. package/build/src/worker/pipeline/parse.d.ts.map +0 -1
  250. package/build/src/worker/pipeline/parse.js.map +0 -1
  251. package/build/src/worker/pipeline/receive.d.ts.map +0 -1
  252. package/build/src/worker/pipeline/receive.js.map +0 -1
  253. package/build/src/worker/pipeline/respond.d.ts.map +0 -1
  254. package/build/src/worker/pipeline/respond.js.map +0 -1
  255. package/build/src/worker/pipeline/route.d.ts.map +0 -1
  256. package/build/src/worker/pipeline/route.js.map +0 -1
  257. package/build/src/worker/pipeline/send.d.ts.map +0 -1
  258. package/build/src/worker/pipeline/send.js.map +0 -1
  259. package/build/src/worker/pipeline/split.d.ts +0 -4
  260. package/build/src/worker/pipeline/split.d.ts.map +0 -1
  261. package/build/src/worker/pipeline/split.js.map +0 -1
  262. /package/build/{src/cli → cli}/commands/config-io.d.ts +0 -0
  263. /package/build/{src/cli → cli}/commands/config-io.js +0 -0
  264. /package/build/{src/cli → cli}/commands/generate.d.ts +0 -0
  265. /package/build/{src/cli → cli}/commands/generate.js +0 -0
  266. /package/build/{src/cli → cli}/commands/server.d.ts +0 -0
  267. /package/build/{src/cli → cli}/commands/server.js +0 -0
  268. /package/build/{src/cli → cli}/commands/settings.d.ts +0 -0
  269. /package/build/{src/cli → cli}/commands/settings.js +0 -0
  270. /package/build/{src/cli → cli}/commands/validate.d.ts +0 -0
  271. /package/build/{src/cli → cli}/commands/validate.js +0 -0
  272. /package/build/{src/cli → cli}/index.d.ts +0 -0
  273. /package/build/{src/cli → cli}/index.js +0 -0
  274. /package/build/{src/cli → cli}/menu/interactive.d.ts +0 -0
  275. /package/build/{src/lib → lib}/item.d.ts +0 -0
  276. /package/build/{src/lib → lib}/item.js +0 -0
  277. /package/build/{src/lib → lib}/package-runtime.d.ts +0 -0
  278. /package/build/{src/lib → lib}/package-runtime.js +0 -0
  279. /package/build/{src/lib → lib}/utility.d.ts +0 -0
  280. /package/build/{src/lib → lib}/utility.js +0 -0
  281. /package/build/{src/types → types}/cli/commands/config-io.d.ts +0 -0
  282. /package/build/{src/types → types}/cli/commands/generate.d.ts +0 -0
  283. /package/build/{src/types → types}/cli/commands/server.d.ts +0 -0
  284. /package/build/{src/types → types}/cli/commands/settings.d.ts +0 -0
  285. /package/build/{src/types → types}/cli/commands/validate.d.ts +0 -0
  286. /package/build/{src/types → types}/cli/index.d.ts +0 -0
  287. /package/build/{src/types → types}/fetch-response.d.ts +0 -0
  288. /package/build/{src/types → types}/lib/package-runtime.d.ts +0 -0
  289. /package/build/{src/types → types}/lib/utility.d.ts +0 -0
  290. /package/build/{src/types → types}/tests/cli/commands/generate.test.d.ts +0 -0
  291. /package/build/{src/types → types}/tests/cli/commands/server.test.d.ts +0 -0
  292. /package/build/{src/types → types}/tests/cli/commands/settings.test.d.ts +0 -0
  293. /package/build/{src/types → types}/tests/cli/commands/validate.test.d.ts +0 -0
  294. /package/build/{src/types → types}/tests/cli/menu/interactive-integration.test.d.ts +0 -0
  295. /package/build/{src/types → types}/tests/cli/menu/interactive.test.d.ts +0 -0
  296. /package/build/{src/types → types}/tests/worker/interpreters/app-payload.test.d.ts +0 -0
  297. /package/build/{src/types → types}/tests/worker/interpreters/discord-stonker-bot.test.d.ts +0 -0
  298. /package/build/{src/types → types}/tests/worker/interpreters/ntfy-json.test.d.ts +0 -0
  299. /package/build/{src/types → types}/tests/worker/interpreters/outpost.test.d.ts +0 -0
  300. /package/build/{src/types → types}/tests/worker/interpreters/pfsense-actions.test.d.ts +0 -0
  301. /package/build/{src/types → types}/tests/worker/interpreters/pfsense.test.d.ts +0 -0
  302. /package/build/{src/types → types}/tests/worker/interpreters/plain-text.test.d.ts +0 -0
  303. /package/build/{src/types → types}/tests/worker/interpreters/seerr.test.d.ts +0 -0
  304. /package/build/{src/types → types}/tests/worker/interpreters/statuspage.test.d.ts +0 -0
  305. /package/build/{src/types → types}/tests/worker/interpreters/synology.test.d.ts +0 -0
  306. /package/build/{src/types → types}/tests/worker/interpreters/transmission-vpn.test.d.ts +0 -0
  307. /package/build/{src/types → types}/tests/worker/interpreters/unifi.test.d.ts +0 -0
  308. /package/build/{src/types → types}/tests/worker/pipeline/accumulate.test.d.ts +0 -0
  309. /package/build/{src/types → types}/tests/worker/pipeline/authenticate.test.d.ts +0 -0
  310. /package/build/{src/types → types}/tests/worker/pipeline/email.test.d.ts +0 -0
  311. /package/build/{src/types → types}/tests/worker/pipeline/parse.test.d.ts +0 -0
  312. /package/build/{src/types → types}/tests/worker/pipeline/receive.test.d.ts +0 -0
  313. /package/build/{src/types → types}/tests/worker/pipeline/respond.test.d.ts +0 -0
  314. /package/build/{src/types → types}/tests/worker/pipeline/route.test.d.ts +0 -0
  315. /package/build/{src/types → types}/worker/index.d.ts +0 -0
  316. /package/build/{src/types → types}/worker/interpreters/discord-stonker-bot.d.ts +0 -0
  317. /package/build/{src/types → types}/worker/interpreters/ntfy-json.d.ts +0 -0
  318. /package/build/{src/types → types}/worker/interpreters/outpost.d.ts +0 -0
  319. /package/build/{src/types → types}/worker/interpreters/pfsense-actions.d.ts +0 -0
  320. /package/build/{src/types → types}/worker/interpreters/pfsense.d.ts +0 -0
  321. /package/build/{src/types → types}/worker/interpreters/plain-text.d.ts +0 -0
  322. /package/build/{src/types → types}/worker/interpreters/seerr.d.ts +0 -0
  323. /package/build/{src/types → types}/worker/interpreters/statuspage.d.ts +0 -0
  324. /package/build/{src/types → types}/worker/interpreters/synology.d.ts +0 -0
  325. /package/build/{src/types → types}/worker/interpreters/transmission-vpn.d.ts +0 -0
  326. /package/build/{src/types → types}/worker/interpreters/unifi.d.ts +0 -0
  327. /package/build/{src/types → types}/worker/landing/page.d.ts +0 -0
  328. /package/build/{src/types → types}/worker/pipeline/accumulate.d.ts +0 -0
  329. /package/build/{src/types → types}/worker/pipeline/authenticate.d.ts +0 -0
  330. /package/build/{src/types → types}/worker/pipeline/email.d.ts +0 -0
  331. /package/build/{src/types → types}/worker/pipeline/interpret.d.ts +0 -0
  332. /package/build/{src/types → types}/worker/pipeline/parse.d.ts +0 -0
  333. /package/build/{src/types → types}/worker/pipeline/receive.d.ts +0 -0
  334. /package/build/{src/types → types}/worker/pipeline/respond.d.ts +0 -0
  335. /package/build/{src/types → types}/worker/pipeline/route.d.ts +0 -0
  336. /package/build/{src/worker → worker}/handlers.d.ts +0 -0
  337. /package/build/{src/worker → worker}/index.d.ts +0 -0
  338. /package/build/{src/worker → worker}/index.js +0 -0
  339. /package/build/{src/worker → worker}/interpreters/app-payload.d.ts +0 -0
  340. /package/build/{src/worker → worker}/interpreters/discord-stonker-bot.d.ts +0 -0
  341. /package/build/{src/worker → worker}/interpreters/discord-stonker-bot.js +0 -0
  342. /package/build/{src/worker → worker}/interpreters/ntfy-json.d.ts +0 -0
  343. /package/build/{src/worker → worker}/interpreters/ntfy-json.js +0 -0
  344. /package/build/{src/worker → worker}/interpreters/outpost.d.ts +0 -0
  345. /package/build/{src/worker → worker}/interpreters/outpost.js +0 -0
  346. /package/build/{src/worker → worker}/interpreters/pfsense-actions.d.ts +0 -0
  347. /package/build/{src/worker → worker}/interpreters/pfsense-actions.js +0 -0
  348. /package/build/{src/worker → worker}/interpreters/pfsense.d.ts +0 -0
  349. /package/build/{src/worker → worker}/interpreters/pfsense.js +0 -0
  350. /package/build/{src/worker → worker}/interpreters/plain-text.d.ts +0 -0
  351. /package/build/{src/worker → worker}/interpreters/plain-text.js +0 -0
  352. /package/build/{src/worker → worker}/interpreters/seerr.d.ts +0 -0
  353. /package/build/{src/worker → worker}/interpreters/seerr.js +0 -0
  354. /package/build/{src/worker → worker}/interpreters/statuspage.d.ts +0 -0
  355. /package/build/{src/worker → worker}/interpreters/statuspage.js +0 -0
  356. /package/build/{src/worker → worker}/interpreters/synology.d.ts +0 -0
  357. /package/build/{src/worker → worker}/interpreters/synology.js +0 -0
  358. /package/build/{src/worker → worker}/interpreters/transmission-vpn.d.ts +0 -0
  359. /package/build/{src/worker → worker}/interpreters/transmission-vpn.js +0 -0
  360. /package/build/{src/worker → worker}/interpreters/unifi.d.ts +0 -0
  361. /package/build/{src/worker → worker}/interpreters/unifi.js +0 -0
  362. /package/build/{src/worker → worker}/landing/page.d.ts +0 -0
  363. /package/build/{src/worker → worker}/pipeline/accumulate.d.ts +0 -0
  364. /package/build/{src/worker → worker}/pipeline/accumulate.js +0 -0
  365. /package/build/{src/worker → worker}/pipeline/authenticate.d.ts +0 -0
  366. /package/build/{src/worker → worker}/pipeline/authenticate.js +0 -0
  367. /package/build/{src/worker → worker}/pipeline/deliver.d.ts +0 -0
  368. /package/build/{src/worker → worker}/pipeline/drain-fifo.d.ts +0 -0
  369. /package/build/{src/worker → worker}/pipeline/email.d.ts +0 -0
  370. /package/build/{src/worker → worker}/pipeline/email.js +0 -0
  371. /package/build/{src/worker → worker}/pipeline/format.d.ts +0 -0
  372. /package/build/{src/worker → worker}/pipeline/interpret.d.ts +0 -0
  373. /package/build/{src/worker → worker}/pipeline/parse.d.ts +0 -0
  374. /package/build/{src/worker → worker}/pipeline/parse.js +0 -0
  375. /package/build/{src/worker → worker}/pipeline/receive.d.ts +0 -0
  376. /package/build/{src/worker → worker}/pipeline/receive.js +0 -0
  377. /package/build/{src/worker → worker}/pipeline/respond.d.ts +0 -0
  378. /package/build/{src/worker → worker}/pipeline/respond.js +0 -0
  379. /package/build/{src/worker → worker}/pipeline/route.d.ts +0 -0
  380. /package/build/{src/worker → worker}/pipeline/route.js +0 -0
  381. /package/build/{src/worker → worker}/pipeline/send.d.ts +0 -0
@@ -4,6 +4,11 @@ declare const serverSchema: z.ZodObject<{
4
4
  server: z.ZodString;
5
5
  token: z.ZodString;
6
6
  }, z.core.$strip>;
7
+ declare const sessionSchema: z.ZodObject<{
8
+ secret: z.ZodString;
9
+ ttl_seconds: z.ZodOptional<z.ZodNumber>;
10
+ max_per_hour: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strict>;
7
12
  declare const httpContextSchema: z.ZodObject<{
8
13
  type: z.ZodLiteral<"http">;
9
14
  name: z.ZodString;
@@ -20,6 +25,7 @@ declare const httpContextSchema: z.ZodObject<{
20
25
  "pfsense-actions": "pfsense-actions";
21
26
  "discord-stonker-bot": "discord-stonker-bot";
22
27
  outpost: "outpost";
28
+ mailmask: "mailmask";
23
29
  }>;
24
30
  topic: z.ZodString;
25
31
  error_topic: z.ZodOptional<z.ZodString>;
@@ -35,6 +41,11 @@ declare const httpContextSchema: z.ZodObject<{
35
41
  primary_server: z.ZodString;
36
42
  servers: z.ZodArray<z.ZodString>;
37
43
  token: z.ZodOptional<z.ZodString>;
44
+ session: z.ZodOptional<z.ZodObject<{
45
+ secret: z.ZodString;
46
+ ttl_seconds: z.ZodOptional<z.ZodNumber>;
47
+ max_per_hour: z.ZodOptional<z.ZodNumber>;
48
+ }, z.core.$strict>>;
38
49
  }, z.core.$strict>;
39
50
  declare const emailContextSchema: z.ZodObject<{
40
51
  type: z.ZodLiteral<"email">;
@@ -52,6 +63,7 @@ declare const emailContextSchema: z.ZodObject<{
52
63
  "pfsense-actions": "pfsense-actions";
53
64
  "discord-stonker-bot": "discord-stonker-bot";
54
65
  outpost: "outpost";
66
+ mailmask: "mailmask";
55
67
  }>;
56
68
  topic: z.ZodString;
57
69
  error_topic: z.ZodOptional<z.ZodString>;
@@ -84,6 +96,7 @@ declare const contextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
96
  "pfsense-actions": "pfsense-actions";
85
97
  "discord-stonker-bot": "discord-stonker-bot";
86
98
  outpost: "outpost";
99
+ mailmask: "mailmask";
87
100
  }>;
88
101
  topic: z.ZodString;
89
102
  error_topic: z.ZodOptional<z.ZodString>;
@@ -99,6 +112,11 @@ declare const contextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
112
  primary_server: z.ZodString;
100
113
  servers: z.ZodArray<z.ZodString>;
101
114
  token: z.ZodOptional<z.ZodString>;
115
+ session: z.ZodOptional<z.ZodObject<{
116
+ secret: z.ZodString;
117
+ ttl_seconds: z.ZodOptional<z.ZodNumber>;
118
+ max_per_hour: z.ZodOptional<z.ZodNumber>;
119
+ }, z.core.$strict>>;
102
120
  }, z.core.$strict>, z.ZodObject<{
103
121
  type: z.ZodLiteral<"email">;
104
122
  name: z.ZodString;
@@ -115,6 +133,7 @@ declare const contextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
133
  "pfsense-actions": "pfsense-actions";
116
134
  "discord-stonker-bot": "discord-stonker-bot";
117
135
  outpost: "outpost";
136
+ mailmask: "mailmask";
118
137
  }>;
119
138
  topic: z.ZodString;
120
139
  error_topic: z.ZodOptional<z.ZodString>;
@@ -158,6 +177,7 @@ declare const configSchema: z.ZodObject<{
158
177
  "pfsense-actions": "pfsense-actions";
159
178
  "discord-stonker-bot": "discord-stonker-bot";
160
179
  outpost: "outpost";
180
+ mailmask: "mailmask";
161
181
  }>;
162
182
  topic: z.ZodString;
163
183
  error_topic: z.ZodOptional<z.ZodString>;
@@ -173,6 +193,11 @@ declare const configSchema: z.ZodObject<{
173
193
  primary_server: z.ZodString;
174
194
  servers: z.ZodArray<z.ZodString>;
175
195
  token: z.ZodOptional<z.ZodString>;
196
+ session: z.ZodOptional<z.ZodObject<{
197
+ secret: z.ZodString;
198
+ ttl_seconds: z.ZodOptional<z.ZodNumber>;
199
+ max_per_hour: z.ZodOptional<z.ZodNumber>;
200
+ }, z.core.$strict>>;
176
201
  }, z.core.$strict>, z.ZodObject<{
177
202
  type: z.ZodLiteral<"email">;
178
203
  name: z.ZodString;
@@ -189,6 +214,7 @@ declare const configSchema: z.ZodObject<{
189
214
  "pfsense-actions": "pfsense-actions";
190
215
  "discord-stonker-bot": "discord-stonker-bot";
191
216
  outpost: "outpost";
217
+ mailmask: "mailmask";
192
218
  }>;
193
219
  topic: z.ZodString;
194
220
  error_topic: z.ZodOptional<z.ZodString>;
@@ -211,5 +237,53 @@ declare const configSchema: z.ZodObject<{
211
237
  show_response_output: z.ZodBoolean;
212
238
  }, z.core.$strip>;
213
239
  }, z.core.$strip>;
214
- export { configSchema, contextSchema, emailContextSchema, httpContextSchema, serverSchema, settingsSchema, };
240
+ declare const cloudflareEnvelopeSchema: z.ZodObject<{
241
+ success: z.ZodBoolean;
242
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
243
+ code: z.ZodNumber;
244
+ message: z.ZodString;
245
+ }, z.core.$strip>>>>;
246
+ result: z.ZodUnknown;
247
+ result_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
248
+ cursor: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>>>;
250
+ }, z.core.$strip>;
251
+ declare const cloudflareZonesSchema: z.ZodArray<z.ZodObject<{
252
+ id: z.ZodString;
253
+ name: z.ZodString;
254
+ account: z.ZodObject<{
255
+ id: z.ZodString;
256
+ }, z.core.$strip>;
257
+ }, z.core.$strip>>;
258
+ declare const cloudflareKvNamespacesSchema: z.ZodArray<z.ZodObject<{
259
+ id: z.ZodString;
260
+ title: z.ZodString;
261
+ }, z.core.$strip>>;
262
+ declare const cloudflareKvNamespaceSchema: z.ZodObject<{
263
+ id: z.ZodString;
264
+ }, z.core.$strip>;
265
+ declare const cloudflareEmailRoutingRulesSchema: z.ZodArray<z.ZodObject<{
266
+ tag: z.ZodString;
267
+ matchers: z.ZodArray<z.ZodObject<{
268
+ type: z.ZodString;
269
+ field: z.ZodOptional<z.ZodString>;
270
+ value: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>>;
272
+ actions: z.ZodArray<z.ZodObject<{
273
+ type: z.ZodString;
274
+ value: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>>;
277
+ declare const cloudflareWorkerDomainsSchema: z.ZodArray<z.ZodObject<{
278
+ hostname: z.ZodString;
279
+ service: z.ZodString;
280
+ }, z.core.$strip>>;
281
+ declare const dnsOverHttpsAnswerSchema: z.ZodObject<{
282
+ Status: z.ZodNumber;
283
+ Answer: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ type: z.ZodNumber;
285
+ data: z.ZodString;
286
+ }, z.core.$strip>>>;
287
+ }, z.core.$strip>;
288
+ export { cloudflareEmailRoutingRulesSchema, cloudflareEnvelopeSchema, cloudflareKvNamespaceSchema, cloudflareKvNamespacesSchema, cloudflareWorkerDomainsSchema, cloudflareZonesSchema, configSchema, contextSchema, dnsOverHttpsAnswerSchema, emailContextSchema, httpContextSchema, serverSchema, sessionSchema, settingsSchema, };
215
289
  //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
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;AAUH,QAAA,MAAM,wBAAwB;;;;;;;;;;iBAU5B,CAAC;AAUH,QAAA,MAAM,qBAAqB;;;;;;kBAMxB,CAAC;AAUJ,QAAA,MAAM,4BAA4B;;;kBAG/B,CAAC;AAUJ,QAAA,MAAM,2BAA2B;;iBAE/B,CAAC;AAUH,QAAA,MAAM,iCAAiC;;;;;;;;;;;kBAWpC,CAAC;AAUJ,QAAA,MAAM,6BAA6B;;;kBAGhC,CAAC;AAUJ,QAAA,MAAM,wBAAwB;;;;;;iBAM5B,CAAC;AAEH,OAAO,EACL,iCAAiC,EACjC,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,cAAc,GACf,CAAC"}
@@ -5,6 +5,11 @@ const serverSchema = z.object({
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),
@@ -21,6 +26,7 @@ const httpContextSchema = z.object({
21
26
  'pfsense-actions',
22
27
  'discord-stonker-bot',
23
28
  'outpost',
29
+ 'mailmask',
24
30
  ]),
25
31
  topic: z.string().min(1),
26
32
  error_topic: z.string().min(1).optional(),
@@ -36,7 +42,11 @@ const httpContextSchema = z.object({
36
42
  primary_server: z.string().min(1),
37
43
  servers: z.array(z.string().min(1)).min(1),
38
44
  token: z.string().min(1).optional(),
39
- }).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
+ });
40
50
  const emailContextSchema = z.object({
41
51
  type: z.literal('email'),
42
52
  name: z.string().min(1),
@@ -53,6 +63,7 @@ const emailContextSchema = z.object({
53
63
  'pfsense-actions',
54
64
  'discord-stonker-bot',
55
65
  'outpost',
66
+ 'mailmask',
56
67
  ]),
57
68
  topic: z.string().min(1),
58
69
  error_topic: z.string().min(1).optional(),
@@ -83,5 +94,53 @@ const configSchema = z.object({
83
94
  contexts: z.array(contextSchema),
84
95
  settings: settingsSchema,
85
96
  });
86
- export { configSchema, contextSchema, emailContextSchema, httpContextSchema, serverSchema, settingsSchema, };
97
+ const cloudflareEnvelopeSchema = z.object({
98
+ success: z.boolean(),
99
+ errors: z.array(z.object({
100
+ code: z.number(),
101
+ message: z.string(),
102
+ })).nullish(),
103
+ result: z.unknown(),
104
+ result_info: z.object({
105
+ cursor: z.string().optional(),
106
+ }).nullish(),
107
+ });
108
+ const cloudflareZonesSchema = z.array(z.object({
109
+ id: z.string(),
110
+ name: z.string(),
111
+ account: z.object({
112
+ id: z.string(),
113
+ }),
114
+ }));
115
+ const cloudflareKvNamespacesSchema = z.array(z.object({
116
+ id: z.string(),
117
+ title: z.string(),
118
+ }));
119
+ const cloudflareKvNamespaceSchema = z.object({
120
+ id: z.string(),
121
+ });
122
+ const cloudflareEmailRoutingRulesSchema = z.array(z.object({
123
+ tag: z.string(),
124
+ matchers: z.array(z.object({
125
+ type: z.string(),
126
+ field: z.string().optional(),
127
+ value: z.string().optional(),
128
+ })),
129
+ actions: z.array(z.object({
130
+ type: z.string(),
131
+ value: z.array(z.string()).optional(),
132
+ })),
133
+ }));
134
+ const cloudflareWorkerDomainsSchema = z.array(z.object({
135
+ hostname: z.string(),
136
+ service: z.string(),
137
+ }));
138
+ const dnsOverHttpsAnswerSchema = z.object({
139
+ Status: z.number(),
140
+ Answer: z.array(z.object({
141
+ type: z.number(),
142
+ data: z.string(),
143
+ })).optional(),
144
+ });
145
+ export { cloudflareEmailRoutingRulesSchema, cloudflareEnvelopeSchema, cloudflareKvNamespaceSchema, cloudflareKvNamespacesSchema, cloudflareWorkerDomainsSchema, cloudflareZonesSchema, configSchema, contextSchema, dnsOverHttpsAnswerSchema, emailContextSchema, httpContextSchema, serverSchema, sessionSchema, settingsSchema, };
87
146
  //# sourceMappingURL=schema.js.map
@@ -0,0 +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,EACL,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAUpB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;IACpH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;CACpC,CAAC,CAAC;AAUH,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC1D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,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0 +1 @@
1
+ {"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/lib/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,GACf,MAAM,YAAY,CAAC;AAoBpB,SAAS,SAAS,CAAC,IAAgC;IACjD,IAAI,IAAI,GAA+B,IAAI,CAAC;IAG5C,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAGzD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAChE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAChE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,sBAAsB,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAClE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,sBAAsB,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACnE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,sBAAsB,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAClE,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,qBAAqB,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAEjE,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;AACrB,CAAC;AAED,OAAO,EACL,SAAS,GACV,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
  *
@@ -0,0 +1,318 @@
1
+ import type { SpawnSyncReturns } from 'node:child_process';
2
+
3
+ import type {
4
+ Lib_Schema_ContextConfig,
5
+ Lib_Schema_ServerConfig,
6
+ Lib_Schema_SettingsConfigBaseDomain,
7
+ Lib_Schema_SettingsConfigShowResponseOutput,
8
+ Lib_Schema_SettingsConfigWorkerName,
9
+ } from '../../lib/schema.d.ts';
10
+ import type {
11
+ Shared_CloudflareEmailRoutingRule,
12
+ Shared_CloudflareKvNamespace,
13
+ Shared_CloudflareWorkerDomain,
14
+ Shared_CloudflareZone,
15
+ } from '../../shared.d.ts';
16
+
17
+ /**
18
+ * CLI - Commands - Deploy - Check Readiness.
19
+ *
20
+ * @since 2.5.0
21
+ */
22
+ export type Cli_Commands_Deploy_CheckReadiness_Token = string;
23
+
24
+ export type Cli_Commands_Deploy_CheckReadiness_ZoneInfo = Shared_CloudflareZone;
25
+
26
+ export type Cli_Commands_Deploy_CheckReadiness_Settings_WorkerName = Lib_Schema_SettingsConfigWorkerName;
27
+
28
+ export type Cli_Commands_Deploy_CheckReadiness_Settings_BaseDomain = Lib_Schema_SettingsConfigBaseDomain;
29
+
30
+ export type Cli_Commands_Deploy_CheckReadiness_Settings_ShowResponseOutput = Lib_Schema_SettingsConfigShowResponseOutput;
31
+
32
+ export type Cli_Commands_Deploy_CheckReadiness_Settings = {
33
+ worker_name: Cli_Commands_Deploy_CheckReadiness_Settings_WorkerName;
34
+ base_domain: Cli_Commands_Deploy_CheckReadiness_Settings_BaseDomain;
35
+ show_response_output: Cli_Commands_Deploy_CheckReadiness_Settings_ShowResponseOutput;
36
+ };
37
+
38
+ export type Cli_Commands_Deploy_CheckReadiness_Contexts = Array<Lib_Schema_ContextConfig>;
39
+
40
+ export type Cli_Commands_Deploy_CheckReadiness_Returns = Promise<void>;
41
+
42
+ export type Cli_Commands_Deploy_CheckReadiness_Hostname = string;
43
+
44
+ export type Cli_Commands_Deploy_CheckReadiness_Hostnames = Cli_Commands_Deploy_CheckReadiness_Hostname[];
45
+
46
+ export type Cli_Commands_Deploy_CheckReadiness_HasEmailContexts = boolean;
47
+
48
+ export type Cli_Commands_Deploy_CheckReadiness_Domains = Shared_CloudflareWorkerDomain[];
49
+
50
+ export type Cli_Commands_Deploy_CheckReadiness_AttachedHostnames = Cli_Commands_Deploy_CheckReadiness_Hostname[];
51
+
52
+ export type Cli_Commands_Deploy_CheckReadiness_UnattachedHostnames = Cli_Commands_Deploy_CheckReadiness_Hostname[];
53
+
54
+ export type Cli_Commands_Deploy_CheckReadiness_PendingRecord = string;
55
+
56
+ export type Cli_Commands_Deploy_CheckReadiness_PendingRecords = Cli_Commands_Deploy_CheckReadiness_PendingRecord[];
57
+
58
+ export type Cli_Commands_Deploy_CheckReadiness_ErrorMessage = string;
59
+
60
+ export type Cli_Commands_Deploy_CheckReadiness_MxHost = string;
61
+
62
+ export type Cli_Commands_Deploy_CheckReadiness_MxHosts = Cli_Commands_Deploy_CheckReadiness_MxHost[];
63
+
64
+ /**
65
+ * CLI - Commands - Deploy - Deploy.
66
+ *
67
+ * @since 2.0.0
68
+ */
69
+ export type Cli_Commands_Deploy_Deploy_ConfigPath = string;
70
+
71
+ export type Cli_Commands_Deploy_Deploy_Interactive = boolean;
72
+
73
+ export type Cli_Commands_Deploy_Deploy_Returns = Promise<void>;
74
+
75
+ export type Cli_Commands_Deploy_Deploy_Token = string;
76
+
77
+ export type Cli_Commands_Deploy_Deploy_ResultValid = boolean;
78
+
79
+ export type Cli_Commands_Deploy_Deploy_ResultErrors = string[];
80
+
81
+ export type Cli_Commands_Deploy_Deploy_Result = {
82
+ valid: Cli_Commands_Deploy_Deploy_ResultValid;
83
+ errors: Cli_Commands_Deploy_Deploy_ResultErrors;
84
+ };
85
+
86
+ export type Cli_Commands_Deploy_Deploy_Servers = Array<Lib_Schema_ServerConfig>;
87
+
88
+ export type Cli_Commands_Deploy_Deploy_Settings_WorkerName = Lib_Schema_SettingsConfigWorkerName;
89
+
90
+ export type Cli_Commands_Deploy_Deploy_Settings_BaseDomain = Lib_Schema_SettingsConfigBaseDomain;
91
+
92
+ export type Cli_Commands_Deploy_Deploy_Settings_ShowResponseOutput = Lib_Schema_SettingsConfigShowResponseOutput;
93
+
94
+ export type Cli_Commands_Deploy_Deploy_Settings = {
95
+ worker_name: Cli_Commands_Deploy_Deploy_Settings_WorkerName;
96
+ base_domain: Cli_Commands_Deploy_Deploy_Settings_BaseDomain;
97
+ show_response_output: Cli_Commands_Deploy_Deploy_Settings_ShowResponseOutput;
98
+ };
99
+
100
+ export type Cli_Commands_Deploy_Deploy_WorkerName = string;
101
+
102
+ export type Cli_Commands_Deploy_Deploy_Contexts = Array<Lib_Schema_ContextConfig>;
103
+
104
+ export type Cli_Commands_Deploy_Deploy_HasEmailContexts = boolean;
105
+
106
+ export type Cli_Commands_Deploy_Deploy_ZoneInfo = Shared_CloudflareZone;
107
+
108
+ export type Cli_Commands_Deploy_Deploy_AccountId = string;
109
+
110
+ export type Cli_Commands_Deploy_Deploy_KvNamespaceId = string;
111
+
112
+ export type Cli_Commands_Deploy_Deploy_WranglerTomlPath = string;
113
+
114
+ /**
115
+ * CLI - Commands - Deploy - Deploy Worker.
116
+ *
117
+ * @since 2.0.0
118
+ */
119
+ export type Cli_Commands_Deploy_DeployWorker_WranglerTomlPath = string;
120
+
121
+ export type Cli_Commands_Deploy_DeployWorker_Returns = void;
122
+
123
+ export type Cli_Commands_Deploy_DeployWorker_WranglerCliPath = string;
124
+
125
+ export type Cli_Commands_Deploy_DeployWorker_DeployResult = SpawnSyncReturns<string>;
126
+
127
+ /**
128
+ * CLI - Commands - Deploy - Ensure Kv Namespace.
129
+ *
130
+ * @since 2.0.0
131
+ */
132
+ export type Cli_Commands_Deploy_EnsureKvNamespace_Returns = Promise<string>;
133
+
134
+ export type Cli_Commands_Deploy_EnsureKvNamespace_Token = string;
135
+
136
+ export type Cli_Commands_Deploy_EnsureKvNamespace_AccountId = string;
137
+
138
+ export type Cli_Commands_Deploy_EnsureKvNamespace_WorkerName = string;
139
+
140
+ export type Cli_Commands_Deploy_EnsureKvNamespace_AllNamespaces = Shared_CloudflareKvNamespace[];
141
+
142
+ export type Cli_Commands_Deploy_EnsureKvNamespace_KvTitle = string;
143
+
144
+ export type Cli_Commands_Deploy_EnsureKvNamespace_Existing = Shared_CloudflareKvNamespace | undefined;
145
+
146
+ /**
147
+ * CLI - Commands - Deploy - Get Zone Info.
148
+ *
149
+ * @since 2.0.0
150
+ */
151
+ export type Cli_Commands_Deploy_GetZoneInfo_Token = string;
152
+
153
+ export type Cli_Commands_Deploy_GetZoneInfo_BaseDomain = string;
154
+
155
+ export type Cli_Commands_Deploy_GetZoneInfo_Returns = Promise<Shared_CloudflareZone>;
156
+
157
+ export type Cli_Commands_Deploy_GetZoneInfo_Parts = string[];
158
+
159
+ export type Cli_Commands_Deploy_GetZoneInfo_Candidate = string;
160
+
161
+ export type Cli_Commands_Deploy_GetZoneInfo_Candidates = Cli_Commands_Deploy_GetZoneInfo_Candidate[];
162
+
163
+ export type Cli_Commands_Deploy_GetZoneInfo_Zone = Shared_CloudflareZone | undefined;
164
+
165
+ /**
166
+ * CLI - Commands - Deploy - Load Env Token.
167
+ *
168
+ * @since 2.0.0
169
+ */
170
+ export type Cli_Commands_Deploy_LoadEnvToken_Returns = string | undefined;
171
+
172
+ export type Cli_Commands_Deploy_LoadEnvToken_EnvValue = string | undefined;
173
+
174
+ export type Cli_Commands_Deploy_LoadEnvToken_Content = string;
175
+
176
+ export type Cli_Commands_Deploy_LoadEnvToken_Match = RegExpMatchArray | null;
177
+
178
+ export type Cli_Commands_Deploy_LoadEnvToken_Value = string;
179
+
180
+ /**
181
+ * CLI - Commands - Deploy - Print Context Summary.
182
+ *
183
+ * @since 2.0.0
184
+ */
185
+ export type Cli_Commands_Deploy_PrintContextSummary_ConfigPath = string;
186
+
187
+ export type Cli_Commands_Deploy_PrintContextSummary_Returns = void;
188
+
189
+ export type Cli_Commands_Deploy_PrintContextSummary_Contexts = Array<Lib_Schema_ContextConfig>;
190
+
191
+ export type Cli_Commands_Deploy_PrintContextSummary_Settings_WorkerName = Lib_Schema_SettingsConfigWorkerName;
192
+
193
+ export type Cli_Commands_Deploy_PrintContextSummary_Settings_BaseDomain = Lib_Schema_SettingsConfigBaseDomain;
194
+
195
+ export type Cli_Commands_Deploy_PrintContextSummary_Settings_ShowResponseOutput = Lib_Schema_SettingsConfigShowResponseOutput;
196
+
197
+ export type Cli_Commands_Deploy_PrintContextSummary_Settings = {
198
+ worker_name: Cli_Commands_Deploy_PrintContextSummary_Settings_WorkerName;
199
+ base_domain: Cli_Commands_Deploy_PrintContextSummary_Settings_BaseDomain;
200
+ show_response_output: Cli_Commands_Deploy_PrintContextSummary_Settings_ShowResponseOutput;
201
+ };
202
+
203
+ /**
204
+ * CLI - Commands - Deploy - Prompt For Api Token.
205
+ *
206
+ * @since 2.0.0
207
+ */
208
+ export type Cli_Commands_Deploy_PromptForApiToken_Returns = Promise<string>;
209
+
210
+ export type Cli_Commands_Deploy_PromptForApiToken_PromptResultApiToken = string | undefined;
211
+
212
+ export type Cli_Commands_Deploy_PromptForApiToken_PromptResult = {
213
+ apiToken: Cli_Commands_Deploy_PromptForApiToken_PromptResultApiToken;
214
+ };
215
+
216
+ export type Cli_Commands_Deploy_PromptForApiToken_Token = string;
217
+
218
+ /**
219
+ * CLI - Commands - Deploy - Resolve Api Token.
220
+ *
221
+ * @since 2.0.0
222
+ */
223
+ export type Cli_Commands_Deploy_ResolveApiToken_Interactive = boolean;
224
+
225
+ export type Cli_Commands_Deploy_ResolveApiToken_Returns = Promise<string>;
226
+
227
+ export type Cli_Commands_Deploy_ResolveApiToken_EnvToken = string | undefined;
228
+
229
+ /**
230
+ * CLI - Commands - Deploy - Save Env Token.
231
+ *
232
+ * @since 2.0.0
233
+ */
234
+ export type Cli_Commands_Deploy_SaveEnvToken_Token = string;
235
+
236
+ export type Cli_Commands_Deploy_SaveEnvToken_Returns = void;
237
+
238
+ export type Cli_Commands_Deploy_SaveEnvToken_Content = string;
239
+
240
+ export type Cli_Commands_Deploy_SaveEnvToken_Regex = RegExp;
241
+
242
+ /**
243
+ * CLI - Commands - Deploy - Setup Email Routing.
244
+ *
245
+ * @since 2.0.0
246
+ */
247
+ export type Cli_Commands_Deploy_SetupEmailRouting_ConfigPath = string;
248
+
249
+ export type Cli_Commands_Deploy_SetupEmailRouting_Token = string;
250
+
251
+ export type Cli_Commands_Deploy_SetupEmailRouting_Returns = Promise<void>;
252
+
253
+ export type Cli_Commands_Deploy_SetupEmailRouting_Contexts = Array<Lib_Schema_ContextConfig>;
254
+
255
+ export type Cli_Commands_Deploy_SetupEmailRouting_EmailContexts = Array<Lib_Schema_ContextConfig>;
256
+
257
+ export type Cli_Commands_Deploy_SetupEmailRouting_Settings_WorkerName = Lib_Schema_SettingsConfigWorkerName;
258
+
259
+ export type Cli_Commands_Deploy_SetupEmailRouting_Settings_BaseDomain = Lib_Schema_SettingsConfigBaseDomain;
260
+
261
+ export type Cli_Commands_Deploy_SetupEmailRouting_Settings_ShowResponseOutput = Lib_Schema_SettingsConfigShowResponseOutput;
262
+
263
+ export type Cli_Commands_Deploy_SetupEmailRouting_Settings = {
264
+ worker_name: Cli_Commands_Deploy_SetupEmailRouting_Settings_WorkerName;
265
+ base_domain: Cli_Commands_Deploy_SetupEmailRouting_Settings_BaseDomain;
266
+ show_response_output: Cli_Commands_Deploy_SetupEmailRouting_Settings_ShowResponseOutput;
267
+ };
268
+
269
+ export type Cli_Commands_Deploy_SetupEmailRouting_WorkerName = string;
270
+
271
+ export type Cli_Commands_Deploy_SetupEmailRouting_ZoneInfo = Shared_CloudflareZone;
272
+
273
+ export type Cli_Commands_Deploy_SetupEmailRouting_ZoneId = string;
274
+
275
+ export type Cli_Commands_Deploy_SetupEmailRouting_ExistingRules = Shared_CloudflareEmailRoutingRule[];
276
+
277
+ export type Cli_Commands_Deploy_SetupEmailRouting_WorkerRules = Shared_CloudflareEmailRoutingRule[];
278
+
279
+ export type Cli_Commands_Deploy_SetupEmailRouting_DesiredEmails = Set<string>;
280
+
281
+ export type Cli_Commands_Deploy_SetupEmailRouting_Created = number;
282
+
283
+ export type Cli_Commands_Deploy_SetupEmailRouting_Kept = number;
284
+
285
+ export type Cli_Commands_Deploy_SetupEmailRouting_Removed = number;
286
+
287
+ export type Cli_Commands_Deploy_SetupEmailRouting_Email = string;
288
+
289
+ export type Cli_Commands_Deploy_SetupEmailRouting_RuleExists = boolean;
290
+
291
+ export type Cli_Commands_Deploy_SetupEmailRouting_RuleEmail = string | undefined;
292
+
293
+ /**
294
+ * CLI - Commands - Deploy - Verify Permissions.
295
+ *
296
+ * @since 2.0.0
297
+ */
298
+ export type Cli_Commands_Deploy_VerifyPermissions_Token = string;
299
+
300
+ export type Cli_Commands_Deploy_VerifyPermissions_BaseDomain = string;
301
+
302
+ export type Cli_Commands_Deploy_VerifyPermissions_HasEmailContexts = boolean;
303
+
304
+ export type Cli_Commands_Deploy_VerifyPermissions_Interactive = boolean;
305
+
306
+ export type Cli_Commands_Deploy_VerifyPermissions_Returns = Promise<Shared_CloudflareZone>;
307
+
308
+ export type Cli_Commands_Deploy_VerifyPermissions_ZoneInfo = Shared_CloudflareZone;
309
+
310
+ export type Cli_Commands_Deploy_VerifyPermissions_Missing = string[];
311
+
312
+ export type Cli_Commands_Deploy_VerifyPermissions_MissingMessage = string;
313
+
314
+ export type Cli_Commands_Deploy_VerifyPermissions_PromptResultReady = boolean | undefined;
315
+
316
+ export type Cli_Commands_Deploy_VerifyPermissions_PromptResult = {
317
+ ready: Cli_Commands_Deploy_VerifyPermissions_PromptResultReady;
318
+ };
@@ -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;