better-auth 1.7.0-beta.2 → 1.7.0-beta.4

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 (282) hide show
  1. package/README.md +14 -15
  2. package/dist/_virtual/_rolldown/runtime.mjs +10 -1
  3. package/dist/api/index.d.mts +18 -48
  4. package/dist/api/routes/account.d.mts +4 -23
  5. package/dist/api/routes/account.mjs +102 -75
  6. package/dist/api/routes/callback.mjs +42 -20
  7. package/dist/api/routes/email-verification.d.mts +1 -0
  8. package/dist/api/routes/email-verification.mjs +6 -5
  9. package/dist/api/routes/error.mjs +1 -1
  10. package/dist/api/routes/password.mjs +1 -1
  11. package/dist/api/routes/session.mjs +15 -10
  12. package/dist/api/routes/sign-in.d.mts +3 -1
  13. package/dist/api/routes/sign-in.mjs +13 -15
  14. package/dist/api/routes/sign-up.d.mts +1 -0
  15. package/dist/api/routes/sign-up.mjs +10 -8
  16. package/dist/api/routes/update-user.mjs +8 -8
  17. package/dist/api/to-auth-endpoints.mjs +7 -1
  18. package/dist/auth/base.mjs +30 -27
  19. package/dist/client/config.mjs +8 -1
  20. package/dist/client/fetch-plugins.mjs +2 -1
  21. package/dist/client/index.d.mts +2 -2
  22. package/dist/client/lynx/index.d.mts +13 -0
  23. package/dist/client/lynx/index.mjs +2 -1
  24. package/dist/client/parser.mjs +0 -1
  25. package/dist/client/plugins/index.d.mts +4 -17
  26. package/dist/client/plugins/index.mjs +1 -4
  27. package/dist/client/proxy.mjs +2 -1
  28. package/dist/client/react/index.d.mts +13 -0
  29. package/dist/client/react/index.mjs +2 -1
  30. package/dist/client/session-atom.mjs +12 -1
  31. package/dist/client/solid/index.d.mts +13 -0
  32. package/dist/client/solid/index.mjs +3 -2
  33. package/dist/client/svelte/index.d.mts +13 -0
  34. package/dist/client/svelte/index.mjs +2 -1
  35. package/dist/client/vanilla.d.mts +13 -0
  36. package/dist/client/vanilla.mjs +2 -1
  37. package/dist/client/vue/index.d.mts +13 -0
  38. package/dist/client/vue/index.mjs +2 -1
  39. package/dist/context/create-context.mjs +10 -14
  40. package/dist/context/helpers.mjs +3 -2
  41. package/dist/cookies/cookie-utils.d.mts +33 -1
  42. package/dist/cookies/cookie-utils.mjs +95 -14
  43. package/dist/cookies/index.d.mts +2 -3
  44. package/dist/cookies/index.mjs +39 -11
  45. package/dist/cookies/session-store.mjs +4 -23
  46. package/dist/db/get-migration.mjs +4 -4
  47. package/dist/db/index.d.mts +2 -2
  48. package/dist/db/index.mjs +3 -2
  49. package/dist/db/internal-adapter.mjs +129 -27
  50. package/dist/db/schema.d.mts +14 -1
  51. package/dist/db/schema.mjs +26 -1
  52. package/dist/db/with-hooks.d.mts +1 -0
  53. package/dist/db/with-hooks.mjs +58 -1
  54. package/dist/index.d.mts +2 -2
  55. package/dist/index.mjs +2 -2
  56. package/dist/integrations/cookie-plugin-guard.mjs +18 -0
  57. package/dist/integrations/next-js.mjs +6 -0
  58. package/dist/integrations/svelte-kit.mjs +6 -0
  59. package/dist/integrations/tanstack-start-solid.mjs +6 -0
  60. package/dist/integrations/tanstack-start.mjs +6 -0
  61. package/dist/node_modules/.pnpm/clipboardy@4.0.0/node_modules/clipboardy/index.mjs +32 -0
  62. package/dist/node_modules/.pnpm/clipboardy@4.0.0/node_modules/clipboardy/lib/linux.mjs +55 -0
  63. package/dist/node_modules/.pnpm/clipboardy@4.0.0/node_modules/clipboardy/lib/macos.mjs +26 -0
  64. package/dist/node_modules/.pnpm/clipboardy@4.0.0/node_modules/clipboardy/lib/termux.mjs +39 -0
  65. package/dist/node_modules/.pnpm/clipboardy@4.0.0/node_modules/clipboardy/lib/windows.mjs +19 -0
  66. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs +845 -0
  67. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs +386 -0
  68. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs +320 -0
  69. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +62 -0
  70. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +190 -0
  71. package/dist/node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/utils.mjs +2 -0
  72. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs +29 -0
  73. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs +42 -0
  74. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs +67 -0
  75. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs +23 -0
  76. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs +22 -0
  77. package/dist/node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs +36 -0
  78. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/adapters/node.d.mts +292 -0
  79. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/adapters/node.mjs +127 -0
  80. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/index.d.mts +145 -0
  81. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/shared/crossws.BQXMA5bH.d.mts +298 -0
  82. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/shared/crossws.By9qWDAI.mjs +9 -0
  83. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/shared/crossws.CipVM6lf.mjs +3549 -0
  84. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/shared/crossws.D9ehKjSh.mjs +66 -0
  85. package/dist/node_modules/.pnpm/crossws@0.3.5/node_modules/crossws/dist/shared/crossws.DfCzGthR.mjs +227 -0
  86. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.mjs +224 -0
  87. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.mjs +52 -0
  88. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.mjs +54 -0
  89. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.mjs +62 -0
  90. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.mjs +26 -0
  91. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.mjs +32 -0
  92. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.mjs +19 -0
  93. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.mjs +98 -0
  94. package/dist/node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.mjs +15 -0
  95. package/dist/node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.d.mts +15 -0
  96. package/dist/node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.mjs +220 -0
  97. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  98. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array.mjs +2 -0
  99. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  100. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.mjs +76 -0
  101. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/index.mjs +6 -0
  102. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.mjs +35 -0
  103. package/dist/node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.mjs +10 -0
  104. package/dist/node_modules/.pnpm/http-shutdown@1.2.2/node_modules/http-shutdown/index.mjs +76 -0
  105. package/dist/node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.mjs +274 -0
  106. package/dist/node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.mjs +44 -0
  107. package/dist/node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.mjs +15 -0
  108. package/dist/node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.mjs +23 -0
  109. package/dist/node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.mjs +24 -0
  110. package/dist/node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/index.mjs +18 -0
  111. package/dist/node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.mjs +9 -0
  112. package/dist/node_modules/.pnpm/is-wsl@3.1.1/node_modules/is-wsl/index.mjs +20 -0
  113. package/dist/node_modules/.pnpm/is64bit@2.0.0/node_modules/is64bit/index.mjs +13 -0
  114. package/dist/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.mjs +47 -0
  115. package/dist/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.mjs +33 -0
  116. package/dist/node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.mjs +33 -0
  117. package/dist/node_modules/.pnpm/listhen@1.9.0/node_modules/listhen/dist/chunks/xdg-open.mjs +1070 -0
  118. package/dist/node_modules/.pnpm/listhen@1.9.0/node_modules/listhen/dist/index.mjs +619 -0
  119. package/dist/node_modules/.pnpm/listhen@1.9.0/node_modules/listhen/dist/shared/listhen.1c46e31d.d.mts +83 -0
  120. package/dist/node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.mjs +38 -0
  121. package/dist/node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.mjs +38 -0
  122. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/aes.mjs +597 -0
  123. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/aesCipherSuites.mjs +195 -0
  124. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/asn1-validator.mjs +76 -0
  125. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/asn1.mjs +967 -0
  126. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/baseN.mjs +137 -0
  127. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/cipher.mjs +186 -0
  128. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/cipherModes.mjs +597 -0
  129. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/des.mjs +1187 -0
  130. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/ed25519.mjs +1029 -0
  131. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/forge.mjs +15 -0
  132. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/hmac.mjs +107 -0
  133. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/index.mjs +66 -0
  134. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/jsbn.mjs +1334 -0
  135. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/kem.mjs +146 -0
  136. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/log.mjs +241 -0
  137. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/md.all.mjs +24 -0
  138. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/md.mjs +18 -0
  139. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/md5.mjs +324 -0
  140. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/mgf.mjs +20 -0
  141. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/mgf1.mjs +44 -0
  142. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/oids.mjs +154 -0
  143. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pbe.mjs +815 -0
  144. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pbkdf2.mjs +125 -0
  145. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pem.mjs +175 -0
  146. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pkcs1.mjs +200 -0
  147. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pkcs12.mjs +724 -0
  148. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pkcs7.mjs +642 -0
  149. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pkcs7asn1.mjs +405 -0
  150. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pki.mjs +101 -0
  151. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/prime.mjs +193 -0
  152. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/prng.mjs +290 -0
  153. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/pss.mjs +141 -0
  154. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/random.mjs +141 -0
  155. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/rc2.mjs +538 -0
  156. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/rsa.mjs +1309 -0
  157. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/sha1.mjs +230 -0
  158. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/sha256.mjs +267 -0
  159. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/sha512.mjs +413 -0
  160. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/ssh.mjs +194 -0
  161. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/tls.mjs +3655 -0
  162. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/util.mjs +2117 -0
  163. package/dist/node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/x509.mjs +2168 -0
  164. package/dist/node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.mjs +34 -0
  165. package/dist/node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.mjs +26 -0
  166. package/dist/node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.mjs +14 -0
  167. package/dist/node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.mjs +8 -0
  168. package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +176 -0
  169. package/dist/node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.mjs +17 -0
  170. package/dist/node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs +8 -0
  171. package/dist/node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.mjs +169 -0
  172. package/dist/node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.mjs +33 -0
  173. package/dist/node_modules/.pnpm/std-env@3.10.0/node_modules/std-env/dist/index.mjs +171 -0
  174. package/dist/node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.mjs +10 -0
  175. package/dist/node_modules/.pnpm/system-architecture@0.1.0/node_modules/system-architecture/index.mjs +16 -0
  176. package/dist/node_modules/.pnpm/uncrypto@0.1.3/node_modules/uncrypto/dist/crypto.node.mjs +7 -0
  177. package/dist/node_modules/.pnpm/untun@0.1.3/node_modules/untun/dist/chunks/index.mjs +154 -0
  178. package/dist/node_modules/.pnpm/untun@0.1.3/node_modules/untun/dist/index.mjs +34 -0
  179. package/dist/node_modules/.pnpm/uqr@0.1.2/node_modules/uqr/dist/index.mjs +896 -0
  180. package/dist/node_modules/.pnpm/which@2.0.2/node_modules/which/which.mjs +76 -0
  181. package/dist/oauth2/errors.mjs +27 -0
  182. package/dist/oauth2/index.d.mts +2 -2
  183. package/dist/oauth2/index.mjs +3 -3
  184. package/dist/oauth2/link-account.d.mts +27 -1
  185. package/dist/oauth2/link-account.mjs +30 -5
  186. package/dist/oauth2/state.mjs +8 -2
  187. package/dist/{package.mjs → packages/better-auth/package.mjs} +1 -1
  188. package/dist/plugins/access/access.d.mts +3 -15
  189. package/dist/plugins/access/access.mjs +11 -6
  190. package/dist/plugins/access/index.d.mts +2 -2
  191. package/dist/plugins/access/types.d.mts +11 -4
  192. package/dist/plugins/admin/access/statement.d.mts +29 -93
  193. package/dist/plugins/admin/admin.mjs +0 -4
  194. package/dist/plugins/admin/client.d.mts +6 -1
  195. package/dist/plugins/admin/client.mjs +5 -0
  196. package/dist/plugins/admin/routes.mjs +3 -2
  197. package/dist/plugins/anonymous/client.d.mts +1 -0
  198. package/dist/plugins/anonymous/error-codes.d.mts +1 -0
  199. package/dist/plugins/anonymous/error-codes.mjs +1 -0
  200. package/dist/plugins/anonymous/index.d.mts +1 -0
  201. package/dist/plugins/anonymous/index.mjs +16 -2
  202. package/dist/plugins/bearer/index.mjs +5 -12
  203. package/dist/plugins/captcha/index.mjs +14 -1
  204. package/dist/plugins/device-authorization/error-codes.mjs +1 -0
  205. package/dist/plugins/device-authorization/index.d.mts +1 -0
  206. package/dist/plugins/device-authorization/routes.mjs +34 -3
  207. package/dist/plugins/email-otp/routes.mjs +4 -4
  208. package/dist/plugins/generic-oauth/error-codes.mjs +0 -1
  209. package/dist/plugins/generic-oauth/index.d.mts +2 -4
  210. package/dist/plugins/generic-oauth/index.mjs +23 -17
  211. package/dist/plugins/generic-oauth/providers/auth0.mjs +1 -0
  212. package/dist/plugins/generic-oauth/providers/gumroad.mjs +1 -0
  213. package/dist/plugins/generic-oauth/providers/hubspot.mjs +1 -0
  214. package/dist/plugins/generic-oauth/providers/keycloak.mjs +1 -0
  215. package/dist/plugins/generic-oauth/providers/line.mjs +1 -0
  216. package/dist/plugins/generic-oauth/providers/microsoft-entra-id.mjs +1 -0
  217. package/dist/plugins/generic-oauth/providers/okta.mjs +1 -0
  218. package/dist/plugins/generic-oauth/providers/patreon.mjs +1 -0
  219. package/dist/plugins/generic-oauth/providers/slack.mjs +1 -0
  220. package/dist/plugins/generic-oauth/types.d.mts +30 -8
  221. package/dist/plugins/index.d.mts +2 -2
  222. package/dist/plugins/jwt/utils.d.mts +1 -1
  223. package/dist/plugins/last-login-method/client.mjs +2 -2
  224. package/dist/plugins/magic-link/index.d.mts +8 -1
  225. package/dist/plugins/magic-link/index.mjs +4 -17
  226. package/dist/plugins/mcp/authorize.mjs +8 -2
  227. package/dist/plugins/mcp/index.mjs +75 -35
  228. package/dist/plugins/multi-session/index.mjs +2 -2
  229. package/dist/plugins/oauth-proxy/index.mjs +45 -32
  230. package/dist/plugins/oauth-proxy/utils.mjs +3 -10
  231. package/dist/plugins/oidc-provider/authorize.mjs +8 -2
  232. package/dist/plugins/oidc-provider/index.mjs +65 -38
  233. package/dist/plugins/one-tap/client.mjs +9 -2
  234. package/dist/plugins/one-tap/index.mjs +19 -36
  235. package/dist/plugins/open-api/generator.mjs +25 -5
  236. package/dist/plugins/organization/access/statement.d.mts +68 -201
  237. package/dist/plugins/organization/adapter.d.mts +1 -1
  238. package/dist/plugins/organization/adapter.mjs +65 -58
  239. package/dist/plugins/organization/client.d.mts +3 -1
  240. package/dist/plugins/organization/client.mjs +1 -1
  241. package/dist/plugins/organization/error-codes.d.mts +2 -0
  242. package/dist/plugins/organization/error-codes.mjs +3 -1
  243. package/dist/plugins/organization/routes/crud-access-control.d.mts +2 -2
  244. package/dist/plugins/organization/routes/crud-invites.d.mts +8 -1
  245. package/dist/plugins/organization/routes/crud-invites.mjs +8 -3
  246. package/dist/plugins/organization/routes/crud-org.d.mts +4 -4
  247. package/dist/plugins/organization/routes/crud-org.mjs +2 -2
  248. package/dist/plugins/organization/routes/crud-team.mjs +7 -2
  249. package/dist/plugins/organization/schema.d.mts +1 -1
  250. package/dist/plugins/organization/types.d.mts +15 -5
  251. package/dist/plugins/phone-number/routes.mjs +1 -1
  252. package/dist/plugins/siwe/client.d.mts +4 -0
  253. package/dist/plugins/siwe/client.mjs +5 -1
  254. package/dist/plugins/siwe/index.d.mts +13 -2
  255. package/dist/plugins/siwe/index.mjs +179 -165
  256. package/dist/plugins/two-factor/backup-codes/index.d.mts +4 -3
  257. package/dist/plugins/two-factor/client.mjs +2 -1
  258. package/dist/plugins/two-factor/index.mjs +3 -2
  259. package/dist/plugins/username/client.d.mts +1 -0
  260. package/dist/plugins/username/error-codes.d.mts +1 -0
  261. package/dist/plugins/username/error-codes.mjs +2 -1
  262. package/dist/plugins/username/index.d.mts +43 -2
  263. package/dist/plugins/username/index.mjs +73 -6
  264. package/dist/state.d.mts +2 -2
  265. package/dist/state.mjs +18 -4
  266. package/dist/test-utils/headers.mjs +2 -7
  267. package/dist/test-utils/http-test-instance.d.mts +397 -0
  268. package/dist/test-utils/http-test-instance.mjs +54 -0
  269. package/dist/test-utils/index.d.mts +2 -1
  270. package/dist/test-utils/index.mjs +2 -1
  271. package/dist/test-utils/test-instance.d.mts +4110 -224
  272. package/dist/test-utils/test-instance.mjs +11 -2
  273. package/dist/types/auth.d.mts +4 -0
  274. package/dist/utils/index.d.mts +1 -1
  275. package/dist/utils/url.d.mts +2 -1
  276. package/dist/utils/url.mjs +9 -3
  277. package/dist/version.mjs +1 -1
  278. package/package.json +14 -14
  279. package/dist/oauth2/error-codes.d.mts +0 -20
  280. package/dist/plugins/generic-oauth/client.d.mts +0 -32
  281. package/dist/plugins/generic-oauth/client.mjs +0 -19
  282. package/dist/plugins/generic-oauth/error-codes.d.mts +0 -10
