@sylphx/sdk 0.8.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 +118 -291
- package/dist/index.mjs +470 -194
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.ts +91 -310
- package/dist/react/index.mjs +1284 -1038
- package/dist/react/index.mjs.map +1 -1
- package/package.json +2 -2
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, 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
|
|
@@ -1822,6 +1822,8 @@ type LoginRequest = LoginRequest$1;
|
|
|
1822
1822
|
type LoginResponse = LoginResponse$1;
|
|
1823
1823
|
type RegisterRequest = RegisterRequest$1;
|
|
1824
1824
|
type RegisterResponse = RegisterResponse$1;
|
|
1825
|
+
type ResendEmailVerificationRequest = ResendEmailVerificationRequest$1;
|
|
1826
|
+
type ResendEmailVerificationResponse = ResendEmailVerificationResponse$1;
|
|
1825
1827
|
/**
|
|
1826
1828
|
* Token response — contract's `AuthTokensResponse.user` (optional `AuthUser`)
|
|
1827
1829
|
* is re-mapped to the SDK's broader `User` type so legacy callers keep the
|
|
@@ -1991,6 +1993,18 @@ declare function verifyEmail(config: SylphxConfig, token: string): Promise<void>
|
|
|
1991
1993
|
* ```
|
|
1992
1994
|
*/
|
|
1993
1995
|
declare function forgotPassword(config: SylphxConfig, email: string): Promise<void>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Request a verification email resend.
|
|
1998
|
+
*
|
|
1999
|
+
* The Platform response is intentionally privacy-preserving: it never
|
|
2000
|
+
* indicates whether the email exists or is already verified.
|
|
2001
|
+
*
|
|
2002
|
+
* @example
|
|
2003
|
+
* ```typescript
|
|
2004
|
+
* await resendVerificationEmail(config, 'user@example.com')
|
|
2005
|
+
* ```
|
|
2006
|
+
*/
|
|
2007
|
+
declare function resendVerificationEmail(config: SylphxConfig, email: string): Promise<void>;
|
|
1994
2008
|
/**
|
|
1995
2009
|
* Reset password with token
|
|
1996
2010
|
*
|
|
@@ -3670,320 +3684,133 @@ declare function createTracker(config: SylphxConfig, defaultAnonymousId?: string
|
|
|
3670
3684
|
getAnonymousId: () => string;
|
|
3671
3685
|
};
|
|
3672
3686
|
|
|
3673
|
-
interface UploadProgressEvent {
|
|
3674
|
-
/** Bytes uploaded */
|
|
3675
|
-
loaded: number;
|
|
3676
|
-
/** Total bytes */
|
|
3677
|
-
total: number;
|
|
3678
|
-
/** Progress percentage (0-100) */
|
|
3679
|
-
progress: number;
|
|
3680
|
-
}
|
|
3681
|
-
interface UploadResult {
|
|
3682
|
-
/** Public URL of uploaded file */
|
|
3683
|
-
url: string;
|
|
3684
|
-
/** File path/key in storage */
|
|
3685
|
-
pathname: string;
|
|
3686
|
-
/** Content type */
|
|
3687
|
-
contentType: string;
|
|
3688
|
-
/** File size in bytes */
|
|
3689
|
-
size: number;
|
|
3690
|
-
}
|
|
3691
|
-
|
|
3692
3687
|
/**
|
|
3693
|
-
* Storage
|
|
3688
|
+
* Storage SDK — pure functional, namespaced. Per ADR-100.
|
|
3694
3689
|
*
|
|
3695
|
-
*
|
|
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.
|
|
3696
3693
|
*
|
|
3697
|
-
*
|
|
3698
|
-
* -
|
|
3699
|
-
* -
|
|
3700
|
-
* -
|
|
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)
|
|
3701
3703
|
*
|
|
3702
|
-
*
|
|
3703
|
-
* contract is the single source of truth — this module only adds ergonomic
|
|
3704
|
-
* aliases (`StorageFile`, `UploadUrlRequest`, `UploadUrlResponse`) and local
|
|
3705
|
-
* convenience shapes (`FileInfo`, `FileUploadOptions`, `SignedUrlOptions`,
|
|
3706
|
-
* `SignedUrlResult`) that pre-date the contract and are preserved for SDK
|
|
3707
|
-
* surface compatibility.
|
|
3704
|
+
* No vendor SDKs. Pure `fetch` + `XMLHttpRequest`.
|
|
3708
3705
|
*/
|
|
3709
3706
|
|
|
3710
|
-
interface
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
/**
|
|
3718
|
-
|
|
3719
|
-
/**
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
/**
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
*
|
|
3733
|
-
* @example
|
|
3734
|
-
* ```typescript
|
|
3735
|
-
* const controller = new AbortController()
|
|
3736
|
-
* // Cancel after 30 seconds
|
|
3737
|
-
* setTimeout(() => controller.abort(), 30000)
|
|
3738
|
-
* await uploadFile(config, file, { signal: controller.signal })
|
|
3739
|
-
* ```
|
|
3740
|
-
*/
|
|
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}`. */
|
|
3741
3729
|
signal?: AbortSignal;
|
|
3742
|
-
/**
|
|
3743
|
-
* Idempotency key for safe retries (Stripe pattern)
|
|
3744
|
-
*
|
|
3745
|
-
* Prevents duplicate uploads if the same request is retried.
|
|
3746
|
-
* Use a unique key per logical upload operation.
|
|
3747
|
-
*
|
|
3748
|
-
* @example `upload-${userId}-${fileName}-${fileHash}`
|
|
3749
|
-
*/
|
|
3730
|
+
/** Override the auto-generated UUIDv7 idempotency key. */
|
|
3750
3731
|
idempotencyKey?: string;
|
|
3732
|
+
/** Progress callback. */
|
|
3733
|
+
onProgress?: (event: UploadProgressEvent) => void;
|
|
3751
3734
|
}
|
|
3752
|
-
interface
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
contentType: string;
|
|
3758
|
-
isPrivate: boolean;
|
|
3759
|
-
createdAt: string;
|
|
3735
|
+
interface ListFilesOptions {
|
|
3736
|
+
folder?: string;
|
|
3737
|
+
cursor?: string;
|
|
3738
|
+
limit?: number;
|
|
3739
|
+
includeDeleted?: boolean;
|
|
3760
3740
|
}
|
|
3761
3741
|
interface SignedUrlOptions {
|
|
3762
|
-
/** Expiration in seconds (default: 3600, max: 604800 = 7 days) */
|
|
3763
3742
|
expiresIn?: number;
|
|
3764
|
-
/** Force download (attachment) vs inline display (default: attachment) */
|
|
3765
3743
|
disposition?: 'attachment' | 'inline';
|
|
3766
|
-
/** Restrict access to specific user */
|
|
3767
3744
|
userId?: string;
|
|
3768
3745
|
}
|
|
3769
|
-
interface
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
/** File metadata */
|
|
3775
|
-
file: {
|
|
3776
|
-
id: string;
|
|
3777
|
-
filename: string;
|
|
3778
|
-
mimeType: string;
|
|
3779
|
-
sizeBytes: number;
|
|
3780
|
-
isPrivate: boolean;
|
|
3781
|
-
};
|
|
3746
|
+
interface CopyFileOptions {
|
|
3747
|
+
folder?: string;
|
|
3748
|
+
filename?: string;
|
|
3749
|
+
visibility?: 'public' | 'private';
|
|
3750
|
+
metadata?: Record<string, unknown>;
|
|
3782
3751
|
}
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
* ## Industry-Standard Features
|
|
3789
|
-
* - **Cancellation**: AbortController support (Vercel Blob pattern)
|
|
3790
|
-
* - **Retry**: Exponential backoff with jitter (AWS S3 pattern: 5 retries)
|
|
3791
|
-
* - **Progress**: Real-time upload progress tracking
|
|
3792
|
-
*
|
|
3793
|
-
* ## File Size Limits
|
|
3794
|
-
* - Standard uploads: up to 500MB
|
|
3795
|
-
* - For files > 500MB: use React hooks with `multipart: true` (supports up to 5TB)
|
|
3796
|
-
*
|
|
3797
|
-
* ## Multipart Uploads
|
|
3798
|
-
* For large files (> 5MB), multipart uploads provide:
|
|
3799
|
-
* - Better reliability with chunked uploads
|
|
3800
|
-
* - Resumable upload capability
|
|
3801
|
-
* - Progress tracking per chunk
|
|
3802
|
-
*
|
|
3803
|
-
* Use the `multipart` option or React hooks for large files:
|
|
3804
|
-
* ```typescript
|
|
3805
|
-
* // React hooks (recommended for large files)
|
|
3806
|
-
* const { upload } = useStorage()
|
|
3807
|
-
* await upload(file, { multipart: true })
|
|
3808
|
-
* ```
|
|
3809
|
-
*
|
|
3810
|
-
* @example
|
|
3811
|
-
* ```typescript
|
|
3812
|
-
* const file = new File(['Hello'], 'hello.txt', { type: 'text/plain' })
|
|
3813
|
-
* const result = await uploadFile(config, file, {
|
|
3814
|
-
* path: 'documents',
|
|
3815
|
-
* onProgress: (e) => console.log(`${e.progress}%`),
|
|
3816
|
-
* })
|
|
3817
|
-
*
|
|
3818
|
-
* console.log(result.url)
|
|
3819
|
-
* ```
|
|
3820
|
-
*
|
|
3821
|
-
* @example Cancellation
|
|
3822
|
-
* ```typescript
|
|
3823
|
-
* const controller = new AbortController()
|
|
3824
|
-
* setTimeout(() => controller.abort(), 30000) // Cancel after 30s
|
|
3825
|
-
*
|
|
3826
|
-
* try {
|
|
3827
|
-
* await uploadFile(config, file, { signal: controller.signal })
|
|
3828
|
-
* } catch (e) {
|
|
3829
|
-
* if (e.name === 'AbortError') {
|
|
3830
|
-
* console.log('Upload cancelled')
|
|
3831
|
-
* }
|
|
3832
|
-
* }
|
|
3833
|
-
* ```
|
|
3834
|
-
*/
|
|
3835
|
-
declare function uploadFile(config: SylphxConfig, file: File, options?: FileUploadOptions): Promise<UploadResult>;
|
|
3836
|
-
/**
|
|
3837
|
-
* Upload a user avatar
|
|
3838
|
-
*
|
|
3839
|
-
* @example
|
|
3840
|
-
* ```typescript
|
|
3841
|
-
* const avatar = await uploadAvatar(config, file, 'user-123')
|
|
3842
|
-
* console.log(avatar.url)
|
|
3843
|
-
* ```
|
|
3844
|
-
*/
|
|
3845
|
-
declare function uploadAvatar(config: SylphxConfig, file: File, userId: string, options?: Pick<FileUploadOptions, 'onProgress'>): Promise<UploadResult>;
|
|
3846
|
-
/**
|
|
3847
|
-
* Delete a file
|
|
3848
|
-
*
|
|
3849
|
-
* @example
|
|
3850
|
-
* ```typescript
|
|
3851
|
-
* await deleteFile(config, 'file-123')
|
|
3852
|
-
* ```
|
|
3853
|
-
*/
|
|
3854
|
-
declare function deleteFile(config: SylphxConfig, fileId: string): Promise<void>;
|
|
3855
|
-
/**
|
|
3856
|
-
* Get a file's URL by ID
|
|
3857
|
-
*
|
|
3858
|
-
* @example
|
|
3859
|
-
* ```typescript
|
|
3860
|
-
* const url = await getFileUrl(config, 'file-123')
|
|
3861
|
-
* ```
|
|
3862
|
-
*/
|
|
3863
|
-
declare function getFileUrl(config: SylphxConfig, fileId: string): Promise<string>;
|
|
3864
|
-
/**
|
|
3865
|
-
* Get file info by ID
|
|
3866
|
-
*
|
|
3867
|
-
* @example
|
|
3868
|
-
* ```typescript
|
|
3869
|
-
* const info = await getFileInfo(config, 'file-123')
|
|
3870
|
-
* console.log(info.name, info.size)
|
|
3871
|
-
* ```
|
|
3872
|
-
*/
|
|
3873
|
-
declare function getFileInfo(config: SylphxConfig, fileId: string): Promise<FileInfo>;
|
|
3874
|
-
/**
|
|
3875
|
-
* A single version of a stored file. Mirrors the contract
|
|
3876
|
-
* `StorageFileVersion` shape.
|
|
3877
|
-
*/
|
|
3878
|
-
interface StorageFileVersion {
|
|
3879
|
-
id: string;
|
|
3880
|
-
fileId: string;
|
|
3881
|
-
versionNumber: number;
|
|
3882
|
-
sizeBytes: number;
|
|
3883
|
-
contentType: string | null;
|
|
3884
|
-
checksumSha256: string | null;
|
|
3885
|
-
createdAt: string;
|
|
3886
|
-
createdBy: string | null;
|
|
3887
|
-
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;
|
|
3888
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
|
+
}>;
|
|
3889
3778
|
/**
|
|
3890
|
-
*
|
|
3891
|
-
*
|
|
3892
|
-
* Versions beyond the per-file retention cap (default 10) are pruned
|
|
3893
|
-
* automatically on each upload — this list reflects the retained window.
|
|
3894
|
-
*
|
|
3895
|
-
* @example
|
|
3896
|
-
* ```ts
|
|
3897
|
-
* const versions = await listFileVersions(config, 'file_abc')
|
|
3898
|
-
* const current = versions.find(v => v.isCurrent)
|
|
3899
|
-
* ```
|
|
3900
|
-
*/
|
|
3901
|
-
declare function listFileVersions(config: SylphxConfig, fileId: string): Promise<StorageFileVersion[]>;
|
|
3902
|
-
/**
|
|
3903
|
-
* Restore an older version as the new current. The operation creates a
|
|
3904
|
-
* NEW version row pointing at the old object — the old row is NOT
|
|
3905
|
-
* mutated, preserving the audit trail.
|
|
3906
|
-
*
|
|
3907
|
-
* Rate-limited to 10/min/project.
|
|
3908
|
-
*
|
|
3909
|
-
* @example
|
|
3910
|
-
* ```ts
|
|
3911
|
-
* const restored = await restoreFileVersion(config, 'file_abc', 'fver_xyz')
|
|
3912
|
-
* console.log(restored.versionNumber) // e.g. 5 (the new current version #)
|
|
3913
|
-
* ```
|
|
3914
|
-
*/
|
|
3915
|
-
declare function restoreFileVersion(config: SylphxConfig, fileId: string, versionId: string): Promise<StorageFileVersion>;
|
|
3916
|
-
/**
|
|
3917
|
-
* Soft-delete a file. The version history is retained so
|
|
3918
|
-
* {@link restoreFile} can reverse the operation.
|
|
3919
|
-
*
|
|
3920
|
-
* This is an alias of {@link deleteFile} — the SDK `deleteFile` function
|
|
3921
|
-
* ALSO soft-deletes (ADR-089 Phase 5.8 changed DELETE semantics from
|
|
3922
|
-
* hard-delete to soft-delete). `softDeleteFile` is the explicit name for
|
|
3923
|
-
* code clarity.
|
|
3924
|
-
*
|
|
3925
|
-
* @example
|
|
3926
|
-
* ```ts
|
|
3927
|
-
* await softDeleteFile(config, 'file_abc')
|
|
3928
|
-
* // Later…
|
|
3929
|
-
* await restoreFile(config, 'file_abc')
|
|
3930
|
-
* ```
|
|
3931
|
-
*/
|
|
3932
|
-
declare function softDeleteFile(config: SylphxConfig, fileId: string): Promise<void>;
|
|
3933
|
-
/**
|
|
3934
|
-
* Reverse a soft-delete. Fails if the file is not currently soft-deleted
|
|
3935
|
-
* (explicit over silent to catch admin-UI bugs).
|
|
3936
|
-
*
|
|
3937
|
-
* @example
|
|
3938
|
-
* ```ts
|
|
3939
|
-
* const file = await restoreFile(config, 'file_abc')
|
|
3940
|
-
* ```
|
|
3941
|
-
*/
|
|
3942
|
-
declare function restoreFile(config: SylphxConfig, fileId: string): Promise<FileInfo>;
|
|
3943
|
-
/**
|
|
3944
|
-
* Download the payload of a specific historical version via a short-lived
|
|
3945
|
-
* signed URL. Useful for diffing current vs a previous version or serving
|
|
3946
|
-
* an older variant to an admin audit UI.
|
|
3947
|
-
*
|
|
3948
|
-
* Internally calls {@link getSignedUrl} after flipping the version to be
|
|
3949
|
-
* "temporarily current" would NOT be safe, so instead the server minted
|
|
3950
|
-
* URL carries the explicit `versionId`. The resulting blob is streamed
|
|
3951
|
-
* directly from storage — no server round-trip for the bytes.
|
|
3779
|
+
* `storage` namespace — the only public surface for storage in `@sylphx/sdk`.
|
|
3952
3780
|
*
|
|
3953
3781
|
* @example
|
|
3954
3782
|
* ```ts
|
|
3955
|
-
*
|
|
3956
|
-
* const bytes = new Uint8Array(await blob.arrayBuffer())
|
|
3957
|
-
* ```
|
|
3958
|
-
*/
|
|
3959
|
-
declare function downloadFileVersion(config: SylphxConfig, fileId: string, versionId: string): Promise<Blob>;
|
|
3960
|
-
/**
|
|
3961
|
-
* Generate a signed URL for accessing a private file
|
|
3962
|
-
*
|
|
3963
|
-
* Signed URLs provide time-limited access to private files without
|
|
3964
|
-
* exposing permanent URLs. Useful for:
|
|
3965
|
-
* - Secure document downloads
|
|
3966
|
-
* - Private media streaming
|
|
3967
|
-
* - Temporary file sharing
|
|
3783
|
+
* import { storage } from '@sylphx/sdk'
|
|
3968
3784
|
*
|
|
3969
|
-
*
|
|
3970
|
-
*
|
|
3971
|
-
*
|
|
3972
|
-
*
|
|
3973
|
-
*
|
|
3974
|
-
* // Generate an inline preview URL valid for 5 minutes
|
|
3975
|
-
* const preview = await getSignedUrl(config, 'file-123', {
|
|
3976
|
-
* expiresIn: 300,
|
|
3977
|
-
* 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}`),
|
|
3978
3789
|
* })
|
|
3979
3790
|
*
|
|
3980
|
-
*
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
* })
|
|
3791
|
+
* for await (const f of storage.files.list(config, { folder: 'documents' })) {
|
|
3792
|
+
* console.log(f.id, f.filename)
|
|
3793
|
+
* }
|
|
3984
3794
|
* ```
|
|
3985
3795
|
*/
|
|
3986
|
-
declare
|
|
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
|
+
};
|
|
3987
3814
|
|
|
3988
3815
|
/**
|
|
3989
3816
|
* Push Notification Service Worker Template
|
|
@@ -9447,4 +9274,4 @@ declare const functions: {
|
|
|
9447
9274
|
};
|
|
9448
9275
|
};
|
|
9449
9276
|
|
|
9450
|
-
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 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, 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 };
|