@scalemule/sdk 0.0.30 → 0.0.32

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
@@ -1502,6 +1502,7 @@ interface PresenceEvent {
1502
1502
  declare class RealtimeService extends ServiceModule {
1503
1503
  protected basePath: string;
1504
1504
  private ws;
1505
+ private usedTicketAuth;
1505
1506
  private subscriptions;
1506
1507
  private presenceCallbacks;
1507
1508
  private statusCallbacks;
@@ -1856,6 +1857,122 @@ declare class ChatService extends ServiceModule {
1856
1857
  }): Promise<ApiResponse<Conversation>>;
1857
1858
  }
1858
1859
 
1860
+ /**
1861
+ * Conference Service Module
1862
+ *
1863
+ * Audio/video conferencing: call lifecycle, participants, recording, settings, stats.
1864
+ *
1865
+ * Routes:
1866
+ * POST /calls -> create call
1867
+ * GET /calls/{id} -> get call
1868
+ * GET /calls -> list calls
1869
+ * POST /calls/{id}/end -> end call
1870
+ * POST /calls/{id}/join -> join call
1871
+ * POST /calls/{id}/leave -> leave call
1872
+ * GET /calls/{id}/participants -> list participants
1873
+ * POST /calls/{id}/recording/start -> start recording
1874
+ * POST /calls/{id}/recording/stop -> stop recording
1875
+ * POST /calls/{id}/recording/consent -> consent to recording
1876
+ * GET /settings -> get settings
1877
+ * PUT /settings -> update settings
1878
+ * POST /calls/{id}/stats -> submit WebRTC stats
1879
+ */
1880
+
1881
+ interface CallSession {
1882
+ id: string;
1883
+ conversation_id?: string;
1884
+ call_type: 'audio' | 'video' | 'screen_share';
1885
+ status: 'created' | 'active' | 'ended';
1886
+ created_by: string;
1887
+ started_at?: string;
1888
+ ended_at?: string;
1889
+ duration_seconds?: number;
1890
+ participant_count?: number;
1891
+ max_concurrent_participants?: number;
1892
+ metadata?: Record<string, unknown>;
1893
+ created_at: string;
1894
+ }
1895
+ interface CallParticipant {
1896
+ id: string;
1897
+ user_id: string;
1898
+ role: 'host' | 'participant' | 'viewer';
1899
+ status: 'invited' | 'joined' | 'left' | 'kicked';
1900
+ joined_at?: string;
1901
+ left_at?: string;
1902
+ duration_seconds?: number;
1903
+ has_audio: boolean;
1904
+ has_video: boolean;
1905
+ }
1906
+ interface JoinCallResponse {
1907
+ call_id: string;
1908
+ livekit_url: string;
1909
+ livekit_token: string;
1910
+ participant: CallParticipant;
1911
+ }
1912
+ interface ConferenceSettings {
1913
+ max_participants_per_call: number;
1914
+ max_concurrent_calls: number;
1915
+ max_call_duration_seconds: number;
1916
+ max_recording_storage_gb: number;
1917
+ recording_enabled: boolean;
1918
+ recording_auto_start: boolean;
1919
+ video_enabled: boolean;
1920
+ screen_share_enabled: boolean;
1921
+ }
1922
+ interface WebrtcStats {
1923
+ bitrate_kbps?: number;
1924
+ packet_loss_pct?: number;
1925
+ jitter_ms?: number;
1926
+ round_trip_ms?: number;
1927
+ audio_level?: number;
1928
+ video_resolution?: string;
1929
+ connection_quality?: 'excellent' | 'good' | 'poor' | 'lost';
1930
+ }
1931
+ declare class ConferenceService extends ServiceModule {
1932
+ protected basePath: string;
1933
+ createCall(data: {
1934
+ conversation_id?: string;
1935
+ call_type?: 'audio' | 'video' | 'screen_share';
1936
+ metadata?: Record<string, unknown>;
1937
+ }, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1938
+ getCall(callId: string, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1939
+ listCalls(params?: {
1940
+ conversation_id?: string;
1941
+ status?: string;
1942
+ page?: number;
1943
+ per_page?: number;
1944
+ }, options?: RequestOptions): Promise<ApiResponse<{
1945
+ data: CallSession[];
1946
+ pagination: {
1947
+ page: number;
1948
+ per_page: number;
1949
+ total: number;
1950
+ };
1951
+ }>>;
1952
+ endCall(callId: string, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1953
+ joinCall(callId: string, options?: RequestOptions): Promise<ApiResponse<JoinCallResponse>>;
1954
+ leaveCall(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1955
+ left: boolean;
1956
+ }>>;
1957
+ listParticipants(callId: string, options?: RequestOptions): Promise<ApiResponse<CallParticipant[]>>;
1958
+ startRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1959
+ recording_id: string;
1960
+ status: string;
1961
+ }>>;
1962
+ stopRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1963
+ recording_id: string;
1964
+ status: string;
1965
+ }>>;
1966
+ consentToRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1967
+ granted: boolean;
1968
+ }>>;
1969
+ getSettings(options?: RequestOptions): Promise<ApiResponse<ConferenceSettings>>;
1970
+ updateSettings(data: Partial<ConferenceSettings>, options?: RequestOptions): Promise<ApiResponse<ConferenceSettings>>;
1971
+ submitStats(callId: string, stats: WebrtcStats, options?: RequestOptions): Promise<ApiResponse<{
1972
+ success: boolean;
1973
+ }>>;
1974
+ }
1975
+
1859
1976
  /**
1860
1977
  * Social Service Module
1861
1978
  *
@@ -5753,6 +5870,7 @@ declare class ScaleMule {
5753
5870
  readonly video: VideoService;
5754
5871
  readonly data: DataService;
5755
5872
  readonly chat: ChatService;
5873
+ readonly conference: ConferenceService;
5756
5874
  readonly social: SocialService;
5757
5875
  readonly referrals: ReferralsService;
5758
5876
  readonly billing: BillingService;
@@ -5853,4 +5971,4 @@ declare class ScaleMule {
5853
5971
  getClient(): ScaleMuleClient;
5854
5972
  }
5855
5973
 
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 };
5974
+ 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 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 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 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 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 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
@@ -1502,6 +1502,7 @@ interface PresenceEvent {
1502
1502
  declare class RealtimeService extends ServiceModule {
1503
1503
  protected basePath: string;
1504
1504
  private ws;
1505
+ private usedTicketAuth;
1505
1506
  private subscriptions;
1506
1507
  private presenceCallbacks;
1507
1508
  private statusCallbacks;
@@ -1856,6 +1857,122 @@ declare class ChatService extends ServiceModule {
1856
1857
  }): Promise<ApiResponse<Conversation>>;
1857
1858
  }
1858
1859
 
1860
+ /**
1861
+ * Conference Service Module
1862
+ *
1863
+ * Audio/video conferencing: call lifecycle, participants, recording, settings, stats.
1864
+ *
1865
+ * Routes:
1866
+ * POST /calls -> create call
1867
+ * GET /calls/{id} -> get call
1868
+ * GET /calls -> list calls
1869
+ * POST /calls/{id}/end -> end call
1870
+ * POST /calls/{id}/join -> join call
1871
+ * POST /calls/{id}/leave -> leave call
1872
+ * GET /calls/{id}/participants -> list participants
1873
+ * POST /calls/{id}/recording/start -> start recording
1874
+ * POST /calls/{id}/recording/stop -> stop recording
1875
+ * POST /calls/{id}/recording/consent -> consent to recording
1876
+ * GET /settings -> get settings
1877
+ * PUT /settings -> update settings
1878
+ * POST /calls/{id}/stats -> submit WebRTC stats
1879
+ */
1880
+
1881
+ interface CallSession {
1882
+ id: string;
1883
+ conversation_id?: string;
1884
+ call_type: 'audio' | 'video' | 'screen_share';
1885
+ status: 'created' | 'active' | 'ended';
1886
+ created_by: string;
1887
+ started_at?: string;
1888
+ ended_at?: string;
1889
+ duration_seconds?: number;
1890
+ participant_count?: number;
1891
+ max_concurrent_participants?: number;
1892
+ metadata?: Record<string, unknown>;
1893
+ created_at: string;
1894
+ }
1895
+ interface CallParticipant {
1896
+ id: string;
1897
+ user_id: string;
1898
+ role: 'host' | 'participant' | 'viewer';
1899
+ status: 'invited' | 'joined' | 'left' | 'kicked';
1900
+ joined_at?: string;
1901
+ left_at?: string;
1902
+ duration_seconds?: number;
1903
+ has_audio: boolean;
1904
+ has_video: boolean;
1905
+ }
1906
+ interface JoinCallResponse {
1907
+ call_id: string;
1908
+ livekit_url: string;
1909
+ livekit_token: string;
1910
+ participant: CallParticipant;
1911
+ }
1912
+ interface ConferenceSettings {
1913
+ max_participants_per_call: number;
1914
+ max_concurrent_calls: number;
1915
+ max_call_duration_seconds: number;
1916
+ max_recording_storage_gb: number;
1917
+ recording_enabled: boolean;
1918
+ recording_auto_start: boolean;
1919
+ video_enabled: boolean;
1920
+ screen_share_enabled: boolean;
1921
+ }
1922
+ interface WebrtcStats {
1923
+ bitrate_kbps?: number;
1924
+ packet_loss_pct?: number;
1925
+ jitter_ms?: number;
1926
+ round_trip_ms?: number;
1927
+ audio_level?: number;
1928
+ video_resolution?: string;
1929
+ connection_quality?: 'excellent' | 'good' | 'poor' | 'lost';
1930
+ }
1931
+ declare class ConferenceService extends ServiceModule {
1932
+ protected basePath: string;
1933
+ createCall(data: {
1934
+ conversation_id?: string;
1935
+ call_type?: 'audio' | 'video' | 'screen_share';
1936
+ metadata?: Record<string, unknown>;
1937
+ }, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1938
+ getCall(callId: string, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1939
+ listCalls(params?: {
1940
+ conversation_id?: string;
1941
+ status?: string;
1942
+ page?: number;
1943
+ per_page?: number;
1944
+ }, options?: RequestOptions): Promise<ApiResponse<{
1945
+ data: CallSession[];
1946
+ pagination: {
1947
+ page: number;
1948
+ per_page: number;
1949
+ total: number;
1950
+ };
1951
+ }>>;
1952
+ endCall(callId: string, options?: RequestOptions): Promise<ApiResponse<CallSession>>;
1953
+ joinCall(callId: string, options?: RequestOptions): Promise<ApiResponse<JoinCallResponse>>;
1954
+ leaveCall(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1955
+ left: boolean;
1956
+ }>>;
1957
+ listParticipants(callId: string, options?: RequestOptions): Promise<ApiResponse<CallParticipant[]>>;
1958
+ startRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1959
+ recording_id: string;
1960
+ status: string;
1961
+ }>>;
1962
+ stopRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1963
+ recording_id: string;
1964
+ status: string;
1965
+ }>>;
1966
+ consentToRecording(callId: string, options?: RequestOptions): Promise<ApiResponse<{
1967
+ granted: boolean;
1968
+ }>>;
1969
+ getSettings(options?: RequestOptions): Promise<ApiResponse<ConferenceSettings>>;
1970
+ updateSettings(data: Partial<ConferenceSettings>, options?: RequestOptions): Promise<ApiResponse<ConferenceSettings>>;
1971
+ submitStats(callId: string, stats: WebrtcStats, options?: RequestOptions): Promise<ApiResponse<{
1972
+ success: boolean;
1973
+ }>>;
1974
+ }
1975
+
1859
1976
  /**
1860
1977
  * Social Service Module
1861
1978
  *
@@ -5753,6 +5870,7 @@ declare class ScaleMule {
5753
5870
  readonly video: VideoService;
5754
5871
  readonly data: DataService;
5755
5872
  readonly chat: ChatService;
5873
+ readonly conference: ConferenceService;
5756
5874
  readonly social: SocialService;
5757
5875
  readonly referrals: ReferralsService;
5758
5876
  readonly billing: BillingService;
@@ -5853,4 +5971,4 @@ declare class ScaleMule {
5853
5971
  getClient(): ScaleMuleClient;
5854
5972
  }
5855
5973
 
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 };
5974
+ 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 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 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 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 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 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
@@ -308,6 +308,7 @@ __export(index_exports, {
308
308
  ChatService: () => ChatService,
309
309
  CommunicationService: () => CommunicationService,
310
310
  ComplianceService: () => ComplianceService,
311
+ ConferenceService: () => ConferenceService,
311
312
  CreatorMakerService: () => CreatorMakerService,
312
313
  DataService: () => DataService,
313
314
  ErrorCodes: () => ErrorCodes,
@@ -3647,6 +3648,7 @@ var RealtimeService = class extends ServiceModule {
3647
3648
  super(...arguments);
3648
3649
  this.basePath = "/v1/realtime";
3649
3650
  this.ws = null;
3651
+ this.usedTicketAuth = false;
3650
3652
  this.subscriptions = /* @__PURE__ */ new Map();
