@scalemule/sdk 0.0.31 → 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
@@ -1857,6 +1857,122 @@ declare class ChatService extends ServiceModule {
1857
1857
  }): Promise<ApiResponse<Conversation>>;
1858
1858
  }
1859
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
+
1860
1976
  /**
1861
1977
  * Social Service Module
1862
1978
  *
@@ -5754,6 +5870,7 @@ declare class ScaleMule {
5754
5870
  readonly video: VideoService;
5755
5871
  readonly data: DataService;
5756
5872
  readonly chat: ChatService;
5873
+ readonly conference: ConferenceService;
5757
5874
  readonly social: SocialService;
5758
5875
  readonly referrals: ReferralsService;
5759
5876
  readonly billing: BillingService;
@@ -5854,4 +5971,4 @@ declare class ScaleMule {
5854
5971
  getClient(): ScaleMuleClient;
5855
5972
  }
5856
5973
 
5857
- 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
@@ -1857,6 +1857,122 @@ declare class ChatService extends ServiceModule {
1857
1857
  }): Promise<ApiResponse<Conversation>>;
1858
1858
  }
1859
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
+
1860
1976
  /**
1861
1977
  * Social Service Module
1862
1978
  *
@@ -5754,6 +5870,7 @@ declare class ScaleMule {
5754
5870
  readonly video: VideoService;
5755
5871
  readonly data: DataService;
5756
5872
  readonly chat: ChatService;
5873
+ readonly conference: ConferenceService;
5757
5874
  readonly social: SocialService;
5758
5875
  readonly referrals: ReferralsService;
5759
5876
  readonly billing: BillingService;
@@ -5854,4 +5971,4 @@ declare class ScaleMule {
5854
5971
  getClient(): ScaleMuleClient;
5855
5972
  }
5856
5973
 
5857
- 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,
@@ -4316,6 +4317,68 @@ var ChatService = class extends ServiceModule {
4316
4317
  }
4317
4318
  };
4318
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
+
4319
4382
  // src/services/social.ts
4320
4383
  var SocialService = class extends ServiceModule {
4321
4384
  constructor() {
@@ -6772,6 +6835,7 @@ var ScaleMule = class {
6772
6835
  this.video = new VideoService(this._client);
6773
6836
  this.data = new DataService(this._client);
6774
6837
  this.chat = new ChatService(this._client);
6838
+ this.conference = new ConferenceService(this._client);
6775
6839
  this.social = new SocialService(this._client);
6776
6840
  this.referrals = new ReferralsService(this._client);
6777
6841
  this.billing = new BillingService(this._client);
@@ -6946,6 +7010,7 @@ var index_default = ScaleMule;
6946
7010
  ChatService,
6947
7011
  CommunicationService,
6948
7012
  ComplianceService,
7013
+ ConferenceService,
6949
7014
  CreatorMakerService,
6950
7015
  DataService,
6951
7016
  ErrorCodes,
package/dist/index.mjs CHANGED
@@ -3945,6 +3945,68 @@ var ChatService = class extends ServiceModule {
3945
3945
  }
3946
3946
  };
3947
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
+
3948
4010
  // src/services/social.ts
3949
4011
  var SocialService = class extends ServiceModule {
3950
4012
  constructor() {
@@ -6401,6 +6463,7 @@ var ScaleMule = class {
6401
6463
  this.video = new VideoService(this._client);
6402
6464
  this.data = new DataService(this._client);
6403
6465
  this.chat = new ChatService(this._client);
6466
+ this.conference = new ConferenceService(this._client);
6404
6467
  this.social = new SocialService(this._client);
6405
6468
  this.referrals = new ReferralsService(this._client);
6406
6469
  this.billing = new BillingService(this._client);
@@ -6574,6 +6637,7 @@ export {
6574
6637
  ChatService,
6575
6638
  CommunicationService,
6576
6639
  ComplianceService,
6640
+ ConferenceService,
6577
6641
  CreatorMakerService,
6578
6642
  DataService,
6579
6643
  ErrorCodes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.31",
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",