@sylphx/sdk 0.9.0 → 0.10.0

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { SdkBillingPlan, SdkBillingSubscription, BillingCheckoutRequest, BillingCheckoutResponse, BillingPortalRequest, BillingPortalResponse, BillingBalanceResponse, BillingUsageResponse, SdkConsentType, UserConsent as UserConsent$1, AIModel as AIModel$1, GetModelsResponse, GetRateLimitResponse, GetUsageResponse, ReferralLeaderboardEntry, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$1, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitResponse, DeviceInitRequest, DevicePollResponse, LoginRequest as LoginRequest$1, LoginResponse as LoginResponse$1, UserFullProfile as UserFullProfile$1, LogoutInput, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, RefreshTokenInput, RefreshTokenResult, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeResponse, PlatformSessionsListResponse, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, RegisterRequest as RegisterRequest$1, RegisterResponse as RegisterResponse$1, ResendEmailVerificationRequest as ResendEmailVerificationRequest$1, ResendEmailVerificationResponse as ResendEmailVerificationResponse$1, AuthTokensResponse, TwoFactorVerifyRequest as TwoFactorVerifyRequest$1, OAuthIntrospectResponse, PlatformAuditQueryRequest, PlatformAuditQueryResponse, PlatformRateLimitStatusRequest, PlatformRateLimitStatusResponse, PlatformRateLimitStrategiesListRequest, PlatformRateLimitStrategiesListResponse, PlatformRateLimitStrategyDeleteRequest, PlatformRateLimitStrategyDeleteResponse, PlatformRateLimitStrategyUpsertRequest, PlatformRateLimitStrategyUpsertResponse, CreateOrgInput as CreateOrgInput$1, InviteMemberInput as InviteMemberInput$1, OrgSdkRole, OrgInvitation, OrgMember, MembershipInfo, UpdateOrgInput as UpdateOrgInput$1, Organization } from '@sylphx/contract';
2
- export { BillingBalanceResponse as BalanceResponse, BillingCheckoutRequest as CheckoutRequest, BillingCheckoutResponse as CheckoutResponse, Organization, BillingPortalRequest as PortalRequest, BillingPortalResponse as PortalResponse, BillingUsageResponse as UsageResponse } from '@sylphx/contract';
1
+ import { SdkBillingPlan, SdkBillingSubscription, BillingCheckoutRequest, BillingCheckoutResponse, BillingPortalRequest, BillingPortalResponse, BillingBalanceResponse, BillingUsageResponse, SdkConsentType, UserConsent as UserConsent$1, AIModel as AIModel$1, GetModelsResponse, GetRateLimitResponse, GetUsageResponse, ReferralLeaderboardEntry, ReferralRewardDefaults as ReferralRewardDefaults$1, WebhookDelivery as WebhookDelivery$1, DeviceApproveRequest, DeviceApproveResponse, DeviceDenyRequest, DeviceDenyResponse, DeviceInitResponse, DeviceInitRequest, DevicePollResponse, LoginRequest as LoginRequest$1, LoginResponse as LoginResponse$1, UserFullProfile as UserFullProfile$1, LogoutInput, PlatformPasswordChangeRequest, PlatformPasswordChangeResponse, PlatformPasswordSetRequest, PlatformPasswordSetResponse, PlatformPasswordStatusResponse, RefreshTokenInput, RefreshTokenResult, PlatformSessionRenameRequest, PlatformSessionRenameResponse, PlatformSessionRevokeAllResponse, PlatformSessionRevokeRequest, PlatformSessionRevokeOtherResponse, PlatformSessionRevokeResponse, PlatformSessionsListResponse, AuthUserDeleteRequest, AuthUserDeleteResponse, AuthUserExportResponse, RegisterRequest as RegisterRequest$1, RegisterResponse as RegisterResponse$1, ResendEmailVerificationRequest as ResendEmailVerificationRequest$1, ResendEmailVerificationResponse as ResendEmailVerificationResponse$1, AuthTokensResponse, TwoFactorVerifyRequest as TwoFactorVerifyRequest$1, OAuthIntrospectResponse, PlatformAuditQueryRequest, PlatformAuditQueryResponse, PlatformRateLimitStatusRequest, PlatformRateLimitStatusResponse, PlatformRateLimitStrategiesListRequest, PlatformRateLimitStrategiesListResponse, PlatformRateLimitStrategyDeleteRequest, PlatformRateLimitStrategyDeleteResponse, PlatformRateLimitStrategyUpsertRequest, PlatformRateLimitStrategyUpsertResponse, File as File$1, UploadId, FileId, FileVersion, FileVersionId, CreateOrgInput as CreateOrgInput$1, InviteMemberInput as InviteMemberInput$1, OrgSdkRole, OrgInvitation, OrgMember, MembershipInfo, UpdateOrgInput as UpdateOrgInput$1, Organization } from '@sylphx/contract';
2
+ export { BillingBalanceResponse as BalanceResponse, BillingCheckoutRequest as CheckoutRequest, BillingCheckoutResponse as CheckoutResponse, FileId, FileVersion, FileVersionId, FileVisibility, Organization, BillingPortalRequest as PortalRequest, BillingPortalResponse as PortalResponse, SignedUrlDisposition, File as StorageFile, UploadId, BillingUsageResponse as UsageResponse } from '@sylphx/contract';
3
3
 
4
4
  /**
5
5
  * Functions Admin namespace — Platform-plane function-bundle admin
@@ -3684,320 +3684,133 @@ declare function createTracker(config: SylphxConfig, defaultAnonymousId?: string
3684
3684
  getAnonymousId: () => string;
3685
3685
  };
3686
3686
 
3687
- interface UploadProgressEvent {
3688
- /** Bytes uploaded */
3689
- loaded: number;
3690
- /** Total bytes */
3691
- total: number;
3692
- /** Progress percentage (0-100) */
3693
- progress: number;
3694
- }
3695
- interface UploadResult {
3696
- /** Public URL of uploaded file */
3697
- url: string;
3698
- /** File path/key in storage */
3699
- pathname: string;
3700
- /** Content type */
3701
- contentType: string;
3702
- /** File size in bytes */
3703
- size: number;
3704
- }
3705
-
3706
3687
  /**
3707
- * Storage Functions
3688
+ * Storage SDK — pure functional, namespaced. Per ADR-100.
3708
3689
  *
3709
- * Pure functions for file storage operations.
3690
+ * Wire is the contract in `@sylphx/contract` (`schemas/storage.ts` +
3691
+ * `endpoints/storage.ts`). This module is the only public surface for
3692
+ * uploads / files; consumers import the `storage` namespace.
3710
3693
  *
3711
- * ## Industry Patterns Implemented
3712
- * - AbortController cancellation (Vercel Blob pattern)
3713
- * - Exponential backoff with jitter (AWS S3 pattern: 5 retries, 1s base)
3714
- * - Concurrent chunk uploads (Vercel pattern: 3 concurrent)
3694
+ * Features (built-in defaults, ADR-100 §2.8):
3695
+ * - Idempotency-Key auto-generated (UUIDv7) on every POST
3696
+ * - Single-part PUT or multipart, picked server-side from `size`
3697
+ * - Streaming SHA-256 (browser `crypto.subtle.digest` / node `crypto.createHash`)
3698
+ * - Resumable: persists `(uploadId, completedParts[])` to localStorage
3699
+ * (browser) or `~/.sylphx/uploads.json` (node)
3700
+ * - AbortSignal cancellation; auto-DELETE upload session on abort
3701
+ * - Exponential backoff with full jitter (5 retries, 1s base, 30s cap)
3702
+ * - Progress: byte-accurate via XHR (browser) or stream sampling (node)
3715
3703
  *
3716
- * Wire-shape types are re-exported from `@sylphx/contract` (ADR-084). The
3717
- * contract is the single source of truth — this module only adds ergonomic
3718
- * aliases (`StorageFile`, `UploadUrlRequest`, `UploadUrlResponse`) and local
3719
- * convenience shapes (`FileInfo`, `FileUploadOptions`, `SignedUrlOptions`,
3720
- * `SignedUrlResult`) that pre-date the contract and are preserved for SDK
3721
- * surface compatibility.
3704
+ * No vendor SDKs. Pure `fetch` + `XMLHttpRequest`.
3722
3705
  */