3651
3653
  this.presenceCallbacks = /* @__PURE__ */ new Map();
3652
3654
  this.statusCallbacks = /* @__PURE__ */ new Set();
@@ -3795,8 +3797,10 @@ var RealtimeService = class extends ServiceModule {
3795
3797
  const ticketData = await ticketRes.json();
3796
3798
  const ticket = ticketData.ticket;
3797
3799
  wsUrl = baseUrl.replace(/^http/, "ws") + `/v1/realtime/ws?ticket=${encodeURIComponent(ticket)}`;
3800
+ this.usedTicketAuth = true;
3798
3801
  } else {
3799
3802
  wsUrl = baseUrl.replace(/^http/, "ws") + "/v1/realtime/ws";
3803
+ this.usedTicketAuth = false;
3800
3804
  }
3801
3805
  this.ws = new WebSocket(wsUrl);
3802
3806
  } catch {
@@ -3805,8 +3809,21 @@ var RealtimeService = class extends ServiceModule {
3805
3809
  }
3806
3810
  this.ws.onopen = () => {
3807
3811
  this.reconnectAttempt = 0;
3808
- this.authenticate();
3812
+ if (!this.usedTicketAuth) {
3813
+ this.authenticate();
3814
+ }
3809
3815
  this.startHeartbeat();
3816
+ if (this.usedTicketAuth) {
3817
+ setTimeout(() => {
3818
+ if (!this.authenticated) {
3819
+ this.authenticated = true;
3820
+ this.setStatus("connected");
3821
+ for (const channel of this.subscriptions.keys()) {
3822
+ this.sendWs({ type: "subscribe", channel });
3823
+ }
3824
+ }
3825
+ }, 2e3);
3826
+ }
3810
3827
  };
3811
3828
  this.ws.onmessage = (event) => {
3812
3829
  try {
@@ -4300,6 +4317,68 @@ var ChatService = class extends ServiceModule {
4300
4317
  }
4301
4318
  };
4302
4319
 
4320
+ // src/services/conference.ts
4321
+ var ConferenceService = class extends ServiceModule {
4322
+ constructor() {
4323
+ super(...arguments);
4324
+ this.basePath = "/v1/conference";
4325
+ }
4326
+ // --------------------------------------------------------------------------
4327
+ // Call Lifecycle
4328
+ // --------------------------------------------------------------------------
4329
+ async createCall(data, options) {
4330
+ return this.post("/calls", data, options);
4331
+ }
4332
+ async getCall(callId, options) {
4333
+ return this._get(`/calls/${callId}`, options);
4334
+ }
4335
+ async listCalls(params, options) {
4336
+ return this._get(this.withQuery("/calls", params), options);
4337
+ }
4338
+ async endCall(callId, options) {
4339
+ return this.post(`/calls/${callId}/end`, void 0, options);
4340
+ }
4341
+ // --------------------------------------------------------------------------
4342
+ // Participants
4343
+ // --------------------------------------------------------------------------
4344
+ async joinCall(callId, options) {
4345
+ return this.post(`/calls/${callId}/join`, void 0, options);
4346
+ }
4347
+ async leaveCall(callId, options) {
4348
+ return this.post(`/calls/${callId}/leave`, void 0, options);
4349
+ }
4350
+ async listParticipants(callId, options) {
4351
+ return this._get(`/calls/${callId}/participants`, options);
4352
+ }
4353
+ // --------------------------------------------------------------------------
4354
+ // Recording
4355
+ // --------------------------------------------------------------------------
4356
+ async startRecording(callId, options) {
4357
+ return this.post(`/calls/${callId}/recording/start`, void 0, options);
4358
+ }
4359
+ async stopRecording(callId, options) {
4360
+ return this.post(`/calls/${callId}/recording/stop`, void 0, options);
4361
+ }
4362
+ async consentToRecording(callId, options) {
4363
+ return this.post(`/calls/${callId}/recording/consent`, void 0, options);
4364
+ }
4365
+ // --------------------------------------------------------------------------
4366
+ // Settings
4367
+ // --------------------------------------------------------------------------
4368
+ async getSettings(options) {
4369
+ return this._get("/settings", options);
4370
+ }
4371
+ async updateSettings(data, options) {
4372
+ return this.put("/settings", data, options);
4373
+ }
4374
+ // --------------------------------------------------------------------------
4375
+ // Stats
4376
+ // --------------------------------------------------------------------------
4377
+ async submitStats(callId, stats, options) {
4378
+ return this.post(`/calls/${callId}/stats`, stats, options);
4379
+ }
4380
+ };
4381
+
4303
4382
  // src/services/social.ts
4304
4383
  var SocialService = class extends ServiceModule {
4305
4384
  constructor() {
@@ -6756,6 +6835,7 @@ var ScaleMule = class {
6756
6835
  this.video = new VideoService(this._client);
6757
6836
  this.data = new DataService(this._client);
6758
6837
  this.chat = new ChatService(this._client);
6838
+ this.conference = new ConferenceService(this._client);
6759
6839
  this.social = new SocialService(this._client);
6760
6840
  this.referrals = new ReferralsService(this._client);
6761
6841
  this.billing = new BillingService(this._client);
@@ -6930,6 +7010,7 @@ var index_default = ScaleMule;
6930
7010
  ChatService,
6931
7011
  CommunicationService,
6932
7012
  ComplianceService,
7013
+ ConferenceService,
6933
7014
  CreatorMakerService,
6934
7015
  DataService,
6935
7016
  ErrorCodes,
package/dist/index.mjs CHANGED
@@ -3276,6 +3276,7 @@ var RealtimeService = class extends ServiceModule {
3276
3276
  super(...arguments);
3277
3277
  this.basePath = "/v1/realtime";
3278
3278
  this.ws = null;
3279
+ this.usedTicketAuth = false;
3279
3280
  this.subscriptions = /* @__PURE__ */ new Map();
3280
3281
  this.presenceCallbacks = /* @__PURE__ */ new Map();
3281
3282
  this.statusCallbacks = /* @__PURE__ */ new Set();
@@ -3424,8 +3425,10 @@ var RealtimeService = class extends ServiceModule {
3424
3425
  const ticketData = await ticketRes.json();
3425
3426
  const ticket = ticketData.ticket;
3426
3427
  wsUrl = baseUrl.replace(/^http/, "ws") + `/v1/realtime/ws?ticket=${encodeURIComponent(ticket)}`;
3428
+ this.usedTicketAuth = true;
3427
3429
  } else {
3428
3430
  wsUrl = baseUrl.replace(/^http/, "ws") + "/v1/realtime/ws";
3431
+ this.usedTicketAuth = false;
3429
3432
  }
3430
3433
  this.ws = new WebSocket(wsUrl);
3431
3434
  } catch {
@@ -3434,8 +3437,21 @@ var RealtimeService = class extends ServiceModule {
3434
3437
  }
3435
3438
  this.ws.onopen = () => {
3436
3439
  this.reconnectAttempt = 0;
3437
- this.authenticate();
3440
+ if (!this.usedTicketAuth) {
3441
+ this.authenticate();
3442
+ }
3438
3443
  this.startHeartbeat();
3444
+ if (this.usedTicketAuth) {
3445
+ setTimeout(() => {
3446
+ if (!this.authenticated) {
3447
+ this.authenticated = true;
3448
+ this.setStatus("connected");
3449
+ for (const channel of this.subscriptions.keys()) {
3450
+ this.sendWs({ type: "subscribe", channel });
3451
+ }
3452
+ }
3453
+ }, 2e3);
3454
+ }
3439
3455
  };
3440
3456
  this.ws.onmessage = (event) => {
3441
3457
  try {
@@ -3929,6 +3945,68 @@ var ChatService = class extends ServiceModule {
3929
3945
  }
3930
3946
  };
3931
3947
 
3948
+ // src/services/conference.ts
3949
+ var ConferenceService = class extends ServiceModule {
3950
+ constructor() {
3951
+ super(...arguments);
3952
+ this.basePath = "/v1/conference";
3953
+ }
3954
+ // --------------------------------------------------------------------------
3955
+ // Call Lifecycle
3956
+ // --------------------------------------------------------------------------
3957
+ async createCall(data, options) {
3958
+ return this.post("/calls", data, options);
3959
+ }
3960
+ async getCall(callId, options) {
3961
+ return this._get(`/calls/${callId}`, options);
3962
+ }
3963
+ async listCalls(params, options) {
3964
+ return this._get(this.withQuery("/calls", params), options);
3965
+ }
3966
+ async endCall(callId, options) {
3967
+ return this.post(`/calls/${callId}/end`, void 0, options);
3968
+ }
3969
+ // --------------------------------------------------------------------------
3970
+ // Participants
3971
+ // --------------------------------------------------------------------------
3972
+ async joinCall(callId, options) {
3973
+ return this.post(`/calls/${callId}/join`, void 0, options);
3974
+ }
3975
+ async leaveCall(callId, options) {
3976
+ return this.post(`/calls/${callId}/leave`, void 0, options);
3977
+ }
3978
+ async listParticipants(callId, options) {
3979
+ return this._get(`/calls/${callId}/participants`, options);
3980
+ }
3981
+ // --------------------------------------------------------------------------
3982
+ // Recording
3983
+ // --------------------------------------------------------------------------
3984
+ async startRecording(callId, options) {
3985
+ return this.post(`/calls/${callId}/recording/start`, void 0, options);
3986
+ }
3987
+ async stopRecording(callId, options) {
3988
+ return this.post(`/calls/${callId}/recording/stop`, void 0, options);
3989
+ }
3990
+ async consentToRecording(callId, options) {
3991
+ return this.post(`/calls/${callId}/recording/consent`, void 0, options);
3992
+ }
3993
+ // --------------------------------------------------------------------------
3994
+ // Settings
3995
+ // --------------------------------------------------------------------------
3996
+ async getSettings(options) {
3997
+ return this._get("/settings", options);
3998
+ }
3999
+ async updateSettings(data, options) {
4000
+ return this.put("/settings", data, options);
4001
+ }
4002
+ // --------------------------------------------------------------------------
4003
+ // Stats
4004
+ // --------------------------------------------------------------------------
4005
+ async submitStats(callId, stats, options) {
4006
+ return this.post(`/calls/${callId}/stats`, stats, options);
4007
+ }
4008
+ };
4009
+
3932
4010
  // src/services/social.ts
3933
4011
  var SocialService = class extends ServiceModule {
3934
4012
  constructor() {
@@ -6385,6 +6463,7 @@ var ScaleMule = class {
6385
6463
  this.video = new VideoService(this._client);
6386
6464
  this.data = new DataService(this._client);
6387
6465
  this.chat = new ChatService(this._client);
6466
+ this.conference = new ConferenceService(this._client);
6388
6467
  this.social = new SocialService(this._client);
6389
6468
  this.referrals = new ReferralsService(this._client);
6390
6469
  this.billing = new BillingService(this._client);
@@ -6558,6 +6637,7 @@ export {
6558
6637
  ChatService,
6559
6638
  CommunicationService,
6560
6639
  ComplianceService,
6640
+ ConferenceService,
6561
6641
  CreatorMakerService,
6562
6642
  DataService,
6563
6643
  ErrorCodes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
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",