@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.
- package/dist/process-manager.d.ts +1 -1
- package/dist/process-manager.js +111 -38
- package/dist/routes/terminal-routes.js +7 -0
- package/dist/routes/websocket-routes.js +6 -0
- package/dist/ui/404/index.html +1 -1
- package/dist/ui/404.html +1 -1
- package/dist/ui/__next.__PAGE__.txt +2 -2
- package/dist/ui/__next._full.txt +2 -2
- package/dist/ui/__next._head.txt +1 -1
- package/dist/ui/__next._index.txt +1 -1
- package/dist/ui/__next._tree.txt +1 -1
- package/dist/ui/_next/static/chunks/{d272cd438400a22c.js → 869e15bfcbb5dbd1.js} +1 -1
- package/dist/ui/_not-found/__next._full.txt +1 -1
- package/dist/ui/_not-found/__next._head.txt +1 -1
- package/dist/ui/_not-found/__next._index.txt +1 -1
- package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/ui/_not-found/__next._not-found.txt +1 -1
- package/dist/ui/_not-found/__next._tree.txt +1 -1
- package/dist/ui/_not-found/index.html +1 -1
- package/dist/ui/_not-found/index.txt +1 -1
- package/dist/ui/index.html +1 -1
- package/dist/ui/index.txt +2 -2
- package/node_modules/node-pty/lib/conpty_console_list_agent.js +10 -1
- package/node_modules/node-pty/lib/unixTerminal.js +6 -3
- package/node_modules/node-pty/lib/utils.js +1 -1
- package/node_modules/node-pty/lib/windowsPtyAgent.js +62 -95
- package/node_modules/node-pty/lib/windowsTerminal.js +4 -2
- package/node_modules/node-pty/package.json +6 -5
- package/node_modules/node-pty/prebuilds/linux-x64/pty.node +0 -0
- package/package.json +2 -2
- package/node_modules/@ai-sdk/deepseek/dist/index.d.mts +0 -68
- package/node_modules/@ai-sdk/deepseek/dist/index.d.ts +0 -68
- package/node_modules/@ai-sdk/deepseek/dist/index.js.map +0 -1
- package/node_modules/@ai-sdk/deepseek/dist/index.mjs.map +0 -1
- package/node_modules/@ai-sdk/gateway/dist/index.d.mts +0 -713
- package/node_modules/@ai-sdk/gateway/dist/index.d.ts +0 -713
- package/node_modules/@ai-sdk/gateway/dist/index.js.map +0 -1
- package/node_modules/@ai-sdk/gateway/dist/index.mjs.map +0 -1
- package/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -4030
- package/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -4030
- package/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
- package/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
- package/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -1433
- package/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -1433
- package/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
- package/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts +0 -76
- package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts +0 -7
- package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts +0 -11
- package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts +0 -47
- package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts +0 -47
- package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts +0 -16
- package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts +0 -29
- package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts +0 -47
- package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts +0 -15
- package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts +0 -16
- package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts +0 -46
- package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts +0 -20
- package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts +0 -62
- package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts +0 -6
- package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts +0 -70
- package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts +0 -50
- package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts +0 -6
- package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts +0 -50
- package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts +0 -87
- package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts +0 -81
- package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts +0 -49
- package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts +0 -200
- package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts +0 -22
- package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts +0 -11
- package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts +0 -14
- package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts +0 -69
- package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts +0 -52
- package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts +0 -12
- package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts +0 -6
- package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts +0 -178
- package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts +0 -61
- package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts +0 -8
- package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts +0 -33
- package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts +0 -2
- package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/factory.d.ts +0 -51
- package/node_modules/@clerk/backend/dist/api/factory.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/index.d.ts +0 -3
- package/node_modules/@clerk/backend/dist/api/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/request.d.ts +0 -76
- package/node_modules/@clerk/backend/dist/api/request.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts +0 -137
- package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts +0 -10
- package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts +0 -15
- package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts +0 -42
- package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts +0 -66
- package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts +0 -83
- package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts +0 -9
- package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts +0 -141
- package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts +0 -99
- package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts +0 -167
- package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts +0 -7
- package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts +0 -10
- package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts +0 -26
- package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts +0 -15
- package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts +0 -17
- package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts +0 -47
- package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts +0 -225
- package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts +0 -89
- package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts +0 -42
- package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts +0 -134
- package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts +0 -51
- package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts +0 -9
- package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts +0 -23
- package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts +0 -25
- package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts +0 -9
- package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts +0 -11
- package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts +0 -11
- package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts +0 -76
- package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts +0 -971
- package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts +0 -15
- package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts +0 -31
- package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts +0 -17
- package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts +0 -10
- package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts +0 -169
- package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts +0 -83
- package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts +0 -115
- package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts +0 -18
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts +0 -116
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts +0 -140
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts +0 -17
- package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts +0 -63
- package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts +0 -47
- package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts +0 -215
- package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts +0 -176
- package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts +0 -13
- package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts +0 -44
- package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts +0 -8
- package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts +0 -7
- package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/User.d.ts +0 -296
- package/node_modules/@clerk/backend/dist/api/resources/User.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts +0 -90
- package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts +0 -67
- package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts +0 -36
- package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts +0 -32
- package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/api/resources/index.d.ts +0 -57
- package/node_modules/@clerk/backend/dist/api/resources/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-7KLH7JRZ.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-I4B6KCGC.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-P263NW7Z.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-QR37SKMP.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-TOROEX6P.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/chunk-YBVFDYDR.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/constants.d.ts +0 -91
- package/node_modules/@clerk/backend/dist/constants.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/createRedirect.d.ts +0 -25
- package/node_modules/@clerk/backend/dist/createRedirect.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/errors.d.ts +0 -67
- package/node_modules/@clerk/backend/dist/errors.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/errors.js.map +0 -1
- package/node_modules/@clerk/backend/dist/errors.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/fixtures/index.d.ts +0 -105
- package/node_modules/@clerk/backend/dist/fixtures/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts +0 -72
- package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/index.d.ts +0 -49
- package/node_modules/@clerk/backend/dist/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/index.js.map +0 -1
- package/node_modules/@clerk/backend/dist/index.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/internal.d.ts +0 -20
- package/node_modules/@clerk/backend/dist/internal.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/internal.js.map +0 -1
- package/node_modules/@clerk/backend/dist/internal.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts +0 -3
- package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts +0 -10
- package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts +0 -2
- package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/index.d.ts +0 -7
- package/node_modules/@clerk/backend/dist/jwt/index.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/index.js.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/index.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts +0 -4
- package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts +0 -20
- package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/types.d.ts +0 -18
- package/node_modules/@clerk/backend/dist/jwt/types.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts +0 -38
- package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts +0 -19
- package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/mock-server.d.ts +0 -4
- package/node_modules/@clerk/backend/dist/mock-server.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/proxy.d.ts +0 -72
- package/node_modules/@clerk/backend/dist/proxy.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/proxy.js.map +0 -1
- package/node_modules/@clerk/backend/dist/proxy.mjs.map +0 -1
- package/node_modules/@clerk/backend/dist/runtime.d.ts +0 -26
- package/node_modules/@clerk/backend/dist/runtime.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts +0 -193
- package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts +0 -120
- package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts +0 -78
- package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts +0 -29
- package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts +0 -18
- package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts +0 -3
- package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/factory.d.ts +0 -29
- package/node_modules/@clerk/backend/dist/tokens/factory.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts +0 -64
- package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/keys.d.ts +0 -54
- package/node_modules/@clerk/backend/dist/tokens/keys.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/machine.d.ts +0 -85
- package/node_modules/@clerk/backend/dist/tokens/machine.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts +0 -11
- package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/request.d.ts +0 -60
- package/node_modules/@clerk/backend/dist/tokens/request.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts +0 -19
- package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/types.d.ts +0 -253
- package/node_modules/@clerk/backend/dist/tokens/types.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/tokens/verify.d.ts +0 -109
- package/node_modules/@clerk/backend/dist/tokens/verify.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts +0 -22
- package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts +0 -2
- package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts +0 -3
- package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/path.d.ts +0 -4
- package/node_modules/@clerk/backend/dist/util/path.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts +0 -26
- package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/util/shared.d.ts +0 -7
- package/node_modules/@clerk/backend/dist/util/shared.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/webhooks.d.ts +0 -50
- package/node_modules/@clerk/backend/dist/webhooks.d.ts.map +0 -1
- package/node_modules/@clerk/backend/dist/webhooks.js.map +0 -1
- package/node_modules/@clerk/backend/dist/webhooks.mjs.map +0 -1
- package/node_modules/@clerk/fastify/dist/chunk-RY4T2JMQ.mjs.map +0 -1
- package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.mts +0 -25
- package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.ts +0 -25
- package/node_modules/@clerk/fastify/dist/index.d.mts +0 -16
- package/node_modules/@clerk/fastify/dist/index.d.ts +0 -16
- package/node_modules/@clerk/fastify/dist/index.js.map +0 -1
- package/node_modules/@clerk/fastify/dist/index.mjs.map +0 -1
- package/node_modules/@clerk/fastify/dist/types.d.mts +0 -4
- package/node_modules/@clerk/fastify/dist/types.d.ts +0 -4
- package/node_modules/@clerk/fastify/dist/types.js.map +0 -1
- package/node_modules/@clerk/fastify/dist/types.mjs.map +0 -1
- package/node_modules/@clerk/fastify/dist/webhooks.d.mts +0 -19
- package/node_modules/@clerk/fastify/dist/webhooks.d.ts +0 -19
- package/node_modules/@clerk/fastify/dist/webhooks.js.map +0 -1
- package/node_modules/@clerk/fastify/dist/webhooks.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-Du_JQmnH.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-Un7v7f6J.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors-B7aH39AU.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors-CBHAr6Ld.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts +0 -26
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts +0 -26
- package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts +0 -72
- package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts +0 -72
- package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/browser-CMFCxUv7.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/browser-CaHqvEp1.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/browser.d.mts +0 -35
- package/node_modules/@clerk/shared/dist/runtime/browser.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/browser.d.ts +0 -35
- package/node_modules/@clerk/shared/dist/runtime/browser.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts +0 -22
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts +0 -22
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-CaS4sM5w.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-DqAmLuLY.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/color.d.mts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/color.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/color.d.ts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/color.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/color.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/color.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/complexity-DEun2UD2.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/complexity-DydNJOmy.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants-BUzkV8jh.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants-Bta24VLk.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants-BulbbNR9.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants-WYhx_umW.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants.d.mts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/constants.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/constants.d.ts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/constants.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts +0 -30
- package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts +0 -30
- package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/cookie.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/cookie.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-Bq0Rf2GM.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-CYCAgyvC.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/date.d.mts +0 -37
- package/node_modules/@clerk/shared/dist/runtime/date.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/date.d.ts +0 -37
- package/node_modules/@clerk/shared/dist/runtime/date.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/date.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/date.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deprecated--jK9xTNh.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deprecated-841w0zq7.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts +0 -40
- package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts +0 -40
- package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deriveState-CQUgOdaO.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deriveState-zgq99aY1.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts +0 -28
- package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts +0 -28
- package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts +0 -13
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts +0 -13
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/devBrowser.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/dom/index.d.mts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/dom/index.d.ts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.mts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.ts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/encoders-CAjYroSe.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/encoders-C_EA3--l.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/error-D-ayZ5nL.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/error-kcck_bbZ.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/error.d.mts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/error.d.ts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/errors-FAXDzRsM.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/errors-oOcNTWU9.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/esm-D9kK-xzr.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/esm-DGPYZuZb.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/eventBus-TFTcHo0F.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/eventBus-mLhN9dkg.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts +0 -117
- package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts +0 -117
- package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/file.d.mts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/file.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/file.d.ts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/file.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/file.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/file.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts +0 -46
- package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts +0 -46
- package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getToken.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/getToken.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/globs-D0Kpu4g1.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/globs-u_gXJPLt.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/globs.d.mts +0 -7
- package/node_modules/@clerk/shared/dist/runtime/globs.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/globs.d.ts +0 -7
- package/node_modules/@clerk/shared/dist/runtime/globs.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts +0 -7
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts +0 -7
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BmJC8Cue.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-iAIjw-kJ.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/hex-txii11Pj.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/hex-zF8OyMcG.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts +0 -10885
- package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts +0 -10885
- package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index.d.mts +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index.d.ts +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/index.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-BqNbQ8Of.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-Cp_aXKsI.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-Cbd4CVu9.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-DRQuwtHF.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/instance-BmZr0cdE.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/instance-C1LlVxIp.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +0 -31
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +0 -31
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts +0 -54
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts +0 -54
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts +0 -113
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts +0 -113
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts +0 -5
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts +0 -5
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts +0 -13
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts +0 -13
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts +0 -10
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts +0 -10
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts +0 -61
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts +0 -61
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +0 -11
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts +0 -20
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts +0 -20
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts +0 -6
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts +0 -6
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts +0 -36
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts +0 -36
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts +0 -31
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts +0 -31
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.mts +0 -4
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.ts +0 -4
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts +0 -25
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts +0 -25
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts +0 -32
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts +0 -32
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-CoF80qYz.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-Hkpnx2p8.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts +0 -9
- package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-DWmLcIHi.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-_pSA92Q9.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts +0 -5
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts +0 -5
- package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts +0 -23
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts +0 -271
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts +0 -271
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keyless/index.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keys-BI9hmfja.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keys-DuxzP8MU.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keys.d.mts +0 -103
- package/node_modules/@clerk/shared/dist/runtime/keys.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/keys.d.ts +0 -103
- package/node_modules/@clerk/shared/dist/runtime/keys.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts +0 -88
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts +0 -88
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadScript-BnB9d_IW.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadScript-UG_epen4.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/logger-BOte4sQb.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/logger-DISzhF9M.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/logger.d.mts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/logger.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/logger.d.ts +0 -12
- package/node_modules/@clerk/shared/dist/runtime/logger.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts +0 -21
- package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.mts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.ts +0 -2
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-DFm5qdPh.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-Dkdkho_6.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts +0 -34
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts +0 -34
- package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/noop-B7RzLU-c.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/noop-CVg8oVJr.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts +0 -19
- package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/oauth.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/oauth.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/object-DYaB_9gA.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/object-DklYlVP-.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/object.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/object.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/object.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/object.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/organization-BzM6mhUv.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/organization-Cy_ag_4B.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/organization.d.mts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/organization.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/organization.d.ts +0 -15
- package/node_modules/@clerk/shared/dist/runtime/organization.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/path-BLD6zl1u.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/path-ci3QmWY8.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathMatcher.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-7eww5BY6.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-Do-462DY.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts +0 -85
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts +0 -85
- package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/poller.d.mts +0 -20
- package/node_modules/@clerk/shared/dist/runtime/poller.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/poller.d.ts +0 -20
- package/node_modules/@clerk/shared/dist/runtime/poller.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/poller.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/poller.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/proxy-BcfViKjn.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/proxy-DahrnOq8.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts +0 -24
- package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts +0 -24
- package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/queryParams-DSUymAGT.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/queryParams-Dlt0oVDg.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/querystring-BFj_iDi0.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/querystring-pXtwII0l.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts +0 -1647
- package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts +0 -1647
- package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/react/index.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/react/index.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/retry-DGCmqlcR.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/retry-DqRIhHV5.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/retry.d.mts +0 -60
- package/node_modules/@clerk/shared/dist/runtime/retry.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/retry.d.ts +0 -60
- package/node_modules/@clerk/shared/dist/runtime/retry.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/router.d.mts +0 -100
- package/node_modules/@clerk/shared/dist/runtime/router.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/router.d.ts +0 -100
- package/node_modules/@clerk/shared/dist/runtime/router.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/router.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/router.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-D1yr0yUs.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-DJJWo5AR.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts +0 -18
- package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/safeImport.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/safeImport.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/saml.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/saml.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/saml.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/saml.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/saml.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/saml.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/strength-DMrZQDoO.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/strength-DPtAse7d.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/telemetry--P0a0tSk.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/telemetry-DE2JFEBf.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts +0 -143
- package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts +0 -143
- package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/types/index.d.mts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/types/index.d.ts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/ui/index.d.mts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/ui/index.d.ts +0 -3
- package/node_modules/@clerk/shared/dist/runtime/underscore-BX6Ucmg5.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/underscore-ClYSgvuy.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts +0 -63
- package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts +0 -63
- package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-C6gPMFx5.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts +0 -144
- package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-CoXV4i87.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-DaPDWryr.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts +0 -144
- package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url-sAcxbiir.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url.d.mts +0 -78
- package/node_modules/@clerk/shared/dist/runtime/url.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/url.d.ts +0 -78
- package/node_modules/@clerk/shared/dist/runtime/url.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts +0 -65
- package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts +0 -65
- package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/utils-TXJdVJx7.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/utils-Y3tB5LFT.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts +0 -58
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts +0 -58
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionCheck.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionSelector-BSa0YYBu.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionSelector-CoS6g9-B.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-CB9iynCD.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-DGxKWlwM.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/web3.d.mts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/web3.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/web3.d.ts +0 -8
- package/node_modules/@clerk/shared/dist/runtime/web3.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/web3.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/web3.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts +0 -16
- package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts +0 -16
- package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/webauthn.js.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/webauthn.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts +0 -17
- package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/workerTimers-CDy8bBJS.mjs.map +0 -1
- package/node_modules/@clerk/shared/dist/runtime/workerTimers-D-HZtmjt.js.map +0 -1
- package/node_modules/@clerk/shared/dist/types/index.d.mts +0 -10584
- package/node_modules/@clerk/shared/dist/types/index.d.mts.map +0 -1
- package/node_modules/@clerk/shared/dist/types/index.d.ts +0 -10584
- package/node_modules/@clerk/shared/dist/types/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +0 -4
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +0 -34
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +0 -6
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +0 -7
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +0 -4
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +0 -34
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +0 -6
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +0 -41
- package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +0 -7
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +0 -5
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +0 -2
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +0 -7
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +0 -1
- package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.mts +0 -239
- package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.ts +0 -239
- package/node_modules/@openrouter/ai-sdk-provider/dist/index.js.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.mts +0 -156
- package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.ts +0 -156
- package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.js.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.mjs.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -1252
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -1252
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -352
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -352
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
- package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
- package/node_modules/@standard-schema/spec/dist/index.d.cts +0 -119
- package/node_modules/@standard-schema/spec/dist/index.d.ts +0 -119
- package/node_modules/@stricli/core/dist/index.d.cts +0 -1443
- package/node_modules/@stricli/core/dist/index.d.ts +0 -1443
- package/node_modules/@vercel/oidc/dist/auth-config.d.ts +0 -30
- package/node_modules/@vercel/oidc/dist/get-context.d.ts +0 -6
- package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.d.ts +0 -49
- package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.test.d.ts +0 -1
- package/node_modules/@vercel/oidc/dist/index-browser.d.ts +0 -3
- package/node_modules/@vercel/oidc/dist/index-browser.test.d.ts +0 -1
- package/node_modules/@vercel/oidc/dist/index.d.ts +0 -2
- package/node_modules/@vercel/oidc/dist/oauth.d.ts +0 -17
- package/node_modules/@vercel/oidc/dist/token-error.d.ts +0 -5
- package/node_modules/@vercel/oidc/dist/token-io.d.ts +0 -2
- package/node_modules/@vercel/oidc/dist/token-util.d.ts +0 -21
- package/node_modules/@vercel/oidc/dist/token-util.test.d.ts +0 -1
- package/node_modules/@vercel/oidc/dist/token.d.ts +0 -1
- package/node_modules/@vercel/oidc/dist/token.test.d.ts +0 -1
- package/node_modules/agent-base/dist/helpers.d.ts +0 -15
- package/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
- package/node_modules/agent-base/dist/helpers.js.map +0 -1
- package/node_modules/agent-base/dist/index.d.ts +0 -41
- package/node_modules/agent-base/dist/index.d.ts.map +0 -1
- package/node_modules/agent-base/dist/index.js.map +0 -1
- package/node_modules/ai/dist/index.d.mts +0 -6403
- package/node_modules/ai/dist/index.d.ts +0 -6403
- package/node_modules/ai/dist/index.js.map +0 -1
- package/node_modules/ai/dist/index.mjs.map +0 -1
- package/node_modules/ai/dist/internal/index.d.mts +0 -314
- package/node_modules/ai/dist/internal/index.d.ts +0 -314
- package/node_modules/ai/dist/internal/index.js.map +0 -1
- package/node_modules/ai/dist/internal/index.mjs.map +0 -1
- package/node_modules/ajv/dist/2019.d.ts +0 -19
- package/node_modules/ajv/dist/2019.js.map +0 -1
- package/node_modules/ajv/dist/2020.d.ts +0 -19
- package/node_modules/ajv/dist/2020.js.map +0 -1
- package/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/node_modules/ajv/dist/ajv.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
- package/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/node_modules/ajv/dist/core.d.ts +0 -174
- package/node_modules/ajv/dist/core.js.map +0 -1
- package/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/node_modules/ajv/dist/jtd.js.map +0 -1
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
- package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
- package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
- package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/node_modules/ajv/dist/standalone/index.js.map +0 -1
- package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
- package/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/node_modules/ajv/dist/types/index.js.map +0 -1
- package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/node_modules/ajv-formats/dist/formats.d.ts +0 -9
- package/node_modules/ajv-formats/dist/formats.js.map +0 -1
- package/node_modules/ajv-formats/dist/index.d.ts +0 -15
- package/node_modules/ajv-formats/dist/index.js.map +0 -1
- package/node_modules/ajv-formats/dist/limit.d.ts +0 -10
- package/node_modules/ajv-formats/dist/limit.js.map +0 -1
- package/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
- package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
- package/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
- package/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
- package/node_modules/balanced-match/dist/esm/index.js.map +0 -1
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -6
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts +0 -6
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
- package/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
- package/node_modules/cookie/dist/index.d.ts +0 -148
- package/node_modules/cookie/dist/index.js.map +0 -1
- package/node_modules/eventsource-parser/dist/index.cjs.map +0 -1
- package/node_modules/eventsource-parser/dist/index.d.cts +0 -144
- package/node_modules/eventsource-parser/dist/index.d.ts +0 -144
- package/node_modules/eventsource-parser/dist/index.js.map +0 -1
- package/node_modules/eventsource-parser/dist/stream.cjs.map +0 -1
- package/node_modules/eventsource-parser/dist/stream.d.cts +0 -118
- package/node_modules/eventsource-parser/dist/stream.d.ts +0 -118
- package/node_modules/eventsource-parser/dist/stream.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
- package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
- package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
- package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
- package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
- package/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- package/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- package/node_modules/glob/dist/commonjs/index.d.ts +0 -97
- package/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/index.js.map +0 -1
- package/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- package/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- package/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- package/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- package/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- package/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- package/node_modules/glob/dist/esm/glob.d.ts +0 -388
- package/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/glob.js.map +0 -1
- package/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- package/node_modules/glob/dist/esm/ignore.d.ts +0 -24
- package/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/ignore.js.map +0 -1
- package/node_modules/glob/dist/esm/index.d.ts +0 -97
- package/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/index.js.map +0 -1
- package/node_modules/glob/dist/esm/pattern.d.ts +0 -76
- package/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/pattern.js.map +0 -1
- package/node_modules/glob/dist/esm/processor.d.ts +0 -59
- package/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/processor.js.map +0 -1
- package/node_modules/glob/dist/esm/walker.d.ts +0 -97
- package/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- package/node_modules/glob/dist/esm/walker.js.map +0 -1
- package/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/ip-address/dist/address-error.d.ts +0 -5
- package/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
- package/node_modules/ip-address/dist/address-error.js.map +0 -1
- package/node_modules/ip-address/dist/common.d.ts +0 -15
- package/node_modules/ip-address/dist/common.d.ts.map +0 -1
- package/node_modules/ip-address/dist/common.js.map +0 -1
- package/node_modules/ip-address/dist/ip-address.d.ts +0 -8
- package/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ip-address.js.map +0 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +0 -209
- package/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ipv4.js.map +0 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +0 -428
- package/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
- package/node_modules/ip-address/dist/ipv6.js.map +0 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts +0 -5
- package/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +0 -45
- package/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
- package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
- package/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -6
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -323
- package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
- package/node_modules/jackspeak/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/jackspeak/dist/esm/index.d.ts +0 -323
- package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
- package/node_modules/jackspeak/dist/esm/index.min.js.map +0 -7
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1323
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
- package/node_modules/lru-cache/dist/esm/index.d.ts +0 -1323
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
- package/node_modules/lru-cache/dist/esm/index.js.map +0 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
- package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
- package/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/escape.js.map +0 -1
- package/node_modules/minimatch/dist/esm/index.d.ts +0 -174
- package/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/index.js.map +0 -1
- package/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
- package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
- package/node_modules/minipass/dist/esm/index.d.ts +0 -545
- package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
- package/node_modules/minipass/dist/esm/index.js.map +0 -1
- package/node_modules/node-pty/build/Release/pty.node +0 -0
- package/node_modules/node-pty/build/binding.Makefile +0 -6
- package/node_modules/node-pty/build/pty.target.mk +0 -168
- package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
- package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1115
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
- package/node_modules/path-scurry/dist/esm/index.d.ts +0 -1115
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
- package/node_modules/path-scurry/dist/esm/index.js.map +0 -1
- package/node_modules/ret/dist/index.d.ts +0 -7
- package/node_modules/ret/dist/index.js.map +0 -1
- package/node_modules/ret/dist/reconstruct.d.ts +0 -2
- package/node_modules/ret/dist/reconstruct.js.map +0 -1
- package/node_modules/ret/dist/sets-lookup.d.ts +0 -5
- package/node_modules/ret/dist/sets-lookup.js.map +0 -1
- package/node_modules/ret/dist/sets.d.ts +0 -9
- package/node_modules/ret/dist/sets.js.map +0 -1
- package/node_modules/ret/dist/tokenizer.d.ts +0 -8
- package/node_modules/ret/dist/tokenizer.js.map +0 -1
- package/node_modules/ret/dist/types/index.d.ts +0 -3
- package/node_modules/ret/dist/types/index.js.map +0 -1
- package/node_modules/ret/dist/types/set-lookup.d.ts +0 -8
- package/node_modules/ret/dist/types/set-lookup.js.map +0 -1
- package/node_modules/ret/dist/types/tokens.d.ts +0 -41
- package/node_modules/ret/dist/types/tokens.js.map +0 -1
- package/node_modules/ret/dist/types/types.d.ts +0 -10
- package/node_modules/ret/dist/types/types.js.map +0 -1
- package/node_modules/ret/dist/util.d.ts +0 -18
- package/node_modules/ret/dist/util.js.map +0 -1
- package/node_modules/ret/dist/write-set-tokens.d.ts +0 -14
- package/node_modules/ret/dist/write-set-tokens.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/node_modules/socks-proxy-agent/dist/index.d.ts +0 -27
- package/node_modules/socks-proxy-agent/dist/index.d.ts.map +0 -1
- package/node_modules/socks-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/standardwebhooks/dist/index.d.ts +0 -24
- package/node_modules/standardwebhooks/dist/index.js.map +0 -1
- package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +0 -1
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +0 -1
- package/node_modules/std-env/dist/index.d.cts +0 -92
- package/node_modules/std-env/dist/index.d.mts +0 -92
- package/node_modules/std-env/dist/index.d.ts +0 -92
- /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → VUA3uJYddmpvYUPcharb_}/_buildManifest.js +0 -0
- /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → VUA3uJYddmpvYUPcharb_}/_clientMiddlewareManifest.json +0 -0
- /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,EA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BAAe,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,gCAAQ,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":["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,M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
|
|
@@ -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};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IAAI,MAAM,GAAG,EAAE,CAAC,EAAE,KAAK,KAAK,IAAI,YAAY;AAExE,QAAM,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,GAAG,QAAQ,MAAM,IAAI,EAAE;AAE1D,QAAM,UAAU,CAAC,QAAQ,OAAO,OAAO,EAAE,SAAS,IAAI,MAAM;AAE5D,SAAO,IAAI,QAAQ,IAAI,SAAS,GAAG;AAAA,IACjC,QAAQ,IAAI;AAAA,IACZ;AAAA,IACA,MAAM,UAAW,SAAS,MAAM,IAAI,GAAG,IAAuB;AAAA;AAAA,IAE9D,QAAQ,UAAU,SAAS;AAAA,EAC7B,CAAC;AACH;","names":[]}
|
|
@@ -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,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,0BAA0B,CAAC,QAAiC;AACvE,QAAM,UAAU,IAAI;AAAA,IAClB,OA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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;AAC/B,QAAI,kBAAkB;AACpB,YAAM,aAAa,IAAI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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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AAU;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-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;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,C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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
|