@@ -0,0 +1,324 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_forge } from "./forge.mjs";
3
+ import { require_util } from "./util.mjs";
4
+ import { require_md } from "./md.mjs";
5
+ //#region ../../node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/md5.js
6
+ var require_md5 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7
+ /**
8
+ * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation.
9
+ *
10
+ * @author Dave Longley
11
+ *
12
+ * Copyright (c) 2010-2014 Digital Bazaar, Inc.
13
+ */
14
+ var forge = require_forge();
15
+ require_md();
16
+ require_util();
17
+ var md5 = module.exports = forge.md5 = forge.md5 || {};
18
+ forge.md.md5 = forge.md.algorithms.md5 = md5;
19
+ /**
20
+ * Creates an MD5 message digest object.
21
+ *
22
+ * @return a message digest object.
23
+ */
24
+ md5.create = function() {
25
+ if (!_initialized) _init();
26
+ var _state = null;
27
+ var _input = forge.util.createBuffer();
28
+ var _w = new Array(16);
29
+ var md = {
30
+ algorithm: "md5",
31
+ blockLength: 64,
32
+ digestLength: 16,
33
+ messageLength: 0,
34
+ fullMessageLength: null,
35
+ messageLengthSize: 8
36
+ };
37
+ /**
38
+ * Starts the digest.
39
+ *
40
+ * @return this digest object.
41
+ */
42
+ md.start = function() {
43
+ md.messageLength = 0;
44
+ md.fullMessageLength = md.messageLength64 = [];
45
+ var int32s = md.messageLengthSize / 4;
46
+ for (var i = 0; i < int32s; ++i) md.fullMessageLength.push(0);
47
+ _input = forge.util.createBuffer();
48
+ _state = {
49
+ h0: 1732584193,
50
+ h1: 4023233417,
51
+ h2: 2562383102,
52
+ h3: 271733878
53
+ };
54
+ return md;
55
+ };
56
+ md.start();
57
+ /**
58
+ * Updates the digest with the given message input. The given input can
59
+ * treated as raw input (no encoding will be applied) or an encoding of
60
+ * 'utf8' maybe given to encode the input using UTF-8.
61
+ *
62
+ * @param msg the message input to update with.
63
+ * @param encoding the encoding to use (default: 'raw', other: 'utf8').
64
+ *
65
+ * @return this digest object.
66
+ */
67
+ md.update = function(msg, encoding) {
68
+ if (encoding === "utf8") msg = forge.util.encodeUtf8(msg);
69
+ var len = msg.length;
70
+ md.messageLength += len;
71
+ len = [len / 4294967296 >>> 0, len >>> 0];
72
+ for (var i = md.fullMessageLength.length - 1; i >= 0; --i) {
73
+ md.fullMessageLength[i] += len[1];
74
+ len[1] = len[0] + (md.fullMessageLength[i] / 4294967296 >>> 0);
75
+ md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;
76
+ len[0] = len[1] / 4294967296 >>> 0;
77
+ }
78
+ _input.putBytes(msg);
79
+ _update(_state, _w, _input);
80
+ if (_input.read > 2048 || _input.length() === 0) _input.compact();
81
+ return md;
82
+ };
83
+ /**
84
+ * Produces the digest.
85
+ *
86
+ * @return a byte buffer containing the digest value.
87
+ */
88
+ md.digest = function() {
89
+ var finalBlock = forge.util.createBuffer();
90
+ finalBlock.putBytes(_input.bytes());
91
+ var overflow = md.fullMessageLength[md.fullMessageLength.length - 1] + md.messageLengthSize & md.blockLength - 1;
92
+ finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow));
93
+ var bits, carry = 0;
94
+ for (var i = md.fullMessageLength.length - 1; i >= 0; --i) {
95
+ bits = md.fullMessageLength[i] * 8 + carry;
96
+ carry = bits / 4294967296 >>> 0;
97
+ finalBlock.putInt32Le(bits >>> 0);
98
+ }
99
+ var s2 = {
100
+ h0: _state.h0,
101
+ h1: _state.h1,
102
+ h2: _state.h2,
103
+ h3: _state.h3
104
+ };
105
+ _update(s2, _w, finalBlock);
106
+ var rval = forge.util.createBuffer();
107
+ rval.putInt32Le(s2.h0);
108
+ rval.putInt32Le(s2.h1);
109
+ rval.putInt32Le(s2.h2);
110
+ rval.putInt32Le(s2.h3);
111
+ return rval;
112
+ };
113
+ return md;
114
+ };
115
+ var _padding = null;
116
+ var _g = null;
117
+ var _r = null;
118
+ var _k = null;
119
+ var _initialized = false;
120
+ /**
121
+ * Initializes the constant tables.
122
+ */
123
+ function _init() {
124
+ _padding = String.fromCharCode(128);
125
+ _padding += forge.util.fillString(String.fromCharCode(0), 64);
126
+ _g = [
127
+ 0,
128
+ 1,
129
+ 2,
130
+ 3,
131
+ 4,
132
+ 5,
133
+ 6,
134
+ 7,
135
+ 8,
136
+ 9,
137
+ 10,
138
+ 11,
139
+ 12,
140
+ 13,
141
+ 14,
142
+ 15,
143
+ 1,
144
+ 6,
145
+ 11,
146
+ 0,
147
+ 5,
148
+ 10,
149
+ 15,
150
+ 4,
151
+ 9,
152
+ 14,
153
+ 3,
154
+ 8,
155
+ 13,
156
+ 2,
157
+ 7,
158
+ 12,
159
+ 5,
160
+ 8,
161
+ 11,
162
+ 14,
163
+ 1,
164
+ 4,
165
+ 7,
166
+ 10,
167
+ 13,
168
+ 0,
169
+ 3,
170
+ 6,
171
+ 9,
172
+ 12,
173
+ 15,
174
+ 2,
175
+ 0,
176
+ 7,
177
+ 14,
178
+ 5,
179
+ 12,
180
+ 3,
181
+ 10,
182
+ 1,
183
+ 8,
184
+ 15,
185
+ 6,
186
+ 13,
187
+ 4,
188
+ 11,
189
+ 2,
190
+ 9
191
+ ];
192
+ _r = [
193
+ 7,
194
+ 12,
195
+ 17,
196
+ 22,
197
+ 7,
198
+ 12,
199
+ 17,
200
+ 22,
201
+ 7,
202
+ 12,
203
+ 17,
204
+ 22,
205
+ 7,
206
+ 12,
207
+ 17,
208
+ 22,
209
+ 5,
210
+ 9,
211
+ 14,
212
+ 20,
213
+ 5,
214
+ 9,
215
+ 14,
216
+ 20,
217
+ 5,
218
+ 9,
219
+ 14,
220
+ 20,
221
+ 5,
222
+ 9,
223
+ 14,
224
+ 20,
225
+ 4,
226
+ 11,
227
+ 16,
228
+ 23,
229
+ 4,
230
+ 11,
231
+ 16,
232
+ 23,
233
+ 4,
234
+ 11,
235
+ 16,
236
+ 23,
237
+ 4,
238
+ 11,
239
+ 16,
240
+ 23,
241
+ 6,
242
+ 10,
243
+ 15,
244
+ 21,
245
+ 6,
246
+ 10,
247
+ 15,
248
+ 21,
249
+ 6,
250
+ 10,
251
+ 15,
252
+ 21,
253
+ 6,
254
+ 10,
255
+ 15,
256
+ 21
257
+ ];
258
+ _k = new Array(64);
259
+ for (var i = 0; i < 64; ++i) _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 4294967296);
260
+ _initialized = true;
261
+ }
262
+ /**
263
+ * Updates an MD5 state with the given byte buffer.
264
+ *
265
+ * @param s the MD5 state to update.
266
+ * @param w the array to use to store words.
267
+ * @param bytes the byte buffer to update with.
268
+ */
269
+ function _update(s, w, bytes) {
270
+ var t, a, b, c, d, f, r, i;
271
+ var len = bytes.length();
272
+ while (len >= 64) {
273
+ a = s.h0;
274
+ b = s.h1;
275
+ c = s.h2;
276
+ d = s.h3;
277
+ for (i = 0; i < 16; ++i) {
278
+ w[i] = bytes.getInt32Le();
279
+ f = d ^ b & (c ^ d);
280
+ t = a + f + _k[i] + w[i];
281
+ r = _r[i];
282
+ a = d;
283
+ d = c;
284
+ c = b;
285
+ b += t << r | t >>> 32 - r;
286
+ }
287
+ for (; i < 32; ++i) {
288
+ f = c ^ d & (b ^ c);
289
+ t = a + f + _k[i] + w[_g[i]];
290
+ r = _r[i];
291
+ a = d;
292
+ d = c;
293
+ c = b;
294
+ b += t << r | t >>> 32 - r;
295
+ }
296
+ for (; i < 48; ++i) {
297
+ f = b ^ c ^ d;
298
+ t = a + f + _k[i] + w[_g[i]];
299
+ r = _r[i];
300
+ a = d;
301
+ d = c;
302
+ c = b;
303
+ b += t << r | t >>> 32 - r;
304
+ }
305
+ for (; i < 64; ++i) {
306
+ f = c ^ (b | ~d);
307
+ t = a + f + _k[i] + w[_g[i]];
308
+ r = _r[i];
309
+ a = d;
310
+ d = c;
311
+ c = b;
312
+ b += t << r | t >>> 32 - r;
313
+ }
314
+ s.h0 = s.h0 + a | 0;
315
+ s.h1 = s.h1 + b | 0;
316
+ s.h2 = s.h2 + c | 0;
317
+ s.h3 = s.h3 + d | 0;
318
+ len -= 64;
319
+ }
320
+ }
321
+ }));
322
+ //#endregion
323
+ export default require_md5();
324
+ export { require_md5 };
@@ -0,0 +1,20 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_forge } from "./forge.mjs";
3
+ import { require_mgf1 } from "./mgf1.mjs";
4
+ //#region ../../node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/mgf.js
5
+ var require_mgf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ /**
7
+ * Node.js module for Forge mask generation functions.
8
+ *
9
+ * @author Stefan Siegl
10
+ *
11
+ * Copyright 2012 Stefan Siegl <stesie@brokenpipe.de>
12
+ */
13
+ var forge = require_forge();
14
+ require_mgf1();
15
+ module.exports = forge.mgf = forge.mgf || {};
16
+ forge.mgf.mgf1 = forge.mgf1;
17
+ }));
18
+ //#endregion
19
+ export default require_mgf();
20
+ export { require_mgf };
@@ -0,0 +1,44 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_forge } from "./forge.mjs";
3
+ import { require_util } from "./util.mjs";
4
+ //#region ../../node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/mgf1.js
5
+ var require_mgf1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ /**
7
+ * Javascript implementation of mask generation function MGF1.
8
+ *
9
+ * @author Stefan Siegl
10
+ * @author Dave Longley
11
+ *
12
+ * Copyright (c) 2012 Stefan Siegl <stesie@brokenpipe.de>
13
+ * Copyright (c) 2014 Digital Bazaar, Inc.
14
+ */
15
+ var forge = require_forge();
16
+ require_util();
17
+ forge.mgf = forge.mgf || {};
18
+ var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {};
19
+ /**
20
+ * Creates a MGF1 mask generation function object.
21
+ *
22
+ * @param md the message digest API to use (eg: forge.md.sha1.create()).
23
+ *
24
+ * @return a mask generation function object.
25
+ */
26
+ mgf1.create = function(md) {
27
+ return { generate: function(seed, maskLen) {
28
+ var t = new forge.util.ByteBuffer();
29
+ var len = Math.ceil(maskLen / md.digestLength);
30
+ for (var i = 0; i < len; i++) {
31
+ var c = new forge.util.ByteBuffer();
32
+ c.putInt32(i);
33
+ md.start();
34
+ md.update(seed + c.getBytes());
35
+ t.putBuffer(md.digest());
36
+ }
37
+ t.truncate(t.length() - maskLen);
38
+ return t.getBytes();
39
+ } };
40
+ };
41
+ }));
42
+ //#endregion
43
+ export default require_mgf1();
44
+ export { require_mgf1 };
@@ -0,0 +1,154 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_forge } from "./forge.mjs";
3
+ //#region ../../node_modules/.pnpm/node-forge@1.4.0/node_modules/node-forge/lib/oids.js
4
+ var require_oids = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ /**
6
+ * Object IDs for ASN.1.
7
+ *
8
+ * @author Dave Longley
9
+ *
10
+ * Copyright (c) 2010-2013 Digital Bazaar, Inc.
11
+ */
12
+ var forge = require_forge();
13
+ forge.pki = forge.pki || {};
14
+ var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {};
15
+ function _IN(id, name) {
16
+ oids[id] = name;
17
+ oids[name] = id;
18
+ }
19
+ function _I_(id, name) {
20
+ oids[id] = name;
21
+ }
22
+ _IN("1.2.840.113549.1.1.1", "rsaEncryption");
23
+ _IN("1.2.840.113549.1.1.4", "md5WithRSAEncryption");
24
+ _IN("1.2.840.113549.1.1.5", "sha1WithRSAEncryption");
25
+ _IN("1.2.840.113549.1.1.7", "RSAES-OAEP");
26
+ _IN("1.2.840.113549.1.1.8", "mgf1");
27
+ _IN("1.2.840.113549.1.1.9", "pSpecified");
28
+ _IN("1.2.840.113549.1.1.10", "RSASSA-PSS");
29
+ _IN("1.2.840.113549.1.1.11", "sha256WithRSAEncryption");
30
+ _IN("1.2.840.113549.1.1.12", "sha384WithRSAEncryption");
31
+ _IN("1.2.840.113549.1.1.13", "sha512WithRSAEncryption");
32
+ _IN("1.3.101.112", "EdDSA25519");
33
+ _IN("1.2.840.10040.4.3", "dsa-with-sha1");
34
+ _IN("1.3.14.3.2.7", "desCBC");
35
+ _IN("1.3.14.3.2.26", "sha1");
36
+ _IN("1.3.14.3.2.29", "sha1WithRSASignature");
37
+ _IN("2.16.840.1.101.3.4.2.1", "sha256");
38
+ _IN("2.16.840.1.101.3.4.2.2", "sha384");
39
+ _IN("2.16.840.1.101.3.4.2.3", "sha512");
40
+ _IN("2.16.840.1.101.3.4.2.4", "sha224");
41
+ _IN("2.16.840.1.101.3.4.2.5", "sha512-224");
42
+ _IN("2.16.840.1.101.3.4.2.6", "sha512-256");
43
+ _IN("1.2.840.113549.2.2", "md2");
44
+ _IN("1.2.840.113549.2.5", "md5");
45
+ _IN("1.2.840.113549.1.7.1", "data");
46
+ _IN("1.2.840.113549.1.7.2", "signedData");
47
+ _IN("1.2.840.113549.1.7.3", "envelopedData");
48
+ _IN("1.2.840.113549.1.7.4", "signedAndEnvelopedData");
49
+ _IN("1.2.840.113549.1.7.5", "digestedData");
50
+ _IN("1.2.840.113549.1.7.6", "encryptedData");
51
+ _IN("1.2.840.113549.1.9.1", "emailAddress");
52
+ _IN("1.2.840.113549.1.9.2", "unstructuredName");
53
+ _IN("1.2.840.113549.1.9.3", "contentType");
54
+ _IN("1.2.840.113549.1.9.4", "messageDigest");
55
+ _IN("1.2.840.113549.1.9.5", "signingTime");
56
+ _IN("1.2.840.113549.1.9.6", "counterSignature");
57
+ _IN("1.2.840.113549.1.9.7", "challengePassword");
58
+ _IN("1.2.840.113549.1.9.8", "unstructuredAddress");
59
+ _IN("1.2.840.113549.1.9.14", "extensionRequest");
60
+ _IN("1.2.840.113549.1.9.20", "friendlyName");
61
+ _IN("1.2.840.113549.1.9.21", "localKeyId");
62
+ _IN("1.2.840.113549.1.9.22.1", "x509Certificate");
63
+ _IN("1.2.840.113549.1.12.10.1.1", "keyBag");
64
+ _IN("1.2.840.113549.1.12.10.1.2", "pkcs8ShroudedKeyBag");
65
+ _IN("1.2.840.113549.1.12.10.1.3", "certBag");
66
+ _IN("1.2.840.113549.1.12.10.1.4", "crlBag");
67
+ _IN("1.2.840.113549.1.12.10.1.5", "secretBag");
68
+ _IN("1.2.840.113549.1.12.10.1.6", "safeContentsBag");
69
+ _IN("1.2.840.113549.1.5.13", "pkcs5PBES2");
70
+ _IN("1.2.840.113549.1.5.12", "pkcs5PBKDF2");
71
+ _IN("1.2.840.113549.1.12.1.1", "pbeWithSHAAnd128BitRC4");
72
+ _IN("1.2.840.113549.1.12.1.2", "pbeWithSHAAnd40BitRC4");
73
+ _IN("1.2.840.113549.1.12.1.3", "pbeWithSHAAnd3-KeyTripleDES-CBC");
74
+ _IN("1.2.840.113549.1.12.1.4", "pbeWithSHAAnd2-KeyTripleDES-CBC");
75
+ _IN("1.2.840.113549.1.12.1.5", "pbeWithSHAAnd128BitRC2-CBC");
76
+ _IN("1.2.840.113549.1.12.1.6", "pbewithSHAAnd40BitRC2-CBC");
77
+ _IN("1.2.840.113549.2.7", "hmacWithSHA1");
78
+ _IN("1.2.840.113549.2.8", "hmacWithSHA224");
79
+ _IN("1.2.840.113549.2.9", "hmacWithSHA256");
80
+ _IN("1.2.840.113549.2.10", "hmacWithSHA384");
81
+ _IN("1.2.840.113549.2.11", "hmacWithSHA512");
82
+ _IN("1.2.840.113549.3.7", "des-EDE3-CBC");
83
+ _IN("2.16.840.1.101.3.4.1.2", "aes128-CBC");
84
+ _IN("2.16.840.1.101.3.4.1.22", "aes192-CBC");
85
+ _IN("2.16.840.1.101.3.4.1.42", "aes256-CBC");
86
+ _IN("2.5.4.3", "commonName");
87
+ _IN("2.5.4.4", "surname");
88
+ _IN("2.5.4.5", "serialNumber");
89
+ _IN("2.5.4.6", "countryName");
90
+ _IN("2.5.4.7", "localityName");
91
+ _IN("2.5.4.8", "stateOrProvinceName");
92
+ _IN("2.5.4.9", "streetAddress");
93
+ _IN("2.5.4.10", "organizationName");
94
+ _IN("2.5.4.11", "organizationalUnitName");
95
+ _IN("2.5.4.12", "title");
96
+ _IN("2.5.4.13", "description");
97
+ _IN("2.5.4.15", "businessCategory");
98
+ _IN("2.5.4.17", "postalCode");
99
+ _IN("2.5.4.42", "givenName");
100
+ _IN("2.5.4.65", "pseudonym");
101
+ _IN("1.3.6.1.4.1.311.60.2.1.2", "jurisdictionOfIncorporationStateOrProvinceName");
102
+ _IN("1.3.6.1.4.1.311.60.2.1.3", "jurisdictionOfIncorporationCountryName");
103
+ _IN("2.16.840.1.113730.1.1", "nsCertType");
104
+ _IN("2.16.840.1.113730.1.13", "nsComment");
105
+ _I_("2.5.29.1", "authorityKeyIdentifier");
106
+ _I_("2.5.29.2", "keyAttributes");
107
+ _I_("2.5.29.3", "certificatePolicies");
108
+ _I_("2.5.29.4", "keyUsageRestriction");
109
+ _I_("2.5.29.5", "policyMapping");
110
+ _I_("2.5.29.6", "subtreesConstraint");
111
+ _I_("2.5.29.7", "subjectAltName");
112
+ _I_("2.5.29.8", "issuerAltName");
113
+ _I_("2.5.29.9", "subjectDirectoryAttributes");
114
+ _I_("2.5.29.10", "basicConstraints");
115
+ _I_("2.5.29.11", "nameConstraints");
116
+ _I_("2.5.29.12", "policyConstraints");
117
+ _I_("2.5.29.13", "basicConstraints");
118
+ _IN("2.5.29.14", "subjectKeyIdentifier");
119
+ _IN("2.5.29.15", "keyUsage");
120
+ _I_("2.5.29.16", "privateKeyUsagePeriod");
121
+ _IN("2.5.29.17", "subjectAltName");
122
+ _IN("2.5.29.18", "issuerAltName");
123
+ _IN("2.5.29.19", "basicConstraints");
124
+ _I_("2.5.29.20", "cRLNumber");
125
+ _I_("2.5.29.21", "cRLReason");
126
+ _I_("2.5.29.22", "expirationDate");
127
+ _I_("2.5.29.23", "instructionCode");
128
+ _I_("2.5.29.24", "invalidityDate");
129
+ _I_("2.5.29.25", "cRLDistributionPoints");
130
+ _I_("2.5.29.26", "issuingDistributionPoint");
131
+ _I_("2.5.29.27", "deltaCRLIndicator");
132
+ _I_("2.5.29.28", "issuingDistributionPoint");
133
+ _I_("2.5.29.29", "certificateIssuer");
134
+ _I_("2.5.29.30", "nameConstraints");
135
+ _IN("2.5.29.31", "cRLDistributionPoints");
136
+ _IN("2.5.29.32", "certificatePolicies");
137
+ _I_("2.5.29.33", "policyMappings");
138
+ _I_("2.5.29.34", "policyConstraints");
139
+ _IN("2.5.29.35", "authorityKeyIdentifier");
140
+ _I_("2.5.29.36", "policyConstraints");
141
+ _IN("2.5.29.37", "extKeyUsage");
142
+ _I_("2.5.29.46", "freshestCRL");
143
+ _I_("2.5.29.54", "inhibitAnyPolicy");
144
+ _IN("1.3.6.1.4.1.11129.2.4.2", "timestampList");
145
+ _IN("1.3.6.1.5.5.7.1.1", "authorityInfoAccess");
146
+ _IN("1.3.6.1.5.5.7.3.1", "serverAuth");
147
+ _IN("1.3.6.1.5.5.7.3.2", "clientAuth");
148
+ _IN("1.3.6.1.5.5.7.3.3", "codeSigning");
149
+ _IN("1.3.6.1.5.5.7.3.4", "emailProtection");
150
+ _IN("1.3.6.1.5.5.7.3.8", "timeStamping");
151
+ }));
152
+ //#endregion
153
+ export default require_oids();
154
+ export { require_oids };