@sylphx/sdk 0.9.0 → 0.10.1

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.
@@ -1,5 +1,5 @@
1
- import { SdkBillingPlan, SdkBillingSubscription, SdkConsentType, UserConsent as UserConsent$1, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$2, OrgSdkRole, OrgInvitation, OrgMember, Organization } from '@sylphx/contract';
2
- export { Organization } from '@sylphx/contract';
1
+ import { SdkBillingPlan, SdkBillingSubscription, SdkConsentType, UserConsent as UserConsent$1, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$2, OrgSdkRole, OrgInvitation, OrgMember, Organization, File as File$1, FileId } from '@sylphx/contract';
2
+ export { Organization, File as StorageFile, FileId as StorageFileId } from '@sylphx/contract';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { CSSProperties, ReactNode, SVGProps, Context, ErrorInfo, Component } from 'react';
@@ -922,7 +922,7 @@ type FlagClientEvent = {
922
922
  * import { createClient } from '@sylphx/sdk'
923
923
  *
924
924
  * const sylphx = createClient(process.env.SYLPHX_URL!)
925
- * // Parses: sylphx://pk_prod_{hex}@bold-river-a1b2c3.api.sylphx.com
925
+ * // Parses: sylphx://pk_prod_{ref?}_{hex}@bold-river-a1b2c3.api.sylphx.com
926
926
  * ```
927
927
  */
928
928
 
@@ -2377,6 +2377,8 @@ interface AuthContextValue extends AuthState {
2377
2377
  }) => Promise<void>;
2378
2378
  /** Get current access token (refreshes if expired) */
2379
2379
  getToken: () => Promise<string | null>;
2380
+ /** Exchange the current session for an org-scoped access token. */
2381
+ switchOrganizationToken: (orgId: string) => Promise<void>;
2380
2382
  /** Reset password with token */
2381
2383
  resetPassword: (options: ResetPasswordOptions) => Promise<void>;
2382
2384
  /** Verify email with token */
@@ -2827,6 +2829,8 @@ interface UseOrganizationReturn {
2827
2829
  hasPermission: (permission: 'manage_members' | 'access_billing' | 'manage_apps' | 'view_analytics') => boolean;
2828
2830
  /** Switch to a different organization */
2829
2831
  setOrganization: (orgIdOrSlug: string | null) => Promise<void>;
2832
+ /** Switch to a different organization and refresh the active session token. */
2833
+ switchOrg: (orgIdOrSlug: string | null) => Promise<void>;
2830
2834
  /** Create a new organization */
2831
2835
  createOrganization: (data: {
2832
2836
  name: string;
@@ -4038,47 +4042,6 @@ interface ConsentContextValue {
4038
4042
  }
4039
4043
  declare const ConsentContext: Context<ConsentContextValue | null>;
4040
4044
  declare function useConsentContext(): ConsentContextValue;
4041
- interface UploadProgressEvent {
4042
- loaded: number;
4043
- total: number;
4044
- progress: number;
4045
- }
4046
- interface UploadOptions$1 {
4047
- path?: string;
4048
- onProgress?: (event: UploadProgressEvent) => void;
4049
- /**
4050
- * Enable multipart upload for large files.
4051
- * - `true`: Always use multipart upload
4052
- * - `false`: Never use multipart upload
4053
- * - `'auto'` (default): Auto-enable for files > 5MB
4054
- *
4055
- * Multipart uploads support files up to 5TB with better
4056
- * reliability for large files.
4057
- */
4058
- multipart?: boolean | 'auto';
4059
- /**
4060
- * AbortSignal to cancel the upload.
4061
- * Vercel Blob pattern - enables cancellation of in-progress uploads.
4062
- *
4063
- * @example
4064
- * ```typescript
4065
- * const controller = new AbortController()
4066
- * setTimeout(() => controller.abort(), 30000) // Cancel after 30s
4067
- * await upload(file, { signal: controller.signal })
4068
- * ```
4069
- */
4070
- signal?: AbortSignal;
4071
- }
4072
- interface StorageContextValue {
4073
- upload: (file: File, options?: UploadOptions$1) => Promise<string>;
4074
- uploadAvatar: (file: File, options?: {
4075
- onProgress?: (event: UploadProgressEvent) => void;
4076
- }) => Promise<string>;
4077
- deleteFile: (fileId: string) => Promise<void>;
4078
- getUrl: (fileId: string) => Promise<string | null>;
4079
- }
4080
- declare const StorageContext: Context<StorageContextValue | null>;
4081
- declare function useStorageContext(): StorageContextValue;
4082
4045
  interface NewsletterContextValue {
4083
4046
  subscribe: (options: NewsletterSubscribeInput) => Promise<NewsletterSubscribeResult>;
4084
4047
  verify: (token: string) => Promise<NewsletterVerifyResult>;
@@ -6045,82 +6008,6 @@ interface UseTaskRunResult {
6045
6008
  */
6046
6009
  declare function useTaskRun(runId: string | null, options?: UseTaskRunOptions): UseTaskRunResult;
6047
6010
 
6048
- /**
6049
- * useUpload — Simple file upload hook with progress tracking.
6050
- *
6051
- * Thin DX wrapper around `useStorage` / `useFileUpload` that exposes a
6052
- * minimal, ergonomic API: upload a file, watch progress, handle errors.
6053
- *
6054
- * Uses `XMLHttpRequest` under the hood (via the platform storage context)
6055
- * for real byte-level progress events.
6056
- *
6057
- * @example
6058
- * ```tsx
6059
- * function Upload() {
6060
- * const { upload, progress, isUploading, error, reset } = useUpload()
6061
- *
6062
- * const handleChange = async (e: React.ChangeEvent<HTMLInputElement>) => {
6063
- * const file = e.target.files?.[0]
6064
- * if (!file) return
6065
- * try {
6066
- * const { url } = await upload(file, { generateKey: true })
6067
- * console.log('Uploaded:', url)
6068
- * } catch {}
6069
- * }
6070
- *
6071
- * return (
6072
- * <div>
6073
- * <input type="file" onChange={handleChange} disabled={isUploading} />
6074
- * {isUploading && <progress value={progress} max={100} />}
6075
- * {error && <p>{error.message}</p>}
6076
- * </div>
6077
- * )
6078
- * }
6079
- * ```
6080
- */
6081
-
6082
- interface UploadOptions {
6083
- /** Destination bucket (defaults to app default) */
6084
- bucket?: string;
6085
- /** Custom storage path / key */
6086
- path?: string;
6087
- /** Called with progress 0–100 during upload */
6088
- onProgress?: (progress: number) => void;
6089
- /** Auto-generate a unique key for the file (default: true) */
6090
- generateKey?: boolean;
6091
- }
6092
- interface UploadResult$1 {
6093
- /** Public (or signed) URL of the uploaded file */
6094
- url: string;
6095
- /** Storage key / path of the uploaded file */
6096
- key: string;
6097
- }
6098
- interface UseUploadResult {
6099
- /**
6100
- * Upload a file.
6101
- * Resolves with `{ url, key }` on success.
6102
- * Throws `SylphxError` on failure.
6103
- */
6104
- upload: (file: File, options?: UploadOptions) => Promise<UploadResult$1>;
6105
- /** Upload progress 0–100 */
6106
- progress: number;
6107
- /** True while an upload is in flight */
6108
- isUploading: boolean;
6109
- /** Non-null when the last upload failed */
6110
- error: SylphxError | null;
6111
- /** Cancel an in-progress upload */
6112
- cancel: () => void;
6113
- /** Reset progress, error and state to initial values */
6114
- reset: () => void;
6115
- }
6116
- /**
6117
- * Minimal file upload hook with real-time progress and error surfacing.
6118
- *
6119
- * Delegates to the platform `StorageContext` (injected by `SylphxProvider`)
6120
- * which handles XHR progress events, presigned-URL flows, and retries.
6121
- */
6122
- declare function useUpload(): UseUploadResult;
6123
-
6124
6011
  /**
6125
6012
  * Monitoring Hooks
6126
6013
  *
@@ -6531,6 +6418,8 @@ interface PlatformContextValue {
6531
6418
  appId: string;
6532
6419
  /** Platform API URL */
6533
6420
  platformUrl: string;
6421
+ /** Same-origin auth route prefix used by middleware BFF routes. */
6422
+ authPrefix: string;
6534
6423
  /** Project slug (ADR-055) for SDK config */
6535
6424
  slug?: string;
6536
6425
  /**
@@ -7545,7 +7434,7 @@ interface SylphxProviderProps {
7545
7434
  *
7546
7435
  * export default async function RootLayout({ children }) {
7547
7436
  * const config = await getAppConfig({
7548
- * secretKey: process.env.SYLPHX_SECRET_KEY!,
7437
+ * secretKey: createServerClient(process.env.SYLPHX_SECRET_URL!).secretKey!,
7549
7438
  * appId: process.env.NEXT_PUBLIC_SYLPHX_APP_ID!,
7550
7439
  * })
7551
7440
  *
@@ -7896,216 +7785,116 @@ interface UseHasPermissionReturn {
7896
7785
  */
7897
7786
  declare function useHasPermission(permissions: string[], required: string | string[]): UseHasPermissionReturn;
7898
7787
 
7899
- interface StorageFile {
7900
- /** File ID */
7901
- id: string;
7902
- /** File path/key */
7903
- path: string;
7904
- /** Original filename */
7905
- filename: string;
7906
- /** MIME type */
7907
- mimeType: string;
7908
- /** Size in bytes */
7909
- sizeBytes: number;
7910
- /** Public URL (if public) */
7911
- publicUrl?: string | null;
7912
- /** Created timestamp */
7913
- createdAt: string;
7914
- /** Custom metadata */
7915
- metadata?: Record<string, string>;
7788
+ /**
7789
+ * Storage SDK — pure functional, namespaced. Per ADR-100.
7790
+ *
7791
+ * Wire is the contract in `@sylphx/contract` (`schemas/storage.ts` +
7792
+ * `endpoints/storage.ts`). This module is the only public surface for
7793
+ * uploads / files; consumers import the `storage` namespace.
7794
+ *
7795
+ * Features (built-in defaults, ADR-100 §2.8):
7796
+ * - Idempotency-Key auto-generated (UUIDv7) on every POST
7797
+ * - Single-part PUT or multipart, picked server-side from `size`
7798
+ * - Streaming SHA-256 via the Web Crypto API
7799
+ * - Resumable: persists `(uploadId, completedParts[])` to localStorage when available
7800
+ * - AbortSignal cancellation; auto-DELETE upload session on abort
7801
+ * - Exponential backoff with full jitter (5 retries, 1s base, 30s cap)
7802
+ * - Progress: byte-accurate via XHR (browser) or stream sampling (node)
7803
+ *
7804
+ * No vendor SDKs. Pure `fetch` + `XMLHttpRequest`.
7805
+ */
7806
+
7807
+ interface UploadProgressEvent {
7808
+ loaded: number;
7809
+ total: number;
7810
+ partsCompleted: number;
7811
+ partsTotal: number;
7812
+ }
7813
+ interface UploadCreateOptions {
7814
+ /** Logical name; preserved as metadata. Defaults to `blob.name` if `File`. */
7815
+ filename?: string;
7816
+ /** MIME type override; defaults to `blob.type` or `application/octet-stream`. */
7817
+ contentType?: string;
7818
+ /** Logical folder path within the project namespace. */
7819
+ folder?: string;
7820
+ /** Defaults to `'private'`. */
7821
+ visibility?: 'public' | 'private';
7822
+ /** Arbitrary user-attached metadata. */
7823
+ metadata?: Record<string, unknown>;
7824
+ /** Pre-computed SHA-256 (hex). If absent, the SDK computes it. */
7825
+ checksumSha256?: string;
7826
+ /** Fail when a file already exists at `(folder, filename)`. */
7827
+ ifNoneMatch?: '*';
7828
+ /** Cancellation. Aborts in-flight PUTs and triggers `DELETE /uploads/{id}`. */
7829
+ signal?: AbortSignal;
7830
+ /** Override the auto-generated UUIDv7 idempotency key. */
7831
+ idempotencyKey?: string;
7832
+ /** Progress callback. */
7833
+ onProgress?: (event: UploadProgressEvent) => void;
7834
+ }
7835
+ interface ListFilesOptions {
7836
+ folder?: string;
7837
+ cursor?: string;
7838
+ limit?: number;
7839
+ includeDeleted?: boolean;
7916
7840
  }
7917
7841
 
7918
7842
  /**
7919
- * Storage Hooks
7843
+ * Storage hooks — ADR-100.
7844
+ *
7845
+ * Surface (3 hooks, no legacy):
7920
7846
  *
7921
- * React hooks for file storage operations.
7922
- * Separated from auth hooks for clean responsibility separation.
7847
+ * - `useStorage()` `{ upload, files, isUploading, isLoadingFiles, error, refetch }`
7848
+ * - `useFile(fileId)` `{ file, isLoading, error }`
7849
+ * - `useFileList(options?)` — `{ files, nextCursor, isLoading, loadMore }`
7923
7850
  *
7924
- * ## Industry-Standard Features
7925
- * - **Cancellation**: AbortController support (Vercel Blob pattern)
7926
- * - **Retry**: Exponential backoff with jitter (handled internally)
7927
- * - **Progress**: Real-time upload progress tracking
7851
+ * Built on TanStack Query (peer dep). The pure functional surface comes
7852
+ * from `@sylphx/sdk` `storage.uploads.*` / `storage.files.*`.
7928
7853
  */
7929
7854
 
7930
7855
  interface UseStorageReturn {
7931
- /** Upload a file and get back the public URL */
7932
- upload: (file: File, options?: {
7933
- path?: string;
7934
- signal?: AbortSignal;
7935
- }) => Promise<string>;
7936
- /** Upload an avatar (shortcut for profile pictures) */
7937
- uploadAvatar: (file: File) => Promise<string>;
7938
- /** Delete a file by ID */
7939
- deleteFile: (fileId: string) => Promise<void>;
7940
- /** Get a signed URL for a file (returns null if not found) */
7941
- getUrl: (fileId: string) => Promise<string | null>;
7942
- /** Cancel the current upload (Vercel Blob pattern) */
7943
- cancel: () => void;
7944
- /** Whether an upload is in progress */
7856
+ upload(file: Blob | File, options?: UploadCreateOptions): Promise<File$1>;
7857
+ uploadAvatar(file: Blob | File, options?: UploadCreateOptions): Promise<File$1>;
7858
+ files: File$1[] | undefined;
7945
7859
  isUploading: boolean;
7946
- /** Upload progress (0-100, real-time) */
7860
+ isLoadingFiles: boolean;
7947
7861
  progress: number;
7948
- /** Bytes uploaded so far */
7949
- bytesUploaded: number;
7950
- /** Total bytes to upload */
7951
- bytesTotal: number;
7952
- /** Last upload error */
7862
+ error: Error | null;
7953
7863
  uploadError: Error | null;
7954
- /** Whether the last upload was cancelled */
7955
- wasCancelled: boolean;
7864
+ refetch(): Promise<void>;
7956
7865
  }
7957
7866
  /**
7958
- * Hook to handle file uploads to platform storage with real-time progress
7959
- *
7960
- * ## Industry-Standard Features
7961
- * - **Cancellation**: `cancel()` method to abort in-progress uploads (Vercel Blob pattern)
7962
- * - **AbortSignal**: Pass custom signal via upload options
7963
- * - **Progress**: Real-time byte-level progress tracking
7964
- *
7965
- * @example Basic usage
7966
- * ```tsx
7967
- * function AvatarUpload() {
7968
- * const { uploadAvatar, isUploading, progress, bytesUploaded, bytesTotal, uploadError } = useStorage()
7969
- * const { user, refresh } = useUser()
7970
- *
7971
- * const handleUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {
7972
- * const file = e.target.files?.[0]
7973
- * if (!file) return
7867
+ * Composite storage hook exposes a one-shot `upload` mutation plus a
7868
+ * cached file list. For finer-grained control reach for `useFileList`
7869
+ * (paginated) or `useFile` (single resource).
7974
7870
  *
7975
- * try {
7976
- * const url = await uploadAvatar(file)
7977
- * await refresh() // Refresh user to get new avatar URL
7978
- * console.log('Avatar uploaded:', url)
7979
- * } catch (err) {
7980
- * console.error('Upload failed:', err)
7981
- * }
7982
- * }
7983
- *
7984
- * return (
7985
- * <div>
7986
- * <input type="file" accept="image/*" onChange={handleUpload} disabled={isUploading} />
7987
- * {isUploading && (
7988
- * <div>
7989
- * <progress value={progress} max={100} />
7990
- * <span>{Math.round(progress)}% ({(bytesUploaded / 1024).toFixed(1)}KB / {(bytesTotal / 1024).toFixed(1)}KB)</span>
7991
- * </div>
7992
- * )}
7993
- * {uploadError && <p>Error: {uploadError.message}</p>}
7994
- * </div>
7995
- * )
7996
- * }
7997
- * ```
7998
- *
7999
- * @example With cancellation
7871
+ * @example
8000
7872
  * ```tsx
8001
- * function CancellableUpload() {
8002
- * const { upload, cancel, isUploading, progress, wasCancelled } = useStorage()
8003
- *
8004
- * return (
8005
- * <div>
8006
- * <input type="file" onChange={(e) => {
8007
- * const file = e.target.files?.[0]
8008
- * if (file) upload(file)
8009
- * }} />
8010
- * {isUploading && (
8011
- * <button onClick={cancel}>Cancel Upload</button>
8012
- * )}
8013
- * {wasCancelled && <p>Upload was cancelled</p>}
8014
- * </div>
8015
- * )
8016
- * }
7873
+ * const { upload, files, isUploading } = useStorage()
7874
+ * await upload(blob, { folder: 'docs' })
8017
7875
  * ```
8018
7876
  */
8019
7877
  declare function useStorage(): UseStorageReturn;
8020
- interface UseFileUploadOptions {
8021
- /** Custom path for the file */
8022
- path?: string;
8023
- /** Allowed MIME types */
8024
- accept?: string[];
8025
- /** Max file size in bytes */
8026
- maxSize?: number;
8027
- /** Called when upload succeeds */
8028
- onSuccess?: (url: string) => void;
8029
- /** Called when upload fails */
8030
- onError?: (error: Error) => void;
8031
- /** Called when upload is cancelled */
8032
- onCancel?: () => void;
8033
- }
8034
- interface UseFileUploadReturn {
8035
- /** Upload a file */
8036
- upload: (file: File) => Promise<string>;
8037
- /** Cancel the current upload (Vercel Blob pattern) */
8038
- cancel: () => void;
8039
- /** Whether an upload is in progress */
8040
- isUploading: boolean;
8041
- /** Upload progress (0-100, real-time) */
8042
- progress: number;
8043
- /** Bytes uploaded so far */
8044
- bytesUploaded: number;
8045
- /** Total bytes to upload */
8046
- bytesTotal: number;
8047
- /** Last upload error */
7878
+ interface UseFileReturn {
7879
+ file: File$1 | undefined;
7880
+ isLoading: boolean;
8048
7881
  error: Error | null;
8049
- /** Whether there was an error */
8050
- isError: boolean;
8051
- /** Whether the last upload was cancelled */
8052
- wasCancelled: boolean;
8053
- /** Last uploaded URL */
8054
- url: string | null;
8055
- /** Reset state */
8056
- reset: () => void;
8057
7882
  }
8058
7883
  /**
8059
- * Simplified hook for single file upload with validation
8060
- *
8061
- * ## Industry-Standard Features
8062
- * - **Cancellation**: `cancel()` method to abort in-progress uploads (Vercel Blob pattern)
8063
- * - **Validation**: File type and size validation before upload
8064
- * - **Callbacks**: onSuccess, onError, onCancel hooks
8065
- *
8066
- * @example Basic usage
8067
- * ```tsx
8068
- * function FileUpload() {
8069
- * const { upload, isUploading, url, error } = useFileUpload({
8070
- * accept: ['image/*'],
8071
- * maxSize: 5 * 1024 * 1024, // 5MB
8072
- * onSuccess: (url) => console.log('Uploaded:', url),
8073
- * })
8074
- *
8075
- * return (
8076
- * <input
8077
- * type="file"
8078
- * onChange={(e) => {
8079
- * const file = e.target.files?.[0]
8080
- * if (file) upload(file)
8081
- * }}
8082
- * disabled={isUploading}
8083
- * />
8084
- * )
8085
- * }
8086
- * ```
8087
- *
8088
- * @example With cancellation
8089
- * ```tsx
8090
- * function CancellableUpload() {
8091
- * const { upload, cancel, isUploading, wasCancelled } = useFileUpload({
8092
- * onCancel: () => console.log('Upload cancelled'),
8093
- * })
8094
- *
8095
- * return (
8096
- * <div>
8097
- * <input type="file" onChange={(e) => {
8098
- * const file = e.target.files?.[0]
8099
- * if (file) upload(file)
8100
- * }} />
8101
- * {isUploading && <button onClick={cancel}>Cancel</button>}
8102
- * {wasCancelled && <p>Upload cancelled</p>}
8103
- * </div>
8104
- * )
8105
- * }
8106
- * ```
7884
+ * Fetch a single file by id (cached).
7885
+ */
7886
+ declare function useFile(fileId: FileId | string): UseFileReturn;
7887
+ interface UseFileListReturn {
7888
+ files: File$1[];
7889
+ nextCursor: string | null;
7890
+ isLoading: boolean;
7891
+ loadMore(): Promise<void>;
7892
+ }
7893
+ /**
7894
+ * Paginated, cursor-based file listing. Call `loadMore()` to append the
7895
+ * next page; `nextCursor` is `null` when exhausted.
8107
7896
  */
8108
- declare function useFileUpload(options?: UseFileUploadOptions): UseFileUploadReturn;
7897
+ declare function useFileList(options?: ListFilesOptions): UseFileListReturn;
8109
7898
 
8110
7899
  /**
8111
7900
  * Background Task Hooks
@@ -10179,17 +9968,17 @@ declare function sanitizeUrl$1(url: string): string | null;
10179
9968
  * 5. Single Source of Truth - All key logic in one place
10180
9969
  *
10181
9970
  * Key Formats (ADR-021):
10182
- * - Publishable key: pk_(dev|stg|prod)_{ref}_{32hex} — client-safe (new)
10183
- * - Secret Key: sk_(dev|stg|prod)_{ref}_{64hex} — server-side only
9971
+ * - Publishable key: pk_(dev|stg|prod|prev)_{ref}_{32hex} — client-safe (new)
9972
+ * - Secret Key: sk_(dev|stg|prod|prev)_{ref}_{64hex} — server-side only
10184
9973
  *
10185
9974
  * Legacy Key Formats (backward-compat):
10186
- * - App ID (old): app_(dev|stg|prod)_[identifier] — Public identifier
9975
+ * - App ID (old): app_(dev|stg|prod|prev)_[identifier] — Public identifier
10187
9976
  *
10188
9977
  * Special Internal Formats (NOT rotated):
10189
9978
  * - Console bootstrap: app_prod_platform_{slug} / sk_prod_platform_{slug}
10190
9979
  */
10191
9980
  /** Environment type derived from key prefix */
10192
- type EnvironmentType = 'development' | 'staging' | 'production';
9981
+ type EnvironmentType = 'development' | 'staging' | 'production' | 'preview';
10193
9982
  /** Key type - publicKey (pk_*), appId (legacy app_*), or secret (sk_*) */
10194
9983
  type KeyType = 'publicKey' | 'appId' | 'secret';
10195
9984
  /** Validation result with clear error information */
@@ -10239,7 +10028,7 @@ declare function validateAndSanitizeAppId(key: string | undefined | null): strin
10239
10028
  *
10240
10029
  * @example
10241
10030
  * ```typescript
10242
- * const result = validateSecretKey(process.env.SYLPHX_SECRET_KEY)
10031
+ * const result = validateSecretKey('sk_prod_...')
10243
10032
  * if (!result.valid) {
10244
10033
  * throw new Error(result.error)
10245
10034
  * }
@@ -10311,7 +10100,7 @@ declare function isSecretKey(key: string): boolean;
10311
10100
  *
10312
10101
  * @example
10313
10102
  * ```typescript
10314
- * const result = validateKey(process.env.SYLPHX_SECRET_KEY)
10103
+ * const result = validateKey('sk_prod_...')
10315
10104
  * if (!result.valid) {
10316
10105
  * throw new Error(result.error)
10317
10106
  * }
@@ -14081,7 +13870,7 @@ declare function useKv(options?: UseKvOptions): UseKvReturn;
14081
13870
  * import { createConfig, indexDocument, search, batchIndex } from '@sylphx/sdk'
14082
13871
  *
14083
13872
  * const config = createConfig({
14084
- * secretKey: process.env.SYLPHX_SECRET_KEY!,
13873
+ * secretKey: createServerClient(process.env.SYLPHX_SECRET_URL!).secretKey!,
14085
13874
  * })
14086
13875
  *
14087
13876
  * // Index a document
@@ -14366,4 +14155,4 @@ interface VitalReportPayload {
14366
14155
  */
14367
14156
  declare function SpeedInsights({ appKey, endpoint, samplingRate, debug, reportAllChanges, }: SpeedInsightsProps): null;
14368
14157
 
14369
- export { AIContext, type AIContextValue, type APIKey, APIKeyManager, type APIKeyManagerProps, AccountSection, type AccountSectionProps, type AdditionalField, AdminOnly, type AmplitudeDestinationConfig, type AnalyticsConfig, AnalyticsDashboard, type AnalyticsDashboardProps, type AnalyticsDataPoint, type DeviceContext as AnalyticsDeviceContext, type AnalyticsEvent$1 as AnalyticsEvent, type EventProperties as AnalyticsEventProperties, type PageContext as AnalyticsPageContext, AnalyticsProvider, type AnalyticsProviderProps, type AnalyticsQuery, type AnalyticsQueryResult, type AnalyticsStat, AnalyticsTracker, type UserProperties as AnalyticsUserProperties, type AppConfig, type AppMetadata, type AsyncState, type AttributionData, AuthContext, type AuthContextValue, AuthLoading, type AuthLoginResult, type AuthRegisterResult, type AuthSession, type AuthState, type AuthUser, AuthorizationError, Autocapture, type AutocaptureConfig, AvatarUpload, type AvatarUploadProps, type BaseDestinationConfig, BillingCard, type BillingCardProps, BillingSection, type BillingSectionProps, type Breadcrumb$1 as Breadcrumb, type BreadcrumbType, type CaptureExceptionOptions$1 as CaptureExceptionOptions, type CaptureMessageOptions$1 as CaptureMessageOptions, type CaptureResult, ChatBubble, type ChatBubbleProps, ChatInput, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, CheckoutButton, type CheckoutButtonProps, type ClickIds, type ConditionalStep, ConfigContext, type ConnectedAccount, type ConsentCategory$1 as ConsentCategory, ConsentContext, type ConsentContextValue, ConsentGuard, type ConsentGuardProps, ConsentPreferences, type ConsentPreferencesProps, ConsentScript, type ConsentScriptProps, type ConsentType, type ConsoleLog, type ConversionData, CookieBanner, type CookieBannerProps, type CoreWebVitalName, type CreateCronInput, type CreateCronResult, CreateOrganization, type CreateOrganizationProps, type CreatePermissionInput, type CreateRoleInput, CronBuilder, type CronBuilderProps, type CronSchedule, type CustomDestinationConfig, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTOCAPTURE_CONFIG, DEFAULT_ERROR_CONFIG, DEFAULT_FLAGS_CONFIG, DEFAULT_JOBS_CONFIG, DEFAULT_RETRY_DELAYS, DEFAULT_WEB_VITALS_CONFIG, type DLQOptions, type DataState, DatabaseContext, type DatabaseContextValue, type DeadClick, DeadClickDetector, type DestinationConfig, type ConsentCategory as DestinationConsentCategory, type DestinationPlatform, type DestinationRouter, type DestinationRouterConfig, DestinationRouterProvider, type DestinationRouterProviderProps, type DestinationType, type DeviceSession, type ElementData, EmailContext, type EmailContextValue, type EmailOptions, type EnabledProvider, type EnvironmentType, ErrorBoundary, type ErrorBoundaryFallbackProps, type ErrorBoundaryProps, type Breadcrumb as ErrorBreadcrumb, type ErrorCallback, type CaptureExceptionOptions as ErrorCaptureExceptionOptions, type CaptureMessageOptions as ErrorCaptureMessageOptions, type ErrorCode, type ErrorEvent, ErrorTracker, type ErrorTrackingConfig, type EvaluationContext, type EvaluationReason, type EvaluationResult, type EventCallback, EventViewer, type EventViewerProps, type ExceptionValue, type Experiment, type ExperimentExposure, ExperimentManager, FacebookPixel, type FacebookPixelProps, type FeatureFlag, type FeatureFlagContextValue, type FeatureFlagDefinition, FeatureFlagProvider, type FeatureFlagProviderProps, type FeatureFlagsConfig, FeatureFlagsProvider, type FeatureFlagsProviderProps, FeatureGate, type FeatureGateProps, FeatureValue, type FeatureValueProps, FeatureVariant, type FeatureVariantProps, FeedbackWidget, type FeedbackWidgetProps, FileUpload, type FileUploadProps, type FlagClientEvent, type FlagDefinition, FlagDevTools, type FlagDevToolsProps, type FlagOverrides, FlagStream, type FlagValue, type FlagVariant, type FlagValue$1 as FlagsValue, ForgotPassword, type ForgotPasswordFormState, type ForgotPasswordProps, type GA4DestinationConfig, type GTMDestinationConfig, GoogleAnalytics, type GoogleAnalyticsProps, GoogleConsentMode, type GoogleConsentModeConfig, type GoogleConsentModeProps, type GoogleConsentState, type GoogleConsentType, GoogleTagManager, type GoogleTagManagerProps, Hotjar, type HotjarProps, ImageUploader, type ImageUploaderProps, type InAppMessage, type InAppMessagePriority, type InAppMessageType, type InAppMessageWithReadStatus, type InboxPreferences, Intercom, type IntercomProps, type InviteInfo, InviteMember, type InviteMemberProps, type Invoice, InvoiceHistory, type InvoiceHistoryProps, type JobContext, type JobDefinition, type JobEvent, type Job$1 as JobInstance, JobList, type JobListProps, type JobOptions, type JobPayload, type JobPriority, type JobResult, JobScheduler, type JobSchedulerProps, type JobStep, JobsClient, type TasksConfig as JobsConfig, JobsContext, type JobsContextValue, type JobStatus$1 as JobsStatus, type KeyType, type KeyValidationResult, type KvRateLimitResult, type KvSetOptions, type KvZMember, LocalEvaluator, type LoginHistoryEntry, type LoopStep, type MarkerType, type MemberPermissionsResult, MembersList, type MembersListProps, type MetricRating, type MixpanelDestinationConfig, type MobileDevice, Modal, type ModalProps, ModelCard, type ModelCardProps, ModelGrid, type ModelGridProps, ModelSelector, type ModelSelectorProps, MonitoringContext, type MonitoringContextValue, type MonitoringLevel, NavigationTracker, NetworkError, type NetworkRequest, type NewAPIKey, NewsletterContext, type NewsletterContextValue, NewsletterForm, type NewsletterFormProps, NotFoundError, type Notification, NotificationBell, type NotificationBellProps, NotificationList, type NotificationListProps, NotificationSettings, type NotificationSettingsProps, OAUTH_PROVIDER_META, OAuthButton, type OAuthButtonProps, OAuthButtons, type OAuthButtonsProps, OAuthIcons, type OAuthProvider, type OAuthProviderInfo, type OAuthProviderWithIcon, OrDivider, type OrgRole, type OrganizationInvitation, OrganizationList, type OrganizationListProps, type OrganizationMember, OrganizationProfile, type OrganizationProfileProps, OrganizationSwitcher, type OrganizationSwitcherProps, type ParallelStep, type PasskeyInfo, type PaymentMethod, PaymentMethodManager, type PaymentMethodManagerProps, type Permission, type Plan, type ClickIds as PlatformClickIds, PlatformContext, type PlatformContextValue, type PostHogDestinationConfig, type PreSubmitResult, type PreferenceOption, PremiumOnly, PricingTable, type PricingTableProps, type PrivacyMode, type ProfileSection, Protect, type ProtectProps, ProtectedRoute, type PushPreferences, PushPrompt, type PushPromptProps, type QueryResult, type RageClick, RageClickDetector, RateLimitError, type RealtimeStatus, type RecorderState, type RecorderStatus, ReferralCard, type ReferralCardProps, type ReferralStats, type ReferrerData, ResetPassword, type ResetPasswordFormState, type ResetPasswordProps, type RetryDelayStrategy, type Role, DEFAULT_CONFIG as SESSION_REPLAY_DEFAULT_CONFIG, type SagaStep, type SamplingStrategy, type ScheduleJobInput as ScheduleTaskInput, type ScheduleJobResult as ScheduleTaskResult, type ScheduledJob, type ScriptManagerContextValue, ScriptManagerProvider, type ScriptQueueItem, type ScriptStrategy, ScrollThrashingDetector, SdkAuthContext, type SdkAuthContextValue, type SdkConnectedAccount, type SdkLoginHistoryEntry, type SdkPasskeyInfo, type SdkPasswordStatus, type SdkSecurityAlert, type SdkSecurityAlertsResult, type SdkTwoFactorStatus, type SdkUserProfile, SecurityContext, type SecurityContextValue, type SecurityFactor, type SecurityGrade, type SecurityPriority, type SecurityRecommendation, type SecurityScoreResult, SecuritySettings, type SecuritySettingsProps, type SegmentDestinationConfig, type SessionData, type SessionMarker, type SessionMetadata, SessionRecorder, type SessionReplayConfig, type SessionSummary, SignIn, SignInForm, type SignInFormProps, type SignInFormState, type SignInMethod, type SignInOptions, type SignInProps, type SignInStep, type SignInWithOAuthOptions, SignUp, SignUpForm, type SignUpFormProps, type SignUpFormState, type SignUpProps, type SignUpStep, type SignUpSubmitResult, SignedIn, SignedOut, SimpleChart, type SimpleChartProps, type AnalyticsEvent as SmartAnalyticsEvent, SpeedInsights, type SpeedInsightsProps, type StackFrame, type StandardRole, StatsCard, type StatsCardProps, StatsGrid, type StatsGridProps, type StepContext, StorageContext, type StorageContextValue, type StorageFile, type StreamMessage, type Subscriber, SubscriberPreferences, type SubscriberPreferencesProps, type SubscriberStatus, type Subscription, type SubworkflowStep, type SylphxClientConfig, type SylphxDestinationConfig, SylphxError, SylphxErrorBoundary, type SylphxErrorBoundaryProps, type SylphxErrorCode, SylphxProvider, type SylphxProviderProps, type TargetingCondition, type TargetingOperator, type TargetingRule, type Task, type TaskRunStatus, TaskScheduler, type TaskSchedulerProps, type TaskStatus, type TaskStatusFilter, type ThemeVariables, type TimeSeriesData, type TrackOptions, type TwoFactorSetupResult, type TwoFactorStatus, UnsubscribeConfirm, type UnsubscribeConfirmProps, type UpdateRoleInput, type UploadCallback, type UploadOptions, type UploadResult$1 as UploadResult, type UsageItem, UsageOverview, type UsageOverviewProps, type UseAIReturn, type UseAchievementsReturn, type UseAnalyticsQueryOptions, type UseAnalyticsQueryReturn, type UseAnalyticsReturn$1 as UseAnalyticsReturn, type UseAuthReturn, type UseBillingReturn, type UseChatOptions, type UseChatReturn, type UseCombinedMonitoringOptions, type UseCompletionOptions, type UseCompletionReturn, type UseConsentCheckOptions, type UseConsentCheckReturn, type UseConsentGateOptions, type UseConsentGateReturn, type UseConsentReturn, type UseConversionTrackingReturn, type UseDestinationRouterOptions, type UseDestinationRouterReturn, type UseEmailReturn, type UseEmbeddingOptions, type UseEmbeddingReturn, type UseEnhancedErrorTrackingOptions, type UseEnhancedErrorTrackingReturn, type UseErrorBoundaryOptions, type UseErrorTrackingReturn, type UseFeatureFlagOptions, type UseFeatureFlagReturn, type UseFileUploadOptions, type UseFileUploadReturn, type UseFlagStatusOptions, type UseFlagStatusResult, type UseFeatureFlagsReturn as UseFlagsReturn, type UseForgotPasswordFormOptions, type UseForgotPasswordFormReturn, type UseGlobalErrorHandlerOptions, type UseHasPermissionReturn, type UseInboxReturn, type UseKvOptions, type UseKvReturn, type UseLeaderboardReturn, type UseMemberPermissionsReturn, type UseMobilePushReturn, type UseModelsOptions, type UseModelsReturn, type UseNewsletterReturn, type UseNotificationsReturn, type UseOAuthProvidersReturn, type UseOrganizationReturn, type UsePermissionsReturn, type UseRealtimeChannelsOptions, type UseRealtimeOptions, type UseRealtimeReturn, type UseReferralReturn, type UseResetPasswordFormOptions, type UseResetPasswordFormReturn, type UseRolesReturn, type UseSafeAchievementsReturn, type UseSafeAnalyticsReturn, type UseSafeAuthReturn, type UseSafeBillingReturn, type UseSafeConsentReturn, type UseSafeLeaderboardReturn, type UseSafeStreakReturn, type UseSafeUserReturn, type UseSearchOptions, type UseSearchReturn, type UseSessionReplayOptions, type UseSessionReplayReturn, type UseSessionReturn, type UseSignInFormOptions, type UseSignInFormReturn, type UseSignUpFormOptions, type UseSignUpFormReturn, type UseAnalyticsReturn as UseSmartAnalyticsReturn, type UseStorageReturn, type UseStreakReturn, type UseSubscriberFormOptions, type UseSubscriberFormReturn, type UseSylphxReturn, type UseTaskRunOptions, type UseTaskRunResult, type UseTasksReturn, type UseUploadResult, type UseUserReturn, type UseWebAnalyticsReturn, type UseWebVitalOptions, type UseWebVitalReturn, type UseWebVitalsAnalyticsOptions, type UseWebVitalsOptions, type UseWebVitalsReturn, type UseWebhookDeliveriesOptions, type UseWebhookDeliveriesReturn, type UseWebhookStatsReturn, type UseWebhooksReturn, UserButton, type UserButtonProps, type UserConsent, UserContext, type UserContextValue, UserProfile, type UserProfileProps, type UtmParams, ValidationError, VerifyEmail, type VerifyEmailProps, type VitalReportPayload, WEB_VITALS_THRESHOLDS, type WaitStep, WebAnalytics, type WebAnalyticsProps, type WebVitalAttribution, type WebVitalMetric, type WebVitalName, type WebVitalsConfig, type WebVitalsReport, type Webhook, type WebhookDelivery, WebhookDeliveryLog, type WebhookDeliveryLogProps, WebhookManager, type WebhookManagerProps, WebhooksContext, type WebhooksContextValue, type WithSessionReplayProps, type Workflow, WorkflowBuilder, type WorkflowDefinition, type WorkflowEvent, type WorkflowOptions, type WorkflowStep, addBreadcrumb as addErrorBreadcrumb, analyzeReferrer, baseStyles, buildElementData, calculateExperimentDuration, calculateSampleSize, checkCoreWebVitals, clearBreadcrumbs as clearErrorBreadcrumbs, conditional, conditionalStyle, createDestinationRouter, createExperiment, createFlagStream, createJobsClient, createStyles, createWorkflow, darkTheme, defaultTheme, delay, detectEnvironment, detectKeyType, detectSensitiveFields, enableAutoCapture, fanOut, fetchFlags, generateElementName, generateEventName, generatePrivacyReport, getAnalyticsTracker, getBucket, getCookieNamespace, getBreadcrumbs as getErrorBreadcrumbs, getEvaluator, getExperimentManager, getMetric, getPrivacyOptions, getRecorder, getTracker, getUserBucket, getWebVitalsReport, initAnalytics, initAutocapture, initErrorTracking, initFeatureFlags, initNavigationTracker, initWebVitals, injectGlobalStyles, isAppId, isDevelopmentKey, isDevelopmentRuntime, isProductionKey, isSecretKey, isSylphxError, isValidRedirectUrl, isWebVitalsInitialized, job, jobIf, loop, mergeStyles, murmurHash3, oauthProviderIcon, parallel, pollFlags, providerBrandColor, providerDisplayName, resetAnalyticsTracker, resetEvaluator, resetRecorder, resetTracker, resetWebVitals, resolveOAuthProviderIcon, resolveOAuthProviderMeta, safeRedirect, saga, sanitizeForLogging, sanitizeUrl as sanitizeReplayUrl, sanitizeUrl$1 as sanitizeUrl, selectVariant, sequence, sleepUntil, subworkflow, toSylphxError, useAI, useAIContext, useAchievements, useAnalytics, useAnalyticsQuery, useAppMetadata, useAuth, useBilling, useChat, useCombinedMonitoring, useCompletion, useComponentTracking, useConfig, useOAuthProviders as useConfigOAuthProviders, useConsent, useConsentCheck, useConsentContext, useConsentGate, useConsentTypes, useConversionTracking, useDatabaseContext, useDestinationRouter, useEmail, useEmailContext, useEmbedding, useEnhancedErrorTracking, useErrorBoundary, useErrorTracking, useExperiment, useFeatureFlag, useFeatureFlagDefinitions, useFeatureFlags$1 as useFeatureFlags, useFeatureTracking, useFileUpload, useFlag, useFlagEvaluation, useFlagJSON, useFlagNumber, useFlagOverrides, useFlagStatus, useFlagString, useFlagStatus as useFlagWithStatus, useFeatureFlags as useFlags, useFlagsReady, useForgotPasswordForm, useFormTracking, useGlobalErrorHandler, useGoogleConsentMode, useHasPermission, useInbox, useIsInTreatment, useIsInVariant, useKv, useLeaderboard, useMemberPermissions, useMobilePush, useModal, useModels, useMonitoringContext, useNewsletter, useNewsletterContext, useNotifications, useOAuthProviders$1 as useOAuthProviders, useOrganization, usePageView, usePermissions, usePlans, useProtect, useRealtime, useRealtimeChannels, useReferral, useResetPasswordForm, useRoles, useRouterContext, useSafeAchievements, useSafeAnalytics, useSafeAuth, useSafeBilling, useSafeConsent, useSafeLeaderboard, useSafeStreak, useSafeUser, useScriptManager, useSdkAuthContext, useSearch, useSecurityContext, useSession, useSessionReplay, useSessionReplayErrorMarker, useSignInForm, useSignUpForm, useAnalyticsHook as useSmartAnalytics, useStorage, useStorageContext, useStreak, useSubscriberForm, useSylphx, useTaskRun, useTasks, useTasksContext, useTimeTracking, useUpload, useUser, useUserContext, useWebAnalytics, useWebVital, useWebVitals, useWebVitalsAnalytics, useWebhookDeliveries, useWebhookStats, useWebhooks, useWebhooksContext, validateAndSanitizeAppId, validateAndSanitizeKey, validateAndSanitizeSecretKey, validateAppId, validateKey, validateSecretKey, validateWorkflow, wait, withRetry, withSessionReplay, withTimeout };
14158
+ export { AIContext, type AIContextValue, type APIKey, APIKeyManager, type APIKeyManagerProps, AccountSection, type AccountSectionProps, type AdditionalField, AdminOnly, type AmplitudeDestinationConfig, type AnalyticsConfig, AnalyticsDashboard, type AnalyticsDashboardProps, type AnalyticsDataPoint, type DeviceContext as AnalyticsDeviceContext, type AnalyticsEvent$1 as AnalyticsEvent, type EventProperties as AnalyticsEventProperties, type PageContext as AnalyticsPageContext, AnalyticsProvider, type AnalyticsProviderProps, type AnalyticsQuery, type AnalyticsQueryResult, type AnalyticsStat, AnalyticsTracker, type UserProperties as AnalyticsUserProperties, type AppConfig, type AppMetadata, type AsyncState, type AttributionData, AuthContext, type AuthContextValue, AuthLoading, type AuthLoginResult, type AuthRegisterResult, type AuthSession, type AuthState, type AuthUser, AuthorizationError, Autocapture, type AutocaptureConfig, AvatarUpload, type AvatarUploadProps, type BaseDestinationConfig, BillingCard, type BillingCardProps, BillingSection, type BillingSectionProps, type Breadcrumb$1 as Breadcrumb, type BreadcrumbType, type CaptureExceptionOptions$1 as CaptureExceptionOptions, type CaptureMessageOptions$1 as CaptureMessageOptions, type CaptureResult, ChatBubble, type ChatBubbleProps, ChatInput, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, CheckoutButton, type CheckoutButtonProps, type ClickIds, type ConditionalStep, ConfigContext, type ConnectedAccount, type ConsentCategory$1 as ConsentCategory, ConsentContext, type ConsentContextValue, ConsentGuard, type ConsentGuardProps, ConsentPreferences, type ConsentPreferencesProps, ConsentScript, type ConsentScriptProps, type ConsentType, type ConsoleLog, type ConversionData, CookieBanner, type CookieBannerProps, type CoreWebVitalName, type CreateCronInput, type CreateCronResult, CreateOrganization, type CreateOrganizationProps, type CreatePermissionInput, type CreateRoleInput, CronBuilder, type CronBuilderProps, type CronSchedule, type CustomDestinationConfig, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTOCAPTURE_CONFIG, DEFAULT_ERROR_CONFIG, DEFAULT_FLAGS_CONFIG, DEFAULT_JOBS_CONFIG, DEFAULT_RETRY_DELAYS, DEFAULT_WEB_VITALS_CONFIG, type DLQOptions, type DataState, DatabaseContext, type DatabaseContextValue, type DeadClick, DeadClickDetector, type DestinationConfig, type ConsentCategory as DestinationConsentCategory, type DestinationPlatform, type DestinationRouter, type DestinationRouterConfig, DestinationRouterProvider, type DestinationRouterProviderProps, type DestinationType, type DeviceSession, type ElementData, EmailContext, type EmailContextValue, type EmailOptions, type EnabledProvider, type EnvironmentType, ErrorBoundary, type ErrorBoundaryFallbackProps, type ErrorBoundaryProps, type Breadcrumb as ErrorBreadcrumb, type ErrorCallback, type CaptureExceptionOptions as ErrorCaptureExceptionOptions, type CaptureMessageOptions as ErrorCaptureMessageOptions, type ErrorCode, type ErrorEvent, ErrorTracker, type ErrorTrackingConfig, type EvaluationContext, type EvaluationReason, type EvaluationResult, type EventCallback, EventViewer, type EventViewerProps, type ExceptionValue, type Experiment, type ExperimentExposure, ExperimentManager, FacebookPixel, type FacebookPixelProps, type FeatureFlag, type FeatureFlagContextValue, type FeatureFlagDefinition, FeatureFlagProvider, type FeatureFlagProviderProps, type FeatureFlagsConfig, FeatureFlagsProvider, type FeatureFlagsProviderProps, FeatureGate, type FeatureGateProps, FeatureValue, type FeatureValueProps, FeatureVariant, type FeatureVariantProps, FeedbackWidget, type FeedbackWidgetProps, FileUpload, type FileUploadProps, type FlagClientEvent, type FlagDefinition, FlagDevTools, type FlagDevToolsProps, type FlagOverrides, FlagStream, type FlagValue, type FlagVariant, type FlagValue$1 as FlagsValue, ForgotPassword, type ForgotPasswordFormState, type ForgotPasswordProps, type GA4DestinationConfig, type GTMDestinationConfig, GoogleAnalytics, type GoogleAnalyticsProps, GoogleConsentMode, type GoogleConsentModeConfig, type GoogleConsentModeProps, type GoogleConsentState, type GoogleConsentType, GoogleTagManager, type GoogleTagManagerProps, Hotjar, type HotjarProps, ImageUploader, type ImageUploaderProps, type InAppMessage, type InAppMessagePriority, type InAppMessageType, type InAppMessageWithReadStatus, type InboxPreferences, Intercom, type IntercomProps, type InviteInfo, InviteMember, type InviteMemberProps, type Invoice, InvoiceHistory, type InvoiceHistoryProps, type JobContext, type JobDefinition, type JobEvent, type Job$1 as JobInstance, JobList, type JobListProps, type JobOptions, type JobPayload, type JobPriority, type JobResult, JobScheduler, type JobSchedulerProps, type JobStep, JobsClient, type TasksConfig as JobsConfig, JobsContext, type JobsContextValue, type JobStatus$1 as JobsStatus, type KeyType, type KeyValidationResult, type KvRateLimitResult, type KvSetOptions, type KvZMember, type ListFilesOptions, LocalEvaluator, type LoginHistoryEntry, type LoopStep, type MarkerType, type MemberPermissionsResult, MembersList, type MembersListProps, type MetricRating, type MixpanelDestinationConfig, type MobileDevice, Modal, type ModalProps, ModelCard, type ModelCardProps, ModelGrid, type ModelGridProps, ModelSelector, type ModelSelectorProps, MonitoringContext, type MonitoringContextValue, type MonitoringLevel, NavigationTracker, NetworkError, type NetworkRequest, type NewAPIKey, NewsletterContext, type NewsletterContextValue, NewsletterForm, type NewsletterFormProps, NotFoundError, type Notification, NotificationBell, type NotificationBellProps, NotificationList, type NotificationListProps, NotificationSettings, type NotificationSettingsProps, OAUTH_PROVIDER_META, OAuthButton, type OAuthButtonProps, OAuthButtons, type OAuthButtonsProps, OAuthIcons, type OAuthProvider, type OAuthProviderInfo, type OAuthProviderWithIcon, OrDivider, type OrgRole, type OrganizationInvitation, OrganizationList, type OrganizationListProps, type OrganizationMember, OrganizationProfile, type OrganizationProfileProps, OrganizationSwitcher, type OrganizationSwitcherProps, type ParallelStep, type PasskeyInfo, type PaymentMethod, PaymentMethodManager, type PaymentMethodManagerProps, type Permission, type Plan, type ClickIds as PlatformClickIds, PlatformContext, type PlatformContextValue, type PostHogDestinationConfig, type PreSubmitResult, type PreferenceOption, PremiumOnly, PricingTable, type PricingTableProps, type PrivacyMode, type ProfileSection, Protect, type ProtectProps, ProtectedRoute, type PushPreferences, PushPrompt, type PushPromptProps, type QueryResult, type RageClick, RageClickDetector, RateLimitError, type RealtimeStatus, type RecorderState, type RecorderStatus, ReferralCard, type ReferralCardProps, type ReferralStats, type ReferrerData, ResetPassword, type ResetPasswordFormState, type ResetPasswordProps, type RetryDelayStrategy, type Role, DEFAULT_CONFIG as SESSION_REPLAY_DEFAULT_CONFIG, type SagaStep, type SamplingStrategy, type ScheduleJobInput as ScheduleTaskInput, type ScheduleJobResult as ScheduleTaskResult, type ScheduledJob, type ScriptManagerContextValue, ScriptManagerProvider, type ScriptQueueItem, type ScriptStrategy, ScrollThrashingDetector, SdkAuthContext, type SdkAuthContextValue, type SdkConnectedAccount, type SdkLoginHistoryEntry, type SdkPasskeyInfo, type SdkPasswordStatus, type SdkSecurityAlert, type SdkSecurityAlertsResult, type SdkTwoFactorStatus, type SdkUserProfile, SecurityContext, type SecurityContextValue, type SecurityFactor, type SecurityGrade, type SecurityPriority, type SecurityRecommendation, type SecurityScoreResult, SecuritySettings, type SecuritySettingsProps, type SegmentDestinationConfig, type SessionData, type SessionMarker, type SessionMetadata, SessionRecorder, type SessionReplayConfig, type SessionSummary, SignIn, SignInForm, type SignInFormProps, type SignInFormState, type SignInMethod, type SignInOptions, type SignInProps, type SignInStep, type SignInWithOAuthOptions, SignUp, SignUpForm, type SignUpFormProps, type SignUpFormState, type SignUpProps, type SignUpStep, type SignUpSubmitResult, SignedIn, SignedOut, SimpleChart, type SimpleChartProps, type AnalyticsEvent as SmartAnalyticsEvent, SpeedInsights, type SpeedInsightsProps, type StackFrame, type StandardRole, StatsCard, type StatsCardProps, StatsGrid, type StatsGridProps, type StepContext, type StreamMessage, type Subscriber, SubscriberPreferences, type SubscriberPreferencesProps, type SubscriberStatus, type Subscription, type SubworkflowStep, type SylphxClientConfig, type SylphxDestinationConfig, SylphxError, SylphxErrorBoundary, type SylphxErrorBoundaryProps, type SylphxErrorCode, SylphxProvider, type SylphxProviderProps, type TargetingCondition, type TargetingOperator, type TargetingRule, type Task, type TaskRunStatus, TaskScheduler, type TaskSchedulerProps, type TaskStatus, type TaskStatusFilter, type ThemeVariables, type TimeSeriesData, type TrackOptions, type TwoFactorSetupResult, type TwoFactorStatus, UnsubscribeConfirm, type UnsubscribeConfirmProps, type UpdateRoleInput, type UploadCallback, type UploadCreateOptions, type UsageItem, UsageOverview, type UsageOverviewProps, type UseAIReturn, type UseAchievementsReturn, type UseAnalyticsQueryOptions, type UseAnalyticsQueryReturn, type UseAnalyticsReturn$1 as UseAnalyticsReturn, type UseAuthReturn, type UseBillingReturn, type UseChatOptions, type UseChatReturn, type UseCombinedMonitoringOptions, type UseCompletionOptions, type UseCompletionReturn, type UseConsentCheckOptions, type UseConsentCheckReturn, type UseConsentGateOptions, type UseConsentGateReturn, type UseConsentReturn, type UseConversionTrackingReturn, type UseDestinationRouterOptions, type UseDestinationRouterReturn, type UseEmailReturn, type UseEmbeddingOptions, type UseEmbeddingReturn, type UseEnhancedErrorTrackingOptions, type UseEnhancedErrorTrackingReturn, type UseErrorBoundaryOptions, type UseErrorTrackingReturn, type UseFeatureFlagOptions, type UseFeatureFlagReturn, type UseFileListReturn, type UseFileReturn, type UseFlagStatusOptions, type UseFlagStatusResult, type UseFeatureFlagsReturn as UseFlagsReturn, type UseForgotPasswordFormOptions, type UseForgotPasswordFormReturn, type UseGlobalErrorHandlerOptions, type UseHasPermissionReturn, type UseInboxReturn, type UseKvOptions, type UseKvReturn, type UseLeaderboardReturn, type UseMemberPermissionsReturn, type UseMobilePushReturn, type UseModelsOptions, type UseModelsReturn, type UseNewsletterReturn, type UseNotificationsReturn, type UseOAuthProvidersReturn, type UseOrganizationReturn, type UsePermissionsReturn, type UseRealtimeChannelsOptions, type UseRealtimeOptions, type UseRealtimeReturn, type UseReferralReturn, type UseResetPasswordFormOptions, type UseResetPasswordFormReturn, type UseRolesReturn, type UseSafeAchievementsReturn, type UseSafeAnalyticsReturn, type UseSafeAuthReturn, type UseSafeBillingReturn, type UseSafeConsentReturn, type UseSafeLeaderboardReturn, type UseSafeStreakReturn, type UseSafeUserReturn, type UseSearchOptions, type UseSearchReturn, type UseSessionReplayOptions, type UseSessionReplayReturn, type UseSessionReturn, type UseSignInFormOptions, type UseSignInFormReturn, type UseSignUpFormOptions, type UseSignUpFormReturn, type UseAnalyticsReturn as UseSmartAnalyticsReturn, type UseStorageReturn, type UseStreakReturn, type UseSubscriberFormOptions, type UseSubscriberFormReturn, type UseSylphxReturn, type UseTaskRunOptions, type UseTaskRunResult, type UseTasksReturn, type UseUserReturn, type UseWebAnalyticsReturn, type UseWebVitalOptions, type UseWebVitalReturn, type UseWebVitalsAnalyticsOptions, type UseWebVitalsOptions, type UseWebVitalsReturn, type UseWebhookDeliveriesOptions, type UseWebhookDeliveriesReturn, type UseWebhookStatsReturn, type UseWebhooksReturn, UserButton, type UserButtonProps, type UserConsent, UserContext, type UserContextValue, UserProfile, type UserProfileProps, type UtmParams, ValidationError, VerifyEmail, type VerifyEmailProps, type VitalReportPayload, WEB_VITALS_THRESHOLDS, type WaitStep, WebAnalytics, type WebAnalyticsProps, type WebVitalAttribution, type WebVitalMetric, type WebVitalName, type WebVitalsConfig, type WebVitalsReport, type Webhook, type WebhookDelivery, WebhookDeliveryLog, type WebhookDeliveryLogProps, WebhookManager, type WebhookManagerProps, WebhooksContext, type WebhooksContextValue, type WithSessionReplayProps, type Workflow, WorkflowBuilder, type WorkflowDefinition, type WorkflowEvent, type WorkflowOptions, type WorkflowStep, addBreadcrumb as addErrorBreadcrumb, analyzeReferrer, baseStyles, buildElementData, calculateExperimentDuration, calculateSampleSize, checkCoreWebVitals, clearBreadcrumbs as clearErrorBreadcrumbs, conditional, conditionalStyle, createDestinationRouter, createExperiment, createFlagStream, createJobsClient, createStyles, createWorkflow, darkTheme, defaultTheme, delay, detectEnvironment, detectKeyType, detectSensitiveFields, enableAutoCapture, fanOut, fetchFlags, generateElementName, generateEventName, generatePrivacyReport, getAnalyticsTracker, getBucket, getCookieNamespace, getBreadcrumbs as getErrorBreadcrumbs, getEvaluator, getExperimentManager, getMetric, getPrivacyOptions, getRecorder, getTracker, getUserBucket, getWebVitalsReport, initAnalytics, initAutocapture, initErrorTracking, initFeatureFlags, initNavigationTracker, initWebVitals, injectGlobalStyles, isAppId, isDevelopmentKey, isDevelopmentRuntime, isProductionKey, isSecretKey, isSylphxError, isValidRedirectUrl, isWebVitalsInitialized, job, jobIf, loop, mergeStyles, murmurHash3, oauthProviderIcon, parallel, pollFlags, providerBrandColor, providerDisplayName, resetAnalyticsTracker, resetEvaluator, resetRecorder, resetTracker, resetWebVitals, resolveOAuthProviderIcon, resolveOAuthProviderMeta, safeRedirect, saga, sanitizeForLogging, sanitizeUrl as sanitizeReplayUrl, sanitizeUrl$1 as sanitizeUrl, selectVariant, sequence, sleepUntil, subworkflow, toSylphxError, useAI, useAIContext, useAchievements, useAnalytics, useAnalyticsQuery, useAppMetadata, useAuth, useBilling, useChat, useCombinedMonitoring, useCompletion, useComponentTracking, useConfig, useOAuthProviders as useConfigOAuthProviders, useConsent, useConsentCheck, useConsentContext, useConsentGate, useConsentTypes, useConversionTracking, useDatabaseContext, useDestinationRouter, useEmail, useEmailContext, useEmbedding, useEnhancedErrorTracking, useErrorBoundary, useErrorTracking, useExperiment, useFeatureFlag, useFeatureFlagDefinitions, useFeatureFlags$1 as useFeatureFlags, useFeatureTracking, useFile, useFileList, useFlag, useFlagEvaluation, useFlagJSON, useFlagNumber, useFlagOverrides, useFlagStatus, useFlagString, useFlagStatus as useFlagWithStatus, useFeatureFlags as useFlags, useFlagsReady, useForgotPasswordForm, useFormTracking, useGlobalErrorHandler, useGoogleConsentMode, useHasPermission, useInbox, useIsInTreatment, useIsInVariant, useKv, useLeaderboard, useMemberPermissions, useMobilePush, useModal, useModels, useMonitoringContext, useNewsletter, useNewsletterContext, useNotifications, useOAuthProviders$1 as useOAuthProviders, useOrganization, usePageView, usePermissions, usePlans, useProtect, useRealtime, useRealtimeChannels, useReferral, useResetPasswordForm, useRoles, useRouterContext, useSafeAchievements, useSafeAnalytics, useSafeAuth, useSafeBilling, useSafeConsent, useSafeLeaderboard, useSafeStreak, useSafeUser, useScriptManager, useSdkAuthContext, useSearch, useSecurityContext, useSession, useSessionReplay, useSessionReplayErrorMarker, useSignInForm, useSignUpForm, useAnalyticsHook as useSmartAnalytics, useStorage, useStreak, useSubscriberForm, useSylphx, useTaskRun, useTasks, useTasksContext, useTimeTracking, useUser, useUserContext, useWebAnalytics, useWebVital, useWebVitals, useWebVitalsAnalytics, useWebhookDeliveries, useWebhookStats, useWebhooks, useWebhooksContext, validateAndSanitizeAppId, validateAndSanitizeKey, validateAndSanitizeSecretKey, validateAppId, validateKey, validateSecretKey, validateWorkflow, wait, withRetry, withSessionReplay, withTimeout };