@scalemule/sdk 0.0.48 → 0.0.49

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 CHANGED
@@ -4630,7 +4630,7 @@ declare class PhotoService extends ServiceModule {
4630
4630
  }
4631
4631
 
4632
4632
  /**
4633
- * Audio service — typed wrapper over `/v1/audios`.
4633
+ * Audio service — typed wrapper over `/v1/audio`.
4634
4634
  *
4635
4635
  * Phase 5 MVP scope:
4636
4636
  * - `uploadViaStorage()` — presigned-direct-to-S3 upload + register flow,
@@ -4704,6 +4704,78 @@ declare class AudioService extends ServiceModule {
4704
4704
  }, requestOptions?: RequestOptions): Promise<ApiResponse<AudioUploadViaStorageResult>>;
4705
4705
  }
4706
4706
 
4707
+ type TtsAccessMode = 'owner_private' | 'tenant_shared' | 'public';
4708
+ interface TtsAudioInfo {
4709
+ id: string;
4710
+ status: string;
4711
+ access_mode: TtsAccessMode;
4712
+ codec?: string | null;
4713
+ duration_ms?: number | null;
4714
+ bit_rate_kbps?: number | null;
4715
+ waveform_peaks?: unknown;
4716
+ url?: string | null;
4717
+ expires_at?: string | null;
4718
+ }
4719
+ interface TtsSynthesizeReadyResult {
4720
+ status: 'ready';
4721
+ audio_id: string;
4722
+ cached: boolean;
4723
+ provider: string;
4724
+ chunks: number;
4725
+ access_mode: TtsAccessMode;
4726
+ audio: TtsAudioInfo;
4727
+ }
4728
+ interface TtsSynthesizeQueuedResult {
4729
+ status: 'queued';
4730
+ job_id: string;
4731
+ }
4732
+ type TtsSynthesizeResult = TtsSynthesizeReadyResult | TtsSynthesizeQueuedResult;
4733
+ interface TtsJobStatus {
4734
+ id: string;
4735
+ access_mode: TtsAccessMode;
4736
+ provider: string;
4737
+ voice: string;
4738
+ model: string;
4739
+ format: string;
4740
+ status: 'queued' | 'chunking' | 'synthesizing' | 'concatenating' | 'ready' | 'failed';
4741
+ chunk_total: number;
4742
+ chunk_done: number;
4743
+ audio_id?: string | null;
4744
+ audio?: TtsAudioInfo | null;
4745
+ error?: string | null;
4746
+ created_at: string;
4747
+ updated_at: string;
4748
+ }
4749
+ interface TtsVoice {
4750
+ provider: string;
4751
+ id: string;
4752
+ display_name: string;
4753
+ language?: string | null;
4754
+ gender?: string | null;
4755
+ preview_url?: string | null;
4756
+ }
4757
+ interface TtsVoicesResponse {
4758
+ provider: string;
4759
+ voices: TtsVoice[];
4760
+ }
4761
+ interface TtsSynthesizeParams {
4762
+ text: string;
4763
+ voice?: string;
4764
+ model?: string;
4765
+ provider?: string;
4766
+ async?: boolean;
4767
+ accessMode?: TtsAccessMode;
4768
+ }
4769
+ interface TtsListVoicesParams {
4770
+ provider?: string;
4771
+ }
4772
+ declare class TtsService extends ServiceModule {
4773
+ protected basePath: string;
4774
+ synthesize(params: TtsSynthesizeParams, options?: RequestOptions): Promise<ApiResponse<TtsSynthesizeResult>>;
4775
+ getJob(id: string, options?: RequestOptions): Promise<ApiResponse<TtsJobStatus>>;
4776
+ listVoices(params?: TtsListVoicesParams, options?: RequestOptions): Promise<ApiResponse<TtsVoicesResponse>>;
4777
+ }
4778
+
4707
4779
  /**
4708
4780
  * Queue Service Module
4709
4781
  *
@@ -6429,6 +6501,7 @@ declare class ScaleMule {
6429
6501
  readonly functions: FunctionsService;
6430
6502
  readonly photo: PhotoService;
6431
6503
  readonly audio: AudioService;
6504
+ readonly tts: TtsService;
6432
6505
  readonly flagContent: FlagContentService;
6433
6506
  readonly creatorMaker: CreatorMakerService;
6434
6507
  readonly compliance: ComplianceService;
@@ -6503,4 +6576,4 @@ declare class ScaleMule {
6503
6576
  getClient(): ScaleMuleClient;
6504
6577
  }
6505
6578
 
6506
- 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 AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, 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 DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, 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 JoinCallResponse, 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 MediaPolicy, type MessageCallback, type MessagePin, 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 PinnedMessagesResponse, 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 SearchUsersParams, 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 StorageSettings, 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 WebrtcStats, 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 };
6579
+ 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 AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, 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 DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, 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 JoinCallResponse, 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 MediaPolicy, type MessageCallback, type MessagePin, 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 PinnedMessagesResponse, 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 SearchUsersParams, 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 StorageSettings, 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 TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, 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 WebrtcStats, 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
@@ -4630,7 +4630,7 @@ declare class PhotoService extends ServiceModule {
4630
4630
  }
4631
4631
 
4632
4632
  /**
4633
- * Audio service — typed wrapper over `/v1/audios`.
4633
+ * Audio service — typed wrapper over `/v1/audio`.
4634
4634
  *
4635
4635
  * Phase 5 MVP scope:
4636
4636
  * - `uploadViaStorage()` — presigned-direct-to-S3 upload + register flow,
@@ -4704,6 +4704,78 @@ declare class AudioService extends ServiceModule {
4704
4704
  }, requestOptions?: RequestOptions): Promise<ApiResponse<AudioUploadViaStorageResult>>;
4705
4705
  }
4706
4706
 
4707
+ type TtsAccessMode = 'owner_private' | 'tenant_shared' | 'public';
4708
+ interface TtsAudioInfo {
4709
+ id: string;
4710
+ status: string;
4711
+ access_mode: TtsAccessMode;
4712
+ codec?: string | null;
4713
+ duration_ms?: number | null;
4714
+ bit_rate_kbps?: number | null;
4715
+ waveform_peaks?: unknown;
4716
+ url?: string | null;
4717
+ expires_at?: string | null;
4718
+ }
4719
+ interface TtsSynthesizeReadyResult {
4720
+ status: 'ready';
4721
+ audio_id: string;
4722
+ cached: boolean;
4723
+ provider: string;
4724
+ chunks: number;
4725
+ access_mode: TtsAccessMode;
4726
+ audio: TtsAudioInfo;
4727
+ }
4728
+ interface TtsSynthesizeQueuedResult {
4729
+ status: 'queued';
4730
+ job_id: string;
4731
+ }
4732
+ type TtsSynthesizeResult = TtsSynthesizeReadyResult | TtsSynthesizeQueuedResult;
4733
+ interface TtsJobStatus {
4734
+ id: string;
4735
+ access_mode: TtsAccessMode;
4736
+ provider: string;
4737
+ voice: string;
4738
+ model: string;
4739
+ format: string;
4740
+ status: 'queued' | 'chunking' | 'synthesizing' | 'concatenating' | 'ready' | 'failed';
4741
+ chunk_total: number;
4742
+ chunk_done: number;
4743
+ audio_id?: string | null;
4744
+ audio?: TtsAudioInfo | null;
4745
+ error?: string | null;
4746
+ created_at: string;
4747
+ updated_at: string;
4748
+ }
4749
+ interface TtsVoice {
4750
+ provider: string;
4751
+ id: string;
4752
+ display_name: string;
4753
+ language?: string | null;
4754
+ gender?: string | null;
4755
+ preview_url?: string | null;
4756
+ }
4757
+ interface TtsVoicesResponse {
4758
+ provider: string;
4759
+ voices: TtsVoice[];
4760
+ }
4761
+ interface TtsSynthesizeParams {
4762
+ text: string;
4763
+ voice?: string;
4764
+ model?: string;
4765
+ provider?: string;
4766
+ async?: boolean;
4767
+ accessMode?: TtsAccessMode;
4768
+ }
4769
+ interface TtsListVoicesParams {
4770
+ provider?: string;
4771
+ }
4772
+ declare class TtsService extends ServiceModule {
4773
+ protected basePath: string;
4774
+ synthesize(params: TtsSynthesizeParams, options?: RequestOptions): Promise<ApiResponse<TtsSynthesizeResult>>;
4775
+ getJob(id: string, options?: RequestOptions): Promise<ApiResponse<TtsJobStatus>>;
4776
+ listVoices(params?: TtsListVoicesParams, options?: RequestOptions): Promise<ApiResponse<TtsVoicesResponse>>;
4777
+ }
4778
+
4707
4779
  /**
4708
4780
  * Queue Service Module
4709
4781
  *
@@ -6429,6 +6501,7 @@ declare class ScaleMule {
6429
6501
  readonly functions: FunctionsService;
6430
6502
  readonly photo: PhotoService;
6431
6503
  readonly audio: AudioService;
6504
+ readonly tts: TtsService;
6432
6505
  readonly flagContent: FlagContentService;
6433
6506
  readonly creatorMaker: CreatorMakerService;
6434
6507
  readonly compliance: ComplianceService;
@@ -6503,4 +6576,4 @@ declare class ScaleMule {
6503
6576
  getClient(): ScaleMuleClient;
6504
6577
  }
6505
6578
 
6506
- 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 AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, 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 DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, 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 JoinCallResponse, 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 MediaPolicy, type MessageCallback, type MessagePin, 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 PinnedMessagesResponse, 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 SearchUsersParams, 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 StorageSettings, 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 WebrtcStats, 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 };
6579
+ 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 AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, 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 DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, 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 JoinCallResponse, 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 MediaPolicy, type MessageCallback, type MessagePin, 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 PinnedMessagesResponse, 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 SearchUsersParams, 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 StorageSettings, 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 TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, 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 WebrtcStats, 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.js CHANGED
@@ -339,6 +339,7 @@ __export(index_exports, {
339
339
  SocialService: () => SocialService,
340
340
  StorageService: () => StorageService,
341
341
  TeamsService: () => TeamsService,
342
+ TtsService: () => TtsService,
342
343
  UploadResumeStore: () => UploadResumeStore,
343
344
  UploadTelemetry: () => UploadTelemetry,
344
345
  VideoService: () => VideoService,
@@ -6559,7 +6560,7 @@ var AudioService = class extends ServiceModule {
6559
6560
  constructor(client, storage) {
6560
6561
  super(client);
6561
6562
  this.storage = storage;
6562
- this.basePath = "/v1/audios";
6563
+ this.basePath = "/v1/audio";
6563
6564
  }
6564
6565
  /**
6565
6566
  * Register a storage-uploaded audio asset with the audio service.
@@ -6617,6 +6618,34 @@ var AudioService = class extends ServiceModule {
6617
6618
  }
6618
6619
  };
6619
6620
 
6621
+ // src/services/tts.ts
6622
+ var TtsService = class extends ServiceModule {
6623
+ constructor() {
6624
+ super(...arguments);
6625
+ this.basePath = "/v1/tts";
6626
+ }
6627
+ async synthesize(params, options) {
6628
+ return this.post(
6629
+ "/synthesize",
6630
+ {
6631
+ text: params.text,
6632
+ voice: params.voice,
6633
+ model: params.model,
6634
+ provider: params.provider,
6635
+ async: params.async,
6636
+ access_mode: params.accessMode
6637
+ },
6638
+ options
6639
+ );
6640
+ }
6641
+ async getJob(id, options) {
6642
+ return this._get(`/jobs/${id}`, options);
6643
+ }
6644
+ async listVoices(params, options) {
6645
+ return this._get(this.withQuery("/voices", { provider: params?.provider }), options);
6646
+ }
6647
+ };
6648
+
6620
6649
  // src/services/queue.ts
6621
6650
  var DeadLetterApi = class extends ServiceModule {
6622
6651
  constructor() {
@@ -7468,6 +7497,7 @@ var ScaleMule = class {
7468
7497
  this.functions = new FunctionsService(this._client);
7469
7498
  this.photo = new PhotoService(this._client, this.storage);
7470
7499
  this.audio = new AudioService(this._client, this.storage);
7500
+ this.tts = new TtsService(this._client);
7471
7501
  this.flagContent = new FlagContentService(this._client);
7472
7502
  this.creatorMaker = new CreatorMakerService(this._client);
7473
7503
  this.compliance = new ComplianceService(this._client);
@@ -7649,6 +7679,7 @@ var index_default = ScaleMule;
7649
7679
  SocialService,
7650
7680
  StorageService,
7651
7681
  TeamsService,
7682
+ TtsService,
7652
7683
  UploadResumeStore,
7653
7684
  UploadTelemetry,
7654
7685
  VideoService,
package/dist/index.mjs CHANGED
@@ -6186,7 +6186,7 @@ var AudioService = class extends ServiceModule {
6186
6186
  constructor(client, storage) {
6187
6187
  super(client);
6188
6188
  this.storage = storage;
6189
- this.basePath = "/v1/audios";
6189
+ this.basePath = "/v1/audio";
6190
6190
  }
6191
6191
  /**
6192
6192
  * Register a storage-uploaded audio asset with the audio service.
@@ -6244,6 +6244,34 @@ var AudioService = class extends ServiceModule {
6244
6244
  }
6245
6245
  };
6246
6246
 
6247
+ // src/services/tts.ts
6248
+ var TtsService = class extends ServiceModule {
6249
+ constructor() {
6250
+ super(...arguments);
6251
+ this.basePath = "/v1/tts";
6252
+ }
6253
+ async synthesize(params, options) {
6254
+ return this.post(
6255
+ "/synthesize",
6256
+ {
6257
+ text: params.text,
6258
+ voice: params.voice,
6259
+ model: params.model,
6260
+ provider: params.provider,
6261
+ async: params.async,
6262
+ access_mode: params.accessMode
6263
+ },
6264
+ options
6265
+ );
6266
+ }
6267
+ async getJob(id, options) {
6268
+ return this._get(`/jobs/${id}`, options);
6269
+ }
6270
+ async listVoices(params, options) {
6271
+ return this._get(this.withQuery("/voices", { provider: params?.provider }), options);
6272
+ }
6273
+ };
6274
+
6247
6275
  // src/services/queue.ts
6248
6276
  var DeadLetterApi = class extends ServiceModule {
6249
6277
  constructor() {
@@ -7095,6 +7123,7 @@ var ScaleMule = class {
7095
7123
  this.functions = new FunctionsService(this._client);
7096
7124
  this.photo = new PhotoService(this._client, this.storage);
7097
7125
  this.audio = new AudioService(this._client, this.storage);
7126
+ this.tts = new TtsService(this._client);
7098
7127
  this.flagContent = new FlagContentService(this._client);
7099
7128
  this.creatorMaker = new CreatorMakerService(this._client);
7100
7129
  this.compliance = new ComplianceService(this._client);
@@ -7275,6 +7304,7 @@ export {
7275
7304
  SocialService,
7276
7305
  StorageService,
7277
7306
  TeamsService,
7307
+ TtsService,
7278
7308
  UploadResumeStore,
7279
7309
  UploadTelemetry,
7280
7310
  VideoService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Official TypeScript/JavaScript SDK for ScaleMule Backend-as-a-Service",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",