@scalemule/sdk 0.0.22 → 0.0.24

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
@@ -1870,6 +1870,83 @@ declare class SocialService extends ServiceModule {
1870
1870
  }): Promise<ApiResponse<Comment>>;
1871
1871
  }
1872
1872
 
1873
+ /**
1874
+ * Referrals Service Module
1875
+ *
1876
+ * Referral program management — share links, campaigns, attribution, rewards.
1877
+ *
1878
+ * Routes:
1879
+ * GET /me → current user's referral profile + stats
1880
+ * GET /me/analytics → referral analytics over time
1881
+ * POST /links → create tracked share link (records channel)
1882
+ * GET /public → resolve referral code to campaign info (no auth)
1883
+ * GET /campaign → get campaign config
1884
+ */
1885
+
1886
+ interface ReferralProfile {
1887
+ referral_code: string;
1888
+ share_link: string;
1889
+ campaign: ReferralCampaign;
1890
+ stats: ReferralStats;
1891
+ }
1892
+ interface ReferralCampaign {
1893
+ id: string;
1894
+ name: string;
1895
+ status: 'active' | 'inactive';
1896
+ reward_referrer_cents: number;
1897
+ reward_friend_cents: number;
1898
+ starts_at: string | null;
1899
+ ends_at: string | null;
1900
+ }
1901
+ interface ReferralStats {
1902
+ clicks: number;
1903
+ signups: number;
1904
+ paid: number;
1905
+ rewarded: number;
1906
+ }
1907
+ interface ShareLink {
1908
+ channel: string;
1909
+ share_link: string;
1910
+ referral_code: string;
1911
+ }
1912
+ interface ReferralAnalytics {
1913
+ daily: Array<{
1914
+ date: string;
1915
+ clicks: number;
1916
+ signups: number;
1917
+ paid: number;
1918
+ }>;
1919
+ totals: ReferralStats;
1920
+ }
1921
+ interface ResolvedReferral {
1922
+ referral_code: string;
1923
+ campaign: ReferralCampaign;
1924
+ }
1925
+ declare class ReferralsService extends ServiceModule {
1926
+ protected basePath: string;
1927
+ /**
1928
+ * Get current user's referral code, share link, campaign, and stats.
1929
+ * Requires member auth.
1930
+ */
1931
+ getMyReferral(options?: RequestOptions): Promise<ApiResponse<ReferralProfile>>;
1932
+ /**
1933
+ * Generate a tracked share link. The `channel` param records where
1934
+ * the share was initiated (e.g., 'whatsapp', 'email', 'copy').
1935
+ * Requires member auth.
1936
+ */
1937
+ createShareLink(channel?: string, options?: RequestOptions): Promise<ApiResponse<ShareLink>>;
1938
+ /**
1939
+ * Get referral analytics for the current user over the last N days.
1940
+ * Requires member auth.
1941
+ */
1942
+ getMyAnalytics(days?: number, options?: RequestOptions): Promise<ApiResponse<ReferralAnalytics>>;
1943
+ /**
1944
+ * Resolve a referral code to its campaign info.
1945
+ * Public endpoint — no member auth required, only API key.
1946
+ */
1947
+ resolveCode(code: string, options?: RequestOptions): Promise<ApiResponse<ResolvedReferral>>;
1948
+ }
1949
+
1873
1950
  /**
1874
1951
  * Billing Service Module
1875
1952
  *
@@ -2534,14 +2611,24 @@ declare class FlagsService extends ServiceModule {
2534
2611
  * Email, SMS, push notifications with template support.
2535
2612
  *
2536
2613
  * Routes:
2537
- * POST /email/send → send email
2538
- * POST /email/templates/{name}/send → send templated email
2539
- * POST /sms/send → send SMS
2540
- * POST /sms/templates/{name}/send → send templated SMS
2541
- * POST /push/send → send push notification
2542
- * POST /push/register → register push token
2543
- * DELETE /push/tokens/{token} → unregister push token
2544
- * GET /messages/{id} → get message status
2614
+ * POST /email/send → send email
2615
+ * POST /email/templates/{name}/send → send templated email
2616
+ * POST /sms/send → send SMS
2617
+ * POST /sms/templates/{name}/send → send templated SMS
2618
+ * POST /push/send → send push notification
2619
+ * POST /push/register → register push token
2620
+ * DELETE /push/tokens/{token} → unregister push token (legacy)
2621
+ * DELETE /push/tokens/by-id/{id} → unregister push token by ID
2622
+ * PUT /push/tokens/by-id/{id}/user → associate token with authenticated user
2623
+ * DELETE /push/tokens/by-id/{id}/user → disassociate user (logout)
2624
+ * GET /push/settings/me → get push settings for current app
2625
+ * GET /push/topics → list notification topics
2626
+ * POST /push/topics/{id}/subscribe → subscribe to topic
2627
+ * DELETE /push/topics/{id}/subscribe → unsubscribe from topic
2628
+ * GET /push/subscriptions → list subscriptions
2629
+ * GET /push/preferences → get push preferences
2630
+ * PUT /push/preferences → update push preferences
2631
+ * GET /messages/{id} → get message status
2545
2632
  */
