@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,271 +0,0 @@
|
|
|
1
|
-
//#region src/keyless/types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Represents an accountless application created in keyless mode.
|
|
4
|
-
*
|
|
5
|
-
* This interface matches the shape of `AccountlessApplication` from `@clerk/backend`.
|
|
6
|
-
* We define it here to avoid a circular dependency (shared cannot depend on backend).
|
|
7
|
-
* Framework packages that depend on both shared and backend can use either type
|
|
8
|
-
* interchangeably since they have the same structure.
|
|
9
|
-
*/
|
|
10
|
-
interface AccountlessApplication {
|
|
11
|
-
readonly publishableKey: string;
|
|
12
|
-
readonly secretKey: string;
|
|
13
|
-
readonly claimUrl: string;
|
|
14
|
-
readonly apiKeysUrl: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Public-facing keyless application data (without secret key).
|
|
18
|
-
*/
|
|
19
|
-
type PublicKeylessApplication = Omit<AccountlessApplication, 'secretKey'>;
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/keyless/devCache.d.ts
|
|
22
|
-
interface ClerkDevCache {
|
|
23
|
-
__cache: Map<string, {
|
|
24
|
-
expiresAt: number;
|
|
25
|
-
data?: unknown;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Log a message with throttling to prevent spam.
|
|
29
|
-
*/
|
|
30
|
-
log: (params: {
|
|
31
|
-
cacheKey: string;
|
|
32
|
-
msg: string;
|
|
33
|
-
}) => void;
|
|
34
|
-
/**
|
|
35
|
-
* Run an async callback with caching.
|
|
36
|
-
*/
|
|
37
|
-
run: <T>(callback: () => Promise<T>, options: {
|
|
38
|
-
cacheKey: string;
|
|
39
|
-
onSuccessStale?: number;
|
|
40
|
-
onErrorStale?: number;
|
|
41
|
-
}) => Promise<T | undefined>;
|
|
42
|
-
}
|
|
43
|
-
declare global {
|
|
44
|
-
var __clerk_internal_keyless_logger: ClerkDevCache | undefined;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Creates a development-only cache for keyless mode logging and API calls.
|
|
48
|
-
* This prevents console spam and duplicate API requests.
|
|
49
|
-
*
|
|
50
|
-
* @returns The cache instance or undefined in non-development environments
|
|
51
|
-
*/
|
|
52
|
-
declare function createClerkDevCache(): ClerkDevCache | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Creates the console message shown when running in keyless mode.
|
|
55
|
-
*
|
|
56
|
-
* @param keys - The keyless application keys
|
|
57
|
-
* @returns Formatted console message
|
|
58
|
-
*/
|
|
59
|
-
declare function createKeylessModeMessage(keys: AccountlessApplication | PublicKeylessApplication): string;
|
|
60
|
-
/**
|
|
61
|
-
* Creates the console message shown when keys have been claimed.
|
|
62
|
-
*
|
|
63
|
-
* @returns Formatted console message
|
|
64
|
-
*/
|
|
65
|
-
declare function createConfirmationMessage(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Shared singleton instance of the development cache.
|
|
68
|
-
*/
|
|
69
|
-
declare const clerkDevelopmentCache: ClerkDevCache | undefined;
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/keyless/service.d.ts
|
|
72
|
-
/**
|
|
73
|
-
* Storage adapter interface for keyless mode.
|
|
74
|
-
* Implementations can use file system, cookies, or other storage mechanisms.
|
|
75
|
-
*
|
|
76
|
-
* Implementations are responsible for their own concurrency handling
|
|
77
|
-
* (e.g., file locking for file-based storage).
|
|
78
|
-
*/
|
|
79
|
-
interface KeylessStorage {
|
|
80
|
-
/**
|
|
81
|
-
* Reads the stored keyless configuration.
|
|
82
|
-
*
|
|
83
|
-
* @returns The JSON string of the stored config, or empty string if not found.
|
|
84
|
-
*/
|
|
85
|
-
read(): string;
|
|
86
|
-
/**
|
|
87
|
-
* Writes the keyless configuration to storage.
|
|
88
|
-
*
|
|
89
|
-
* @param data - The JSON string to store.
|
|
90
|
-
*/
|
|
91
|
-
write(data: string): void;
|
|
92
|
-
/**
|
|
93
|
-
* Removes the keyless configuration from storage.
|
|
94
|
-
*/
|
|
95
|
-
remove(): void;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* API adapter for keyless mode operations.
|
|
99
|
-
* This abstraction allows the service to work without depending on @clerk/backend.
|
|
100
|
-
*/
|
|
101
|
-
interface KeylessAPI {
|
|
102
|
-
/**
|
|
103
|
-
* Creates a new accountless application.
|
|
104
|
-
*
|
|
105
|
-
* @param requestHeaders - Optional headers to include with the request.
|
|
106
|
-
* @returns The created AccountlessApplication or null if failed.
|
|
107
|
-
*/
|
|
108
|
-
createAccountlessApplication(requestHeaders?: Headers): Promise<AccountlessApplication | null>;
|
|
109
|
-
/**
|
|
110
|
-
* Notifies the backend that onboarding is complete (instance has been claimed).
|
|
111
|
-
*
|
|
112
|
-
* @param requestHeaders - Optional headers to include with the request.
|
|
113
|
-
* @returns The updated AccountlessApplication or null if failed.
|
|
114
|
-
*/
|
|
115
|
-
completeOnboarding(requestHeaders?: Headers): Promise<AccountlessApplication | null>;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Options for creating a keyless service.
|
|
119
|
-
*/
|
|
120
|
-
interface KeylessServiceOptions {
|
|
121
|
-
/**
|
|
122
|
-
* Storage adapter for reading/writing keyless configuration.
|
|
123
|
-
*/
|
|
124
|
-
storage: KeylessStorage;
|
|
125
|
-
/**
|
|
126
|
-
* API adapter for keyless operations (create application, complete onboarding).
|
|
127
|
-
*/
|
|
128
|
-
api: KeylessAPI;
|
|
129
|
-
/**
|
|
130
|
-
* Optional: Framework name for metadata (e.g., 'Next.js', 'TanStack Start').
|
|
131
|
-
*/
|
|
132
|
-
framework?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Optional: Framework version for metadata.
|
|
135
|
-
*/
|
|
136
|
-
frameworkVersion?: string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Result type for key resolution.
|
|
140
|
-
*/
|
|
141
|
-
interface KeylessResult$1 {
|
|
142
|
-
publishableKey: string | undefined;
|
|
143
|
-
secretKey: string | undefined;
|
|
144
|
-
claimUrl: string | undefined;
|
|
145
|
-
apiKeysUrl: string | undefined;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* The keyless service interface.
|
|
149
|
-
*/
|
|
150
|
-
interface KeylessService {
|
|
151
|
-
/**
|
|
152
|
-
* Gets existing keyless keys or creates new ones via the API.
|
|
153
|
-
*/
|
|
154
|
-
getOrCreateKeys: () => Promise<AccountlessApplication | null>;
|
|
155
|
-
/**
|
|
156
|
-
* Reads existing keyless keys without creating new ones.
|
|
157
|
-
*/
|
|
158
|
-
readKeys: () => AccountlessApplication | undefined;
|
|
159
|
-
/**
|
|
160
|
-
* Removes the keyless configuration.
|
|
161
|
-
*/
|
|
162
|
-
removeKeys: () => void;
|
|
163
|
-
/**
|
|
164
|
-
* Notifies the backend that the instance has been claimed/onboarded.
|
|
165
|
-
* This should be called once when the user claims their instance.
|
|
166
|
-
*/
|
|
167
|
-
completeOnboarding: () => Promise<AccountlessApplication | null>;
|
|
168
|
-
/**
|
|
169
|
-
* Logs a keyless mode message to the console (throttled to once per process).
|
|
170
|
-
*/
|
|
171
|
-
logKeylessMessage: (claimUrl: string) => void;
|
|
172
|
-
/**
|
|
173
|
-
* Resolves Clerk keys, falling back to keyless mode if configured keys are missing.
|
|
174
|
-
*
|
|
175
|
-
* @param configuredPublishableKey - The publishable key from options or environment
|
|
176
|
-
* @param configuredSecretKey - The secret key from options or environment
|
|
177
|
-
* @returns The resolved keys (either configured or from keyless mode)
|
|
178
|
-
*/
|
|
179
|
-
resolveKeysWithKeylessFallback: (configuredPublishableKey: string | undefined, configuredSecretKey: string | undefined) => Promise<KeylessResult$1>;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Creates a keyless service that handles accountless application creation and storage.
|
|
183
|
-
* This provides a simple API for frameworks to integrate keyless mode.
|
|
184
|
-
*
|
|
185
|
-
* @param options - Configuration for the service including storage and API adapters
|
|
186
|
-
* @returns A keyless service instance
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```ts
|
|
190
|
-
* import { createKeylessService } from '@clerk/shared/keyless';
|
|
191
|
-
*
|
|
192
|
-
* const keylessService = createKeylessService({
|
|
193
|
-
* storage: createFileStorage(),
|
|
194
|
-
* api: createKeylessAPI({ secretKey }),
|
|
195
|
-
* framework: 'TanStack Start',
|
|
196
|
-
* });
|
|
197
|
-
*
|
|
198
|
-
* const keys = await keylessService.getOrCreateKeys(request);
|
|
199
|
-
* if (keys) {
|
|
200
|
-
* console.log('Publishable Key:', keys.publishableKey);
|
|
201
|
-
* }
|
|
202
|
-
* ```
|
|
203
|
-
*/
|
|
204
|
-
declare function createKeylessService(options: KeylessServiceOptions): KeylessService;
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/keyless/nodeFileStorage.d.ts
|
|
207
|
-
interface NodeFileStorageOptions {
|
|
208
|
-
/**
|
|
209
|
-
* Function that returns the current working directory.
|
|
210
|
-
* Defaults to process.cwd().
|
|
211
|
-
*/
|
|
212
|
-
cwd?: () => string;
|
|
213
|
-
/**
|
|
214
|
-
* The framework name for the README message.
|
|
215
|
-
* @example '@clerk/nextjs'
|
|
216
|
-
*/
|
|
217
|
-
frameworkPackageName?: string;
|
|
218
|
-
}
|
|
219
|
-
interface FileSystemAdapter {
|
|
220
|
-
existsSync: (path: string) => boolean;
|
|
221
|
-
readFileSync: (path: string, options: {
|
|
222
|
-
encoding: BufferEncoding;
|
|
223
|
-
}) => string;
|
|
224
|
-
writeFileSync: (path: string, data: string, options: {
|
|
225
|
-
encoding: BufferEncoding;
|
|
226
|
-
mode?: number;
|
|
227
|
-
}) => void;
|
|
228
|
-
appendFileSync: (path: string, data: string) => void;
|
|
229
|
-
mkdirSync: (path: string, options: {
|
|
230
|
-
recursive: boolean;
|
|
231
|
-
}) => void;
|
|
232
|
-
rmSync: (path: string, options: {
|
|
233
|
-
force?: boolean;
|
|
234
|
-
recursive?: boolean;
|
|
235
|
-
}) => void;
|
|
236
|
-
}
|
|
237
|
-
interface PathAdapter {
|
|
238
|
-
join: (...paths: string[]) => string;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Creates a file-based storage adapter for keyless mode.
|
|
242
|
-
* This is used by Node.js-based frameworks (Next.js, TanStack Start, etc.)
|
|
243
|
-
* to persist keyless configuration to the file system.
|
|
244
|
-
*
|
|
245
|
-
* @param fs - Node.js fs module or compatible adapter
|
|
246
|
-
* @param path - Node.js path module or compatible adapter
|
|
247
|
-
* @param options - Configuration options
|
|
248
|
-
* @returns A KeylessStorage implementation
|
|
249
|
-
*/
|
|
250
|
-
declare function createNodeFileStorage(fs: FileSystemAdapter, path: PathAdapter, options?: NodeFileStorageOptions): KeylessStorage;
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/keyless/resolveKeysWithKeylessFallback.d.ts
|
|
253
|
-
interface KeylessResult {
|
|
254
|
-
publishableKey: string | undefined;
|
|
255
|
-
secretKey: string | undefined;
|
|
256
|
-
claimUrl: string | undefined;
|
|
257
|
-
apiKeysUrl: string | undefined;
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Resolves Clerk keys, falling back to keyless mode in development if configured keys are missing.
|
|
261
|
-
*
|
|
262
|
-
* @param configuredPublishableKey - The publishable key from options or environment
|
|
263
|
-
* @param configuredSecretKey - The secret key from options or environment
|
|
264
|
-
* @param keylessService - The keyless service instance (or null if unavailable)
|
|
265
|
-
* @param canUseKeyless - Whether keyless mode is enabled in the current environment
|
|
266
|
-
* @returns The resolved keys (either configured or from keyless mode)
|
|
267
|
-
*/
|
|
268
|
-
declare function resolveKeysWithKeylessFallback(configuredPublishableKey: string | undefined, configuredSecretKey: string | undefined, keylessService: KeylessService | null, canUseKeyless: boolean): Promise<KeylessResult>;
|
|
269
|
-
//#endregion
|
|
270
|
-
export { type AccountlessApplication, type ClerkDevCache, type FileSystemAdapter, type KeylessAPI, type KeylessResult, type KeylessService, type KeylessServiceOptions, type KeylessStorage, type NodeFileStorageOptions, type PathAdapter, type PublicKeylessApplication, clerkDevelopmentCache, createClerkDevCache, createConfirmationMessage, createKeylessModeMessage, createKeylessService, createNodeFileStorage, resolveKeysWithKeylessFallback };
|
|
271
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/keyless/types.ts","../../../src/keyless/devCache.ts","../../../src/keyless/service.ts","../../../src/keyless/nodeFileStorage.ts","../../../src/keyless/resolveKeysWithKeylessFallback.ts"],"sourcesContent":[],"mappings":";;AAQA;AAUA;;;;ACZA;;AAU4B,UDRX,sBAAA,CCQW;EAAR,SAAA,cAAA,EAAA,MAAA;EAML,SAAA,SAAA,EAAA,MAAA;EAAR,SAAA,QAAA,EAAA,MAAA;EAAO,SAAA,UAAA,EAAA,MAAA;AACb;;;;AAGmD,KDRxC,wBAAA,GAA2B,ICQa,CDRR,sBCQQ,EAAA,WAAA,CAAA;;;ADlBnC,UCFA,aAAA,CDEsB;EAU3B,OAAA,ECXD,GDWC,CAAA,MAAA,EAAA;;;;ECZK;;;EAUG,GAAA,EAAA,CAAA,MAAA,EAAA;IAML,QAAA,EAAA,MAAA;IAAR,GAAA,EAAA,MAAA;EAAO,CAAA,EAAA,GAAA,IAAA;EACb;;;EAGmD,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA,QAAA,EAAA,GAAA,GAVhC,OAUgC,CAVxB,CAUwB,CAAA,EAAA,OAAA,EAAA;IAAA,QAAA,EAAA,MAAA;IASpC,cAAA,CAAA,EAAA,MAAmB;IAyDnB,YAAA,CAAA,EAAA,MAAA;EASA,CAAA,EAAA,GA/ET,OA+ES,CA/ED,CA+EC,GAAA,SAAA,CAAyB;AAOzC;;uCAlFuC;;AChBvC;AAyBA;;;;;AAewD,iBDfxC,mBAAA,CAAA,CCewC,EDfjB,aCeiB,GAAA,SAAA;;;AAMxD;AAyBA;AAUA;;AAIyB,iBDHT,wBAAA,CCGS,IAAA,EDHsB,sBCGtB,GDH+C,wBCG/C,CAAA,EAAA,MAAA;;;;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AAA,GAAA,MAAA;EASpC,aAAA,EAAA,CAAA,IAAA,EAAmB,MAAA,EAAA,IAAA,EAAI,MAAA,EAAA,OAAa,EAAA;IAyDpC,QAAA,EEnEmD,cFmE3B;IASxB,IAAA,CAAA,EAAA,MAAA;EAOH,CAAA,EAAA,GAAA,IAAA;;;;EClGI,CAAA,EAAA,GAAA,IAAA;EAyBA,MAAA,EAAA,CAAA,IAAU,EAAA,MAAA,EAAA,OAAA,EAAA;IAOqB,KAAA,CAAA,EAAA,OAAA;IAAkB,SAAA,CAAA,EAAA,OAAA;EAAR,CAAA,EAAA,GAAA,IAAA;;AAQF,UCnBvC,WAAA,CDmBuC;EAAR,IAAA,EAAA,CAAA,GAAA,KAAA,EAAA,MAAA,EAAA,EAAA,GAAA,MAAA;;AAMhD;AAyBA;AAUA;;;;;;;;AAqCc,iBCnFE,qBAAA,CDmFF,EAAA,EClFR,iBDkFQ,EAAA,IAAA,ECjFN,WDiFM,EAAA,OAAA,CAAA,EChFH,sBDgFG,CAAA,EC/EX,cD+EW;;;AFxHG,UIJA,aAAA,CJIsB;EAU3B,cAAA,EAAA,MAAA,GAAA,SAAwB;;;;ACZpC;;;;;;;AAiBC;;;AAGmD,iBGN9B,8BAAA,CHM8B,wBAAA,EAAA,MAAA,GAAA,SAAA,EAAA,mBAAA,EAAA,MAAA,GAAA,SAAA,EAAA,cAAA,EGHlC,cHGkC,GAAA,IAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EGDjD,OHCiD,CGDzC,aHCyC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["isDevelopmentEnvironment","claimUrl: string | undefined","apiKeysUrl: string | undefined","keylessApp: AccountlessApplication | null","claimUrl: string | undefined","apiKeysUrl: string | undefined","keylessApp: AccountlessApplication | null"],"sources":["../../../src/keyless/devCache.ts","../../../src/keyless/nodeFileStorage.ts","../../../src/keyless/service.ts","../../../src/keyless/resolveKeysWithKeylessFallback.ts"],"sourcesContent":["import { isDevelopmentEnvironment } from '../utils/runtimeEnvironment';\nimport type { AccountlessApplication, PublicKeylessApplication } from './types';\n\n// 10 minutes in milliseconds\nconst THROTTLE_DURATION_MS = 10 * 60 * 1000;\n\nexport interface ClerkDevCache {\n __cache: Map<string, { expiresAt: number; data?: unknown }>;\n /**\n * Log a message with throttling to prevent spam.\n */\n log: (params: { cacheKey: string; msg: string }) => void;\n /**\n * Run an async callback with caching.\n */\n run: <T>(\n callback: () => Promise<T>,\n options: {\n cacheKey: string;\n onSuccessStale?: number;\n onErrorStale?: number;\n },\n ) => Promise<T | undefined>;\n}\n\ndeclare global {\n var __clerk_internal_keyless_logger: ClerkDevCache | undefined;\n}\n\n/**\n * Creates a development-only cache for keyless mode logging and API calls.\n * This prevents console spam and duplicate API requests.\n *\n * @returns The cache instance or undefined in non-development environments\n */\nexport function createClerkDevCache(): ClerkDevCache | undefined {\n if (!isDevelopmentEnvironment()) {\n return undefined;\n }\n\n if (!globalThis.__clerk_internal_keyless_logger) {\n globalThis.__clerk_internal_keyless_logger = {\n __cache: new Map<string, { expiresAt: number; data?: unknown }>(),\n\n log: function ({ cacheKey, msg }) {\n if (this.__cache.has(cacheKey) && Date.now() < (this.__cache.get(cacheKey)?.expiresAt || 0)) {\n return;\n }\n\n console.log(msg);\n\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + THROTTLE_DURATION_MS,\n });\n },\n\n run: async function (\n callback,\n { cacheKey, onSuccessStale = THROTTLE_DURATION_MS, onErrorStale = THROTTLE_DURATION_MS },\n ) {\n if (this.__cache.has(cacheKey) && Date.now() < (this.__cache.get(cacheKey)?.expiresAt || 0)) {\n return this.__cache.get(cacheKey)?.data as ReturnType<typeof callback>;\n }\n\n try {\n const result = await callback();\n\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + onSuccessStale,\n data: result,\n });\n return result;\n } catch (e) {\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + onErrorStale,\n });\n\n throw e;\n }\n },\n };\n }\n\n return globalThis.__clerk_internal_keyless_logger;\n}\n\n/**\n * Creates the console message shown when running in keyless mode.\n *\n * @param keys - The keyless application keys\n * @returns Formatted console message\n */\nexport function createKeylessModeMessage(keys: AccountlessApplication | PublicKeylessApplication): string {\n return `\\n\\x1b[35m\\n[Clerk]:\\x1b[0m You are running in keyless mode.\\nYou can \\x1b[35mclaim your keys\\x1b[0m by visiting ${keys.claimUrl}\\n`;\n}\n\n/**\n * Creates the console message shown when keys have been claimed.\n *\n * @returns Formatted console message\n */\nexport function createConfirmationMessage(): string {\n return `\\n\\x1b[35m\\n[Clerk]:\\x1b[0m Your application is running with your claimed keys.\\nYou can safely remove the \\x1b[35m.clerk/\\x1b[0m from your project.\\n`;\n}\n\n/**\n * Shared singleton instance of the development cache.\n */\nexport const clerkDevelopmentCache = createClerkDevCache();\n","import type { KeylessStorage } from './service';\n\nconst CLERK_HIDDEN = '.clerk';\nconst CLERK_LOCK = 'clerk.lock';\nconst TEMP_DIR_NAME = '.tmp';\nconst CONFIG_FILE = 'keyless.json';\nconst README_FILE = 'README.md';\n\nexport interface NodeFileStorageOptions {\n /**\n * Function that returns the current working directory.\n * Defaults to process.cwd().\n */\n cwd?: () => string;\n\n /**\n * The framework name for the README message.\n * @example '@clerk/nextjs'\n */\n frameworkPackageName?: string;\n}\n\nexport interface FileSystemAdapter {\n existsSync: (path: string) => boolean;\n readFileSync: (path: string, options: { encoding: BufferEncoding }) => string;\n writeFileSync: (path: string, data: string, options: { encoding: BufferEncoding; mode?: number }) => void;\n appendFileSync: (path: string, data: string) => void;\n mkdirSync: (path: string, options: { recursive: boolean }) => void;\n rmSync: (path: string, options: { force?: boolean; recursive?: boolean }) => void;\n}\n\nexport interface PathAdapter {\n join: (...paths: string[]) => string;\n}\n\n/**\n * Creates a file-based storage adapter for keyless mode.\n * This is used by Node.js-based frameworks (Next.js, TanStack Start, etc.)\n * to persist keyless configuration to the file system.\n *\n * @param fs - Node.js fs module or compatible adapter\n * @param path - Node.js path module or compatible adapter\n * @param options - Configuration options\n * @returns A KeylessStorage implementation\n */\nexport function createNodeFileStorage(\n fs: FileSystemAdapter,\n path: PathAdapter,\n options: NodeFileStorageOptions = {},\n): KeylessStorage {\n const { cwd = () => process.cwd(), frameworkPackageName = '@clerk/shared' } = options;\n\n let inMemoryLock = false;\n\n const getClerkDir = () => path.join(cwd(), CLERK_HIDDEN);\n const getTempDir = () => path.join(getClerkDir(), TEMP_DIR_NAME);\n const getConfigPath = () => path.join(getTempDir(), CONFIG_FILE);\n const getReadmePath = () => path.join(getTempDir(), README_FILE);\n const getLockPath = () => path.join(cwd(), CLERK_LOCK);\n\n const isLocked = (): boolean => inMemoryLock || fs.existsSync(getLockPath());\n\n const lock = (): boolean => {\n if (isLocked()) {\n return false;\n }\n inMemoryLock = true;\n try {\n fs.writeFileSync(getLockPath(), 'This file can be deleted if your app is stuck.', {\n encoding: 'utf8',\n mode: 0o644,\n });\n return true;\n } catch {\n inMemoryLock = false;\n return false;\n }\n };\n\n const unlock = (): void => {\n inMemoryLock = false;\n try {\n if (fs.existsSync(getLockPath())) {\n fs.rmSync(getLockPath(), { force: true });\n }\n } catch {\n // Ignore\n }\n };\n\n const ensureDirectoryExists = () => {\n const tempDir = getTempDir();\n if (!fs.existsSync(tempDir)) {\n fs.mkdirSync(tempDir, { recursive: true });\n }\n };\n\n const updateGitignore = () => {\n const gitignorePath = path.join(cwd(), '.gitignore');\n const entry = `/${CLERK_HIDDEN}/`;\n\n if (!fs.existsSync(gitignorePath)) {\n fs.writeFileSync(gitignorePath, '', { encoding: 'utf8', mode: 0o644 });\n }\n\n const content = fs.readFileSync(gitignorePath, { encoding: 'utf-8' });\n if (!content.includes(entry)) {\n fs.appendFileSync(gitignorePath, `\\n# clerk configuration (can include secrets)\\n${entry}\\n`);\n }\n };\n\n const writeReadme = () => {\n const readme = `## DO NOT COMMIT\nThis directory is auto-generated from \\`${frameworkPackageName}\\` because you are running in Keyless mode.\nAvoid committing the \\`.clerk/\\` directory as it includes the secret key of the unclaimed instance.\n`;\n fs.writeFileSync(getReadmePath(), readme, { encoding: 'utf8', mode: 0o600 });\n };\n\n return {\n read(): string {\n try {\n if (!fs.existsSync(getConfigPath())) {\n return '';\n }\n return fs.readFileSync(getConfigPath(), { encoding: 'utf-8' });\n } catch {\n return '';\n }\n },\n\n write(data: string): void {\n if (!lock()) {\n return;\n }\n try {\n ensureDirectoryExists();\n updateGitignore();\n writeReadme();\n fs.writeFileSync(getConfigPath(), data, { encoding: 'utf8', mode: 0o600 });\n } finally {\n unlock();\n }\n },\n\n remove(): void {\n if (!lock()) {\n return;\n }\n try {\n if (fs.existsSync(getClerkDir())) {\n fs.rmSync(getClerkDir(), { recursive: true, force: true });\n }\n } finally {\n unlock();\n }\n },\n };\n}\n","import { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } from './devCache';\nimport type { AccountlessApplication } from './types';\n\n/**\n * Storage adapter interface for keyless mode.\n * Implementations can use file system, cookies, or other storage mechanisms.\n *\n * Implementations are responsible for their own concurrency handling\n * (e.g., file locking for file-based storage).\n */\nexport interface KeylessStorage {\n /**\n * Reads the stored keyless configuration.\n *\n * @returns The JSON string of the stored config, or empty string if not found.\n */\n read(): string;\n\n /**\n * Writes the keyless configuration to storage.\n *\n * @param data - The JSON string to store.\n */\n write(data: string): void;\n\n /**\n * Removes the keyless configuration from storage.\n */\n remove(): void;\n}\n\n/**\n * API adapter for keyless mode operations.\n * This abstraction allows the service to work without depending on @clerk/backend.\n */\nexport interface KeylessAPI {\n /**\n * Creates a new accountless application.\n *\n * @param requestHeaders - Optional headers to include with the request.\n * @returns The created AccountlessApplication or null if failed.\n */\n createAccountlessApplication(requestHeaders?: Headers): Promise<AccountlessApplication | null>;\n\n /**\n * Notifies the backend that onboarding is complete (instance has been claimed).\n *\n * @param requestHeaders - Optional headers to include with the request.\n * @returns The updated AccountlessApplication or null if failed.\n */\n completeOnboarding(requestHeaders?: Headers): Promise<AccountlessApplication | null>;\n}\n\n/**\n * Options for creating a keyless service.\n */\nexport interface KeylessServiceOptions {\n /**\n * Storage adapter for reading/writing keyless configuration.\n */\n storage: KeylessStorage;\n\n /**\n * API adapter for keyless operations (create application, complete onboarding).\n */\n api: KeylessAPI;\n\n /**\n * Optional: Framework name for metadata (e.g., 'Next.js', 'TanStack Start').\n */\n framework?: string;\n\n /**\n * Optional: Framework version for metadata.\n */\n frameworkVersion?: string;\n}\n\n/**\n * Result type for key resolution.\n */\nexport interface KeylessResult {\n publishableKey: string | undefined;\n secretKey: string | undefined;\n claimUrl: string | undefined;\n apiKeysUrl: string | undefined;\n}\n\n/**\n * The keyless service interface.\n */\nexport interface KeylessService {\n /**\n * Gets existing keyless keys or creates new ones via the API.\n */\n getOrCreateKeys: () => Promise<AccountlessApplication | null>;\n\n /**\n * Reads existing keyless keys without creating new ones.\n */\n readKeys: () => AccountlessApplication | undefined;\n\n /**\n * Removes the keyless configuration.\n */\n removeKeys: () => void;\n\n /**\n * Notifies the backend that the instance has been claimed/onboarded.\n * This should be called once when the user claims their instance.\n */\n completeOnboarding: () => Promise<AccountlessApplication | null>;\n\n /**\n * Logs a keyless mode message to the console (throttled to once per process).\n */\n logKeylessMessage: (claimUrl: string) => void;\n\n /**\n * Resolves Clerk keys, falling back to keyless mode if configured keys are missing.\n *\n * @param configuredPublishableKey - The publishable key from options or environment\n * @param configuredSecretKey - The secret key from options or environment\n * @returns The resolved keys (either configured or from keyless mode)\n */\n resolveKeysWithKeylessFallback: (\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n ) => Promise<KeylessResult>;\n}\n\n/**\n * Creates metadata headers for the keyless service.\n */\nfunction createMetadataHeaders(framework?: string, frameworkVersion?: string): Headers {\n const headers = new Headers();\n\n if (framework) {\n headers.set('Clerk-Framework', framework);\n }\n if (frameworkVersion) {\n headers.set('Clerk-Framework-Version', frameworkVersion);\n }\n\n return headers;\n}\n\n/**\n * Creates a keyless service that handles accountless application creation and storage.\n * This provides a simple API for frameworks to integrate keyless mode.\n *\n * @param options - Configuration for the service including storage and API adapters\n * @returns A keyless service instance\n *\n * @example\n * ```ts\n * import { createKeylessService } from '@clerk/shared/keyless';\n *\n * const keylessService = createKeylessService({\n * storage: createFileStorage(),\n * api: createKeylessAPI({ secretKey }),\n * framework: 'TanStack Start',\n * });\n *\n * const keys = await keylessService.getOrCreateKeys(request);\n * if (keys) {\n * console.log('Publishable Key:', keys.publishableKey);\n * }\n * ```\n */\nexport function createKeylessService(options: KeylessServiceOptions): KeylessService {\n const { storage, api, framework, frameworkVersion } = options;\n\n let hasLoggedKeylessMessage = false;\n\n const safeParseConfig = (): AccountlessApplication | undefined => {\n try {\n const data = storage.read();\n if (!data) {\n return undefined;\n }\n return JSON.parse(data) as AccountlessApplication;\n } catch {\n return undefined;\n }\n };\n\n return {\n async getOrCreateKeys(): Promise<AccountlessApplication | null> {\n // Check for existing config first\n const existingConfig = safeParseConfig();\n if (existingConfig?.publishableKey && existingConfig?.secretKey) {\n return existingConfig;\n }\n\n // Create metadata headers\n const headers = createMetadataHeaders(framework, frameworkVersion);\n\n // Create new keys via the API\n const accountlessApplication = await api.createAccountlessApplication(headers);\n\n if (accountlessApplication) {\n storage.write(JSON.stringify(accountlessApplication));\n }\n\n return accountlessApplication;\n },\n\n readKeys(): AccountlessApplication | undefined {\n return safeParseConfig();\n },\n\n removeKeys(): void {\n storage.remove();\n },\n\n async completeOnboarding(): Promise<AccountlessApplication | null> {\n const headers = createMetadataHeaders(framework, frameworkVersion);\n return api.completeOnboarding(headers);\n },\n\n logKeylessMessage(claimUrl: string): void {\n if (!hasLoggedKeylessMessage) {\n hasLoggedKeylessMessage = true;\n console.log(`[Clerk]: Running in keyless mode. Claim your keys at: ${claimUrl}`);\n }\n },\n\n async resolveKeysWithKeylessFallback(\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n ): Promise<KeylessResult> {\n let publishableKey = configuredPublishableKey;\n let secretKey = configuredSecretKey;\n let claimUrl: string | undefined;\n let apiKeysUrl: string | undefined;\n\n try {\n const locallyStoredKeys = safeParseConfig();\n\n // Check if running with claimed keys (configured keys match locally stored keyless keys)\n const runningWithClaimedKeys =\n Boolean(configuredPublishableKey) && configuredPublishableKey === locallyStoredKeys?.publishableKey;\n\n if (runningWithClaimedKeys && locallyStoredKeys) {\n // Complete onboarding when running with claimed keys\n try {\n await clerkDevelopmentCache?.run(() => this.completeOnboarding(), {\n cacheKey: `${locallyStoredKeys.publishableKey}_complete`,\n onSuccessStale: 24 * 60 * 60 * 1000, // 24 hours\n });\n } catch {\n // noop\n }\n\n clerkDevelopmentCache?.log({\n cacheKey: `${locallyStoredKeys.publishableKey}_claimed`,\n msg: createConfirmationMessage(),\n });\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n // In keyless mode, try to read/create keys from the file system\n if (!publishableKey && !secretKey) {\n const keylessApp: AccountlessApplication | null = await this.getOrCreateKeys();\n\n if (keylessApp) {\n publishableKey = keylessApp.publishableKey;\n secretKey = keylessApp.secretKey;\n claimUrl = keylessApp.claimUrl;\n apiKeysUrl = keylessApp.apiKeysUrl;\n\n clerkDevelopmentCache?.log({\n cacheKey: keylessApp.publishableKey,\n msg: createKeylessModeMessage(keylessApp),\n });\n }\n }\n } catch {\n // noop - fall through to return whatever keys we have\n }\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n },\n };\n}\n","import { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } from './devCache';\nimport type { KeylessService } from './service';\nimport type { AccountlessApplication } from './types';\n\nexport interface KeylessResult {\n publishableKey: string | undefined;\n secretKey: string | undefined;\n claimUrl: string | undefined;\n apiKeysUrl: string | undefined;\n}\n\n/**\n * Resolves Clerk keys, falling back to keyless mode in development if configured keys are missing.\n *\n * @param configuredPublishableKey - The publishable key from options or environment\n * @param configuredSecretKey - The secret key from options or environment\n * @param keylessService - The keyless service instance (or null if unavailable)\n * @param canUseKeyless - Whether keyless mode is enabled in the current environment\n * @returns The resolved keys (either configured or from keyless mode)\n */\nexport async function resolveKeysWithKeylessFallback(\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n keylessService: KeylessService | null,\n canUseKeyless: boolean,\n): Promise<KeylessResult> {\n let publishableKey = configuredPublishableKey;\n let secretKey = configuredSecretKey;\n let claimUrl: string | undefined;\n let apiKeysUrl: string | undefined;\n\n if (!canUseKeyless) {\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n if (!keylessService) {\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n try {\n const locallyStoredKeys = keylessService.readKeys();\n\n // Check if running with claimed keys (configured keys match locally stored keyless keys)\n const runningWithClaimedKeys =\n Boolean(configuredPublishableKey) && configuredPublishableKey === locallyStoredKeys?.publishableKey;\n\n if (runningWithClaimedKeys && locallyStoredKeys) {\n // Complete onboarding when running with claimed keys\n try {\n await clerkDevelopmentCache?.run(() => keylessService.completeOnboarding(), {\n cacheKey: `${locallyStoredKeys.publishableKey}_complete`,\n onSuccessStale: 24 * 60 * 60 * 1000, // 24 hours\n });\n } catch {\n // noop\n }\n\n clerkDevelopmentCache?.log({\n cacheKey: `${locallyStoredKeys.publishableKey}_claimed`,\n msg: createConfirmationMessage(),\n });\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n // In keyless mode, try to read/create keys from the file system\n if (!publishableKey && !secretKey) {\n const keylessApp: AccountlessApplication | null = await keylessService.getOrCreateKeys();\n\n if (keylessApp) {\n publishableKey = keylessApp.publishableKey;\n secretKey = keylessApp.secretKey;\n claimUrl = keylessApp.claimUrl;\n apiKeysUrl = keylessApp.apiKeysUrl;\n\n clerkDevelopmentCache?.log({\n cacheKey: keylessApp.publishableKey,\n msg: createKeylessModeMessage(keylessApp),\n });\n }\n }\n } catch {\n // noop - fall through to return whatever keys we have\n }\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n}\n"],"mappings":";;;AAIA,MAAM,uBAAuB,MAAU;;;;;;;AA+BvC,SAAgB,sBAAiD;A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AgB;EAAW;EAAU;EAAY;AAG5D,KAAI,CAAC,eACH,QAAO;EAAE;EAAgB;EAAW;EAAU;EAAY;AAG5D,KAAI;EACF,MAAM,oBAAoB,eAAe,UAAU;AAMnD,MAFE,QAAQ,yBAAyB,IAAI,6BAA6B,mBAAmB,kBAEzD,mBAAmB;AAE/C,OAAI;AACF,UAAM,uBAAuB,UAAU,eAAe,oBAAoB,EAAE;KAC1E,UAAU,GAAG,kBAAkB,eAAe;KAC9C,gBAAgB,OAAU,KAAK;KAChC,CAAC;WACI;AAIR,0BAAuB,IAAI;IACzB,UAAU,GAAG,kBAAkB,eAAe;IAC9C,KAAK,2BAA2B;IACjC,CAAC;AAEF,UAAO;IAAE;IAAgB;IAAW;IAAU;IAAY;;AAI5D,MAAI,CAAC,kBAAkB,CAAC,WAAW;GACjC,MAAMC,aAA4C,MAAM,eAAe,iBAAiB;AAExF,OAAI,YAAY;AACd,qBAAiB,WAAW;AAC5B,gBAAY,WAAW;AACvB,eAAW,WAAW;AACtB,iBAAa,WAAW;AAExB,2BAAuB,IAAI;KACzB,UAAU,WAAW;KACrB,KAAK,yBAAyB,WAAW;KAC1C,CAAC;;;SAGA;AAIR,QAAO;EAAE;EAAgB;EAAW;EAAU;EAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["claimUrl: string | undefined","apiKeysUrl: string | undefined","keylessApp: AccountlessApplication | null","claimUrl: string | undefined","apiKeysUrl: string | undefined","keylessApp: AccountlessApplication | null"],"sources":["../../../src/keyless/devCache.ts","../../../src/keyless/nodeFileStorage.ts","../../../src/keyless/service.ts","../../../src/keyless/resolveKeysWithKeylessFallback.ts"],"sourcesContent":["import { isDevelopmentEnvironment } from '../utils/runtimeEnvironment';\nimport type { AccountlessApplication, PublicKeylessApplication } from './types';\n\n// 10 minutes in milliseconds\nconst THROTTLE_DURATION_MS = 10 * 60 * 1000;\n\nexport interface ClerkDevCache {\n __cache: Map<string, { expiresAt: number; data?: unknown }>;\n /**\n * Log a message with throttling to prevent spam.\n */\n log: (params: { cacheKey: string; msg: string }) => void;\n /**\n * Run an async callback with caching.\n */\n run: <T>(\n callback: () => Promise<T>,\n options: {\n cacheKey: string;\n onSuccessStale?: number;\n onErrorStale?: number;\n },\n ) => Promise<T | undefined>;\n}\n\ndeclare global {\n var __clerk_internal_keyless_logger: ClerkDevCache | undefined;\n}\n\n/**\n * Creates a development-only cache for keyless mode logging and API calls.\n * This prevents console spam and duplicate API requests.\n *\n * @returns The cache instance or undefined in non-development environments\n */\nexport function createClerkDevCache(): ClerkDevCache | undefined {\n if (!isDevelopmentEnvironment()) {\n return undefined;\n }\n\n if (!globalThis.__clerk_internal_keyless_logger) {\n globalThis.__clerk_internal_keyless_logger = {\n __cache: new Map<string, { expiresAt: number; data?: unknown }>(),\n\n log: function ({ cacheKey, msg }) {\n if (this.__cache.has(cacheKey) && Date.now() < (this.__cache.get(cacheKey)?.expiresAt || 0)) {\n return;\n }\n\n console.log(msg);\n\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + THROTTLE_DURATION_MS,\n });\n },\n\n run: async function (\n callback,\n { cacheKey, onSuccessStale = THROTTLE_DURATION_MS, onErrorStale = THROTTLE_DURATION_MS },\n ) {\n if (this.__cache.has(cacheKey) && Date.now() < (this.__cache.get(cacheKey)?.expiresAt || 0)) {\n return this.__cache.get(cacheKey)?.data as ReturnType<typeof callback>;\n }\n\n try {\n const result = await callback();\n\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + onSuccessStale,\n data: result,\n });\n return result;\n } catch (e) {\n this.__cache.set(cacheKey, {\n expiresAt: Date.now() + onErrorStale,\n });\n\n throw e;\n }\n },\n };\n }\n\n return globalThis.__clerk_internal_keyless_logger;\n}\n\n/**\n * Creates the console message shown when running in keyless mode.\n *\n * @param keys - The keyless application keys\n * @returns Formatted console message\n */\nexport function createKeylessModeMessage(keys: AccountlessApplication | PublicKeylessApplication): string {\n return `\\n\\x1b[35m\\n[Clerk]:\\x1b[0m You are running in keyless mode.\\nYou can \\x1b[35mclaim your keys\\x1b[0m by visiting ${keys.claimUrl}\\n`;\n}\n\n/**\n * Creates the console message shown when keys have been claimed.\n *\n * @returns Formatted console message\n */\nexport function createConfirmationMessage(): string {\n return `\\n\\x1b[35m\\n[Clerk]:\\x1b[0m Your application is running with your claimed keys.\\nYou can safely remove the \\x1b[35m.clerk/\\x1b[0m from your project.\\n`;\n}\n\n/**\n * Shared singleton instance of the development cache.\n */\nexport const clerkDevelopmentCache = createClerkDevCache();\n","import type { KeylessStorage } from './service';\n\nconst CLERK_HIDDEN = '.clerk';\nconst CLERK_LOCK = 'clerk.lock';\nconst TEMP_DIR_NAME = '.tmp';\nconst CONFIG_FILE = 'keyless.json';\nconst README_FILE = 'README.md';\n\nexport interface NodeFileStorageOptions {\n /**\n * Function that returns the current working directory.\n * Defaults to process.cwd().\n */\n cwd?: () => string;\n\n /**\n * The framework name for the README message.\n * @example '@clerk/nextjs'\n */\n frameworkPackageName?: string;\n}\n\nexport interface FileSystemAdapter {\n existsSync: (path: string) => boolean;\n readFileSync: (path: string, options: { encoding: BufferEncoding }) => string;\n writeFileSync: (path: string, data: string, options: { encoding: BufferEncoding; mode?: number }) => void;\n appendFileSync: (path: string, data: string) => void;\n mkdirSync: (path: string, options: { recursive: boolean }) => void;\n rmSync: (path: string, options: { force?: boolean; recursive?: boolean }) => void;\n}\n\nexport interface PathAdapter {\n join: (...paths: string[]) => string;\n}\n\n/**\n * Creates a file-based storage adapter for keyless mode.\n * This is used by Node.js-based frameworks (Next.js, TanStack Start, etc.)\n * to persist keyless configuration to the file system.\n *\n * @param fs - Node.js fs module or compatible adapter\n * @param path - Node.js path module or compatible adapter\n * @param options - Configuration options\n * @returns A KeylessStorage implementation\n */\nexport function createNodeFileStorage(\n fs: FileSystemAdapter,\n path: PathAdapter,\n options: NodeFileStorageOptions = {},\n): KeylessStorage {\n const { cwd = () => process.cwd(), frameworkPackageName = '@clerk/shared' } = options;\n\n let inMemoryLock = false;\n\n const getClerkDir = () => path.join(cwd(), CLERK_HIDDEN);\n const getTempDir = () => path.join(getClerkDir(), TEMP_DIR_NAME);\n const getConfigPath = () => path.join(getTempDir(), CONFIG_FILE);\n const getReadmePath = () => path.join(getTempDir(), README_FILE);\n const getLockPath = () => path.join(cwd(), CLERK_LOCK);\n\n const isLocked = (): boolean => inMemoryLock || fs.existsSync(getLockPath());\n\n const lock = (): boolean => {\n if (isLocked()) {\n return false;\n }\n inMemoryLock = true;\n try {\n fs.writeFileSync(getLockPath(), 'This file can be deleted if your app is stuck.', {\n encoding: 'utf8',\n mode: 0o644,\n });\n return true;\n } catch {\n inMemoryLock = false;\n return false;\n }\n };\n\n const unlock = (): void => {\n inMemoryLock = false;\n try {\n if (fs.existsSync(getLockPath())) {\n fs.rmSync(getLockPath(), { force: true });\n }\n } catch {\n // Ignore\n }\n };\n\n const ensureDirectoryExists = () => {\n const tempDir = getTempDir();\n if (!fs.existsSync(tempDir)) {\n fs.mkdirSync(tempDir, { recursive: true });\n }\n };\n\n const updateGitignore = () => {\n const gitignorePath = path.join(cwd(), '.gitignore');\n const entry = `/${CLERK_HIDDEN}/`;\n\n if (!fs.existsSync(gitignorePath)) {\n fs.writeFileSync(gitignorePath, '', { encoding: 'utf8', mode: 0o644 });\n }\n\n const content = fs.readFileSync(gitignorePath, { encoding: 'utf-8' });\n if (!content.includes(entry)) {\n fs.appendFileSync(gitignorePath, `\\n# clerk configuration (can include secrets)\\n${entry}\\n`);\n }\n };\n\n const writeReadme = () => {\n const readme = `## DO NOT COMMIT\nThis directory is auto-generated from \\`${frameworkPackageName}\\` because you are running in Keyless mode.\nAvoid committing the \\`.clerk/\\` directory as it includes the secret key of the unclaimed instance.\n`;\n fs.writeFileSync(getReadmePath(), readme, { encoding: 'utf8', mode: 0o600 });\n };\n\n return {\n read(): string {\n try {\n if (!fs.existsSync(getConfigPath())) {\n return '';\n }\n return fs.readFileSync(getConfigPath(), { encoding: 'utf-8' });\n } catch {\n return '';\n }\n },\n\n write(data: string): void {\n if (!lock()) {\n return;\n }\n try {\n ensureDirectoryExists();\n updateGitignore();\n writeReadme();\n fs.writeFileSync(getConfigPath(), data, { encoding: 'utf8', mode: 0o600 });\n } finally {\n unlock();\n }\n },\n\n remove(): void {\n if (!lock()) {\n return;\n }\n try {\n if (fs.existsSync(getClerkDir())) {\n fs.rmSync(getClerkDir(), { recursive: true, force: true });\n }\n } finally {\n unlock();\n }\n },\n };\n}\n","import { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } from './devCache';\nimport type { AccountlessApplication } from './types';\n\n/**\n * Storage adapter interface for keyless mode.\n * Implementations can use file system, cookies, or other storage mechanisms.\n *\n * Implementations are responsible for their own concurrency handling\n * (e.g., file locking for file-based storage).\n */\nexport interface KeylessStorage {\n /**\n * Reads the stored keyless configuration.\n *\n * @returns The JSON string of the stored config, or empty string if not found.\n */\n read(): string;\n\n /**\n * Writes the keyless configuration to storage.\n *\n * @param data - The JSON string to store.\n */\n write(data: string): void;\n\n /**\n * Removes the keyless configuration from storage.\n */\n remove(): void;\n}\n\n/**\n * API adapter for keyless mode operations.\n * This abstraction allows the service to work without depending on @clerk/backend.\n */\nexport interface KeylessAPI {\n /**\n * Creates a new accountless application.\n *\n * @param requestHeaders - Optional headers to include with the request.\n * @returns The created AccountlessApplication or null if failed.\n */\n createAccountlessApplication(requestHeaders?: Headers): Promise<AccountlessApplication | null>;\n\n /**\n * Notifies the backend that onboarding is complete (instance has been claimed).\n *\n * @param requestHeaders - Optional headers to include with the request.\n * @returns The updated AccountlessApplication or null if failed.\n */\n completeOnboarding(requestHeaders?: Headers): Promise<AccountlessApplication | null>;\n}\n\n/**\n * Options for creating a keyless service.\n */\nexport interface KeylessServiceOptions {\n /**\n * Storage adapter for reading/writing keyless configuration.\n */\n storage: KeylessStorage;\n\n /**\n * API adapter for keyless operations (create application, complete onboarding).\n */\n api: KeylessAPI;\n\n /**\n * Optional: Framework name for metadata (e.g., 'Next.js', 'TanStack Start').\n */\n framework?: string;\n\n /**\n * Optional: Framework version for metadata.\n */\n frameworkVersion?: string;\n}\n\n/**\n * Result type for key resolution.\n */\nexport interface KeylessResult {\n publishableKey: string | undefined;\n secretKey: string | undefined;\n claimUrl: string | undefined;\n apiKeysUrl: string | undefined;\n}\n\n/**\n * The keyless service interface.\n */\nexport interface KeylessService {\n /**\n * Gets existing keyless keys or creates new ones via the API.\n */\n getOrCreateKeys: () => Promise<AccountlessApplication | null>;\n\n /**\n * Reads existing keyless keys without creating new ones.\n */\n readKeys: () => AccountlessApplication | undefined;\n\n /**\n * Removes the keyless configuration.\n */\n removeKeys: () => void;\n\n /**\n * Notifies the backend that the instance has been claimed/onboarded.\n * This should be called once when the user claims their instance.\n */\n completeOnboarding: () => Promise<AccountlessApplication | null>;\n\n /**\n * Logs a keyless mode message to the console (throttled to once per process).\n */\n logKeylessMessage: (claimUrl: string) => void;\n\n /**\n * Resolves Clerk keys, falling back to keyless mode if configured keys are missing.\n *\n * @param configuredPublishableKey - The publishable key from options or environment\n * @param configuredSecretKey - The secret key from options or environment\n * @returns The resolved keys (either configured or from keyless mode)\n */\n resolveKeysWithKeylessFallback: (\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n ) => Promise<KeylessResult>;\n}\n\n/**\n * Creates metadata headers for the keyless service.\n */\nfunction createMetadataHeaders(framework?: string, frameworkVersion?: string): Headers {\n const headers = new Headers();\n\n if (framework) {\n headers.set('Clerk-Framework', framework);\n }\n if (frameworkVersion) {\n headers.set('Clerk-Framework-Version', frameworkVersion);\n }\n\n return headers;\n}\n\n/**\n * Creates a keyless service that handles accountless application creation and storage.\n * This provides a simple API for frameworks to integrate keyless mode.\n *\n * @param options - Configuration for the service including storage and API adapters\n * @returns A keyless service instance\n *\n * @example\n * ```ts\n * import { createKeylessService } from '@clerk/shared/keyless';\n *\n * const keylessService = createKeylessService({\n * storage: createFileStorage(),\n * api: createKeylessAPI({ secretKey }),\n * framework: 'TanStack Start',\n * });\n *\n * const keys = await keylessService.getOrCreateKeys(request);\n * if (keys) {\n * console.log('Publishable Key:', keys.publishableKey);\n * }\n * ```\n */\nexport function createKeylessService(options: KeylessServiceOptions): KeylessService {\n const { storage, api, framework, frameworkVersion } = options;\n\n let hasLoggedKeylessMessage = false;\n\n const safeParseConfig = (): AccountlessApplication | undefined => {\n try {\n const data = storage.read();\n if (!data) {\n return undefined;\n }\n return JSON.parse(data) as AccountlessApplication;\n } catch {\n return undefined;\n }\n };\n\n return {\n async getOrCreateKeys(): Promise<AccountlessApplication | null> {\n // Check for existing config first\n const existingConfig = safeParseConfig();\n if (existingConfig?.publishableKey && existingConfig?.secretKey) {\n return existingConfig;\n }\n\n // Create metadata headers\n const headers = createMetadataHeaders(framework, frameworkVersion);\n\n // Create new keys via the API\n const accountlessApplication = await api.createAccountlessApplication(headers);\n\n if (accountlessApplication) {\n storage.write(JSON.stringify(accountlessApplication));\n }\n\n return accountlessApplication;\n },\n\n readKeys(): AccountlessApplication | undefined {\n return safeParseConfig();\n },\n\n removeKeys(): void {\n storage.remove();\n },\n\n async completeOnboarding(): Promise<AccountlessApplication | null> {\n const headers = createMetadataHeaders(framework, frameworkVersion);\n return api.completeOnboarding(headers);\n },\n\n logKeylessMessage(claimUrl: string): void {\n if (!hasLoggedKeylessMessage) {\n hasLoggedKeylessMessage = true;\n console.log(`[Clerk]: Running in keyless mode. Claim your keys at: ${claimUrl}`);\n }\n },\n\n async resolveKeysWithKeylessFallback(\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n ): Promise<KeylessResult> {\n let publishableKey = configuredPublishableKey;\n let secretKey = configuredSecretKey;\n let claimUrl: string | undefined;\n let apiKeysUrl: string | undefined;\n\n try {\n const locallyStoredKeys = safeParseConfig();\n\n // Check if running with claimed keys (configured keys match locally stored keyless keys)\n const runningWithClaimedKeys =\n Boolean(configuredPublishableKey) && configuredPublishableKey === locallyStoredKeys?.publishableKey;\n\n if (runningWithClaimedKeys && locallyStoredKeys) {\n // Complete onboarding when running with claimed keys\n try {\n await clerkDevelopmentCache?.run(() => this.completeOnboarding(), {\n cacheKey: `${locallyStoredKeys.publishableKey}_complete`,\n onSuccessStale: 24 * 60 * 60 * 1000, // 24 hours\n });\n } catch {\n // noop\n }\n\n clerkDevelopmentCache?.log({\n cacheKey: `${locallyStoredKeys.publishableKey}_claimed`,\n msg: createConfirmationMessage(),\n });\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n // In keyless mode, try to read/create keys from the file system\n if (!publishableKey && !secretKey) {\n const keylessApp: AccountlessApplication | null = await this.getOrCreateKeys();\n\n if (keylessApp) {\n publishableKey = keylessApp.publishableKey;\n secretKey = keylessApp.secretKey;\n claimUrl = keylessApp.claimUrl;\n apiKeysUrl = keylessApp.apiKeysUrl;\n\n clerkDevelopmentCache?.log({\n cacheKey: keylessApp.publishableKey,\n msg: createKeylessModeMessage(keylessApp),\n });\n }\n }\n } catch {\n // noop - fall through to return whatever keys we have\n }\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n },\n };\n}\n","import { clerkDevelopmentCache, createConfirmationMessage, createKeylessModeMessage } from './devCache';\nimport type { KeylessService } from './service';\nimport type { AccountlessApplication } from './types';\n\nexport interface KeylessResult {\n publishableKey: string | undefined;\n secretKey: string | undefined;\n claimUrl: string | undefined;\n apiKeysUrl: string | undefined;\n}\n\n/**\n * Resolves Clerk keys, falling back to keyless mode in development if configured keys are missing.\n *\n * @param configuredPublishableKey - The publishable key from options or environment\n * @param configuredSecretKey - The secret key from options or environment\n * @param keylessService - The keyless service instance (or null if unavailable)\n * @param canUseKeyless - Whether keyless mode is enabled in the current environment\n * @returns The resolved keys (either configured or from keyless mode)\n */\nexport async function resolveKeysWithKeylessFallback(\n configuredPublishableKey: string | undefined,\n configuredSecretKey: string | undefined,\n keylessService: KeylessService | null,\n canUseKeyless: boolean,\n): Promise<KeylessResult> {\n let publishableKey = configuredPublishableKey;\n let secretKey = configuredSecretKey;\n let claimUrl: string | undefined;\n let apiKeysUrl: string | undefined;\n\n if (!canUseKeyless) {\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n if (!keylessService) {\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n try {\n const locallyStoredKeys = keylessService.readKeys();\n\n // Check if running with claimed keys (configured keys match locally stored keyless keys)\n const runningWithClaimedKeys =\n Boolean(configuredPublishableKey) && configuredPublishableKey === locallyStoredKeys?.publishableKey;\n\n if (runningWithClaimedKeys && locallyStoredKeys) {\n // Complete onboarding when running with claimed keys\n try {\n await clerkDevelopmentCache?.run(() => keylessService.completeOnboarding(), {\n cacheKey: `${locallyStoredKeys.publishableKey}_complete`,\n onSuccessStale: 24 * 60 * 60 * 1000, // 24 hours\n });\n } catch {\n // noop\n }\n\n clerkDevelopmentCache?.log({\n cacheKey: `${locallyStoredKeys.publishableKey}_claimed`,\n msg: createConfirmationMessage(),\n });\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n }\n\n // In keyless mode, try to read/create keys from the file system\n if (!publishableKey && !secretKey) {\n const keylessApp: AccountlessApplication | null = await keylessService.getOrCreateKeys();\n\n if (keylessApp) {\n publishableKey = keylessApp.publishableKey;\n secretKey = keylessApp.secretKey;\n claimUrl = keylessApp.claimUrl;\n apiKeysUrl = keylessApp.apiKeysUrl;\n\n clerkDevelopmentCache?.log({\n cacheKey: keylessApp.publishableKey,\n msg: createKeylessModeMessage(keylessApp),\n });\n }\n }\n } catch {\n // noop - fall through to return whatever keys we have\n }\n\n return { publishableKey, secretKey, claimUrl, apiKeysUrl };\n}\n"],"mappings":";;;AAIA,MAAM,uBAAuB,MAAU;;;;;;;AA+BvC,SAAgB,sBAAiD;AAC/D,KAAI,CAAC,0BAA0B,CAC7B;AAGF,KAAI,CAAC,WAAW,gCACd,YAAW,kCAAkC;EAC3C,yBAAS,IAAI,KAAoD;EAEjE,KAAK,SAAU,EAAE,UAAU,OAAO;AAChC,OAAI,KAAK,QAAQ,IAAI,SAAS,IAA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EzD,mBAAmB;AAE/C,OAAI;AACF,UAAM,uBAAuB,UAAU,eAAe,oBAAoB,EAAE;KAC1E,UAAU,GAAG,kBAAkB,eAAe;KAC9C,gBAAgB,OAAU,KAAK;KAChC,CAAC;WACI;AAIR,0BAAuB,IAAI;IACzB,UAAU,GAAG,kBAAkB,eAAe;IAC9C,KAAK,2BAA2B;IACjC,CAAC;AAEF,UAAO;IAAE;IAAgB;IAAW;IAAU;IAAY;;AAI5D,MAAI,CAAC,kBAAkB,CAAC,WAAW;GACjC,MAAMC,aAA4C,MAAM,eAAe,iBAAiB;AAExF,OAAI,YAAY;AACd,qBAAiB,WAAW;AAC5B,gBAAY,WAAW;AACvB,eAAW,WAAW;AACtB,iBAAa,WAAW;AAExB,2BAAuB,IAAI;KACzB,UAAU,WAAW;KACrB,KAAK,yBAAyB,WAAW;KAC1C,CAAC;;;SAGA;AAIR,QAAO;EAAE;EAAgB;EAAW;EAAU;EAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys-BI9hmfja.js","names":["LEGACY_DEV_INSTANCE_SUFFIXES","isomorphicBtoa","decodedFrontendApi: string","isomorphicAtob","DEV_OR_STAGING_SUFFIXES"],"sources":["../../src/keys.ts"],"sourcesContent":["import { DEV_OR_STAGING_SUFFIXES, LEGACY_DEV_INSTANCE_SUFFIXES } from './constants';\nimport { isomorphicAtob } from './isomorphicAtob';\nimport { isomorphicBtoa } from './isomorphicBtoa';\nimport type { PublishableKey } from './types';\n\n/**\n * Configuration options for parsing publishable keys.\n */\ntype ParsePublishableKeyOptions = {\n /** Whether to throw an error if parsing fails */\n fatal?: boolean;\n /** Custom domain to use for satellite instances */\n domain?: string;\n /** Proxy URL to use instead of the decoded frontend API */\n proxyUrl?: string;\n /** Whether this is a satellite instance */\n isSatellite?: boolean;\n};\n\n/** Prefix used for production publishable keys */\nconst PUBLISHABLE_KEY_LIVE_PREFIX = 'pk_live_';\n\n/** Prefix used for development publishable keys */\nconst PUBLISHABLE_KEY_TEST_PREFIX = 'pk_test_';\n\n/**\n * Regular expression that matches development frontend API keys.\n * Matches patterns like: foo-bar-13.clerk.accounts.dev.\n */\nconst PUBLISHABLE_FRONTEND_API_DEV_REGEX = /^(([a-z]+)-){2}([0-9]{1,2})\\.clerk\\.accounts([a-z.]*)(dev|com)$/i;\n\n/**\n * Converts a frontend API URL into a base64-encoded publishable key.\n *\n * @param frontendApi - The frontend API URL (e.g., 'clerk.example.com').\n * @returns A base64-encoded publishable key with appropriate prefix (pk_live_ or pk_test_).\n */\nexport function buildPublishableKey(frontendApi: string): string {\n const isDevKey =\n PUBLISHABLE_FRONTEND_API_DEV_REGEX.test(frontendApi) ||\n (frontendApi.startsWith('clerk.') && LEGACY_DEV_INSTANCE_SUFFIXES.some(s => frontendApi.endsWith(s)));\n const keyPrefix = isDevKey ? PUBLISHABLE_KEY_TEST_PREFIX : PUBLISHABLE_KEY_LIVE_PREFIX;\n return `${keyPrefix}${isomorphicBtoa(`${frontendApi}$`)}`;\n}\n\n/**\n * Validates that a decoded publishable key has the correct format.\n * The decoded value should be a frontend API followed by exactly one '$' at the end.\n *\n * @param decoded - The decoded publishable key string to validate.\n * @returns `true` if the decoded key has valid format, `false` otherwise.\n */\nfunction isValidDecodedPublishableKey(decoded: string): boolean {\n if (!decoded.endsWith('$')) {\n return false;\n }\n\n const withoutTrailing = decoded.slice(0, -1);\n if (withoutTrailing.includes('$')) {\n return false;\n }\n\n return withoutTrailing.includes('.');\n}\n\nexport function parsePublishableKey(\n key: string | undefined,\n options: ParsePublishableKeyOptions & { fatal: true },\n): PublishableKey;\nexport function parsePublishableKey(\n key: string | undefined,\n options?: ParsePublishableKeyOptions,\n): PublishableKey | null;\n/**\n * Parses and validates a publishable key, extracting the frontend API and instance type.\n *\n * @param key - The publishable key to parse.\n * @param options - Configuration options for parsing.\n * @param options.fatal\n * @param options.domain\n * @param options.proxyUrl\n * @param options.isSatellite\n * @returns Parsed publishable key object with instanceType and frontendApi, or null if invalid.\n *\n * @throws {Error} When options.fatal is true and key is missing or invalid.\n */\nexport function parsePublishableKey(\n key: string | undefined,\n options: { fatal?: boolean; domain?: string; proxyUrl?: string; isSatellite?: boolean } = {},\n): PublishableKey | null {\n key = key || '';\n\n if (!key || !isPublishableKey(key)) {\n if (options.fatal && !key) {\n throw new Error(\n 'Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys',\n );\n }\n if (options.fatal && !isPublishableKey(key)) {\n throw new Error('Publishable key not valid.');\n }\n return null;\n }\n\n const instanceType = key.startsWith(PUBLISHABLE_KEY_LIVE_PREFIX) ? 'production' : 'development';\n\n let decodedFrontendApi: string;\n try {\n decodedFrontendApi = isomorphicAtob(key.split('_')[2]);\n } catch {\n if (options.fatal) {\n throw new Error('Publishable key not valid: Failed to decode key.');\n }\n return null;\n }\n\n if (!isValidDecodedPublishableKey(decodedFrontendApi)) {\n if (options.fatal) {\n throw new Error('Publishable key not valid: Decoded key has invalid format.');\n }\n return null;\n }\n\n let frontendApi = decodedFrontendApi.slice(0, -1);\n\n if (options.proxyUrl) {\n frontendApi = options.proxyUrl;\n } else if (instanceType !== 'development' && options.domain && options.isSatellite) {\n frontendApi = `clerk.${options.domain}`;\n }\n\n return {\n instanceType,\n frontendApi,\n };\n}\n\n/**\n * Checks if the provided key is a valid publishable key.\n *\n * @param key - The key to be checked. Defaults to an empty string if not provided.\n * @returns `true` if 'key' is a valid publishable key, `false` otherwise.\n */\nexport function isPublishableKey(key: string = '') {\n try {\n const hasValidPrefix = key.startsWith(PUBLISHABLE_KEY_LIVE_PREFIX) || key.startsWith(PUBLISHABLE_KEY_TEST_PREFIX);\n\n if (!hasValidPrefix) {\n return false;\n }\n\n const parts = key.split('_');\n if (parts.length !== 3) {\n return false;\n }\n\n const encodedPart = parts[2];\n if (!encodedPart) {\n return false;\n }\n\n const decoded = isomorphicAtob(encodedPart);\n return isValidDecodedPublishableKey(decoded);\n } catch {\n return false;\n }\n}\n\n/**\n * Creates a memoized cache for checking if URLs are development or staging environments.\n * Uses a Map to cache results for better performance on repeated checks.\n *\n * @returns An object with an isDevOrStagingUrl method that checks if a URL is dev/staging.\n */\nexport function createDevOrStagingUrlCache() {\n const devOrStagingUrlCache = new Map<string, boolean>();\n\n return {\n /**\n * Checks if a URL is a development or staging environment.\n *\n * @param url - The URL to check (string or URL object).\n * @returns `true` if the URL is a development or staging environment, `false` otherwise.\n */\n isDevOrStagingUrl: (url: string | URL): boolean => {\n if (!url) {\n return false;\n }\n\n const hostname = typeof url === 'string' ? url : url.hostname;\n let res = devOrStagingUrlCache.get(hostname);\n if (res === undefined) {\n res = DEV_OR_STAGING_SUFFIXES.some(s => hostname.endsWith(s));\n devOrStagingUrlCache.set(hostname, res);\n }\n return res;\n },\n };\n}\n\n/**\n * Checks if a publishable key is for a development environment.\n * Supports both legacy format (test_) and new format (pk_test_).\n *\n * @param apiKey - The API key to check.\n * @returns `true` if the key is for development, `false` otherwise.\n */\nexport function isDevelopmentFromPublishableKey(apiKey: string): boolean {\n return apiKey.startsWith('test_') || apiKey.startsWith('pk_test_');\n}\n\n/**\n * Checks if a publishable key is for a production environment.\n * Supports both legacy format (live_) and new format (pk_live_).\n *\n * @param apiKey - The API key to check.\n * @returns `true` if the key is for production, `false` otherwise.\n */\nexport function isProductionFromPublishableKey(apiKey: string): boolean {\n return apiKey.startsWith('live_') || apiKey.startsWith('pk_live_');\n}\n\n/**\n * Checks if a secret key is for a development environment.\n * Supports both legacy format (test_) and new format (sk_test_).\n *\n * @param apiKey - The secret key to check.\n * @returns `true` if the key is for development, `false` otherwise.\n */\nexport function isDevelopmentFromSecretKey(apiKey: string): boolean {\n return apiKey.startsWith('test_') || apiKey.startsWith('sk_test_');\n}\n\n/**\n * Checks if a secret key is for a production environment.\n * Supports both legacy format (live_) and new format (sk_live_).\n *\n * @param apiKey - The secret key to check.\n * @returns `true` if the key is for production, `false` otherwise.\n */\nexport function isProductionFromSecretKey(apiKey: string): boolean {\n return apiKey.startsWith('live_') || apiKey.startsWith('sk_live_');\n}\n\n/**\n * Generates a unique cookie suffix based on the publishable key using SHA-1 hashing.\n * The suffix is base64-encoded and URL-safe (+ and / characters are replaced).\n *\n * @param publishableKey - The publishable key to generate suffix from.\n * @param subtle - The SubtleCrypto interface to use for hashing (defaults to globalThis.crypto.subtle).\n * @returns A promise that resolves to an 8-character URL-safe base64 string.\n */\nexport async function getCookieSuffix(\n publishableKey: string,\n subtle: SubtleCrypto = globalThis.crypto.subtle,\n): Promise<string> {\n const data = new TextEncoder().encode(publishableKey);\n const digest = await subtle.digest('sha-1', data);\n const stringDigest = String.fromCharCode(...new Uint8Array(digest));\n // Base 64 Encoding with URL and Filename Safe Alphabet: https://datatracker.ietf.org/doc/html/rfc4648#section-5\n return isomorphicBtoa(stringDigest).replace(/\\+/gi, '-').replace(/\\//gi, '_').substring(0, 8);\n}\n\n/**\n * Creates a suffixed cookie name by appending the cookie suffix to the base name.\n * Used to create unique cookie names based on the publishable key.\n *\n * @param cookieName - The base cookie name.\n * @param cookieSuffix - The suffix to append (typically generated by getCookieSuffix).\n * @returns The suffixed cookie name in format: `${cookieName}_${cookieSuffix}`.\n */\nexport const getSuffixedCookieName = (cookieName: string, cookieSuffix: string): string => {\n return `${cookieName}_${cookieSuffix}`;\n};\n"],"mappings":";;;;;;AAoBA,MAAM,8BAA8B;;AAGpC,MAAM,8BAA8B;;;;;AAMpC,MAAM,qCAAqC;;;;;;;AAQ3C,SAAgB,oBAAoB,aAA6B;AAK/D,QAAO,GAHL,mCAAmC,KAAK,YAAY,IACnD,YAAY,WAAW,SAAS,IAAIA,+CAA6B,MAAK,MAAK,YAAY,SAAS,EAAE,CAAC,GACzE,8BAA8B,8BACrCC,sCAAe,GAAG,YAAY,GAAG;;;;;;;;;AAUzD,SAAS,6BAA6B,SAA0B;AAC9D,KAAI,CAAC,QAAQ,SAAS,IAAI,CACxB,QAAO;CAGT,MAAM,kBAAkB,QAAQ,MAA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FIXES } from './constants';\nimport { isomorphicAtob } from './isomorphicAtob';\nimport { isomorphicBtoa } from './isomorphicBtoa';\nimport type { PublishableKey } from './types';\n\n/**\n * Configuration options for parsing publishable keys.\n */\ntype ParsePublishableKeyOptions = {\n /** Whether to throw an error if parsing fails */\n fatal?: boolean;\n /** Custom domain to use for satellite instances */\n domain?: string;\n /** Proxy URL to use instead of the decoded frontend API */\n proxyUrl?: string;\n /** Whether this is a satellite instance */\n isSatellite?: boolean;\n};\n\n/** Prefix used for production publishable keys */\nconst PUBLISHABLE_KEY_LIVE_PREFIX = 'pk_live_';\n\n/** Prefix used for development publishable keys */\nconst PUBLISHABLE_KEY_TEST_PREFIX = 'pk_test_';\n\n/**\n * Regular expression that matches development frontend API keys.\n * Matches patterns like: foo-bar-13.clerk.accounts.dev.\n */\nconst PUBLISHABLE_FRONTEND_API_DEV_REGEX = /^(([a-z]+)-){2}([0-9]{1,2})\\.clerk\\.accounts([a-z.]*)(dev|com)$/i;\n\n/**\n * Converts a frontend API URL into a base64-encoded publishable key.\n *\n * @param frontendApi - The frontend API URL (e.g., 'clerk.example.com').\n * @returns A base64-encoded publishable key with appropriate prefix (pk_live_ or pk_test_).\n */\nexport function buildPublishableKey(frontendApi: string): string {\n const isDevKey =\n PUBLISHABLE_FRONTEND_API_DEV_REGEX.test(frontendApi) ||\n (frontendApi.startsWith('clerk.') && LEGACY_DEV_INSTANCE_SUFFIXES.some(s => frontendApi.endsWith(s)));\n const keyPrefix = isDevKey ? PUBLISHABLE_KEY_TEST_PREFIX : PUBLISHABLE_KEY_LIVE_PREFIX;\n return `${keyPrefix}${isomorphicBtoa(`${frontendApi}$`)}`;\n}\n\n/**\n * Validates that a decoded publishable key has the correct format.\n * The decoded value should be a frontend API followed by exactly one '$' at the end.\n *\n * @param decoded - The decoded publishable key string to validate.\n * @returns `true` if the decoded key has valid format, `false` otherwise.\n */\nfunction isValidDecodedPublishableKey(decoded: string): boolean {\n if (!decoded.endsWith('$')) {\n return false;\n }\n\n const withoutTrailing = decoded.slice(0, -1);\n if (withoutTrailing.includes('$')) {\n return false;\n }\n\n return withoutTrailing.includes('.');\n}\n\nexport function parsePublishableKey(\n key: string | undefined,\n options: ParsePublishableKeyOptions & { fatal: true },\n): PublishableKey;\nexport function parsePublishableKey(\n key: string | undefined,\n options?: ParsePublishableKeyOptions,\n): PublishableKey | null;\n/**\n * Parses and validates a publishable key, extracting the frontend API and instance type.\n *\n * @param key - The publishable key to parse.\n * @param options - Configuration options for parsing.\n * @param options.fatal\n * @param options.domain\n * @param options.proxyUrl\n * @param options.isSatellite\n * @returns Parsed publishable key object with instanceType and frontendApi, or null if invalid.\n *\n * @throws {Error} When options.fatal is true and key is missing or invalid.\n */\nexport function parsePublishableKey(\n key: string | undefined,\n options: { fatal?: boolean; domain?: string; proxyUrl?: string; isSatellite?: boolean } = {},\n): PublishableKey | null {\n key = key || '';\n\n if (!key || !isPublishableKey(key)) {\n if (options.fatal && !key) {\n throw new Error(\n 'Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys',\n );\n }\n if (options.fatal && !isPublishableKey(key)) {\n throw new Error('Publishable key not valid.');\n }\n return null;\n }\n\n const instanceType = key.startsWith(PUBLISHABLE_KEY_LIVE_PREFIX) ? 'production' : 'development';\n\n let decodedFrontendApi: string;\n try {\n decodedFrontendApi = isomorphicAtob(key.split('_')[2]);\n } catch {\n if (options.fatal) {\n throw new Error('Publishable key not valid: Failed to decode key.');\n }\n return null;\n }\n\n if (!isValidDecodedPublishableKey(decodedFrontendApi)) {\n if (options.fatal) {\n throw new Error('Publishable key not valid: Decoded key has invalid format.');\n }\n return null;\n }\n\n let frontendApi = decodedFrontendApi.slice(0, -1);\n\n if (options.proxyUrl) {\n frontendApi = options.proxyUrl;\n } else if (instanceType !== 'development' && options.domain && options.isSatellite) {\n frontendApi = `clerk.${options.domain}`;\n }\n\n return {\n instanceType,\n frontendApi,\n };\n}\n\n/**\n * Checks if the provided key is a valid publishable key.\n *\n * @param key - The key to be checked. Defaults to an empty string if not provided.\n * @returns `true` if 'key' is a valid publishable key, `false` otherwise.\n */\nexport function isPublishableKey(key: string = '') {\n try {\n const hasValidPrefix = key.startsWith(PUBLISHABLE_KEY_LIVE_PREFIX) || key.startsWith(PUBLISHABLE_KEY_TEST_PREFIX);\n\n if (!hasValidPrefix) {\n return false;\n }\n\n const parts = key.split('_');\n if (parts.length !== 3) {\n return false;\n }\n\n const encodedPart = parts[2];\n if (!encodedPart) {\n return false;\n }\n\n const decoded = isomorphicAtob(encodedPart);\n return isValidDecodedPublishableKey(decoded);\n } catch {\n return false;\n }\n}\n\n/**\n * Creates a memoized cache for checking if URLs are development or staging environments.\n * Uses a Map to cache results for better performance on repeated checks.\n *\n * @returns An object with an isDevOrStagingUrl method that checks if a URL is dev/staging.\n */\nexport function createDevOrStagingUrlCache() {\n const devOrStagingUrlCache = new Map<string, boolean>();\n\n return {\n /**\n * Checks if a URL is a development or staging environment.\n *\n * @param url - The URL to check (string or URL object).\n * @returns `true` if the URL is a development or staging environment, `false` otherwise.\n */\n isDevOrStagingUrl: (url: string | URL): boolean => {\n if (!url) {\n return false;\n }\n\n const hostname = typeof url === 'string' ? url : url.hostname;\n let res = devOrStagingUrlCache.get(hostname);\n if (res === undefined) {\n res = DEV_OR_STAGING_SUFFIXES.some(s => hostname.endsWith(s));\n devOrStagingUrlCache.set(hostname, res);\n }\n return res;\n },\n };\n}\n\n/**\n * Checks if a publishable key is for a development environment.\n * Supports both legacy format (test_) and new format (pk_test_).\n *\n * @param apiKey - The API key to check.\n * @returns `true` if the key is for development, `false` otherwise.\n */\nexport function isDevelopmentFromPublishableKey(apiKey: string): boolean {\n return apiKey.startsWith('test_') || apiKey.startsWith('pk_test_');\n}\n\n/**\n * Checks if a publishable key is for a production environment.\n * Supports both legacy format (live_) and new format (pk_live_).\n *\n * @param apiKey - The API key to check.\n * @returns `true` if the key is for production, `false` otherwise.\n */\nexport function isProductionFromPublishableKey(apiKey: string): boolean {\n return apiKey.startsWith('live_') || apiKey.startsWith('pk_live_');\n}\n\n/**\n * Checks if a secret key is for a development environment.\n * Supports both legacy format (test_) and new format (sk_test_).\n *\n * @param apiKey - The secret key to check.\n * @returns `true` if the key is for development, `false` otherwise.\n */\nexport function isDevelopmentFromSecretKey(apiKey: string): boolean {\n return apiKey.startsWith('test_') || apiKey.startsWith('sk_test_');\n}\n\n/**\n * Checks if a secret key is for a production environment.\n * Supports both legacy format (live_) and new format (sk_live_).\n *\n * @param apiKey - The secret key to check.\n * @returns `true` if the key is for production, `false` otherwise.\n */\nexport function isProductionFromSecretKey(apiKey: string): boolean {\n return apiKey.startsWith('live_') || apiKey.startsWith('sk_live_');\n}\n\n/**\n * Generates a unique cookie suffix based on the publishable key using SHA-1 hashing.\n * The suffix is base64-encoded and URL-safe (+ and / characters are replaced).\n *\n * @param publishableKey - The publishable key to generate suffix from.\n * @param subtle - The SubtleCrypto interface to use for hashing (defaults to globalThis.crypto.subtle).\n * @returns A promise that resolves to an 8-character URL-safe base64 string.\n */\nexport async function getCookieSuffix(\n publishableKey: string,\n subtle: SubtleCrypto = globalThis.crypto.subtle,\n): Promise<string> {\n const data = new TextEncoder().encode(publishableKey);\n const digest = await subtle.digest('sha-1', data);\n const stringDigest = String.fromCharCode(...new Uint8Array(digest));\n // Base 64 Encoding with URL and Filename Safe Alphabet: https://datatracker.ietf.org/doc/html/rfc4648#section-5\n return isomorphicBtoa(stringDigest).replace(/\\+/gi, '-').replace(/\\//gi, '_').substring(0, 8);\n}\n\n/**\n * Creates a suffixed cookie name by appending the cookie suffix to the base name.\n * Used to create unique cookie names based on the publishable key.\n *\n * @param cookieName - The base cookie name.\n * @param cookieSuffix - The suffix to append (typically generated by getCookieSuffix).\n * @returns The suffixed cookie name in format: `${cookieName}_${cookieSuffix}`.\n */\nexport const getSuffixedCookieName = (cookieName: string, cookieSuffix: string): string => {\n return `${cookieName}_${cookieSuffix}`;\n};\n"],"mappings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jD,QAAO,eAFc,OAAO,aAAa,GAAG,IAAI,WAAW,OAAO,CAAC,CAEhC,CAAC,QAAQ,QAAQ,IAAI,CAAC,QAAQ,QAAQ,IAAI,CAAC,UAAU,GAAG,EAAE;;;;;;;;;;AAW/F,MAAa,yBAAyB,YAAoB,iBAAiC;AACzF,QAAO,GAAG,WAAW,GAAG"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { h as PublishableKey } from "./index-Cc98l5ga.mjs";
|
|
2
|
-
import "./moduleManager-BsmFyRrH.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/keys.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Configuration options for parsing publishable keys.
|
|
7
|
-
*/
|
|
8
|
-
type ParsePublishableKeyOptions = {
|
|
9
|
-
/** Whether to throw an error if parsing fails */
|
|
10
|
-
fatal?: boolean;
|
|
11
|
-
/** Custom domain to use for satellite instances */
|
|
12
|
-
domain?: string;
|
|
13
|
-
/** Proxy URL to use instead of the decoded frontend API */
|
|
14
|
-
proxyUrl?: string;
|
|
15
|
-
/** Whether this is a satellite instance */
|
|
16
|
-
isSatellite?: boolean;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Converts a frontend API URL into a base64-encoded publishable key.
|
|
20
|
-
*
|
|
21
|
-
* @param frontendApi - The frontend API URL (e.g., 'clerk.example.com').
|
|
22
|
-
* @returns A base64-encoded publishable key with appropriate prefix (pk_live_ or pk_test_).
|
|
23
|
-
*/
|
|
24
|
-
declare function buildPublishableKey(frontendApi: string): string;
|
|
25
|
-
declare function parsePublishableKey(key: string | undefined, options: ParsePublishableKeyOptions & {
|
|
26
|
-
fatal: true;
|
|
27
|
-
}): PublishableKey;
|
|
28
|
-
declare function parsePublishableKey(key: string | undefined, options?: ParsePublishableKeyOptions): PublishableKey | null;
|
|
29
|
-
/**
|
|
30
|
-
* Checks if the provided key is a valid publishable key.
|
|
31
|
-
*
|
|
32
|
-
* @param key - The key to be checked. Defaults to an empty string if not provided.
|
|
33
|
-
* @returns `true` if 'key' is a valid publishable key, `false` otherwise.
|
|
34
|
-
*/
|
|
35
|
-
declare function isPublishableKey(key?: string): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a memoized cache for checking if URLs are development or staging environments.
|
|
38
|
-
* Uses a Map to cache results for better performance on repeated checks.
|
|
39
|
-
*
|
|
40
|
-
* @returns An object with an isDevOrStagingUrl method that checks if a URL is dev/staging.
|
|
41
|
-
*/
|
|
42
|
-
declare function createDevOrStagingUrlCache(): {
|
|
43
|
-
/**
|
|
44
|
-
* Checks if a URL is a development or staging environment.
|
|
45
|
-
*
|
|
46
|
-
* @param url - The URL to check (string or URL object).
|
|
47
|
-
* @returns `true` if the URL is a development or staging environment, `false` otherwise.
|
|
48
|
-
*/
|
|
49
|
-
isDevOrStagingUrl: (url: string | URL) => boolean;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Checks if a publishable key is for a development environment.
|
|
53
|
-
* Supports both legacy format (test_) and new format (pk_test_).
|
|
54
|
-
*
|
|
55
|
-
* @param apiKey - The API key to check.
|
|
56
|
-
* @returns `true` if the key is for development, `false` otherwise.
|
|
57
|
-
*/
|
|
58
|
-
declare function isDevelopmentFromPublishableKey(apiKey: string): boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Checks if a publishable key is for a production environment.
|
|
61
|
-
* Supports both legacy format (live_) and new format (pk_live_).
|
|
62
|
-
*
|
|
63
|
-
* @param apiKey - The API key to check.
|
|
64
|
-
* @returns `true` if the key is for production, `false` otherwise.
|
|
65
|
-
*/
|
|
66
|
-
declare function isProductionFromPublishableKey(apiKey: string): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Checks if a secret key is for a development environment.
|
|
69
|
-
* Supports both legacy format (test_) and new format (sk_test_).
|
|
70
|
-
*
|
|
71
|
-
* @param apiKey - The secret key to check.
|
|
72
|
-
* @returns `true` if the key is for development, `false` otherwise.
|
|
73
|
-
*/
|
|
74
|
-
declare function isDevelopmentFromSecretKey(apiKey: string): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Checks if a secret key is for a production environment.
|
|
77
|
-
* Supports both legacy format (live_) and new format (sk_live_).
|
|
78
|
-
*
|
|
79
|
-
* @param apiKey - The secret key to check.
|
|
80
|
-
* @returns `true` if the key is for production, `false` otherwise.
|
|
81
|
-
*/
|
|
82
|
-
declare function isProductionFromSecretKey(apiKey: string): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Generates a unique cookie suffix based on the publishable key using SHA-1 hashing.
|
|
85
|
-
* The suffix is base64-encoded and URL-safe (+ and / characters are replaced).
|
|
86
|
-
*
|
|
87
|
-
* @param publishableKey - The publishable key to generate suffix from.
|
|
88
|
-
* @param subtle - The SubtleCrypto interface to use for hashing (defaults to globalThis.crypto.subtle).
|
|
89
|
-
* @returns A promise that resolves to an 8-character URL-safe base64 string.
|
|
90
|
-
*/
|
|
91
|
-
declare function getCookieSuffix(publishableKey: string, subtle?: SubtleCrypto): Promise<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Creates a suffixed cookie name by appending the cookie suffix to the base name.
|
|
94
|
-
* Used to create unique cookie names based on the publishable key.
|
|
95
|
-
*
|
|
96
|
-
* @param cookieName - The base cookie name.
|
|
97
|
-
* @param cookieSuffix - The suffix to append (typically generated by getCookieSuffix).
|
|
98
|
-
* @returns The suffixed cookie name in format: `${cookieName}_${cookieSuffix}`.
|
|
99
|
-
*/
|
|
100
|
-
declare const getSuffixedCookieName: (cookieName: string, cookieSuffix: string) => string;
|
|
101
|
-
//#endregion
|
|
102
|
-
export { buildPublishableKey, createDevOrStagingUrlCache, getCookieSuffix, getSuffixedCookieName, isDevelopmentFromPublishableKey, isDevelopmentFromSecretKey, isProductionFromPublishableKey, isProductionFromSecretKey, isPublishableKey, parsePublishableKey };
|
|
103
|
-
//# sourceMappingURL=keys.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.mts","names":[],"sources":["../../src/keys.ts"],"sourcesContent":[],"mappings":";;;;;;;AAG8C,KAKzC,0BAAA,GAA0B;EA6Bf;EA4BA,KAAA,CAAA,EAAA,OAAA;EAIA;EA0EA,MAAA,CAAA,EAAA,MAAA;EA+BA;EAiCA,QAAA,CAAA,EAAA,MAAA;EAWA;EAWA,WAAA,CAAA,EAAA,OAAA;AAWhB,CAAA;AAYA;AAmBA;;;;;iBA1OgB,mBAAA;iBA4BA,mBAAA,mCAEL;;IACR;iBACa,mBAAA,oCAEJ,6BACT;;;;;;;iBAuEa,gBAAA;;;;;;;iBA+BA,0BAAA,CAAA;;;;;;;oCAUsB;;;;;;;;;iBAuBtB,+BAAA;;;;;;;;iBAWA,8BAAA;;;;;;;;iBAWA,0BAAA;;;;;;;;iBAWA,yBAAA;;;;;;;;;iBAYM,eAAA,kCAEZ,eACP;;;;;;;;;cAgBU"}
|