@kayjs/auth 0.0.0-stage → 1.104.1

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 (407) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +78 -2
  3. package/llms/admin-and-organizations.md +70 -0
  4. package/llms/admin-pages.md +30 -0
  5. package/llms/grouped-methods.md +106 -0
  6. package/llms/hardening-and-testing.md +108 -0
  7. package/llms/oauth-passkeys-two-factor.md +111 -0
  8. package/llms/oauth-providers.md +28 -0
  9. package/llms/oauth-server-and-tokens.md +76 -0
  10. package/llms/organization-pages.md +20 -0
  11. package/llms/passwords-and-mails.md +129 -0
  12. package/llms/sessions-and-guards.md +51 -0
  13. package/llms/setup.md +122 -0
  14. package/llms/signed-in-components.md +59 -0
  15. package/llms.txt +28 -0
  16. package/package.json +85 -4
  17. package/src/access.ts +31 -0
  18. package/src/account.ts +198 -0
  19. package/src/add.ts +70 -0
  20. package/src/address.ts +51 -0
  21. package/src/admin.ts +361 -0
  22. package/src/auditWording.ts +153 -0
  23. package/src/auth.ts +219 -0
  24. package/src/authorize/clients.ts +160 -0
  25. package/src/authorize/grants.ts +44 -0
  26. package/src/authorize/metadata.ts +72 -0
  27. package/src/authorize/register.ts +38 -0
  28. package/src/authorize/reply.ts +9 -0
  29. package/src/authorize/request.ts +253 -0
  30. package/src/authorize/resource.ts +34 -0
  31. package/src/authorize/revoke.ts +36 -0
  32. package/src/authorize/routes.ts +87 -0
  33. package/src/authorize/token.ts +213 -0
  34. package/src/authorize/uris.ts +76 -0
  35. package/src/bearer.ts +208 -0
  36. package/src/bearerHeader.ts +11 -0
  37. package/src/breached.ts +47 -0
  38. package/src/browser.ts +59 -0
  39. package/src/captcha.ts +196 -0
  40. package/src/cbor.ts +129 -0
  41. package/src/components/deletion-banner.kay +20 -0
  42. package/src/components/impersonation-banner.kay +21 -0
  43. package/src/components/signed-in.kay +8 -0
  44. package/src/components/signed-out.kay +6 -0
  45. package/src/components/user-menu.kay +21 -0
  46. package/src/context.ts +5 -0
  47. package/src/core.ts +308 -0
  48. package/src/createUserCommand.ts +217 -0
  49. package/src/decide.ts +45 -0
  50. package/src/deletion.ts +80 -0
  51. package/src/devTool.ts +104 -0
  52. package/src/device.ts +37 -0
  53. package/src/email.ts +594 -0
  54. package/src/erase.ts +237 -0
  55. package/src/events.ts +297 -0
  56. package/src/export.ts +101 -0
  57. package/src/failure.ts +63 -0
  58. package/src/forwardAuth.ts +55 -0
  59. package/src/forwardRoutes.ts +68 -0
  60. package/src/gate.ts +104 -0
  61. package/src/guard.ts +22 -0
  62. package/src/guards.ts +72 -0
  63. package/src/guesses.ts +99 -0
  64. package/src/index.ts +46 -0
  65. package/src/keys.ts +51 -0
  66. package/src/limits.ts +182 -0
  67. package/src/load.ts +18 -0
  68. package/src/locale.ts +15 -0
  69. package/src/log.ts +4 -0
  70. package/src/mail.ts +225 -0
  71. package/src/memoryStore.ts +599 -0
  72. package/src/messages/fr.ts +357 -0
  73. package/src/methods/account.ts +80 -0
  74. package/src/methods/admin.ts +63 -0
  75. package/src/methods/audit.ts +15 -0
  76. package/src/methods/email.ts +39 -0
  77. package/src/methods/magicLink.ts +32 -0
  78. package/src/methods/oauth.ts +35 -0
  79. package/src/methods/oauthServer.ts +31 -0
  80. package/src/methods/organizations.ts +96 -0
  81. package/src/methods/passkeys.ts +61 -0
  82. package/src/methods/password.ts +53 -0
  83. package/src/methods/sessions.ts +18 -0
  84. package/src/methods/tokens.ts +24 -0
  85. package/src/methods/twoFactor.ts +62 -0
  86. package/src/oauth/client.ts +324 -0
  87. package/src/oauth/flow.ts +350 -0
  88. package/src/oauth/index.ts +5 -0
  89. package/src/oauth/pkce.ts +20 -0
  90. package/src/oauth/providers.ts +490 -0
  91. package/src/oauth/refresher.ts +177 -0
  92. package/src/oauth/timeout.ts +2 -0
  93. package/src/oauth/types.ts +78 -0
  94. package/src/oauthTest.ts +112 -0
  95. package/src/organizations.ts +675 -0
  96. package/src/organizationsCore.ts +60 -0
  97. package/src/own.ts +313 -0
  98. package/src/pages/components/captcha.kay +16 -0
  99. package/src/pages/components/frame.kay +11 -0
  100. package/src/pages/components/message.kay +8 -0
  101. package/src/pages/components/panel.kay +12 -0
  102. package/src/pages/components/passkey-add.kay +48 -0
  103. package/src/pages/components/passkey-sign-in.kay +34 -0
  104. package/src/pages/components/passkey-two-factor.kay +33 -0
  105. package/src/pages/components/proof.kay +15 -0
  106. package/src/pages/components/provider-buttons.kay +25 -0
  107. package/src/pages/components/recovery-codes.kay +13 -0
  108. package/src/pages/components/separator.kay +4 -0
  109. package/src/pages/english.ts +82 -0
  110. package/src/pages/forms.ts +185 -0
  111. package/src/pages/index.ts +361 -0
  112. package/src/pages/organizationPage.ts +12 -0
  113. package/src/pages/routes/account/_guard.ts +15 -0
  114. package/src/pages/routes/account/_layout.kay +37 -0
  115. package/src/pages/routes/account/clients.kay +33 -0
  116. package/src/pages/routes/account/connections.kay +57 -0
  117. package/src/pages/routes/account/data.kay +106 -0
  118. package/src/pages/routes/account/index.kay +109 -0
  119. package/src/pages/routes/account/organizations/[org].kay +188 -0
  120. package/src/pages/routes/account/organizations/_guard.ts +8 -0
  121. package/src/pages/routes/account/organizations/index.kay +86 -0
  122. package/src/pages/routes/account/security.kay +164 -0
  123. package/src/pages/routes/account/sessions.kay +51 -0
  124. package/src/pages/routes/account/tokens.kay +84 -0
  125. package/src/pages/routes/admin/_layout.kay +43 -0
  126. package/src/pages/routes/admin/audit.kay +43 -0
  127. package/src/pages/routes/admin/index.kay +60 -0
  128. package/src/pages/routes/admin/users/[id].kay +181 -0
  129. package/src/pages/routes/confirm-email.kay +39 -0
  130. package/src/pages/routes/invitation.kay +104 -0
  131. package/src/pages/routes/magic-link.kay +42 -0
  132. package/src/pages/routes/oauth/authorize.kay +80 -0
  133. package/src/pages/routes/register.kay +83 -0
  134. package/src/pages/routes/reset-password.kay +73 -0
  135. package/src/pages/routes/sign-in.kay +128 -0
  136. package/src/pages/routes/two-factor.kay +61 -0
  137. package/src/pages/routes/verify-email.kay +83 -0
  138. package/src/passkeys.ts +373 -0
  139. package/src/password.ts +316 -0
  140. package/src/payloads.ts +22 -0
  141. package/src/pg.ts +705 -0
  142. package/src/profile.ts +43 -0
  143. package/src/proof.ts +110 -0
  144. package/src/prune.ts +123 -0
  145. package/src/rates.ts +82 -0
  146. package/src/request.ts +712 -0
  147. package/src/requiredTwoFactor.ts +71 -0
  148. package/src/requirement.ts +23 -0
  149. package/src/roles.ts +18 -0
  150. package/src/routes.ts +202 -0
  151. package/src/rules-check.ts +37 -0
  152. package/src/rules.ts +108 -0
  153. package/src/securityNotice.ts +45 -0
  154. package/src/sessions.ts +184 -0
  155. package/src/setup.ts +417 -0
  156. package/src/signInOptions.ts +9 -0
  157. package/src/state.ts +34 -0
  158. package/src/store.ts +410 -0
  159. package/src/storeHelpers.ts +23 -0
  160. package/src/test.ts +46 -0
  161. package/src/testCookies.ts +9 -0
  162. package/src/testHelpers.ts +58 -0
  163. package/src/testing.ts +113 -0
  164. package/src/text.ts +6 -0
  165. package/src/totp.ts +120 -0
  166. package/src/twoFactor.ts +200 -0
  167. package/src/types.ts +23 -0
  168. package/src/userData.ts +47 -0
  169. package/src/viewer-layout/_layout.kay +11 -0
  170. package/src/viewer.ts +116 -0
  171. package/src/wayIn.ts +40 -0
  172. package/src/webauthn.ts +375 -0
  173. package/src/wsAuth.ts +53 -0
  174. package/types/access.d.ts +12 -0
  175. package/types/access.d.ts.map +1 -0
  176. package/types/account.d.ts +32 -0
  177. package/types/account.d.ts.map +1 -0
  178. package/types/add.d.ts +29 -0
  179. package/types/add.d.ts.map +1 -0
  180. package/types/address.d.ts +2 -0
  181. package/types/address.d.ts.map +1 -0
  182. package/types/admin.d.ts +84 -0
  183. package/types/admin.d.ts.map +1 -0
  184. package/types/auditWording.d.ts +9 -0
  185. package/types/auditWording.d.ts.map +1 -0
  186. package/types/auth.d.ts +3475 -0
  187. package/types/auth.d.ts.map +1 -0
  188. package/types/authorize/clients.d.ts +15 -0
  189. package/types/authorize/clients.d.ts.map +1 -0
  190. package/types/authorize/grants.d.ts +15 -0
  191. package/types/authorize/grants.d.ts.map +1 -0
  192. package/types/authorize/metadata.d.ts +20 -0
  193. package/types/authorize/metadata.d.ts.map +1 -0
  194. package/types/authorize/register.d.ts +4 -0
  195. package/types/authorize/register.d.ts.map +1 -0
  196. package/types/authorize/reply.d.ts +6 -0
  197. package/types/authorize/reply.d.ts.map +1 -0
  198. package/types/authorize/request.d.ts +48 -0
  199. package/types/authorize/request.d.ts.map +1 -0
  200. package/types/authorize/resource.d.ts +4 -0
  201. package/types/authorize/resource.d.ts.map +1 -0
  202. package/types/authorize/revoke.d.ts +4 -0
  203. package/types/authorize/revoke.d.ts.map +1 -0
  204. package/types/authorize/routes.d.ts +5 -0
  205. package/types/authorize/routes.d.ts.map +1 -0
  206. package/types/authorize/token.d.ts +7 -0
  207. package/types/authorize/token.d.ts.map +1 -0
  208. package/types/authorize/uris.d.ts +5 -0
  209. package/types/authorize/uris.d.ts.map +1 -0
  210. package/types/bearer.d.ts +45 -0
  211. package/types/bearer.d.ts.map +1 -0
  212. package/types/bearerHeader.d.ts +3 -0
  213. package/types/bearerHeader.d.ts.map +1 -0
  214. package/types/breached.d.ts +5 -0
  215. package/types/breached.d.ts.map +1 -0
  216. package/types/browser.d.ts +11 -0
  217. package/types/browser.d.ts.map +1 -0
  218. package/types/captcha.d.ts +42 -0
  219. package/types/captcha.d.ts.map +1 -0
  220. package/types/cbor.d.ts +4 -0
  221. package/types/cbor.d.ts.map +1 -0
  222. package/types/context.d.ts +3 -0
  223. package/types/context.d.ts.map +1 -0
  224. package/types/core.d.ts +180 -0
  225. package/types/core.d.ts.map +1 -0
  226. package/types/createUserCommand.d.ts +11 -0
  227. package/types/createUserCommand.d.ts.map +1 -0
  228. package/types/decide.d.ts +12 -0
  229. package/types/decide.d.ts.map +1 -0
  230. package/types/deletion.d.ts +17 -0
  231. package/types/deletion.d.ts.map +1 -0
  232. package/types/devTool.d.ts +3 -0
  233. package/types/devTool.d.ts.map +1 -0
  234. package/types/device.d.ts +7 -0
  235. package/types/device.d.ts.map +1 -0
  236. package/types/email.d.ts +73 -0
  237. package/types/email.d.ts.map +1 -0
  238. package/types/erase.d.ts +31 -0
  239. package/types/erase.d.ts.map +1 -0
  240. package/types/events.d.ts +139 -0
  241. package/types/events.d.ts.map +1 -0
  242. package/types/export.d.ts +54 -0
  243. package/types/export.d.ts.map +1 -0
  244. package/types/failure.d.ts +19 -0
  245. package/types/failure.d.ts.map +1 -0
  246. package/types/forwardAuth.d.ts +12 -0
  247. package/types/forwardAuth.d.ts.map +1 -0
  248. package/types/forwardRoutes.d.ts +11 -0
  249. package/types/forwardRoutes.d.ts.map +1 -0
  250. package/types/gate.d.ts +31 -0
  251. package/types/gate.d.ts.map +1 -0
  252. package/types/guard.d.ts +10 -0
  253. package/types/guard.d.ts.map +1 -0
  254. package/types/guards.d.ts +37 -0
  255. package/types/guards.d.ts.map +1 -0
  256. package/types/guesses.d.ts +18 -0
  257. package/types/guesses.d.ts.map +1 -0
  258. package/types/index.d.ts +47 -0
  259. package/types/index.d.ts.map +1 -0
  260. package/types/keys.d.ts +11 -0
  261. package/types/keys.d.ts.map +1 -0
  262. package/types/limits.d.ts +133 -0
  263. package/types/limits.d.ts.map +1 -0
  264. package/types/load.d.ts +18 -0
  265. package/types/load.d.ts.map +1 -0
  266. package/types/locale.d.ts +4 -0
  267. package/types/locale.d.ts.map +1 -0
  268. package/types/log.d.ts +2 -0
  269. package/types/log.d.ts.map +1 -0
  270. package/types/mail.d.ts +51 -0
  271. package/types/mail.d.ts.map +1 -0
  272. package/types/memoryStore.d.ts +3 -0
  273. package/types/memoryStore.d.ts.map +1 -0
  274. package/types/messages/fr.d.ts +409 -0
  275. package/types/messages/fr.d.ts.map +1 -0
  276. package/types/methods/account.d.ts +24 -0
  277. package/types/methods/account.d.ts.map +1 -0
  278. package/types/methods/admin.d.ts +30 -0
  279. package/types/methods/admin.d.ts.map +1 -0
  280. package/types/methods/audit.d.ts +11 -0
  281. package/types/methods/audit.d.ts.map +1 -0
  282. package/types/methods/email.d.ts +14 -0
  283. package/types/methods/email.d.ts.map +1 -0
  284. package/types/methods/magicLink.d.ts +12 -0
  285. package/types/methods/magicLink.d.ts.map +1 -0
  286. package/types/methods/oauth.d.ts +16 -0
  287. package/types/methods/oauth.d.ts.map +1 -0
  288. package/types/methods/oauthServer.d.ts +13 -0
  289. package/types/methods/oauthServer.d.ts.map +1 -0
  290. package/types/methods/organizations.d.ts +30 -0
  291. package/types/methods/organizations.d.ts.map +1 -0
  292. package/types/methods/passkeys.d.ts +19 -0
  293. package/types/methods/passkeys.d.ts.map +1 -0
  294. package/types/methods/password.d.ts +17 -0
  295. package/types/methods/password.d.ts.map +1 -0
  296. package/types/methods/sessions.d.ts +9 -0
  297. package/types/methods/sessions.d.ts.map +1 -0
  298. package/types/methods/tokens.d.ts +11 -0
  299. package/types/methods/tokens.d.ts.map +1 -0
  300. package/types/methods/twoFactor.d.ts +20 -0
  301. package/types/methods/twoFactor.d.ts.map +1 -0
  302. package/types/oauth/client.d.ts +39 -0
  303. package/types/oauth/client.d.ts.map +1 -0
  304. package/types/oauth/flow.d.ts +38 -0
  305. package/types/oauth/flow.d.ts.map +1 -0
  306. package/types/oauth/index.d.ts +6 -0
  307. package/types/oauth/index.d.ts.map +1 -0
  308. package/types/oauth/pkce.d.ts +10 -0
  309. package/types/oauth/pkce.d.ts.map +1 -0
  310. package/types/oauth/providers.d.ts +100 -0
  311. package/types/oauth/providers.d.ts.map +1 -0
  312. package/types/oauth/refresher.d.ts +55 -0
  313. package/types/oauth/refresher.d.ts.map +1 -0
  314. package/types/oauth/timeout.d.ts +2 -0
  315. package/types/oauth/timeout.d.ts.map +1 -0
  316. package/types/oauth/types.d.ts +75 -0
  317. package/types/oauth/types.d.ts.map +1 -0
  318. package/types/oauthTest.d.ts +23 -0
  319. package/types/oauthTest.d.ts.map +1 -0
  320. package/types/organizations.d.ts +111 -0
  321. package/types/organizations.d.ts.map +1 -0
  322. package/types/organizationsCore.d.ts +29 -0
  323. package/types/organizationsCore.d.ts.map +1 -0
  324. package/types/own.d.ts +55 -0
  325. package/types/own.d.ts.map +1 -0
  326. package/types/pages/english.d.ts +80 -0
  327. package/types/pages/english.d.ts.map +1 -0
  328. package/types/pages/forms.d.ts +204 -0
  329. package/types/pages/forms.d.ts.map +1 -0
  330. package/types/pages/index.d.ts +166 -0
  331. package/types/pages/index.d.ts.map +1 -0
  332. package/types/pages/organizationPage.d.ts +7 -0
  333. package/types/pages/organizationPage.d.ts.map +1 -0
  334. package/types/pages/routes/account/_guard.d.ts +3 -0
  335. package/types/pages/routes/account/_guard.d.ts.map +1 -0
  336. package/types/pages/routes/account/organizations/_guard.d.ts +3 -0
  337. package/types/pages/routes/account/organizations/_guard.d.ts.map +1 -0
  338. package/types/passkeys.d.ts +61 -0
  339. package/types/passkeys.d.ts.map +1 -0
  340. package/types/password.d.ts +49 -0
  341. package/types/password.d.ts.map +1 -0
  342. package/types/payloads.d.ts +4 -0
  343. package/types/payloads.d.ts.map +1 -0
  344. package/types/pg.d.ts +303 -0
  345. package/types/pg.d.ts.map +1 -0
  346. package/types/profile.d.ts +11 -0
  347. package/types/profile.d.ts.map +1 -0
  348. package/types/proof.d.ts +33 -0
  349. package/types/proof.d.ts.map +1 -0
  350. package/types/prune.d.ts +5 -0
  351. package/types/prune.d.ts.map +1 -0
  352. package/types/rates.d.ts +15 -0
  353. package/types/rates.d.ts.map +1 -0
  354. package/types/request.d.ts +119 -0
  355. package/types/request.d.ts.map +1 -0
  356. package/types/requiredTwoFactor.d.ts +16 -0
  357. package/types/requiredTwoFactor.d.ts.map +1 -0
  358. package/types/requirement.d.ts +4 -0
  359. package/types/requirement.d.ts.map +1 -0
  360. package/types/roles.d.ts +9 -0
  361. package/types/roles.d.ts.map +1 -0
  362. package/types/routes.d.ts +31 -0
  363. package/types/routes.d.ts.map +1 -0
  364. package/types/rules-check.d.ts +3 -0
  365. package/types/rules-check.d.ts.map +1 -0
  366. package/types/rules.d.ts +38 -0
  367. package/types/rules.d.ts.map +1 -0
  368. package/types/securityNotice.d.ts +7 -0
  369. package/types/securityNotice.d.ts.map +1 -0
  370. package/types/sessions.d.ts +32 -0
  371. package/types/sessions.d.ts.map +1 -0
  372. package/types/setup.d.ts +18 -0
  373. package/types/setup.d.ts.map +1 -0
  374. package/types/signInOptions.d.ts +6 -0
  375. package/types/signInOptions.d.ts.map +1 -0
  376. package/types/state.d.ts +25 -0
  377. package/types/state.d.ts.map +1 -0
  378. package/types/store.d.ts +295 -0
  379. package/types/store.d.ts.map +1 -0
  380. package/types/storeHelpers.d.ts +4 -0
  381. package/types/storeHelpers.d.ts.map +1 -0
  382. package/types/test.d.ts +21 -0
  383. package/types/test.d.ts.map +1 -0
  384. package/types/testCookies.d.ts +3 -0
  385. package/types/testCookies.d.ts.map +1 -0
  386. package/types/testHelpers.d.ts +34 -0
  387. package/types/testHelpers.d.ts.map +1 -0
  388. package/types/testing.d.ts +12 -0
  389. package/types/testing.d.ts.map +1 -0
  390. package/types/text.d.ts +2 -0
  391. package/types/text.d.ts.map +1 -0
  392. package/types/totp.d.ts +12 -0
  393. package/types/totp.d.ts.map +1 -0
  394. package/types/twoFactor.d.ts +41 -0
  395. package/types/twoFactor.d.ts.map +1 -0
  396. package/types/types.d.ts +17 -0
  397. package/types/types.d.ts.map +1 -0
  398. package/types/userData.d.ts +9 -0
  399. package/types/userData.d.ts.map +1 -0
  400. package/types/viewer.d.ts +23 -0
  401. package/types/viewer.d.ts.map +1 -0
  402. package/types/wayIn.d.ts +12 -0
  403. package/types/wayIn.d.ts.map +1 -0
  404. package/types/webauthn.d.ts +111 -0
  405. package/types/webauthn.d.ts.map +1 -0
  406. package/types/wsAuth.d.ts +14 -0
  407. package/types/wsAuth.d.ts.map +1 -0
