91 lines
3.8 KiB
TypeScript
91 lines
3.8 KiB
TypeScript
export declare const API_URL = "https://api.clerk.com";
|
|
export declare const API_VERSION = "v1";
|
|
export declare const USER_AGENT: string;
|
|
export declare const MAX_CACHE_LAST_UPDATED_AT_SECONDS: number;
|
|
export declare const SUPPORTED_BAPI_VERSION = "2025-11-10";
|
|
/**
|
|
* Sync status values for the __clerk_synced query parameter.
|
|
* Used to coordinate satellite domain authentication flows.
|
|
*/
|
|
export declare const ClerkSyncStatus: {
|
|
/** Not synced - satellite needs handshake after returning from primary sign-in */
|
|
readonly NeedsSync: "false";
|
|
/** Sync completed - prevents re-sync loop after handshake completes */
|
|
readonly Completed: "true";
|
|
};
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const constants: {
|
|
readonly Attributes: {
|
|
readonly AuthToken: "__clerkAuthToken";
|
|
readonly AuthSignature: "__clerkAuthSignature";
|
|
readonly AuthStatus: "__clerkAuthStatus";
|
|
readonly AuthReason: "__clerkAuthReason";
|
|
readonly AuthMessage: "__clerkAuthMessage";
|
|
readonly ClerkUrl: "__clerkUrl";
|
|
};
|
|
readonly Cookies: {
|
|
readonly Session: "__session";
|
|
readonly Refresh: "__refresh";
|
|
readonly ClientUat: "__client_uat";
|
|
readonly Handshake: "__clerk_handshake";
|
|
readonly DevBrowser: "__clerk_db_jwt";
|
|
readonly RedirectCount: "__clerk_redirect_count";
|
|
readonly HandshakeNonce: "__clerk_handshake_nonce";
|
|
};
|
|
readonly Headers: {
|
|
readonly Accept: "accept";
|
|
readonly AuthMessage: "x-clerk-auth-message";
|
|
readonly Authorization: "authorization";
|
|
readonly AuthReason: "x-clerk-auth-reason";
|
|
readonly AuthSignature: "x-clerk-auth-signature";
|
|
readonly AuthStatus: "x-clerk-auth-status";
|
|
readonly AuthToken: "x-clerk-auth-token";
|
|
readonly CacheControl: "cache-control";
|
|
readonly ClerkRedirectTo: "x-clerk-redirect-to";
|
|
readonly ClerkRequestData: "x-clerk-request-data";
|
|
readonly ClerkUrl: "x-clerk-clerk-url";
|
|
readonly CloudFrontForwardedProto: "cloudfront-forwarded-proto";
|
|
readonly ContentType: "content-type";
|
|
readonly ContentSecurityPolicy: "content-security-policy";
|
|
readonly ContentSecurityPolicyReportOnly: "content-security-policy-report-only";
|
|
readonly EnableDebug: "x-clerk-debug";
|
|
readonly ForwardedHost: "x-forwarded-host";
|
|
readonly ForwardedPort: "x-forwarded-port";
|
|
readonly ForwardedProto: "x-forwarded-proto";
|
|
readonly Host: "host";
|
|
readonly Location: "location";
|
|
readonly Nonce: "x-nonce";
|
|
readonly Origin: "origin";
|
|
readonly Referrer: "referer";
|
|
readonly SecFetchDest: "sec-fetch-dest";
|
|
readonly SecFetchSite: "sec-fetch-site";
|
|
readonly UserAgent: "user-agent";
|
|
readonly ReportingEndpoints: "reporting-endpoints";
|
|
};
|
|
readonly ContentTypes: {
|
|
readonly Json: "application/json";
|
|
};
|
|
readonly QueryParameters: {
|
|
readonly ClerkSynced: "__clerk_synced";
|
|
readonly SuffixedCookies: "suffixed_cookies";
|
|
readonly ClerkRedirectUrl: "__clerk_redirect_url";
|
|
readonly DevBrowser: "__clerk_db_jwt";
|
|
readonly Handshake: "__clerk_handshake";
|
|
readonly HandshakeHelp: "__clerk_help";
|
|
readonly LegacyDevBrowser: "__dev_session";
|
|
readonly HandshakeReason: "__clerk_hs_reason";
|
|
readonly HandshakeNonce: "__clerk_handshake_nonce";
|
|
readonly HandshakeFormat: "format";
|
|
readonly Session: "__session";
|
|
};
|
|
readonly ClerkSyncStatus: {
|
|
/** Not synced - satellite needs handshake after returning from primary sign-in */
|
|
readonly NeedsSync: "false";
|
|
/** Sync completed - prevents re-sync loop after handshake completes */
|
|
readonly Completed: "true";
|
|
};
|
|
};
|
|
export type Constants = typeof constants;
|
|
//# sourceMappingURL=constants.d.ts.map
|