@scalemule/sdk 0.0.28 → 0.0.30
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.mts +228 -1
- package/dist/index.d.ts +228 -1
- package/dist/index.js +280 -4
- package/dist/index.mjs +279 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -129,6 +129,30 @@ interface ScaleMuleConfig {
|
|
|
129
129
|
enableOfflineQueue?: boolean;
|
|
130
130
|
/** Enable multi-account session pool (Google Account Chooser style). Default: false */
|
|
131
131
|
enableMultiSession?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Enable the account switcher — remembers which accounts have logged in on
|
|
134
|
+
* this device so users can pick an account and re-authenticate.
|
|
135
|
+
*
|
|
136
|
+
* Unlike enableMultiSession, this stores **no tokens** for inactive accounts.
|
|
137
|
+
* Only display metadata (email, name, avatar) is persisted.
|
|
138
|
+
* Switching accounts always requires re-authentication.
|
|
139
|
+
*
|
|
140
|
+
* Default: false
|
|
141
|
+
*/
|
|
142
|
+
enableAccountSwitcher?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Privacy level for the account switcher.
|
|
145
|
+
*
|
|
146
|
+
* Controls how much identifying information is stored for inactive accounts:
|
|
147
|
+
* - `'full'` — Full email, name, avatar stored (like Google). Default.
|
|
148
|
+
* - `'masked'` — Email masked (j***@g***.com), name shows initial only, no avatar.
|
|
149
|
+
* Masked at write time — the full email is never persisted.
|
|
150
|
+
* - `'minimal'` — Only userId and provider stored. No PII at all.
|
|
151
|
+
*
|
|
152
|
+
* Privacy downgrades are lossy: switching from minimal/masked to full cannot
|
|
153
|
+
* recover stripped fields for existing entries until those accounts log in again.
|
|
154
|
+
*/
|
|
155
|
+
accountSwitcherPrivacy?: AccountSwitcherPrivacy;
|
|
132
156
|
}
|
|
133
157
|
/**
|
|
134
158
|
* A session entry in the multi-account session pool.
|
|
@@ -142,6 +166,55 @@ interface SessionPoolEntry {
|
|
|
142
166
|
expiresAt?: string;
|
|
143
167
|
addedAt: string;
|
|
144
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* A remembered account for the account switcher.
|
|
171
|
+
*
|
|
172
|
+
* Contains display metadata only — NO tokens or session data.
|
|
173
|
+
* Switching to a known account requires re-authentication.
|
|
174
|
+
* This is the secure alternative to SessionPoolEntry which stores tokens.
|
|
175
|
+
*/
|
|
176
|
+
interface KnownAccount {
|
|
177
|
+
/** User ID */
|
|
178
|
+
userId: string;
|
|
179
|
+
/** Email address (used for login pre-fill) */
|
|
180
|
+
email: string;
|
|
181
|
+
/** Display name */
|
|
182
|
+
fullName?: string;
|
|
183
|
+
/** Avatar URL */
|
|
184
|
+
avatarUrl?: string;
|
|
185
|
+
/** How the user last authenticated ('email', 'google', 'apple', etc.) */
|
|
186
|
+
provider?: string;
|
|
187
|
+
/** ISO timestamp of last successful login on this device */
|
|
188
|
+
lastActiveAt: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Privacy level for the account switcher.
|
|
192
|
+
*/
|
|
193
|
+
type AccountSwitcherPrivacy = 'full' | 'masked' | 'minimal';
|
|
194
|
+
/**
|
|
195
|
+
* A known account after privacy transforms have been applied.
|
|
196
|
+
*
|
|
197
|
+
* This is what gets stored and returned to the UI. In 'masked' mode, email
|
|
198
|
+
* is partially masked and avatarUrl is stripped. In 'minimal' mode, all PII
|
|
199
|
+
* is stripped and only userId/provider/displayLabel/colorIndex remain.
|
|
200
|
+
*/
|
|
201
|
+
interface KnownAccountDisplay {
|
|
202
|
+
userId: string;
|
|
203
|
+
/** Masked or full email, absent in 'minimal' mode */
|
|
204
|
+
email?: string;
|
|
205
|
+
/** Full name, first initial, or absent depending on privacy mode */
|
|
206
|
+
fullName?: string;
|
|
207
|
+
/** Avatar URL, absent in 'masked' and 'minimal' modes */
|
|
208
|
+
avatarUrl?: string;
|
|
209
|
+
/** Authentication provider ('email', 'google', etc.) */
|
|
210
|
+
provider?: string;
|
|
211
|
+
/** ISO timestamp of last successful login on this device */
|
|
212
|
+
lastActiveAt: string;
|
|
213
|
+
/** Display label for 'minimal' mode (constant "Account") */
|
|
214
|
+
displayLabel?: string;
|
|
215
|
+
/** Stable color index derived from userId hash (0-7), for avatar circles */
|
|
216
|
+
colorIndex?: number;
|
|
217
|
+
}
|
|
145
218
|
/**
|
|
146
219
|
* Per-request options that override client defaults.
|
|
147
220
|
*/
|
|
@@ -267,6 +340,9 @@ declare class ScaleMuleClient {
|
|
|
267
340
|
private anonymousId;
|
|
268
341
|
private multiSessionEnabled;
|
|
269
342
|
private sessionPool;
|
|
343
|
+
private accountSwitcherEnabled;
|
|
344
|
+
private accountSwitcherPrivacy;
|
|
345
|
+
private knownAccounts;
|
|
270
346
|
constructor(config: ScaleMuleConfig);
|
|
271
347
|
initialize(): Promise<void>;
|
|
272
348
|
setSession(token: string, userId: string): Promise<void>;
|
|
@@ -293,6 +369,23 @@ declare class ScaleMuleClient {
|
|
|
293
369
|
clearAllAccounts(): Promise<void>;
|
|
294
370
|
/** Persist session pool to storage */
|
|
295
371
|
private persistSessionPool;
|
|
372
|
+
isAccountSwitcherEnabled(): boolean;
|
|
373
|
+
getAccountSwitcherPrivacy(): AccountSwitcherPrivacy;
|
|
374
|
+
/** Get all known accounts that have logged in on this device (privacy-transformed) */
|
|
375
|
+
getKnownAccounts(): KnownAccountDisplay[];
|
|
376
|
+
/**
|
|
377
|
+
* Record an account as "known" on this device.
|
|
378
|
+
* Applies privacy transforms before storing — full email is never persisted
|
|
379
|
+
* in masked/minimal modes. Evicts oldest accounts if over the cap.
|
|
380
|
+
* Called automatically after successful login/register when account switcher is enabled.
|
|
381
|
+
*/
|
|
382
|
+
addKnownAccount(account: KnownAccount): Promise<void>;
|
|
383
|
+
/** Remove a specific account from the known accounts list ("forget this account") */
|
|
384
|
+
removeKnownAccount(userId: string): Promise<void>;
|
|
385
|
+
/** Clear all known accounts ("forget all accounts on this device") */
|
|
386
|
+
clearKnownAccounts(): Promise<void>;
|
|
387
|
+
/** Persist known accounts to storage */
|
|
388
|
+
private persistKnownAccounts;
|
|
296
389
|
getBaseUrl(): string;
|
|
297
390
|
getApiKey(): string;
|
|
298
391
|
isOnline(): boolean;
|
|
@@ -1449,6 +1542,7 @@ declare class RealtimeService extends ServiceModule {
|
|
|
1449
1542
|
/** Disconnect and clean up all subscriptions. */
|
|
1450
1543
|
disconnect(): void;
|
|
1451
1544
|
private connect;
|
|
1545
|
+
private fetchTicketAndConnect;
|
|
1452
1546
|
private authenticate;
|
|
1453
1547
|
private handleMessage;
|
|
1454
1548
|
private dispatchMessage;
|
|
@@ -4651,6 +4745,121 @@ declare class FlagContentService extends ServiceModule {
|
|
|
4651
4745
|
getAppeal(id: string, options?: RequestOptions): Promise<ApiResponse<Appeal>>;
|
|
4652
4746
|
}
|
|
4653
4747
|
|
|
4748
|
+
/**
|
|
4749
|
+
* Creator Maker Service Module
|
|
4750
|
+
*
|
|
4751
|
+
* Thin integration for AI image/clip generation via the creator-maker service.
|
|
4752
|
+
* For rich features (React hooks, waitForJob, WebSocket status), use
|
|
4753
|
+
* the standalone @scalemule/creator-maker package instead.
|
|
4754
|
+
*/
|
|
4755
|
+
|
|
4756
|
+
interface GenerateInput {
|
|
4757
|
+
project_id?: string;
|
|
4758
|
+
output_type: 'image' | 'clip';
|
|
4759
|
+
content_mode: 'promo' | 'cartoon';
|
|
4760
|
+
aspect_ratio: '9:16' | '16:9' | '1:1';
|
|
4761
|
+
style_preset_slug?: string;
|
|
4762
|
+
prompt: string;
|
|
4763
|
+
provider_mode?: 'auto' | 'fast' | 'balanced' | 'quality';
|
|
4764
|
+
source_assets?: Array<{
|
|
4765
|
+
storage_file_id: string;
|
|
4766
|
+
role: 'reference' | 'init_image' | 'style_ref';
|
|
4767
|
+
weight?: number;
|
|
4768
|
+
}>;
|
|
4769
|
+
composition?: {
|
|
4770
|
+
caption?: string;
|
|
4771
|
+
watermark?: boolean;
|
|
4772
|
+
};
|
|
4773
|
+
}
|
|
4774
|
+
interface GenerationJob {
|
|
4775
|
+
id: string;
|
|
4776
|
+
project_id: string;
|
|
4777
|
+
output_type: string;
|
|
4778
|
+
content_mode: string;
|
|
4779
|
+
aspect_ratio: string;
|
|
4780
|
+
prompt: string;
|
|
4781
|
+
status: string;
|
|
4782
|
+
estimated_credits: number;
|
|
4783
|
+
actual_credits?: number;
|
|
4784
|
+
outputs: GenerationOutput[];
|
|
4785
|
+
error_code?: string;
|
|
4786
|
+
error_message?: string;
|
|
4787
|
+
created_at: string;
|
|
4788
|
+
completed_at?: string;
|
|
4789
|
+
}
|
|
4790
|
+
interface GenerationOutput {
|
|
4791
|
+
id: string;
|
|
4792
|
+
output_type: string;
|
|
4793
|
+
cdn_url?: string;
|
|
4794
|
+
width: number;
|
|
4795
|
+
height: number;
|
|
4796
|
+
mime_type: string;
|
|
4797
|
+
created_at: string;
|
|
4798
|
+
}
|
|
4799
|
+
interface StylePreset {
|
|
4800
|
+
id: string;
|
|
4801
|
+
mode: string;
|
|
4802
|
+
slug: string;
|
|
4803
|
+
name: string;
|
|
4804
|
+
description?: string;
|
|
4805
|
+
thumbnail_url?: string;
|
|
4806
|
+
estimated_credits: number;
|
|
4807
|
+
}
|
|
4808
|
+
interface CreatorUsage {
|
|
4809
|
+
balance_credits: number;
|
|
4810
|
+
total_generations: number;
|
|
4811
|
+
completed_generations: number;
|
|
4812
|
+
}
|
|
4813
|
+
interface CreateProjectInput {
|
|
4814
|
+
title?: string;
|
|
4815
|
+
content_mode: 'promo' | 'cartoon';
|
|
4816
|
+
}
|
|
4817
|
+
interface CreatorProject {
|
|
4818
|
+
id: string;
|
|
4819
|
+
title: string;
|
|
4820
|
+
content_mode: string;
|
|
4821
|
+
created_at: string;
|
|
4822
|
+
updated_at: string;
|
|
4823
|
+
}
|
|
4824
|
+
declare class CreatorMakerService extends ServiceModule {
|
|
4825
|
+
protected basePath: string;
|
|
4826
|
+
/** Submit a generation job. */
|
|
4827
|
+
generate(data: GenerateInput, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4828
|
+
/** Get a generation job by ID. */
|
|
4829
|
+
getJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4830
|
+
/** Long-poll for job completion (server holds up to 30s). */
|
|
4831
|
+
pollJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4832
|
+
/** List the current user's generation jobs. */
|
|
4833
|
+
listJobs(params?: Record<string, unknown>, options?: RequestOptions): Promise<PaginatedResponse<GenerationJob>>;
|
|
4834
|
+
/** Cancel a pending or queued job. */
|
|
4835
|
+
cancelJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
4836
|
+
id: string;
|
|
4837
|
+
status: string;
|
|
4838
|
+
}>>;
|
|
4839
|
+
/** Retry a failed job. */
|
|
4840
|
+
retryJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4841
|
+
/** Generate variations of a completed job. */
|
|
4842
|
+
generateVariations(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob[]>>;
|
|
4843
|
+
/** List available style presets, optionally filtered by mode. */
|
|
4844
|
+
listPresets(params?: {
|
|
4845
|
+
mode?: string;
|
|
4846
|
+
}, options?: RequestOptions): Promise<ApiResponse<StylePreset[]>>;
|
|
4847
|
+
/** Get a style preset by slug. */
|
|
4848
|
+
getPreset(slug: string, options?: RequestOptions): Promise<ApiResponse<StylePreset>>;
|
|
4849
|
+
/** Create a project. */
|
|
4850
|
+
createProject(data: CreateProjectInput, options?: RequestOptions): Promise<ApiResponse<CreatorProject>>;
|
|
4851
|
+
/** List the current user's projects. */
|
|
4852
|
+
listProjects(params?: Record<string, unknown>, options?: RequestOptions): Promise<PaginatedResponse<CreatorProject>>;
|
|
4853
|
+
/** Get generation usage and credit balance. */
|
|
4854
|
+
getUsage(options?: RequestOptions): Promise<ApiResponse<CreatorUsage>>;
|
|
4855
|
+
/** Get a generation output by ID. */
|
|
4856
|
+
getOutput(outputId: string, options?: RequestOptions): Promise<ApiResponse<GenerationOutput>>;
|
|
4857
|
+
/** Get a download URL for a generation output. */
|
|
4858
|
+
getDownloadUrl(outputId: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
4859
|
+
cdn_url: string;
|
|
4860
|
+
}>>;
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4654
4863
|
interface AuthRegisterAgentRequest {
|
|
4655
4864
|
name: string;
|
|
4656
4865
|
agent_platform: string;
|
|
@@ -5571,6 +5780,7 @@ declare class ScaleMule {
|
|
|
5571
5780
|
readonly functions: FunctionsService;
|
|
5572
5781
|
readonly photo: PhotoService;
|
|
5573
5782
|
readonly flagContent: FlagContentService;
|
|
5783
|
+
readonly creatorMaker: CreatorMakerService;
|
|
5574
5784
|
readonly compliance: ComplianceService;
|
|
5575
5785
|
readonly orchestrator: OrchestratorService;
|
|
5576
5786
|
readonly agentAuth: AgentAuthService;
|
|
@@ -5614,6 +5824,23 @@ declare class ScaleMule {
|
|
|
5614
5824
|
removeAccount(userId: string): Promise<void>;
|
|
5615
5825
|
/** Clear all accounts from the pool */
|
|
5616
5826
|
clearAllAccounts(): Promise<void>;
|
|
5827
|
+
/** Whether the account switcher is enabled */
|
|
5828
|
+
isAccountSwitcherEnabled(): boolean;
|
|
5829
|
+
/** The configured privacy level for the account switcher */
|
|
5830
|
+
getAccountSwitcherPrivacy(): AccountSwitcherPrivacy;
|
|
5831
|
+
/**
|
|
5832
|
+
* Get all accounts that have previously logged in on this device.
|
|
5833
|
+
* Returns privacy-transformed display data — no raw PII in masked/minimal modes.
|
|
5834
|
+
* Requires `enableAccountSwitcher: true` in config.
|
|
5835
|
+
*/
|
|
5836
|
+
getKnownAccounts(): KnownAccountDisplay[];
|
|
5837
|
+
/**
|
|
5838
|
+
* Forget a specific account — removes it from the known accounts list.
|
|
5839
|
+
* Does NOT affect any active session.
|
|
5840
|
+
*/
|
|
5841
|
+
removeKnownAccount(userId: string): Promise<void>;
|
|
5842
|
+
/** Forget all known accounts on this device. */
|
|
5843
|
+
clearKnownAccounts(): Promise<void>;
|
|
5617
5844
|
/** The base URL being used for API requests. */
|
|
5618
5845
|
getBaseUrl(): string;
|
|
5619
5846
|
/** The application ID, or null if not configured. */
|
|
@@ -5626,4 +5853,4 @@ declare class ScaleMule {
|
|
|
5626
5853
|
getClient(): ScaleMuleClient;
|
|
5627
5854
|
}
|
|
5628
5855
|
|
|
5629
|
-
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 ListNotificationsParams, 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 Notification, type NotificationListResponse, NotificationsService, 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 UnreadCountResponse, 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 };
|
|
5856
|
+
export { type AccountBalance, type AccountSwitcherPrivacy, 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 CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, 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 GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, 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 Notification, type NotificationListResponse, NotificationsService, 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 StylePreset, 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 UnreadCountResponse, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,30 @@ interface ScaleMuleConfig {
|
|
|
129
129
|
enableOfflineQueue?: boolean;
|
|
130
130
|
/** Enable multi-account session pool (Google Account Chooser style). Default: false */
|
|
131
131
|
enableMultiSession?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Enable the account switcher — remembers which accounts have logged in on
|
|
134
|
+
* this device so users can pick an account and re-authenticate.
|
|
135
|
+
*
|
|
136
|
+
* Unlike enableMultiSession, this stores **no tokens** for inactive accounts.
|
|
137
|
+
* Only display metadata (email, name, avatar) is persisted.
|
|
138
|
+
* Switching accounts always requires re-authentication.
|
|
139
|
+
*
|
|
140
|
+
* Default: false
|
|
141
|
+
*/
|
|
142
|
+
enableAccountSwitcher?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Privacy level for the account switcher.
|
|
145
|
+
*
|
|
146
|
+
* Controls how much identifying information is stored for inactive accounts:
|
|
147
|
+
* - `'full'` — Full email, name, avatar stored (like Google). Default.
|
|
148
|
+
* - `'masked'` — Email masked (j***@g***.com), name shows initial only, no avatar.
|
|
149
|
+
* Masked at write time — the full email is never persisted.
|
|
150
|
+
* - `'minimal'` — Only userId and provider stored. No PII at all.
|
|
151
|
+
*
|
|
152
|
+
* Privacy downgrades are lossy: switching from minimal/masked to full cannot
|
|
153
|
+
* recover stripped fields for existing entries until those accounts log in again.
|
|
154
|
+
*/
|
|
155
|
+
accountSwitcherPrivacy?: AccountSwitcherPrivacy;
|
|
132
156
|
}
|
|
133
157
|
/**
|
|
134
158
|
* A session entry in the multi-account session pool.
|
|
@@ -142,6 +166,55 @@ interface SessionPoolEntry {
|
|
|
142
166
|
expiresAt?: string;
|
|
143
167
|
addedAt: string;
|
|
144
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* A remembered account for the account switcher.
|
|
171
|
+
*
|
|
172
|
+
* Contains display metadata only — NO tokens or session data.
|
|
173
|
+
* Switching to a known account requires re-authentication.
|
|
174
|
+
* This is the secure alternative to SessionPoolEntry which stores tokens.
|
|
175
|
+
*/
|
|
176
|
+
interface KnownAccount {
|
|
177
|
+
/** User ID */
|
|
178
|
+
userId: string;
|
|
179
|
+
/** Email address (used for login pre-fill) */
|
|
180
|
+
email: string;
|
|
181
|
+
/** Display name */
|
|
182
|
+
fullName?: string;
|
|
183
|
+
/** Avatar URL */
|
|
184
|
+
avatarUrl?: string;
|
|
185
|
+
/** How the user last authenticated ('email', 'google', 'apple', etc.) */
|
|
186
|
+
provider?: string;
|
|
187
|
+
/** ISO timestamp of last successful login on this device */
|
|
188
|
+
lastActiveAt: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Privacy level for the account switcher.
|
|
192
|
+
*/
|
|
193
|
+
type AccountSwitcherPrivacy = 'full' | 'masked' | 'minimal';
|
|
194
|
+
/**
|
|
195
|
+
* A known account after privacy transforms have been applied.
|
|
196
|
+
*
|
|
197
|
+
* This is what gets stored and returned to the UI. In 'masked' mode, email
|
|
198
|
+
* is partially masked and avatarUrl is stripped. In 'minimal' mode, all PII
|
|
199
|
+
* is stripped and only userId/provider/displayLabel/colorIndex remain.
|
|
200
|
+
*/
|
|
201
|
+
interface KnownAccountDisplay {
|
|
202
|
+
userId: string;
|
|
203
|
+
/** Masked or full email, absent in 'minimal' mode */
|
|
204
|
+
email?: string;
|
|
205
|
+
/** Full name, first initial, or absent depending on privacy mode */
|
|
206
|
+
fullName?: string;
|
|
207
|
+
/** Avatar URL, absent in 'masked' and 'minimal' modes */
|
|
208
|
+
avatarUrl?: string;
|
|
209
|
+
/** Authentication provider ('email', 'google', etc.) */
|
|
210
|
+
provider?: string;
|
|
211
|
+
/** ISO timestamp of last successful login on this device */
|
|
212
|
+
lastActiveAt: string;
|
|
213
|
+
/** Display label for 'minimal' mode (constant "Account") */
|
|
214
|
+
displayLabel?: string;
|
|
215
|
+
/** Stable color index derived from userId hash (0-7), for avatar circles */
|
|
216
|
+
colorIndex?: number;
|
|
217
|
+
}
|
|
145
218
|
/**
|
|
146
219
|
* Per-request options that override client defaults.
|
|
147
220
|
*/
|
|
@@ -267,6 +340,9 @@ declare class ScaleMuleClient {
|
|
|
267
340
|
private anonymousId;
|
|
268
341
|
private multiSessionEnabled;
|
|
269
342
|
private sessionPool;
|
|
343
|
+
private accountSwitcherEnabled;
|
|
344
|
+
private accountSwitcherPrivacy;
|
|
345
|
+
private knownAccounts;
|
|
270
346
|
constructor(config: ScaleMuleConfig);
|
|
271
347
|
initialize(): Promise<void>;
|
|
272
348
|
setSession(token: string, userId: string): Promise<void>;
|
|
@@ -293,6 +369,23 @@ declare class ScaleMuleClient {
|
|
|
293
369
|
clearAllAccounts(): Promise<void>;
|
|
294
370
|
/** Persist session pool to storage */
|
|
295
371
|
private persistSessionPool;
|
|
372
|
+
isAccountSwitcherEnabled(): boolean;
|
|
373
|
+
getAccountSwitcherPrivacy(): AccountSwitcherPrivacy;
|
|
374
|
+
/** Get all known accounts that have logged in on this device (privacy-transformed) */
|
|
375
|
+
getKnownAccounts(): KnownAccountDisplay[];
|
|
376
|
+
/**
|
|
377
|
+
* Record an account as "known" on this device.
|
|
378
|
+
* Applies privacy transforms before storing — full email is never persisted
|
|
379
|
+
* in masked/minimal modes. Evicts oldest accounts if over the cap.
|
|
380
|
+
* Called automatically after successful login/register when account switcher is enabled.
|
|
381
|
+
*/
|
|
382
|
+
addKnownAccount(account: KnownAccount): Promise<void>;
|
|
383
|
+
/** Remove a specific account from the known accounts list ("forget this account") */
|
|
384
|
+
removeKnownAccount(userId: string): Promise<void>;
|
|
385
|
+
/** Clear all known accounts ("forget all accounts on this device") */
|
|
386
|
+
clearKnownAccounts(): Promise<void>;
|
|
387
|
+
/** Persist known accounts to storage */
|
|
388
|
+
private persistKnownAccounts;
|
|
296
389
|
getBaseUrl(): string;
|
|
297
390
|
getApiKey(): string;
|
|
298
391
|
isOnline(): boolean;
|
|
@@ -1449,6 +1542,7 @@ declare class RealtimeService extends ServiceModule {
|
|
|
1449
1542
|
/** Disconnect and clean up all subscriptions. */
|
|
1450
1543
|
disconnect(): void;
|
|
1451
1544
|
private connect;
|
|
1545
|
+
private fetchTicketAndConnect;
|
|
1452
1546
|
private authenticate;
|
|
1453
1547
|
private handleMessage;
|
|
1454
1548
|
private dispatchMessage;
|
|
@@ -4651,6 +4745,121 @@ declare class FlagContentService extends ServiceModule {
|
|
|
4651
4745
|
getAppeal(id: string, options?: RequestOptions): Promise<ApiResponse<Appeal>>;
|
|
4652
4746
|
}
|
|
4653
4747
|
|
|
4748
|
+
/**
|
|
4749
|
+
* Creator Maker Service Module
|
|
4750
|
+
*
|
|
4751
|
+
* Thin integration for AI image/clip generation via the creator-maker service.
|
|
4752
|
+
* For rich features (React hooks, waitForJob, WebSocket status), use
|
|
4753
|
+
* the standalone @scalemule/creator-maker package instead.
|
|
4754
|
+
*/
|
|
4755
|
+
|
|
4756
|
+
interface GenerateInput {
|
|
4757
|
+
project_id?: string;
|
|
4758
|
+
output_type: 'image' | 'clip';
|
|
4759
|
+
content_mode: 'promo' | 'cartoon';
|
|
4760
|
+
aspect_ratio: '9:16' | '16:9' | '1:1';
|
|
4761
|
+
style_preset_slug?: string;
|
|
4762
|
+
prompt: string;
|
|
4763
|
+
provider_mode?: 'auto' | 'fast' | 'balanced' | 'quality';
|
|
4764
|
+
source_assets?: Array<{
|
|
4765
|
+
storage_file_id: string;
|
|
4766
|
+
role: 'reference' | 'init_image' | 'style_ref';
|
|
4767
|
+
weight?: number;
|
|
4768
|
+
}>;
|
|
4769
|
+
composition?: {
|
|
4770
|
+
caption?: string;
|
|
4771
|
+
watermark?: boolean;
|
|
4772
|
+
};
|
|
4773
|
+
}
|
|
4774
|
+
interface GenerationJob {
|
|
4775
|
+
id: string;
|
|
4776
|
+
project_id: string;
|
|
4777
|
+
output_type: string;
|
|
4778
|
+
content_mode: string;
|
|
4779
|
+
aspect_ratio: string;
|
|
4780
|
+
prompt: string;
|
|
4781
|
+
status: string;
|
|
4782
|
+
estimated_credits: number;
|
|
4783
|
+
actual_credits?: number;
|
|
4784
|
+
outputs: GenerationOutput[];
|
|
4785
|
+
error_code?: string;
|
|
4786
|
+
error_message?: string;
|
|
4787
|
+
created_at: string;
|
|
4788
|
+
completed_at?: string;
|
|
4789
|
+
}
|
|
4790
|
+
interface GenerationOutput {
|
|
4791
|
+
id: string;
|
|
4792
|
+
output_type: string;
|
|
4793
|
+
cdn_url?: string;
|
|
4794
|
+
width: number;
|
|
4795
|
+
height: number;
|
|
4796
|
+
mime_type: string;
|
|
4797
|
+
created_at: string;
|
|
4798
|
+
}
|
|
4799
|
+
interface StylePreset {
|
|
4800
|
+
id: string;
|
|
4801
|
+
mode: string;
|
|
4802
|
+
slug: string;
|
|
4803
|
+
name: string;
|
|
4804
|
+
description?: string;
|
|
4805
|
+
thumbnail_url?: string;
|
|
4806
|
+
estimated_credits: number;
|
|
4807
|
+
}
|
|
4808
|
+
interface CreatorUsage {
|
|
4809
|
+
balance_credits: number;
|
|
4810
|
+
total_generations: number;
|
|
4811
|
+
completed_generations: number;
|
|
4812
|
+
}
|
|
4813
|
+
interface CreateProjectInput {
|
|
4814
|
+
title?: string;
|
|
4815
|
+
content_mode: 'promo' | 'cartoon';
|
|
4816
|
+
}
|
|
4817
|
+
interface CreatorProject {
|
|
4818
|
+
id: string;
|
|
4819
|
+
title: string;
|
|
4820
|
+
content_mode: string;
|
|
4821
|
+
created_at: string;
|
|
4822
|
+
updated_at: string;
|
|
4823
|
+
}
|
|
4824
|
+
declare class CreatorMakerService extends ServiceModule {
|
|
4825
|
+
protected basePath: string;
|
|
4826
|
+
/** Submit a generation job. */
|
|
4827
|
+
generate(data: GenerateInput, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4828
|
+
/** Get a generation job by ID. */
|
|
4829
|
+
getJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4830
|
+
/** Long-poll for job completion (server holds up to 30s). */
|
|
4831
|
+
pollJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4832
|
+
/** List the current user's generation jobs. */
|
|
4833
|
+
listJobs(params?: Record<string, unknown>, options?: RequestOptions): Promise<PaginatedResponse<GenerationJob>>;
|
|
4834
|
+
/** Cancel a pending or queued job. */
|
|
4835
|
+
cancelJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
4836
|
+
id: string;
|
|
4837
|
+
status: string;
|
|
4838
|
+
}>>;
|
|
4839
|
+
/** Retry a failed job. */
|
|
4840
|
+
retryJob(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob>>;
|
|
4841
|
+
/** Generate variations of a completed job. */
|
|
4842
|
+
generateVariations(jobId: string, options?: RequestOptions): Promise<ApiResponse<GenerationJob[]>>;
|
|
4843
|
+
/** List available style presets, optionally filtered by mode. */
|
|
4844
|
+
listPresets(params?: {
|
|
4845
|
+
mode?: string;
|
|
4846
|
+
}, options?: RequestOptions): Promise<ApiResponse<StylePreset[]>>;
|
|
4847
|
+
/** Get a style preset by slug. */
|
|
4848
|
+
getPreset(slug: string, options?: RequestOptions): Promise<ApiResponse<StylePreset>>;
|
|
4849
|
+
/** Create a project. */
|
|
4850
|
+
createProject(data: CreateProjectInput, options?: RequestOptions): Promise<ApiResponse<CreatorProject>>;
|
|
4851
|
+
/** List the current user's projects. */
|
|
4852
|
+
listProjects(params?: Record<string, unknown>, options?: RequestOptions): Promise<PaginatedResponse<CreatorProject>>;
|
|
4853
|
+
/** Get generation usage and credit balance. */
|
|
4854
|
+
getUsage(options?: RequestOptions): Promise<ApiResponse<CreatorUsage>>;
|
|
4855
|
+
/** Get a generation output by ID. */
|
|
4856
|
+
getOutput(outputId: string, options?: RequestOptions): Promise<ApiResponse<GenerationOutput>>;
|
|
4857
|
+
/** Get a download URL for a generation output. */
|
|
4858
|
+
getDownloadUrl(outputId: string, options?: RequestOptions): Promise<ApiResponse<{
|
|
4859
|
+
cdn_url: string;
|
|
4860
|
+
}>>;
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4654
4863
|
interface AuthRegisterAgentRequest {
|
|
4655
4864
|
name: string;
|
|
4656
4865
|
agent_platform: string;
|
|
@@ -5571,6 +5780,7 @@ declare class ScaleMule {
|
|
|
5571
5780
|
readonly functions: FunctionsService;
|
|
5572
5781
|
readonly photo: PhotoService;
|
|
5573
5782
|
readonly flagContent: FlagContentService;
|
|
5783
|
+
readonly creatorMaker: CreatorMakerService;
|
|
5574
5784
|
readonly compliance: ComplianceService;
|
|
5575
5785
|
readonly orchestrator: OrchestratorService;
|
|
5576
5786
|
readonly agentAuth: AgentAuthService;
|
|
@@ -5614,6 +5824,23 @@ declare class ScaleMule {
|
|
|
5614
5824
|
removeAccount(userId: string): Promise<void>;
|
|
5615
5825
|
/** Clear all accounts from the pool */
|
|
5616
5826
|
clearAllAccounts(): Promise<void>;
|
|
5827
|
+
/** Whether the account switcher is enabled */
|
|
5828
|
+
isAccountSwitcherEnabled(): boolean;
|
|
5829
|
+
/** The configured privacy level for the account switcher */
|
|
5830
|
+
getAccountSwitcherPrivacy(): AccountSwitcherPrivacy;
|
|
5831
|
+
/**
|
|
5832
|
+
* Get all accounts that have previously logged in on this device.
|
|
5833
|
+
* Returns privacy-transformed display data — no raw PII in masked/minimal modes.
|
|
5834
|
+
* Requires `enableAccountSwitcher: true` in config.
|
|
5835
|
+
*/
|
|
5836
|
+
getKnownAccounts(): KnownAccountDisplay[];
|
|
5837
|
+
/**
|
|
5838
|
+
* Forget a specific account — removes it from the known accounts list.
|
|
5839
|
+
* Does NOT affect any active session.
|
|
5840
|
+
*/
|
|
5841
|
+
removeKnownAccount(userId: string): Promise<void>;
|
|
5842
|
+
/** Forget all known accounts on this device. */
|
|
5843
|
+
clearKnownAccounts(): Promise<void>;
|
|
5617
5844
|
/** The base URL being used for API requests. */
|
|
5618
5845
|
getBaseUrl(): string;
|
|
5619
5846
|
/** The application ID, or null if not configured. */
|
|
@@ -5626,4 +5853,4 @@ declare class ScaleMule {
|
|
|
5626
5853
|
getClient(): ScaleMuleClient;
|
|
5627
5854
|
}
|
|
5628
5855
|
|
|
5629
|
-
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 ListNotificationsParams, 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 Notification, type NotificationListResponse, NotificationsService, 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 UnreadCountResponse, 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 };
|
|
5856
|
+
export { type AccountBalance, type AccountSwitcherPrivacy, 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 CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, 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 GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, 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 Notification, type NotificationListResponse, NotificationsService, 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 StylePreset, 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 UnreadCountResponse, 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 };
|