@@ -0,0 +1,3475 @@
1
+ import type { DefinitionBase, EphemeralType, MetadataBase, RouteBase, SingletonBase } from 'elysia';
2
+ import type { Duration, Guard, Schema } from 'kay';
3
+ import type { KayConfig, Session } from 'kay/server';
4
+ import type { IssueTokenResult, TokenOptions } from './bearer';
5
+ import type { CaptchaOptions } from './captcha';
6
+ import type { AuthSessionData, BareUser, OAuthApp, Profile, User } from './core';
7
+ import type { AccountOptions } from './deletion';
8
+ import type { EmailOptions } from './email';
9
+ import type { AuthEventInfo, AuthHookContext } from './events';
10
+ import type { ForwardAuthOptions, ForwardDomains } from './forwardAuth';
11
+ import type { ScopeRequirement } from './gate';
12
+ import type { RouteGuardOptions } from './guards';
13
+ import type { LimitsOption } from './limits';
14
+ import type { OrganizationsOptions } from './organizations';
15
+ import type { AuthPagesConfig } from './pages';
16
+ import type { CreateUserInput, CreateUserResult } from './password';
17
+ import type { AuthRequirement } from './request';
18
+ import type { CredentialRules } from './rules';
19
+ import type { AuthStore } from './store';
20
+ import type { Level, PolicyContext } from './types';
21
+ import { Elysia } from 'elysia';
22
+ import { CHECK_USER, PAGES_OF } from './pages';
23
+ import { socketUser } from './request';
24
+ export type { AuthSessionData, BareUser, OAuthApp, Off, Profile, User } from './core';
25
+ export { Auth, SIGNED_IN_HINT } from './request';
26
+ export type { AuthRequirement, RequireUserOptions } from './request';
27
+ export interface SessionPlugin<Data extends AuthSessionData> {
28
+ '~Ephemeral': {
29
+ derive: {
30
+ readonly session: Session<Data>;
31
+ };
32
+ };
33
+ 'deriveSecret'?: (purpose: string) => string[];
34
+ 'endsSessionsElsewhere'?: () => void;
35
+ 'sharesUnder'?: (domains: string[]) => void;
36
+ }
37
+ export interface AuthOptions<Data extends AuthSessionData, Role extends string, Prefix extends string = '/auth', Scope extends string = never, OrgRole extends string = never, UserData extends object = Record<string, never>> {
38
+ sessions: SessionPlugin<Data>;
39
+ secret?: string | string[] | undefined;
40
+ store: AuthStore;
41
+ site?: string | undefined;
42
+ prefix?: Prefix | undefined;
43
+ name?: string | undefined;
44
+ signInPage?: string | undefined;
45
+ failurePage?: string | undefined;
46
+ twoFactorPage?: string | undefined;
47
+ pages?: boolean | AuthPagesConfig | undefined;
48
+ email?: EmailOptions | undefined;
49
+ oauth?: Record<string, OAuthApp> | undefined;
50
+ allow?: ((profile: Profile) => boolean | Promise<boolean>) | undefined;
51
+ signUp?: false | undefined;
52
+ onSignUp?: ((event: {
53
+ user: User;
54
+ profile: Profile | undefined;
55
+ context: AuthHookContext;
56
+ }) => unknown) | undefined;
57
+ user?: (Schema & {
58
+ static: UserData;
59
+ }) | undefined;
60
+ profileFields?: ((event: {
61
+ user: User<UserData>;
62
+ profile: Profile;
63
+ }) => {
64
+ [Field in keyof UserData]?: UserData[Field] | undefined;
65
+ } | void | Promise<{
66
+ [Field in keyof UserData]?: UserData[Field] | undefined;
67
+ } | void>) | undefined;
68
+ beforeDelete?: ((event: {
69
+ user: User;
70
+ context: AuthHookContext;
71
+ }) => void | false | Promise<void | false>) | undefined;
72
+ guests?: {
73
+ maxAge: Duration;
74
+ } | undefined;
75
+ account?: AccountOptions | undefined;
76
+ exportData?: ((event: {
77
+ user: User;
78
+ }) => unknown) | undefined;
79
+ onEvent?: ((info: AuthEventInfo) => unknown) | undefined;
80
+ audit?: boolean | {
81
+ maxAge?: Duration;
82
+ ip?: 'full' | 'truncated';
83
+ } | undefined;
84
+ scopes?: readonly Scope[] | undefined;
85
+ roles?: Record<Role, NoInfer<Role>[]> | undefined;
86
+ organizations?: OrganizationsOptions<OrgRole, NoInfer<Role>> | undefined;
87
+ admin?: AuthRequirement<NoInfer<Role>> | undefined;
88
+ defaultRoles?: NoInfer<Role>[] | undefined;
89
+ remember?: {
90
+ maxAge?: Duration | undefined;
91
+ } | undefined;
92
+ rules?: CredentialRules | undefined;
93
+ sessionsPage?: string | undefined;
94
+ securityPage?: string | undefined;
95
+ locate?: ((ip: string) => string | null | undefined | Promise<string | null | undefined>) | undefined;
96
+ rateLimit?: LimitsOption | undefined;
97
+ passkeys?: {
98
+ rpId?: string;
99
+ origins?: string[];
100
+ rpName?: string;
101
+ userVerification?: 'required' | 'preferred' | 'discouraged';
102
+ } | false | undefined;
103
+ password?: false | undefined;
104
+ magicLink?: false | undefined;
105
+ twoFactor?: false | {
106
+ require?: AuthRequirement<Role> | undefined;
107
+ } | undefined;
108
+ captcha?: CaptchaOptions | false | undefined;
109
+ breachedPasswords?: boolean | ((password: string) => boolean | Promise<boolean>) | undefined;
110
+ proxy?: KayConfig['proxy'] | undefined;
111
+ oauthServer?: boolean | {
112
+ fetch?: ((url: string) => Promise<Response>) | undefined;
113
+ defaultScopes?: readonly Scope[] | undefined;
114
+ } | undefined;
115
+ forwardAuth?: ForwardDomains | ForwardAuthOptions | undefined;
116
+ authorize?: ((user: BareUser | null, requirement: AuthRequirement<Role>, level: Level, ctx: PolicyContext) => Promise<boolean>) | undefined;
117
+ }
118
+ export declare function authCore<Data extends AuthSessionData, Role extends string = string, Prefix extends string = '/auth', const Scope extends string = never, OrgRole extends string = never, UserData extends object = Record<string, never>>(options: AuthOptions<Data, Role, Prefix, Scope, OrgRole, UserData>): {
119
+ sessionCookie(userId: string, cookieOptions?: {
120
+ secure?: boolean;
121
+ }): Promise<string>;
122
+ signInAs(site: {
123
+ cookies: Bun.CookieMap;
124
+ }, who: import("./testHelpers").TestMember<Role, UserData>): Promise<BareUser>;
125
+ enrollTotp(userId: string): Promise<import("./twoFactor").TotpEnrolment>;
126
+ oauth(site: import("./oauthTest").OAuthSite): import("./oauthTest").OAuthTest;
127
+ signOut(site: {
128
+ cookies: Bun.CookieMap;
129
+ }): void;
130
+ test: (site: import("./oauthTest").OAuthSite) => {
131
+ signInAs: (who: import("./testHelpers").TestMember<Role, UserData>) => Promise<BareUser<Record<string, unknown>>>;
132
+ signOut: () => void;
133
+ sessionCookie: (userId: string, cookieOptions?: {
134
+ secure?: boolean;
135
+ } | undefined) => Promise<string>;
136
+ enrollTotp: (userId: string) => Promise<import("./twoFactor").TotpEnrolment>;
137
+ oauth: import("./oauthTest").OAuthTest;
138
+ };
139
+ [PAGES_OF]: import("./pages").PagesHandle | undefined;
140
+ [CHECK_USER]: (input: CreateUserInput) => Promise<import("./password").RegisterErrors>;
141
+ plugin: Elysia<"", {
142
+ decorator: {};
143
+ store: {};
144
+ derive: {
145
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
146
+ };
147
+ resolve: {};
148
+ }, {
149
+ typebox: {};
150
+ error: {};
151
+ }, {
152
+ schema: {};
153
+ standaloneSchema: {};
154
+ macro: {};
155
+ macroFn: {};
156
+ parser: {};
157
+ response: {} & import("elysia").ExtractErrorFromHandle<{
158
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
159
+ }>;
160
+ }, {} & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/export`>, {
161
+ get: {
162
+ body: unknown;
163
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/export`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>;
164
+ query: unknown;
165
+ headers: unknown;
166
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/export`>>, {}>, (ctx: {
167
+ body: unknown;
168
+ query: Record<string, string>;
169
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> extends infer T_1 ? T_1 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? T_1 extends object ? { [K in keyof T_1]: T_1[K]; } : T_1 : never : never;
170
+ headers: Record<string, string | undefined>;
171
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
172
+ server: import("elysia/universal").Server | null;
173
+ redirect: import("elysia").redirect;
174
+ set: {
175
+ headers: import("elysia").HTTPHeaders;
176
+ status?: number | keyof import("elysia").StatusMap;
177
+ redirect?: string;
178
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
179
+ };
180
+ path: string;
181
+ route: string;
182
+ request: Request;
183
+ store: {};
184
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
185
+ readonly 100: "Continue";
186
+ readonly 101: "Switching Protocols";
187
+ readonly 102: "Processing";
188
+ readonly 103: "Early Hints";
189
+ readonly 200: "OK";
190
+ readonly 201: "Created";
191
+ readonly 202: "Accepted";
192
+ readonly 203: "Non-Authoritative Information";
193
+ readonly 204: "No Content";
194
+ readonly 205: "Reset Content";
195
+ readonly 206: "Partial Content";
196
+ readonly 207: "Multi-Status";
197
+ readonly 208: "Already Reported";
198
+ readonly 300: "Multiple Choices";
199
+ readonly 301: "Moved Permanently";
200
+ readonly 302: "Found";
201
+ readonly 303: "See Other";
202
+ readonly 304: "Not Modified";
203
+ readonly 307: "Temporary Redirect";
204
+ readonly 308: "Permanent Redirect";
205
+ readonly 400: "Bad Request";
206
+ readonly 401: "Unauthorized";
207
+ readonly 402: "Payment Required";
208
+ readonly 403: "Forbidden";
209
+ readonly 404: "Not Found";
210
+ readonly 405: "Method Not Allowed";
211
+ readonly 406: "Not Acceptable";
212
+ readonly 407: "Proxy Authentication Required";
213
+ readonly 408: "Request Timeout";
214
+ readonly 409: "Conflict";
215
+ readonly 410: "Gone";
216
+ readonly 411: "Length Required";
217
+ readonly 412: "Precondition Failed";
218
+ readonly 413: "Payload Too Large";
219
+ readonly 414: "URI Too Long";
220
+ readonly 415: "Unsupported Media Type";
221
+ readonly 416: "Range Not Satisfiable";
222
+ readonly 417: "Expectation Failed";
223
+ readonly 418: "I'm a teapot";
224
+ readonly 420: "Enhance Your Calm";
225
+ readonly 421: "Misdirected Request";
226
+ readonly 422: "Unprocessable Content";
227
+ readonly 423: "Locked";
228
+ readonly 424: "Failed Dependency";
229
+ readonly 425: "Too Early";
230
+ readonly 426: "Upgrade Required";
231
+ readonly 428: "Precondition Required";
232
+ readonly 429: "Too Many Requests";
233
+ readonly 431: "Request Header Fields Too Large";
234
+ readonly 451: "Unavailable For Legal Reasons";
235
+ readonly 500: "Internal Server Error";
236
+ readonly 501: "Not Implemented";
237
+ readonly 502: "Bad Gateway";
238
+ readonly 503: "Service Unavailable";
239
+ readonly 504: "Gateway Timeout";
240
+ readonly 505: "HTTP Version Not Supported";
241
+ readonly 506: "Variant Also Negotiates";
242
+ readonly 507: "Insufficient Storage";
243
+ readonly 508: "Loop Detected";
244
+ readonly 510: "Not Extended";
245
+ readonly 511: "Network Authentication Required";
246
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
247
+ readonly Continue: 100;
248
+ readonly 'Switching Protocols': 101;
249
+ readonly Processing: 102;
250
+ readonly 'Early Hints': 103;
251
+ readonly OK: 200;
252
+ readonly Created: 201;
253
+ readonly Accepted: 202;
254
+ readonly 'Non-Authoritative Information': 203;
255
+ readonly 'No Content': 204;
256
+ readonly 'Reset Content': 205;
257
+ readonly 'Partial Content': 206;
258
+ readonly 'Multi-Status': 207;
259
+ readonly 'Already Reported': 208;
260
+ readonly 'Multiple Choices': 300;
261
+ readonly 'Moved Permanently': 301;
262
+ readonly Found: 302;
263
+ readonly 'See Other': 303;
264
+ readonly 'Not Modified': 304;
265
+ readonly 'Temporary Redirect': 307;
266
+ readonly 'Permanent Redirect': 308;
267
+ readonly 'Bad Request': 400;
268
+ readonly Unauthorized: 401;
269
+ readonly 'Payment Required': 402;
270
+ readonly Forbidden: 403;
271
+ readonly 'Not Found': 404;
272
+ readonly 'Method Not Allowed': 405;
273
+ readonly 'Not Acceptable': 406;
274
+ readonly 'Proxy Authentication Required': 407;
275
+ readonly 'Request Timeout': 408;
276
+ readonly Conflict: 409;
277
+ readonly Gone: 410;
278
+ readonly 'Length Required': 411;
279
+ readonly 'Precondition Failed': 412;
280
+ readonly 'Payload Too Large': 413;
281
+ readonly 'URI Too Long': 414;
282
+ readonly 'Unsupported Media Type': 415;
283
+ readonly 'Range Not Satisfiable': 416;
284
+ readonly 'Expectation Failed': 417;
285
+ readonly "I'm a teapot": 418;
286
+ readonly 'Enhance Your Calm': 420;
287
+ readonly 'Misdirected Request': 421;
288
+ readonly 'Unprocessable Content': 422;
289
+ readonly Locked: 423;
290
+ readonly 'Failed Dependency': 424;
291
+ readonly 'Too Early': 425;
292
+ readonly 'Upgrade Required': 426;
293
+ readonly 'Precondition Required': 428;
294
+ readonly 'Too Many Requests': 429;
295
+ readonly 'Request Header Fields Too Large': 431;
296
+ readonly 'Unavailable For Legal Reasons': 451;
297
+ readonly 'Internal Server Error': 500;
298
+ readonly 'Not Implemented': 501;
299
+ readonly 'Bad Gateway': 502;
300
+ readonly 'Service Unavailable': 503;
301
+ readonly 'Gateway Timeout': 504;
302
+ readonly 'HTTP Version Not Supported': 505;
303
+ readonly 'Variant Also Negotiates': 506;
304
+ readonly 'Insufficient Storage': 507;
305
+ readonly 'Loop Detected': 508;
306
+ readonly 'Not Extended': 510;
307
+ readonly 'Network Authentication Required': 511;
308
+ }[Code] : Code>;
309
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
310
+ }) => Promise<unknown>, {}> extends infer T ? { [K in keyof T]: T[K]; } : never;
311
+ };
312
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>, {
313
+ post: {
314
+ body: unknown;
315
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/sign-out`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>;
316
+ query: unknown;
317
+ headers: unknown;
318
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, {}>, (ctx: {
319
+ body: unknown;
320
+ query: Record<string, string>;
321
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> extends infer T_2 ? T_2 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? T_2 extends object ? { [K in keyof T_2]: T_2[K]; } : T_2 : never : never;
322
+ headers: Record<string, string | undefined>;
323
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
324
+ server: import("elysia/universal").Server | null;
325
+ redirect: import("elysia").redirect;
326
+ set: {
327
+ headers: import("elysia").HTTPHeaders;
328
+ status?: number | keyof import("elysia").StatusMap;
329
+ redirect?: string;
330
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
331
+ };
332
+ path: string;
333
+ route: string;
334
+ request: Request;
335
+ store: {};
336
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
337
+ readonly 100: "Continue";
338
+ readonly 101: "Switching Protocols";
339
+ readonly 102: "Processing";
340
+ readonly 103: "Early Hints";
341
+ readonly 200: "OK";
342
+ readonly 201: "Created";
343
+ readonly 202: "Accepted";
344
+ readonly 203: "Non-Authoritative Information";
345
+ readonly 204: "No Content";
346
+ readonly 205: "Reset Content";
347
+ readonly 206: "Partial Content";
348
+ readonly 207: "Multi-Status";
349
+ readonly 208: "Already Reported";
350
+ readonly 300: "Multiple Choices";
351
+ readonly 301: "Moved Permanently";
352
+ readonly 302: "Found";
353
+ readonly 303: "See Other";
354
+ readonly 304: "Not Modified";
355
+ readonly 307: "Temporary Redirect";
356
+ readonly 308: "Permanent Redirect";
357
+ readonly 400: "Bad Request";
358
+ readonly 401: "Unauthorized";
359
+ readonly 402: "Payment Required";
360
+ readonly 403: "Forbidden";
361
+ readonly 404: "Not Found";
362
+ readonly 405: "Method Not Allowed";
363
+ readonly 406: "Not Acceptable";
364
+ readonly 407: "Proxy Authentication Required";
365
+ readonly 408: "Request Timeout";
366
+ readonly 409: "Conflict";
367
+ readonly 410: "Gone";
368
+ readonly 411: "Length Required";
369
+ readonly 412: "Precondition Failed";
370
+ readonly 413: "Payload Too Large";
371
+ readonly 414: "URI Too Long";
372
+ readonly 415: "Unsupported Media Type";
373
+ readonly 416: "Range Not Satisfiable";
374
+ readonly 417: "Expectation Failed";
375
+ readonly 418: "I'm a teapot";
376
+ readonly 420: "Enhance Your Calm";
377
+ readonly 421: "Misdirected Request";
378
+ readonly 422: "Unprocessable Content";
379
+ readonly 423: "Locked";
380
+ readonly 424: "Failed Dependency";
381
+ readonly 425: "Too Early";
382
+ readonly 426: "Upgrade Required";
383
+ readonly 428: "Precondition Required";
384
+ readonly 429: "Too Many Requests";
385
+ readonly 431: "Request Header Fields Too Large";
386
+ readonly 451: "Unavailable For Legal Reasons";
387
+ readonly 500: "Internal Server Error";
388
+ readonly 501: "Not Implemented";
389
+ readonly 502: "Bad Gateway";
390
+ readonly 503: "Service Unavailable";
391
+ readonly 504: "Gateway Timeout";
392
+ readonly 505: "HTTP Version Not Supported";
393
+ readonly 506: "Variant Also Negotiates";
394
+ readonly 507: "Insufficient Storage";
395
+ readonly 508: "Loop Detected";
396
+ readonly 510: "Not Extended";
397
+ readonly 511: "Network Authentication Required";
398
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
399
+ readonly Continue: 100;
400
+ readonly 'Switching Protocols': 101;
401
+ readonly Processing: 102;
402
+ readonly 'Early Hints': 103;
403
+ readonly OK: 200;
404
+ readonly Created: 201;
405
+ readonly Accepted: 202;
406
+ readonly 'Non-Authoritative Information': 203;
407
+ readonly 'No Content': 204;
408
+ readonly 'Reset Content': 205;
409
+ readonly 'Partial Content': 206;
410
+ readonly 'Multi-Status': 207;
411
+ readonly 'Already Reported': 208;
412
+ readonly 'Multiple Choices': 300;
413
+ readonly 'Moved Permanently': 301;
414
+ readonly Found: 302;
415
+ readonly 'See Other': 303;
416
+ readonly 'Not Modified': 304;
417
+ readonly 'Temporary Redirect': 307;
418
+ readonly 'Permanent Redirect': 308;
419
+ readonly 'Bad Request': 400;
420
+ readonly Unauthorized: 401;
421
+ readonly 'Payment Required': 402;
422
+ readonly Forbidden: 403;
423
+ readonly 'Not Found': 404;
424
+ readonly 'Method Not Allowed': 405;
425
+ readonly 'Not Acceptable': 406;
426
+ readonly 'Proxy Authentication Required': 407;
427
+ readonly 'Request Timeout': 408;
428
+ readonly Conflict: 409;
429
+ readonly Gone: 410;
430
+ readonly 'Length Required': 411;
431
+ readonly 'Precondition Failed': 412;
432
+ readonly 'Payload Too Large': 413;
433
+ readonly 'URI Too Long': 414;
434
+ readonly 'Unsupported Media Type': 415;
435
+ readonly 'Range Not Satisfiable': 416;
436
+ readonly 'Expectation Failed': 417;
437
+ readonly "I'm a teapot": 418;
438
+ readonly 'Enhance Your Calm': 420;
439
+ readonly 'Misdirected Request': 421;
440
+ readonly 'Unprocessable Content': 422;
441
+ readonly Locked: 423;
442
+ readonly 'Failed Dependency': 424;
443
+ readonly 'Too Early': 425;
444
+ readonly 'Upgrade Required': 426;
445
+ readonly 'Precondition Required': 428;
446
+ readonly 'Too Many Requests': 429;
447
+ readonly 'Request Header Fields Too Large': 431;
448
+ readonly 'Unavailable For Legal Reasons': 451;
449
+ readonly 'Internal Server Error': 500;
450
+ readonly 'Not Implemented': 501;
451
+ readonly 'Bad Gateway': 502;
452
+ readonly 'Service Unavailable': 503;
453
+ readonly 'Gateway Timeout': 504;
454
+ readonly 'HTTP Version Not Supported': 505;
455
+ readonly 'Variant Also Negotiates': 506;
456
+ readonly 'Insufficient Storage': 507;
457
+ readonly 'Loop Detected': 508;
458
+ readonly 'Not Extended': 510;
459
+ readonly 'Network Authentication Required': 511;
460
+ }[Code] : Code>;
461
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
462
+ }) => Promise<Response>, {}> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never;
463
+ };
464
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>, {
465
+ post: {
466
+ body: unknown;
467
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/stop-impersonating`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>;
468
+ query: unknown;
469
+ headers: unknown;
470
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, {}>, (ctx: {
471
+ body: unknown;
472
+ query: Record<string, string>;
473
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> extends infer T_3 ? T_3 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? T_3 extends object ? { [K in keyof T_3]: T_3[K]; } : T_3 : never : never;
474
+ headers: Record<string, string | undefined>;
475
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
476
+ server: import("elysia/universal").Server | null;
477
+ redirect: import("elysia").redirect;
478
+ set: {
479
+ headers: import("elysia").HTTPHeaders;
480
+ status?: number | keyof import("elysia").StatusMap;
481
+ redirect?: string;
482
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
483
+ };
484
+ path: string;
485
+ route: string;
486
+ request: Request;
487
+ store: {};
488
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
489
+ readonly 100: "Continue";
490
+ readonly 101: "Switching Protocols";
491
+ readonly 102: "Processing";
492
+ readonly 103: "Early Hints";
493
+ readonly 200: "OK";
494
+ readonly 201: "Created";
495
+ readonly 202: "Accepted";
496
+ readonly 203: "Non-Authoritative Information";
497
+ readonly 204: "No Content";
498
+ readonly 205: "Reset Content";
499
+ readonly 206: "Partial Content";
500
+ readonly 207: "Multi-Status";
501
+ readonly 208: "Already Reported";
502
+ readonly 300: "Multiple Choices";
503
+ readonly 301: "Moved Permanently";
504
+ readonly 302: "Found";
505
+ readonly 303: "See Other";
506
+ readonly 304: "Not Modified";
507
+ readonly 307: "Temporary Redirect";
508
+ readonly 308: "Permanent Redirect";
509
+ readonly 400: "Bad Request";
510
+ readonly 401: "Unauthorized";
511
+ readonly 402: "Payment Required";
512
+ readonly 403: "Forbidden";
513
+ readonly 404: "Not Found";
514
+ readonly 405: "Method Not Allowed";
515
+ readonly 406: "Not Acceptable";
516
+ readonly 407: "Proxy Authentication Required";
517
+ readonly 408: "Request Timeout";
518
+ readonly 409: "Conflict";
519
+ readonly 410: "Gone";
520
+ readonly 411: "Length Required";
521
+ readonly 412: "Precondition Failed";
522
+ readonly 413: "Payload Too Large";
523
+ readonly 414: "URI Too Long";
524
+ readonly 415: "Unsupported Media Type";
525
+ readonly 416: "Range Not Satisfiable";
526
+ readonly 417: "Expectation Failed";
527
+ readonly 418: "I'm a teapot";
528
+ readonly 420: "Enhance Your Calm";
529
+ readonly 421: "Misdirected Request";
530
+ readonly 422: "Unprocessable Content";
531
+ readonly 423: "Locked";
532
+ readonly 424: "Failed Dependency";
533
+ readonly 425: "Too Early";
534
+ readonly 426: "Upgrade Required";
535
+ readonly 428: "Precondition Required";
536
+ readonly 429: "Too Many Requests";
537
+ readonly 431: "Request Header Fields Too Large";
538
+ readonly 451: "Unavailable For Legal Reasons";
539
+ readonly 500: "Internal Server Error";
540
+ readonly 501: "Not Implemented";
541
+ readonly 502: "Bad Gateway";
542
+ readonly 503: "Service Unavailable";
543
+ readonly 504: "Gateway Timeout";
544
+ readonly 505: "HTTP Version Not Supported";
545
+ readonly 506: "Variant Also Negotiates";
546
+ readonly 507: "Insufficient Storage";
547
+ readonly 508: "Loop Detected";
548
+ readonly 510: "Not Extended";
549
+ readonly 511: "Network Authentication Required";
550
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
551
+ readonly Continue: 100;
552
+ readonly 'Switching Protocols': 101;
553
+ readonly Processing: 102;
554
+ readonly 'Early Hints': 103;
555
+ readonly OK: 200;
556
+ readonly Created: 201;
557
+ readonly Accepted: 202;
558
+ readonly 'Non-Authoritative Information': 203;
559
+ readonly 'No Content': 204;
560
+ readonly 'Reset Content': 205;
561
+ readonly 'Partial Content': 206;
562
+ readonly 'Multi-Status': 207;
563
+ readonly 'Already Reported': 208;
564
+ readonly 'Multiple Choices': 300;
565
+ readonly 'Moved Permanently': 301;
566
+ readonly Found: 302;
567
+ readonly 'See Other': 303;
568
+ readonly 'Not Modified': 304;
569
+ readonly 'Temporary Redirect': 307;
570
+ readonly 'Permanent Redirect': 308;
571
+ readonly 'Bad Request': 400;
572
+ readonly Unauthorized: 401;
573
+ readonly 'Payment Required': 402;
574
+ readonly Forbidden: 403;
575
+ readonly 'Not Found': 404;
576
+ readonly 'Method Not Allowed': 405;
577
+ readonly 'Not Acceptable': 406;
578
+ readonly 'Proxy Authentication Required': 407;
579
+ readonly 'Request Timeout': 408;
580
+ readonly Conflict: 409;
581
+ readonly Gone: 410;
582
+ readonly 'Length Required': 411;
583
+ readonly 'Precondition Failed': 412;
584
+ readonly 'Payload Too Large': 413;
585
+ readonly 'URI Too Long': 414;
586
+ readonly 'Unsupported Media Type': 415;
587
+ readonly 'Range Not Satisfiable': 416;
588
+ readonly 'Expectation Failed': 417;
589
+ readonly "I'm a teapot": 418;
590
+ readonly 'Enhance Your Calm': 420;
591
+ readonly 'Misdirected Request': 421;
592
+ readonly 'Unprocessable Content': 422;
593
+ readonly Locked: 423;
594
+ readonly 'Failed Dependency': 424;
595
+ readonly 'Too Early': 425;
596
+ readonly 'Upgrade Required': 426;
597
+ readonly 'Precondition Required': 428;
598
+ readonly 'Too Many Requests': 429;
599
+ readonly 'Request Header Fields Too Large': 431;
600
+ readonly 'Unavailable For Legal Reasons': 451;
601
+ readonly 'Internal Server Error': 500;
602
+ readonly 'Not Implemented': 501;
603
+ readonly 'Bad Gateway': 502;
604
+ readonly 'Service Unavailable': 503;
605
+ readonly 'Gateway Timeout': 504;
606
+ readonly 'HTTP Version Not Supported': 505;
607
+ readonly 'Variant Also Negotiates': 506;
608
+ readonly 'Insufficient Storage': 507;
609
+ readonly 'Loop Detected': 508;
610
+ readonly 'Not Extended': 510;
611
+ readonly 'Network Authentication Required': 511;
612
+ }[Code] : Code>;
613
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
614
+ }) => Promise<Response>, {}> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
615
+ };
616
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>, {
617
+ post: {
618
+ body: unknown;
619
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/cancel-deletion`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>;
620
+ query: unknown;
621
+ headers: unknown;
622
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, {}>, (ctx: {
623
+ body: unknown;
624
+ query: Record<string, string>;
625
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> extends infer T_4 ? T_4 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? T_4 extends object ? { [K in keyof T_4]: T_4[K]; } : T_4 : never : never;
626
+ headers: Record<string, string | undefined>;
627
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
628
+ server: import("elysia/universal").Server | null;
629
+ redirect: import("elysia").redirect;
630
+ set: {
631
+ headers: import("elysia").HTTPHeaders;
632
+ status?: number | keyof import("elysia").StatusMap;
633
+ redirect?: string;
634
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
635
+ };
636
+ path: string;
637
+ route: string;
638
+ request: Request;
639
+ store: {};
640
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
641
+ readonly 100: "Continue";
642
+ readonly 101: "Switching Protocols";
643
+ readonly 102: "Processing";
644
+ readonly 103: "Early Hints";
645
+ readonly 200: "OK";
646
+ readonly 201: "Created";
647
+ readonly 202: "Accepted";
648
+ readonly 203: "Non-Authoritative Information";
649
+ readonly 204: "No Content";
650
+ readonly 205: "Reset Content";
651
+ readonly 206: "Partial Content";
652
+ readonly 207: "Multi-Status";
653
+ readonly 208: "Already Reported";
654
+ readonly 300: "Multiple Choices";
655
+ readonly 301: "Moved Permanently";
656
+ readonly 302: "Found";
657
+ readonly 303: "See Other";
658
+ readonly 304: "Not Modified";
659
+ readonly 307: "Temporary Redirect";
660
+ readonly 308: "Permanent Redirect";
661
+ readonly 400: "Bad Request";
662
+ readonly 401: "Unauthorized";
663
+ readonly 402: "Payment Required";
664
+ readonly 403: "Forbidden";
665
+ readonly 404: "Not Found";
666
+ readonly 405: "Method Not Allowed";
667
+ readonly 406: "Not Acceptable";
668
+ readonly 407: "Proxy Authentication Required";
669
+ readonly 408: "Request Timeout";
670
+ readonly 409: "Conflict";
671
+ readonly 410: "Gone";
672
+ readonly 411: "Length Required";
673
+ readonly 412: "Precondition Failed";
674
+ readonly 413: "Payload Too Large";
675
+ readonly 414: "URI Too Long";
676
+ readonly 415: "Unsupported Media Type";
677
+ readonly 416: "Range Not Satisfiable";
678
+ readonly 417: "Expectation Failed";
679
+ readonly 418: "I'm a teapot";
680
+ readonly 420: "Enhance Your Calm";
681
+ readonly 421: "Misdirected Request";
682
+ readonly 422: "Unprocessable Content";
683
+ readonly 423: "Locked";
684
+ readonly 424: "Failed Dependency";
685
+ readonly 425: "Too Early";
686
+ readonly 426: "Upgrade Required";
687
+ readonly 428: "Precondition Required";
688
+ readonly 429: "Too Many Requests";
689
+ readonly 431: "Request Header Fields Too Large";
690
+ readonly 451: "Unavailable For Legal Reasons";
691
+ readonly 500: "Internal Server Error";
692
+ readonly 501: "Not Implemented";
693
+ readonly 502: "Bad Gateway";
694
+ readonly 503: "Service Unavailable";
695
+ readonly 504: "Gateway Timeout";
696
+ readonly 505: "HTTP Version Not Supported";
697
+ readonly 506: "Variant Also Negotiates";
698
+ readonly 507: "Insufficient Storage";
699
+ readonly 508: "Loop Detected";
700
+ readonly 510: "Not Extended";
701
+ readonly 511: "Network Authentication Required";
702
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
703
+ readonly Continue: 100;
704
+ readonly 'Switching Protocols': 101;
705
+ readonly Processing: 102;
706
+ readonly 'Early Hints': 103;
707
+ readonly OK: 200;
708
+ readonly Created: 201;
709
+ readonly Accepted: 202;
710
+ readonly 'Non-Authoritative Information': 203;
711
+ readonly 'No Content': 204;
712
+ readonly 'Reset Content': 205;
713
+ readonly 'Partial Content': 206;
714
+ readonly 'Multi-Status': 207;
715
+ readonly 'Already Reported': 208;
716
+ readonly 'Multiple Choices': 300;
717
+ readonly 'Moved Permanently': 301;
718
+ readonly Found: 302;
719
+ readonly 'See Other': 303;
720
+ readonly 'Not Modified': 304;
721
+ readonly 'Temporary Redirect': 307;
722
+ readonly 'Permanent Redirect': 308;
723
+ readonly 'Bad Request': 400;
724
+ readonly Unauthorized: 401;
725
+ readonly 'Payment Required': 402;
726
+ readonly Forbidden: 403;
727
+ readonly 'Not Found': 404;
728
+ readonly 'Method Not Allowed': 405;
729
+ readonly 'Not Acceptable': 406;
730
+ readonly 'Proxy Authentication Required': 407;
731
+ readonly 'Request Timeout': 408;
732
+ readonly Conflict: 409;
733
+ readonly Gone: 410;
734
+ readonly 'Length Required': 411;
735
+ readonly 'Precondition Failed': 412;
736
+ readonly 'Payload Too Large': 413;
737
+ readonly 'URI Too Long': 414;
738
+ readonly 'Unsupported Media Type': 415;
739
+ readonly 'Range Not Satisfiable': 416;
740
+ readonly 'Expectation Failed': 417;
741
+ readonly "I'm a teapot": 418;
742
+ readonly 'Enhance Your Calm': 420;
743
+ readonly 'Misdirected Request': 421;
744
+ readonly 'Unprocessable Content': 422;
745
+ readonly Locked: 423;
746
+ readonly 'Failed Dependency': 424;
747
+ readonly 'Too Early': 425;
748
+ readonly 'Upgrade Required': 426;
749
+ readonly 'Precondition Required': 428;
750
+ readonly 'Too Many Requests': 429;
751
+ readonly 'Request Header Fields Too Large': 431;
752
+ readonly 'Unavailable For Legal Reasons': 451;
753
+ readonly 'Internal Server Error': 500;
754
+ readonly 'Not Implemented': 501;
755
+ readonly 'Bad Gateway': 502;
756
+ readonly 'Service Unavailable': 503;
757
+ readonly 'Gateway Timeout': 504;
758
+ readonly 'HTTP Version Not Supported': 505;
759
+ readonly 'Variant Also Negotiates': 506;
760
+ readonly 'Insufficient Storage': 507;
761
+ readonly 'Loop Detected': 508;
762
+ readonly 'Not Extended': 510;
763
+ readonly 'Network Authentication Required': 511;
764
+ }[Code] : Code>;
765
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
766
+ }) => Promise<Response>, {}> extends infer T_3 ? { [K in keyof T_3]: T_3[K]; } : never;
767
+ };
768
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>, {
769
+ get: {
770
+ body: unknown;
771
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>;
772
+ query: unknown;
773
+ headers: unknown;
774
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, {}>, (ctx: {
775
+ body: unknown;
776
+ query: Record<string, string>;
777
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> extends infer T_5 ? T_5 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? T_5 extends object ? { [K in keyof T_5]: T_5[K]; } : T_5 : never : never;
778
+ headers: Record<string, string | undefined>;
779
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
780
+ server: import("elysia/universal").Server | null;
781
+ redirect: import("elysia").redirect;
782
+ set: {
783
+ headers: import("elysia").HTTPHeaders;
784
+ status?: number | keyof import("elysia").StatusMap;
785
+ redirect?: string;
786
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
787
+ };
788
+ path: string;
789
+ route: string;
790
+ request: Request;
791
+ store: {};
792
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
793
+ readonly 100: "Continue";
794
+ readonly 101: "Switching Protocols";
795
+ readonly 102: "Processing";
796
+ readonly 103: "Early Hints";
797
+ readonly 200: "OK";
798
+ readonly 201: "Created";
799
+ readonly 202: "Accepted";
800
+ readonly 203: "Non-Authoritative Information";
801
+ readonly 204: "No Content";
802
+ readonly 205: "Reset Content";
803
+ readonly 206: "Partial Content";
804
+ readonly 207: "Multi-Status";
805
+ readonly 208: "Already Reported";
806
+ readonly 300: "Multiple Choices";
807
+ readonly 301: "Moved Permanently";
808
+ readonly 302: "Found";
809
+ readonly 303: "See Other";
810
+ readonly 304: "Not Modified";
811
+ readonly 307: "Temporary Redirect";
812
+ readonly 308: "Permanent Redirect";
813
+ readonly 400: "Bad Request";
814
+ readonly 401: "Unauthorized";
815
+ readonly 402: "Payment Required";
816
+ readonly 403: "Forbidden";
817
+ readonly 404: "Not Found";
818
+ readonly 405: "Method Not Allowed";
819
+ readonly 406: "Not Acceptable";
820
+ readonly 407: "Proxy Authentication Required";
821
+ readonly 408: "Request Timeout";
822
+ readonly 409: "Conflict";
823
+ readonly 410: "Gone";
824
+ readonly 411: "Length Required";
825
+ readonly 412: "Precondition Failed";
826
+ readonly 413: "Payload Too Large";
827
+ readonly 414: "URI Too Long";
828
+ readonly 415: "Unsupported Media Type";
829
+ readonly 416: "Range Not Satisfiable";
830
+ readonly 417: "Expectation Failed";
831
+ readonly 418: "I'm a teapot";
832
+ readonly 420: "Enhance Your Calm";
833
+ readonly 421: "Misdirected Request";
834
+ readonly 422: "Unprocessable Content";
835
+ readonly 423: "Locked";
836
+ readonly 424: "Failed Dependency";
837
+ readonly 425: "Too Early";
838
+ readonly 426: "Upgrade Required";
839
+ readonly 428: "Precondition Required";
840
+ readonly 429: "Too Many Requests";
841
+ readonly 431: "Request Header Fields Too Large";
842
+ readonly 451: "Unavailable For Legal Reasons";
843
+ readonly 500: "Internal Server Error";
844
+ readonly 501: "Not Implemented";
845
+ readonly 502: "Bad Gateway";
846
+ readonly 503: "Service Unavailable";
847
+ readonly 504: "Gateway Timeout";
848
+ readonly 505: "HTTP Version Not Supported";
849
+ readonly 506: "Variant Also Negotiates";
850
+ readonly 507: "Insufficient Storage";
851
+ readonly 508: "Loop Detected";
852
+ readonly 510: "Not Extended";
853
+ readonly 511: "Network Authentication Required";
854
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
855
+ readonly Continue: 100;
856
+ readonly 'Switching Protocols': 101;
857
+ readonly Processing: 102;
858
+ readonly 'Early Hints': 103;
859
+ readonly OK: 200;
860
+ readonly Created: 201;
861
+ readonly Accepted: 202;
862
+ readonly 'Non-Authoritative Information': 203;
863
+ readonly 'No Content': 204;
864
+ readonly 'Reset Content': 205;
865
+ readonly 'Partial Content': 206;
866
+ readonly 'Multi-Status': 207;
867
+ readonly 'Already Reported': 208;
868
+ readonly 'Multiple Choices': 300;
869
+ readonly 'Moved Permanently': 301;
870
+ readonly Found: 302;
871
+ readonly 'See Other': 303;
872
+ readonly 'Not Modified': 304;
873
+ readonly 'Temporary Redirect': 307;
874
+ readonly 'Permanent Redirect': 308;
875
+ readonly 'Bad Request': 400;
876
+ readonly Unauthorized: 401;
877
+ readonly 'Payment Required': 402;
878
+ readonly Forbidden: 403;
879
+ readonly 'Not Found': 404;
880
+ readonly 'Method Not Allowed': 405;
881
+ readonly 'Not Acceptable': 406;
882
+ readonly 'Proxy Authentication Required': 407;
883
+ readonly 'Request Timeout': 408;
884
+ readonly Conflict: 409;
885
+ readonly Gone: 410;
886
+ readonly 'Length Required': 411;
887
+ readonly 'Precondition Failed': 412;
888
+ readonly 'Payload Too Large': 413;
889
+ readonly 'URI Too Long': 414;
890
+ readonly 'Unsupported Media Type': 415;
891
+ readonly 'Range Not Satisfiable': 416;
892
+ readonly 'Expectation Failed': 417;
893
+ readonly "I'm a teapot": 418;
894
+ readonly 'Enhance Your Calm': 420;
895
+ readonly 'Misdirected Request': 421;
896
+ readonly 'Unprocessable Content': 422;
897
+ readonly Locked: 423;
898
+ readonly 'Failed Dependency': 424;
899
+ readonly 'Too Early': 425;
900
+ readonly 'Upgrade Required': 426;
901
+ readonly 'Precondition Required': 428;
902
+ readonly 'Too Many Requests': 429;
903
+ readonly 'Request Header Fields Too Large': 431;
904
+ readonly 'Unavailable For Legal Reasons': 451;
905
+ readonly 'Internal Server Error': 500;
906
+ readonly 'Not Implemented': 501;
907
+ readonly 'Bad Gateway': 502;
908
+ readonly 'Service Unavailable': 503;
909
+ readonly 'Gateway Timeout': 504;
910
+ readonly 'HTTP Version Not Supported': 505;
911
+ readonly 'Variant Also Negotiates': 506;
912
+ readonly 'Insufficient Storage': 507;
913
+ readonly 'Loop Detected': 508;
914
+ readonly 'Not Extended': 510;
915
+ readonly 'Network Authentication Required': 511;
916
+ }[Code] : Code>;
917
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
918
+ }) => Promise<unknown>, {}> extends infer T_4 ? { [K in keyof T_4]: T_4[K]; } : never;
919
+ };
920
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
921
+ get: {
922
+ body: unknown;
923
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
924
+ query: unknown;
925
+ headers: unknown;
926
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
927
+ body: unknown;
928
+ query: Record<string, string>;
929
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
930
+ headers: Record<string, string | undefined>;
931
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
932
+ server: import("elysia/universal").Server | null;
933
+ redirect: import("elysia").redirect;
934
+ set: {
935
+ headers: import("elysia").HTTPHeaders;
936
+ status?: number | keyof import("elysia").StatusMap;
937
+ redirect?: string;
938
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
939
+ };
940
+ path: string;
941
+ route: string;
942
+ request: Request;
943
+ store: {};
944
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
945
+ readonly 100: "Continue";
946
+ readonly 101: "Switching Protocols";
947
+ readonly 102: "Processing";
948
+ readonly 103: "Early Hints";
949
+ readonly 200: "OK";
950
+ readonly 201: "Created";
951
+ readonly 202: "Accepted";
952
+ readonly 203: "Non-Authoritative Information";
953
+ readonly 204: "No Content";
954
+ readonly 205: "Reset Content";
955
+ readonly 206: "Partial Content";
956
+ readonly 207: "Multi-Status";
957
+ readonly 208: "Already Reported";
958
+ readonly 300: "Multiple Choices";
959
+ readonly 301: "Moved Permanently";
960
+ readonly 302: "Found";
961
+ readonly 303: "See Other";
962
+ readonly 304: "Not Modified";
963
+ readonly 307: "Temporary Redirect";
964
+ readonly 308: "Permanent Redirect";
965
+ readonly 400: "Bad Request";
966
+ readonly 401: "Unauthorized";
967
+ readonly 402: "Payment Required";
968
+ readonly 403: "Forbidden";
969
+ readonly 404: "Not Found";
970
+ readonly 405: "Method Not Allowed";
971
+ readonly 406: "Not Acceptable";
972
+ readonly 407: "Proxy Authentication Required";
973
+ readonly 408: "Request Timeout";
974
+ readonly 409: "Conflict";
975
+ readonly 410: "Gone";
976
+ readonly 411: "Length Required";
977
+ readonly 412: "Precondition Failed";
978
+ readonly 413: "Payload Too Large";
979
+ readonly 414: "URI Too Long";
980
+ readonly 415: "Unsupported Media Type";
981
+ readonly 416: "Range Not Satisfiable";
982
+ readonly 417: "Expectation Failed";
983
+ readonly 418: "I'm a teapot";
984
+ readonly 420: "Enhance Your Calm";
985
+ readonly 421: "Misdirected Request";
986
+ readonly 422: "Unprocessable Content";
987
+ readonly 423: "Locked";
988
+ readonly 424: "Failed Dependency";
989
+ readonly 425: "Too Early";
990
+ readonly 426: "Upgrade Required";
991
+ readonly 428: "Precondition Required";
992
+ readonly 429: "Too Many Requests";
993
+ readonly 431: "Request Header Fields Too Large";
994
+ readonly 451: "Unavailable For Legal Reasons";
995
+ readonly 500: "Internal Server Error";
996
+ readonly 501: "Not Implemented";
997
+ readonly 502: "Bad Gateway";
998
+ readonly 503: "Service Unavailable";
999
+ readonly 504: "Gateway Timeout";
1000
+ readonly 505: "HTTP Version Not Supported";
1001
+ readonly 506: "Variant Also Negotiates";
1002
+ readonly 507: "Insufficient Storage";
1003
+ readonly 508: "Loop Detected";
1004
+ readonly 510: "Not Extended";
1005
+ readonly 511: "Network Authentication Required";
1006
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1007
+ readonly Continue: 100;
1008
+ readonly 'Switching Protocols': 101;
1009
+ readonly Processing: 102;
1010
+ readonly 'Early Hints': 103;
1011
+ readonly OK: 200;
1012
+ readonly Created: 201;
1013
+ readonly Accepted: 202;
1014
+ readonly 'Non-Authoritative Information': 203;
1015
+ readonly 'No Content': 204;
1016
+ readonly 'Reset Content': 205;
1017
+ readonly 'Partial Content': 206;
1018
+ readonly 'Multi-Status': 207;
1019
+ readonly 'Already Reported': 208;
1020
+ readonly 'Multiple Choices': 300;
1021
+ readonly 'Moved Permanently': 301;
1022
+ readonly Found: 302;
1023
+ readonly 'See Other': 303;
1024
+ readonly 'Not Modified': 304;
1025
+ readonly 'Temporary Redirect': 307;
1026
+ readonly 'Permanent Redirect': 308;
1027
+ readonly 'Bad Request': 400;
1028
+ readonly Unauthorized: 401;
1029
+ readonly 'Payment Required': 402;
1030
+ readonly Forbidden: 403;
1031
+ readonly 'Not Found': 404;
1032
+ readonly 'Method Not Allowed': 405;
1033
+ readonly 'Not Acceptable': 406;
1034
+ readonly 'Proxy Authentication Required': 407;
1035
+ readonly 'Request Timeout': 408;
1036
+ readonly Conflict: 409;
1037
+ readonly Gone: 410;
1038
+ readonly 'Length Required': 411;
1039
+ readonly 'Precondition Failed': 412;
1040
+ readonly 'Payload Too Large': 413;
1041
+ readonly 'URI Too Long': 414;
1042
+ readonly 'Unsupported Media Type': 415;
1043
+ readonly 'Range Not Satisfiable': 416;
1044
+ readonly 'Expectation Failed': 417;
1045
+ readonly "I'm a teapot": 418;
1046
+ readonly 'Enhance Your Calm': 420;
1047
+ readonly 'Misdirected Request': 421;
1048
+ readonly 'Unprocessable Content': 422;
1049
+ readonly Locked: 423;
1050
+ readonly 'Failed Dependency': 424;
1051
+ readonly 'Too Early': 425;
1052
+ readonly 'Upgrade Required': 426;
1053
+ readonly 'Precondition Required': 428;
1054
+ readonly 'Too Many Requests': 429;
1055
+ readonly 'Request Header Fields Too Large': 431;
1056
+ readonly 'Unavailable For Legal Reasons': 451;
1057
+ readonly 'Internal Server Error': 500;
1058
+ readonly 'Not Implemented': 501;
1059
+ readonly 'Bad Gateway': 502;
1060
+ readonly 'Service Unavailable': 503;
1061
+ readonly 'Gateway Timeout': 504;
1062
+ readonly 'HTTP Version Not Supported': 505;
1063
+ readonly 'Variant Also Negotiates': 506;
1064
+ readonly 'Insufficient Storage': 507;
1065
+ readonly 'Loop Detected': 508;
1066
+ readonly 'Not Extended': 510;
1067
+ readonly 'Network Authentication Required': 511;
1068
+ }[Code] : Code>;
1069
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1070
+ }) => Promise<Response>, {}> extends infer T_5 ? { [K in keyof T_5]: T_5[K]; } : never;
1071
+ };
1072
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
1073
+ post: {
1074
+ body: unknown;
1075
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
1076
+ query: unknown;
1077
+ headers: unknown;
1078
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
1079
+ body: unknown;
1080
+ query: Record<string, string>;
1081
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
1082
+ headers: Record<string, string | undefined>;
1083
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1084
+ server: import("elysia/universal").Server | null;
1085
+ redirect: import("elysia").redirect;
1086
+ set: {
1087
+ headers: import("elysia").HTTPHeaders;
1088
+ status?: number | keyof import("elysia").StatusMap;
1089
+ redirect?: string;
1090
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1091
+ };
1092
+ path: string;
1093
+ route: string;
1094
+ request: Request;
1095
+ store: {};
1096
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1097
+ readonly 100: "Continue";
1098
+ readonly 101: "Switching Protocols";
1099
+ readonly 102: "Processing";
1100
+ readonly 103: "Early Hints";
1101
+ readonly 200: "OK";
1102
+ readonly 201: "Created";
1103
+ readonly 202: "Accepted";
1104
+ readonly 203: "Non-Authoritative Information";
1105
+ readonly 204: "No Content";
1106
+ readonly 205: "Reset Content";
1107
+ readonly 206: "Partial Content";
1108
+ readonly 207: "Multi-Status";
1109
+ readonly 208: "Already Reported";
1110
+ readonly 300: "Multiple Choices";
1111
+ readonly 301: "Moved Permanently";
1112
+ readonly 302: "Found";
1113
+ readonly 303: "See Other";
1114
+ readonly 304: "Not Modified";
1115
+ readonly 307: "Temporary Redirect";
1116
+ readonly 308: "Permanent Redirect";
1117
+ readonly 400: "Bad Request";
1118
+ readonly 401: "Unauthorized";
1119
+ readonly 402: "Payment Required";
1120
+ readonly 403: "Forbidden";
1121
+ readonly 404: "Not Found";
1122
+ readonly 405: "Method Not Allowed";
1123
+ readonly 406: "Not Acceptable";
1124
+ readonly 407: "Proxy Authentication Required";
1125
+ readonly 408: "Request Timeout";
1126
+ readonly 409: "Conflict";
1127
+ readonly 410: "Gone";
1128
+ readonly 411: "Length Required";
1129
+ readonly 412: "Precondition Failed";
1130
+ readonly 413: "Payload Too Large";
1131
+ readonly 414: "URI Too Long";
1132
+ readonly 415: "Unsupported Media Type";
1133
+ readonly 416: "Range Not Satisfiable";
1134
+ readonly 417: "Expectation Failed";
1135
+ readonly 418: "I'm a teapot";
1136
+ readonly 420: "Enhance Your Calm";
1137
+ readonly 421: "Misdirected Request";
1138
+ readonly 422: "Unprocessable Content";
1139
+ readonly 423: "Locked";
1140
+ readonly 424: "Failed Dependency";
1141
+ readonly 425: "Too Early";
1142
+ readonly 426: "Upgrade Required";
1143
+ readonly 428: "Precondition Required";
1144
+ readonly 429: "Too Many Requests";
1145
+ readonly 431: "Request Header Fields Too Large";
1146
+ readonly 451: "Unavailable For Legal Reasons";
1147
+ readonly 500: "Internal Server Error";
1148
+ readonly 501: "Not Implemented";
1149
+ readonly 502: "Bad Gateway";
1150
+ readonly 503: "Service Unavailable";
1151
+ readonly 504: "Gateway Timeout";
1152
+ readonly 505: "HTTP Version Not Supported";
1153
+ readonly 506: "Variant Also Negotiates";
1154
+ readonly 507: "Insufficient Storage";
1155
+ readonly 508: "Loop Detected";
1156
+ readonly 510: "Not Extended";
1157
+ readonly 511: "Network Authentication Required";
1158
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1159
+ readonly Continue: 100;
1160
+ readonly 'Switching Protocols': 101;
1161
+ readonly Processing: 102;
1162
+ readonly 'Early Hints': 103;
1163
+ readonly OK: 200;
1164
+ readonly Created: 201;
1165
+ readonly Accepted: 202;
1166
+ readonly 'Non-Authoritative Information': 203;
1167
+ readonly 'No Content': 204;
1168
+ readonly 'Reset Content': 205;
1169
+ readonly 'Partial Content': 206;
1170
+ readonly 'Multi-Status': 207;
1171
+ readonly 'Already Reported': 208;
1172
+ readonly 'Multiple Choices': 300;
1173
+ readonly 'Moved Permanently': 301;
1174
+ readonly Found: 302;
1175
+ readonly 'See Other': 303;
1176
+ readonly 'Not Modified': 304;
1177
+ readonly 'Temporary Redirect': 307;
1178
+ readonly 'Permanent Redirect': 308;
1179
+ readonly 'Bad Request': 400;
1180
+ readonly Unauthorized: 401;
1181
+ readonly 'Payment Required': 402;
1182
+ readonly Forbidden: 403;
1183
+ readonly 'Not Found': 404;
1184
+ readonly 'Method Not Allowed': 405;
1185
+ readonly 'Not Acceptable': 406;
1186
+ readonly 'Proxy Authentication Required': 407;
1187
+ readonly 'Request Timeout': 408;
1188
+ readonly Conflict: 409;
1189
+ readonly Gone: 410;
1190
+ readonly 'Length Required': 411;
1191
+ readonly 'Precondition Failed': 412;
1192
+ readonly 'Payload Too Large': 413;
1193
+ readonly 'URI Too Long': 414;
1194
+ readonly 'Unsupported Media Type': 415;
1195
+ readonly 'Range Not Satisfiable': 416;
1196
+ readonly 'Expectation Failed': 417;
1197
+ readonly "I'm a teapot": 418;
1198
+ readonly 'Enhance Your Calm': 420;
1199
+ readonly 'Misdirected Request': 421;
1200
+ readonly 'Unprocessable Content': 422;
1201
+ readonly Locked: 423;
1202
+ readonly 'Failed Dependency': 424;
1203
+ readonly 'Too Early': 425;
1204
+ readonly 'Upgrade Required': 426;
1205
+ readonly 'Precondition Required': 428;
1206
+ readonly 'Too Many Requests': 429;
1207
+ readonly 'Request Header Fields Too Large': 431;
1208
+ readonly 'Unavailable For Legal Reasons': 451;
1209
+ readonly 'Internal Server Error': 500;
1210
+ readonly 'Not Implemented': 501;
1211
+ readonly 'Bad Gateway': 502;
1212
+ readonly 'Service Unavailable': 503;
1213
+ readonly 'Gateway Timeout': 504;
1214
+ readonly 'HTTP Version Not Supported': 505;
1215
+ readonly 'Variant Also Negotiates': 506;
1216
+ readonly 'Insufficient Storage': 507;
1217
+ readonly 'Loop Detected': 508;
1218
+ readonly 'Not Extended': 510;
1219
+ readonly 'Network Authentication Required': 511;
1220
+ }[Code] : Code>;
1221
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1222
+ }) => unknown, {}> extends infer T_6 ? { [K in keyof T_6]: T_6[K]; } : never;
1223
+ };
1224
+ }>, {
1225
+ derive: {};
1226
+ resolve: {};
1227
+ schema: {};
1228
+ standaloneSchema: {};
1229
+ response: {};
1230
+ }, {
1231
+ derive: {};
1232
+ resolve: {};
1233
+ schema: {};
1234
+ standaloneSchema: {};
1235
+ response: {};
1236
+ }> & {
1237
+ readonly elysia: import("elysia").AnyElysia;
1238
+ };
1239
+ hasRole: (required: Role) => import("./types").Predicate<BareUser>;
1240
+ isGranted: (role: Role, user: BareUser) => boolean;
1241
+ memberOf: (role?: OrgRole, memberOptions?: {
1242
+ param?: string;
1243
+ }) => import("./types").Predicate<BareUser<Record<string, unknown>>>;
1244
+ socketUser: typeof socketUser;
1245
+ admin: {
1246
+ createUser(input: Omit<CreateUserInput, 'roles'> & {
1247
+ roles?: Role[] | undefined;
1248
+ }): Promise<CreateUserResult>;
1249
+ };
1250
+ issueToken(userId: string, label: string, tokenOptions?: TokenOptions<Scope> & {
1251
+ token?: string | undefined;
1252
+ }): Promise<IssueTokenResult>;
1253
+ userFromToken(token: string, url?: string): Promise<User | null>;
1254
+ gate(gateOptions?: {
1255
+ require?: AuthRequirement<Role>;
1256
+ scope?: ScopeRequirement<Scope>;
1257
+ }): <Base extends string, Single extends SingletonBase, Defs extends DefinitionBase, Meta extends MetadataBase, Routes extends RouteBase, Eph extends EphemeralType, Vol extends EphemeralType>(app: Elysia<Base, Single, Defs, Meta, Routes, Eph, Vol>) => Elysia<Base, {
1258
+ decorator: Single["decorator"] & {};
1259
+ store: Single["store"] & {} extends infer T_7 ? { [K in keyof T_7]: T_7[K]; } : never;
1260
+ derive: Single["derive"] & {
1261
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1262
+ };
1263
+ resolve: Single["resolve"] & {};
1264
+ }, Defs & {
1265
+ typebox: {};
1266
+ error: {};
1267
+ }, {
1268
+ schema: (Meta & {
1269
+ schema: {};
1270
+ standaloneSchema: {};
1271
+ macro: {};
1272
+ macroFn: {};
1273
+ parser: {};
1274
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1275
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1276
+ }>;
1277
+ })["schema"];
1278
+ standaloneSchema: (Meta & {
1279
+ schema: {};
1280
+ standaloneSchema: {};
1281
+ macro: {};
1282
+ macroFn: {};
1283
+ parser: {};
1284
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1285
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1286
+ }>;
1287
+ })["standaloneSchema"];
1288
+ macro: (Meta & {
1289
+ schema: {};
1290
+ standaloneSchema: {};
1291
+ macro: {};
1292
+ macroFn: {};
1293
+ parser: {};
1294
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1295
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1296
+ }>;
1297
+ })["macro"] & Partial<{
1298
+ readonly auth: false | import("./types").Requirement<BareUser<Record<string, unknown>>, Role> | undefined;
1299
+ readonly scope: ScopeRequirement<Scope> | undefined;
1300
+ }>;
1301
+ macroFn: (Meta & {
1302
+ schema: {};
1303
+ standaloneSchema: {};
1304
+ macro: {};
1305
+ macroFn: {};
1306
+ parser: {};
1307
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1308
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1309
+ }>;
1310
+ })["macroFn"] & {
1311
+ readonly auth: (requirement: false | import("./types").Requirement<BareUser<Record<string, unknown>>, Role> | undefined) => {
1312
+ readonly transform: (ctx: object) => void;
1313
+ };
1314
+ readonly scope: (scope: ScopeRequirement<Scope> | undefined) => {
1315
+ readonly transform: (ctx: object) => void;
1316
+ };
1317
+ };
1318
+ parser: (Meta & {
1319
+ schema: {};
1320
+ standaloneSchema: {};
1321
+ macro: {};
1322
+ macroFn: {};
1323
+ parser: {};
1324
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1325
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1326
+ }>;
1327
+ })["parser"];
1328
+ response: (Meta & {
1329
+ schema: {};
1330
+ standaloneSchema: {};
1331
+ macro: {};
1332
+ macroFn: {};
1333
+ parser: {};
1334
+ response: {} & import("elysia").ExtractErrorFromHandle<{
1335
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1336
+ }>;
1337
+ })["response"];
1338
+ }, Base extends "" ? Routes & {} & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/export`>, {
1339
+ get: {
1340
+ body: unknown;
1341
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/export`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>;
1342
+ query: unknown;
1343
+ headers: unknown;
1344
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/export`>>, {}>, (ctx: {
1345
+ body: unknown;
1346
+ query: Record<string, string>;
1347
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> extends infer T_1 ? T_1 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? T_1 extends object ? { [K in keyof T_1]: T_1[K]; } : T_1 : never : never;
1348
+ headers: Record<string, string | undefined>;
1349
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1350
+ server: import("elysia/universal").Server | null;
1351
+ redirect: import("elysia").redirect;
1352
+ set: {
1353
+ headers: import("elysia").HTTPHeaders;
1354
+ status?: number | keyof import("elysia").StatusMap;
1355
+ redirect?: string;
1356
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1357
+ };
1358
+ path: string;
1359
+ route: string;
1360
+ request: Request;
1361
+ store: {};
1362
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1363
+ readonly 100: "Continue";
1364
+ readonly 101: "Switching Protocols";
1365
+ readonly 102: "Processing";
1366
+ readonly 103: "Early Hints";
1367
+ readonly 200: "OK";
1368
+ readonly 201: "Created";
1369
+ readonly 202: "Accepted";
1370
+ readonly 203: "Non-Authoritative Information";
1371
+ readonly 204: "No Content";
1372
+ readonly 205: "Reset Content";
1373
+ readonly 206: "Partial Content";
1374
+ readonly 207: "Multi-Status";
1375
+ readonly 208: "Already Reported";
1376
+ readonly 300: "Multiple Choices";
1377
+ readonly 301: "Moved Permanently";
1378
+ readonly 302: "Found";
1379
+ readonly 303: "See Other";
1380
+ readonly 304: "Not Modified";
1381
+ readonly 307: "Temporary Redirect";
1382
+ readonly 308: "Permanent Redirect";
1383
+ readonly 400: "Bad Request";
1384
+ readonly 401: "Unauthorized";
1385
+ readonly 402: "Payment Required";
1386
+ readonly 403: "Forbidden";
1387
+ readonly 404: "Not Found";
1388
+ readonly 405: "Method Not Allowed";
1389
+ readonly 406: "Not Acceptable";
1390
+ readonly 407: "Proxy Authentication Required";
1391
+ readonly 408: "Request Timeout";
1392
+ readonly 409: "Conflict";
1393
+ readonly 410: "Gone";
1394
+ readonly 411: "Length Required";
1395
+ readonly 412: "Precondition Failed";
1396
+ readonly 413: "Payload Too Large";
1397
+ readonly 414: "URI Too Long";
1398
+ readonly 415: "Unsupported Media Type";
1399
+ readonly 416: "Range Not Satisfiable";
1400
+ readonly 417: "Expectation Failed";
1401
+ readonly 418: "I'm a teapot";
1402
+ readonly 420: "Enhance Your Calm";
1403
+ readonly 421: "Misdirected Request";
1404
+ readonly 422: "Unprocessable Content";
1405
+ readonly 423: "Locked";
1406
+ readonly 424: "Failed Dependency";
1407
+ readonly 425: "Too Early";
1408
+ readonly 426: "Upgrade Required";
1409
+ readonly 428: "Precondition Required";
1410
+ readonly 429: "Too Many Requests";
1411
+ readonly 431: "Request Header Fields Too Large";
1412
+ readonly 451: "Unavailable For Legal Reasons";
1413
+ readonly 500: "Internal Server Error";
1414
+ readonly 501: "Not Implemented";
1415
+ readonly 502: "Bad Gateway";
1416
+ readonly 503: "Service Unavailable";
1417
+ readonly 504: "Gateway Timeout";
1418
+ readonly 505: "HTTP Version Not Supported";
1419
+ readonly 506: "Variant Also Negotiates";
1420
+ readonly 507: "Insufficient Storage";
1421
+ readonly 508: "Loop Detected";
1422
+ readonly 510: "Not Extended";
1423
+ readonly 511: "Network Authentication Required";
1424
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1425
+ readonly Continue: 100;
1426
+ readonly 'Switching Protocols': 101;
1427
+ readonly Processing: 102;
1428
+ readonly 'Early Hints': 103;
1429
+ readonly OK: 200;
1430
+ readonly Created: 201;
1431
+ readonly Accepted: 202;
1432
+ readonly 'Non-Authoritative Information': 203;
1433
+ readonly 'No Content': 204;
1434
+ readonly 'Reset Content': 205;
1435
+ readonly 'Partial Content': 206;
1436
+ readonly 'Multi-Status': 207;
1437
+ readonly 'Already Reported': 208;
1438
+ readonly 'Multiple Choices': 300;
1439
+ readonly 'Moved Permanently': 301;
1440
+ readonly Found: 302;
1441
+ readonly 'See Other': 303;
1442
+ readonly 'Not Modified': 304;
1443
+ readonly 'Temporary Redirect': 307;
1444
+ readonly 'Permanent Redirect': 308;
1445
+ readonly 'Bad Request': 400;
1446
+ readonly Unauthorized: 401;
1447
+ readonly 'Payment Required': 402;
1448
+ readonly Forbidden: 403;
1449
+ readonly 'Not Found': 404;
1450
+ readonly 'Method Not Allowed': 405;
1451
+ readonly 'Not Acceptable': 406;
1452
+ readonly 'Proxy Authentication Required': 407;
1453
+ readonly 'Request Timeout': 408;
1454
+ readonly Conflict: 409;
1455
+ readonly Gone: 410;
1456
+ readonly 'Length Required': 411;
1457
+ readonly 'Precondition Failed': 412;
1458
+ readonly 'Payload Too Large': 413;
1459
+ readonly 'URI Too Long': 414;
1460
+ readonly 'Unsupported Media Type': 415;
1461
+ readonly 'Range Not Satisfiable': 416;
1462
+ readonly 'Expectation Failed': 417;
1463
+ readonly "I'm a teapot": 418;
1464
+ readonly 'Enhance Your Calm': 420;
1465
+ readonly 'Misdirected Request': 421;
1466
+ readonly 'Unprocessable Content': 422;
1467
+ readonly Locked: 423;
1468
+ readonly 'Failed Dependency': 424;
1469
+ readonly 'Too Early': 425;
1470
+ readonly 'Upgrade Required': 426;
1471
+ readonly 'Precondition Required': 428;
1472
+ readonly 'Too Many Requests': 429;
1473
+ readonly 'Request Header Fields Too Large': 431;
1474
+ readonly 'Unavailable For Legal Reasons': 451;
1475
+ readonly 'Internal Server Error': 500;
1476
+ readonly 'Not Implemented': 501;
1477
+ readonly 'Bad Gateway': 502;
1478
+ readonly 'Service Unavailable': 503;
1479
+ readonly 'Gateway Timeout': 504;
1480
+ readonly 'HTTP Version Not Supported': 505;
1481
+ readonly 'Variant Also Negotiates': 506;
1482
+ readonly 'Insufficient Storage': 507;
1483
+ readonly 'Loop Detected': 508;
1484
+ readonly 'Not Extended': 510;
1485
+ readonly 'Network Authentication Required': 511;
1486
+ }[Code] : Code>;
1487
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1488
+ }) => Promise<unknown>, {}> extends infer T ? { [K in keyof T]: T[K]; } : never;
1489
+ };
1490
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>, {
1491
+ post: {
1492
+ body: unknown;
1493
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/sign-out`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>;
1494
+ query: unknown;
1495
+ headers: unknown;
1496
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, {}>, (ctx: {
1497
+ body: unknown;
1498
+ query: Record<string, string>;
1499
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> extends infer T_2 ? T_2 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? T_2 extends object ? { [K in keyof T_2]: T_2[K]; } : T_2 : never : never;
1500
+ headers: Record<string, string | undefined>;
1501
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1502
+ server: import("elysia/universal").Server | null;
1503
+ redirect: import("elysia").redirect;
1504
+ set: {
1505
+ headers: import("elysia").HTTPHeaders;
1506
+ status?: number | keyof import("elysia").StatusMap;
1507
+ redirect?: string;
1508
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1509
+ };
1510
+ path: string;
1511
+ route: string;
1512
+ request: Request;
1513
+ store: {};
1514
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1515
+ readonly 100: "Continue";
1516
+ readonly 101: "Switching Protocols";
1517
+ readonly 102: "Processing";
1518
+ readonly 103: "Early Hints";
1519
+ readonly 200: "OK";
1520
+ readonly 201: "Created";
1521
+ readonly 202: "Accepted";
1522
+ readonly 203: "Non-Authoritative Information";
1523
+ readonly 204: "No Content";
1524
+ readonly 205: "Reset Content";
1525
+ readonly 206: "Partial Content";
1526
+ readonly 207: "Multi-Status";
1527
+ readonly 208: "Already Reported";
1528
+ readonly 300: "Multiple Choices";
1529
+ readonly 301: "Moved Permanently";
1530
+ readonly 302: "Found";
1531
+ readonly 303: "See Other";
1532
+ readonly 304: "Not Modified";
1533
+ readonly 307: "Temporary Redirect";
1534
+ readonly 308: "Permanent Redirect";
1535
+ readonly 400: "Bad Request";
1536
+ readonly 401: "Unauthorized";
1537
+ readonly 402: "Payment Required";
1538
+ readonly 403: "Forbidden";
1539
+ readonly 404: "Not Found";
1540
+ readonly 405: "Method Not Allowed";
1541
+ readonly 406: "Not Acceptable";
1542
+ readonly 407: "Proxy Authentication Required";
1543
+ readonly 408: "Request Timeout";
1544
+ readonly 409: "Conflict";
1545
+ readonly 410: "Gone";
1546
+ readonly 411: "Length Required";
1547
+ readonly 412: "Precondition Failed";
1548
+ readonly 413: "Payload Too Large";
1549
+ readonly 414: "URI Too Long";
1550
+ readonly 415: "Unsupported Media Type";
1551
+ readonly 416: "Range Not Satisfiable";
1552
+ readonly 417: "Expectation Failed";
1553
+ readonly 418: "I'm a teapot";
1554
+ readonly 420: "Enhance Your Calm";
1555
+ readonly 421: "Misdirected Request";
1556
+ readonly 422: "Unprocessable Content";
1557
+ readonly 423: "Locked";
1558
+ readonly 424: "Failed Dependency";
1559
+ readonly 425: "Too Early";
1560
+ readonly 426: "Upgrade Required";
1561
+ readonly 428: "Precondition Required";
1562
+ readonly 429: "Too Many Requests";
1563
+ readonly 431: "Request Header Fields Too Large";
1564
+ readonly 451: "Unavailable For Legal Reasons";
1565
+ readonly 500: "Internal Server Error";
1566
+ readonly 501: "Not Implemented";
1567
+ readonly 502: "Bad Gateway";
1568
+ readonly 503: "Service Unavailable";
1569
+ readonly 504: "Gateway Timeout";
1570
+ readonly 505: "HTTP Version Not Supported";
1571
+ readonly 506: "Variant Also Negotiates";
1572
+ readonly 507: "Insufficient Storage";
1573
+ readonly 508: "Loop Detected";
1574
+ readonly 510: "Not Extended";
1575
+ readonly 511: "Network Authentication Required";
1576
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1577
+ readonly Continue: 100;
1578
+ readonly 'Switching Protocols': 101;
1579
+ readonly Processing: 102;
1580
+ readonly 'Early Hints': 103;
1581
+ readonly OK: 200;
1582
+ readonly Created: 201;
1583
+ readonly Accepted: 202;
1584
+ readonly 'Non-Authoritative Information': 203;
1585
+ readonly 'No Content': 204;
1586
+ readonly 'Reset Content': 205;
1587
+ readonly 'Partial Content': 206;
1588
+ readonly 'Multi-Status': 207;
1589
+ readonly 'Already Reported': 208;
1590
+ readonly 'Multiple Choices': 300;
1591
+ readonly 'Moved Permanently': 301;
1592
+ readonly Found: 302;
1593
+ readonly 'See Other': 303;
1594
+ readonly 'Not Modified': 304;
1595
+ readonly 'Temporary Redirect': 307;
1596
+ readonly 'Permanent Redirect': 308;
1597
+ readonly 'Bad Request': 400;
1598
+ readonly Unauthorized: 401;
1599
+ readonly 'Payment Required': 402;
1600
+ readonly Forbidden: 403;
1601
+ readonly 'Not Found': 404;
1602
+ readonly 'Method Not Allowed': 405;
1603
+ readonly 'Not Acceptable': 406;
1604
+ readonly 'Proxy Authentication Required': 407;
1605
+ readonly 'Request Timeout': 408;
1606
+ readonly Conflict: 409;
1607
+ readonly Gone: 410;
1608
+ readonly 'Length Required': 411;
1609
+ readonly 'Precondition Failed': 412;
1610
+ readonly 'Payload Too Large': 413;
1611
+ readonly 'URI Too Long': 414;
1612
+ readonly 'Unsupported Media Type': 415;
1613
+ readonly 'Range Not Satisfiable': 416;
1614
+ readonly 'Expectation Failed': 417;
1615
+ readonly "I'm a teapot": 418;
1616
+ readonly 'Enhance Your Calm': 420;
1617
+ readonly 'Misdirected Request': 421;
1618
+ readonly 'Unprocessable Content': 422;
1619
+ readonly Locked: 423;
1620
+ readonly 'Failed Dependency': 424;
1621
+ readonly 'Too Early': 425;
1622
+ readonly 'Upgrade Required': 426;
1623
+ readonly 'Precondition Required': 428;
1624
+ readonly 'Too Many Requests': 429;
1625
+ readonly 'Request Header Fields Too Large': 431;
1626
+ readonly 'Unavailable For Legal Reasons': 451;
1627
+ readonly 'Internal Server Error': 500;
1628
+ readonly 'Not Implemented': 501;
1629
+ readonly 'Bad Gateway': 502;
1630
+ readonly 'Service Unavailable': 503;
1631
+ readonly 'Gateway Timeout': 504;
1632
+ readonly 'HTTP Version Not Supported': 505;
1633
+ readonly 'Variant Also Negotiates': 506;
1634
+ readonly 'Insufficient Storage': 507;
1635
+ readonly 'Loop Detected': 508;
1636
+ readonly 'Not Extended': 510;
1637
+ readonly 'Network Authentication Required': 511;
1638
+ }[Code] : Code>;
1639
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1640
+ }) => Promise<Response>, {}> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never;
1641
+ };
1642
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>, {
1643
+ post: {
1644
+ body: unknown;
1645
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/stop-impersonating`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>;
1646
+ query: unknown;
1647
+ headers: unknown;
1648
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, {}>, (ctx: {
1649
+ body: unknown;
1650
+ query: Record<string, string>;
1651
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> extends infer T_3 ? T_3 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? T_3 extends object ? { [K in keyof T_3]: T_3[K]; } : T_3 : never : never;
1652
+ headers: Record<string, string | undefined>;
1653
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1654
+ server: import("elysia/universal").Server | null;
1655
+ redirect: import("elysia").redirect;
1656
+ set: {
1657
+ headers: import("elysia").HTTPHeaders;
1658
+ status?: number | keyof import("elysia").StatusMap;
1659
+ redirect?: string;
1660
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1661
+ };
1662
+ path: string;
1663
+ route: string;
1664
+ request: Request;
1665
+ store: {};
1666
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1667
+ readonly 100: "Continue";
1668
+ readonly 101: "Switching Protocols";
1669
+ readonly 102: "Processing";
1670
+ readonly 103: "Early Hints";
1671
+ readonly 200: "OK";
1672
+ readonly 201: "Created";
1673
+ readonly 202: "Accepted";
1674
+ readonly 203: "Non-Authoritative Information";
1675
+ readonly 204: "No Content";
1676
+ readonly 205: "Reset Content";
1677
+ readonly 206: "Partial Content";
1678
+ readonly 207: "Multi-Status";
1679
+ readonly 208: "Already Reported";
1680
+ readonly 300: "Multiple Choices";
1681
+ readonly 301: "Moved Permanently";
1682
+ readonly 302: "Found";
1683
+ readonly 303: "See Other";
1684
+ readonly 304: "Not Modified";
1685
+ readonly 307: "Temporary Redirect";
1686
+ readonly 308: "Permanent Redirect";
1687
+ readonly 400: "Bad Request";
1688
+ readonly 401: "Unauthorized";
1689
+ readonly 402: "Payment Required";
1690
+ readonly 403: "Forbidden";
1691
+ readonly 404: "Not Found";
1692
+ readonly 405: "Method Not Allowed";
1693
+ readonly 406: "Not Acceptable";
1694
+ readonly 407: "Proxy Authentication Required";
1695
+ readonly 408: "Request Timeout";
1696
+ readonly 409: "Conflict";
1697
+ readonly 410: "Gone";
1698
+ readonly 411: "Length Required";
1699
+ readonly 412: "Precondition Failed";
1700
+ readonly 413: "Payload Too Large";
1701
+ readonly 414: "URI Too Long";
1702
+ readonly 415: "Unsupported Media Type";
1703
+ readonly 416: "Range Not Satisfiable";
1704
+ readonly 417: "Expectation Failed";
1705
+ readonly 418: "I'm a teapot";
1706
+ readonly 420: "Enhance Your Calm";
1707
+ readonly 421: "Misdirected Request";
1708
+ readonly 422: "Unprocessable Content";
1709
+ readonly 423: "Locked";
1710
+ readonly 424: "Failed Dependency";
1711
+ readonly 425: "Too Early";
1712
+ readonly 426: "Upgrade Required";
1713
+ readonly 428: "Precondition Required";
1714
+ readonly 429: "Too Many Requests";
1715
+ readonly 431: "Request Header Fields Too Large";
1716
+ readonly 451: "Unavailable For Legal Reasons";
1717
+ readonly 500: "Internal Server Error";
1718
+ readonly 501: "Not Implemented";
1719
+ readonly 502: "Bad Gateway";
1720
+ readonly 503: "Service Unavailable";
1721
+ readonly 504: "Gateway Timeout";
1722
+ readonly 505: "HTTP Version Not Supported";
1723
+ readonly 506: "Variant Also Negotiates";
1724
+ readonly 507: "Insufficient Storage";
1725
+ readonly 508: "Loop Detected";
1726
+ readonly 510: "Not Extended";
1727
+ readonly 511: "Network Authentication Required";
1728
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1729
+ readonly Continue: 100;
1730
+ readonly 'Switching Protocols': 101;
1731
+ readonly Processing: 102;
1732
+ readonly 'Early Hints': 103;
1733
+ readonly OK: 200;
1734
+ readonly Created: 201;
1735
+ readonly Accepted: 202;
1736
+ readonly 'Non-Authoritative Information': 203;
1737
+ readonly 'No Content': 204;
1738
+ readonly 'Reset Content': 205;
1739
+ readonly 'Partial Content': 206;
1740
+ readonly 'Multi-Status': 207;
1741
+ readonly 'Already Reported': 208;
1742
+ readonly 'Multiple Choices': 300;
1743
+ readonly 'Moved Permanently': 301;
1744
+ readonly Found: 302;
1745
+ readonly 'See Other': 303;
1746
+ readonly 'Not Modified': 304;
1747
+ readonly 'Temporary Redirect': 307;
1748
+ readonly 'Permanent Redirect': 308;
1749
+ readonly 'Bad Request': 400;
1750
+ readonly Unauthorized: 401;
1751
+ readonly 'Payment Required': 402;
1752
+ readonly Forbidden: 403;
1753
+ readonly 'Not Found': 404;
1754
+ readonly 'Method Not Allowed': 405;
1755
+ readonly 'Not Acceptable': 406;
1756
+ readonly 'Proxy Authentication Required': 407;
1757
+ readonly 'Request Timeout': 408;
1758
+ readonly Conflict: 409;
1759
+ readonly Gone: 410;
1760
+ readonly 'Length Required': 411;
1761
+ readonly 'Precondition Failed': 412;
1762
+ readonly 'Payload Too Large': 413;
1763
+ readonly 'URI Too Long': 414;
1764
+ readonly 'Unsupported Media Type': 415;
1765
+ readonly 'Range Not Satisfiable': 416;
1766
+ readonly 'Expectation Failed': 417;
1767
+ readonly "I'm a teapot": 418;
1768
+ readonly 'Enhance Your Calm': 420;
1769
+ readonly 'Misdirected Request': 421;
1770
+ readonly 'Unprocessable Content': 422;
1771
+ readonly Locked: 423;
1772
+ readonly 'Failed Dependency': 424;
1773
+ readonly 'Too Early': 425;
1774
+ readonly 'Upgrade Required': 426;
1775
+ readonly 'Precondition Required': 428;
1776
+ readonly 'Too Many Requests': 429;
1777
+ readonly 'Request Header Fields Too Large': 431;
1778
+ readonly 'Unavailable For Legal Reasons': 451;
1779
+ readonly 'Internal Server Error': 500;
1780
+ readonly 'Not Implemented': 501;
1781
+ readonly 'Bad Gateway': 502;
1782
+ readonly 'Service Unavailable': 503;
1783
+ readonly 'Gateway Timeout': 504;
1784
+ readonly 'HTTP Version Not Supported': 505;
1785
+ readonly 'Variant Also Negotiates': 506;
1786
+ readonly 'Insufficient Storage': 507;
1787
+ readonly 'Loop Detected': 508;
1788
+ readonly 'Not Extended': 510;
1789
+ readonly 'Network Authentication Required': 511;
1790
+ }[Code] : Code>;
1791
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1792
+ }) => Promise<Response>, {}> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
1793
+ };
1794
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>, {
1795
+ post: {
1796
+ body: unknown;
1797
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/cancel-deletion`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>;
1798
+ query: unknown;
1799
+ headers: unknown;
1800
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, {}>, (ctx: {
1801
+ body: unknown;
1802
+ query: Record<string, string>;
1803
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> extends infer T_4 ? T_4 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? T_4 extends object ? { [K in keyof T_4]: T_4[K]; } : T_4 : never : never;
1804
+ headers: Record<string, string | undefined>;
1805
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1806
+ server: import("elysia/universal").Server | null;
1807
+ redirect: import("elysia").redirect;
1808
+ set: {
1809
+ headers: import("elysia").HTTPHeaders;
1810
+ status?: number | keyof import("elysia").StatusMap;
1811
+ redirect?: string;
1812
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1813
+ };
1814
+ path: string;
1815
+ route: string;
1816
+ request: Request;
1817
+ store: {};
1818
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1819
+ readonly 100: "Continue";
1820
+ readonly 101: "Switching Protocols";
1821
+ readonly 102: "Processing";
1822
+ readonly 103: "Early Hints";
1823
+ readonly 200: "OK";
1824
+ readonly 201: "Created";
1825
+ readonly 202: "Accepted";
1826
+ readonly 203: "Non-Authoritative Information";
1827
+ readonly 204: "No Content";
1828
+ readonly 205: "Reset Content";
1829
+ readonly 206: "Partial Content";
1830
+ readonly 207: "Multi-Status";
1831
+ readonly 208: "Already Reported";
1832
+ readonly 300: "Multiple Choices";
1833
+ readonly 301: "Moved Permanently";
1834
+ readonly 302: "Found";
1835
+ readonly 303: "See Other";
1836
+ readonly 304: "Not Modified";
1837
+ readonly 307: "Temporary Redirect";
1838
+ readonly 308: "Permanent Redirect";
1839
+ readonly 400: "Bad Request";
1840
+ readonly 401: "Unauthorized";
1841
+ readonly 402: "Payment Required";
1842
+ readonly 403: "Forbidden";
1843
+ readonly 404: "Not Found";
1844
+ readonly 405: "Method Not Allowed";
1845
+ readonly 406: "Not Acceptable";
1846
+ readonly 407: "Proxy Authentication Required";
1847
+ readonly 408: "Request Timeout";
1848
+ readonly 409: "Conflict";
1849
+ readonly 410: "Gone";
1850
+ readonly 411: "Length Required";
1851
+ readonly 412: "Precondition Failed";
1852
+ readonly 413: "Payload Too Large";
1853
+ readonly 414: "URI Too Long";
1854
+ readonly 415: "Unsupported Media Type";
1855
+ readonly 416: "Range Not Satisfiable";
1856
+ readonly 417: "Expectation Failed";
1857
+ readonly 418: "I'm a teapot";
1858
+ readonly 420: "Enhance Your Calm";
1859
+ readonly 421: "Misdirected Request";
1860
+ readonly 422: "Unprocessable Content";
1861
+ readonly 423: "Locked";
1862
+ readonly 424: "Failed Dependency";
1863
+ readonly 425: "Too Early";
1864
+ readonly 426: "Upgrade Required";
1865
+ readonly 428: "Precondition Required";
1866
+ readonly 429: "Too Many Requests";
1867
+ readonly 431: "Request Header Fields Too Large";
1868
+ readonly 451: "Unavailable For Legal Reasons";
1869
+ readonly 500: "Internal Server Error";
1870
+ readonly 501: "Not Implemented";
1871
+ readonly 502: "Bad Gateway";
1872
+ readonly 503: "Service Unavailable";
1873
+ readonly 504: "Gateway Timeout";
1874
+ readonly 505: "HTTP Version Not Supported";
1875
+ readonly 506: "Variant Also Negotiates";
1876
+ readonly 507: "Insufficient Storage";
1877
+ readonly 508: "Loop Detected";
1878
+ readonly 510: "Not Extended";
1879
+ readonly 511: "Network Authentication Required";
1880
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
1881
+ readonly Continue: 100;
1882
+ readonly 'Switching Protocols': 101;
1883
+ readonly Processing: 102;
1884
+ readonly 'Early Hints': 103;
1885
+ readonly OK: 200;
1886
+ readonly Created: 201;
1887
+ readonly Accepted: 202;
1888
+ readonly 'Non-Authoritative Information': 203;
1889
+ readonly 'No Content': 204;
1890
+ readonly 'Reset Content': 205;
1891
+ readonly 'Partial Content': 206;
1892
+ readonly 'Multi-Status': 207;
1893
+ readonly 'Already Reported': 208;
1894
+ readonly 'Multiple Choices': 300;
1895
+ readonly 'Moved Permanently': 301;
1896
+ readonly Found: 302;
1897
+ readonly 'See Other': 303;
1898
+ readonly 'Not Modified': 304;
1899
+ readonly 'Temporary Redirect': 307;
1900
+ readonly 'Permanent Redirect': 308;
1901
+ readonly 'Bad Request': 400;
1902
+ readonly Unauthorized: 401;
1903
+ readonly 'Payment Required': 402;
1904
+ readonly Forbidden: 403;
1905
+ readonly 'Not Found': 404;
1906
+ readonly 'Method Not Allowed': 405;
1907
+ readonly 'Not Acceptable': 406;
1908
+ readonly 'Proxy Authentication Required': 407;
1909
+ readonly 'Request Timeout': 408;
1910
+ readonly Conflict: 409;
1911
+ readonly Gone: 410;
1912
+ readonly 'Length Required': 411;
1913
+ readonly 'Precondition Failed': 412;
1914
+ readonly 'Payload Too Large': 413;
1915
+ readonly 'URI Too Long': 414;
1916
+ readonly 'Unsupported Media Type': 415;
1917
+ readonly 'Range Not Satisfiable': 416;
1918
+ readonly 'Expectation Failed': 417;
1919
+ readonly "I'm a teapot": 418;
1920
+ readonly 'Enhance Your Calm': 420;
1921
+ readonly 'Misdirected Request': 421;
1922
+ readonly 'Unprocessable Content': 422;
1923
+ readonly Locked: 423;
1924
+ readonly 'Failed Dependency': 424;
1925
+ readonly 'Too Early': 425;
1926
+ readonly 'Upgrade Required': 426;
1927
+ readonly 'Precondition Required': 428;
1928
+ readonly 'Too Many Requests': 429;
1929
+ readonly 'Request Header Fields Too Large': 431;
1930
+ readonly 'Unavailable For Legal Reasons': 451;
1931
+ readonly 'Internal Server Error': 500;
1932
+ readonly 'Not Implemented': 501;
1933
+ readonly 'Bad Gateway': 502;
1934
+ readonly 'Service Unavailable': 503;
1935
+ readonly 'Gateway Timeout': 504;
1936
+ readonly 'HTTP Version Not Supported': 505;
1937
+ readonly 'Variant Also Negotiates': 506;
1938
+ readonly 'Insufficient Storage': 507;
1939
+ readonly 'Loop Detected': 508;
1940
+ readonly 'Not Extended': 510;
1941
+ readonly 'Network Authentication Required': 511;
1942
+ }[Code] : Code>;
1943
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
1944
+ }) => Promise<Response>, {}> extends infer T_3 ? { [K in keyof T_3]: T_3[K]; } : never;
1945
+ };
1946
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>, {
1947
+ get: {
1948
+ body: unknown;
1949
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>;
1950
+ query: unknown;
1951
+ headers: unknown;
1952
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, {}>, (ctx: {
1953
+ body: unknown;
1954
+ query: Record<string, string>;
1955
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> extends infer T_5 ? T_5 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? T_5 extends object ? { [K in keyof T_5]: T_5[K]; } : T_5 : never : never;
1956
+ headers: Record<string, string | undefined>;
1957
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
1958
+ server: import("elysia/universal").Server | null;
1959
+ redirect: import("elysia").redirect;
1960
+ set: {
1961
+ headers: import("elysia").HTTPHeaders;
1962
+ status?: number | keyof import("elysia").StatusMap;
1963
+ redirect?: string;
1964
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
1965
+ };
1966
+ path: string;
1967
+ route: string;
1968
+ request: Request;
1969
+ store: {};
1970
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
1971
+ readonly 100: "Continue";
1972
+ readonly 101: "Switching Protocols";
1973
+ readonly 102: "Processing";
1974
+ readonly 103: "Early Hints";
1975
+ readonly 200: "OK";
1976
+ readonly 201: "Created";
1977
+ readonly 202: "Accepted";
1978
+ readonly 203: "Non-Authoritative Information";
1979
+ readonly 204: "No Content";
1980
+ readonly 205: "Reset Content";
1981
+ readonly 206: "Partial Content";
1982
+ readonly 207: "Multi-Status";
1983
+ readonly 208: "Already Reported";
1984
+ readonly 300: "Multiple Choices";
1985
+ readonly 301: "Moved Permanently";
1986
+ readonly 302: "Found";
1987
+ readonly 303: "See Other";
1988
+ readonly 304: "Not Modified";
1989
+ readonly 307: "Temporary Redirect";
1990
+ readonly 308: "Permanent Redirect";
1991
+ readonly 400: "Bad Request";
1992
+ readonly 401: "Unauthorized";
1993
+ readonly 402: "Payment Required";
1994
+ readonly 403: "Forbidden";
1995
+ readonly 404: "Not Found";
1996
+ readonly 405: "Method Not Allowed";
1997
+ readonly 406: "Not Acceptable";
1998
+ readonly 407: "Proxy Authentication Required";
1999
+ readonly 408: "Request Timeout";
2000
+ readonly 409: "Conflict";
2001
+ readonly 410: "Gone";
2002
+ readonly 411: "Length Required";
2003
+ readonly 412: "Precondition Failed";
2004
+ readonly 413: "Payload Too Large";
2005
+ readonly 414: "URI Too Long";
2006
+ readonly 415: "Unsupported Media Type";
2007
+ readonly 416: "Range Not Satisfiable";
2008
+ readonly 417: "Expectation Failed";
2009
+ readonly 418: "I'm a teapot";
2010
+ readonly 420: "Enhance Your Calm";
2011
+ readonly 421: "Misdirected Request";
2012
+ readonly 422: "Unprocessable Content";
2013
+ readonly 423: "Locked";
2014
+ readonly 424: "Failed Dependency";
2015
+ readonly 425: "Too Early";
2016
+ readonly 426: "Upgrade Required";
2017
+ readonly 428: "Precondition Required";
2018
+ readonly 429: "Too Many Requests";
2019
+ readonly 431: "Request Header Fields Too Large";
2020
+ readonly 451: "Unavailable For Legal Reasons";
2021
+ readonly 500: "Internal Server Error";
2022
+ readonly 501: "Not Implemented";
2023
+ readonly 502: "Bad Gateway";
2024
+ readonly 503: "Service Unavailable";
2025
+ readonly 504: "Gateway Timeout";
2026
+ readonly 505: "HTTP Version Not Supported";
2027
+ readonly 506: "Variant Also Negotiates";
2028
+ readonly 507: "Insufficient Storage";
2029
+ readonly 508: "Loop Detected";
2030
+ readonly 510: "Not Extended";
2031
+ readonly 511: "Network Authentication Required";
2032
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2033
+ readonly Continue: 100;
2034
+ readonly 'Switching Protocols': 101;
2035
+ readonly Processing: 102;
2036
+ readonly 'Early Hints': 103;
2037
+ readonly OK: 200;
2038
+ readonly Created: 201;
2039
+ readonly Accepted: 202;
2040
+ readonly 'Non-Authoritative Information': 203;
2041
+ readonly 'No Content': 204;
2042
+ readonly 'Reset Content': 205;
2043
+ readonly 'Partial Content': 206;
2044
+ readonly 'Multi-Status': 207;
2045
+ readonly 'Already Reported': 208;
2046
+ readonly 'Multiple Choices': 300;
2047
+ readonly 'Moved Permanently': 301;
2048
+ readonly Found: 302;
2049
+ readonly 'See Other': 303;
2050
+ readonly 'Not Modified': 304;
2051
+ readonly 'Temporary Redirect': 307;
2052
+ readonly 'Permanent Redirect': 308;
2053
+ readonly 'Bad Request': 400;
2054
+ readonly Unauthorized: 401;
2055
+ readonly 'Payment Required': 402;
2056
+ readonly Forbidden: 403;
2057
+ readonly 'Not Found': 404;
2058
+ readonly 'Method Not Allowed': 405;
2059
+ readonly 'Not Acceptable': 406;
2060
+ readonly 'Proxy Authentication Required': 407;
2061
+ readonly 'Request Timeout': 408;
2062
+ readonly Conflict: 409;
2063
+ readonly Gone: 410;
2064
+ readonly 'Length Required': 411;
2065
+ readonly 'Precondition Failed': 412;
2066
+ readonly 'Payload Too Large': 413;
2067
+ readonly 'URI Too Long': 414;
2068
+ readonly 'Unsupported Media Type': 415;
2069
+ readonly 'Range Not Satisfiable': 416;
2070
+ readonly 'Expectation Failed': 417;
2071
+ readonly "I'm a teapot": 418;
2072
+ readonly 'Enhance Your Calm': 420;
2073
+ readonly 'Misdirected Request': 421;
2074
+ readonly 'Unprocessable Content': 422;
2075
+ readonly Locked: 423;
2076
+ readonly 'Failed Dependency': 424;
2077
+ readonly 'Too Early': 425;
2078
+ readonly 'Upgrade Required': 426;
2079
+ readonly 'Precondition Required': 428;
2080
+ readonly 'Too Many Requests': 429;
2081
+ readonly 'Request Header Fields Too Large': 431;
2082
+ readonly 'Unavailable For Legal Reasons': 451;
2083
+ readonly 'Internal Server Error': 500;
2084
+ readonly 'Not Implemented': 501;
2085
+ readonly 'Bad Gateway': 502;
2086
+ readonly 'Service Unavailable': 503;
2087
+ readonly 'Gateway Timeout': 504;
2088
+ readonly 'HTTP Version Not Supported': 505;
2089
+ readonly 'Variant Also Negotiates': 506;
2090
+ readonly 'Insufficient Storage': 507;
2091
+ readonly 'Loop Detected': 508;
2092
+ readonly 'Not Extended': 510;
2093
+ readonly 'Network Authentication Required': 511;
2094
+ }[Code] : Code>;
2095
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2096
+ }) => Promise<unknown>, {}> extends infer T_4 ? { [K in keyof T_4]: T_4[K]; } : never;
2097
+ };
2098
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
2099
+ get: {
2100
+ body: unknown;
2101
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
2102
+ query: unknown;
2103
+ headers: unknown;
2104
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
2105
+ body: unknown;
2106
+ query: Record<string, string>;
2107
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
2108
+ headers: Record<string, string | undefined>;
2109
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2110
+ server: import("elysia/universal").Server | null;
2111
+ redirect: import("elysia").redirect;
2112
+ set: {
2113
+ headers: import("elysia").HTTPHeaders;
2114
+ status?: number | keyof import("elysia").StatusMap;
2115
+ redirect?: string;
2116
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2117
+ };
2118
+ path: string;
2119
+ route: string;
2120
+ request: Request;
2121
+ store: {};
2122
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2123
+ readonly 100: "Continue";
2124
+ readonly 101: "Switching Protocols";
2125
+ readonly 102: "Processing";
2126
+ readonly 103: "Early Hints";
2127
+ readonly 200: "OK";
2128
+ readonly 201: "Created";
2129
+ readonly 202: "Accepted";
2130
+ readonly 203: "Non-Authoritative Information";
2131
+ readonly 204: "No Content";
2132
+ readonly 205: "Reset Content";
2133
+ readonly 206: "Partial Content";
2134
+ readonly 207: "Multi-Status";
2135
+ readonly 208: "Already Reported";
2136
+ readonly 300: "Multiple Choices";
2137
+ readonly 301: "Moved Permanently";
2138
+ readonly 302: "Found";
2139
+ readonly 303: "See Other";
2140
+ readonly 304: "Not Modified";
2141
+ readonly 307: "Temporary Redirect";
2142
+ readonly 308: "Permanent Redirect";
2143
+ readonly 400: "Bad Request";
2144
+ readonly 401: "Unauthorized";
2145
+ readonly 402: "Payment Required";
2146
+ readonly 403: "Forbidden";
2147
+ readonly 404: "Not Found";
2148
+ readonly 405: "Method Not Allowed";
2149
+ readonly 406: "Not Acceptable";
2150
+ readonly 407: "Proxy Authentication Required";
2151
+ readonly 408: "Request Timeout";
2152
+ readonly 409: "Conflict";
2153
+ readonly 410: "Gone";
2154
+ readonly 411: "Length Required";
2155
+ readonly 412: "Precondition Failed";
2156
+ readonly 413: "Payload Too Large";
2157
+ readonly 414: "URI Too Long";
2158
+ readonly 415: "Unsupported Media Type";
2159
+ readonly 416: "Range Not Satisfiable";
2160
+ readonly 417: "Expectation Failed";
2161
+ readonly 418: "I'm a teapot";
2162
+ readonly 420: "Enhance Your Calm";
2163
+ readonly 421: "Misdirected Request";
2164
+ readonly 422: "Unprocessable Content";
2165
+ readonly 423: "Locked";
2166
+ readonly 424: "Failed Dependency";
2167
+ readonly 425: "Too Early";
2168
+ readonly 426: "Upgrade Required";
2169
+ readonly 428: "Precondition Required";
2170
+ readonly 429: "Too Many Requests";
2171
+ readonly 431: "Request Header Fields Too Large";
2172
+ readonly 451: "Unavailable For Legal Reasons";
2173
+ readonly 500: "Internal Server Error";
2174
+ readonly 501: "Not Implemented";
2175
+ readonly 502: "Bad Gateway";
2176
+ readonly 503: "Service Unavailable";
2177
+ readonly 504: "Gateway Timeout";
2178
+ readonly 505: "HTTP Version Not Supported";
2179
+ readonly 506: "Variant Also Negotiates";
2180
+ readonly 507: "Insufficient Storage";
2181
+ readonly 508: "Loop Detected";
2182
+ readonly 510: "Not Extended";
2183
+ readonly 511: "Network Authentication Required";
2184
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2185
+ readonly Continue: 100;
2186
+ readonly 'Switching Protocols': 101;
2187
+ readonly Processing: 102;
2188
+ readonly 'Early Hints': 103;
2189
+ readonly OK: 200;
2190
+ readonly Created: 201;
2191
+ readonly Accepted: 202;
2192
+ readonly 'Non-Authoritative Information': 203;
2193
+ readonly 'No Content': 204;
2194
+ readonly 'Reset Content': 205;
2195
+ readonly 'Partial Content': 206;
2196
+ readonly 'Multi-Status': 207;
2197
+ readonly 'Already Reported': 208;
2198
+ readonly 'Multiple Choices': 300;
2199
+ readonly 'Moved Permanently': 301;
2200
+ readonly Found: 302;
2201
+ readonly 'See Other': 303;
2202
+ readonly 'Not Modified': 304;
2203
+ readonly 'Temporary Redirect': 307;
2204
+ readonly 'Permanent Redirect': 308;
2205
+ readonly 'Bad Request': 400;
2206
+ readonly Unauthorized: 401;
2207
+ readonly 'Payment Required': 402;
2208
+ readonly Forbidden: 403;
2209
+ readonly 'Not Found': 404;
2210
+ readonly 'Method Not Allowed': 405;
2211
+ readonly 'Not Acceptable': 406;
2212
+ readonly 'Proxy Authentication Required': 407;
2213
+ readonly 'Request Timeout': 408;
2214
+ readonly Conflict: 409;
2215
+ readonly Gone: 410;
2216
+ readonly 'Length Required': 411;
2217
+ readonly 'Precondition Failed': 412;
2218
+ readonly 'Payload Too Large': 413;
2219
+ readonly 'URI Too Long': 414;
2220
+ readonly 'Unsupported Media Type': 415;
2221
+ readonly 'Range Not Satisfiable': 416;
2222
+ readonly 'Expectation Failed': 417;
2223
+ readonly "I'm a teapot": 418;
2224
+ readonly 'Enhance Your Calm': 420;
2225
+ readonly 'Misdirected Request': 421;
2226
+ readonly 'Unprocessable Content': 422;
2227
+ readonly Locked: 423;
2228
+ readonly 'Failed Dependency': 424;
2229
+ readonly 'Too Early': 425;
2230
+ readonly 'Upgrade Required': 426;
2231
+ readonly 'Precondition Required': 428;
2232
+ readonly 'Too Many Requests': 429;
2233
+ readonly 'Request Header Fields Too Large': 431;
2234
+ readonly 'Unavailable For Legal Reasons': 451;
2235
+ readonly 'Internal Server Error': 500;
2236
+ readonly 'Not Implemented': 501;
2237
+ readonly 'Bad Gateway': 502;
2238
+ readonly 'Service Unavailable': 503;
2239
+ readonly 'Gateway Timeout': 504;
2240
+ readonly 'HTTP Version Not Supported': 505;
2241
+ readonly 'Variant Also Negotiates': 506;
2242
+ readonly 'Insufficient Storage': 507;
2243
+ readonly 'Loop Detected': 508;
2244
+ readonly 'Not Extended': 510;
2245
+ readonly 'Network Authentication Required': 511;
2246
+ }[Code] : Code>;
2247
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2248
+ }) => Promise<Response>, {}> extends infer T_5 ? { [K in keyof T_5]: T_5[K]; } : never;
2249
+ };
2250
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
2251
+ post: {
2252
+ body: unknown;
2253
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
2254
+ query: unknown;
2255
+ headers: unknown;
2256
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
2257
+ body: unknown;
2258
+ query: Record<string, string>;
2259
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
2260
+ headers: Record<string, string | undefined>;
2261
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2262
+ server: import("elysia/universal").Server | null;
2263
+ redirect: import("elysia").redirect;
2264
+ set: {
2265
+ headers: import("elysia").HTTPHeaders;
2266
+ status?: number | keyof import("elysia").StatusMap;
2267
+ redirect?: string;
2268
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2269
+ };
2270
+ path: string;
2271
+ route: string;
2272
+ request: Request;
2273
+ store: {};
2274
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2275
+ readonly 100: "Continue";
2276
+ readonly 101: "Switching Protocols";
2277
+ readonly 102: "Processing";
2278
+ readonly 103: "Early Hints";
2279
+ readonly 200: "OK";
2280
+ readonly 201: "Created";
2281
+ readonly 202: "Accepted";
2282
+ readonly 203: "Non-Authoritative Information";
2283
+ readonly 204: "No Content";
2284
+ readonly 205: "Reset Content";
2285
+ readonly 206: "Partial Content";
2286
+ readonly 207: "Multi-Status";
2287
+ readonly 208: "Already Reported";
2288
+ readonly 300: "Multiple Choices";
2289
+ readonly 301: "Moved Permanently";
2290
+ readonly 302: "Found";
2291
+ readonly 303: "See Other";
2292
+ readonly 304: "Not Modified";
2293
+ readonly 307: "Temporary Redirect";
2294
+ readonly 308: "Permanent Redirect";
2295
+ readonly 400: "Bad Request";
2296
+ readonly 401: "Unauthorized";
2297
+ readonly 402: "Payment Required";
2298
+ readonly 403: "Forbidden";
2299
+ readonly 404: "Not Found";
2300
+ readonly 405: "Method Not Allowed";
2301
+ readonly 406: "Not Acceptable";
2302
+ readonly 407: "Proxy Authentication Required";
2303
+ readonly 408: "Request Timeout";
2304
+ readonly 409: "Conflict";
2305
+ readonly 410: "Gone";
2306
+ readonly 411: "Length Required";
2307
+ readonly 412: "Precondition Failed";
2308
+ readonly 413: "Payload Too Large";
2309
+ readonly 414: "URI Too Long";
2310
+ readonly 415: "Unsupported Media Type";
2311
+ readonly 416: "Range Not Satisfiable";
2312
+ readonly 417: "Expectation Failed";
2313
+ readonly 418: "I'm a teapot";
2314
+ readonly 420: "Enhance Your Calm";
2315
+ readonly 421: "Misdirected Request";
2316
+ readonly 422: "Unprocessable Content";
2317
+ readonly 423: "Locked";
2318
+ readonly 424: "Failed Dependency";
2319
+ readonly 425: "Too Early";
2320
+ readonly 426: "Upgrade Required";
2321
+ readonly 428: "Precondition Required";
2322
+ readonly 429: "Too Many Requests";
2323
+ readonly 431: "Request Header Fields Too Large";
2324
+ readonly 451: "Unavailable For Legal Reasons";
2325
+ readonly 500: "Internal Server Error";
2326
+ readonly 501: "Not Implemented";
2327
+ readonly 502: "Bad Gateway";
2328
+ readonly 503: "Service Unavailable";
2329
+ readonly 504: "Gateway Timeout";
2330
+ readonly 505: "HTTP Version Not Supported";
2331
+ readonly 506: "Variant Also Negotiates";
2332
+ readonly 507: "Insufficient Storage";
2333
+ readonly 508: "Loop Detected";
2334
+ readonly 510: "Not Extended";
2335
+ readonly 511: "Network Authentication Required";
2336
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2337
+ readonly Continue: 100;
2338
+ readonly 'Switching Protocols': 101;
2339
+ readonly Processing: 102;
2340
+ readonly 'Early Hints': 103;
2341
+ readonly OK: 200;
2342
+ readonly Created: 201;
2343
+ readonly Accepted: 202;
2344
+ readonly 'Non-Authoritative Information': 203;
2345
+ readonly 'No Content': 204;
2346
+ readonly 'Reset Content': 205;
2347
+ readonly 'Partial Content': 206;
2348
+ readonly 'Multi-Status': 207;
2349
+ readonly 'Already Reported': 208;
2350
+ readonly 'Multiple Choices': 300;
2351
+ readonly 'Moved Permanently': 301;
2352
+ readonly Found: 302;
2353
+ readonly 'See Other': 303;
2354
+ readonly 'Not Modified': 304;
2355
+ readonly 'Temporary Redirect': 307;
2356
+ readonly 'Permanent Redirect': 308;
2357
+ readonly 'Bad Request': 400;
2358
+ readonly Unauthorized: 401;
2359
+ readonly 'Payment Required': 402;
2360
+ readonly Forbidden: 403;
2361
+ readonly 'Not Found': 404;
2362
+ readonly 'Method Not Allowed': 405;
2363
+ readonly 'Not Acceptable': 406;
2364
+ readonly 'Proxy Authentication Required': 407;
2365
+ readonly 'Request Timeout': 408;
2366
+ readonly Conflict: 409;
2367
+ readonly Gone: 410;
2368
+ readonly 'Length Required': 411;
2369
+ readonly 'Precondition Failed': 412;
2370
+ readonly 'Payload Too Large': 413;
2371
+ readonly 'URI Too Long': 414;
2372
+ readonly 'Unsupported Media Type': 415;
2373
+ readonly 'Range Not Satisfiable': 416;
2374
+ readonly 'Expectation Failed': 417;
2375
+ readonly "I'm a teapot": 418;
2376
+ readonly 'Enhance Your Calm': 420;
2377
+ readonly 'Misdirected Request': 421;
2378
+ readonly 'Unprocessable Content': 422;
2379
+ readonly Locked: 423;
2380
+ readonly 'Failed Dependency': 424;
2381
+ readonly 'Too Early': 425;
2382
+ readonly 'Upgrade Required': 426;
2383
+ readonly 'Precondition Required': 428;
2384
+ readonly 'Too Many Requests': 429;
2385
+ readonly 'Request Header Fields Too Large': 431;
2386
+ readonly 'Unavailable For Legal Reasons': 451;
2387
+ readonly 'Internal Server Error': 500;
2388
+ readonly 'Not Implemented': 501;
2389
+ readonly 'Bad Gateway': 502;
2390
+ readonly 'Service Unavailable': 503;
2391
+ readonly 'Gateway Timeout': 504;
2392
+ readonly 'HTTP Version Not Supported': 505;
2393
+ readonly 'Variant Also Negotiates': 506;
2394
+ readonly 'Insufficient Storage': 507;
2395
+ readonly 'Loop Detected': 508;
2396
+ readonly 'Not Extended': 510;
2397
+ readonly 'Network Authentication Required': 511;
2398
+ }[Code] : Code>;
2399
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2400
+ }) => unknown, {}> extends infer T_6 ? { [K in keyof T_6]: T_6[K]; } : never;
2401
+ };
2402
+ }> : Routes & import("elysia").CreateEden<Base, {} & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/export`>, {
2403
+ get: {
2404
+ body: unknown;
2405
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/export`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown>;
2406
+ query: unknown;
2407
+ headers: unknown;
2408
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/export`>>, {}>, (ctx: {
2409
+ body: unknown;
2410
+ query: Record<string, string>;
2411
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> extends infer T_1 ? T_1 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/export`>>, unknown> ? T_1 extends object ? { [K in keyof T_1]: T_1[K]; } : T_1 : never : never;
2412
+ headers: Record<string, string | undefined>;
2413
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2414
+ server: import("elysia/universal").Server | null;
2415
+ redirect: import("elysia").redirect;
2416
+ set: {
2417
+ headers: import("elysia").HTTPHeaders;
2418
+ status?: number | keyof import("elysia").StatusMap;
2419
+ redirect?: string;
2420
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2421
+ };
2422
+ path: string;
2423
+ route: string;
2424
+ request: Request;
2425
+ store: {};
2426
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2427
+ readonly 100: "Continue";
2428
+ readonly 101: "Switching Protocols";
2429
+ readonly 102: "Processing";
2430
+ readonly 103: "Early Hints";
2431
+ readonly 200: "OK";
2432
+ readonly 201: "Created";
2433
+ readonly 202: "Accepted";
2434
+ readonly 203: "Non-Authoritative Information";
2435
+ readonly 204: "No Content";
2436
+ readonly 205: "Reset Content";
2437
+ readonly 206: "Partial Content";
2438
+ readonly 207: "Multi-Status";
2439
+ readonly 208: "Already Reported";
2440
+ readonly 300: "Multiple Choices";
2441
+ readonly 301: "Moved Permanently";
2442
+ readonly 302: "Found";
2443
+ readonly 303: "See Other";
2444
+ readonly 304: "Not Modified";
2445
+ readonly 307: "Temporary Redirect";
2446
+ readonly 308: "Permanent Redirect";
2447
+ readonly 400: "Bad Request";
2448
+ readonly 401: "Unauthorized";
2449
+ readonly 402: "Payment Required";
2450
+ readonly 403: "Forbidden";
2451
+ readonly 404: "Not Found";
2452
+ readonly 405: "Method Not Allowed";
2453
+ readonly 406: "Not Acceptable";
2454
+ readonly 407: "Proxy Authentication Required";
2455
+ readonly 408: "Request Timeout";
2456
+ readonly 409: "Conflict";
2457
+ readonly 410: "Gone";
2458
+ readonly 411: "Length Required";
2459
+ readonly 412: "Precondition Failed";
2460
+ readonly 413: "Payload Too Large";
2461
+ readonly 414: "URI Too Long";
2462
+ readonly 415: "Unsupported Media Type";
2463
+ readonly 416: "Range Not Satisfiable";
2464
+ readonly 417: "Expectation Failed";
2465
+ readonly 418: "I'm a teapot";
2466
+ readonly 420: "Enhance Your Calm";
2467
+ readonly 421: "Misdirected Request";
2468
+ readonly 422: "Unprocessable Content";
2469
+ readonly 423: "Locked";
2470
+ readonly 424: "Failed Dependency";
2471
+ readonly 425: "Too Early";
2472
+ readonly 426: "Upgrade Required";
2473
+ readonly 428: "Precondition Required";
2474
+ readonly 429: "Too Many Requests";
2475
+ readonly 431: "Request Header Fields Too Large";
2476
+ readonly 451: "Unavailable For Legal Reasons";
2477
+ readonly 500: "Internal Server Error";
2478
+ readonly 501: "Not Implemented";
2479
+ readonly 502: "Bad Gateway";
2480
+ readonly 503: "Service Unavailable";
2481
+ readonly 504: "Gateway Timeout";
2482
+ readonly 505: "HTTP Version Not Supported";
2483
+ readonly 506: "Variant Also Negotiates";
2484
+ readonly 507: "Insufficient Storage";
2485
+ readonly 508: "Loop Detected";
2486
+ readonly 510: "Not Extended";
2487
+ readonly 511: "Network Authentication Required";
2488
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2489
+ readonly Continue: 100;
2490
+ readonly 'Switching Protocols': 101;
2491
+ readonly Processing: 102;
2492
+ readonly 'Early Hints': 103;
2493
+ readonly OK: 200;
2494
+ readonly Created: 201;
2495
+ readonly Accepted: 202;
2496
+ readonly 'Non-Authoritative Information': 203;
2497
+ readonly 'No Content': 204;
2498
+ readonly 'Reset Content': 205;
2499
+ readonly 'Partial Content': 206;
2500
+ readonly 'Multi-Status': 207;
2501
+ readonly 'Already Reported': 208;
2502
+ readonly 'Multiple Choices': 300;
2503
+ readonly 'Moved Permanently': 301;
2504
+ readonly Found: 302;
2505
+ readonly 'See Other': 303;
2506
+ readonly 'Not Modified': 304;
2507
+ readonly 'Temporary Redirect': 307;
2508
+ readonly 'Permanent Redirect': 308;
2509
+ readonly 'Bad Request': 400;
2510
+ readonly Unauthorized: 401;
2511
+ readonly 'Payment Required': 402;
2512
+ readonly Forbidden: 403;
2513
+ readonly 'Not Found': 404;
2514
+ readonly 'Method Not Allowed': 405;
2515
+ readonly 'Not Acceptable': 406;
2516
+ readonly 'Proxy Authentication Required': 407;
2517
+ readonly 'Request Timeout': 408;
2518
+ readonly Conflict: 409;
2519
+ readonly Gone: 410;
2520
+ readonly 'Length Required': 411;
2521
+ readonly 'Precondition Failed': 412;
2522
+ readonly 'Payload Too Large': 413;
2523
+ readonly 'URI Too Long': 414;
2524
+ readonly 'Unsupported Media Type': 415;
2525
+ readonly 'Range Not Satisfiable': 416;
2526
+ readonly 'Expectation Failed': 417;
2527
+ readonly "I'm a teapot": 418;
2528
+ readonly 'Enhance Your Calm': 420;
2529
+ readonly 'Misdirected Request': 421;
2530
+ readonly 'Unprocessable Content': 422;
2531
+ readonly Locked: 423;
2532
+ readonly 'Failed Dependency': 424;
2533
+ readonly 'Too Early': 425;
2534
+ readonly 'Upgrade Required': 426;
2535
+ readonly 'Precondition Required': 428;
2536
+ readonly 'Too Many Requests': 429;
2537
+ readonly 'Request Header Fields Too Large': 431;
2538
+ readonly 'Unavailable For Legal Reasons': 451;
2539
+ readonly 'Internal Server Error': 500;
2540
+ readonly 'Not Implemented': 501;
2541
+ readonly 'Bad Gateway': 502;
2542
+ readonly 'Service Unavailable': 503;
2543
+ readonly 'Gateway Timeout': 504;
2544
+ readonly 'HTTP Version Not Supported': 505;
2545
+ readonly 'Variant Also Negotiates': 506;
2546
+ readonly 'Insufficient Storage': 507;
2547
+ readonly 'Loop Detected': 508;
2548
+ readonly 'Not Extended': 510;
2549
+ readonly 'Network Authentication Required': 511;
2550
+ }[Code] : Code>;
2551
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2552
+ }) => Promise<unknown>, {}> extends infer T ? { [K in keyof T]: T[K]; } : never;
2553
+ };
2554
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>, {
2555
+ post: {
2556
+ body: unknown;
2557
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/sign-out`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown>;
2558
+ query: unknown;
2559
+ headers: unknown;
2560
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, {}>, (ctx: {
2561
+ body: unknown;
2562
+ query: Record<string, string>;
2563
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> extends infer T_2 ? T_2 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/sign-out`>>, unknown> ? T_2 extends object ? { [K in keyof T_2]: T_2[K]; } : T_2 : never : never;
2564
+ headers: Record<string, string | undefined>;
2565
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2566
+ server: import("elysia/universal").Server | null;
2567
+ redirect: import("elysia").redirect;
2568
+ set: {
2569
+ headers: import("elysia").HTTPHeaders;
2570
+ status?: number | keyof import("elysia").StatusMap;
2571
+ redirect?: string;
2572
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2573
+ };
2574
+ path: string;
2575
+ route: string;
2576
+ request: Request;
2577
+ store: {};
2578
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2579
+ readonly 100: "Continue";
2580
+ readonly 101: "Switching Protocols";
2581
+ readonly 102: "Processing";
2582
+ readonly 103: "Early Hints";
2583
+ readonly 200: "OK";
2584
+ readonly 201: "Created";
2585
+ readonly 202: "Accepted";
2586
+ readonly 203: "Non-Authoritative Information";
2587
+ readonly 204: "No Content";
2588
+ readonly 205: "Reset Content";
2589
+ readonly 206: "Partial Content";
2590
+ readonly 207: "Multi-Status";
2591
+ readonly 208: "Already Reported";
2592
+ readonly 300: "Multiple Choices";
2593
+ readonly 301: "Moved Permanently";
2594
+ readonly 302: "Found";
2595
+ readonly 303: "See Other";
2596
+ readonly 304: "Not Modified";
2597
+ readonly 307: "Temporary Redirect";
2598
+ readonly 308: "Permanent Redirect";
2599
+ readonly 400: "Bad Request";
2600
+ readonly 401: "Unauthorized";
2601
+ readonly 402: "Payment Required";
2602
+ readonly 403: "Forbidden";
2603
+ readonly 404: "Not Found";
2604
+ readonly 405: "Method Not Allowed";
2605
+ readonly 406: "Not Acceptable";
2606
+ readonly 407: "Proxy Authentication Required";
2607
+ readonly 408: "Request Timeout";
2608
+ readonly 409: "Conflict";
2609
+ readonly 410: "Gone";
2610
+ readonly 411: "Length Required";
2611
+ readonly 412: "Precondition Failed";
2612
+ readonly 413: "Payload Too Large";
2613
+ readonly 414: "URI Too Long";
2614
+ readonly 415: "Unsupported Media Type";
2615
+ readonly 416: "Range Not Satisfiable";
2616
+ readonly 417: "Expectation Failed";
2617
+ readonly 418: "I'm a teapot";
2618
+ readonly 420: "Enhance Your Calm";
2619
+ readonly 421: "Misdirected Request";
2620
+ readonly 422: "Unprocessable Content";
2621
+ readonly 423: "Locked";
2622
+ readonly 424: "Failed Dependency";
2623
+ readonly 425: "Too Early";
2624
+ readonly 426: "Upgrade Required";
2625
+ readonly 428: "Precondition Required";
2626
+ readonly 429: "Too Many Requests";
2627
+ readonly 431: "Request Header Fields Too Large";
2628
+ readonly 451: "Unavailable For Legal Reasons";
2629
+ readonly 500: "Internal Server Error";
2630
+ readonly 501: "Not Implemented";
2631
+ readonly 502: "Bad Gateway";
2632
+ readonly 503: "Service Unavailable";
2633
+ readonly 504: "Gateway Timeout";
2634
+ readonly 505: "HTTP Version Not Supported";
2635
+ readonly 506: "Variant Also Negotiates";
2636
+ readonly 507: "Insufficient Storage";
2637
+ readonly 508: "Loop Detected";
2638
+ readonly 510: "Not Extended";
2639
+ readonly 511: "Network Authentication Required";
2640
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2641
+ readonly Continue: 100;
2642
+ readonly 'Switching Protocols': 101;
2643
+ readonly Processing: 102;
2644
+ readonly 'Early Hints': 103;
2645
+ readonly OK: 200;
2646
+ readonly Created: 201;
2647
+ readonly Accepted: 202;
2648
+ readonly 'Non-Authoritative Information': 203;
2649
+ readonly 'No Content': 204;
2650
+ readonly 'Reset Content': 205;
2651
+ readonly 'Partial Content': 206;
2652
+ readonly 'Multi-Status': 207;
2653
+ readonly 'Already Reported': 208;
2654
+ readonly 'Multiple Choices': 300;
2655
+ readonly 'Moved Permanently': 301;
2656
+ readonly Found: 302;
2657
+ readonly 'See Other': 303;
2658
+ readonly 'Not Modified': 304;
2659
+ readonly 'Temporary Redirect': 307;
2660
+ readonly 'Permanent Redirect': 308;
2661
+ readonly 'Bad Request': 400;
2662
+ readonly Unauthorized: 401;
2663
+ readonly 'Payment Required': 402;
2664
+ readonly Forbidden: 403;
2665
+ readonly 'Not Found': 404;
2666
+ readonly 'Method Not Allowed': 405;
2667
+ readonly 'Not Acceptable': 406;
2668
+ readonly 'Proxy Authentication Required': 407;
2669
+ readonly 'Request Timeout': 408;
2670
+ readonly Conflict: 409;
2671
+ readonly Gone: 410;
2672
+ readonly 'Length Required': 411;
2673
+ readonly 'Precondition Failed': 412;
2674
+ readonly 'Payload Too Large': 413;
2675
+ readonly 'URI Too Long': 414;
2676
+ readonly 'Unsupported Media Type': 415;
2677
+ readonly 'Range Not Satisfiable': 416;
2678
+ readonly 'Expectation Failed': 417;
2679
+ readonly "I'm a teapot": 418;
2680
+ readonly 'Enhance Your Calm': 420;
2681
+ readonly 'Misdirected Request': 421;
2682
+ readonly 'Unprocessable Content': 422;
2683
+ readonly Locked: 423;
2684
+ readonly 'Failed Dependency': 424;
2685
+ readonly 'Too Early': 425;
2686
+ readonly 'Upgrade Required': 426;
2687
+ readonly 'Precondition Required': 428;
2688
+ readonly 'Too Many Requests': 429;
2689
+ readonly 'Request Header Fields Too Large': 431;
2690
+ readonly 'Unavailable For Legal Reasons': 451;
2691
+ readonly 'Internal Server Error': 500;
2692
+ readonly 'Not Implemented': 501;
2693
+ readonly 'Bad Gateway': 502;
2694
+ readonly 'Service Unavailable': 503;
2695
+ readonly 'Gateway Timeout': 504;
2696
+ readonly 'HTTP Version Not Supported': 505;
2697
+ readonly 'Variant Also Negotiates': 506;
2698
+ readonly 'Insufficient Storage': 507;
2699
+ readonly 'Loop Detected': 508;
2700
+ readonly 'Not Extended': 510;
2701
+ readonly 'Network Authentication Required': 511;
2702
+ }[Code] : Code>;
2703
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2704
+ }) => Promise<Response>, {}> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never;
2705
+ };
2706
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>, {
2707
+ post: {
2708
+ body: unknown;
2709
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/stop-impersonating`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown>;
2710
+ query: unknown;
2711
+ headers: unknown;
2712
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, {}>, (ctx: {
2713
+ body: unknown;
2714
+ query: Record<string, string>;
2715
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> extends infer T_3 ? T_3 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/stop-impersonating`>>, unknown> ? T_3 extends object ? { [K in keyof T_3]: T_3[K]; } : T_3 : never : never;
2716
+ headers: Record<string, string | undefined>;
2717
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2718
+ server: import("elysia/universal").Server | null;
2719
+ redirect: import("elysia").redirect;
2720
+ set: {
2721
+ headers: import("elysia").HTTPHeaders;
2722
+ status?: number | keyof import("elysia").StatusMap;
2723
+ redirect?: string;
2724
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2725
+ };
2726
+ path: string;
2727
+ route: string;
2728
+ request: Request;
2729
+ store: {};
2730
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2731
+ readonly 100: "Continue";
2732
+ readonly 101: "Switching Protocols";
2733
+ readonly 102: "Processing";
2734
+ readonly 103: "Early Hints";
2735
+ readonly 200: "OK";
2736
+ readonly 201: "Created";
2737
+ readonly 202: "Accepted";
2738
+ readonly 203: "Non-Authoritative Information";
2739
+ readonly 204: "No Content";
2740
+ readonly 205: "Reset Content";
2741
+ readonly 206: "Partial Content";
2742
+ readonly 207: "Multi-Status";
2743
+ readonly 208: "Already Reported";
2744
+ readonly 300: "Multiple Choices";
2745
+ readonly 301: "Moved Permanently";
2746
+ readonly 302: "Found";
2747
+ readonly 303: "See Other";
2748
+ readonly 304: "Not Modified";
2749
+ readonly 307: "Temporary Redirect";
2750
+ readonly 308: "Permanent Redirect";
2751
+ readonly 400: "Bad Request";
2752
+ readonly 401: "Unauthorized";
2753
+ readonly 402: "Payment Required";
2754
+ readonly 403: "Forbidden";
2755
+ readonly 404: "Not Found";
2756
+ readonly 405: "Method Not Allowed";
2757
+ readonly 406: "Not Acceptable";
2758
+ readonly 407: "Proxy Authentication Required";
2759
+ readonly 408: "Request Timeout";
2760
+ readonly 409: "Conflict";
2761
+ readonly 410: "Gone";
2762
+ readonly 411: "Length Required";
2763
+ readonly 412: "Precondition Failed";
2764
+ readonly 413: "Payload Too Large";
2765
+ readonly 414: "URI Too Long";
2766
+ readonly 415: "Unsupported Media Type";
2767
+ readonly 416: "Range Not Satisfiable";
2768
+ readonly 417: "Expectation Failed";
2769
+ readonly 418: "I'm a teapot";
2770
+ readonly 420: "Enhance Your Calm";
2771
+ readonly 421: "Misdirected Request";
2772
+ readonly 422: "Unprocessable Content";
2773
+ readonly 423: "Locked";
2774
+ readonly 424: "Failed Dependency";
2775
+ readonly 425: "Too Early";
2776
+ readonly 426: "Upgrade Required";
2777
+ readonly 428: "Precondition Required";
2778
+ readonly 429: "Too Many Requests";
2779
+ readonly 431: "Request Header Fields Too Large";
2780
+ readonly 451: "Unavailable For Legal Reasons";
2781
+ readonly 500: "Internal Server Error";
2782
+ readonly 501: "Not Implemented";
2783
+ readonly 502: "Bad Gateway";
2784
+ readonly 503: "Service Unavailable";
2785
+ readonly 504: "Gateway Timeout";
2786
+ readonly 505: "HTTP Version Not Supported";
2787
+ readonly 506: "Variant Also Negotiates";
2788
+ readonly 507: "Insufficient Storage";
2789
+ readonly 508: "Loop Detected";
2790
+ readonly 510: "Not Extended";
2791
+ readonly 511: "Network Authentication Required";
2792
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2793
+ readonly Continue: 100;
2794
+ readonly 'Switching Protocols': 101;
2795
+ readonly Processing: 102;
2796
+ readonly 'Early Hints': 103;
2797
+ readonly OK: 200;
2798
+ readonly Created: 201;
2799
+ readonly Accepted: 202;
2800
+ readonly 'Non-Authoritative Information': 203;
2801
+ readonly 'No Content': 204;
2802
+ readonly 'Reset Content': 205;
2803
+ readonly 'Partial Content': 206;
2804
+ readonly 'Multi-Status': 207;
2805
+ readonly 'Already Reported': 208;
2806
+ readonly 'Multiple Choices': 300;
2807
+ readonly 'Moved Permanently': 301;
2808
+ readonly Found: 302;
2809
+ readonly 'See Other': 303;
2810
+ readonly 'Not Modified': 304;
2811
+ readonly 'Temporary Redirect': 307;
2812
+ readonly 'Permanent Redirect': 308;
2813
+ readonly 'Bad Request': 400;
2814
+ readonly Unauthorized: 401;
2815
+ readonly 'Payment Required': 402;
2816
+ readonly Forbidden: 403;
2817
+ readonly 'Not Found': 404;
2818
+ readonly 'Method Not Allowed': 405;
2819
+ readonly 'Not Acceptable': 406;
2820
+ readonly 'Proxy Authentication Required': 407;
2821
+ readonly 'Request Timeout': 408;
2822
+ readonly Conflict: 409;
2823
+ readonly Gone: 410;
2824
+ readonly 'Length Required': 411;
2825
+ readonly 'Precondition Failed': 412;
2826
+ readonly 'Payload Too Large': 413;
2827
+ readonly 'URI Too Long': 414;
2828
+ readonly 'Unsupported Media Type': 415;
2829
+ readonly 'Range Not Satisfiable': 416;
2830
+ readonly 'Expectation Failed': 417;
2831
+ readonly "I'm a teapot": 418;
2832
+ readonly 'Enhance Your Calm': 420;
2833
+ readonly 'Misdirected Request': 421;
2834
+ readonly 'Unprocessable Content': 422;
2835
+ readonly Locked: 423;
2836
+ readonly 'Failed Dependency': 424;
2837
+ readonly 'Too Early': 425;
2838
+ readonly 'Upgrade Required': 426;
2839
+ readonly 'Precondition Required': 428;
2840
+ readonly 'Too Many Requests': 429;
2841
+ readonly 'Request Header Fields Too Large': 431;
2842
+ readonly 'Unavailable For Legal Reasons': 451;
2843
+ readonly 'Internal Server Error': 500;
2844
+ readonly 'Not Implemented': 501;
2845
+ readonly 'Bad Gateway': 502;
2846
+ readonly 'Service Unavailable': 503;
2847
+ readonly 'Gateway Timeout': 504;
2848
+ readonly 'HTTP Version Not Supported': 505;
2849
+ readonly 'Variant Also Negotiates': 506;
2850
+ readonly 'Insufficient Storage': 507;
2851
+ readonly 'Loop Detected': 508;
2852
+ readonly 'Not Extended': 510;
2853
+ readonly 'Network Authentication Required': 511;
2854
+ }[Code] : Code>;
2855
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
2856
+ }) => Promise<Response>, {}> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
2857
+ };
2858
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>, {
2859
+ post: {
2860
+ body: unknown;
2861
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/cancel-deletion`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown>;
2862
+ query: unknown;
2863
+ headers: unknown;
2864
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, {}>, (ctx: {
2865
+ body: unknown;
2866
+ query: Record<string, string>;
2867
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> extends infer T_4 ? T_4 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/cancel-deletion`>>, unknown> ? T_4 extends object ? { [K in keyof T_4]: T_4[K]; } : T_4 : never : never;
2868
+ headers: Record<string, string | undefined>;
2869
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
2870
+ server: import("elysia/universal").Server | null;
2871
+ redirect: import("elysia").redirect;
2872
+ set: {
2873
+ headers: import("elysia").HTTPHeaders;
2874
+ status?: number | keyof import("elysia").StatusMap;
2875
+ redirect?: string;
2876
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
2877
+ };
2878
+ path: string;
2879
+ route: string;
2880
+ request: Request;
2881
+ store: {};
2882
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
2883
+ readonly 100: "Continue";
2884
+ readonly 101: "Switching Protocols";
2885
+ readonly 102: "Processing";
2886
+ readonly 103: "Early Hints";
2887
+ readonly 200: "OK";
2888
+ readonly 201: "Created";
2889
+ readonly 202: "Accepted";
2890
+ readonly 203: "Non-Authoritative Information";
2891
+ readonly 204: "No Content";
2892
+ readonly 205: "Reset Content";
2893
+ readonly 206: "Partial Content";
2894
+ readonly 207: "Multi-Status";
2895
+ readonly 208: "Already Reported";
2896
+ readonly 300: "Multiple Choices";
2897
+ readonly 301: "Moved Permanently";
2898
+ readonly 302: "Found";
2899
+ readonly 303: "See Other";
2900
+ readonly 304: "Not Modified";
2901
+ readonly 307: "Temporary Redirect";
2902
+ readonly 308: "Permanent Redirect";
2903
+ readonly 400: "Bad Request";
2904
+ readonly 401: "Unauthorized";
2905
+ readonly 402: "Payment Required";
2906
+ readonly 403: "Forbidden";
2907
+ readonly 404: "Not Found";
2908
+ readonly 405: "Method Not Allowed";
2909
+ readonly 406: "Not Acceptable";
2910
+ readonly 407: "Proxy Authentication Required";
2911
+ readonly 408: "Request Timeout";
2912
+ readonly 409: "Conflict";
2913
+ readonly 410: "Gone";
2914
+ readonly 411: "Length Required";
2915
+ readonly 412: "Precondition Failed";
2916
+ readonly 413: "Payload Too Large";
2917
+ readonly 414: "URI Too Long";
2918
+ readonly 415: "Unsupported Media Type";
2919
+ readonly 416: "Range Not Satisfiable";
2920
+ readonly 417: "Expectation Failed";
2921
+ readonly 418: "I'm a teapot";
2922
+ readonly 420: "Enhance Your Calm";
2923
+ readonly 421: "Misdirected Request";
2924
+ readonly 422: "Unprocessable Content";
2925
+ readonly 423: "Locked";
2926
+ readonly 424: "Failed Dependency";
2927
+ readonly 425: "Too Early";
2928
+ readonly 426: "Upgrade Required";
2929
+ readonly 428: "Precondition Required";
2930
+ readonly 429: "Too Many Requests";
2931
+ readonly 431: "Request Header Fields Too Large";
2932
+ readonly 451: "Unavailable For Legal Reasons";
2933
+ readonly 500: "Internal Server Error";
2934
+ readonly 501: "Not Implemented";
2935
+ readonly 502: "Bad Gateway";
2936
+ readonly 503: "Service Unavailable";
2937
+ readonly 504: "Gateway Timeout";
2938
+ readonly 505: "HTTP Version Not Supported";
2939
+ readonly 506: "Variant Also Negotiates";
2940
+ readonly 507: "Insufficient Storage";
2941
+ readonly 508: "Loop Detected";
2942
+ readonly 510: "Not Extended";
2943
+ readonly 511: "Network Authentication Required";
2944
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
2945
+ readonly Continue: 100;
2946
+ readonly 'Switching Protocols': 101;
2947
+ readonly Processing: 102;
2948
+ readonly 'Early Hints': 103;
2949
+ readonly OK: 200;
2950
+ readonly Created: 201;
2951
+ readonly Accepted: 202;
2952
+ readonly 'Non-Authoritative Information': 203;
2953
+ readonly 'No Content': 204;
2954
+ readonly 'Reset Content': 205;
2955
+ readonly 'Partial Content': 206;
2956
+ readonly 'Multi-Status': 207;
2957
+ readonly 'Already Reported': 208;
2958
+ readonly 'Multiple Choices': 300;
2959
+ readonly 'Moved Permanently': 301;
2960
+ readonly Found: 302;
2961
+ readonly 'See Other': 303;
2962
+ readonly 'Not Modified': 304;
2963
+ readonly 'Temporary Redirect': 307;
2964
+ readonly 'Permanent Redirect': 308;
2965
+ readonly 'Bad Request': 400;
2966
+ readonly Unauthorized: 401;
2967
+ readonly 'Payment Required': 402;
2968
+ readonly Forbidden: 403;
2969
+ readonly 'Not Found': 404;
2970
+ readonly 'Method Not Allowed': 405;
2971
+ readonly 'Not Acceptable': 406;
2972
+ readonly 'Proxy Authentication Required': 407;
2973
+ readonly 'Request Timeout': 408;
2974
+ readonly Conflict: 409;
2975
+ readonly Gone: 410;
2976
+ readonly 'Length Required': 411;
2977
+ readonly 'Precondition Failed': 412;
2978
+ readonly 'Payload Too Large': 413;
2979
+ readonly 'URI Too Long': 414;
2980
+ readonly 'Unsupported Media Type': 415;
2981
+ readonly 'Range Not Satisfiable': 416;
2982
+ readonly 'Expectation Failed': 417;
2983
+ readonly "I'm a teapot": 418;
2984
+ readonly 'Enhance Your Calm': 420;
2985
+ readonly 'Misdirected Request': 421;
2986
+ readonly 'Unprocessable Content': 422;
2987
+ readonly Locked: 423;
2988
+ readonly 'Failed Dependency': 424;
2989
+ readonly 'Too Early': 425;
2990
+ readonly 'Upgrade Required': 426;
2991
+ readonly 'Precondition Required': 428;
2992
+ readonly 'Too Many Requests': 429;
2993
+ readonly 'Request Header Fields Too Large': 431;
2994
+ readonly 'Unavailable For Legal Reasons': 451;
2995
+ readonly 'Internal Server Error': 500;
2996
+ readonly 'Not Implemented': 501;
2997
+ readonly 'Bad Gateway': 502;
2998
+ readonly 'Service Unavailable': 503;
2999
+ readonly 'Gateway Timeout': 504;
3000
+ readonly 'HTTP Version Not Supported': 505;
3001
+ readonly 'Variant Also Negotiates': 506;
3002
+ readonly 'Insufficient Storage': 507;
3003
+ readonly 'Loop Detected': 508;
3004
+ readonly 'Not Extended': 510;
3005
+ readonly 'Network Authentication Required': 511;
3006
+ }[Code] : Code>;
3007
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
3008
+ }) => Promise<Response>, {}> extends infer T_3 ? { [K in keyof T_3]: T_3[K]; } : never;
3009
+ };
3010
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>, {
3011
+ get: {
3012
+ body: unknown;
3013
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown>;
3014
+ query: unknown;
3015
+ headers: unknown;
3016
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, {}>, (ctx: {
3017
+ body: unknown;
3018
+ query: Record<string, string>;
3019
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> extends infer T_5 ? T_5 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider`>>, unknown> ? T_5 extends object ? { [K in keyof T_5]: T_5[K]; } : T_5 : never : never;
3020
+ headers: Record<string, string | undefined>;
3021
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
3022
+ server: import("elysia/universal").Server | null;
3023
+ redirect: import("elysia").redirect;
3024
+ set: {
3025
+ headers: import("elysia").HTTPHeaders;
3026
+ status?: number | keyof import("elysia").StatusMap;
3027
+ redirect?: string;
3028
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
3029
+ };
3030
+ path: string;
3031
+ route: string;
3032
+ request: Request;
3033
+ store: {};
3034
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
3035
+ readonly 100: "Continue";
3036
+ readonly 101: "Switching Protocols";
3037
+ readonly 102: "Processing";
3038
+ readonly 103: "Early Hints";
3039
+ readonly 200: "OK";
3040
+ readonly 201: "Created";
3041
+ readonly 202: "Accepted";
3042
+ readonly 203: "Non-Authoritative Information";
3043
+ readonly 204: "No Content";
3044
+ readonly 205: "Reset Content";
3045
+ readonly 206: "Partial Content";
3046
+ readonly 207: "Multi-Status";
3047
+ readonly 208: "Already Reported";
3048
+ readonly 300: "Multiple Choices";
3049
+ readonly 301: "Moved Permanently";
3050
+ readonly 302: "Found";
3051
+ readonly 303: "See Other";
3052
+ readonly 304: "Not Modified";
3053
+ readonly 307: "Temporary Redirect";
3054
+ readonly 308: "Permanent Redirect";
3055
+ readonly 400: "Bad Request";
3056
+ readonly 401: "Unauthorized";
3057
+ readonly 402: "Payment Required";
3058
+ readonly 403: "Forbidden";
3059
+ readonly 404: "Not Found";
3060
+ readonly 405: "Method Not Allowed";
3061
+ readonly 406: "Not Acceptable";
3062
+ readonly 407: "Proxy Authentication Required";
3063
+ readonly 408: "Request Timeout";
3064
+ readonly 409: "Conflict";
3065
+ readonly 410: "Gone";
3066
+ readonly 411: "Length Required";
3067
+ readonly 412: "Precondition Failed";
3068
+ readonly 413: "Payload Too Large";
3069
+ readonly 414: "URI Too Long";
3070
+ readonly 415: "Unsupported Media Type";
3071
+ readonly 416: "Range Not Satisfiable";
3072
+ readonly 417: "Expectation Failed";
3073
+ readonly 418: "I'm a teapot";
3074
+ readonly 420: "Enhance Your Calm";
3075
+ readonly 421: "Misdirected Request";
3076
+ readonly 422: "Unprocessable Content";
3077
+ readonly 423: "Locked";
3078
+ readonly 424: "Failed Dependency";
3079
+ readonly 425: "Too Early";
3080
+ readonly 426: "Upgrade Required";
3081
+ readonly 428: "Precondition Required";
3082
+ readonly 429: "Too Many Requests";
3083
+ readonly 431: "Request Header Fields Too Large";
3084
+ readonly 451: "Unavailable For Legal Reasons";
3085
+ readonly 500: "Internal Server Error";
3086
+ readonly 501: "Not Implemented";
3087
+ readonly 502: "Bad Gateway";
3088
+ readonly 503: "Service Unavailable";
3089
+ readonly 504: "Gateway Timeout";
3090
+ readonly 505: "HTTP Version Not Supported";
3091
+ readonly 506: "Variant Also Negotiates";
3092
+ readonly 507: "Insufficient Storage";
3093
+ readonly 508: "Loop Detected";
3094
+ readonly 510: "Not Extended";
3095
+ readonly 511: "Network Authentication Required";
3096
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
3097
+ readonly Continue: 100;
3098
+ readonly 'Switching Protocols': 101;
3099
+ readonly Processing: 102;
3100
+ readonly 'Early Hints': 103;
3101
+ readonly OK: 200;
3102
+ readonly Created: 201;
3103
+ readonly Accepted: 202;
3104
+ readonly 'Non-Authoritative Information': 203;
3105
+ readonly 'No Content': 204;
3106
+ readonly 'Reset Content': 205;
3107
+ readonly 'Partial Content': 206;
3108
+ readonly 'Multi-Status': 207;
3109
+ readonly 'Already Reported': 208;
3110
+ readonly 'Multiple Choices': 300;
3111
+ readonly 'Moved Permanently': 301;
3112
+ readonly Found: 302;
3113
+ readonly 'See Other': 303;
3114
+ readonly 'Not Modified': 304;
3115
+ readonly 'Temporary Redirect': 307;
3116
+ readonly 'Permanent Redirect': 308;
3117
+ readonly 'Bad Request': 400;
3118
+ readonly Unauthorized: 401;
3119
+ readonly 'Payment Required': 402;
3120
+ readonly Forbidden: 403;
3121
+ readonly 'Not Found': 404;
3122
+ readonly 'Method Not Allowed': 405;
3123
+ readonly 'Not Acceptable': 406;
3124
+ readonly 'Proxy Authentication Required': 407;
3125
+ readonly 'Request Timeout': 408;
3126
+ readonly Conflict: 409;
3127
+ readonly Gone: 410;
3128
+ readonly 'Length Required': 411;
3129
+ readonly 'Precondition Failed': 412;
3130
+ readonly 'Payload Too Large': 413;
3131
+ readonly 'URI Too Long': 414;
3132
+ readonly 'Unsupported Media Type': 415;
3133
+ readonly 'Range Not Satisfiable': 416;
3134
+ readonly 'Expectation Failed': 417;
3135
+ readonly "I'm a teapot": 418;
3136
+ readonly 'Enhance Your Calm': 420;
3137
+ readonly 'Misdirected Request': 421;
3138
+ readonly 'Unprocessable Content': 422;
3139
+ readonly Locked: 423;
3140
+ readonly 'Failed Dependency': 424;
3141
+ readonly 'Too Early': 425;
3142
+ readonly 'Upgrade Required': 426;
3143
+ readonly 'Precondition Required': 428;
3144
+ readonly 'Too Many Requests': 429;
3145
+ readonly 'Request Header Fields Too Large': 431;
3146
+ readonly 'Unavailable For Legal Reasons': 451;
3147
+ readonly 'Internal Server Error': 500;
3148
+ readonly 'Not Implemented': 501;
3149
+ readonly 'Bad Gateway': 502;
3150
+ readonly 'Service Unavailable': 503;
3151
+ readonly 'Gateway Timeout': 504;
3152
+ readonly 'HTTP Version Not Supported': 505;
3153
+ readonly 'Variant Also Negotiates': 506;
3154
+ readonly 'Insufficient Storage': 507;
3155
+ readonly 'Loop Detected': 508;
3156
+ readonly 'Not Extended': 510;
3157
+ readonly 'Network Authentication Required': 511;
3158
+ }[Code] : Code>;
3159
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
3160
+ }) => Promise<unknown>, {}> extends infer T_4 ? { [K in keyof T_4]: T_4[K]; } : never;
3161
+ };
3162
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
3163
+ get: {
3164
+ body: unknown;
3165
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
3166
+ query: unknown;
3167
+ headers: unknown;
3168
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
3169
+ body: unknown;
3170
+ query: Record<string, string>;
3171
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
3172
+ headers: Record<string, string | undefined>;
3173
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
3174
+ server: import("elysia/universal").Server | null;
3175
+ redirect: import("elysia").redirect;
3176
+ set: {
3177
+ headers: import("elysia").HTTPHeaders;
3178
+ status?: number | keyof import("elysia").StatusMap;
3179
+ redirect?: string;
3180
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
3181
+ };
3182
+ path: string;
3183
+ route: string;
3184
+ request: Request;
3185
+ store: {};
3186
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
3187
+ readonly 100: "Continue";
3188
+ readonly 101: "Switching Protocols";
3189
+ readonly 102: "Processing";
3190
+ readonly 103: "Early Hints";
3191
+ readonly 200: "OK";
3192
+ readonly 201: "Created";
3193
+ readonly 202: "Accepted";
3194
+ readonly 203: "Non-Authoritative Information";
3195
+ readonly 204: "No Content";
3196
+ readonly 205: "Reset Content";
3197
+ readonly 206: "Partial Content";
3198
+ readonly 207: "Multi-Status";
3199
+ readonly 208: "Already Reported";
3200
+ readonly 300: "Multiple Choices";
3201
+ readonly 301: "Moved Permanently";
3202
+ readonly 302: "Found";
3203
+ readonly 303: "See Other";
3204
+ readonly 304: "Not Modified";
3205
+ readonly 307: "Temporary Redirect";
3206
+ readonly 308: "Permanent Redirect";
3207
+ readonly 400: "Bad Request";
3208
+ readonly 401: "Unauthorized";
3209
+ readonly 402: "Payment Required";
3210
+ readonly 403: "Forbidden";
3211
+ readonly 404: "Not Found";
3212
+ readonly 405: "Method Not Allowed";
3213
+ readonly 406: "Not Acceptable";
3214
+ readonly 407: "Proxy Authentication Required";
3215
+ readonly 408: "Request Timeout";
3216
+ readonly 409: "Conflict";
3217
+ readonly 410: "Gone";
3218
+ readonly 411: "Length Required";
3219
+ readonly 412: "Precondition Failed";
3220
+ readonly 413: "Payload Too Large";
3221
+ readonly 414: "URI Too Long";
3222
+ readonly 415: "Unsupported Media Type";
3223
+ readonly 416: "Range Not Satisfiable";
3224
+ readonly 417: "Expectation Failed";
3225
+ readonly 418: "I'm a teapot";
3226
+ readonly 420: "Enhance Your Calm";
3227
+ readonly 421: "Misdirected Request";
3228
+ readonly 422: "Unprocessable Content";
3229
+ readonly 423: "Locked";
3230
+ readonly 424: "Failed Dependency";
3231
+ readonly 425: "Too Early";
3232
+ readonly 426: "Upgrade Required";
3233
+ readonly 428: "Precondition Required";
3234
+ readonly 429: "Too Many Requests";
3235
+ readonly 431: "Request Header Fields Too Large";
3236
+ readonly 451: "Unavailable For Legal Reasons";
3237
+ readonly 500: "Internal Server Error";
3238
+ readonly 501: "Not Implemented";
3239
+ readonly 502: "Bad Gateway";
3240
+ readonly 503: "Service Unavailable";
3241
+ readonly 504: "Gateway Timeout";
3242
+ readonly 505: "HTTP Version Not Supported";
3243
+ readonly 506: "Variant Also Negotiates";
3244
+ readonly 507: "Insufficient Storage";
3245
+ readonly 508: "Loop Detected";
3246
+ readonly 510: "Not Extended";
3247
+ readonly 511: "Network Authentication Required";
3248
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
3249
+ readonly Continue: 100;
3250
+ readonly 'Switching Protocols': 101;
3251
+ readonly Processing: 102;
3252
+ readonly 'Early Hints': 103;
3253
+ readonly OK: 200;
3254
+ readonly Created: 201;
3255
+ readonly Accepted: 202;
3256
+ readonly 'Non-Authoritative Information': 203;
3257
+ readonly 'No Content': 204;
3258
+ readonly 'Reset Content': 205;
3259
+ readonly 'Partial Content': 206;
3260
+ readonly 'Multi-Status': 207;
3261
+ readonly 'Already Reported': 208;
3262
+ readonly 'Multiple Choices': 300;
3263
+ readonly 'Moved Permanently': 301;
3264
+ readonly Found: 302;
3265
+ readonly 'See Other': 303;
3266
+ readonly 'Not Modified': 304;
3267
+ readonly 'Temporary Redirect': 307;
3268
+ readonly 'Permanent Redirect': 308;
3269
+ readonly 'Bad Request': 400;
3270
+ readonly Unauthorized: 401;
3271
+ readonly 'Payment Required': 402;
3272
+ readonly Forbidden: 403;
3273
+ readonly 'Not Found': 404;
3274
+ readonly 'Method Not Allowed': 405;
3275
+ readonly 'Not Acceptable': 406;
3276
+ readonly 'Proxy Authentication Required': 407;
3277
+ readonly 'Request Timeout': 408;
3278
+ readonly Conflict: 409;
3279
+ readonly Gone: 410;
3280
+ readonly 'Length Required': 411;
3281
+ readonly 'Precondition Failed': 412;
3282
+ readonly 'Payload Too Large': 413;
3283
+ readonly 'URI Too Long': 414;
3284
+ readonly 'Unsupported Media Type': 415;
3285
+ readonly 'Range Not Satisfiable': 416;
3286
+ readonly 'Expectation Failed': 417;
3287
+ readonly "I'm a teapot": 418;
3288
+ readonly 'Enhance Your Calm': 420;
3289
+ readonly 'Misdirected Request': 421;
3290
+ readonly 'Unprocessable Content': 422;
3291
+ readonly Locked: 423;
3292
+ readonly 'Failed Dependency': 424;
3293
+ readonly 'Too Early': 425;
3294
+ readonly 'Upgrade Required': 426;
3295
+ readonly 'Precondition Required': 428;
3296
+ readonly 'Too Many Requests': 429;
3297
+ readonly 'Request Header Fields Too Large': 431;
3298
+ readonly 'Unavailable For Legal Reasons': 451;
3299
+ readonly 'Internal Server Error': 500;
3300
+ readonly 'Not Implemented': 501;
3301
+ readonly 'Bad Gateway': 502;
3302
+ readonly 'Service Unavailable': 503;
3303
+ readonly 'Gateway Timeout': 504;
3304
+ readonly 'HTTP Version Not Supported': 505;
3305
+ readonly 'Variant Also Negotiates': 506;
3306
+ readonly 'Insufficient Storage': 507;
3307
+ readonly 'Loop Detected': 508;
3308
+ readonly 'Not Extended': 510;
3309
+ readonly 'Network Authentication Required': 511;
3310
+ }[Code] : Code>;
3311
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
3312
+ }) => Promise<Response>, {}> extends infer T_5 ? { [K in keyof T_5]: T_5[K]; } : never;
3313
+ };
3314
+ }> & import("elysia").CreateEden<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>, {
3315
+ post: {
3316
+ body: unknown;
3317
+ params: import("elysia/types").IsNever<keyof import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>> extends true ? import("elysia").ResolvePath<`${Prefix}/:provider/callback`> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown>;
3318
+ query: unknown;
3319
+ headers: unknown;
3320
+ response: import("elysia").ComposeElysiaResponse<import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<import("elysia").InputSchema<never>, {}, import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, {}>, (ctx: {
3321
+ body: unknown;
3322
+ query: Record<string, string>;
3323
+ params: undefined extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? Record<string, string> : import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> extends infer T_6 ? T_6 extends import("elysia/types").IntersectIfObject<import("elysia").ResolvePath<import("elysia/types").JoinPath<"", `${Prefix}/:provider/callback`>>, unknown> ? T_6 extends object ? { [K in keyof T_6]: T_6[K]; } : T_6 : never : never;
3324
+ headers: Record<string, string | undefined>;
3325
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
3326
+ server: import("elysia/universal").Server | null;
3327
+ redirect: import("elysia").redirect;
3328
+ set: {
3329
+ headers: import("elysia").HTTPHeaders;
3330
+ status?: number | keyof import("elysia").StatusMap;
3331
+ redirect?: string;
3332
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
3333
+ };
3334
+ path: string;
3335
+ route: string;
3336
+ request: Request;
3337
+ store: {};
3338
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T_2 = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
3339
+ readonly 100: "Continue";
3340
+ readonly 101: "Switching Protocols";
3341
+ readonly 102: "Processing";
3342
+ readonly 103: "Early Hints";
3343
+ readonly 200: "OK";
3344
+ readonly 201: "Created";
3345
+ readonly 202: "Accepted";
3346
+ readonly 203: "Non-Authoritative Information";
3347
+ readonly 204: "No Content";
3348
+ readonly 205: "Reset Content";
3349
+ readonly 206: "Partial Content";
3350
+ readonly 207: "Multi-Status";
3351
+ readonly 208: "Already Reported";
3352
+ readonly 300: "Multiple Choices";
3353
+ readonly 301: "Moved Permanently";
3354
+ readonly 302: "Found";
3355
+ readonly 303: "See Other";
3356
+ readonly 304: "Not Modified";
3357
+ readonly 307: "Temporary Redirect";
3358
+ readonly 308: "Permanent Redirect";
3359
+ readonly 400: "Bad Request";
3360
+ readonly 401: "Unauthorized";
3361
+ readonly 402: "Payment Required";
3362
+ readonly 403: "Forbidden";
3363
+ readonly 404: "Not Found";
3364
+ readonly 405: "Method Not Allowed";
3365
+ readonly 406: "Not Acceptable";
3366
+ readonly 407: "Proxy Authentication Required";
3367
+ readonly 408: "Request Timeout";
3368
+ readonly 409: "Conflict";
3369
+ readonly 410: "Gone";
3370
+ readonly 411: "Length Required";
3371
+ readonly 412: "Precondition Failed";
3372
+ readonly 413: "Payload Too Large";
3373
+ readonly 414: "URI Too Long";
3374
+ readonly 415: "Unsupported Media Type";
3375
+ readonly 416: "Range Not Satisfiable";
3376
+ readonly 417: "Expectation Failed";
3377
+ readonly 418: "I'm a teapot";
3378
+ readonly 420: "Enhance Your Calm";
3379
+ readonly 421: "Misdirected Request";
3380
+ readonly 422: "Unprocessable Content";
3381
+ readonly 423: "Locked";
3382
+ readonly 424: "Failed Dependency";
3383
+ readonly 425: "Too Early";
3384
+ readonly 426: "Upgrade Required";
3385
+ readonly 428: "Precondition Required";
3386
+ readonly 429: "Too Many Requests";
3387
+ readonly 431: "Request Header Fields Too Large";
3388
+ readonly 451: "Unavailable For Legal Reasons";
3389
+ readonly 500: "Internal Server Error";
3390
+ readonly 501: "Not Implemented";
3391
+ readonly 502: "Bad Gateway";
3392
+ readonly 503: "Service Unavailable";
3393
+ readonly 504: "Gateway Timeout";
3394
+ readonly 505: "HTTP Version Not Supported";
3395
+ readonly 506: "Variant Also Negotiates";
3396
+ readonly 507: "Insufficient Storage";
3397
+ readonly 508: "Loop Detected";
3398
+ readonly 510: "Not Extended";
3399
+ readonly 511: "Network Authentication Required";
3400
+ }[Code] : Code>(code: Code, response?: T_2) => import("elysia").ElysiaCustomStatusResponse<Code, T_2, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
3401
+ readonly Continue: 100;
3402
+ readonly 'Switching Protocols': 101;
3403
+ readonly Processing: 102;
3404
+ readonly 'Early Hints': 103;
3405
+ readonly OK: 200;
3406
+ readonly Created: 201;
3407
+ readonly Accepted: 202;
3408
+ readonly 'Non-Authoritative Information': 203;
3409
+ readonly 'No Content': 204;
3410
+ readonly 'Reset Content': 205;
3411
+ readonly 'Partial Content': 206;
3412
+ readonly 'Multi-Status': 207;
3413
+ readonly 'Already Reported': 208;
3414
+ readonly 'Multiple Choices': 300;
3415
+ readonly 'Moved Permanently': 301;
3416
+ readonly Found: 302;
3417
+ readonly 'See Other': 303;
3418
+ readonly 'Not Modified': 304;
3419
+ readonly 'Temporary Redirect': 307;
3420
+ readonly 'Permanent Redirect': 308;
3421
+ readonly 'Bad Request': 400;
3422
+ readonly Unauthorized: 401;
3423
+ readonly 'Payment Required': 402;
3424
+ readonly Forbidden: 403;
3425
+ readonly 'Not Found': 404;
3426
+ readonly 'Method Not Allowed': 405;
3427
+ readonly 'Not Acceptable': 406;
3428
+ readonly 'Proxy Authentication Required': 407;
3429
+ readonly 'Request Timeout': 408;
3430
+ readonly Conflict: 409;
3431
+ readonly Gone: 410;
3432
+ readonly 'Length Required': 411;
3433
+ readonly 'Precondition Failed': 412;
3434
+ readonly 'Payload Too Large': 413;
3435
+ readonly 'URI Too Long': 414;
3436
+ readonly 'Unsupported Media Type': 415;
3437
+ readonly 'Range Not Satisfiable': 416;
3438
+ readonly 'Expectation Failed': 417;
3439
+ readonly "I'm a teapot": 418;
3440
+ readonly 'Enhance Your Calm': 420;
3441
+ readonly 'Misdirected Request': 421;
3442
+ readonly 'Unprocessable Content': 422;
3443
+ readonly Locked: 423;
3444
+ readonly 'Failed Dependency': 424;
3445
+ readonly 'Too Early': 425;
3446
+ readonly 'Upgrade Required': 426;
3447
+ readonly 'Precondition Required': 428;
3448
+ readonly 'Too Many Requests': 429;
3449
+ readonly 'Request Header Fields Too Large': 431;
3450
+ readonly 'Unavailable For Legal Reasons': 451;
3451
+ readonly 'Internal Server Error': 500;
3452
+ readonly 'Not Implemented': 501;
3453
+ readonly 'Bad Gateway': 502;
3454
+ readonly 'Service Unavailable': 503;
3455
+ readonly 'Gateway Timeout': 504;
3456
+ readonly 'HTTP Version Not Supported': 505;
3457
+ readonly 'Variant Also Negotiates': 506;
3458
+ readonly 'Insufficient Storage': 507;
3459
+ readonly 'Loop Detected': 508;
3460
+ readonly 'Not Extended': 510;
3461
+ readonly 'Network Authentication Required': 511;
3462
+ }[Code] : Code>;
3463
+ readonly auth: import("./request").Auth<Scope, Role, OrgRole, UserData>;
3464
+ }) => unknown, {}> extends infer T_6 ? { [K in keyof T_6]: T_6[K]; } : never;
3465
+ };
3466
+ }>>, Eph, Vol & {
3467
+ derive: {};
3468
+ resolve: {};
3469
+ schema: {};
3470
+ standaloneSchema: {};
3471
+ response: {};
3472
+ }>;
3473
+ guard: (guardOptions?: RouteGuardOptions<Role, Scope>) => Guard;
3474
+ };
3475
+ //# sourceMappingURL=auth.d.ts.map