2546
2633
 
2547
2634
  interface MessageStatus {
@@ -2559,10 +2646,68 @@ interface MessageStatus {
2559
2646
  error_message?: string;
2560
2647
  }
2561
2648
  interface PushToken {
2562
- token: string;
2563
- platform: string;
2649
+ id: string;
2650
+ platform: 'ios' | 'android' | 'web';
2651
+ user_id?: string;
2652
+ is_active: boolean;
2564
2653
  created_at: string;
2565
2654
  }
2655
+ interface PushTokenAssociationResult {
2656
+ id: string;
2657
+ user_id: string;
2658
+ subscriptions_copied: number;
2659
+ }
2660
+ interface PushSettings {
2661
+ push_enabled: boolean;
2662
+ webpush_enabled: boolean;
2663
+ vapid_public_key: string | null;
2664
+ fcm_enabled: boolean;
2665
+ apns_enabled: boolean;
2666
+ silent_push_enabled: boolean;
2667
+ rich_media_enabled: boolean;
2668
+ broadcast_enabled: boolean;
2669
+ max_per_user_per_hour: number;
2670
+ max_per_user_per_day: number;
2671
+ }
2672
+ interface PushTopic {
2673
+ id: string;
2674
+ name: string;
2675
+ display_name: string;
2676
+ description: string | null;
2677
+ is_default: boolean;
2678
+ is_visible: boolean;
2679
+ subscriber_count?: number;
2680
+ }
2681
+ interface PushSubscriptionInfo {
2682
+ id: string;
2683
+ topic_id: string;
2684
+ topic_name?: string;
2685
+ }
2686
+ interface PushPreferences {
2687
+ marketing_enabled: boolean;
2688
+ transactional_enabled: boolean;
2689
+ alert_enabled: boolean;
2690
+ quiet_hours_enabled: boolean;
2691
+ quiet_hours_start: string | null;
2692
+ quiet_hours_end: string | null;
2693
+ quiet_hours_tz: string | null;
2694
+ }
2695
+ interface WebPushSubscriptionData {
2696
+ endpoint: string;
2697
+ keys: {
2698
+ p256dh: string;
2699
+ auth: string;
2700
+ };
2701
+ }
2702
+ interface RegisterPushTokenData {
2703
+ token: string;
2704
+ platform: 'ios' | 'android' | 'web';
2705
+ device_id?: string;
2706
+ subscription?: WebPushSubscriptionData;
2707
+ app_version?: string;
2708
+ os_version?: string;
2709
+ device_model?: string;
2710
+ }
2566
2711
  declare class CommunicationService extends ServiceModule {
2567
2712
  protected basePath: string;
2568
2713
  sendEmail(data: {
@@ -2590,13 +2735,23 @@ declare class CommunicationService extends ServiceModule {
2590
2735
  body: string;
2591
2736
  data?: Record<string, unknown>;
2592
2737
  }, options?: RequestOptions): Promise<ApiResponse<MessageStatus>>;
2593
- registerPushToken(data: {
2594
- token: string;
2595
- platform: string;
2596
- }, options?: RequestOptions): Promise<ApiResponse<PushToken>>;
2738
+ registerPushToken(data: RegisterPushTokenData, options?: RequestOptions): Promise<ApiResponse<PushToken>>;
2739
+ /** @deprecated Use unregisterPushTokenById() for web push tokens */
2597
2740
  unregisterPushToken(token: string, options?: RequestOptions): Promise<ApiResponse<{
2598
2741
  unregistered: boolean;
2599
2742
  }>>;
2743
+ unregisterPushTokenById(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
2744
+ associatePushTokenUserById(id: string, options?: RequestOptions): Promise<ApiResponse<PushTokenAssociationResult>>;
2745
+ disassociatePushTokenUser(id: string, options?: RequestOptions): Promise<ApiResponse<void>>;
2746
+ getMyPushSettings(options?: RequestOptions): Promise<ApiResponse<PushSettings>>;
2747
+ listTopics(options?: RequestOptions): Promise<ApiResponse<PushTopic[]>>;
2748
+ subscribeTopic(topicId: string, data?: {
2749
+ push_token_id?: string;
2750
+ }, options?: RequestOptions): Promise<ApiResponse<void>>;
2751
+ unsubscribeTopic(topicId: string, options?: RequestOptions): Promise<ApiResponse<void>>;
2752
+ listSubscriptions(options?: RequestOptions): Promise<ApiResponse<PushSubscriptionInfo[]>>;
2753
+ getPushPreferences(options?: RequestOptions): Promise<ApiResponse<PushPreferences>>;
2754
+ updatePushPreferences(data: Partial<PushPreferences>, options?: RequestOptions): Promise<ApiResponse<PushPreferences>>;
2600
2755
  getMessageStatus(id: string, options?: RequestOptions): Promise<ApiResponse<MessageStatus>>;
2601
2756
  /** @deprecated Use sendSms() instead */
2602
2757
  sendSMS(data: {
@@ -2612,6 +2767,91 @@ declare class CommunicationService extends ServiceModule {
2612
2767
  }): Promise<ApiResponse<MessageStatus>>;
2613
2768
  }
2614
2769
 
2770
+ /**
2771
+ * WebPushManager — Browser push notification subscription manager
2772
+ *
2773
+ * Handles service worker registration, Notification permission prompts,
2774
+ * PushManager.subscribe(), and backend token registration.
2775
+ *
2776
+ * All HTTP calls go through an injectable PushApiFetcher — this lets
2777
+ * the NextJS hook inject a fetcher that routes through /api/push/* proxy,
2778
+ * while the React hook injects one that calls the gateway directly.
2779
+ */
2780
+
2781
+ interface PushApiFetcher {
2782
+ getSettings(): Promise<PushSettings>;
2783
+ registerToken(data: RegisterPushTokenData): Promise<{
2784
+ id: string;
2785
+ }>;
2786
+ unregisterToken(tokenId: string): Promise<void>;
2787
+ associateUser(tokenId: string): Promise<void>;
2788
+ disassociateUser(tokenId: string): Promise<void>;
2789
+ }
2790
+ interface WebPushManagerOptions {
2791
+ /** Service worker URL (default: '/sw.js') */
2792
+ serviceWorkerUrl?: string;
2793
+ /** Required: HTTP transport abstraction */
2794
+ fetcher: PushApiFetcher;
2795
+ }
2796
+ declare class WebPushManager {
2797
+ private fetcher;
2798
+ private swUrl;
2799
+ private state;
2800
+ private registration;
2801
+ constructor(options: WebPushManagerOptions);
2802
+ /** Whether the browser supports Web Push */
2803
+ isSupported(): boolean;
2804
+ /** Current notification permission state */
2805
+ getPermissionState(): NotificationPermission | 'unsupported';
2806
+ /** Request notification permission from the user */
2807
+ requestPermission(): Promise<NotificationPermission>;
2808
+ /**
2809
+ * Full subscribe flow:
2810
+ * 1. Check browser support
2811
+ * 2. Request notification permission
2812
+ * 3. Register service worker
2813
+ * 4. Fetch VAPID public key from backend
2814
+ * 5. PushManager.subscribe() with VAPID key
2815
+ * 6. Register token with backend
2816
+ *
2817
+ * @param deviceId Optional device identifier for anonymous users.
2818
+ * If not provided, generates a random UUID stored in localStorage.
2819
+ */
2820
+ subscribe(deviceId?: string): Promise<{
2821
+ tokenId: string;
2822
+ endpoint: string;
2823
+ } | null>;
2824
+ /** Unsubscribe from browser push and deregister token */
2825
+ unsubscribe(): Promise<void>;
2826
+ /** Link push token to the currently authenticated user (call after login) */
2827
+ associateUser(): Promise<void>;
2828
+ /** Clear user association from push token (call before logout) */
2829
+ disassociateUser(): Promise<void>;
2830
+ /** Check if currently subscribed to push notifications */
2831
+ isSubscribed(): Promise<boolean>;
2832
+ /** Get the active PushSubscription from the service worker */
2833
+ getSubscription(): Promise<PushSubscription | null>;
2834
+ /** Get the stored token ID (for external use) */
2835
+ getTokenId(): string | null;
2836
+ private persistState;
2837
+ private clearState;
2838
+ }
2839
+
2840
+ /**
2841
+ * Web Push Service Worker Template
2842
+ *
2843
+ * Exports a JavaScript string that can be served as a service worker.
2844
+ * Customers can either:
2845
+ * 1. Use this string with a Next.js API route to serve dynamically
2846
+ * 2. Copy the content into their own public/sw.js
2847
+ *
2848
+ * The service worker handles:
2849
+ * - push events: parse JSON, show notification
2850
+ * - notificationclick: open/focus app window
2851
+ * - message posting to client pages for foreground handling
2852
+ */
2853
+ declare const WEB_PUSH_SERVICE_WORKER = "\n// ScaleMule Push Notification Service Worker\n\nself.addEventListener('push', function(event) {\n if (!event.data) return;\n\n var data;\n try {\n data = event.data.json();\n } catch (e) {\n data = { title: 'New Notification', body: event.data.text() };\n }\n\n var title = data.title || 'Notification';\n var options = {\n body: data.body || '',\n icon: data.icon || undefined,\n image: data.image || undefined,\n badge: data.badge || undefined,\n data: data.data || data,\n tag: data.tag || undefined,\n actions: data.actions || undefined,\n requireInteraction: data.requireInteraction || false,\n };\n\n // Show the notification\n event.waitUntil(\n self.registration.showNotification(title, options)\n .then(function() {\n // Post message to all client pages for foreground handling\n return self.clients.matchAll({ type: 'window', includeUncontrolled: true });\n })\n .then(function(clients) {\n clients.forEach(function(client) {\n client.postMessage({\n type: 'push-received',\n payload: data,\n });\n });\n })\n );\n});\n\nself.addEventListener('notificationclick', function(event) {\n event.notification.close();\n\n var url = '/';\n if (event.notification.data && event.notification.data.url) {\n url = event.notification.data.url;\n }\n\n // Handle action button clicks\n if (event.action && event.notification.data && event.notification.data.actions) {\n var action = event.notification.data.actions.find(function(a) {\n return a.action === event.action;\n });\n if (action && action.url) {\n url = action.url;\n }\n }\n\n event.waitUntil(\n self.clients.matchAll({ type: 'window', includeUncontrolled: true })\n .then(function(clientList) {\n // Try to focus an existing window\n for (var i = 0; i < clientList.length; i++) {\n var client = clientList[i];\n if (client.url.indexOf(self.registration.scope) !== -1 && 'focus' in client) {\n client.focus();\n client.navigate(url);\n return;\n }\n }\n // Open a new window if none exists\n if (self.clients.openWindow) {\n return self.clients.openWindow(url);\n }\n })\n );\n});\n";
2854
+
2615
2855
  /**
2616
2856
  * Scheduler Service Module
2617
2857
  *
@@ -5201,6 +5441,7 @@ declare class ScaleMule {
5201
5441
  readonly data: DataService;
5202
5442
  readonly chat: ChatService;
5203
5443
  readonly social: SocialService;
5444
+ readonly referrals: ReferralsService;
5204
5445
  readonly billing: BillingService;
5205
5446
  readonly analytics: AnalyticsService;
5206
5447
  readonly flags: FlagsService;
@@ -5278,4 +5519,4 @@ declare class ScaleMule {
5278
5519
  getClient(): ScaleMuleClient;
5279
5520
  }
5280
5521
 
5281
- export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushToken, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RequestOptions, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
5522
+ export { type AccountBalance, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type Conversation, type CostReportDay, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MessageCallback, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StrategyResult, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };