@vibedeckx/linux-x64 0.1.16 → 0.1.19

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 (1455) hide show
  1. package/dist/process-manager.d.ts +1 -1
  2. package/dist/process-manager.js +111 -38
  3. package/dist/routes/terminal-routes.js +7 -0
  4. package/dist/routes/websocket-routes.js +6 -0
  5. package/dist/ui/404/index.html +1 -1
  6. package/dist/ui/404.html +1 -1
  7. package/dist/ui/__next.__PAGE__.txt +2 -2
  8. package/dist/ui/__next._full.txt +2 -2
  9. package/dist/ui/__next._head.txt +1 -1
  10. package/dist/ui/__next._index.txt +1 -1
  11. package/dist/ui/__next._tree.txt +1 -1
  12. package/dist/ui/_next/static/chunks/{d272cd438400a22c.js → 869e15bfcbb5dbd1.js} +1 -1
  13. package/dist/ui/_not-found/__next._full.txt +1 -1
  14. package/dist/ui/_not-found/__next._head.txt +1 -1
  15. package/dist/ui/_not-found/__next._index.txt +1 -1
  16. package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  17. package/dist/ui/_not-found/__next._not-found.txt +1 -1
  18. package/dist/ui/_not-found/__next._tree.txt +1 -1
  19. package/dist/ui/_not-found/index.html +1 -1
  20. package/dist/ui/_not-found/index.txt +1 -1
  21. package/dist/ui/index.html +1 -1
  22. package/dist/ui/index.txt +2 -2
  23. package/node_modules/node-pty/lib/conpty_console_list_agent.js +10 -1
  24. package/node_modules/node-pty/lib/unixTerminal.js +6 -3
  25. package/node_modules/node-pty/lib/utils.js +1 -1
  26. package/node_modules/node-pty/lib/windowsPtyAgent.js +62 -95
  27. package/node_modules/node-pty/lib/windowsTerminal.js +4 -2
  28. package/node_modules/node-pty/package.json +6 -5
  29. package/node_modules/node-pty/prebuilds/linux-x64/pty.node +0 -0
  30. package/package.json +2 -2
  31. package/node_modules/@ai-sdk/deepseek/dist/index.d.mts +0 -68
  32. package/node_modules/@ai-sdk/deepseek/dist/index.d.ts +0 -68
  33. package/node_modules/@ai-sdk/deepseek/dist/index.js.map +0 -1
  34. package/node_modules/@ai-sdk/deepseek/dist/index.mjs.map +0 -1
  35. package/node_modules/@ai-sdk/gateway/dist/index.d.mts +0 -713
  36. package/node_modules/@ai-sdk/gateway/dist/index.d.ts +0 -713
  37. package/node_modules/@ai-sdk/gateway/dist/index.js.map +0 -1
  38. package/node_modules/@ai-sdk/gateway/dist/index.mjs.map +0 -1
  39. package/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -4030
  40. package/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -4030
  41. package/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
  42. package/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
  43. package/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -1433
  44. package/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -1433
  45. package/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
  46. package/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
  47. package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts +0 -76
  48. package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts.map +0 -1
  49. package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts +0 -7
  50. package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts.map +0 -1
  51. package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts +0 -11
  52. package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts.map +0 -1
  53. package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts +0 -47
  54. package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts.map +0 -1
  55. package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts +0 -47
  56. package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts.map +0 -1
  57. package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts +0 -16
  58. package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts.map +0 -1
  59. package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts +0 -29
  60. package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts.map +0 -1
  61. package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts +0 -47
  62. package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts.map +0 -1
  63. package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts +0 -15
  64. package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts.map +0 -1
  65. package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts +0 -16
  66. package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts.map +0 -1
  67. package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts +0 -46
  68. package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts.map +0 -1
  69. package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts +0 -20
  70. package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts.map +0 -1
  71. package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts +0 -62
  72. package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts.map +0 -1
  73. package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts +0 -6
  74. package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts.map +0 -1
  75. package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts +0 -70
  76. package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts.map +0 -1
  77. package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts +0 -50
  78. package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts.map +0 -1
  79. package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts +0 -6
  80. package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts.map +0 -1
  81. package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts +0 -50
  82. package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts.map +0 -1
  83. package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts +0 -87
  84. package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts.map +0 -1
  85. package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts +0 -81
  86. package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts.map +0 -1
  87. package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts +0 -49
  88. package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts.map +0 -1
  89. package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts +0 -200
  90. package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts.map +0 -1
  91. package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts +0 -22
  92. package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts.map +0 -1
  93. package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts +0 -11
  94. package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts.map +0 -1
  95. package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts +0 -14
  96. package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts.map +0 -1
  97. package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts +0 -69
  98. package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts.map +0 -1
  99. package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts +0 -52
  100. package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts.map +0 -1
  101. package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts +0 -12
  102. package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts.map +0 -1
  103. package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts +0 -13
  104. package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts.map +0 -1
  105. package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts +0 -6
  106. package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts.map +0 -1
  107. package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts +0 -178
  108. package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts.map +0 -1
  109. package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts +0 -61
  110. package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts.map +0 -1
  111. package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts +0 -8
  112. package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts.map +0 -1
  113. package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts +0 -33
  114. package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts.map +0 -1
  115. package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts +0 -2
  116. package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts.map +0 -1
  117. package/node_modules/@clerk/backend/dist/api/factory.d.ts +0 -51
  118. package/node_modules/@clerk/backend/dist/api/factory.d.ts.map +0 -1
  119. package/node_modules/@clerk/backend/dist/api/index.d.ts +0 -3
  120. package/node_modules/@clerk/backend/dist/api/index.d.ts.map +0 -1
  121. package/node_modules/@clerk/backend/dist/api/request.d.ts +0 -76
  122. package/node_modules/@clerk/backend/dist/api/request.d.ts.map +0 -1
  123. package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts +0 -137
  124. package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts.map +0 -1
  125. package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts +0 -10
  126. package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts.map +0 -1
  127. package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts +0 -15
  128. package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts.map +0 -1
  129. package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts +0 -42
  130. package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts.map +0 -1
  131. package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts +0 -66
  132. package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts.map +0 -1
  133. package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts +0 -13
  134. package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts.map +0 -1
  135. package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts +0 -83
  136. package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts.map +0 -1
  137. package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts +0 -9
  138. package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts.map +0 -1
  139. package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts +0 -141
  140. package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts.map +0 -1
  141. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts +0 -99
  142. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts.map +0 -1
  143. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts +0 -167
  144. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts.map +0 -1
  145. package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts +0 -7
  146. package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts.map +0 -1
  147. package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts +0 -10
  148. package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts.map +0 -1
  149. package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts +0 -26
  150. package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts.map +0 -1
  151. package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts +0 -15
  152. package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts.map +0 -1
  153. package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts +0 -17
  154. package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts.map +0 -1
  155. package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts +0 -47
  156. package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts.map +0 -1
  157. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts +0 -225
  158. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts.map +0 -1
  159. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts +0 -89
  160. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts.map +0 -1
  161. package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts +0 -42
  162. package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts.map +0 -1
  163. package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts +0 -134
  164. package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts.map +0 -1
  165. package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts +0 -51
  166. package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts.map +0 -1
  167. package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts +0 -9
  168. package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts.map +0 -1
  169. package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts +0 -23
  170. package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts.map +0 -1
  171. package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts +0 -25
  172. package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts.map +0 -1
  173. package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts +0 -9
  174. package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts.map +0 -1
  175. package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts +0 -11
  176. package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts.map +0 -1
  177. package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts +0 -11
  178. package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts.map +0 -1
  179. package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts +0 -76
  180. package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts.map +0 -1
  181. package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts +0 -971
  182. package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts.map +0 -1
  183. package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts +0 -15
  184. package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts.map +0 -1
  185. package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts +0 -31
  186. package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts.map +0 -1
  187. package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts +0 -17
  188. package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts.map +0 -1
  189. package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts +0 -13
  190. package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts.map +0 -1
  191. package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts +0 -10
  192. package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts.map +0 -1
  193. package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts +0 -169
  194. package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts.map +0 -1
  195. package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts +0 -83
  196. package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts.map +0 -1
  197. package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts +0 -115
  198. package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts.map +0 -1
  199. package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts +0 -18
  200. package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts.map +0 -1
  201. package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts +0 -116
  202. package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts.map +0 -1
  203. package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts +0 -140
  204. package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts.map +0 -1
  205. package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts +0 -17
  206. package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts.map +0 -1
  207. package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts +0 -63
  208. package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts.map +0 -1
  209. package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts +0 -13
  210. package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts.map +0 -1
  211. package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts +0 -47
  212. package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts.map +0 -1
  213. package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts +0 -13
  214. package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts.map +0 -1
  215. package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts +0 -215
  216. package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts.map +0 -1
  217. package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts +0 -176
  218. package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts.map +0 -1
  219. package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts +0 -13
  220. package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts.map +0 -1
  221. package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts +0 -44
  222. package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts.map +0 -1
  223. package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts +0 -8
  224. package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts.map +0 -1
  225. package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts +0 -7
  226. package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts.map +0 -1
  227. package/node_modules/@clerk/backend/dist/api/resources/User.d.ts +0 -296
  228. package/node_modules/@clerk/backend/dist/api/resources/User.d.ts.map +0 -1
  229. package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts +0 -90
  230. package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts.map +0 -1
  231. package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts +0 -67
  232. package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts.map +0 -1
  233. package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts +0 -36
  234. package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts.map +0 -1
  235. package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts +0 -32
  236. package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts.map +0 -1
  237. package/node_modules/@clerk/backend/dist/api/resources/index.d.ts +0 -57
  238. package/node_modules/@clerk/backend/dist/api/resources/index.d.ts.map +0 -1
  239. package/node_modules/@clerk/backend/dist/chunk-7KLH7JRZ.mjs.map +0 -1
  240. package/node_modules/@clerk/backend/dist/chunk-I4B6KCGC.mjs.map +0 -1
  241. package/node_modules/@clerk/backend/dist/chunk-P263NW7Z.mjs.map +0 -1
  242. package/node_modules/@clerk/backend/dist/chunk-QR37SKMP.mjs.map +0 -1
  243. package/node_modules/@clerk/backend/dist/chunk-TOROEX6P.mjs.map +0 -1
  244. package/node_modules/@clerk/backend/dist/chunk-YBVFDYDR.mjs.map +0 -1
  245. package/node_modules/@clerk/backend/dist/constants.d.ts +0 -91
  246. package/node_modules/@clerk/backend/dist/constants.d.ts.map +0 -1
  247. package/node_modules/@clerk/backend/dist/createRedirect.d.ts +0 -25
  248. package/node_modules/@clerk/backend/dist/createRedirect.d.ts.map +0 -1
  249. package/node_modules/@clerk/backend/dist/errors.d.ts +0 -67
  250. package/node_modules/@clerk/backend/dist/errors.d.ts.map +0 -1
  251. package/node_modules/@clerk/backend/dist/errors.js.map +0 -1
  252. package/node_modules/@clerk/backend/dist/errors.mjs.map +0 -1
  253. package/node_modules/@clerk/backend/dist/fixtures/index.d.ts +0 -105
  254. package/node_modules/@clerk/backend/dist/fixtures/index.d.ts.map +0 -1
  255. package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts +0 -72
  256. package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts.map +0 -1
  257. package/node_modules/@clerk/backend/dist/index.d.ts +0 -49
  258. package/node_modules/@clerk/backend/dist/index.d.ts.map +0 -1
  259. package/node_modules/@clerk/backend/dist/index.js.map +0 -1
  260. package/node_modules/@clerk/backend/dist/index.mjs.map +0 -1
  261. package/node_modules/@clerk/backend/dist/internal.d.ts +0 -20
  262. package/node_modules/@clerk/backend/dist/internal.d.ts.map +0 -1
  263. package/node_modules/@clerk/backend/dist/internal.js.map +0 -1
  264. package/node_modules/@clerk/backend/dist/internal.mjs.map +0 -1
  265. package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts +0 -3
  266. package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts.map +0 -1
  267. package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts +0 -10
  268. package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts.map +0 -1
  269. package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts +0 -2
  270. package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts.map +0 -1
  271. package/node_modules/@clerk/backend/dist/jwt/index.d.ts +0 -7
  272. package/node_modules/@clerk/backend/dist/jwt/index.d.ts.map +0 -1
  273. package/node_modules/@clerk/backend/dist/jwt/index.js.map +0 -1
  274. package/node_modules/@clerk/backend/dist/jwt/index.mjs.map +0 -1
  275. package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts +0 -4
  276. package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts.map +0 -1
  277. package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts +0 -20
  278. package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts.map +0 -1
  279. package/node_modules/@clerk/backend/dist/jwt/types.d.ts +0 -18
  280. package/node_modules/@clerk/backend/dist/jwt/types.d.ts.map +0 -1
  281. package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts +0 -38
  282. package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts.map +0 -1
  283. package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts +0 -19
  284. package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts.map +0 -1
  285. package/node_modules/@clerk/backend/dist/mock-server.d.ts +0 -4
  286. package/node_modules/@clerk/backend/dist/mock-server.d.ts.map +0 -1
  287. package/node_modules/@clerk/backend/dist/proxy.d.ts +0 -72
  288. package/node_modules/@clerk/backend/dist/proxy.d.ts.map +0 -1
  289. package/node_modules/@clerk/backend/dist/proxy.js.map +0 -1
  290. package/node_modules/@clerk/backend/dist/proxy.mjs.map +0 -1
  291. package/node_modules/@clerk/backend/dist/runtime.d.ts +0 -26
  292. package/node_modules/@clerk/backend/dist/runtime.d.ts.map +0 -1
  293. package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts +0 -193
  294. package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts.map +0 -1
  295. package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts +0 -120
  296. package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts.map +0 -1
  297. package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts +0 -78
  298. package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts.map +0 -1
  299. package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts +0 -29
  300. package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts.map +0 -1
  301. package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts +0 -18
  302. package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts.map +0 -1
  303. package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts +0 -3
  304. package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts.map +0 -1
  305. package/node_modules/@clerk/backend/dist/tokens/factory.d.ts +0 -29
  306. package/node_modules/@clerk/backend/dist/tokens/factory.d.ts.map +0 -1
  307. package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts +0 -64
  308. package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts.map +0 -1
  309. package/node_modules/@clerk/backend/dist/tokens/keys.d.ts +0 -54
  310. package/node_modules/@clerk/backend/dist/tokens/keys.d.ts.map +0 -1
  311. package/node_modules/@clerk/backend/dist/tokens/machine.d.ts +0 -85
  312. package/node_modules/@clerk/backend/dist/tokens/machine.d.ts.map +0 -1
  313. package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts +0 -11
  314. package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts.map +0 -1
  315. package/node_modules/@clerk/backend/dist/tokens/request.d.ts +0 -60
  316. package/node_modules/@clerk/backend/dist/tokens/request.d.ts.map +0 -1
  317. package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts +0 -19
  318. package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts.map +0 -1
  319. package/node_modules/@clerk/backend/dist/tokens/types.d.ts +0 -253
  320. package/node_modules/@clerk/backend/dist/tokens/types.d.ts.map +0 -1
  321. package/node_modules/@clerk/backend/dist/tokens/verify.d.ts +0 -109
  322. package/node_modules/@clerk/backend/dist/tokens/verify.d.ts.map +0 -1
  323. package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts +0 -22
  324. package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts.map +0 -1
  325. package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts +0 -2
  326. package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts.map +0 -1
  327. package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts +0 -3
  328. package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts.map +0 -1
  329. package/node_modules/@clerk/backend/dist/util/path.d.ts +0 -4
  330. package/node_modules/@clerk/backend/dist/util/path.d.ts.map +0 -1
  331. package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts +0 -26
  332. package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts.map +0 -1
  333. package/node_modules/@clerk/backend/dist/util/shared.d.ts +0 -7
  334. package/node_modules/@clerk/backend/dist/util/shared.d.ts.map +0 -1
  335. package/node_modules/@clerk/backend/dist/webhooks.d.ts +0 -50
  336. package/node_modules/@clerk/backend/dist/webhooks.d.ts.map +0 -1
  337. package/node_modules/@clerk/backend/dist/webhooks.js.map +0 -1
  338. package/node_modules/@clerk/backend/dist/webhooks.mjs.map +0 -1
  339. package/node_modules/@clerk/fastify/dist/chunk-RY4T2JMQ.mjs.map +0 -1
  340. package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.mts +0 -25
  341. package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.ts +0 -25
  342. package/node_modules/@clerk/fastify/dist/index.d.mts +0 -16
  343. package/node_modules/@clerk/fastify/dist/index.d.ts +0 -16
  344. package/node_modules/@clerk/fastify/dist/index.js.map +0 -1
  345. package/node_modules/@clerk/fastify/dist/index.mjs.map +0 -1
  346. package/node_modules/@clerk/fastify/dist/types.d.mts +0 -4
  347. package/node_modules/@clerk/fastify/dist/types.d.ts +0 -4
  348. package/node_modules/@clerk/fastify/dist/types.js.map +0 -1
  349. package/node_modules/@clerk/fastify/dist/types.mjs.map +0 -1
  350. package/node_modules/@clerk/fastify/dist/webhooks.d.mts +0 -19
  351. package/node_modules/@clerk/fastify/dist/webhooks.d.ts +0 -19
  352. package/node_modules/@clerk/fastify/dist/webhooks.js.map +0 -1
  353. package/node_modules/@clerk/fastify/dist/webhooks.mjs.map +0 -1
  354. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts +0 -9
  355. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts.map +0 -1
  356. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts +0 -9
  357. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts.map +0 -1
  358. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.js.map +0 -1
  359. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.mjs.map +0 -1
  360. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts +0 -11
  361. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts.map +0 -1
  362. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts +0 -11
  363. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts.map +0 -1
  364. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.js.map +0 -1
  365. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.mjs.map +0 -1
  366. package/node_modules/@clerk/shared/dist/runtime/authorization-Du_JQmnH.js.map +0 -1
  367. package/node_modules/@clerk/shared/dist/runtime/authorization-Un7v7f6J.mjs.map +0 -1
  368. package/node_modules/@clerk/shared/dist/runtime/authorization-errors-B7aH39AU.js.map +0 -1
  369. package/node_modules/@clerk/shared/dist/runtime/authorization-errors-CBHAr6Ld.mjs.map +0 -1
  370. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts +0 -26
  371. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts.map +0 -1
  372. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts +0 -26
  373. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts.map +0 -1
  374. package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts +0 -72
  375. package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts.map +0 -1
  376. package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts +0 -72
  377. package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts.map +0 -1
  378. package/node_modules/@clerk/shared/dist/runtime/browser-CMFCxUv7.mjs.map +0 -1
  379. package/node_modules/@clerk/shared/dist/runtime/browser-CaHqvEp1.js.map +0 -1
  380. package/node_modules/@clerk/shared/dist/runtime/browser.d.mts +0 -35
  381. package/node_modules/@clerk/shared/dist/runtime/browser.d.mts.map +0 -1
  382. package/node_modules/@clerk/shared/dist/runtime/browser.d.ts +0 -35
  383. package/node_modules/@clerk/shared/dist/runtime/browser.d.ts.map +0 -1
  384. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts +0 -8
  385. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts.map +0 -1
  386. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts +0 -8
  387. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts.map +0 -1
  388. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.js.map +0 -1
  389. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.mjs.map +0 -1
  390. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts +0 -22
  391. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts.map +0 -1
  392. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts +0 -22
  393. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts.map +0 -1
  394. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.js.map +0 -1
  395. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.mjs.map +0 -1
  396. package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-CaS4sM5w.js.map +0 -1
  397. package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-DqAmLuLY.mjs.map +0 -1
  398. package/node_modules/@clerk/shared/dist/runtime/color.d.mts +0 -18
  399. package/node_modules/@clerk/shared/dist/runtime/color.d.mts.map +0 -1
  400. package/node_modules/@clerk/shared/dist/runtime/color.d.ts +0 -18
  401. package/node_modules/@clerk/shared/dist/runtime/color.d.ts.map +0 -1
  402. package/node_modules/@clerk/shared/dist/runtime/color.js.map +0 -1
  403. package/node_modules/@clerk/shared/dist/runtime/color.mjs.map +0 -1
  404. package/node_modules/@clerk/shared/dist/runtime/complexity-DEun2UD2.js.map +0 -1
  405. package/node_modules/@clerk/shared/dist/runtime/complexity-DydNJOmy.mjs.map +0 -1
  406. package/node_modules/@clerk/shared/dist/runtime/constants-BUzkV8jh.js.map +0 -1
  407. package/node_modules/@clerk/shared/dist/runtime/constants-Bta24VLk.mjs.map +0 -1
  408. package/node_modules/@clerk/shared/dist/runtime/constants-BulbbNR9.mjs.map +0 -1
  409. package/node_modules/@clerk/shared/dist/runtime/constants-WYhx_umW.js.map +0 -1
  410. package/node_modules/@clerk/shared/dist/runtime/constants.d.mts +0 -21
  411. package/node_modules/@clerk/shared/dist/runtime/constants.d.mts.map +0 -1
  412. package/node_modules/@clerk/shared/dist/runtime/constants.d.ts +0 -21
  413. package/node_modules/@clerk/shared/dist/runtime/constants.d.ts.map +0 -1
  414. package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts +0 -30
  415. package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts.map +0 -1
  416. package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts +0 -30
  417. package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts.map +0 -1
  418. package/node_modules/@clerk/shared/dist/runtime/cookie.js.map +0 -1
  419. package/node_modules/@clerk/shared/dist/runtime/cookie.mjs.map +0 -1
  420. package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-Bq0Rf2GM.js.map +0 -1
  421. package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-CYCAgyvC.mjs.map +0 -1
  422. package/node_modules/@clerk/shared/dist/runtime/date.d.mts +0 -37
  423. package/node_modules/@clerk/shared/dist/runtime/date.d.mts.map +0 -1
  424. package/node_modules/@clerk/shared/dist/runtime/date.d.ts +0 -37
  425. package/node_modules/@clerk/shared/dist/runtime/date.d.ts.map +0 -1
  426. package/node_modules/@clerk/shared/dist/runtime/date.js.map +0 -1
  427. package/node_modules/@clerk/shared/dist/runtime/date.mjs.map +0 -1
  428. package/node_modules/@clerk/shared/dist/runtime/deprecated--jK9xTNh.mjs.map +0 -1
  429. package/node_modules/@clerk/shared/dist/runtime/deprecated-841w0zq7.js.map +0 -1
  430. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts +0 -40
  431. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts.map +0 -1
  432. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts +0 -40
  433. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts.map +0 -1
  434. package/node_modules/@clerk/shared/dist/runtime/deriveState-CQUgOdaO.mjs.map +0 -1
  435. package/node_modules/@clerk/shared/dist/runtime/deriveState-zgq99aY1.js.map +0 -1
  436. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts +0 -28
  437. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts.map +0 -1
  438. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts +0 -28
  439. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts.map +0 -1
  440. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts +0 -13
  441. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts.map +0 -1
  442. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts +0 -13
  443. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts.map +0 -1
  444. package/node_modules/@clerk/shared/dist/runtime/devBrowser.js.map +0 -1
  445. package/node_modules/@clerk/shared/dist/runtime/devBrowser.mjs.map +0 -1
  446. package/node_modules/@clerk/shared/dist/runtime/dom/index.d.mts +0 -2
  447. package/node_modules/@clerk/shared/dist/runtime/dom/index.d.ts +0 -2
  448. package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.mts +0 -2
  449. package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.ts +0 -2
  450. package/node_modules/@clerk/shared/dist/runtime/encoders-CAjYroSe.mjs.map +0 -1
  451. package/node_modules/@clerk/shared/dist/runtime/encoders-C_EA3--l.js.map +0 -1
  452. package/node_modules/@clerk/shared/dist/runtime/error-D-ayZ5nL.mjs.map +0 -1
  453. package/node_modules/@clerk/shared/dist/runtime/error-kcck_bbZ.js.map +0 -1
  454. package/node_modules/@clerk/shared/dist/runtime/error.d.mts +0 -3
  455. package/node_modules/@clerk/shared/dist/runtime/error.d.ts +0 -3
  456. package/node_modules/@clerk/shared/dist/runtime/errors-FAXDzRsM.js.map +0 -1
  457. package/node_modules/@clerk/shared/dist/runtime/errors-oOcNTWU9.mjs.map +0 -1
  458. package/node_modules/@clerk/shared/dist/runtime/esm-D9kK-xzr.js.map +0 -1
  459. package/node_modules/@clerk/shared/dist/runtime/esm-DGPYZuZb.mjs.map +0 -1
  460. package/node_modules/@clerk/shared/dist/runtime/eventBus-TFTcHo0F.mjs.map +0 -1
  461. package/node_modules/@clerk/shared/dist/runtime/eventBus-mLhN9dkg.js.map +0 -1
  462. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts +0 -117
  463. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts.map +0 -1
  464. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts +0 -117
  465. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts.map +0 -1
  466. package/node_modules/@clerk/shared/dist/runtime/file.d.mts +0 -21
  467. package/node_modules/@clerk/shared/dist/runtime/file.d.mts.map +0 -1
  468. package/node_modules/@clerk/shared/dist/runtime/file.d.ts +0 -21
  469. package/node_modules/@clerk/shared/dist/runtime/file.d.ts.map +0 -1
  470. package/node_modules/@clerk/shared/dist/runtime/file.js.map +0 -1
  471. package/node_modules/@clerk/shared/dist/runtime/file.mjs.map +0 -1
  472. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts +0 -12
  473. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts.map +0 -1
  474. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts +0 -12
  475. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts.map +0 -1
  476. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.js.map +0 -1
  477. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.mjs.map +0 -1
  478. package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts +0 -46
  479. package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts.map +0 -1
  480. package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts +0 -46
  481. package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts.map +0 -1
  482. package/node_modules/@clerk/shared/dist/runtime/getToken.js.map +0 -1
  483. package/node_modules/@clerk/shared/dist/runtime/getToken.mjs.map +0 -1
  484. package/node_modules/@clerk/shared/dist/runtime/globs-D0Kpu4g1.js.map +0 -1
  485. package/node_modules/@clerk/shared/dist/runtime/globs-u_gXJPLt.mjs.map +0 -1
  486. package/node_modules/@clerk/shared/dist/runtime/globs.d.mts +0 -7
  487. package/node_modules/@clerk/shared/dist/runtime/globs.d.mts.map +0 -1
  488. package/node_modules/@clerk/shared/dist/runtime/globs.d.ts +0 -7
  489. package/node_modules/@clerk/shared/dist/runtime/globs.d.ts.map +0 -1
  490. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts +0 -7
  491. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts.map +0 -1
  492. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts +0 -7
  493. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts.map +0 -1
  494. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BmJC8Cue.js.map +0 -1
  495. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-iAIjw-kJ.mjs.map +0 -1
  496. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts +0 -11
  497. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts.map +0 -1
  498. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts +0 -11
  499. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts.map +0 -1
  500. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.js.map +0 -1
  501. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.mjs.map +0 -1
  502. package/node_modules/@clerk/shared/dist/runtime/hex-txii11Pj.mjs.map +0 -1
  503. package/node_modules/@clerk/shared/dist/runtime/hex-zF8OyMcG.js.map +0 -1
  504. package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts +0 -10885
  505. package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts.map +0 -1
  506. package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts +0 -10885
  507. package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts.map +0 -1
  508. package/node_modules/@clerk/shared/dist/runtime/index.d.mts +0 -1
  509. package/node_modules/@clerk/shared/dist/runtime/index.d.ts +0 -1
  510. package/node_modules/@clerk/shared/dist/runtime/index.js.map +0 -1
  511. package/node_modules/@clerk/shared/dist/runtime/index.mjs.map +0 -1
  512. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-BqNbQ8Of.js.map +0 -1
  513. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-Cp_aXKsI.mjs.map +0 -1
  514. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-Cbd4CVu9.js.map +0 -1
  515. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-DRQuwtHF.mjs.map +0 -1
  516. package/node_modules/@clerk/shared/dist/runtime/instance-BmZr0cdE.mjs.map +0 -1
  517. package/node_modules/@clerk/shared/dist/runtime/instance-C1LlVxIp.js.map +0 -1
  518. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +0 -31
  519. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts.map +0 -1
  520. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +0 -31
  521. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts.map +0 -1
  522. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.js.map +0 -1
  523. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.mjs.map +0 -1
  524. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts +0 -18
  525. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts.map +0 -1
  526. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts +0 -18
  527. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts.map +0 -1
  528. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.js.map +0 -1
  529. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.mjs.map +0 -1
  530. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts +0 -54
  531. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts.map +0 -1
  532. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts +0 -54
  533. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts.map +0 -1
  534. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts +0 -12
  535. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts.map +0 -1
  536. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts +0 -12
  537. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts.map +0 -1
  538. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.js.map +0 -1
  539. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.mjs.map +0 -1
  540. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts +0 -8
  541. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts.map +0 -1
  542. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts +0 -8
  543. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts.map +0 -1
  544. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts +0 -113
  545. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts.map +0 -1
  546. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts +0 -113
  547. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts.map +0 -1
  548. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts +0 -5
  549. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts.map +0 -1
  550. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts +0 -5
  551. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts.map +0 -1
  552. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +0 -15
  553. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts.map +0 -1
  554. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +0 -15
  555. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts.map +0 -1
  556. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts +0 -13
  557. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts.map +0 -1
  558. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts +0 -13
  559. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts.map +0 -1
  560. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts +0 -10
  561. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts.map +0 -1
  562. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts +0 -10
  563. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts.map +0 -1
  564. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.js.map +0 -1
  565. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.mjs.map +0 -1
  566. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts +0 -61
  567. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts.map +0 -1
  568. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts +0 -61
  569. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts.map +0 -1
  570. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.js.map +0 -1
  571. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.mjs.map +0 -1
  572. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +0 -11
  573. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts.map +0 -1
  574. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +0 -11
  575. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts.map +0 -1
  576. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +0 -12
  577. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts.map +0 -1
  578. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +0 -12
  579. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts.map +0 -1
  580. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.js.map +0 -1
  581. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.mjs.map +0 -1
  582. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts +0 -19
  583. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts.map +0 -1
  584. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts +0 -19
  585. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts.map +0 -1
  586. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.js.map +0 -1
  587. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.mjs.map +0 -1
  588. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts +0 -20
  589. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts.map +0 -1
  590. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts +0 -20
  591. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts.map +0 -1
  592. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts +0 -6
  593. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts.map +0 -1
  594. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts +0 -6
  595. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts.map +0 -1
  596. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts +0 -36
  597. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts.map +0 -1
  598. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts +0 -36
  599. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts.map +0 -1
  600. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts +0 -19
  601. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts.map +0 -1
  602. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts +0 -19
  603. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts.map +0 -1
  604. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.js.map +0 -1
  605. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.mjs.map +0 -1
  606. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts +0 -9
  607. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts.map +0 -1
  608. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts +0 -9
  609. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts.map +0 -1
  610. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts +0 -23
  611. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts.map +0 -1
  612. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts +0 -23
  613. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts.map +0 -1
  614. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.js.map +0 -1
  615. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.mjs.map +0 -1
  616. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts +0 -8
  617. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts.map +0 -1
  618. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts +0 -8
  619. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts.map +0 -1
  620. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.js.map +0 -1
  621. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.mjs.map +0 -1
  622. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts +0 -31
  623. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts.map +0 -1
  624. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts +0 -31
  625. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts.map +0 -1
  626. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.js.map +0 -1
  627. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.mjs.map +0 -1
  628. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts +0 -18
  629. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts.map +0 -1
  630. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts +0 -18
  631. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts.map +0 -1
  632. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.js.map +0 -1
  633. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.mjs.map +0 -1
  634. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.mts +0 -4
  635. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.ts +0 -4
  636. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts +0 -23
  637. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts.map +0 -1
  638. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts +0 -23
  639. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts.map +0 -1
  640. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.js.map +0 -1
  641. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.mjs.map +0 -1
  642. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts +0 -25
  643. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts.map +0 -1
  644. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts +0 -25
  645. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts.map +0 -1
  646. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.js.map +0 -1
  647. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.mjs.map +0 -1
  648. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts +0 -32
  649. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts.map +0 -1
  650. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts +0 -32
  651. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts.map +0 -1
  652. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.js.map +0 -1
  653. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.mjs.map +0 -1
  654. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts +0 -15
  655. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts.map +0 -1
  656. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts +0 -15
  657. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts.map +0 -1
  658. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.js.map +0 -1
  659. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.mjs.map +0 -1
  660. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-CoF80qYz.mjs.map +0 -1
  661. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-Hkpnx2p8.js.map +0 -1
  662. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts +0 -9
  663. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts.map +0 -1
  664. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts +0 -9
  665. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts.map +0 -1
  666. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-DWmLcIHi.mjs.map +0 -1
  667. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-_pSA92Q9.js.map +0 -1
  668. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts +0 -5
  669. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts.map +0 -1
  670. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts +0 -5
  671. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts.map +0 -1
  672. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts +0 -23
  673. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts.map +0 -1
  674. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts +0 -23
  675. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts.map +0 -1
  676. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.js.map +0 -1
  677. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.mjs.map +0 -1
  678. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts +0 -271
  679. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts.map +0 -1
  680. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts +0 -271
  681. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts.map +0 -1
  682. package/node_modules/@clerk/shared/dist/runtime/keyless/index.js.map +0 -1
  683. package/node_modules/@clerk/shared/dist/runtime/keyless/index.mjs.map +0 -1
  684. package/node_modules/@clerk/shared/dist/runtime/keys-BI9hmfja.js.map +0 -1
  685. package/node_modules/@clerk/shared/dist/runtime/keys-DuxzP8MU.mjs.map +0 -1
  686. package/node_modules/@clerk/shared/dist/runtime/keys.d.mts +0 -103
  687. package/node_modules/@clerk/shared/dist/runtime/keys.d.mts.map +0 -1
  688. package/node_modules/@clerk/shared/dist/runtime/keys.d.ts +0 -103
  689. package/node_modules/@clerk/shared/dist/runtime/keys.d.ts.map +0 -1
  690. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts +0 -88
  691. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts.map +0 -1
  692. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts +0 -88
  693. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts.map +0 -1
  694. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.js.map +0 -1
  695. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.mjs.map +0 -1
  696. package/node_modules/@clerk/shared/dist/runtime/loadScript-BnB9d_IW.js.map +0 -1
  697. package/node_modules/@clerk/shared/dist/runtime/loadScript-UG_epen4.mjs.map +0 -1
  698. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts +0 -15
  699. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts.map +0 -1
  700. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts +0 -15
  701. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts.map +0 -1
  702. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts +0 -18
  703. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts.map +0 -1
  704. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts +0 -18
  705. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts.map +0 -1
  706. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.js.map +0 -1
  707. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.mjs.map +0 -1
  708. package/node_modules/@clerk/shared/dist/runtime/logger-BOte4sQb.js.map +0 -1
  709. package/node_modules/@clerk/shared/dist/runtime/logger-DISzhF9M.mjs.map +0 -1
  710. package/node_modules/@clerk/shared/dist/runtime/logger.d.mts +0 -12
  711. package/node_modules/@clerk/shared/dist/runtime/logger.d.mts.map +0 -1
  712. package/node_modules/@clerk/shared/dist/runtime/logger.d.ts +0 -12
  713. package/node_modules/@clerk/shared/dist/runtime/logger.d.ts.map +0 -1
  714. package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts +0 -21
  715. package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts.map +0 -1
  716. package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts +0 -21
  717. package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts.map +0 -1
  718. package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.mts +0 -2
  719. package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.ts +0 -2
  720. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-DFm5qdPh.js.map +0 -1
  721. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-Dkdkho_6.mjs.map +0 -1
  722. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts +0 -34
  723. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts.map +0 -1
  724. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts +0 -34
  725. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts.map +0 -1
  726. package/node_modules/@clerk/shared/dist/runtime/noop-B7RzLU-c.mjs.map +0 -1
  727. package/node_modules/@clerk/shared/dist/runtime/noop-CVg8oVJr.js.map +0 -1
  728. package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts +0 -19
  729. package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts.map +0 -1
  730. package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts +0 -19
  731. package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts.map +0 -1
  732. package/node_modules/@clerk/shared/dist/runtime/oauth.js.map +0 -1
  733. package/node_modules/@clerk/shared/dist/runtime/oauth.mjs.map +0 -1
  734. package/node_modules/@clerk/shared/dist/runtime/object-DYaB_9gA.mjs.map +0 -1
  735. package/node_modules/@clerk/shared/dist/runtime/object-DklYlVP-.js.map +0 -1
  736. package/node_modules/@clerk/shared/dist/runtime/object.d.mts +0 -8
  737. package/node_modules/@clerk/shared/dist/runtime/object.d.mts.map +0 -1
  738. package/node_modules/@clerk/shared/dist/runtime/object.d.ts +0 -8
  739. package/node_modules/@clerk/shared/dist/runtime/object.d.ts.map +0 -1
  740. package/node_modules/@clerk/shared/dist/runtime/organization-BzM6mhUv.js.map +0 -1
  741. package/node_modules/@clerk/shared/dist/runtime/organization-Cy_ag_4B.mjs.map +0 -1
  742. package/node_modules/@clerk/shared/dist/runtime/organization.d.mts +0 -15
  743. package/node_modules/@clerk/shared/dist/runtime/organization.d.mts.map +0 -1
  744. package/node_modules/@clerk/shared/dist/runtime/organization.d.ts +0 -15
  745. package/node_modules/@clerk/shared/dist/runtime/organization.d.ts.map +0 -1
  746. package/node_modules/@clerk/shared/dist/runtime/path-BLD6zl1u.mjs.map +0 -1
  747. package/node_modules/@clerk/shared/dist/runtime/path-ci3QmWY8.js.map +0 -1
  748. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts +0 -17
  749. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts.map +0 -1
  750. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts +0 -17
  751. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts.map +0 -1
  752. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.js.map +0 -1
  753. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.mjs.map +0 -1
  754. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-7eww5BY6.mjs.map +0 -1
  755. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-Do-462DY.js.map +0 -1
  756. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts +0 -85
  757. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts.map +0 -1
  758. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts +0 -85
  759. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts.map +0 -1
  760. package/node_modules/@clerk/shared/dist/runtime/poller.d.mts +0 -20
  761. package/node_modules/@clerk/shared/dist/runtime/poller.d.mts.map +0 -1
  762. package/node_modules/@clerk/shared/dist/runtime/poller.d.ts +0 -20
  763. package/node_modules/@clerk/shared/dist/runtime/poller.d.ts.map +0 -1
  764. package/node_modules/@clerk/shared/dist/runtime/poller.js.map +0 -1
  765. package/node_modules/@clerk/shared/dist/runtime/poller.mjs.map +0 -1
  766. package/node_modules/@clerk/shared/dist/runtime/proxy-BcfViKjn.mjs.map +0 -1
  767. package/node_modules/@clerk/shared/dist/runtime/proxy-DahrnOq8.js.map +0 -1
  768. package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts +0 -24
  769. package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts.map +0 -1
  770. package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts +0 -24
  771. package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts.map +0 -1
  772. package/node_modules/@clerk/shared/dist/runtime/queryParams-DSUymAGT.js.map +0 -1
  773. package/node_modules/@clerk/shared/dist/runtime/queryParams-Dlt0oVDg.mjs.map +0 -1
  774. package/node_modules/@clerk/shared/dist/runtime/querystring-BFj_iDi0.js.map +0 -1
  775. package/node_modules/@clerk/shared/dist/runtime/querystring-pXtwII0l.mjs.map +0 -1
  776. package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts +0 -1647
  777. package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts.map +0 -1
  778. package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts +0 -1647
  779. package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts.map +0 -1
  780. package/node_modules/@clerk/shared/dist/runtime/react/index.js.map +0 -1
  781. package/node_modules/@clerk/shared/dist/runtime/react/index.mjs.map +0 -1
  782. package/node_modules/@clerk/shared/dist/runtime/retry-DGCmqlcR.js.map +0 -1
  783. package/node_modules/@clerk/shared/dist/runtime/retry-DqRIhHV5.mjs.map +0 -1
  784. package/node_modules/@clerk/shared/dist/runtime/retry.d.mts +0 -60
  785. package/node_modules/@clerk/shared/dist/runtime/retry.d.mts.map +0 -1
  786. package/node_modules/@clerk/shared/dist/runtime/retry.d.ts +0 -60
  787. package/node_modules/@clerk/shared/dist/runtime/retry.d.ts.map +0 -1
  788. package/node_modules/@clerk/shared/dist/runtime/router.d.mts +0 -100
  789. package/node_modules/@clerk/shared/dist/runtime/router.d.mts.map +0 -1
  790. package/node_modules/@clerk/shared/dist/runtime/router.d.ts +0 -100
  791. package/node_modules/@clerk/shared/dist/runtime/router.d.ts.map +0 -1
  792. package/node_modules/@clerk/shared/dist/runtime/router.js.map +0 -1
  793. package/node_modules/@clerk/shared/dist/runtime/router.mjs.map +0 -1
  794. package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-D1yr0yUs.mjs.map +0 -1
  795. package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-DJJWo5AR.js.map +0 -1
  796. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts +0 -18
  797. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts.map +0 -1
  798. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts +0 -18
  799. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts.map +0 -1
  800. package/node_modules/@clerk/shared/dist/runtime/safeImport.js.map +0 -1
  801. package/node_modules/@clerk/shared/dist/runtime/safeImport.mjs.map +0 -1
  802. package/node_modules/@clerk/shared/dist/runtime/saml.d.mts +0 -8
  803. package/node_modules/@clerk/shared/dist/runtime/saml.d.mts.map +0 -1
  804. package/node_modules/@clerk/shared/dist/runtime/saml.d.ts +0 -8
  805. package/node_modules/@clerk/shared/dist/runtime/saml.d.ts.map +0 -1
  806. package/node_modules/@clerk/shared/dist/runtime/saml.js.map +0 -1
  807. package/node_modules/@clerk/shared/dist/runtime/saml.mjs.map +0 -1
  808. package/node_modules/@clerk/shared/dist/runtime/strength-DMrZQDoO.js.map +0 -1
  809. package/node_modules/@clerk/shared/dist/runtime/strength-DPtAse7d.mjs.map +0 -1
  810. package/node_modules/@clerk/shared/dist/runtime/telemetry--P0a0tSk.js.map +0 -1
  811. package/node_modules/@clerk/shared/dist/runtime/telemetry-DE2JFEBf.mjs.map +0 -1
  812. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts +0 -143
  813. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts.map +0 -1
  814. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts +0 -143
  815. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts.map +0 -1
  816. package/node_modules/@clerk/shared/dist/runtime/types/index.d.mts +0 -3
  817. package/node_modules/@clerk/shared/dist/runtime/types/index.d.ts +0 -3
  818. package/node_modules/@clerk/shared/dist/runtime/ui/index.d.mts +0 -3
  819. package/node_modules/@clerk/shared/dist/runtime/ui/index.d.ts +0 -3
  820. package/node_modules/@clerk/shared/dist/runtime/underscore-BX6Ucmg5.js.map +0 -1
  821. package/node_modules/@clerk/shared/dist/runtime/underscore-ClYSgvuy.mjs.map +0 -1
  822. package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts +0 -63
  823. package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts.map +0 -1
  824. package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts +0 -63
  825. package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts.map +0 -1
  826. package/node_modules/@clerk/shared/dist/runtime/url-C6gPMFx5.mjs.map +0 -1
  827. package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts +0 -144
  828. package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts.map +0 -1
  829. package/node_modules/@clerk/shared/dist/runtime/url-CoXV4i87.js.map +0 -1
  830. package/node_modules/@clerk/shared/dist/runtime/url-DaPDWryr.mjs.map +0 -1
  831. package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts +0 -144
  832. package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts.map +0 -1
  833. package/node_modules/@clerk/shared/dist/runtime/url-sAcxbiir.js.map +0 -1
  834. package/node_modules/@clerk/shared/dist/runtime/url.d.mts +0 -78
  835. package/node_modules/@clerk/shared/dist/runtime/url.d.mts.map +0 -1
  836. package/node_modules/@clerk/shared/dist/runtime/url.d.ts +0 -78
  837. package/node_modules/@clerk/shared/dist/runtime/url.d.ts.map +0 -1
  838. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts +0 -65
  839. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts.map +0 -1
  840. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts +0 -65
  841. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts.map +0 -1
  842. package/node_modules/@clerk/shared/dist/runtime/utils-TXJdVJx7.mjs.map +0 -1
  843. package/node_modules/@clerk/shared/dist/runtime/utils-Y3tB5LFT.js.map +0 -1
  844. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts +0 -58
  845. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts.map +0 -1
  846. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts +0 -58
  847. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts.map +0 -1
  848. package/node_modules/@clerk/shared/dist/runtime/versionCheck.js.map +0 -1
  849. package/node_modules/@clerk/shared/dist/runtime/versionCheck.mjs.map +0 -1
  850. package/node_modules/@clerk/shared/dist/runtime/versionSelector-BSa0YYBu.mjs.map +0 -1
  851. package/node_modules/@clerk/shared/dist/runtime/versionSelector-CoS6g9-B.js.map +0 -1
  852. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts +0 -17
  853. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts.map +0 -1
  854. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts +0 -17
  855. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts.map +0 -1
  856. package/node_modules/@clerk/shared/dist/runtime/waitForElement-CB9iynCD.mjs.map +0 -1
  857. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DGxKWlwM.js.map +0 -1
  858. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts +0 -8
  859. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts.map +0 -1
  860. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts +0 -8
  861. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts.map +0 -1
  862. package/node_modules/@clerk/shared/dist/runtime/web3.d.mts +0 -8
  863. package/node_modules/@clerk/shared/dist/runtime/web3.d.mts.map +0 -1
  864. package/node_modules/@clerk/shared/dist/runtime/web3.d.ts +0 -8
  865. package/node_modules/@clerk/shared/dist/runtime/web3.d.ts.map +0 -1
  866. package/node_modules/@clerk/shared/dist/runtime/web3.js.map +0 -1
  867. package/node_modules/@clerk/shared/dist/runtime/web3.mjs.map +0 -1
  868. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts +0 -16
  869. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts.map +0 -1
  870. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts +0 -16
  871. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts.map +0 -1
  872. package/node_modules/@clerk/shared/dist/runtime/webauthn.js.map +0 -1
  873. package/node_modules/@clerk/shared/dist/runtime/webauthn.mjs.map +0 -1
  874. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts +0 -17
  875. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts.map +0 -1
  876. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts +0 -17
  877. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts.map +0 -1
  878. package/node_modules/@clerk/shared/dist/runtime/workerTimers-CDy8bBJS.mjs.map +0 -1
  879. package/node_modules/@clerk/shared/dist/runtime/workerTimers-D-HZtmjt.js.map +0 -1
  880. package/node_modules/@clerk/shared/dist/types/index.d.mts +0 -10584
  881. package/node_modules/@clerk/shared/dist/types/index.d.mts.map +0 -1
  882. package/node_modules/@clerk/shared/dist/types/index.d.ts +0 -10584
  883. package/node_modules/@clerk/shared/dist/types/index.d.ts.map +0 -1
  884. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +0 -4
  885. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +0 -1
  886. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +0 -1
  887. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +0 -34
  888. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +0 -1
  889. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +0 -1
  890. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +0 -6
  891. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +0 -1
  892. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +0 -1
  893. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +0 -2
  894. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +0 -1
  895. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +0 -1
  896. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +0 -41
  897. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +0 -1
  898. package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +0 -1
  899. package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +0 -7
  900. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +0 -5
  901. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +0 -1
  902. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +0 -1
  903. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +0 -2
  904. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +0 -1
  905. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +0 -1
  906. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +0 -7
  907. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +0 -1
  908. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +0 -1
  909. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +0 -4
  910. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +0 -1
  911. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +0 -1
  912. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +0 -34
  913. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +0 -1
  914. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +0 -1
  915. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +0 -6
  916. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +0 -1
  917. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +0 -1
  918. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +0 -2
  919. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +0 -1
  920. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +0 -1
  921. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +0 -41
  922. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +0 -1
  923. package/node_modules/@isaacs/cliui/dist/esm/index.js.map +0 -1
  924. package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +0 -7
  925. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +0 -5
  926. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +0 -1
  927. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +0 -1
  928. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +0 -2
  929. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +0 -1
  930. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +0 -1
  931. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +0 -7
  932. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +0 -1
  933. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +0 -1
  934. package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.mts +0 -239
  935. package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.ts +0 -239
  936. package/node_modules/@openrouter/ai-sdk-provider/dist/index.js.map +0 -1
  937. package/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs.map +0 -1
  938. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.mts +0 -156
  939. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.ts +0 -156
  940. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.js.map +0 -1
  941. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.mjs.map +0 -1
  942. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -1252
  943. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -1252
  944. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
  945. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
  946. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -352
  947. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -352
  948. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
  949. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
  950. package/node_modules/@standard-schema/spec/dist/index.d.cts +0 -119
  951. package/node_modules/@standard-schema/spec/dist/index.d.ts +0 -119
  952. package/node_modules/@stricli/core/dist/index.d.cts +0 -1443
  953. package/node_modules/@stricli/core/dist/index.d.ts +0 -1443
  954. package/node_modules/@vercel/oidc/dist/auth-config.d.ts +0 -30
  955. package/node_modules/@vercel/oidc/dist/get-context.d.ts +0 -6
  956. package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.d.ts +0 -49
  957. package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.test.d.ts +0 -1
  958. package/node_modules/@vercel/oidc/dist/index-browser.d.ts +0 -3
  959. package/node_modules/@vercel/oidc/dist/index-browser.test.d.ts +0 -1
  960. package/node_modules/@vercel/oidc/dist/index.d.ts +0 -2
  961. package/node_modules/@vercel/oidc/dist/oauth.d.ts +0 -17
  962. package/node_modules/@vercel/oidc/dist/token-error.d.ts +0 -5
  963. package/node_modules/@vercel/oidc/dist/token-io.d.ts +0 -2
  964. package/node_modules/@vercel/oidc/dist/token-util.d.ts +0 -21
  965. package/node_modules/@vercel/oidc/dist/token-util.test.d.ts +0 -1
  966. package/node_modules/@vercel/oidc/dist/token.d.ts +0 -1
  967. package/node_modules/@vercel/oidc/dist/token.test.d.ts +0 -1
  968. package/node_modules/agent-base/dist/helpers.d.ts +0 -15
  969. package/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  970. package/node_modules/agent-base/dist/helpers.js.map +0 -1
  971. package/node_modules/agent-base/dist/index.d.ts +0 -41
  972. package/node_modules/agent-base/dist/index.d.ts.map +0 -1
  973. package/node_modules/agent-base/dist/index.js.map +0 -1
  974. package/node_modules/ai/dist/index.d.mts +0 -6403
  975. package/node_modules/ai/dist/index.d.ts +0 -6403
  976. package/node_modules/ai/dist/index.js.map +0 -1
  977. package/node_modules/ai/dist/index.mjs.map +0 -1
  978. package/node_modules/ai/dist/internal/index.d.mts +0 -314
  979. package/node_modules/ai/dist/internal/index.d.ts +0 -314
  980. package/node_modules/ai/dist/internal/index.js.map +0 -1
  981. package/node_modules/ai/dist/internal/index.mjs.map +0 -1
  982. package/node_modules/ajv/dist/2019.d.ts +0 -19
  983. package/node_modules/ajv/dist/2019.js.map +0 -1
  984. package/node_modules/ajv/dist/2020.d.ts +0 -19
  985. package/node_modules/ajv/dist/2020.js.map +0 -1
  986. package/node_modules/ajv/dist/ajv.d.ts +0 -18
  987. package/node_modules/ajv/dist/ajv.js.map +0 -1
  988. package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  989. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  990. package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  991. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  992. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  993. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  994. package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  995. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  996. package/node_modules/ajv/dist/compile/index.d.ts +0 -80
  997. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  998. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  999. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  1000. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  1001. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  1002. package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  1003. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  1004. package/node_modules/ajv/dist/compile/names.d.ts +0 -20
  1005. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  1006. package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  1007. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  1008. package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  1009. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  1010. package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  1011. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  1012. package/node_modules/ajv/dist/compile/util.d.ts +0 -40
  1013. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  1014. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  1015. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  1016. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  1017. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  1018. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  1019. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  1020. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  1021. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  1022. package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  1023. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  1024. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  1025. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  1026. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  1027. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  1028. package/node_modules/ajv/dist/core.d.ts +0 -174
  1029. package/node_modules/ajv/dist/core.js.map +0 -1
  1030. package/node_modules/ajv/dist/jtd.d.ts +0 -47
  1031. package/node_modules/ajv/dist/jtd.js.map +0 -1
  1032. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  1033. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  1034. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  1035. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  1036. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  1037. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  1038. package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  1039. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  1040. package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  1041. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  1042. package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  1043. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  1044. package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  1045. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  1046. package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  1047. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  1048. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  1049. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  1050. package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  1051. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  1052. package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  1053. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  1054. package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  1055. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  1056. package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  1057. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  1058. package/node_modules/ajv/dist/types/index.d.ts +0 -183
  1059. package/node_modules/ajv/dist/types/index.js.map +0 -1
  1060. package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  1061. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  1062. package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  1063. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  1064. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  1065. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  1066. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  1067. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  1068. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  1069. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  1070. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  1071. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  1072. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  1073. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  1074. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  1075. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  1076. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  1077. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  1078. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  1079. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  1080. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  1081. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  1082. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  1083. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  1084. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  1085. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  1086. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  1087. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  1088. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  1089. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  1090. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  1091. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  1092. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  1093. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  1094. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  1095. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  1096. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  1097. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  1098. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  1099. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  1100. package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  1101. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  1102. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  1103. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  1104. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  1105. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  1106. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  1107. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  1108. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  1109. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  1110. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  1111. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  1112. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  1113. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  1114. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  1115. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  1116. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  1117. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  1118. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  1119. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  1120. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  1121. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  1122. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  1123. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  1124. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  1125. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  1126. package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  1127. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  1128. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  1129. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  1130. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  1131. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  1132. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  1133. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  1134. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  1135. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  1136. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  1137. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  1138. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  1139. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  1140. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  1141. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  1142. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  1143. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  1144. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  1145. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  1146. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  1147. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  1148. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  1149. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  1150. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  1151. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  1152. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  1153. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  1154. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  1155. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  1156. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  1157. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  1158. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  1159. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  1160. package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  1161. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  1162. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  1163. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  1164. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  1165. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  1166. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  1167. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  1168. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  1169. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  1170. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  1171. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  1172. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  1173. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  1174. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  1175. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  1176. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  1177. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  1178. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  1179. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  1180. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  1181. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  1182. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  1183. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  1184. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  1185. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  1186. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  1187. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  1188. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  1189. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  1190. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  1191. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  1192. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  1193. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  1194. package/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  1195. package/node_modules/ajv-formats/dist/formats.js.map +0 -1
  1196. package/node_modules/ajv-formats/dist/index.d.ts +0 -15
  1197. package/node_modules/ajv-formats/dist/index.js.map +0 -1
  1198. package/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  1199. package/node_modules/ajv-formats/dist/limit.js.map +0 -1
  1200. package/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
  1201. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
  1202. package/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
  1203. package/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
  1204. package/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
  1205. package/node_modules/balanced-match/dist/esm/index.js.map +0 -1
  1206. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -6
  1207. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
  1208. package/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
  1209. package/node_modules/brace-expansion/dist/esm/index.d.ts +0 -6
  1210. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
  1211. package/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
  1212. package/node_modules/cookie/dist/index.d.ts +0 -148
  1213. package/node_modules/cookie/dist/index.js.map +0 -1
  1214. package/node_modules/eventsource-parser/dist/index.cjs.map +0 -1
  1215. package/node_modules/eventsource-parser/dist/index.d.cts +0 -144
  1216. package/node_modules/eventsource-parser/dist/index.d.ts +0 -144
  1217. package/node_modules/eventsource-parser/dist/index.js.map +0 -1
  1218. package/node_modules/eventsource-parser/dist/stream.cjs.map +0 -1
  1219. package/node_modules/eventsource-parser/dist/stream.d.cts +0 -118
  1220. package/node_modules/eventsource-parser/dist/stream.d.ts +0 -118
  1221. package/node_modules/eventsource-parser/dist/stream.js.map +0 -1
  1222. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
  1223. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
  1224. package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
  1225. package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
  1226. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
  1227. package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
  1228. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
  1229. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
  1230. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
  1231. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
  1232. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
  1233. package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
  1234. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
  1235. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
  1236. package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
  1237. package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
  1238. package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
  1239. package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
  1240. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
  1241. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
  1242. package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
  1243. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
  1244. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
  1245. package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
  1246. package/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
  1247. package/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  1248. package/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  1249. package/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  1250. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  1251. package/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  1252. package/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
  1253. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  1254. package/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  1255. package/node_modules/glob/dist/commonjs/index.d.ts +0 -97
  1256. package/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  1257. package/node_modules/glob/dist/commonjs/index.js.map +0 -1
  1258. package/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
  1259. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  1260. package/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  1261. package/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  1262. package/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  1263. package/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  1264. package/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
  1265. package/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  1266. package/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  1267. package/node_modules/glob/dist/esm/bin.d.mts +0 -3
  1268. package/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  1269. package/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  1270. package/node_modules/glob/dist/esm/glob.d.ts +0 -388
  1271. package/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  1272. package/node_modules/glob/dist/esm/glob.js.map +0 -1
  1273. package/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  1274. package/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  1275. package/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  1276. package/node_modules/glob/dist/esm/ignore.d.ts +0 -24
  1277. package/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  1278. package/node_modules/glob/dist/esm/ignore.js.map +0 -1
  1279. package/node_modules/glob/dist/esm/index.d.ts +0 -97
  1280. package/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  1281. package/node_modules/glob/dist/esm/index.js.map +0 -1
  1282. package/node_modules/glob/dist/esm/pattern.d.ts +0 -76
  1283. package/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  1284. package/node_modules/glob/dist/esm/pattern.js.map +0 -1
  1285. package/node_modules/glob/dist/esm/processor.d.ts +0 -59
  1286. package/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  1287. package/node_modules/glob/dist/esm/processor.js.map +0 -1
  1288. package/node_modules/glob/dist/esm/walker.d.ts +0 -97
  1289. package/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  1290. package/node_modules/glob/dist/esm/walker.js.map +0 -1
  1291. package/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
  1292. package/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  1293. package/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  1294. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  1295. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  1296. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  1297. package/node_modules/ip-address/dist/address-error.d.ts +0 -5
  1298. package/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
  1299. package/node_modules/ip-address/dist/address-error.js.map +0 -1
  1300. package/node_modules/ip-address/dist/common.d.ts +0 -15
  1301. package/node_modules/ip-address/dist/common.d.ts.map +0 -1
  1302. package/node_modules/ip-address/dist/common.js.map +0 -1
  1303. package/node_modules/ip-address/dist/ip-address.d.ts +0 -8
  1304. package/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
  1305. package/node_modules/ip-address/dist/ip-address.js.map +0 -1
  1306. package/node_modules/ip-address/dist/ipv4.d.ts +0 -209
  1307. package/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
  1308. package/node_modules/ip-address/dist/ipv4.js.map +0 -1
  1309. package/node_modules/ip-address/dist/ipv6.d.ts +0 -428
  1310. package/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
  1311. package/node_modules/ip-address/dist/ipv6.js.map +0 -1
  1312. package/node_modules/ip-address/dist/v4/constants.d.ts +0 -5
  1313. package/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
  1314. package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
  1315. package/node_modules/ip-address/dist/v6/constants.d.ts +0 -45
  1316. package/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
  1317. package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
  1318. package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
  1319. package/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
  1320. package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
  1321. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -6
  1322. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
  1323. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
  1324. package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -323
  1325. package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
  1326. package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
  1327. package/node_modules/jackspeak/dist/commonjs/index.min.js.map +0 -7
  1328. package/node_modules/jackspeak/dist/esm/index.d.ts +0 -323
  1329. package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
  1330. package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
  1331. package/node_modules/jackspeak/dist/esm/index.min.js.map +0 -7
  1332. package/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1323
  1333. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  1334. package/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  1335. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  1336. package/node_modules/lru-cache/dist/esm/index.d.ts +0 -1323
  1337. package/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  1338. package/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  1339. package/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  1340. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  1341. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  1342. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  1343. package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
  1344. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  1345. package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  1346. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  1347. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  1348. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  1349. package/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  1350. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  1351. package/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  1352. package/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
  1353. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  1354. package/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  1355. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  1356. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  1357. package/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  1358. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  1359. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  1360. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  1361. package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
  1362. package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  1363. package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  1364. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  1365. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  1366. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  1367. package/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  1368. package/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  1369. package/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  1370. package/node_modules/minimatch/dist/esm/index.d.ts +0 -174
  1371. package/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  1372. package/node_modules/minimatch/dist/esm/index.js.map +0 -1
  1373. package/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  1374. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  1375. package/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  1376. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  1377. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  1378. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  1379. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  1380. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  1381. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  1382. package/node_modules/node-pty/build/Release/pty.node +0 -0
  1383. package/node_modules/node-pty/build/binding.Makefile +0 -6
  1384. package/node_modules/node-pty/build/pty.target.mk +0 -168
  1385. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  1386. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  1387. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  1388. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  1389. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  1390. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  1391. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
  1392. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
  1393. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
  1394. package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
  1395. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
  1396. package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
  1397. package/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1115
  1398. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
  1399. package/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
  1400. package/node_modules/path-scurry/dist/esm/index.d.ts +0 -1115
  1401. package/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
  1402. package/node_modules/path-scurry/dist/esm/index.js.map +0 -1
  1403. package/node_modules/ret/dist/index.d.ts +0 -7
  1404. package/node_modules/ret/dist/index.js.map +0 -1
  1405. package/node_modules/ret/dist/reconstruct.d.ts +0 -2
  1406. package/node_modules/ret/dist/reconstruct.js.map +0 -1
  1407. package/node_modules/ret/dist/sets-lookup.d.ts +0 -5
  1408. package/node_modules/ret/dist/sets-lookup.js.map +0 -1
  1409. package/node_modules/ret/dist/sets.d.ts +0 -9
  1410. package/node_modules/ret/dist/sets.js.map +0 -1
  1411. package/node_modules/ret/dist/tokenizer.d.ts +0 -8
  1412. package/node_modules/ret/dist/tokenizer.js.map +0 -1
  1413. package/node_modules/ret/dist/types/index.d.ts +0 -3
  1414. package/node_modules/ret/dist/types/index.js.map +0 -1
  1415. package/node_modules/ret/dist/types/set-lookup.d.ts +0 -8
  1416. package/node_modules/ret/dist/types/set-lookup.js.map +0 -1
  1417. package/node_modules/ret/dist/types/tokens.d.ts +0 -41
  1418. package/node_modules/ret/dist/types/tokens.js.map +0 -1
  1419. package/node_modules/ret/dist/types/types.d.ts +0 -10
  1420. package/node_modules/ret/dist/types/types.js.map +0 -1
  1421. package/node_modules/ret/dist/util.d.ts +0 -18
  1422. package/node_modules/ret/dist/util.js.map +0 -1
  1423. package/node_modules/ret/dist/write-set-tokens.d.ts +0 -14
  1424. package/node_modules/ret/dist/write-set-tokens.js.map +0 -1
  1425. package/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  1426. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  1427. package/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  1428. package/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  1429. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  1430. package/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  1431. package/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  1432. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  1433. package/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  1434. package/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  1435. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  1436. package/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  1437. package/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  1438. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  1439. package/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  1440. package/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  1441. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  1442. package/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  1443. package/node_modules/socks-proxy-agent/dist/index.d.ts +0 -27
  1444. package/node_modules/socks-proxy-agent/dist/index.d.ts.map +0 -1
  1445. package/node_modules/socks-proxy-agent/dist/index.js.map +0 -1
  1446. package/node_modules/standardwebhooks/dist/index.d.ts +0 -24
  1447. package/node_modules/standardwebhooks/dist/index.js.map +0 -1
  1448. package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +0 -1
  1449. package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +0 -1
  1450. package/node_modules/std-env/dist/index.d.cts +0 -92
  1451. package/node_modules/std-env/dist/index.d.mts +0 -92
  1452. package/node_modules/std-env/dist/index.d.ts +0 -92
  1453. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → VUA3uJYddmpvYUPcharb_}/_buildManifest.js +0 -0
  1454. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → VUA3uJYddmpvYUPcharb_}/_clientMiddlewareManifest.json +0 -0
  1455. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → VUA3uJYddmpvYUPcharb_}/_ssgManifest.js +0 -0