3723
3706
 
3724
- interface FileUploadOptions {
3725
- /** Folder path */
3726
- path?: string;
3727
- /** File type (file, avatar, etc.) */
3728
- type?: 'file' | 'avatar';
3729
- /** User ID (for avatar uploads) */
3730
- userId?: string;
3731
- /** Progress callback */
3732
- onProgress?: (event: UploadProgressEvent) => void;
3733
- /**
3734
- * Enable multipart upload for large files.
3735
- * - `true`: Always use multipart upload
3736
- * - `false`: Never use multipart upload
3737
- * - `'auto'` (default): Auto-enable for files > 5MB
3738
- *
3739
- * Multipart uploads support files up to 5TB with better
3740
- * reliability for large files.
3741
- */
3742
- multipart?: boolean | 'auto';
3743
- /**
3744
- * AbortSignal to cancel the upload.
3745
- * Vercel Blob pattern - enables cancellation of in-progress uploads.
3746
- *
3747
- * @example
3748
- * ```typescript
3749
- * const controller = new AbortController()
3750
- * // Cancel after 30 seconds
3751
- * setTimeout(() => controller.abort(), 30000)
3752
- * await uploadFile(config, file, { signal: controller.signal })
3753
- * ```
3754
- */
3707
+ interface UploadProgressEvent {
3708
+ loaded: number;
3709
+ total: number;
3710
+ partsCompleted: number;
3711
+ partsTotal: number;
3712
+ }
3713
+ interface UploadCreateOptions {
3714
+ /** Logical name; preserved as metadata. Defaults to `blob.name` if `File`. */
3715
+ filename?: string;
3716
+ /** MIME type override; defaults to `blob.type` or `application/octet-stream`. */
3717
+ contentType?: string;
3718
+ /** Logical folder path within the project namespace. */
3719
+ folder?: string;
3720
+ /** Defaults to `'private'`. */
3721
+ visibility?: 'public' | 'private';
3722
+ /** Arbitrary user-attached metadata. */
3723
+ metadata?: Record<string, unknown>;
3724
+ /** Pre-computed SHA-256 (hex). If absent, the SDK computes it. */
3725
+ checksumSha256?: string;
3726
+ /** Fail when a file already exists at `(folder, filename)`. */
3727
+ ifNoneMatch?: '*';
3728
+ /** Cancellation. Aborts in-flight PUTs and triggers `DELETE /uploads/{id}`. */
3755
3729
  signal?: AbortSignal;
3756
- /**
3757
- * Idempotency key for safe retries (Stripe pattern)
3758
- *
3759
- * Prevents duplicate uploads if the same request is retried.
3760
- * Use a unique key per logical upload operation.
3761
- *
3762
- * @example `upload-${userId}-${fileName}-${fileHash}`
3763
- */
3730
+ /** Override the auto-generated UUIDv7 idempotency key. */
3764
3731
  idempotencyKey?: string;
3732
+ /** Progress callback. */
3733
+ onProgress?: (event: UploadProgressEvent) => void;
3765
3734
  }
3766
- interface FileInfo {
3767
- id: string;
3768
- url: string;
3769
- name: string;
3770
- size: number;
3771
- contentType: string;
3772
- isPrivate: boolean;
3773
- createdAt: string;
3735
+ interface ListFilesOptions {
3736
+ folder?: string;
3737
+ cursor?: string;
3738
+ limit?: number;
3739
+ includeDeleted?: boolean;
3774
3740
  }
3775
3741
  interface SignedUrlOptions {
3776
- /** Expiration in seconds (default: 3600, max: 604800 = 7 days) */
3777
3742
  expiresIn?: number;
3778
- /** Force download (attachment) vs inline display (default: attachment) */
3779
3743
  disposition?: 'attachment' | 'inline';
3780
- /** Restrict access to specific user */
3781
3744
  userId?: string;
3782
3745
  }
3783
- interface SignedUrlResult {
3784
- /** The signed download URL */
3785
- url: string;
3786
- /** When the URL expires (ISO string) */
3787
- expiresAt: string;
3788
- /** File metadata */
3789
- file: {
3790
- id: string;
3791
- filename: string;
3792
- mimeType: string;
3793
- sizeBytes: number;
3794
- isPrivate: boolean;
3795
- };
3746
+ interface CopyFileOptions {
3747
+ folder?: string;
3748
+ filename?: string;
3749
+ visibility?: 'public' | 'private';
3750
+ metadata?: Record<string, unknown>;
3796
3751
  }
3797
- /**
3798
- * Upload a file to storage
3799
- *
3800
- * Uses client-side upload for optimal performance (direct to CDN).
3801
- *
3802
- * ## Industry-Standard Features
3803
- * - **Cancellation**: AbortController support (Vercel Blob pattern)
3804
- * - **Retry**: Exponential backoff with jitter (AWS S3 pattern: 5 retries)
3805
- * - **Progress**: Real-time upload progress tracking
3806
- *
3807
- * ## File Size Limits
3808
- * - Standard uploads: up to 500MB
3809
- * - For files > 500MB: use React hooks with `multipart: true` (supports up to 5TB)
3810
- *
3811
- * ## Multipart Uploads
3812
- * For large files (> 5MB), multipart uploads provide:
3813
- * - Better reliability with chunked uploads
3814
- * - Resumable upload capability
3815
- * - Progress tracking per chunk
3816
- *
3817
- * Use the `multipart` option or React hooks for large files:
3818
- * ```typescript
3819
- * // React hooks (recommended for large files)
3820
- * const { upload } = useStorage()
3821
- * await upload(file, { multipart: true })
3822
- * ```
3823
- *
3824
- * @example
3825
- * ```typescript
3826
- * const file = new File(['Hello'], 'hello.txt', { type: 'text/plain' })
3827
- * const result = await uploadFile(config, file, {
3828
- * path: 'documents',
3829
- * onProgress: (e) => console.log(`${e.progress}%`),
3830
- * })
3831
- *
3832
- * console.log(result.url)
3833
- * ```
3834
- *
3835
- * @example Cancellation
3836
- * ```typescript
3837
- * const controller = new AbortController()
3838
- * setTimeout(() => controller.abort(), 30000) // Cancel after 30s
3839
- *
3840
- * try {
3841
- * await uploadFile(config, file, { signal: controller.signal })
3842
- * } catch (e) {
3843
- * if (e.name === 'AbortError') {
3844
- * console.log('Upload cancelled')
3845
- * }
3846
- * }
3847
- * ```
3848
- */
3849
- declare function uploadFile(config: SylphxConfig, file: File, options?: FileUploadOptions): Promise<UploadResult>;
3850
- /**
3851
- * Upload a user avatar
3852
- *
3853
- * @example
3854
- * ```typescript
3855
- * const avatar = await uploadAvatar(config, file, 'user-123')
3856
- * console.log(avatar.url)
3857
- * ```
3858
- */
3859
- declare function uploadAvatar(config: SylphxConfig, file: File, userId: string, options?: Pick<FileUploadOptions, 'onProgress'>): Promise<UploadResult>;
3860
- /**
3861
- * Delete a file
3862
- *
3863
- * @example
3864
- * ```typescript
3865
- * await deleteFile(config, 'file-123')
3866
- * ```
3867
- */
3868
- declare function deleteFile(config: SylphxConfig, fileId: string): Promise<void>;
3869
- /**
3870
- * Get a file's URL by ID
3871
- *
3872
- * @example
3873
- * ```typescript
3874
- * const url = await getFileUrl(config, 'file-123')
3875
- * ```
3876
- */
3877
- declare function getFileUrl(config: SylphxConfig, fileId: string): Promise<string>;
3878
- /**
3879
- * Get file info by ID
3880
- *
3881
- * @example
3882
- * ```typescript
3883
- * const info = await getFileInfo(config, 'file-123')
3884
- * console.log(info.name, info.size)
3885
- * ```
3886
- */
3887
- declare function getFileInfo(config: SylphxConfig, fileId: string): Promise<FileInfo>;
3888
- /**
3889
- * A single version of a stored file. Mirrors the contract
3890
- * `StorageFileVersion` shape.
3891
- */
3892
- interface StorageFileVersion {
3893
- id: string;
3894
- fileId: string;
3895
- versionNumber: number;
3896
- sizeBytes: number;
3897
- contentType: string | null;
3898
- checksumSha256: string | null;
3899
- createdAt: string;
3900
- createdBy: string | null;
3901
- isCurrent: boolean;
3752
+ declare function uploadsCreate(config: SylphxConfig, blob: Blob | File, options: UploadCreateOptions): Promise<File$1>;
3753
+ declare function uploadsAbort(config: SylphxConfig, uploadId: UploadId | string): Promise<void>;
3754
+ interface ListPage {
3755
+ files: File$1[];
3756
+ nextCursor: string | null;
3902
3757
  }
3758
+ declare function filesList(config: SylphxConfig, options?: ListFilesOptions): AsyncIterable<File$1> & {
3759
+ fetchPage: (cursor?: string) => Promise<ListPage>;
3760
+ };
3761
+ declare function filesGet(config: SylphxConfig, fileId: FileId | string): Promise<File$1>;
3762
+ declare function filesDelete(config: SylphxConfig, fileId: FileId | string): Promise<{
3763
+ id: FileId;
3764
+ isDeleted: true;
3765
+ }>;
3766
+ declare function filesRestore(config: SylphxConfig, fileId: FileId | string): Promise<File$1>;
3767
+ declare function filesSignedUrl(config: SylphxConfig, fileId: FileId | string, options?: SignedUrlOptions): Promise<{
3768
+ url: string;
3769
+ expiresAt: string;
3770
+ file: File$1;
3771
+ }>;
3772
+ declare function filesCopy(config: SylphxConfig, fileId: FileId | string, options: CopyFileOptions): Promise<File$1>;
3773
+ declare function filesVersionsList(config: SylphxConfig, fileId: FileId | string): Promise<FileVersion[]>;
3774
+ declare function filesVersionsRestore(config: SylphxConfig, fileId: FileId | string, versionId: FileVersionId | string): Promise<{
3775
+ file: File$1;
3776
+ version: FileVersion;
3777
+ }>;
3903
3778
  /**
3904
- * List all versions of a file, newest first.
3905
- *
3906
- * Versions beyond the per-file retention cap (default 10) are pruned
3907
- * automatically on each upload — this list reflects the retained window.
3908
- *
3909
- * @example
3910
- * ```ts
3911
- * const versions = await listFileVersions(config, 'file_abc')
3912
- * const current = versions.find(v => v.isCurrent)
3913
- * ```
3914
- */
3915
- declare function listFileVersions(config: SylphxConfig, fileId: string): Promise<StorageFileVersion[]>;
3916
- /**
3917
- * Restore an older version as the new current. The operation creates a
3918
- * NEW version row pointing at the old object — the old row is NOT
3919
- * mutated, preserving the audit trail.
3920
- *
3921
- * Rate-limited to 10/min/project.
3922
- *
3923
- * @example
3924
- * ```ts
3925
- * const restored = await restoreFileVersion(config, 'file_abc', 'fver_xyz')
3926
- * console.log(restored.versionNumber) // e.g. 5 (the new current version #)
3927
- * ```
3928
- */
3929
- declare function restoreFileVersion(config: SylphxConfig, fileId: string, versionId: string): Promise<StorageFileVersion>;
3930
- /**
3931
- * Soft-delete a file. The version history is retained so
3932
- * {@link restoreFile} can reverse the operation.
3933
- *
3934
- * This is an alias of {@link deleteFile} — the SDK `deleteFile` function
3935
- * ALSO soft-deletes (ADR-089 Phase 5.8 changed DELETE semantics from
3936
- * hard-delete to soft-delete). `softDeleteFile` is the explicit name for
3937
- * code clarity.
3938
- *
3939
- * @example
3940
- * ```ts
3941
- * await softDeleteFile(config, 'file_abc')
3942
- * // Later…
3943
- * await restoreFile(config, 'file_abc')
3944
- * ```
3945
- */
3946
- declare function softDeleteFile(config: SylphxConfig, fileId: string): Promise<void>;
3947
- /**
3948
- * Reverse a soft-delete. Fails if the file is not currently soft-deleted
3949
- * (explicit over silent to catch admin-UI bugs).
3950
- *
3951
- * @example
3952
- * ```ts
3953
- * const file = await restoreFile(config, 'file_abc')
3954
- * ```
3955
- */
3956
- declare function restoreFile(config: SylphxConfig, fileId: string): Promise<FileInfo>;
3957
- /**
3958
- * Download the payload of a specific historical version via a short-lived
3959
- * signed URL. Useful for diffing current vs a previous version or serving
3960
- * an older variant to an admin audit UI.
3961
- *
3962
- * Internally calls {@link getSignedUrl} after flipping the version to be
3963
- * "temporarily current" would NOT be safe, so instead the server minted
3964
- * URL carries the explicit `versionId`. The resulting blob is streamed
3965
- * directly from storage — no server round-trip for the bytes.
3779
+ * `storage` namespace the only public surface for storage in `@sylphx/sdk`.
3966
3780
  *
3967
3781
  * @example
3968
3782
  * ```ts
3969
- * const blob = await downloadFileVersion(config, 'file_abc', 'fver_xyz')
3970
- * const bytes = new Uint8Array(await blob.arrayBuffer())
3971
- * ```
3972
- */
3973
- declare function downloadFileVersion(config: SylphxConfig, fileId: string, versionId: string): Promise<Blob>;
3974
- /**
3975
- * Generate a signed URL for accessing a private file
3783
+ * import { storage } from '@sylphx/sdk'
3976
3784
  *
3977
- * Signed URLs provide time-limited access to private files without
3978
- * exposing permanent URLs. Useful for:
3979
- * - Secure document downloads
3980
- * - Private media streaming
3981
- * - Temporary file sharing
3982
- *
3983
- * @example
3984
- * ```typescript
3985
- * // Generate a download URL valid for 1 hour
3986
- * const { url, expiresAt } = await getSignedUrl(config, 'file-123')
3987
- *
3988
- * // Generate an inline preview URL valid for 5 minutes
3989
- * const preview = await getSignedUrl(config, 'file-123', {
3990
- * expiresIn: 300,
3991
- * disposition: 'inline',
3785
+ * const file = await storage.uploads.create(config, blob, {
3786
+ * filename: 'report.pdf',
3787
+ * folder: 'documents',
3788
+ * onProgress: (e) => console.log(`${e.loaded}/${e.total}`),
3992
3789
  * })
3993
3790
  *
3994
- * // Restrict access to a specific user
3995
- * const userOnly = await getSignedUrl(config, 'file-123', {
3996
- * userId: 'user-456',
3997
- * })
3791
+ * for await (const f of storage.files.list(config, { folder: 'documents' })) {
3792
+ * console.log(f.id, f.filename)
3793
+ * }
3998
3794
  * ```
3999
3795
  */
4000
- declare function getSignedUrl(config: SylphxConfig, fileId: string, options?: SignedUrlOptions): Promise<SignedUrlResult>;
3796
+ declare const storage: {
3797
+ readonly uploads: {
3798
+ readonly create: typeof uploadsCreate;
3799
+ readonly abort: typeof uploadsAbort;
3800
+ };
3801
+ readonly files: {
3802
+ readonly list: typeof filesList;
3803
+ readonly get: typeof filesGet;
3804
+ readonly delete: typeof filesDelete;
3805
+ readonly restore: typeof filesRestore;
3806
+ readonly signedUrl: typeof filesSignedUrl;
3807
+ readonly copy: typeof filesCopy;
3808
+ readonly versions: {
3809
+ readonly list: typeof filesVersionsList;
3810
+ readonly restore: typeof filesVersionsRestore;
3811
+ };
3812
+ };
3813
+ };
4001
3814
 
4002
3815
  /**
4003
3816
  * Push Notification Service Worker Template
@@ -9461,4 +9274,4 @@ declare const functions: {
9461
9274
  };
9462
9275
  };
9463
9276
 
9464
- export { ACHIEVEMENT_TIER_CONFIG, type AIListModelsOptions, type AIListModelsResponse, type AIMessage, type AIMessageRole, type AIModel, type AIModelInfo, type AIModelsResponse, type AIProvider, type AIRateLimitInfo, type AIRateLimitResponse, type AIRequestType, type AIStreamChunk, type AITool, type AIToolCall, type AIUsageResponse, type AIUsageStats, type AccessTokenPayload, type AchievementCategory, type AchievementCriteria, type AchievementCriterion, type AchievementDefinition, type AchievementTier, type AchievementType, type AchievementUnlockEvent, type AdminUser, type AuditQueryFilter, type AuditQueryResult, AuthenticationError, AuthorizationError, type BackupCodesResult, type BatchEvent, type BatchIndexInput, type BatchIndexResult, type Breadcrumb, type BuildLog, type BuildLogHistoryResponse, type CaptureExceptionRequest, type CaptureMessageRequest, type ChallengeMethod, type ChallengeType, type ChallengeVerifyInput, type ChallengeVerifyResult, type ChatCompletionInput, type ChatCompletionResponse, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamChunk, type CircuitBreakerConfig, CircuitBreakerOpenError, type CircuitState, type CommandResult, type ConsentCategory, type ConsentHistoryEntry, type ConsentHistoryResult, type ConsentPurposeDefaults, type ConsentType, type ContentPart, type CreateOrgInput, type CreatePermissionInput, type CreatePromoInput, type CreateRoleInput, type CreateRunOptions, type CreateTriggerOptions, type CriteriaOperator, type CronInput, type CronSchedule, type CronSource, type DatabaseConnectionInfo, type DatabaseStatus, type DatabaseStatusInfo, type DebugCategory, type DeduplicationConfig, type DeleteAccountResult, type DeleteDocumentInput, type DeployHistoryResponse, type DeployInfo, type DeployStatus, type DeviceApproveInput, type DeviceApproveResult, type DeviceDenyInput, type DeviceDenyResult, type DeviceGrant, type DeviceInitInput, type DevicePollResult, type DynamicRestClient, ERROR_CODE_STATUS, type EmailChangeInput, type EmailConfirmInput, type EmbedInput, type EmbedResult, type EmbeddingInput, type EmbeddingResponse, type LeaderboardEntry as EngagementLeaderboardEntry, type LeaderboardResult as EngagementLeaderboardResult, type EnvVar, type ErrorCode, type ErrorResponse, type EventSource, type ExceptionFrame, type ExceptionValue, type ExecEvent, type ExecOptions, type ExecResult, type FacetsResponse, type FileEvent, type FileInfo, type FileUploadOptions, type FlagContext, type FlagResult, type GetConsentHistoryInput, type GetConsentsInput, type GetFacetsInput, type GetSecretInput, type GetSecretResult, type GetSecretsInput, type GetSecretsResult, type HttpTarget, type IdentifyInput, type ImpersonationActive, type ImpersonationEndResult, type ImpersonationInfo, type ImpersonationStartResult, type IndexDocumentInput, type IndexDocumentResult, type IngestLogsResult, InvalidConnectionUrlError, type InviteMemberInput, type InviteUserRequest, type InviteUserResponse, type KvExpireRequest, type KvHgetRequest, type KvHgetallRequest, type KvHsetRequest, type KvIncrRequest, type KvLpushRequest, type KvLrangeRequest, type KvMgetRequest, type KvMsetRequest, type KvRateLimitRequest, type KvRateLimitResult, type KvScanOptions, type KvScanResult, type KvSetOptions, type KvSetRequest, type KvZMember, type KvZaddRequest, type KvZrangeRequest, type LeaderboardAggregation, type LeaderboardDefinition, type LeaderboardEntry$1 as LeaderboardEntry, type LeaderboardOptions, type LeaderboardQueryOptions, type LeaderboardResetPeriod, type LeaderboardResult$1 as LeaderboardResult, type LeaderboardSortDirection, type LinkAnonymousConsentsInput, type ListPromosOptions, type ListPromosResult, type ListRedemptionsOptions, type ListRedemptionsResult, type ListRunsOptions, type ListRunsResult, type ListScheduledEmailsOptions, type ListSecretKeysInput, type ListTriggersResult, type ListUsersOptions, type ListUsersResult, type LogEntry, type LogLevel, type LoginHistoryEntry, type LoginRequest, type LoginResponse, type MeResponse, type MemberPermissionsResult, type MintAccessTokenClaims, type MintAccessTokenResult, type MonitoringResponse, type MonitoringSeverity, type NativeStepContext, type NativeTaskDefinition, type TaskRunStatus as NativeTaskRunStatus, NetworkError, NotFoundError, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthCodeExchangeInput, type OAuthProvider, type OAuthProvidersResult, type OidcDiscoveryDocument, type OidcUserInfoResponse, type OrgRole, type OrgTokenPayload, type OrganizationInvitation, type OrganizationMember, type OrganizationMembership, type PageInput, type PaginatedResponse, type PaginationInput, type ParsedConnectionUrl, type PasskeyRegistrationInput, type PasskeyRegistrationOptions, type PasskeySummary, type PasskeysList, type PasswordSetInput, type Permission, type PkceMethod, type Plan, type PlatformAccessTokenClaims, type PlatformFunctionsDownloadBundleResult, type PlatformLogoutInput, type PlatformPasswordChangeInput, type PlatformPasswordChangeResult, type PlatformPasswordSetInput, type PlatformPasswordSetResult, type PlatformPasswordStatusResult, type PlatformRealtimeChannel, type PlatformRealtimeCreateChannelResult, type PlatformRealtimeDeleteChannelResult, type PlatformRealtimeListChannelsResult, type PlatformRealtimeStatusResult, type PlatformRefreshInput, type PlatformRefreshResult, type PlatformSessionRenameInput, type PlatformSessionRenameResult, type PlatformSessionRevokeAllResult, type PlatformSessionRevokeInput, type PlatformSessionRevokeOtherResult, type PlatformSessionRevokeResult, type PlatformSessionsListResult, type PlatformUserDeleteInput, type PlatformUserDeleteResult, type PlatformUserExportResult, type PlatformUserRecord, type PlatformUserResolution, type ProcessEvent, type ProcessInfo, type ProcessStartOptions, type ProcessSummary, type ProjectMetadata, type PromoCode, type PromoRedemption, type PromoStatus, type PromoType, type PromoValidationPreview, type PublishEventResult, type PushCampaign, type PushCampaignStats, type PushCampaignVariant, type PushNotification, type PushNotificationPayload, type PushSegment, type PushSegmentFilter, type PushServiceWorkerConfig, type PushSubscription, type QueryLogsOptions, type QueryLogsResult, RETRYABLE_CODES, RateLimitError, type RateLimitStatusFilter, type RateLimitStatusResult, type RateLimitStrategiesFilter, type RateLimitStrategiesResult, type RateLimitStrategyDeleteInput, type RateLimitStrategyDeleteResult, type RateLimitStrategyUpsertInput, type RateLimitStrategyUpsertResult, type RealtimeEmitRequest, type RealtimeEmitResponse, type RealtimeHistoryRequest, type RealtimeHistoryResponse, type RecordActivityInput, type RecordActivityResult, type RedeemPromoInput, type RedeemPromoResult, type RedeemReferralInput, type RedeemResult, type ReferralCode, type ReferralStats, type RegisterInput, type RegisterRequest, type RegisterResponse, type ResendEmailVerificationRequest, type ResendEmailVerificationResponse, type RestClient, type RestClientConfig, type RestDynamicConfig, type RetryConfig, type RevokeTokenOptions, type Role, type RollbackDeployRequest, type Run, RunHandle, type RunLogsResult, type RunResourceSpec, type RunResult, type RunStatus, type RunTarget, type RunVolumeMount, type CreateRunOptions as RunWorkerOptions, RunsClient, SandboxClient, type SandboxFile, SandboxFiles, type SandboxOptions, SandboxProcesses, type SandboxRecord, SandboxWatch, type ScheduleEmailOptions, type ScheduledEmail, type ScheduledEmailStats, type ScheduledEmailsResult, type SearchInput, type SearchResponse, type SearchResultItem, type SearchStatsResult, type SearchType, type SecretKeyInfo, type SecurityAlert, type SecurityAlertsList, type SecurityScoreResult, type SecuritySettings, type SendEmailOptions, type SendResult, type SendTemplatedEmailOptions, type SendToUserOptions, type SessionResult, type SetConsentsInput, type SetEnvVarRequest, type SignedUrlOptions, type SignedUrlResult, StepCompleteSignal, StepSleepSignal, type StorageFileVersion, type StoredLogEntry, type StreakDefinition, type StreakFrequency, type StreakState, type StreamMessage, type SubmitScoreInput, type SubmitScoreResult, type Subscription, type SuccessResponse, type SylphxClientInput, type SylphxConfig, type SylphxConfigInput, SylphxError, type SylphxErrorCode, type SylphxErrorOptions, type TaskInput, type TaskResult, type TaskStatus, type TaskTarget, type TextCompletionInput, type TextCompletionResponse, TimeoutError, type TokenIntrospectionResult, type TokenResponse, type Tool, type ToolCall, type TrackClickInput, type TrackInput, type Trigger, type TriggerDeployRequest, type TriggerSource, type TriggerSourceType, type TriggerStatus, type TriggerTarget, type TriggerTargetType, TriggersClient, type TwoFactorEnableResult, type TwoFactorSetupResult, type TwoFactorVerifyRequest, type UpdateOrgInput, type UpdatePromoInput, type UpdateRoleInput, type UpdateTriggerOptions, type UploadProgressEvent, type UploadResult, type UpsertDocumentInput, type UpsertDocumentResult, type User, type UserAchievement, type UserConsent, type UserDataExport, type UserFullProfile, type UserProfile, type UserSecuritySettings, type UserSession, type UserSessionsList, type UserUpdateProfileInput, type ValidatePromoInput, type ValidatePromoResult, ValidationError, type VisionInput, type WatchEntry, type WatchOptions, type WebhookConfig, type WebhookConfigUpdate, type WebhookDeliveriesResult, type WebhookDelivery, type WebhookStats, RunHandle as WorkerHandle, type RunLogsResult as WorkerLogsResult, type RunResourceSpec as WorkerResourceSpec, type RunResult as WorkerResult, type Run as WorkerRun, type RunStatus as WorkerStatus, type RunVolumeMount as WorkerVolumeMount, WorkersClient, acceptAllConsents, acceptOrganizationInvitation, assignMemberRole, audit, authorizeOAuth, batchIndex, canDeleteOrganization, canManageMembers, canManageSettings, cancelScheduledEmail, cancelTask, captureException, captureExceptionRaw, captureMessage, chat, chatStream, checkFlag, complete, confirmEmailChange, cookies, createCheckout, createClient, createConfig, createCron, createDynamicRestClient, createOrganization, createPermission, createPortalSession, createPromo, createRestClient, createRole, createServerClient, createServiceWorkerScript, createStepContext, createTasksHandler, createTracker, debugError, debugLog, debugTimer, debugWarn, declineOptionalConsents, deleteCron, deleteDocument, deleteEnvVar, deleteFile, deleteOrganization, deletePasskey, deletePermission, deletePromo, deleteRole, deleteUser, deleteUserAccount, device, disableDebug, disableTwoFactor, disconnectOAuthProvider, downloadFileVersion, dpop, embed, enableDebug, exchangeOAuthCode, exponentialBackoff, exportUserData, extendedSignUp, forgotPassword, functions, generateAnonymousId, generatePkce, getAchievement, getAchievementPoints, getAchievements, getAllFlags, getAllSecrets, getAllStreaks, getBackupCodes, getBillingBalance, getBillingUsage, getBuildLogHistory, getCircuitBreakerState, getConsentHistory, getConsentTypes, getDatabaseConnectionString, getDatabaseStatus, getDebugMode, getDeployHistory, getDeployStatus, getErrorCode, getErrorMessage, getFacets, getFileInfo, getFileUrl, getFlagPayload, getFlags, getLeaderboard, getMemberPermissions, getMyReferralCode, getOidcDiscoveryDocument, getOrganization, getOrganizationInvitations, getOrganizationMembers, getOrganizations, getPlans, getProjectMetadata, getPromo, getPushPreferences, getRealtimeHistory, getReferralLeaderboard, getReferralStats, getRestErrorMessage, getRole, getScheduledEmail, getScheduledEmailStats, getSearchStats, getSecret, getSecrets, getSecurityScore, getSession, getSignedUrl, getStreak, getSubscription, getTask, getUser, getUserByEmail, getUserConsents, getUserLeaderboardRank, getUserProfile, getUserSecurity, getVariant, getWebhookConfig, getWebhookDeliveries, getWebhookDelivery, getWebhookStats, hasAllPermissions, hasAnyPermission, hasConsent, hasError, hasPermission, hasRole, hasSecret, identify, impersonation, incrementAchievementProgress, indexDocument, ingestLogs, initPushServiceWorker, installGlobalDebugHelpers, introspectToken, inviteOrganizationMember, inviteUser, isEmailConfigured, isEnabled, isRetryableError, isSylphxError, kvDelete, kvExists, kvExpire, kvGet, kvGetJSON, kvHget, kvHgetall, kvHset, kvIncr, kvLpush, kvLrange, kvMget, kvMset, kvRateLimit, kvScan, kvSet, kvSetJSON, kvZadd, kvZrange, leaveOrganization, linkAnonymousConsents, listEnvVars, listFileVersions, listOAuthProviders, listPasskeys, listPermissions, listPromoRedemptions, listPromos, listRoles, listScheduledEmails, listSecretKeys, listSecurityAlerts, listTasks, listUserSessions, listUsers, markAllSecurityAlertsRead, markSecurityAlertRead, oauth, page, parseOAuthCallback, password, pauseCron, platformAuth, campaigns as pushCampaigns, segments as pushSegments, queryLogs, rateLimits, realtime, realtimeEmit, recordStreakActivity, recoverStreak, redeemPromo, redeemReferralCode, refreshToken, regenerateBackupCodes, regenerateReferralCode, registerPush, registerPushServiceWorker, removeOrganizationMember, renamePasskey, renameUserSession, replayWebhookDelivery, requestEmailChange, rescheduleEmail, resendVerificationEmail, resetCircuitBreaker, resetDebugModeCache, resetPassword, resetPlatformCookieCache, resetPlatformJwksCache, restoreFile, restoreFileVersion, resumeCron, revokeAllTokens, revokeOrganizationInvitation, revokeToken, revokeUserSession, rollbackDeploy, scheduleEmail, scheduleTask, search, sendEmail, sendEmailToUser, sendPush, sendTemplatedEmail, sessions, setConsents, setEnvVar, setPassword, setupTwoFactor, signIn, signOut, signUp, softDeleteFile, startPasskeyRegistration, streamToString, submitScore, suspendUser, switchOrg, toSylphxError, track, trackBatch, trackClick, triggerDeploy, unlockAchievement, unregisterPush, updateOrganization, updateOrganizationMemberRole, updatePromo, updatePushPreferences, updateRole, updateUser, updateUserMetadata, updateUserProfile, updateWebhookConfig, uploadAvatar, uploadFile, upsertDocument, user, userInfo, validatePromo, verifyAccessToken, verifyChallenge, verifyEmail, verifyPasskeyRegistration, verifySignature as verifyTaskSignature, verifyTwoFactor, verifyTwoFactorEnable, withToken };
9277
+ export { ACHIEVEMENT_TIER_CONFIG, type AIListModelsOptions, type AIListModelsResponse, type AIMessage, type AIMessageRole, type AIModel, type AIModelInfo, type AIModelsResponse, type AIProvider, type AIRateLimitInfo, type AIRateLimitResponse, type AIRequestType, type AIStreamChunk, type AITool, type AIToolCall, type AIUsageResponse, type AIUsageStats, type AccessTokenPayload, type AchievementCategory, type AchievementCriteria, type AchievementCriterion, type AchievementDefinition, type AchievementTier, type AchievementType, type AchievementUnlockEvent, type AdminUser, type AuditQueryFilter, type AuditQueryResult, AuthenticationError, AuthorizationError, type BackupCodesResult, type BatchEvent, type BatchIndexInput, type BatchIndexResult, type Breadcrumb, type BuildLog, type BuildLogHistoryResponse, type CaptureExceptionRequest, type CaptureMessageRequest, type ChallengeMethod, type ChallengeType, type ChallengeVerifyInput, type ChallengeVerifyResult, type ChatCompletionInput, type ChatCompletionResponse, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamChunk, type CircuitBreakerConfig, CircuitBreakerOpenError, type CircuitState, type CommandResult, type ConsentCategory, type ConsentHistoryEntry, type ConsentHistoryResult, type ConsentPurposeDefaults, type ConsentType, type ContentPart, type CopyFileOptions, type CreateOrgInput, type CreatePermissionInput, type CreatePromoInput, type CreateRoleInput, type CreateRunOptions, type CreateTriggerOptions, type CriteriaOperator, type CronInput, type CronSchedule, type CronSource, type DatabaseConnectionInfo, type DatabaseStatus, type DatabaseStatusInfo, type DebugCategory, type DeduplicationConfig, type DeleteAccountResult, type DeleteDocumentInput, type DeployHistoryResponse, type DeployInfo, type DeployStatus, type DeviceApproveInput, type DeviceApproveResult, type DeviceDenyInput, type DeviceDenyResult, type DeviceGrant, type DeviceInitInput, type DevicePollResult, type DynamicRestClient, ERROR_CODE_STATUS, type EmailChangeInput, type EmailConfirmInput, type EmbedInput, type EmbedResult, type EmbeddingInput, type EmbeddingResponse, type LeaderboardEntry as EngagementLeaderboardEntry, type LeaderboardResult as EngagementLeaderboardResult, type EnvVar, type ErrorCode, type ErrorResponse, type EventSource, type ExceptionFrame, type ExceptionValue, type ExecEvent, type ExecOptions, type ExecResult, type FacetsResponse, type FileEvent, type FlagContext, type FlagResult, type GetConsentHistoryInput, type GetConsentsInput, type GetFacetsInput, type GetSecretInput, type GetSecretResult, type GetSecretsInput, type GetSecretsResult, type HttpTarget, type IdentifyInput, type ImpersonationActive, type ImpersonationEndResult, type ImpersonationInfo, type ImpersonationStartResult, type IndexDocumentInput, type IndexDocumentResult, type IngestLogsResult, InvalidConnectionUrlError, type InviteMemberInput, type InviteUserRequest, type InviteUserResponse, type KvExpireRequest, type KvHgetRequest, type KvHgetallRequest, type KvHsetRequest, type KvIncrRequest, type KvLpushRequest, type KvLrangeRequest, type KvMgetRequest, type KvMsetRequest, type KvRateLimitRequest, type KvRateLimitResult, type KvScanOptions, type KvScanResult, type KvSetOptions, type KvSetRequest, type KvZMember, type KvZaddRequest, type KvZrangeRequest, type LeaderboardAggregation, type LeaderboardDefinition, type LeaderboardEntry$1 as LeaderboardEntry, type LeaderboardOptions, type LeaderboardQueryOptions, type LeaderboardResetPeriod, type LeaderboardResult$1 as LeaderboardResult, type LeaderboardSortDirection, type LinkAnonymousConsentsInput, type ListFilesOptions, type ListPromosOptions, type ListPromosResult, type ListRedemptionsOptions, type ListRedemptionsResult, type ListRunsOptions, type ListRunsResult, type ListScheduledEmailsOptions, type ListSecretKeysInput, type ListTriggersResult, type ListUsersOptions, type ListUsersResult, type LogEntry, type LogLevel, type LoginHistoryEntry, type LoginRequest, type LoginResponse, type MeResponse, type MemberPermissionsResult, type MintAccessTokenClaims, type MintAccessTokenResult, type MonitoringResponse, type MonitoringSeverity, type NativeStepContext, type NativeTaskDefinition, type TaskRunStatus as NativeTaskRunStatus, NetworkError, NotFoundError, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthCodeExchangeInput, type OAuthProvider, type OAuthProvidersResult, type OidcDiscoveryDocument, type OidcUserInfoResponse, type OrgRole, type OrgTokenPayload, type OrganizationInvitation, type OrganizationMember, type OrganizationMembership, type PageInput, type PaginatedResponse, type PaginationInput, type ParsedConnectionUrl, type PasskeyRegistrationInput, type PasskeyRegistrationOptions, type PasskeySummary, type PasskeysList, type PasswordSetInput, type Permission, type PkceMethod, type Plan, type PlatformAccessTokenClaims, type PlatformFunctionsDownloadBundleResult, type PlatformLogoutInput, type PlatformPasswordChangeInput, type PlatformPasswordChangeResult, type PlatformPasswordSetInput, type PlatformPasswordSetResult, type PlatformPasswordStatusResult, type PlatformRealtimeChannel, type PlatformRealtimeCreateChannelResult, type PlatformRealtimeDeleteChannelResult, type PlatformRealtimeListChannelsResult, type PlatformRealtimeStatusResult, type PlatformRefreshInput, type PlatformRefreshResult, type PlatformSessionRenameInput, type PlatformSessionRenameResult, type PlatformSessionRevokeAllResult, type PlatformSessionRevokeInput, type PlatformSessionRevokeOtherResult, type PlatformSessionRevokeResult, type PlatformSessionsListResult, type PlatformUserDeleteInput, type PlatformUserDeleteResult, type PlatformUserExportResult, type PlatformUserRecord, type PlatformUserResolution, type ProcessEvent, type ProcessInfo, type ProcessStartOptions, type ProcessSummary, type ProjectMetadata, type PromoCode, type PromoRedemption, type PromoStatus, type PromoType, type PromoValidationPreview, type PublishEventResult, type PushCampaign, type PushCampaignStats, type PushCampaignVariant, type PushNotification, type PushNotificationPayload, type PushSegment, type PushSegmentFilter, type PushServiceWorkerConfig, type PushSubscription, type QueryLogsOptions, type QueryLogsResult, RETRYABLE_CODES, RateLimitError, type RateLimitStatusFilter, type RateLimitStatusResult, type RateLimitStrategiesFilter, type RateLimitStrategiesResult, type RateLimitStrategyDeleteInput, type RateLimitStrategyDeleteResult, type RateLimitStrategyUpsertInput, type RateLimitStrategyUpsertResult, type RealtimeEmitRequest, type RealtimeEmitResponse, type RealtimeHistoryRequest, type RealtimeHistoryResponse, type RecordActivityInput, type RecordActivityResult, type RedeemPromoInput, type RedeemPromoResult, type RedeemReferralInput, type RedeemResult, type ReferralCode, type ReferralStats, type RegisterInput, type RegisterRequest, type RegisterResponse, type ResendEmailVerificationRequest, type ResendEmailVerificationResponse, type RestClient, type RestClientConfig, type RestDynamicConfig, type RetryConfig, type RevokeTokenOptions, type Role, type RollbackDeployRequest, type Run, RunHandle, type RunLogsResult, type RunResourceSpec, type RunResult, type RunStatus, type RunTarget, type RunVolumeMount, type CreateRunOptions as RunWorkerOptions, RunsClient, SandboxClient, type SandboxFile, SandboxFiles, type SandboxOptions, SandboxProcesses, type SandboxRecord, SandboxWatch, type ScheduleEmailOptions, type ScheduledEmail, type ScheduledEmailStats, type ScheduledEmailsResult, type SearchInput, type SearchResponse, type SearchResultItem, type SearchStatsResult, type SearchType, type SecretKeyInfo, type SecurityAlert, type SecurityAlertsList, type SecurityScoreResult, type SecuritySettings, type SendEmailOptions, type SendResult, type SendTemplatedEmailOptions, type SendToUserOptions, type SessionResult, type SetConsentsInput, type SetEnvVarRequest, type SignedUrlOptions, StepCompleteSignal, StepSleepSignal, type StoredLogEntry, type StreakDefinition, type StreakFrequency, type StreakState, type StreamMessage, type SubmitScoreInput, type SubmitScoreResult, type Subscription, type SuccessResponse, type SylphxClientInput, type SylphxConfig, type SylphxConfigInput, SylphxError, type SylphxErrorCode, type SylphxErrorOptions, type TaskInput, type TaskResult, type TaskStatus, type TaskTarget, type TextCompletionInput, type TextCompletionResponse, TimeoutError, type TokenIntrospectionResult, type TokenResponse, type Tool, type ToolCall, type TrackClickInput, type TrackInput, type Trigger, type TriggerDeployRequest, type TriggerSource, type TriggerSourceType, type TriggerStatus, type TriggerTarget, type TriggerTargetType, TriggersClient, type TwoFactorEnableResult, type TwoFactorSetupResult, type TwoFactorVerifyRequest, type UpdateOrgInput, type UpdatePromoInput, type UpdateRoleInput, type UpdateTriggerOptions, type UploadCreateOptions, type UploadProgressEvent, type UpsertDocumentInput, type UpsertDocumentResult, type User, type UserAchievement, type UserConsent, type UserDataExport, type UserFullProfile, type UserProfile, type UserSecuritySettings, type UserSession, type UserSessionsList, type UserUpdateProfileInput, type ValidatePromoInput, type ValidatePromoResult, ValidationError, type VisionInput, type WatchEntry, type WatchOptions, type WebhookConfig, type WebhookConfigUpdate, type WebhookDeliveriesResult, type WebhookDelivery, type WebhookStats, RunHandle as WorkerHandle, type RunLogsResult as WorkerLogsResult, type RunResourceSpec as WorkerResourceSpec, type RunResult as WorkerResult, type Run as WorkerRun, type RunStatus as WorkerStatus, type RunVolumeMount as WorkerVolumeMount, WorkersClient, acceptAllConsents, acceptOrganizationInvitation, assignMemberRole, audit, authorizeOAuth, batchIndex, canDeleteOrganization, canManageMembers, canManageSettings, cancelScheduledEmail, cancelTask, captureException, captureExceptionRaw, captureMessage, chat, chatStream, checkFlag, complete, confirmEmailChange, cookies, createCheckout, createClient, createConfig, createCron, createDynamicRestClient, createOrganization, createPermission, createPortalSession, createPromo, createRestClient, createRole, createServerClient, createServiceWorkerScript, createStepContext, createTasksHandler, createTracker, debugError, debugLog, debugTimer, debugWarn, declineOptionalConsents, deleteCron, deleteDocument, deleteEnvVar, deleteOrganization, deletePasskey, deletePermission, deletePromo, deleteRole, deleteUser, deleteUserAccount, device, disableDebug, disableTwoFactor, disconnectOAuthProvider, dpop, embed, enableDebug, exchangeOAuthCode, exponentialBackoff, exportUserData, extendedSignUp, forgotPassword, functions, generateAnonymousId, generatePkce, getAchievement, getAchievementPoints, getAchievements, getAllFlags, getAllSecrets, getAllStreaks, getBackupCodes, getBillingBalance, getBillingUsage, getBuildLogHistory, getCircuitBreakerState, getConsentHistory, getConsentTypes, getDatabaseConnectionString, getDatabaseStatus, getDebugMode, getDeployHistory, getDeployStatus, getErrorCode, getErrorMessage, getFacets, getFlagPayload, getFlags, getLeaderboard, getMemberPermissions, getMyReferralCode, getOidcDiscoveryDocument, getOrganization, getOrganizationInvitations, getOrganizationMembers, getOrganizations, getPlans, getProjectMetadata, getPromo, getPushPreferences, getRealtimeHistory, getReferralLeaderboard, getReferralStats, getRestErrorMessage, getRole, getScheduledEmail, getScheduledEmailStats, getSearchStats, getSecret, getSecrets, getSecurityScore, getSession, getStreak, getSubscription, getTask, getUser, getUserByEmail, getUserConsents, getUserLeaderboardRank, getUserProfile, getUserSecurity, getVariant, getWebhookConfig, getWebhookDeliveries, getWebhookDelivery, getWebhookStats, hasAllPermissions, hasAnyPermission, hasConsent, hasError, hasPermission, hasRole, hasSecret, identify, impersonation, incrementAchievementProgress, indexDocument, ingestLogs, initPushServiceWorker, installGlobalDebugHelpers, introspectToken, inviteOrganizationMember, inviteUser, isEmailConfigured, isEnabled, isRetryableError, isSylphxError, kvDelete, kvExists, kvExpire, kvGet, kvGetJSON, kvHget, kvHgetall, kvHset, kvIncr, kvLpush, kvLrange, kvMget, kvMset, kvRateLimit, kvScan, kvSet, kvSetJSON, kvZadd, kvZrange, leaveOrganization, linkAnonymousConsents, listEnvVars, listOAuthProviders, listPasskeys, listPermissions, listPromoRedemptions, listPromos, listRoles, listScheduledEmails, listSecretKeys, listSecurityAlerts, listTasks, listUserSessions, listUsers, markAllSecurityAlertsRead, markSecurityAlertRead, oauth, page, parseOAuthCallback, password, pauseCron, platformAuth, campaigns as pushCampaigns, segments as pushSegments, queryLogs, rateLimits, realtime, realtimeEmit, recordStreakActivity, recoverStreak, redeemPromo, redeemReferralCode, refreshToken, regenerateBackupCodes, regenerateReferralCode, registerPush, registerPushServiceWorker, removeOrganizationMember, renamePasskey, renameUserSession, replayWebhookDelivery, requestEmailChange, rescheduleEmail, resendVerificationEmail, resetCircuitBreaker, resetDebugModeCache, resetPassword, resetPlatformCookieCache, resetPlatformJwksCache, resumeCron, revokeAllTokens, revokeOrganizationInvitation, revokeToken, revokeUserSession, rollbackDeploy, scheduleEmail, scheduleTask, search, sendEmail, sendEmailToUser, sendPush, sendTemplatedEmail, sessions, setConsents, setEnvVar, setPassword, setupTwoFactor, signIn, signOut, signUp, startPasskeyRegistration, storage, streamToString, submitScore, suspendUser, switchOrg, toSylphxError, track, trackBatch, trackClick, triggerDeploy, unlockAchievement, unregisterPush, updateOrganization, updateOrganizationMemberRole, updatePromo, updatePushPreferences, updateRole, updateUser, updateUserMetadata, updateUserProfile, updateWebhookConfig, upsertDocument, user, userInfo, validatePromo, verifyAccessToken, verifyChallenge, verifyEmail, verifyPasskeyRegistration, verifySignature as verifyTaskSignature, verifyTwoFactor, verifyTwoFactorEnable, withToken };