@@ -1,26 +0,0 @@
1
- /**
2
- * The base64url helper was extracted from the rfc4648 package
3
- * in order to resolve CSJ/ESM interoperability issues
4
- *
5
- * https://github.com/swansontec/rfc4648.js
6
- *
7
- * For more context please refer to:
8
- * - https://github.com/evanw/esbuild/issues/1719
9
- * - https://github.com/evanw/esbuild/issues/532
10
- * - https://github.com/swansontec/rollup-plugin-mjs-entry
11
- */
12
- export declare const base64url: {
13
- parse(string: string, opts?: ParseOptions): Uint8Array;
14
- stringify(data: ArrayLike<number>, opts?: StringifyOptions): string;
15
- };
16
- interface ParseOptions {
17
- loose?: boolean;
18
- out?: new (size: number) => {
19
- [index: number]: number;
20
- };
21
- }
22
- interface StringifyOptions {
23
- pad?: boolean;
24
- }
25
- export {};
26
- //# sourceMappingURL=rfc4648.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rfc4648.d.ts","sourceRoot":"","sources":["../../src/util/rfc4648.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;kBACN,MAAM,SAAS,YAAY,GAAG,UAAU;oBAItC,SAAS,CAAC,MAAM,CAAC,SAAS,gBAAgB,GAAG,MAAM;CAGpE,CAAC;AAaF,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,KAAK,IAAI,EAAE,MAAM,KAAK;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzD;AAED,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
@@ -1,7 +0,0 @@
1
- export { deprecated, deprecatedProperty } from '@clerk/shared/deprecated';
2
- export { getCookieSuffix, getSuffixedCookieName, isDevelopmentFromSecretKey, isProductionFromSecretKey, parsePublishableKey, } from '@clerk/shared/keys';
3
- export { retry } from '@clerk/shared/retry';
4
- export { addClerkPrefix, getClerkJsMajorVersionOrTag, getScriptUrl } from '@clerk/shared/url';
5
- export declare const errorThrower: import("@clerk/shared/index-BK_NVS1t").rr;
6
- export declare const isDevOrStagingUrl: (url: string | URL) => boolean;
7
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/util/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAK9F,eAAO,MAAM,YAAY,2CAAuD,CAAC;AAEjF,eAAO,MAAQ,iBAAiB,gCAAiC,CAAC"}
@@ -1,50 +0,0 @@
1
- import type { WebhookEvent } from './api/resources/Webhooks';
2
- /**
3
- * @inline
4
- */
5
- export type VerifyWebhookOptions = {
6
- /**
7
- * The signing secret for the webhook. It's recommended to use the [`CLERK_WEBHOOK_SIGNING_SECRET` environment variable](https://clerk.com/docs/guides/development/clerk-environment-variables#webhooks) instead.
8
- */
9
- signingSecret?: string;
10
- };
11
- export * from './api/resources/Webhooks';
12
- /**
13
- * Verifies the authenticity of a webhook request using Standard Webhooks. Returns a promise that resolves to the verified webhook event data.
14
- *
15
- * @param request - The request object.
16
- * @param options - Optional configuration object.
17
- *
18
- * @displayFunctionSignature
19
- * @hideReturns
20
- *
21
- * @example
22
- * See the [guide on syncing data](https://clerk.com/docs/guides/development/webhooks/syncing) for more comprehensive and framework-specific examples that you can copy and paste into your app.
23
- *
24
- * ```ts
25
- * import { verifyWebhook } from '@clerk/backend/webhooks'
26
- *
27
- * export async function POST(request: Request) {
28
- * try {
29
- * const evt = await verifyWebhook(request)
30
- *
31
- * // Access the event data
32
- * const { id } = evt.data
33
- * const eventType = evt.type
34
- *
35
- * // Handle specific event types
36
- * if (evt.type === 'user.created') {
37
- * console.log('New user created:', evt.data.id)
38
- * // Handle user creation
39
- * }
40
- *
41
- * return new Response('Success', { status: 200 })
42
- * } catch (err) {
43
- * console.error('Webhook verification failed:', err)
44
- * return new Response('Webhook verification failed', { status: 400 })
45
- * }
46
- * }
47
- * ```
48
- */
49
- export declare function verifyWebhook(request: Request, options?: VerifyWebhookOptions): Promise<WebhookEvent>;
50
- //# sourceMappingURL=webhooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAYF,cAAc,0BAA0B,CAAC;AA0BzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAoD/G"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/webhooks.ts","../src/util/shared.ts"],"sourcesContent":["import { getEnvVariable } from '@clerk/shared/getEnvVariable';\nimport { errorThrower } from 'src/util/shared';\nimport { Webhook } from 'standardwebhooks';\n\nimport type { WebhookEvent } from './api/resources/Webhooks';\n\n/**\n * @inline\n */\nexport type VerifyWebhookOptions = {\n /**\n * The signing secret for the webhook. It's recommended to use the [`CLERK_WEBHOOK_SIGNING_SECRET` environment variable](https://clerk.com/docs/guides/development/clerk-environment-variables#webhooks) instead.\n */\n signingSecret?: string;\n};\n\n// Standard Webhooks header names\nconst STANDARD_WEBHOOK_ID_HEADER = 'webhook-id';\nconst STANDARD_WEBHOOK_TIMESTAMP_HEADER = 'webhook-timestamp';\nconst STANDARD_WEBHOOK_SIGNATURE_HEADER = 'webhook-signature';\n\n// Svix header names (for mapping)\nconst SVIX_ID_HEADER = 'svix-id';\nconst SVIX_TIMESTAMP_HEADER = 'svix-timestamp';\nconst SVIX_SIGNATURE_HEADER = 'svix-signature';\n\nexport * from './api/resources/Webhooks';\n\n/**\n * Maps Svix headers to Standard Webhooks headers for compatibility\n */\nfunction createStandardWebhookHeaders(request: Request): Record<string, string> {\n const headers: Record<string, string> = {};\n\n // Map Svix headers to Standard Webhooks headers\n const svixId = request.headers.get(SVIX_ID_HEADER)?.trim();\n const svixTimestamp = request.headers.get(SVIX_TIMESTAMP_HEADER)?.trim();\n const svixSignature = request.headers.get(SVIX_SIGNATURE_HEADER)?.trim();\n\n if (svixId) {\n headers[STANDARD_WEBHOOK_ID_HEADER] = svixId;\n }\n if (svixTimestamp) {\n headers[STANDARD_WEBHOOK_TIMESTAMP_HEADER] = svixTimestamp;\n }\n if (svixSignature) {\n headers[STANDARD_WEBHOOK_SIGNATURE_HEADER] = svixSignature;\n }\n\n return headers;\n}\n\n/**\n * Verifies the authenticity of a webhook request using Standard Webhooks. Returns a promise that resolves to the verified webhook event data.\n *\n * @param request - The request object.\n * @param options - Optional configuration object.\n *\n * @displayFunctionSignature\n * @hideReturns\n *\n * @example\n * See the [guide on syncing data](https://clerk.com/docs/guides/development/webhooks/syncing) for more comprehensive and framework-specific examples that you can copy and paste into your app.\n *\n * ```ts\n * import { verifyWebhook } from '@clerk/backend/webhooks'\n *\n * export async function POST(request: Request) {\n * try {\n * const evt = await verifyWebhook(request)\n *\n * // Access the event data\n * const { id } = evt.data\n * const eventType = evt.type\n *\n * // Handle specific event types\n * if (evt.type === 'user.created') {\n * console.log('New user created:', evt.data.id)\n * // Handle user creation\n * }\n *\n * return new Response('Success', { status: 200 })\n * } catch (err) {\n * console.error('Webhook verification failed:', err)\n * return new Response('Webhook verification failed', { status: 400 })\n * }\n * }\n * ```\n */\nexport async function verifyWebhook(request: Request, options: VerifyWebhookOptions = {}): Promise<WebhookEvent> {\n const secret = options.signingSecret ?? getEnvVariable('CLERK_WEBHOOK_SIGNING_SECRET');\n\n if (!secret) {\n return errorThrower.throw(\n 'Missing webhook signing secret. Set the CLERK_WEBHOOK_SIGNING_SECRET environment variable with the webhook secret from the Clerk Dashboard.',\n );\n }\n\n // Check for required Svix headers\n const webhookId = request.headers.get(SVIX_ID_HEADER)?.trim();\n const webhookTimestamp = request.headers.get(SVIX_TIMESTAMP_HEADER)?.trim();\n const webhookSignature = request.headers.get(SVIX_SIGNATURE_HEADER)?.trim();\n\n if (!webhookId || !webhookTimestamp || !webhookSignature) {\n const missingHeaders = [];\n\n if (!webhookId) {\n missingHeaders.push(SVIX_ID_HEADER);\n }\n if (!webhookTimestamp) {\n missingHeaders.push(SVIX_TIMESTAMP_HEADER);\n }\n if (!webhookSignature) {\n missingHeaders.push(SVIX_SIGNATURE_HEADER);\n }\n\n return errorThrower.throw(`Missing required webhook headers: ${missingHeaders.join(', ')}`);\n }\n\n const body = await request.text();\n\n // Create Standard Webhooks compatible headers mapping\n const standardHeaders = createStandardWebhookHeaders(request);\n\n // Initialize Standard Webhooks verifier\n const webhook = new Webhook(secret);\n\n try {\n // Verify using Standard Webhooks - this provides constant-time comparison\n // and proper signature format handling\n const payload = webhook.verify(body, standardHeaders) as Record<string, unknown>;\n\n return {\n type: payload.type,\n object: 'event',\n data: payload.data,\n event_attributes: payload.event_attributes,\n } as WebhookEvent;\n } catch (e) {\n return errorThrower.throw(`Unable to verify incoming webhook: ${e instanceof Error ? e.message : 'Unknown error'}`);\n }\n}\n","export { deprecated, deprecatedProperty } from '@clerk/shared/deprecated';\nexport {\n getCookieSuffix,\n getSuffixedCookieName,\n isDevelopmentFromSecretKey,\n isProductionFromSecretKey,\n parsePublishableKey,\n} from '@clerk/shared/keys';\nexport { retry } from '@clerk/shared/retry';\nexport { addClerkPrefix, getClerkJsMajorVersionOrTag, getScriptUrl } from '@clerk/shared/url';\n\nimport { buildErrorThrower } from '@clerk/shared/error';\nimport { createDevOrStagingUrlCache } from '@clerk/shared/keys';\n// TODO: replace packageName with `${PACKAGE_NAME}@${PACKAGE_VERSION}` from tsup.config.ts\nexport const errorThrower = buildErrorThrower({ packageName: '@clerk/backend' });\n\nexport const { isDevOrStagingUrl } = createDevOrStagingUrlCache();\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA+B;;;ACA/B,wBAA+C;AAC/C,kBAMO;AACP,mBAAsB;AACtB,iBAA0E;AAE1E,mBAAkC;AAClC,IAAAA,eAA2C;AAEpC,IAAM,mBAAe,gCAAkB,EAAE,aAAa,iBAAiB,CAAC;AAExE,IAAM,EAAE,kBAAkB,QAAI,yCAA2B;;;ADdhE,8BAAwB;AAexB,IAAM,6BAA6B;AACnC,IAAM,oCAAoC;AAC1C,IAAM,oCAAoC;AAG1C,IAAM,iBAAiB;AACvB,IAAM,wBAAwB;AAC9B,IAAM,wBAAwB;AAO9B,SAAS,6BAA6B,SAA0C;AAC9E,QAAM,UAAkC,CAAC;AAGzC,QAAM,SAAS,QAAQ,QAAQ,IAAI,cAAc,GAAG,KAAK;AACzD,QAAM,gBAAgB,QAAQ,QAAQ,IAAI,qBAAqB,GAAG,KAAK;AACvE,QAAM,gBAAgB,QAAQ,QAAQ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G;AACV,WAAO,aAAa,MAAM,sCAAsC,aAAa,QAAQ,EAAE,UAAU,eAAe,EAAE;AAAA,EACpH;AACF;","names":["import_keys"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/webhooks.ts"],"sourcesContent":["import { getEnvVariable } from '@clerk/shared/getEnvVariable';\nimport { errorThrower } from 'src/util/shared';\nimport { Webhook } from 'standardwebhooks';\n\nimport type { WebhookEvent } from './api/resources/Webhooks';\n\n/**\n * @inline\n */\nexport type VerifyWebhookOptions = {\n /**\n * The signing secret for the webhook. It's recommended to use the [`CLERK_WEBHOOK_SIGNING_SECRET` environment variable](https://clerk.com/docs/guides/development/clerk-environment-variables#webhooks) instead.\n */\n signingSecret?: string;\n};\n\n// Standard Webhooks header names\nconst STANDARD_WEBHOOK_ID_HEADER = 'webhook-id';\nconst STANDARD_WEBHOOK_TIMESTAMP_HEADER = 'webhook-timestamp';\nconst STANDARD_WEBHOOK_SIGNATURE_HEADER = 'webhook-signature';\n\n// Svix header names (for mapping)\nconst SVIX_ID_HEADER = 'svix-id';\nconst SVIX_TIMESTAMP_HEADER = 'svix-timestamp';\nconst SVIX_SIGNATURE_HEADER = 'svix-signature';\n\nexport * from './api/resources/Webhooks';\n\n/**\n * Maps Svix headers to Standard Webhooks headers for compatibility\n */\nfunction createStandardWebhookHeaders(request: Request): Record<string, string> {\n const headers: Record<string, string> = {};\n\n // Map Svix headers to Standard Webhooks headers\n const svixId = request.headers.get(SVIX_ID_HEADER)?.trim();\n const svixTimestamp = request.headers.get(SVIX_TIMESTAMP_HEADER)?.trim();\n const svixSignature = request.headers.get(SVIX_SIGNATURE_HEADER)?.trim();\n\n if (svixId) {\n headers[STANDARD_WEBHOOK_ID_HEADER] = svixId;\n }\n if (svixTimestamp) {\n headers[STANDARD_WEBHOOK_TIMESTAMP_HEADER] = svixTimestamp;\n }\n if (svixSignature) {\n headers[STANDARD_WEBHOOK_SIGNATURE_HEADER] = svixSignature;\n }\n\n return headers;\n}\n\n/**\n * Verifies the authenticity of a webhook request using Standard Webhooks. Returns a promise that resolves to the verified webhook event data.\n *\n * @param request - The request object.\n * @param options - Optional configuration object.\n *\n * @displayFunctionSignature\n * @hideReturns\n *\n * @example\n * See the [guide on syncing data](https://clerk.com/docs/guides/development/webhooks/syncing) for more comprehensive and framework-specific examples that you can copy and paste into your app.\n *\n * ```ts\n * import { verifyWebhook } from '@clerk/backend/webhooks'\n *\n * export async function POST(request: Request) {\n * try {\n * const evt = await verifyWebhook(request)\n *\n * // Access the event data\n * const { id } = evt.data\n * const eventType = evt.type\n *\n * // Handle specific event types\n * if (evt.type === 'user.created') {\n * console.log('New user created:', evt.data.id)\n * // Handle user creation\n * }\n *\n * return new Response('Success', { status: 200 })\n * } catch (err) {\n * console.error('Webhook verification failed:', err)\n * return new Response('Webhook verification failed', { status: 400 })\n * }\n * }\n * ```\n */\nexport async function verifyWebhook(request: Request, options: VerifyWebhookOptions = {}): Promise<WebhookEvent> {\n const secret = options.signingSecret ?? getEnvVariable('CLERK_WEBHOOK_SIGNING_SECRET');\n\n if (!secret) {\n return errorThrower.throw(\n 'Missing webhook signing secret. Set the CLERK_WEBHOOK_SIGNING_SECRET environment variable with the webhook secret from the Clerk Dashboard.',\n );\n }\n\n // Check for required Svix headers\n const webhookId = request.headers.get(SVIX_ID_HEADER)?.trim();\n const webhookTimestamp = request.headers.get(SVIX_TIMESTAMP_HEADER)?.trim();\n const webhookSignature = request.headers.get(SVIX_SIGNATURE_HEADER)?.trim();\n\n if (!webhookId || !webhookTimestamp || !webhookSignature) {\n const missingHeaders = [];\n\n if (!webhookId) {\n missingHeaders.push(SVIX_ID_HEADER);\n }\n if (!webhookTimestamp) {\n missingHeaders.push(SVIX_TIMESTAMP_HEADER);\n }\n if (!webhookSignature) {\n missingHeaders.push(SVIX_SIGNATURE_HEADER);\n }\n\n return errorThrower.throw(`Missing required webhook headers: ${missingHeaders.join(', ')}`);\n }\n\n const body = await request.text();\n\n // Create Standard Webhooks compatible headers mapping\n const standardHeaders = createStandardWebhookHeaders(request);\n\n // Initialize Standard Webhooks verifier\n const webhook = new Webhook(secret);\n\n try {\n // Verify using Standard Webhooks - this provides constant-time comparison\n // and proper signature format handling\n const payload = webhook.verify(body, standardHeaders) as Record<string, unknown>;\n\n return {\n type: payload.type,\n object: 'event',\n data: payload.data,\n event_attributes: payload.event_attributes,\n } as WebhookEvent;\n } catch (e) {\n return errorThrower.throw(`Unable to verify incoming webhook: ${e instanceof Error ? e.message : 'Unknown error'}`);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAS,sBAAsB;AAE/B,SAAS,eAAe;AAexB,IAAM,6BAA6B;AACnC,IAAM,oCAAoC;AAC1C,IAAM,oCAAoC;AAG1C,IAAM,iBAAiB;AACvB,IAAM,wBAAwB;AAC9B,IAAM,wBAAwB;AAO9B,SAAS,6BAA6B,SAA0C;AAC9E,QAAM,UAAkC,CAAC;AAGzC,QAAM,SAAS,QAAQ,QAAQ,IAAI,cAAc,GAAG,KAAK;AACzD,QAAM,gBAAgB,QAAQ,QAAQ,IAAI,qBAAqB,GAAG,KAAK;AACvE,QAAM,gBAAgB,QAAQ,QAAQ,IAAI,qBAAqB,GAAG,KAAK;AAEvE,MAAI,QAAQ;AACV,YAAQ,0BAA0B,IAAI;AAAA,EACxC;AACA,MAAI,eAAe;AACjB,YAAQ,iCAAiC,IAAI;AAAA,EAC/C;AACA,MAAI,eAAe;AACjB,YAAQ,iCAAiC,IAAI;AAAA,EAC/C;AAEA,SAAO;AACT;AAuCA,eAAsB,cAAc,SAAkB,UAAgC,CAAC,GAA0B;AAC/G,QAAM,SAAS,QAAQ,iBAAiB,eAAe,8BAA8B;AAErF,MAAI,CAAC,QAAQ;AACX,WAAO,aAAa;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAGA,QAAM,YAAY,QAAQ,QAAQ,IAAI,cAAc,GAAG,KAAK;AAC5D,QAAM,mBAAmB,QAAQ,QAAQ,IAAI,qBAAqB,GAAG,KAAK;AAC1E,QAAM,mBAAmB,QAAQ,QAAQ,IAAI,qBAAqB,GAAG,KAAK;AAE1E,MAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,kBAAkB;AACxD,UAAM,iBAAiB,CAAC;AAExB,QAAI,CAAC,WAAW;AACd,qBAAe,KAAK,cAAc;AAAA,IACpC;AACA,QAAI,CAAC,kBAAkB;AACrB,qBAAe,KAAK,qBAAqB;AAAA,IAC3C;AACA,QAAI,CAAC,kBAAkB;AACrB,qBAAe,KAAK,qBAAqB;AAAA,IAC3C;AAEA,WAAO,aAAa,MAAM,qCAAqC,eAAe,KAAK,IAAI,CAAC,EAAE;AAAA,EAC5F;AAEA,QAAM,OAAO,MAAM,QAAQ,KAAK;AAGhC,QAAM,kBAAkB,6BAA6B,OAAO;AAG5D,QAAM,UAAU,IAAI,QAAQ,MAAM;AAElC,MAAI;AAGF,UAAM,UAAU,QAAQ,OAAO,MAAM,eAAe;AAEpD,WAAO;AAAA,MACL,MAAM,QAAQ;AAAA,MACd,QAAQ;AAAA,MACR,MAAM,QAAQ;AAAA,MACd,kBAAkB,QAAQ;AAAA,IAC5B;AAAA,EACF,SAAS,GAAG;AACV,WAAO,aAAa,MAAM,sCAAsC,aAAa,QAAQ,EAAE,UAAU,eAAe,EAAE;AAAA,EACpH;AACF;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils.ts"],"sourcesContent":["import type { FastifyRequest } from 'fastify';\nimport { Readable } from 'stream';\n\nexport const fastifyRequestToRequest = (req: FastifyRequest): Request => {\n const headers = new Headers(\n Object.keys(req.headers).reduce((acc, key) => {\n const value = req.headers[key];\n if (!value) {\n return acc;\n }\n\n if (typeof value === 'string') {\n acc.set(key, value);\n } else {\n acc.set(key, value.join(','));\n }\n return acc;\n }, new Headers()),\n );\n\n // Making some manual tests it seems that FastifyRequest populates the req protocol / hostname\n // based on the forwarded headers. Nevertheless, we are gonna use a dummy base and the request\n // will be fixed by the internals of the clerk/backend package\n const dummyOriginReqUrl = new URL(req.url || '', `${req.protocol}://clerk-dummy`);\n return new Request(dummyOriginReqUrl, {\n method: req.method,\n headers,\n });\n};\n\n/**\n * Converts a Fastify request to a Fetch API Request with full headers and body streaming,\n * suitable for proxy forwarding.\n */\nexport const requestToProxyRequest = (req: FastifyRequest): Request => {\n const headers = new Headers();\n Object.entries(req.headers).forEach(([key, value]) => {\n if (value) {\n headers.set(key, Array.isArray(value) ? value.join(', ') : value);\n }\n });\n\n const forwardedProto = req.headers['x-forwarded-proto'];\n const protoHeader = Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto;\n const proto = (protoHeader || '').split(',')[0].trim();\n const protocol = proto === 'https' || req.protocol === 'https' ? 'https' : 'http';\n\n const forwardedHost = req.headers['x-forwarded-host'];\n const hostHeader = Array.isArray(forwardedHost) ? forwardedHost[0] : forwardedHost;\n const host = (hostHeader || '').split(',')[0].trim() || req.hostname || 'localhost';\n\n const url = new URL(req.url || '', `${protocol}://${host}`);\n\n const hasBody = ['POST', 'PUT', 'PATCH'].includes(req.method);\n\n return new Request(url.toString(), {\n method: req.method,\n headers,\n body: hasBody ? (Readable.toWeb(req.raw) as ReadableStream) : undefined,\n // @ts-expect-error - duplex required for streaming bodies but not in all TS definitions\n duplex: hasBody ? 'half' : undefined,\n });\n};\n"],"mappings":";AACA,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,CAAC,QAAiC;AACvE,QAAM,UAAU,IAAI;AAAA,IAClB,OAAO,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,KAAK,QAAQ;AAC5C,YAAM,QAAQ,IAAI,QAAQ,GAAG;AAC7B,UAAI,CAAC,OAAO;AACV,eAAO;AAAA,MACT;AAEA,UAAI,OAAO,UAAU,UAAU;AAC7B,YAAI,IAAI,KAAK,KAAK;AAAA,MACpB,OAAO;AACL,YAAI,IAAI,KAAK,MAAM,KAAK,GAAG,CAAC;AAAA,MAC9B;AACA,aAAO;AAAA,IACT,GAAG,IAAI,QAAQ,CAAC;AAAA,EAClB;AAKA,Q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/types';
2
- import { ClerkOptions } from '@clerk/backend';
3
- import { ShouldProxyFn } from '@clerk/shared/proxy';
4
-
5
- declare const ALLOWED_HOOKS: readonly ["onRequest", "preHandler"];
6
- /**
7
- * Options for the built-in Frontend API proxy.
8
- *
9
- * When enabled, the middleware intercepts requests that match the proxy path
10
- * (default `/__clerk`) and forwards them to the Clerk Frontend API, allowing
11
- * the Clerk frontend SDKs to communicate with Clerk without third-party
12
- * cookie or ad-blocker issues.
13
- */
14
- interface FrontendApiProxyOptions {
15
- /** Toggle the proxy on/off, or supply a function that decides per-request. */
16
- enabled: boolean | ShouldProxyFn;
17
- /** Custom path prefix for the proxy (default: `/__clerk`). */
18
- path?: string;
19
- }
20
- type ClerkFastifyOptions = ClerkOptions & {
21
- hookName?: (typeof ALLOWED_HOOKS)[number];
22
- frontendApiProxy?: FrontendApiProxyOptions;
23
- };
24
-
25
- export type { ClerkFastifyOptions as C, FrontendApiProxyOptions as F };
@@ -1,25 +0,0 @@
1
- import '@clerk/shared/types';
2
- import { ClerkOptions } from '@clerk/backend';
3
- import { ShouldProxyFn } from '@clerk/shared/proxy';
4
-
5
- declare const ALLOWED_HOOKS: readonly ["onRequest", "preHandler"];
6
- /**
7
- * Options for the built-in Frontend API proxy.
8
- *
9
- * When enabled, the middleware intercepts requests that match the proxy path
10
- * (default `/__clerk`) and forwards them to the Clerk Frontend API, allowing
11
- * the Clerk frontend SDKs to communicate with Clerk without third-party
12
- * cookie or ad-blocker issues.
13
- */
14
- interface FrontendApiProxyOptions {
15
- /** Toggle the proxy on/off, or supply a function that decides per-request. */
16
- enabled: boolean | ShouldProxyFn;
17
- /** Custom path prefix for the proxy (default: `/__clerk`). */
18
- path?: string;
19
- }
20
- type ClerkFastifyOptions = ClerkOptions & {
21
- hookName?: (typeof ALLOWED_HOOKS)[number];
22
- frontendApiProxy?: FrontendApiProxyOptions;
23
- };
24
-
25
- export type { ClerkFastifyOptions as C, FrontendApiProxyOptions as F };
@@ -1,16 +0,0 @@
1
- import * as _clerk_backend from '@clerk/backend';
2
- export * from '@clerk/backend';
3
- import { C as ClerkFastifyOptions } from './index-CWnSaB0B.mjs';
4
- export { F as FrontendApiProxyOptions } from './index-CWnSaB0B.mjs';
5
- import { FastifyPluginCallback, FastifyRequest } from 'fastify';
6
- import { GetAuthFn } from '@clerk/backend/internal';
7
- import '@clerk/shared/types';
8
- import '@clerk/shared/proxy';
9
-
10
- declare const clerkPlugin: FastifyPluginCallback<ClerkFastifyOptions>;
11
-
12
- declare const getAuth: GetAuthFn<FastifyRequest>;
13
-
14
- declare const clerkClient: _clerk_backend.ClerkClient;
15
-
16
- export { ClerkFastifyOptions, clerkClient, clerkPlugin, getAuth };
@@ -1,16 +0,0 @@
1
- import * as _clerk_backend from '@clerk/backend';
2
- export * from '@clerk/backend';
3
- import { C as ClerkFastifyOptions } from './index-CWnSaB0B.js';
4
- export { F as FrontendApiProxyOptions } from './index-CWnSaB0B.js';
5
- import { FastifyPluginCallback, FastifyRequest } from 'fastify';
6
- import { GetAuthFn } from '@clerk/backend/internal';
7
- import '@clerk/shared/types';
8
- import '@clerk/shared/proxy';
9
-
10
- declare const clerkPlugin: FastifyPluginCallback<ClerkFastifyOptions>;
11
-
12
- declare const getAuth: GetAuthFn<FastifyRequest>;
13
-
14
- declare const clerkClient: _clerk_backend.ClerkClient;
15
-
16
- export { ClerkFastifyOptions, clerkClient, clerkPlugin, getAuth };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts","../src/clerkPlugin.ts","../src/types.ts","../src/withClerkMiddleware.ts","../src/clerkClient.ts","../src/constants.ts","../src/utils.ts","../src/getAuth.ts","../src/errors.ts"],"sourcesContent":["export * from '@clerk/backend';\n\nexport type { ClerkFastifyOptions, FrontendApiProxyOptions } from './types';\n\nexport { clerkPlugin } from './clerkPlugin';\nexport { getAuth } from './getAuth';\nexport { clerkClient } from './clerkClient';\n","import type { FastifyInstance, FastifyPluginCallback } from 'fastify';\nimport fp from 'fastify-plugin';\n\nimport type { ClerkFastifyOptions } from './types';\nimport { ALLOWED_HOOKS } from './types';\nimport { withClerkMiddleware } from './withClerkMiddleware';\n\nconst plugin: FastifyPluginCallback<ClerkFastifyOptions> = (\n instance: FastifyInstance,\n opts: ClerkFastifyOptions,\n done,\n) => {\n instance.decorateRequest('auth', null);\n // run clerk as a middleware to all scoped routes\n const hookName = opts.hookName || 'preHandler';\n if (!ALLOWED_HOOKS.includes(hookName)) {\n throw new Error(`Unsupported hookName: ${hookName}`);\n }\n\n instance.addHook(hookName, withClerkMiddleware(opts));\n\n done();\n};\n\nexport const clerkPlugin = fp(plugin, {\n name: '@clerk/fastify',\n fastify: '5.x',\n});\n","import type { ClerkOptions } from '@clerk/backend';\nimport type { ShouldProxyFn } from '@clerk/shared/proxy';\n\nexport const ALLOWED_HOOKS = ['onRequest', 'preHandler'] as const;\n\n/**\n * Options for the built-in Frontend API proxy.\n *\n * When enabled, the middleware intercepts requests that match the proxy path\n * (default `/__clerk`) and forwards them to the Clerk Frontend API, allowing\n * the Clerk frontend SDKs to communicate with Clerk without third-party\n * cookie or ad-blocker issues.\n */\nexport interface FrontendApiProxyOptions {\n /** Toggle the proxy on/off, or supply a function that decides per-request. */\n enabled: boolean | ShouldProxyFn;\n /** Custom path prefix for the proxy (default: `/__clerk`). */\n path?: string;\n}\n\nexport type ClerkFastifyOptions = ClerkOptions & {\n hookName?: (typeof ALLOWED_HOOKS)[number];\n frontendApiProxy?: FrontendApiProxyOptions;\n};\n","import { AuthStatus } from '@clerk/backend/internal';\nimport { clerkFrontendApiProxy, DEFAULT_PROXY_PATH, stripTrailingSlashes } from '@clerk/backend/proxy';\nimport type { FastifyReply, FastifyRequest } from 'fastify';\nimport { Readable } from 'stream';\n\nimport { clerkClient } from './clerkClient';\nimport * as constants from './constants';\nimport type { ClerkFastifyOptions } from './types';\nimport { fastifyRequestToRequest, requestToProxyRequest } from './utils';\n\nexport const withClerkMiddleware = (options: ClerkFastifyOptions) => {\n const frontendApiProxy = options.frontendApiProxy;\n const proxyPath = stripTrailingSlashes(frontendApiProxy?.path ?? DEFAULT_PROXY_PATH) || DEFAULT_PROXY_PATH;\n\n return async (fastifyRequest: FastifyRequest, reply: FastifyReply) => {\n const publishableKey = options.publishableKey || constants.PUBLISHABLE_KEY;\n const secretKey = options.secretKey || constants.SECRET_KEY;\n\n // Handle Frontend API proxy requests and auto-derive proxyUrl\n let resolvedProxyUrl = options.proxyUrl;\n if (frontendApiProxy) {\n const requestUrl = new URL(\n fastifyRequest.url,\n `${fastifyRequest.protocol}://${fastifyRequest.hostname || 'localhost'}`,\n );\n const isEnabled =\n typeof frontendApiProxy.enabled === 'function'\n ? frontendApiProxy.enabled(requestUrl)\n : frontendApiProxy.enabled;\n\n if (isEnabled) {\n if (requestUrl.pathname === proxyPath || requestUrl.pathname.startsWith(proxyPath + '/')) {\n const proxyRequest = requestToProxyRequest(fastifyRequest);\n\n const proxyResponse = await clerkFrontendApiProxy(proxyRequest, {\n proxyPath,\n publishableKey,\n secretKey,\n });\n\n reply.code(proxyResponse.status);\n proxyResponse.headers.forEach((value, key) => {\n reply.header(key, value);\n });\n\n if (proxyResponse.body) {\n const reader = proxyResponse.body.getReader();\n const stream = new Readable({\n async read() {\n try {\n const { done, value } = await reader.read();\n if (done) {\n this.push(null);\n } else {\n this.push(Buffer.from(value));\n }\n } catch (error) {\n this.destroy(error instanceof Error ? error : new Error(String(error)));\n }\n },\n });\n return reply.send(stream);\n }\n return reply.send();\n }\n\n // Pass just the path - the backend resolves it against the request's\n // public origin (from x-forwarded-* headers).\n if (!resolvedProxyUrl) {\n resolvedProxyUrl = proxyPath;\n }\n }\n }\n\n const req = fastifyRequestToRequest(fastifyRequest);\n\n const requestState = await clerkClient.authenticateRequest(req, {\n ...options,\n secretKey,\n publishableKey,\n proxyUrl: resolvedProxyUrl,\n acceptsToken: 'any',\n });\n\n requestState.headers.forEach((value, key) => reply.header(key, value));\n\n const locationHeader = requestState.headers.get(constants.Headers.Location);\n if (locationHeader) {\n return reply.code(307).send();\n } else if (requestState.status === AuthStatus.Handshake) {\n throw new Error('Clerk: handshake status without redirect');\n }\n\n // @ts-expect-error Inject auth so getAuth can read it\n fastifyRequest.auth = requestState.toAuth();\n };\n};\n","import { createClerkClient } from '@clerk/backend';\n\nimport { API_URL, API_VERSION, JWT_KEY, MACHINE_SECRET_KEY, SDK_METADATA, SECRET_KEY } from './constants';\n\nexport const clerkClient = createClerkClient({\n secretKey: SECRET_KEY,\n machineSecretKey: MACHINE_SECRET_KEY,\n apiUrl: API_URL,\n apiVersion: API_VERSION,\n jwtKey: JWT_KEY,\n userAgent: `${PACKAGE_NAME}@${PACKAGE_VERSION}`,\n sdkMetadata: SDK_METADATA,\n});\n","import { constants } from '@clerk/backend/internal';\nimport { apiUrlFromPublishableKey } from '@clerk/shared/apiUrlFromPublishableKey';\n\nexport const API_VERSION = process.env.CLERK_API_VERSION || 'v1';\nexport const SECRET_KEY = process.env.CLERK_SECRET_KEY || '';\nexport const MACHINE_SECRET_KEY = process.env.CLERK_MACHINE_SECRET_KEY || '';\nexport const PUBLISHABLE_KEY = process.env.CLERK_PUBLISHABLE_KEY || '';\nexport const API_URL = process.env.CLERK_API_URL || apiUrlFromPublishableKey(PUBLISHABLE_KEY);\nexport const JWT_KEY = process.env.CLERK_JWT_KEY || '';\nexport const SDK_METADATA = {\n name: PACKAGE_NAME,\n version: PACKAGE_VERSION,\n environment: process.env.NODE_ENV,\n};\n\nexport const { Cookies, Headers } = constants;\n","import type { FastifyRequest } from 'fastify';\nimport { Readable } from 'stream';\n\nexport const fastifyRequestToRequest = (req: FastifyRequest): Request => {\n const headers = new Headers(\n Object.keys(req.headers).reduce((acc, key) => {\n const value = req.headers[key];\n if (!value) {\n return acc;\n }\n\n if (typeof value === 'string') {\n acc.set(key, value);\n } else {\n acc.set(key, value.join(','));\n }\n return acc;\n }, new Headers()),\n );\n\n // Making some manual tests it seems that FastifyRequest populates the req protocol / hostname\n // based on the forwarded headers. Nevertheless, we are gonna use a dummy base and the request\n // will be fixed by the internals of the clerk/backend package\n const dummyOriginReqUrl = new URL(req.url || '', `${req.protocol}://clerk-dummy`);\n return new Request(dummyOriginReqUrl, {\n method: req.method,\n headers,\n });\n};\n\n/**\n * Converts a Fastify request to a Fetch API Request with full headers and body streaming,\n * suitable for proxy forwarding.\n */\nexport const requestToProxyRequest = (req: FastifyRequest): Request => {\n const headers = new Headers();\n Object.entries(req.headers).forEach(([key, value]) => {\n if (value) {\n headers.set(key, Array.isArray(value) ? value.join(', ') : value);\n }\n });\n\n const forwardedProto = req.headers['x-forwarded-proto'];\n const protoHeader = Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto;\n const proto = (protoHeader || '').split(',')[0].trim();\n const protocol = proto === 'https' || req.protocol === 'https' ? 'https' : 'http';\n\n const forwardedHost = req.headers['x-forwarded-host'];\n const hostHeader = Array.isArray(forwardedHost) ? forwardedHost[0] : forwardedHost;\n const host = (hostHeader || '').split(',')[0].trim() || req.hostname || 'localhost';\n\n const url = new URL(req.url || '', `${protocol}://${host}`);\n\n const hasBody = ['POST', 'PUT', 'PATCH'].includes(req.method);\n\n return new Request(url.toString(), {\n method: req.method,\n headers,\n body: hasBody ? (Readable.toWeb(req.raw) as ReadableStream) : undefined,\n // @ts-expect-error - duplex required for streaming bodies but not in all TS definitions\n duplex: hasBody ? 'half' : undefined,\n });\n};\n","import type { AuthOptions, GetAuthFn, SignedInAuthObject, SignedOutAuthObject } from '@clerk/backend/internal';\nimport { getAuthObjectForAcceptedToken } from '@clerk/backend/internal';\nimport type { FastifyRequest } from 'fastify';\n\nimport { pluginRegistrationRequired } from './errors';\n\nexport const getAuth: GetAuthFn<FastifyRequest> = ((req: FastifyRequest, options?: AuthOptions) => {\n const authReq = req as FastifyRequest & { auth: SignedInAuthObject | SignedOutAuthObject };\n\n if (!authReq.auth) {\n throw new Error(pluginRegistrationRequired);\n }\n\n return getAuthObjectForAcceptedToken({ authObject: authReq.auth, acceptsToken: options?.acceptsToken });\n}) as GetAuthFn<FastifyRequest>;\n","// https://github.com/clerk/javascript/blob/main/packages/remix/src/errors.ts#L1-L0\nconst createErrorMessage = (msg: string) => {\n return `🔒 Clerk: ${msg.trim()}\n\nFor more info, check out the docs: https://clerk.com/docs,\nor come say hi in our discord server: https://clerk.com/discord\n`;\n};\n\nexport const pluginRegistrationRequired =\n createErrorMessage(`The \"clerkPlugin\" should be registered before using the \"getAuth\".\nExample:\n\nimport { clerkPlugin } from '@clerk/fastify';\n\nconst server: FastifyInstance = Fastify({ logger: true });\nserver.register(clerkPlugin);\n`);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,2BAAd;;;ACCA,4BAAe;;;ACER,IAAM,gBAAgB,CAAC,aAAa,YAAY;;;ACHvD,IAAAA,mBAA2B;AAC3B,mBAAgF;AAEhF,IAAAC,iBAAyB;;;ACHzB,qBAAkC;;;ACAlC,sBAA0B;AAC1B,sCAAyC;AAElC,IAAM,cAAc,QAAQ,IAAI,qBAAqB;AACrD,IAAM,aAAa,QAAQ,IAAI,oBAAoB;AACnD,IAAM,qBAAqB,QAAQ,IAAI,4BAA4B;AACnE,IAAM,kBAAkB,QAAQ,IAAI,yBAAyB;AAC7D,IAAM,UAAU,QAAQ,IAAI,qBAAiB,0DAAyB,eAAe;AACrF,IAAM,UAAU,QAAQ,IAAI,iBAAiB;AAC7C,IAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AACf;AAEO,IAAM,EAAE,SAAS,SAAAC,SAAQ,IAAI;;;ADX7B,IAAM,kBAAc,kCAAkB;AAAA,EAC3C,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,WAAW,GAAG,gBAAY,IAAI,OAAe;AAAA,EAC7C,aAAa;AACf,CAAC;;;AEXD,oBAAyB;AAElB,IAAM,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,EAAE;AAAA,EACrD;AAEA,WAAS,QAAQ,UAAU,oBAAoB,IAAI,CAAC;AAEpD,OAAK;AACP;AAEO,IAAM,kBAAc,sBAAAC,SAAG,QAAQ;AAAA,EACpC,MAAM;AAAA,EACN,SAAS;AACX,CAAC;;;AM1BD,IAAAC,mBAA8C;;;ACA9C,IAAM,qBAAqB,CAAC,QAAgB;AAC1C,SAAO,oBAAa,IAAI,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAKhC;AAEO,IAAM,6BACX,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAOpB;;;ADXM,IAAM,WAAsC,CAAC,KAAqB,YAA0B;AACjG,QAAM,UAAU;AAEhB,MAAI,CAAC,QAAQ,MAAM;AACjB,UAAM,IAAI,MAAM,0BAA0B;AAAA,EAC5C;AAEA,aAAO,gDAA8B,EAAE,YAAY,QAAQ,MAAM,cAAc,SAAS,aAAa,CAAC;AACxG;","names":["import_internal","import_stream","Headers","Headers","fp","import_internal"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts","../src/clerkPlugin.ts","../src/types.ts","../src/withClerkMiddleware.ts","../src/clerkClient.ts","../src/constants.ts","../src/getAuth.ts","../src/errors.ts"],"sourcesContent":["export * from '@clerk/backend';\n\nexport type { ClerkFastifyOptions, FrontendApiProxyOptions } from './types';\n\nexport { clerkPlugin } from './clerkPlugin';\nexport { getAuth } from './getAuth';\nexport { clerkClient } from './clerkClient';\n","import type { FastifyInstance, FastifyPluginCallback } from 'fastify';\nimport fp from 'fastify-plugin';\n\nimport type { ClerkFastifyOptions } from './types';\nimport { ALLOWED_HOOKS } from './types';\nimport { withClerkMiddleware } from './withClerkMiddleware';\n\nconst plugin: FastifyPluginCallback<ClerkFastifyOptions> = (\n instance: FastifyInstance,\n opts: ClerkFastifyOptions,\n done,\n) => {\n instance.decorateRequest('auth', null);\n // run clerk as a middleware to all scoped routes\n const hookName = opts.hookName || 'preHandler';\n if (!ALLOWED_HOOKS.includes(hookName)) {\n throw new Error(`Unsupported hookName: ${hookName}`);\n }\n\n instance.addHook(hookName, withClerkMiddleware(opts));\n\n done();\n};\n\nexport const clerkPlugin = fp(plugin, {\n name: '@clerk/fastify',\n fastify: '5.x',\n});\n","import type { ClerkOptions } from '@clerk/backend';\nimport type { ShouldProxyFn } from '@clerk/shared/proxy';\n\nexport const ALLOWED_HOOKS = ['onRequest', 'preHandler'] as const;\n\n/**\n * Options for the built-in Frontend API proxy.\n *\n * When enabled, the middleware intercepts requests that match the proxy path\n * (default `/__clerk`) and forwards them to the Clerk Frontend API, allowing\n * the Clerk frontend SDKs to communicate with Clerk without third-party\n * cookie or ad-blocker issues.\n */\nexport interface FrontendApiProxyOptions {\n /** Toggle the proxy on/off, or supply a function that decides per-request. */\n enabled: boolean | ShouldProxyFn;\n /** Custom path prefix for the proxy (default: `/__clerk`). */\n path?: string;\n}\n\nexport type ClerkFastifyOptions = ClerkOptions & {\n hookName?: (typeof ALLOWED_HOOKS)[number];\n frontendApiProxy?: FrontendApiProxyOptions;\n};\n","import { AuthStatus } from '@clerk/backend/internal';\nimport { clerkFrontendApiProxy, DEFAULT_PROXY_PATH, stripTrailingSlashes } from '@clerk/backend/proxy';\nimport type { FastifyReply, FastifyRequest } from 'fastify';\nimport { Readable } from 'stream';\n\nimport { clerkClient } from './clerkClient';\nimport * as constants from './constants';\nimport type { ClerkFastifyOptions } from './types';\nimport { fastifyRequestToRequest, requestToProxyRequest } from './utils';\n\nexport const withClerkMiddleware = (options: ClerkFastifyOptions) => {\n const frontendApiProxy = options.frontendApiProxy;\n const proxyPath = stripTrailingSlashes(frontendApiProxy?.path ?? DEFAULT_PROXY_PATH) || DEFAULT_PROXY_PATH;\n\n return async (fastifyRequest: FastifyRequest, reply: FastifyReply) => {\n const publishableKey = options.publishableKey || constants.PUBLISHABLE_KEY;\n const secretKey = options.secretKey || constants.SECRET_KEY;\n\n // Handle Frontend API proxy requests and auto-derive proxyUrl\n let resolvedProxyUrl = options.proxyUrl;\n if (frontendApiProxy) {\n const requestUrl = new URL(\n fastifyRequest.url,\n `${fastifyRequest.protocol}://${fastifyRequest.hostname || 'localhost'}`,\n );\n const isEnabled =\n typeof frontendApiProxy.enabled === 'function'\n ? frontendApiProxy.enabled(requestUrl)\n : frontendApiProxy.enabled;\n\n if (isEnabled) {\n if (requestUrl.pathname === proxyPath || requestUrl.pathname.startsWith(proxyPath + '/')) {\n const proxyRequest = requestToProxyRequest(fastifyRequest);\n\n const proxyResponse = await clerkFrontendApiProxy(proxyRequest, {\n proxyPath,\n publishableKey,\n secretKey,\n });\n\n reply.code(proxyResponse.status);\n proxyResponse.headers.forEach((value, key) => {\n reply.header(key, value);\n });\n\n if (proxyResponse.body) {\n const reader = proxyResponse.body.getReader();\n const stream = new Readable({\n async read() {\n try {\n const { done, value } = await reader.read();\n if (done) {\n this.push(null);\n } else {\n this.push(Buffer.from(value));\n }\n } catch (error) {\n this.destroy(error instanceof Error ? error : new Error(String(error)));\n }\n },\n });\n return reply.send(stream);\n }\n return reply.send();\n }\n\n // Pass just the path - the backend resolves it against the request's\n // public origin (from x-forwarded-* headers).\n if (!resolvedProxyUrl) {\n resolvedProxyUrl = proxyPath;\n }\n }\n }\n\n const req = fastifyRequestToRequest(fastifyRequest);\n\n const requestState = await clerkClient.authenticateRequest(req, {\n ...options,\n secretKey,\n publishableKey,\n proxyUrl: resolvedProxyUrl,\n acceptsToken: 'any',\n });\n\n requestState.headers.forEach((value, key) => reply.header(key, value));\n\n const locationHeader = requestState.headers.get(constants.Headers.Location);\n if (locationHeader) {\n return reply.code(307).send();\n } else if (requestState.status === AuthStatus.Handshake) {\n throw new Error('Clerk: handshake status without redirect');\n }\n\n // @ts-expect-error Inject auth so getAuth can read it\n fastifyRequest.auth = requestState.toAuth();\n };\n};\n","import { createClerkClient } from '@clerk/backend';\n\nimport { API_URL, API_VERSION, JWT_KEY, MACHINE_SECRET_KEY, SDK_METADATA, SECRET_KEY } from './constants';\n\nexport const clerkClient = createClerkClient({\n secretKey: SECRET_KEY,\n machineSecretKey: MACHINE_SECRET_KEY,\n apiUrl: API_URL,\n apiVersion: API_VERSION,\n jwtKey: JWT_KEY,\n userAgent: `${PACKAGE_NAME}@${PACKAGE_VERSION}`,\n sdkMetadata: SDK_METADATA,\n});\n","import { constants } from '@clerk/backend/internal';\nimport { apiUrlFromPublishableKey } from '@clerk/shared/apiUrlFromPublishableKey';\n\nexport const API_VERSION = process.env.CLERK_API_VERSION || 'v1';\nexport const SECRET_KEY = process.env.CLERK_SECRET_KEY || '';\nexport const MACHINE_SECRET_KEY = process.env.CLERK_MACHINE_SECRET_KEY || '';\nexport const PUBLISHABLE_KEY = process.env.CLERK_PUBLISHABLE_KEY || '';\nexport const API_URL = process.env.CLERK_API_URL || apiUrlFromPublishableKey(PUBLISHABLE_KEY);\nexport const JWT_KEY = process.env.CLERK_JWT_KEY || '';\nexport const SDK_METADATA = {\n name: PACKAGE_NAME,\n version: PACKAGE_VERSION,\n environment: process.env.NODE_ENV,\n};\n\nexport const { Cookies, Headers } = constants;\n","import type { AuthOptions, GetAuthFn, SignedInAuthObject, SignedOutAuthObject } from '@clerk/backend/internal';\nimport { getAuthObjectForAcceptedToken } from '@clerk/backend/internal';\nimport type { FastifyRequest } from 'fastify';\n\nimport { pluginRegistrationRequired } from './errors';\n\nexport const getAuth: GetAuthFn<FastifyRequest> = ((req: FastifyRequest, options?: AuthOptions) => {\n const authReq = req as FastifyRequest & { auth: SignedInAuthObject | SignedOutAuthObject };\n\n if (!authReq.auth) {\n throw new Error(pluginRegistrationRequired);\n }\n\n return getAuthObjectForAcceptedToken({ authObject: authReq.auth, acceptsToken: options?.acceptsToken });\n}) as GetAuthFn<FastifyRequest>;\n","// https://github.com/clerk/javascript/blob/main/packages/remix/src/errors.ts#L1-L0\nconst createErrorMessage = (msg: string) => {\n return `🔒 Clerk: ${msg.trim()}\n\nFor more info, check out the docs: https://clerk.com/docs,\nor come say hi in our discord server: https://clerk.com/discord\n`;\n};\n\nexport const pluginRegistrationRequired =\n createErrorMessage(`The \"clerkPlugin\" should be registered before using the \"getAuth\".\nExample:\n\nimport { clerkPlugin } from '@clerk/fastify';\n\nconst server: FastifyInstance = Fastify({ logger: true });\nserver.register(clerkPlugin);\n`);\n"],"mappings":";;;;;;AAAA,cAAc;;;ACCd,OAAO,QAAQ;;;ACER,IAAM,gBAAgB,CAAC,aAAa,YAAY;;;ACHvD,SAAS,kBAAkB;AAC3B,SAAS,uBAAuB,oBAAoB,4BAA4B;AAEhF,SAAS,gBAAgB;;;ACHzB,SAAS,yBAAyB;;;ACAlC,SAAS,iBAAiB;AAC1B,SAAS,gCAAgC;AAElC,IAAM,cAAc,QAAQ,IAAI,qBAAqB;AACrD,IAAM,aAAa,QAAQ,IAAI,oBAAoB;AACnD,IAAM,qBAAqB,QAAQ,IAAI,4BAA4B;AACnE,IAAM,kBAAkB,QAAQ,IAAI,yBAAyB;AAC7D,IAAM,UAAU,QAAQ,IAAI,iBAAiB,yBAAyB,eAAe;AACrF,IAAM,UAAU,QAAQ,IAAI,iBAAiB;AAC7C,IAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AACf;AAEO,IAAM,EAAE,SAAS,QAAQ,IAAI;;;ADX7B,IAAM,cAAc,kBAAkB;AAAA,EAC3C,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,WAAW,GAAG,gBAAY,IAAI,OAAe;AAAA,EAC7C,aAAa;AACf,CAAC;;;ADFM,IAAM,sBAAsB,CAAC,YAAiC;AACnE,QAAM,mBAAmB,QAAQ;AACjC,QAAM,YAAY,qBAAqB,kBAAkB,QAAQ,kBAAkB,KAAK;AAExF,SAAO,OAAO,gBAAgC,UAAwB;AACpE,UAAM,iBAAiB,QAAQ,kBAA4B;AAC3D,UAAM,YAAY,QAAQ,aAAuB;AAGjD,QAAI,mBAAmB,QAAQ;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/shared/types';
2
- export { C as ClerkFastifyOptions } from './index-CWnSaB0B.mjs';
3
- import '@clerk/backend';
4
- import '@clerk/shared/proxy';
@@ -1,4 +0,0 @@
1
- export * from '@clerk/shared/types';
2
- export { C as ClerkFastifyOptions } from './index-CWnSaB0B.js';
3
- import '@clerk/backend';
4
- import '@clerk/shared/proxy';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/types/index.ts"],"sourcesContent":["/**\n * Re-export all shared Clerk types for convenient access via @clerk/fastify/types\n */\nexport type * from '@clerk/shared/types';\n\n/**\n * Fastify-specific types\n */\nexport type { ClerkFastifyOptions } from '../types';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- import * as _clerk_backend_webhooks from '@clerk/backend/webhooks';
2
- import { VerifyWebhookOptions } from '@clerk/backend/webhooks';
3
- export * from '@clerk/backend/webhooks';
4
- import { FastifyRequest } from 'fastify';
5
-
6
- /**
7
- * Verifies the authenticity of a webhook request using Svix.
8
- *
9
- * @param req - The incoming webhook Fastify Request object
10
- * @param options - Optional configuration object
11
- * @param options.signingSecret - Custom signing secret. If not provided, falls back to CLERK_WEBHOOK_SIGNING_SECRET env variable
12
- * @throws Will throw an error if the webhook signature verification fails
13
- * @returns A promise that resolves to the verified webhook event data
14
- *
15
- * @see {@link https://clerk.com/docs/webhooks/sync-data} to learn more about syncing Clerk data to your application using webhooks
16
- */
17
- declare function verifyWebhook(req: FastifyRequest, options?: VerifyWebhookOptions): Promise<_clerk_backend_webhooks.WebhookEvent>;
18
-
19
- export { verifyWebhook };
@@ -1,19 +0,0 @@
1
- import * as _clerk_backend_webhooks from '@clerk/backend/webhooks';
2
- import { VerifyWebhookOptions } from '@clerk/backend/webhooks';
3
- export * from '@clerk/backend/webhooks';
4
- import { FastifyRequest } from 'fastify';
5
-
6
- /**
7
- * Verifies the authenticity of a webhook request using Svix.
8
- *
9
- * @param req - The incoming webhook Fastify Request object
10
- * @param options - Optional configuration object
11
- * @param options.signingSecret - Custom signing secret. If not provided, falls back to CLERK_WEBHOOK_SIGNING_SECRET env variable
12
- * @throws Will throw an error if the webhook signature verification fails
13
- * @returns A promise that resolves to the verified webhook event data
14
- *
15
- * @see {@link https://clerk.com/docs/webhooks/sync-data} to learn more about syncing Clerk data to your application using webhooks
16
- */
17
- declare function verifyWebhook(req: FastifyRequest, options?: VerifyWebhookOptions): Promise<_clerk_backend_webhooks.WebhookEvent>;
18
-
19
- export { verifyWebhook };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/webhooks.ts","../src/utils.ts"],"sourcesContent":["/* eslint-disable import/export */\nimport type { VerifyWebhookOptions } from '@clerk/backend/webhooks';\nimport { verifyWebhook as verifyWebhookBase } from '@clerk/backend/webhooks';\nimport type { FastifyRequest } from 'fastify';\n\nimport { fastifyRequestToRequest } from './utils';\n\n// Ordering of exports matter here since\n// we're overriding the base verifyWebhook\nexport * from '@clerk/backend/webhooks';\n\n/**\n * Verifies the authenticity of a webhook request using Svix.\n *\n * @param req - The incoming webhook Fastify Request object\n * @param options - Optional configuration object\n * @param options.signingSecret - Custom signing secret. If not provided, falls back to CLERK_WEBHOOK_SIGNING_SECRET env variable\n * @throws Will throw an error if the webhook signature verification fails\n * @returns A promise that resolves to the verified webhook event data\n *\n * @see {@link https://clerk.com/docs/webhooks/sync-data} to learn more about syncing Clerk data to your application using webhooks\n */\nexport async function verifyWebhook(req: FastifyRequest, options?: VerifyWebhookOptions) {\n const webRequest = fastifyRequestToRequest(req);\n // Cloning instead of implementing the body inside fastifyRequestToRequest\n // to make it more predictable\n const clonedRequest = new Request(webRequest, {\n body: JSON.stringify(req.body),\n });\n return verifyWebhookBase(clonedRequest, options);\n}\n","import type { FastifyRequest } from 'fastify';\nimport { Readable } from 'stream';\n\nexport const fastifyRequestToRequest = (req: FastifyRequest): Request => {\n const headers = new Headers(\n Object.keys(req.headers).reduce((acc, key) => {\n const value = req.headers[key];\n if (!value) {\n return acc;\n }\n\n if (typeof value === 'string') {\n acc.set(key, value);\n } else {\n acc.set(key, value.join(','));\n }\n return acc;\n }, new Headers()),\n );\n\n // Making some manual tests it seems that FastifyRequest populates the req protocol / hostname\n // based on the forwarded headers. Nevertheless, we are gonna use a dummy base and the request\n // will be fixed by the internals of the clerk/backend package\n const dummyOriginReqUrl = new URL(req.url || '', `${req.protocol}://clerk-dummy`);\n return new Request(dummyOriginReqUrl, {\n method: req.method,\n headers,\n });\n};\n\n/**\n * Converts a Fastify request to a Fetch API Request with full headers and body streaming,\n * suitable for proxy forwarding.\n */\nexport const requestToProxyRequest = (req: FastifyRequest): Request => {\n const headers = new Headers();\n Object.entries(req.headers).forEach(([key, value]) => {\n if (value) {\n headers.set(key, Array.isArray(value) ? value.join(', ') : value);\n }\n });\n\n const forwardedProto = req.headers['x-forwarded-proto'];\n const protoHeader = Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto;\n const proto = (protoHeader || '').split(',')[0].trim();\n const protocol = proto === 'https' || req.protocol === 'https' ? 'https' : 'http';\n\n const forwardedHost = req.headers['x-forwarded-host'];\n const hostHeader = Array.isArray(forwardedHost) ? forwardedHost[0] : forwardedHost;\n const host = (hostHeader || '').split(',')[0].trim() || req.hostname || 'localhost';\n\n const url = new URL(req.url || '', `${protocol}://${host}`);\n\n const hasBody = ['POST', 'PUT', 'PATCH'].includes(req.method);\n\n return new Request(url.toString(), {\n method: req.method,\n headers,\n body: hasBody ? (Readable.toWeb(req.raw) as ReadableStream) : undefined,\n // @ts-expect-error - duplex required for streaming bodies but not in all TS definitions\n duplex: hasBody ? 'half' : undefined,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAmD;;;ACC5C,IAAM,0BAA0B,CAAC,QAAiC;AACvE,QAAM,UAAU,IAAI;AAAA,IAClB,OAAO,KAAK,IAAI,OAAO,EAAE,OAAO,CAAC,KAAK,QAAQ;AAC5C,YAAM,QAAQ,IAAI,QAAQ,GAAG;AAC7B,UAAI,CAAC,OAAO;AACV,eAAO;AAAA,MACT;AAEA,UAAI,OAAO,UAAU,UAAU;AAC7B,YAAI,IAAI,KAAK,KAAK;AAAA,MACpB,OAAO;AACL,YAAI,IAAI,KAAK,MAAM,KAAK,GAAG,CAAC;AAAA,MAC9B;AACA,aAAO;AAAA,IACT,GAAG,IAAI,QAAQ,CAAC;AAAA,EAClB;AAKA,QAAM,oBAAoB,IAAI,IAAI,IAAI,OAAO,IAAI,GAAG,IAAI,QAAQ,gBAAgB;AAChF,SAAO,IAAI,QAAQ,mBAAmB;AAAA,IACpC,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF,CAAC;AACH;;;ADnBA,6BAAc,oCATd;AAsBA,eAAsB,cAAc,KAAqB,SAAgC;AACvF,QAAM,aAAa,wBAAwB,GAAG;AAG9C,QAAM,gBAAgB,IAAI,QAAQ,YAAY;AAAA,IAC5C,MAAM,KAAK,UAAU,IAAI,IAAI;AAAA,EAC/B,CAAC;AACD,aAAO,gBAAAA,eAAkB,eAAe,OAAO;AACjD;","names":["verifyWebhookBase"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/webhooks.ts"],"sourcesContent":["/* eslint-disable import/export */\nimport type { VerifyWebhookOptions } from '@clerk/backend/webhooks';\nimport { verifyWebhook as verifyWebhookBase } from '@clerk/backend/webhooks';\nimport type { FastifyRequest } from 'fastify';\n\nimport { fastifyRequestToRequest } from './utils';\n\n// Ordering of exports matter here since\n// we're overriding the base verifyWebhook\nexport * from '@clerk/backend/webhooks';\n\n/**\n * Verifies the authenticity of a webhook request using Svix.\n *\n * @param req - The incoming webhook Fastify Request object\n * @param options - Optional configuration object\n * @param options.signingSecret - Custom signing secret. If not provided, falls back to CLERK_WEBHOOK_SIGNING_SECRET env variable\n * @throws Will throw an error if the webhook signature verification fails\n * @returns A promise that resolves to the verified webhook event data\n *\n * @see {@link https://clerk.com/docs/webhooks/sync-data} to learn more about syncing Clerk data to your application using webhooks\n */\nexport async function verifyWebhook(req: FastifyRequest, options?: VerifyWebhookOptions) {\n const webRequest = fastifyRequestToRequest(req);\n // Cloning instead of implementing the body inside fastifyRequestToRequest\n // to make it more predictable\n const clonedRequest = new Request(webRequest, {\n body: JSON.stringify(req.body),\n });\n return verifyWebhookBase(clonedRequest, options);\n}\n"],"mappings":";;;;;AAEA,SAAS,iBAAiB,yBAAyB;AAOnD,cAAc;AAad,eAAsB,cAAc,KAAqB,SAAgC;AACvF,QAAM,aAAa,wBAAwB,GAAG;AAG9C,QAAM,gBAAgB,IAAI,QAAQ,YAAY;AAAA,IAC5C,MAAM,KAAK,UAAU,IAAI,IAAI;AAAA,EAC/B,CAAC;AACD,SAAO,kBAAkB,eAAe,OAAO;AACjD;","names":[]}
@@ -1,9 +0,0 @@
1
- import { sd as PhoneCodeChannelData } from "./index-Cc98l5ga.mjs";
2
- import "./moduleManager-BsmFyRrH.mjs";
3
-
4
- //#region src/alternativePhoneCode.d.ts
5
- declare const ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[];
6
- declare const getAlternativePhoneCodeProviderData: (channel?: string) => PhoneCodeChannelData | null;
7
- //#endregion
8
- export { ALTERNATIVE_PHONE_CODE_PROVIDERS, getAlternativePhoneCodeProviderData };
9
- //# sourceMappingURL=alternativePhoneCode.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternativePhoneCode.d.mts","names":[],"sources":["../../src/alternativePhoneCode.ts"],"sourcesContent":[],"mappings":";;;;cAEa,kCAAkC;cAOlC,2DAA0D"}
@@ -1,9 +0,0 @@
1
- import { sd as PhoneCodeChannelData } from "./index-BK_NVS1t.js";
2
- import "./moduleManager-WB15hU3T.js";
3
-
4
- //#region src/alternativePhoneCode.d.ts
5
- declare const ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[];
6
- declare const getAlternativePhoneCodeProviderData: (channel?: string) => PhoneCodeChannelData | null;
7
- //#endregion
8
- export { ALTERNATIVE_PHONE_CODE_PROVIDERS, getAlternativePhoneCodeProviderData };
9
- //# sourceMappingURL=alternativePhoneCode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternativePhoneCode.d.ts","names":[],"sources":["../../src/alternativePhoneCode.ts"],"sourcesContent":[],"mappings":";;;;cAEa,kCAAkC;cAOlC,2DAA0D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternativePhoneCode.js","names":["ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[]"],"sources":["../../src/alternativePhoneCode.ts"],"sourcesContent":["import type { PhoneCodeChannelData } from './types';\n\nexport const ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[] = [\n {\n channel: 'whatsapp',\n name: 'WhatsApp',\n },\n];\n\nexport const getAlternativePhoneCodeProviderData = (channel?: string): PhoneCodeChannelData | null => {\n if (!channel) {\n return null;\n }\n return ALTERNATIVE_PHONE_CODE_PROVIDERS.find(p => p.channel === channel) || null;\n};\n"],"mappings":";;AAEA,MAAaA,mCAA2D,CACtE;CACE,SAAS;CACT,MAAM;CACP,CACF;AAED,MAAa,uCAAuC,YAAkD;AACpG,KAAI,CAAC,QACH,QAAO;AAET,QAAO,iCAAiC,MAAK,MAAK,EAAE,YAAY,QAAQ,IAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"alternativePhoneCode.mjs","names":["ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[]"],"sources":["../../src/alternativePhoneCode.ts"],"sourcesContent":["import type { PhoneCodeChannelData } from './types';\n\nexport const ALTERNATIVE_PHONE_CODE_PROVIDERS: PhoneCodeChannelData[] = [\n {\n channel: 'whatsapp',\n name: 'WhatsApp',\n },\n];\n\nexport const getAlternativePhoneCodeProviderData = (channel?: string): PhoneCodeChannelData | null => {\n if (!channel) {\n return null;\n }\n return ALTERNATIVE_PHONE_CODE_PROVIDERS.find(p => p.channel === channel) || null;\n};\n"],"mappings":";AAEA,MAAaA,mCAA2D,CACtE;CACE,SAAS;CACT,MAAM;CACP,CACF;AAED,MAAa,uCAAuC,YAAkD;AACpG,KAAI,CAAC,QACH,QAAO;AAET,QAAO,iCAAiC,MAAK,MAAK,EAAE,YAAY,QAAQ,IAAI"}
@@ -1,11 +0,0 @@
1
- //#region src/apiUrlFromPublishableKey.d.ts
2
- /**
3
- * Get the correct API url based on the publishable key.
4
- *
5
- * @param publishableKey - The publishable key to parse.
6
- * @returns One of Clerk's API URLs.
7
- */
8
- declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.clerk.com" | "https://api.lclclerk.com" | "https://api.clerkstage.dev";
9
- //#endregion
10
- export { apiUrlFromPublishableKey };
11
- //# sourceMappingURL=apiUrlFromPublishableKey.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiUrlFromPublishableKey.d.mts","names":[],"sources":["../../src/apiUrlFromPublishableKey.ts"],"sourcesContent":[],"mappings":";;AAgBA;;;;;cAAa"}
@@ -1,11 +0,0 @@
1
- //#region src/apiUrlFromPublishableKey.d.ts
2
- /**
3
- * Get the correct API url based on the publishable key.
4
- *
5
- * @param publishableKey - The publishable key to parse.
6
- * @returns One of Clerk's API URLs.
7
- */
8
- declare const apiUrlFromPublishableKey: (publishableKey: string) => "https://api.lclclerk.com" | "https://api.clerkstage.dev" | "https://api.clerk.com";
9
- //#endregion
10
- export { apiUrlFromPublishableKey };
11
- //# sourceMappingURL=apiUrlFromPublishableKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiUrlFromPublishableKey.d.ts","names":[],"sources":["../../src/apiUrlFromPublishableKey.ts"],"sourcesContent":[],"mappings":";;AAgBA;;;;;cAAa"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiUrlFromPublishableKey.js","names":["parsePublishableKey","LEGACY_DEV_INSTANCE_SUFFIXES","PROD_API_URL","LOCAL_ENV_SUFFIXES","LOCAL_API_URL","STAGING_ENV_SUFFIXES","STAGING_API_URL"],"sources":["../../src/apiUrlFromPublishableKey.ts"],"sourcesContent":["import {\n LEGACY_DEV_INSTANCE_SUFFIXES,\n LOCAL_API_URL,\n LOCAL_ENV_SUFFIXES,\n PROD_API_URL,\n STAGING_API_URL,\n STAGING_ENV_SUFFIXES,\n} from './constants';\nimport { parsePublishableKey } from './keys';\n\n/**\n * Get the correct API url based on the publishable key.\n *\n * @param publishableKey - The publishable key to parse.\n * @returns One of Clerk's API URLs.\n */\nexport const apiUrlFromPublishableKey = (publishableKey: string) => {\n const frontendApi = parsePublishableKey(publishableKey)?.frontendApi;\n\n if (frontendApi?.startsWith('clerk.') && LEGACY_DEV_INSTANCE_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return PROD_API_URL;\n }\n\n if (LOCAL_ENV_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return LOCAL_API_URL;\n }\n if (STAGING_ENV_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return STAGING_API_URL;\n }\n return PROD_API_URL;\n};\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,4BAA4B,mBAA2B;CAClE,MAAM,cAAcA,iCAAoB,eAAe,EAAE;AAEzD,KAAI,aAAa,WAAW,SAAS,IAAIC,+CAA6B,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CACjH,QAAOC;AAGT,KAAIC,qCAAmB,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CAClE,QAAOC;AAET,KAAIC,uCAAqB,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CACpE,QAAOC;AAET,QAAOJ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiUrlFromPublishableKey.mjs","names":[],"sources":["../../src/apiUrlFromPublishableKey.ts"],"sourcesContent":["import {\n LEGACY_DEV_INSTANCE_SUFFIXES,\n LOCAL_API_URL,\n LOCAL_ENV_SUFFIXES,\n PROD_API_URL,\n STAGING_API_URL,\n STAGING_ENV_SUFFIXES,\n} from './constants';\nimport { parsePublishableKey } from './keys';\n\n/**\n * Get the correct API url based on the publishable key.\n *\n * @param publishableKey - The publishable key to parse.\n * @returns One of Clerk's API URLs.\n */\nexport const apiUrlFromPublishableKey = (publishableKey: string) => {\n const frontendApi = parsePublishableKey(publishableKey)?.frontendApi;\n\n if (frontendApi?.startsWith('clerk.') && LEGACY_DEV_INSTANCE_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return PROD_API_URL;\n }\n\n if (LOCAL_ENV_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return LOCAL_API_URL;\n }\n if (STAGING_ENV_SUFFIXES.some(suffix => frontendApi?.endsWith(suffix))) {\n return STAGING_API_URL;\n }\n return PROD_API_URL;\n};\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,4BAA4B,mBAA2B;CAClE,MAAM,cAAc,oBAAoB,eAAe,EAAE;AAEzD,KAAI,aAAa,WAAW,SAAS,IAAI,6BAA6B,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CACjH,QAAO;AAGT,KAAI,mBAAmB,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CAClE,QAAO;AAET,KAAI,qBAAqB,MAAK,WAAU,aAAa,SAAS,OAAO,CAAC,CACpE,QAAO;AAET,QAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization-Du_JQmnH.js","names":["TYPES_TO_OBJECTS: TypesToConfig","checkOrgAuthorization: CheckOrgAuthorization","checkBillingAuthorization: CheckBillingAuthorization","org: string[]","user: string[]","config","checkReverificationAuthorization: CheckReverificationAuthorization"],"sources":["../../src/authorization.ts"],"sourcesContent":["import type {\n ActClaim,\n CheckAuthorizationWithCustomPermissions,\n GetToken,\n JwtPayload,\n OrganizationCustomPermissionKey,\n OrganizationCustomRoleKey,\n PendingSessionOptions,\n ReverificationConfig,\n SessionStatusClaim,\n SessionVerificationLevel,\n SessionVerificationTypes,\n SignOut,\n UseAuthReturn,\n} from './types';\n\ntype TypesToConfig = Record<SessionVerificationTypes, Exclude<ReverificationConfig, SessionVerificationTypes>>;\ntype AuthorizationOptions = {\n userId: string | null | undefined;\n orgId: string | null | undefined;\n orgRole: string | null | undefined;\n orgPermissions: string[] | null | undefined;\n factorVerificationAge: [number, number] | null;\n features: string | null | undefined;\n plans: string | null | undefined;\n};\n\ntype CheckOrgAuthorization = (\n params: { role?: OrganizationCustomRoleKey; permission?: OrganizationCustomPermissionKey },\n options: Pick<AuthorizationOptions, 'orgId' | 'orgRole' | 'orgPermissions'>,\n) => boolean | null;\n\ntype CheckBillingAuthorization = (\n params: { feature?: string; plan?: string },\n options: Pick<AuthorizationOptions, 'plans' | 'features'>,\n) => boolean | null;\n\ntype CheckReverificationAuthorization = (\n params: {\n reverification?: ReverificationConfig;\n },\n { factorVerificationAge }: AuthorizationOptions,\n) => boolean | null;\n\nconst TYPES_TO_OBJECTS: TypesToConfig = {\n strict_mfa: {\n afterMinutes: 10,\n level: 'multi_factor',\n },\n strict: {\n afterMinutes: 10,\n level: 'second_factor',\n },\n moderate: {\n afterMinutes: 60,\n level: 'second_factor',\n },\n lax: {\n afterMinutes: 1_440,\n level: 'second_factor',\n },\n};\n\nconst ALLOWED_LEVELS = new Set<SessionVerificationLevel>(['first_factor', 'second_factor', 'multi_factor']);\n\nconst ALLOWED_TYPES = new Set<SessionVerificationTypes>(['strict_mfa', 'strict', 'moderate', 'lax']);\n\nconst ORG_SCOPES = new Set(['o', 'org', 'organization']);\nconst USER_SCOPES = new Set(['u', 'user']);\n\n// Helper functions\nconst isValidMaxAge = (maxAge: any) => typeof maxAge === 'number' && maxAge > 0;\nconst isValidLevel = (level: any) => ALLOWED_LEVELS.has(level);\nconst isValidVerificationType = (type: any) => ALLOWED_TYPES.has(type);\n\nconst prefixWithOrg = (value: string) => value.replace(/^(org:)*/, 'org:');\n\n/**\n * Checks if a user has the required organization-level authorization.\n * Verifies if the user has the specified role or permission within their organization.\n *\n * @returns null, if unable to determine due to missing data or unspecified role/permission.\n */\nconst checkOrgAuthorization: CheckOrgAuthorization = (params, options) => {\n const { orgId, orgRole, orgPermissions } = options;\n if (!params.role && !params.permission) {\n return null;\n }\n\n if (!orgId || !orgRole || !orgPermissions) {\n return null;\n }\n\n if (params.permission) {\n return orgPermissions.includes(prefixWithOrg(params.permission));\n }\n\n if (params.role) {\n return prefixWithOrg(orgRole) === prefixWithOrg(params.role);\n }\n return null;\n};\n\nconst checkForFeatureOrPlan = (claim: string, featureOrPlan: string) => {\n const { org: orgFeatures, user: userFeatures } = splitByScope(claim);\n const [rawScope, rawId] = featureOrPlan.split(':');\n const hasExplicitScope = rawId !== undefined;\n const scope = rawScope;\n const id = rawId || rawScope;\n\n if (hasExplicitScope && !ORG_SCOPES.has(scope) && !USER_SCOPES.has(scope)) {\n throw new Error(`Invalid scope: ${scope}`);\n }\n\n if (hasExplicitScope) {\n if (ORG_SCOPES.has(scope)) {\n return orgFeatures.includes(id);\n }\n if (USER_SCOPES.has(scope)) {\n return userFeatures.includes(id);\n }\n }\n\n // Since org scoped features will not exist if there is not an active org, merging is safe.\n return [...orgFeatures, ...userFeatures].includes(id);\n};\n\nconst checkBillingAuthorization: CheckBillingAuthorization = (params, options) => {\n const { features, plans } = options;\n\n if (params.feature && features) {\n return checkForFeatureOrPlan(features, params.feature);\n }\n\n if (params.plan && plans) {\n return checkForFeatureOrPlan(plans, params.plan);\n }\n return null;\n};\n\nconst splitByScope = (fea: string | null | undefined) => {\n const org: string[] = [];\n const user: string[] = [];\n\n if (!fea) {\n return { org, user };\n }\n\n const parts = fea.split(',');\n for (let i = 0; i < parts.length; i++) {\n const part = parts[i].trim();\n const colonIndex = part.indexOf(':');\n if (colonIndex === -1) {\n throw new Error(`Invalid claim element (missing colon): ${part}`);\n }\n const scope = part.slice(0, colonIndex);\n const value = part.slice(colonIndex + 1);\n\n if (scope === 'o') {\n org.push(value);\n } else if (scope === 'u') {\n user.push(value);\n } else if (scope === 'ou' || scope === 'uo') {\n org.push(value);\n user.push(value);\n }\n }\n\n return { org, user };\n};\n\nconst validateReverificationConfig = (config: ReverificationConfig | undefined | null) => {\n if (!config) {\n return false;\n }\n\n const convertConfigToObject = (config: ReverificationConfig) => {\n if (typeof config === 'string') {\n return TYPES_TO_OBJECTS[config];\n }\n return config;\n };\n\n const isValidStringValue = typeof config === 'string' && isValidVerificationType(config);\n const isValidObjectValue =\n typeof config === 'object' && isValidLevel(config.level) && isValidMaxAge(config.afterMinutes);\n\n if (isValidStringValue || isValidObjectValue) {\n return convertConfigToObject.bind(null, config);\n }\n\n return false;\n};\n\n/**\n * Evaluates if the user meets re-verification authentication requirements.\n * Compares the user's factor verification ages against the specified maxAge.\n * Handles different verification levels (first factor, second factor, multi-factor).\n *\n * @returns null, if requirements or verification data are missing.\n */\nconst checkReverificationAuthorization: CheckReverificationAuthorization = (params, { factorVerificationAge }) => {\n if (!params.reverification || !factorVerificationAge) {\n return null;\n }\n\n const isValidReverification = validateReverificationConfig(params.reverification);\n if (!isValidReverification) {\n return null;\n }\n\n const { level, afterMinutes } = isValidReverification();\n const [factor1Age, factor2Age] = factorVerificationAge;\n\n // -1 indicates the factor group (1fa,2fa) is not enabled\n // -1 for 1fa is not a valid scenario, but we need to make sure we handle it properly\n const isValidFactor1 = factor1Age !== -1 ? afterMinutes > factor1Age : null;\n const isValidFactor2 = factor2Age !== -1 ? afterMinutes > factor2Age : null;\n\n switch (level) {\n case 'first_factor':\n return isValidFactor1;\n case 'second_factor':\n return factor2Age !== -1 ? isValidFactor2 : isValidFactor1;\n case 'multi_factor':\n return factor2Age === -1 ? isValidFactor1 : isValidFactor1 && isValidFactor2;\n }\n};\n\n/**\n * Creates a function for comprehensive user authorization checks.\n * Combines organization-level and reverification authentication checks.\n * The returned function authorizes if both checks pass, or if at least one passes\n * when the other is indeterminate. Fails if userId is missing.\n */\nconst createCheckAuthorization = (options: AuthorizationOptions): CheckAuthorizationWithCustomPermissions => {\n return (params): boolean => {\n if (!options.userId) {\n return false;\n }\n\n const billingAuthorization = checkBillingAuthorization(params, options);\n const orgAuthorization = checkOrgAuthorization(params, options);\n const reverificationAuthorization = checkReverificationAuthorization(params, options);\n\n if ([billingAuthorization || orgAuthorization, reverificationAuthorization].some(a => a === null)) {\n return [billingAuthorization || orgAuthorization, reverificationAuthorization].some(a => a === true);\n }\n\n return [billingAuthorization || orgAuthorization, reverificationAuthorization].every(a => a === true);\n };\n};\n\ntype AuthStateOptions = {\n authObject: {\n userId?: string | null;\n sessionId?: string | null;\n sessionStatus?: SessionStatusClaim | null;\n sessionClaims?: JwtPayload | null;\n actor?: ActClaim | null;\n orgId?: string | null;\n orgRole?: OrganizationCustomRoleKey | null;\n orgSlug?: string | null;\n orgPermissions?: OrganizationCustomPermissionKey[] | null;\n getToken: GetToken;\n signOut: SignOut;\n has: (params: Parameters<CheckAuthorizationWithCustomPermissions>[0]) => boolean;\n };\n options: PendingSessionOptions;\n};\n\n/**\n * Shared utility function that centralizes auth state resolution logic,\n * preventing duplication across different packages.\n *\n * @internal\n */\nconst resolveAuthState = ({\n authObject: {\n sessionId,\n sessionStatus,\n userId,\n actor,\n orgId,\n orgRole,\n orgSlug,\n signOut,\n getToken,\n has,\n sessionClaims,\n },\n options: { treatPendingAsSignedOut = true },\n}: AuthStateOptions): UseAuthReturn | undefined => {\n if (sessionId === undefined && userId === undefined) {\n return {\n actor: undefined,\n getToken,\n has: () => false,\n isLoaded: false,\n isSignedIn: undefined,\n orgId: undefined,\n orgRole: undefined,\n orgSlug: undefined,\n sessionClaims: undefined,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (sessionId === null && userId === null) {\n return {\n actor: null,\n getToken,\n has: () => false,\n isLoaded: true,\n isSignedIn: false,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims: null,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (treatPendingAsSignedOut && sessionStatus === 'pending') {\n return {\n actor: null,\n getToken,\n has: () => false,\n isLoaded: true,\n isSignedIn: false,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims: null,\n sessionId: null,\n signOut,\n userId: null,\n } as const;\n }\n\n if (!!sessionId && !!sessionClaims && !!userId && !!orgId && !!orgRole) {\n return {\n actor: actor || null,\n getToken,\n has,\n isLoaded: true,\n isSignedIn: true,\n orgId,\n orgRole,\n orgSlug: orgSlug || null,\n sessionClaims,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (!!sessionId && !!sessionClaims && !!userId && !orgId) {\n return {\n actor: actor || null,\n getToken,\n has,\n isLoaded: true,\n isSignedIn: true,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n};\n\nexport { createCheckAuthorization, resolveAuthState, splitByScope, validateReverificationConfig };\n"],"mappings":";;AA4CA,MAAMA,mBAAkC;CACtC,YAAY;EACV,cAAc;EACd,OAAO;EACR;CACD,QAAQ;EACN,cAAc;EACd,OAAO;EACR;CACD,UAAU;EACR,cAAc;EACd,OAAO;EACR;CACD,KAAK;EACH,cAAc;EACd,OAAO;EACR;CACF;AAED,MAAM,iBAAiB,IAAI,IAA8B;CAAC;CAAgB;CAAiB;CAAe,CAAC;AAE3G,MAAM,gBAAgB,IAAI,IAA8B;CAAC;CAAc;CAAU;CAAY;CAAM,CAAC;AAEpG,MAAM,aAAa,IAAI,IAAI;CAAC;CAAK;CAAO;CAAe,CAAC;AACxD,MAAM,cAAc,IAAI,IAAI,CAAC,KAAK,OAAO,CAAC;AAG1C,MAAM,iBAAiB,WAAgB,OAAO,WAAW,YAAY,SAAS;AAC9E,MAAM,gBAAgB,UAAe,eAAe,IAAI,MAAM;AAC9D,MAAM,2BAA2B,SAAc,cAAc,IAAI,KAAK;AAEtE,MAAM,iBAAiB,UAAkB,MAAM,QAAQ,YAAY,OAAO;;;;;;;AAQ1E,MAAMC,yBAAgD,QAAQ,YAAY;CACxE,MAAM,EAAE,OAAO,SAAS,mBAAmB;AAC3C,KAAI,CAAC,OAAO,QAAQ,CA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EACD;AAGH,KAAI,CAAC,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,MACjD,QAAO;EACL,OAAO,SAAS;EAChB;EACA;EACA,UAAU;EACV,YAAY;EACZ,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization-Un7v7f6J.mjs","names":["TYPES_TO_OBJECTS: TypesToConfig","checkOrgAuthorization: CheckOrgAuthorization","checkBillingAuthorization: CheckBillingAuthorization","org: string[]","user: string[]","config","checkReverificationAuthorization: CheckReverificationAuthorization"],"sources":["../../src/authorization.ts"],"sourcesContent":["import type {\n ActClaim,\n CheckAuthorizationWithCustomPermissions,\n GetToken,\n JwtPayload,\n OrganizationCustomPermissionKey,\n OrganizationCustomRoleKey,\n PendingSessionOptions,\n ReverificationConfig,\n SessionStatusClaim,\n SessionVerificationLevel,\n SessionVerificationTypes,\n SignOut,\n UseAuthReturn,\n} from './types';\n\ntype TypesToConfig = Record<SessionVerificationTypes, Exclude<ReverificationConfig, SessionVerificationTypes>>;\ntype AuthorizationOptions = {\n userId: string | null | undefined;\n orgId: string | null | undefined;\n orgRole: string | null | undefined;\n orgPermissions: string[] | null | undefined;\n factorVerificationAge: [number, number] | null;\n features: string | null | undefined;\n plans: string | null | undefined;\n};\n\ntype CheckOrgAuthorization = (\n params: { role?: OrganizationCustomRoleKey; permission?: OrganizationCustomPermissionKey },\n options: Pick<AuthorizationOptions, 'orgId' | 'orgRole' | 'orgPermissions'>,\n) => boolean | null;\n\ntype CheckBillingAuthorization = (\n params: { feature?: string; plan?: string },\n options: Pick<AuthorizationOptions, 'plans' | 'features'>,\n) => boolean | null;\n\ntype CheckReverificationAuthorization = (\n params: {\n reverification?: ReverificationConfig;\n },\n { factorVerificationAge }: AuthorizationOptions,\n) => boolean | null;\n\nconst TYPES_TO_OBJECTS: TypesToConfig = {\n strict_mfa: {\n afterMinutes: 10,\n level: 'multi_factor',\n },\n strict: {\n afterMinutes: 10,\n level: 'second_factor',\n },\n moderate: {\n afterMinutes: 60,\n level: 'second_factor',\n },\n lax: {\n afterMinutes: 1_440,\n level: 'second_factor',\n },\n};\n\nconst ALLOWED_LEVELS = new Set<SessionVerificationLevel>(['first_factor', 'second_factor', 'multi_factor']);\n\nconst ALLOWED_TYPES = new Set<SessionVerificationTypes>(['strict_mfa', 'strict', 'moderate', 'lax']);\n\nconst ORG_SCOPES = new Set(['o', 'org', 'organization']);\nconst USER_SCOPES = new Set(['u', 'user']);\n\n// Helper functions\nconst isValidMaxAge = (maxAge: any) => typeof maxAge === 'number' && maxAge > 0;\nconst isValidLevel = (level: any) => ALLOWED_LEVELS.has(level);\nconst isValidVerificationType = (type: any) => ALLOWED_TYPES.has(type);\n\nconst prefixWithOrg = (value: string) => value.replace(/^(org:)*/, 'org:');\n\n/**\n * Checks if a user has the required organization-level authorization.\n * Verifies if the user has the specified role or permission within their organization.\n *\n * @returns null, if unable to determine due to missing data or unspecified role/permission.\n */\nconst checkOrgAuthorization: CheckOrgAuthorization = (params, options) => {\n const { orgId, orgRole, orgPermissions } = options;\n if (!params.role && !params.permission) {\n return null;\n }\n\n if (!orgId || !orgRole || !orgPermissions) {\n return null;\n }\n\n if (params.permission) {\n return orgPermissions.includes(prefixWithOrg(params.permission));\n }\n\n if (params.role) {\n return prefixWithOrg(orgRole) === prefixWithOrg(params.role);\n }\n return null;\n};\n\nconst checkForFeatureOrPlan = (claim: string, featureOrPlan: string) => {\n const { org: orgFeatures, user: userFeatures } = splitByScope(claim);\n const [rawScope, rawId] = featureOrPlan.split(':');\n const hasExplicitScope = rawId !== undefined;\n const scope = rawScope;\n const id = rawId || rawScope;\n\n if (hasExplicitScope && !ORG_SCOPES.has(scope) && !USER_SCOPES.has(scope)) {\n throw new Error(`Invalid scope: ${scope}`);\n }\n\n if (hasExplicitScope) {\n if (ORG_SCOPES.has(scope)) {\n return orgFeatures.includes(id);\n }\n if (USER_SCOPES.has(scope)) {\n return userFeatures.includes(id);\n }\n }\n\n // Since org scoped features will not exist if there is not an active org, merging is safe.\n return [...orgFeatures, ...userFeatures].includes(id);\n};\n\nconst checkBillingAuthorization: CheckBillingAuthorization = (params, options) => {\n const { features, plans } = options;\n\n if (params.feature && features) {\n return checkForFeatureOrPlan(features, params.feature);\n }\n\n if (params.plan && plans) {\n return checkForFeatureOrPlan(plans, params.plan);\n }\n return null;\n};\n\nconst splitByScope = (fea: string | null | undefined) => {\n const org: string[] = [];\n const user: string[] = [];\n\n if (!fea) {\n return { org, user };\n }\n\n const parts = fea.split(',');\n for (let i = 0; i < parts.length; i++) {\n const part = parts[i].trim();\n const colonIndex = part.indexOf(':');\n if (colonIndex === -1) {\n throw new Error(`Invalid claim element (missing colon): ${part}`);\n }\n const scope = part.slice(0, colonIndex);\n const value = part.slice(colonIndex + 1);\n\n if (scope === 'o') {\n org.push(value);\n } else if (scope === 'u') {\n user.push(value);\n } else if (scope === 'ou' || scope === 'uo') {\n org.push(value);\n user.push(value);\n }\n }\n\n return { org, user };\n};\n\nconst validateReverificationConfig = (config: ReverificationConfig | undefined | null) => {\n if (!config) {\n return false;\n }\n\n const convertConfigToObject = (config: ReverificationConfig) => {\n if (typeof config === 'string') {\n return TYPES_TO_OBJECTS[config];\n }\n return config;\n };\n\n const isValidStringValue = typeof config === 'string' && isValidVerificationType(config);\n const isValidObjectValue =\n typeof config === 'object' && isValidLevel(config.level) && isValidMaxAge(config.afterMinutes);\n\n if (isValidStringValue || isValidObjectValue) {\n return convertConfigToObject.bind(null, config);\n }\n\n return false;\n};\n\n/**\n * Evaluates if the user meets re-verification authentication requirements.\n * Compares the user's factor verification ages against the specified maxAge.\n * Handles different verification levels (first factor, second factor, multi-factor).\n *\n * @returns null, if requirements or verification data are missing.\n */\nconst checkReverificationAuthorization: CheckReverificationAuthorization = (params, { factorVerificationAge }) => {\n if (!params.reverification || !factorVerificationAge) {\n return null;\n }\n\n const isValidReverification = validateReverificationConfig(params.reverification);\n if (!isValidReverification) {\n return null;\n }\n\n const { level, afterMinutes } = isValidReverification();\n const [factor1Age, factor2Age] = factorVerificationAge;\n\n // -1 indicates the factor group (1fa,2fa) is not enabled\n // -1 for 1fa is not a valid scenario, but we need to make sure we handle it properly\n const isValidFactor1 = factor1Age !== -1 ? afterMinutes > factor1Age : null;\n const isValidFactor2 = factor2Age !== -1 ? afterMinutes > factor2Age : null;\n\n switch (level) {\n case 'first_factor':\n return isValidFactor1;\n case 'second_factor':\n return factor2Age !== -1 ? isValidFactor2 : isValidFactor1;\n case 'multi_factor':\n return factor2Age === -1 ? isValidFactor1 : isValidFactor1 && isValidFactor2;\n }\n};\n\n/**\n * Creates a function for comprehensive user authorization checks.\n * Combines organization-level and reverification authentication checks.\n * The returned function authorizes if both checks pass, or if at least one passes\n * when the other is indeterminate. Fails if userId is missing.\n */\nconst createCheckAuthorization = (options: AuthorizationOptions): CheckAuthorizationWithCustomPermissions => {\n return (params): boolean => {\n if (!options.userId) {\n return false;\n }\n\n const billingAuthorization = checkBillingAuthorization(params, options);\n const orgAuthorization = checkOrgAuthorization(params, options);\n const reverificationAuthorization = checkReverificationAuthorization(params, options);\n\n if ([billingAuthorization || orgAuthorization, reverificationAuthorization].some(a => a === null)) {\n return [billingAuthorization || orgAuthorization, reverificationAuthorization].some(a => a === true);\n }\n\n return [billingAuthorization || orgAuthorization, reverificationAuthorization].every(a => a === true);\n };\n};\n\ntype AuthStateOptions = {\n authObject: {\n userId?: string | null;\n sessionId?: string | null;\n sessionStatus?: SessionStatusClaim | null;\n sessionClaims?: JwtPayload | null;\n actor?: ActClaim | null;\n orgId?: string | null;\n orgRole?: OrganizationCustomRoleKey | null;\n orgSlug?: string | null;\n orgPermissions?: OrganizationCustomPermissionKey[] | null;\n getToken: GetToken;\n signOut: SignOut;\n has: (params: Parameters<CheckAuthorizationWithCustomPermissions>[0]) => boolean;\n };\n options: PendingSessionOptions;\n};\n\n/**\n * Shared utility function that centralizes auth state resolution logic,\n * preventing duplication across different packages.\n *\n * @internal\n */\nconst resolveAuthState = ({\n authObject: {\n sessionId,\n sessionStatus,\n userId,\n actor,\n orgId,\n orgRole,\n orgSlug,\n signOut,\n getToken,\n has,\n sessionClaims,\n },\n options: { treatPendingAsSignedOut = true },\n}: AuthStateOptions): UseAuthReturn | undefined => {\n if (sessionId === undefined && userId === undefined) {\n return {\n actor: undefined,\n getToken,\n has: () => false,\n isLoaded: false,\n isSignedIn: undefined,\n orgId: undefined,\n orgRole: undefined,\n orgSlug: undefined,\n sessionClaims: undefined,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (sessionId === null && userId === null) {\n return {\n actor: null,\n getToken,\n has: () => false,\n isLoaded: true,\n isSignedIn: false,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims: null,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (treatPendingAsSignedOut && sessionStatus === 'pending') {\n return {\n actor: null,\n getToken,\n has: () => false,\n isLoaded: true,\n isSignedIn: false,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims: null,\n sessionId: null,\n signOut,\n userId: null,\n } as const;\n }\n\n if (!!sessionId && !!sessionClaims && !!userId && !!orgId && !!orgRole) {\n return {\n actor: actor || null,\n getToken,\n has,\n isLoaded: true,\n isSignedIn: true,\n orgId,\n orgRole,\n orgSlug: orgSlug || null,\n sessionClaims,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n\n if (!!sessionId && !!sessionClaims && !!userId && !orgId) {\n return {\n actor: actor || null,\n getToken,\n has,\n isLoaded: true,\n isSignedIn: true,\n orgId: null,\n orgRole: null,\n orgSlug: null,\n sessionClaims,\n sessionId,\n signOut,\n userId,\n } as const;\n }\n};\n\nexport { createCheckAuthorization, resolveAuthState, splitByScope, validateReverificationConfig };\n"],"mappings":";AA4CA,MAAMA,mBAAkC;CACtC,YAAY;EACV,cAAc;EACd,OAAO;EACR;CACD,QAAQ;EACN,cAAc;EACd,OAAO;EACR;CACD,UAAU;EACR,cAAc;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A,WAAW;EACX,UAAU;EACV,YAAY;EACZ,OAAO;EACP,SAAS;EACT,SAAS;EACT,eAAe;EACf;EACA;EACA;EACD;AAGH,KAAI,cAAc,QAAQ,WAAW,KACnC,QAAO;EACL,OAAO;EACP;EACA,WAAW;EACX,UAAU;EACV,YAAY;EACZ,OAAO;EACP,SAAS;EACT,SAAS;EACT,eAAe;EACf;EACA;EACA;EACD;AAGH,KAAI,2BAA2B,kBAAkB,UAC/C,QAAO;EACL,OAAO;EACP;EACA,WAAW;EACX,UAAU;EACV,YAAY;EACZ,OAAO;EACP,SAAS;EACT,SAAS;EACT,eAAe;EACf,WAAW;EACX;EACA,QAAQ;EACT;AAGH,KAAI,CAAC,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAC7D,QAAO;EACL,OAAO,SAAS;EAChB;EACA;EACA,UAAU;EACV,YAAY;EACZ;EACA;EACA,SAAS,WAAW;EACpB;EACA;EACA;EACA;EACD;AAGH,KAAI,CAAC,CAAC,aAAa,CAAC,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,MACjD,QAAO;EACL,OAAO,SAAS;EAChB;EACA;EACA,UAAU;EACV,YAAY;EACZ,OAAO;EACP,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization-errors-B7aH39AU.js","names":[],"sources":["../../src/authorization-errors.ts"],"sourcesContent":["import type { ReverificationConfig } from './types';\n\ntype ClerkError<T> = {\n clerk_error: T;\n};\n\nconst REVERIFICATION_REASON = 'reverification-error';\n\ntype ReverificationError<M extends { metadata?: any } = { metadata: unknown }> = ClerkError<\n {\n type: 'forbidden';\n reason: typeof REVERIFICATION_REASON;\n } & M\n>;\n\nconst reverificationError = <MC extends ReverificationConfig>(\n missingConfig?: MC,\n): ReverificationError<{\n metadata?: {\n reverification?: MC;\n };\n}> => ({\n clerk_error: {\n type: 'forbidden',\n reason: REVERIFICATION_REASON,\n metadata: {\n reverification: missingConfig,\n },\n },\n});\n\nconst reverificationErrorResponse = (...args: Parameters<typeof reverificationError>) =>\n new Response(JSON.stringify(reverificationError(...args)), {\n status: 403,\n });\n\nconst isReverificationHint = (result: any): result is ReturnType<typeof reverificationError> => {\n return (\n result &&\n typeof result === 'object' &&\n 'clerk_error' in result &&\n result.clerk_error?.type === 'forbidden' &&\n result.clerk_error?.reason === REVERIFICATION_REASON\n );\n};\n\nexport { isReverificationHint, reverificationError, reverificationErrorResponse };\n"],"mappings":";;AAMA,MAAM,wBAAwB;AAS9B,MAAM,uBACJ,mBAKK,EACL,aAAa;CACX,MAAM;CACN,QAAQ;CACR,UAAU,EACR,gBAAgB,eACjB;CACF,EACF;AAED,MAAM,+BAA+B,GAAG,SACtC,IAAI,SAAS,KAAK,UAAU,oBAAoB,GAAG,KAAK,CAAC,EAAE,EACzD,QAAQ,KACT,CAAC;AAEJ,MAAM,wBAAwB,WAAkE;AAC9F,QACE,UACA,OAAO,WAAW,YAClB,iBAAiB,UACjB,OAAO,aAAa,SAAS,eAC7B,OAAO,aAAa,WAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization-errors-CBHAr6Ld.mjs","names":[],"sources":["../../src/authorization-errors.ts"],"sourcesContent":["import type { ReverificationConfig } from './types';\n\ntype ClerkError<T> = {\n clerk_error: T;\n};\n\nconst REVERIFICATION_REASON = 'reverification-error';\n\ntype ReverificationError<M extends { metadata?: any } = { metadata: unknown }> = ClerkError<\n {\n type: 'forbidden';\n reason: typeof REVERIFICATION_REASON;\n } & M\n>;\n\nconst reverificationError = <MC extends ReverificationConfig>(\n missingConfig?: MC,\n): ReverificationError<{\n metadata?: {\n reverification?: MC;\n };\n}> => ({\n clerk_error: {\n type: 'forbidden',\n reason: REVERIFICATION_REASON,\n metadata: {\n reverification: missingConfig,\n },\n },\n});\n\nconst reverificationErrorResponse = (...args: Parameters<typeof reverificationError>) =>\n new Response(JSON.stringify(reverificationError(...args)), {\n status: 403,\n });\n\nconst isReverificationHint = (result: any): result is ReturnType<typeof reverificationError> => {\n return (\n result &&\n typeof result === 'object' &&\n 'clerk_error' in result &&\n result.clerk_error?.type === 'forbidden' &&\n result.clerk_error?.reason === REVERIFICATION_REASON\n );\n};\n\nexport { isReverificationHint, reverificationError, reverificationErrorResponse };\n"],"mappings":";AAMA,MAAM,wBAAwB;AAS9B,MAAM,uBACJ,mBAKK,EACL,aAAa;CACX,MAAM;CACN,QAAQ;CACR,UAAU,EACR,gBAAgB,eACjB;CACF,EACF;AAED,MAAM,+BAA+B,GAAG,SACtC,IAAI,SAAS,KAAK,UAAU,oBAAoB,GAAG,KAAK,CAAC,EAAE,EACzD,QAAQ,KACT,CAAC;AAEJ,MAAM,wBAAwB,WAAkE;AAC9F,QACE,UACA,OAAO,WAAW,YAClB,iBAAiB,UACjB,OAAO,aAAa,SAAS,eAC7B,OAAO,aAAa,WAAW"}
@@ -1,26 +0,0 @@
1
- import { Is as ReverificationConfig } from "./index-Cc98l5ga.mjs";
2
- import "./moduleManager-BsmFyRrH.mjs";
3
-
4
- //#region src/authorization-errors.d.ts
5
- type ClerkError<T> = {
6
- clerk_error: T;
7
- };
8
- declare const REVERIFICATION_REASON = "reverification-error";
9
- type ReverificationError<M extends {
10
- metadata?: any;
11
- } = {
12
- metadata: unknown;
13
- }> = ClerkError<{
14
- type: 'forbidden';
15
- reason: typeof REVERIFICATION_REASON;
16
- } & M>;
17
- declare const reverificationError: <MC extends ReverificationConfig>(missingConfig?: MC) => ReverificationError<{
18
- metadata?: {
19
- reverification?: MC;
20
- };
21
- }>;
22
- declare const reverificationErrorResponse: (...args: Parameters<typeof reverificationError>) => Response;
23
- declare const isReverificationHint: (result: any) => result is ReturnType<typeof reverificationError>;
24
- //#endregion
25
- export { isReverificationHint, reverificationError, reverificationErrorResponse };
26
- //# sourceMappingURL=authorization-errors.d.mts.map