@scalemule/sdk 0.0.58 → 0.0.59

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/README.md CHANGED
@@ -183,6 +183,56 @@ MIME type and exposes a single hook for chat composers. See
183
183
  for the decision tree (fast vs safe policy modes, private vs public visibility,
184
184
  anti-patterns).
185
185
 
186
+ ## Social and Policy
187
+
188
+ Use `sm.social` for graph primitives and `sm.socialPolicy` for privacy,
189
+ abuse-prevention, contact-request routing, block/report state, and audit-backed
190
+ decisions. Apps should not duplicate policy rules locally; ask the policy
191
+ service for a decision and let `effective_allowed`, `effective_decision`, and
192
+ `route` drive the UI.
193
+
194
+ ```ts
195
+ const actor = { identity_id: personIdentityId, identity_type: 'person', user_id }
196
+ const target = { identity_id: businessIdentityId, identity_type: 'business', account_id }
197
+
198
+ const { data: decision, error } = await sm.socialPolicy.decideFollow(actor, target, {
199
+ appKey: 'coralmeet',
200
+ context: { context_type: 'personshare', context_id: shareId },
201
+ })
202
+
203
+ if (error) {
204
+ // Show retry/failure state.
205
+ } else if (decision!.effective_allowed) {
206
+ await sm.social.follow(targetUserId)
207
+ } else {
208
+ // Show decision.ui_message or route to a request/report flow.
209
+ }
210
+ ```
211
+
212
+ For direct service integrations, use:
213
+
214
+ ```ts
215
+ await sm.socialPolicy.decide({
216
+ app_key: 'coralmeet',
217
+ actor,
218
+ target,
219
+ action: 'message_direct',
220
+ context: { conversation_id },
221
+ })
222
+
223
+ await sm.socialPolicy.block({
224
+ blocker_identity_id: actor.identity_id,
225
+ blocked_identity_id: target.identity_id,
226
+ reason: 'spam',
227
+ })
228
+
229
+ await sm.socialPolicy.report({
230
+ reporter_identity_id: actor.identity_id,
231
+ reported_identity_id: target.identity_id,
232
+ reason: 'spam',
233
+ })
234
+ ```
235
+
186
236
  ## Storage
187
237
 
188
238
  Use this for plain files that don't need image optimization or video
package/dist/index.d.mts CHANGED
@@ -2769,6 +2769,245 @@ declare class SocialService extends ServiceModule {
2769
2769
  }): Promise<ApiResponse<Comment>>;
2770
2770
  }
2771
2771
 
2772
+ /**
2773
+ * Social Policy Service Module
2774
+ *
2775
+ * Thin SDK wrapper for scalemule-social-policy. The SDK exposes decisions,
2776
+ * settings, relationships, contact requests, blocks, mutes, reports, and
2777
+ * policy packs; policy rules remain server-owned.
2778
+ */
2779
+
2780
+ type SocialPolicyIdentityType = 'person' | 'business' | 'workspace' | 'customer' | string;
2781
+ interface SocialPolicyIdentity {
2782
+ identity_id: string;
2783
+ identity_type: SocialPolicyIdentityType;
2784
+ user_id?: string | null;
2785
+ account_id?: string | null;
2786
+ }
2787
+ interface SocialPolicyContext {
2788
+ context_type?: string | null;
2789
+ context_id?: string | null;
2790
+ workspace_id?: string | null;
2791
+ conversation_id?: string | null;
2792
+ customer_space_id?: string | null;
2793
+ content_id?: string | null;
2794
+ }
2795
+ type SocialPolicyAction = 'message_direct' | 'message_request' | 'connect_request' | 'business_inquiry' | 'view_profile' | 'search_discover' | 'space_invite' | 'follow' | 'block' | 'report' | 'mute' | string;
2796
+ type SocialPolicyDecision = 'allow' | 'allow_with_warning' | 'route_to_requests' | 'route_to_business_inbox' | 'request_required' | 'deny_blocked' | 'throttle' | 'deny_policy' | string;
2797
+ interface SocialPolicyDecisionRequest {
2798
+ app_key?: string | null;
2799
+ account_id?: string | null;
2800
+ policy_pack?: string | null;
2801
+ actor: SocialPolicyIdentity;
2802
+ target: SocialPolicyIdentity;
2803
+ action: SocialPolicyAction;
2804
+ context?: SocialPolicyContext;
2805
+ metadata?: Record<string, unknown> | null;
2806
+ }
2807
+ interface SocialPolicyBatchDecisionTarget {
2808
+ identity_id: string;
2809
+ identity_type: SocialPolicyIdentityType;
2810
+ context?: SocialPolicyContext;
2811
+ }
2812
+ interface SocialPolicyBatchDecisionRequest {
2813
+ app_key?: string | null;
2814
+ account_id?: string | null;
2815
+ policy_pack?: string | null;
2816
+ actor: SocialPolicyIdentity;
2817
+ actions: SocialPolicyAction[];
2818
+ targets: SocialPolicyBatchDecisionTarget[];
2819
+ metadata?: Record<string, unknown> | null;
2820
+ }
2821
+ interface SocialPolicyDecisionLimits {
2822
+ remaining_today: number;
2823
+ reset_at: string;
2824
+ }
2825
+ interface SocialPolicyDecisionResponse {
2826
+ decision: SocialPolicyDecision;
2827
+ effective_decision: SocialPolicyDecision;
2828
+ allowed: boolean;
2829
+ effective_allowed: boolean;
2830
+ reason: string;
2831
+ policy_pack: string;
2832
+ policy_version: string;
2833
+ rollout_mode: 'shadow' | 'report_only' | 'enforce' | string;
2834
+ would_have_denied: boolean;
2835
+ route?: string | null;
2836
+ ui_message?: string | null;
2837
+ limits?: SocialPolicyDecisionLimits | null;
2838
+ requirements: string[];
2839
+ audit_id: string;
2840
+ }
2841
+ interface SocialPolicyBatchDecisionItem {
2842
+ action: SocialPolicyAction;
2843
+ target_identity_id: string;
2844
+ decision: SocialPolicyDecisionResponse;
2845
+ }
2846
+ interface SocialPolicyBatchDecisionResponse {
2847
+ decisions: SocialPolicyBatchDecisionItem[];
2848
+ }
2849
+ interface SocialPolicySettings {
2850
+ identity_id: string;
2851
+ policy_pack: string;
2852
+ profile_visibility: string;
2853
+ search_visibility: string;
2854
+ direct_message_policy: string;
2855
+ contact_request_policy: string;
2856
+ follow_policy: string;
2857
+ business_contact_policy: string;
2858
+ presence_visibility: string;
2859
+ }
2860
+ interface SocialPolicyUpdateSettingsRequest {
2861
+ account_id?: string | null;
2862
+ policy_pack?: string | null;
2863
+ profile_visibility?: string | null;
2864
+ search_visibility?: string | null;
2865
+ direct_message_policy?: string | null;
2866
+ contact_request_policy?: string | null;
2867
+ follow_policy?: string | null;
2868
+ business_contact_policy?: string | null;
2869
+ presence_visibility?: string | null;
2870
+ relationship_visibility?: string | null;
2871
+ mention_policy?: string | null;
2872
+ comment_policy?: string | null;
2873
+ invite_policy?: string | null;
2874
+ }
2875
+ interface SocialPolicyRelationshipRequest {
2876
+ account_id?: string | null;
2877
+ actor_identity_id: string;
2878
+ target_identity_id: string;
2879
+ relationship_type: string;
2880
+ direction?: string | null;
2881
+ status?: string | null;
2882
+ source_context_type?: string | null;
2883
+ source_context_id?: string | null;
2884
+ metadata?: Record<string, unknown> | null;
2885
+ }
2886
+ interface SocialPolicyRelationship {
2887
+ id: string;
2888
+ actor_identity_id: string;
2889
+ target_identity_id: string;
2890
+ relationship_type: string;
2891
+ status: string;
2892
+ }
2893
+ interface SocialPolicyRelationshipQuery {
2894
+ account_id?: string | null;
2895
+ identity_id?: string | null;
2896
+ relationship_type?: string | null;
2897
+ }
2898
+ interface SocialPolicyContactRequestRequest {
2899
+ account_id?: string | null;
2900
+ actor_identity_id: string;
2901
+ target_identity_id: string;
2902
+ request_type: string;
2903
+ intro_message?: string | null;
2904
+ context_type?: string | null;
2905
+ context_id?: string | null;
2906
+ metadata?: Record<string, unknown> | null;
2907
+ }
2908
+ interface SocialPolicyContactRequest {
2909
+ id: string;
2910
+ status: string;
2911
+ }
2912
+ interface SocialPolicyContactRequestQuery {
2913
+ account_id?: string | null;
2914
+ identity_id: string;
2915
+ status?: string | null;
2916
+ }
2917
+ interface SocialPolicyContactRequestListItem {
2918
+ id: string;
2919
+ actor_identity_id: string;
2920
+ target_identity_id: string;
2921
+ request_type: string;
2922
+ intro_message?: string | null;
2923
+ context_type?: string | null;
2924
+ context_id?: string | null;
2925
+ status: string;
2926
+ created_at: string;
2927
+ }
2928
+ interface SocialPolicyBlockRequest {
2929
+ account_id?: string | null;
2930
+ blocker_identity_id: string;
2931
+ blocked_identity_id: string;
2932
+ scope?: string | null;
2933
+ reason?: string | null;
2934
+ metadata?: Record<string, unknown> | null;
2935
+ }
2936
+ interface SocialPolicyUnblockRequest {
2937
+ account_id?: string | null;
2938
+ blocker_identity_id: string;
2939
+ blocked_identity_id: string;
2940
+ scope?: string | null;
2941
+ }
2942
+ interface SocialPolicyMuteRequest {
2943
+ account_id?: string | null;
2944
+ actor_identity_id: string;
2945
+ target_identity_id: string;
2946
+ context_type?: string | null;
2947
+ context_id?: string | null;
2948
+ metadata?: Record<string, unknown> | null;
2949
+ }
2950
+ interface SocialPolicyReportRequest {
2951
+ account_id?: string | null;
2952
+ reporter_identity_id: string;
2953
+ reported_identity_id: string;
2954
+ context_type?: string | null;
2955
+ context_id?: string | null;
2956
+ reason: string;
2957
+ details?: string | null;
2958
+ }
2959
+ interface SocialPolicyPolicyPack {
2960
+ id: string;
2961
+ version: string;
2962
+ rollout_mode: string;
2963
+ }
2964
+ declare class SocialPolicyService extends ServiceModule {
2965
+ protected basePath: string;
2966
+ decide(request: SocialPolicyDecisionRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2967
+ batchDecide(request: SocialPolicyBatchDecisionRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyBatchDecisionResponse>>;
2968
+ decideAction(action: SocialPolicyAction, actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: {
2969
+ appKey?: string | null;
2970
+ accountId?: string | null;
2971
+ policyPack?: string | null;
2972
+ context?: SocialPolicyContext;
2973
+ metadata?: Record<string, unknown> | null;
2974
+ requestOptions?: RequestOptions;
2975
+ }): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2976
+ decideFollow(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2977
+ decideDirectMessage(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2978
+ decideContactRequest(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2979
+ getSettings(identityId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicySettings>>;
2980
+ updateSettings(identityId: string, request: SocialPolicyUpdateSettingsRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicySettings>>;
2981
+ createRelationship(request: SocialPolicyRelationshipRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyRelationship>>;
2982
+ listRelationships(params?: SocialPolicyRelationshipQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyRelationship[]>>;
2983
+ deleteRelationship(relationshipId: string, options?: RequestOptions): Promise<ApiResponse<{
2984
+ deleted: boolean;
2985
+ }>>;
2986
+ createContactRequest(request: SocialPolicyContactRequestRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2987
+ listContactRequestInbox(params: SocialPolicyContactRequestQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequestListItem[]>>;
2988
+ listContactRequestSent(params: SocialPolicyContactRequestQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequestListItem[]>>;
2989
+ acceptContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2990
+ ignoreContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2991
+ declineContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2992
+ reportContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2993
+ block(request: SocialPolicyBlockRequest, options?: RequestOptions): Promise<ApiResponse<{
2994
+ blocked: boolean;
2995
+ }>>;
2996
+ unblock(request: SocialPolicyUnblockRequest, options?: RequestOptions): Promise<ApiResponse<{
2997
+ unblocked: boolean;
2998
+ }>>;
2999
+ mute(request: SocialPolicyMuteRequest, options?: RequestOptions): Promise<ApiResponse<{
3000
+ muted: boolean;
3001
+ }>>;
3002
+ unmute(request: SocialPolicyMuteRequest, options?: RequestOptions): Promise<ApiResponse<{
3003
+ unmuted: boolean;
3004
+ }>>;
3005
+ report(request: SocialPolicyReportRequest, options?: RequestOptions): Promise<ApiResponse<{
3006
+ reported: boolean;
3007
+ }>>;
3008
+ listPolicyPacks(options?: RequestOptions): Promise<ApiResponse<SocialPolicyPolicyPack[]>>;
3009
+ }
3010
+
2772
3011
  /**
2773
3012
  * Referrals Service Module
2774
3013
  *
@@ -6998,6 +7237,7 @@ declare class ScaleMule {
6998
7237
  readonly chat: ChatService;
6999
7238
  readonly conference: ConferenceService;
7000
7239
  readonly social: SocialService;
7240
+ readonly socialPolicy: SocialPolicyService;
7001
7241
  readonly referrals: ReferralsService;
7002
7242
  readonly billing: BillingService;
7003
7243
  readonly analytics: AnalyticsService;
@@ -7100,4 +7340,4 @@ declare class ScaleMule {
7100
7340
  getClient(): ScaleMuleClient;
7101
7341
  }
7102
7342
 
7103
- export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, 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, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
7343
+ export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, 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, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
package/dist/index.d.ts CHANGED
@@ -2769,6 +2769,245 @@ declare class SocialService extends ServiceModule {
2769
2769
  }): Promise<ApiResponse<Comment>>;
2770
2770
  }
2771
2771
 
2772
+ /**
2773
+ * Social Policy Service Module
2774
+ *
2775
+ * Thin SDK wrapper for scalemule-social-policy. The SDK exposes decisions,
2776
+ * settings, relationships, contact requests, blocks, mutes, reports, and
2777
+ * policy packs; policy rules remain server-owned.
2778
+ */
2779
+
2780
+ type SocialPolicyIdentityType = 'person' | 'business' | 'workspace' | 'customer' | string;
2781
+ interface SocialPolicyIdentity {
2782
+ identity_id: string;
2783
+ identity_type: SocialPolicyIdentityType;
2784
+ user_id?: string | null;
2785
+ account_id?: string | null;
2786
+ }
2787
+ interface SocialPolicyContext {
2788
+ context_type?: string | null;
2789
+ context_id?: string | null;
2790
+ workspace_id?: string | null;
2791
+ conversation_id?: string | null;
2792
+ customer_space_id?: string | null;
2793
+ content_id?: string | null;
2794
+ }
2795
+ type SocialPolicyAction = 'message_direct' | 'message_request' | 'connect_request' | 'business_inquiry' | 'view_profile' | 'search_discover' | 'space_invite' | 'follow' | 'block' | 'report' | 'mute' | string;
2796
+ type SocialPolicyDecision = 'allow' | 'allow_with_warning' | 'route_to_requests' | 'route_to_business_inbox' | 'request_required' | 'deny_blocked' | 'throttle' | 'deny_policy' | string;
2797
+ interface SocialPolicyDecisionRequest {
2798
+ app_key?: string | null;
2799
+ account_id?: string | null;
2800
+ policy_pack?: string | null;
2801
+ actor: SocialPolicyIdentity;
2802
+ target: SocialPolicyIdentity;
2803
+ action: SocialPolicyAction;
2804
+ context?: SocialPolicyContext;
2805
+ metadata?: Record<string, unknown> | null;
2806
+ }
2807
+ interface SocialPolicyBatchDecisionTarget {
2808
+ identity_id: string;
2809
+ identity_type: SocialPolicyIdentityType;
2810
+ context?: SocialPolicyContext;
2811
+ }
2812
+ interface SocialPolicyBatchDecisionRequest {
2813
+ app_key?: string | null;
2814
+ account_id?: string | null;
2815
+ policy_pack?: string | null;
2816
+ actor: SocialPolicyIdentity;
2817
+ actions: SocialPolicyAction[];
2818
+ targets: SocialPolicyBatchDecisionTarget[];
2819
+ metadata?: Record<string, unknown> | null;
2820
+ }
2821
+ interface SocialPolicyDecisionLimits {
2822
+ remaining_today: number;
2823
+ reset_at: string;
2824
+ }
2825
+ interface SocialPolicyDecisionResponse {
2826
+ decision: SocialPolicyDecision;
2827
+ effective_decision: SocialPolicyDecision;
2828
+ allowed: boolean;
2829
+ effective_allowed: boolean;
2830
+ reason: string;
2831
+ policy_pack: string;
2832
+ policy_version: string;
2833
+ rollout_mode: 'shadow' | 'report_only' | 'enforce' | string;
2834
+ would_have_denied: boolean;
2835
+ route?: string | null;
2836
+ ui_message?: string | null;
2837
+ limits?: SocialPolicyDecisionLimits | null;
2838
+ requirements: string[];
2839
+ audit_id: string;
2840
+ }
2841
+ interface SocialPolicyBatchDecisionItem {
2842
+ action: SocialPolicyAction;
2843
+ target_identity_id: string;
2844
+ decision: SocialPolicyDecisionResponse;
2845
+ }
2846
+ interface SocialPolicyBatchDecisionResponse {
2847
+ decisions: SocialPolicyBatchDecisionItem[];
2848
+ }
2849
+ interface SocialPolicySettings {
2850
+ identity_id: string;
2851
+ policy_pack: string;
2852
+ profile_visibility: string;
2853
+ search_visibility: string;
2854
+ direct_message_policy: string;
2855
+ contact_request_policy: string;
2856
+ follow_policy: string;
2857
+ business_contact_policy: string;
2858
+ presence_visibility: string;
2859
+ }
2860
+ interface SocialPolicyUpdateSettingsRequest {
2861
+ account_id?: string | null;
2862
+ policy_pack?: string | null;
2863
+ profile_visibility?: string | null;
2864
+ search_visibility?: string | null;
2865
+ direct_message_policy?: string | null;
2866
+ contact_request_policy?: string | null;
2867
+ follow_policy?: string | null;
2868
+ business_contact_policy?: string | null;
2869
+ presence_visibility?: string | null;
2870
+ relationship_visibility?: string | null;
2871
+ mention_policy?: string | null;
2872
+ comment_policy?: string | null;
2873
+ invite_policy?: string | null;
2874
+ }
2875
+ interface SocialPolicyRelationshipRequest {
2876
+ account_id?: string | null;
2877
+ actor_identity_id: string;
2878
+ target_identity_id: string;
2879
+ relationship_type: string;
2880
+ direction?: string | null;
2881
+ status?: string | null;
2882
+ source_context_type?: string | null;
2883
+ source_context_id?: string | null;
2884
+ metadata?: Record<string, unknown> | null;
2885
+ }
2886
+ interface SocialPolicyRelationship {
2887
+ id: string;
2888
+ actor_identity_id: string;
2889
+ target_identity_id: string;
2890
+ relationship_type: string;
2891
+ status: string;
2892
+ }
2893
+ interface SocialPolicyRelationshipQuery {
2894
+ account_id?: string | null;
2895
+ identity_id?: string | null;
2896
+ relationship_type?: string | null;
2897
+ }
2898
+ interface SocialPolicyContactRequestRequest {
2899
+ account_id?: string | null;
2900
+ actor_identity_id: string;
2901
+ target_identity_id: string;
2902
+ request_type: string;
2903
+ intro_message?: string | null;
2904
+ context_type?: string | null;
2905
+ context_id?: string | null;
2906
+ metadata?: Record<string, unknown> | null;
2907
+ }
2908
+ interface SocialPolicyContactRequest {
2909
+ id: string;
2910
+ status: string;
2911
+ }
2912
+ interface SocialPolicyContactRequestQuery {
2913
+ account_id?: string | null;
2914
+ identity_id: string;
2915
+ status?: string | null;
2916
+ }
2917
+ interface SocialPolicyContactRequestListItem {
2918
+ id: string;
2919
+ actor_identity_id: string;
2920
+ target_identity_id: string;
2921
+ request_type: string;
2922
+ intro_message?: string | null;
2923
+ context_type?: string | null;
2924
+ context_id?: string | null;
2925
+ status: string;
2926
+ created_at: string;
2927
+ }
2928
+ interface SocialPolicyBlockRequest {
2929
+ account_id?: string | null;
2930
+ blocker_identity_id: string;
2931
+ blocked_identity_id: string;
2932
+ scope?: string | null;
2933
+ reason?: string | null;
2934
+ metadata?: Record<string, unknown> | null;
2935
+ }
2936
+ interface SocialPolicyUnblockRequest {
2937
+ account_id?: string | null;
2938
+ blocker_identity_id: string;
2939
+ blocked_identity_id: string;
2940
+ scope?: string | null;
2941
+ }
2942
+ interface SocialPolicyMuteRequest {
2943
+ account_id?: string | null;
2944
+ actor_identity_id: string;
2945
+ target_identity_id: string;
2946
+ context_type?: string | null;
2947
+ context_id?: string | null;
2948
+ metadata?: Record<string, unknown> | null;
2949
+ }
2950
+ interface SocialPolicyReportRequest {
2951
+ account_id?: string | null;
2952
+ reporter_identity_id: string;
2953
+ reported_identity_id: string;
2954
+ context_type?: string | null;
2955
+ context_id?: string | null;
2956
+ reason: string;
2957
+ details?: string | null;
2958
+ }
2959
+ interface SocialPolicyPolicyPack {
2960
+ id: string;
2961
+ version: string;
2962
+ rollout_mode: string;
2963
+ }
2964
+ declare class SocialPolicyService extends ServiceModule {
2965
+ protected basePath: string;
2966
+ decide(request: SocialPolicyDecisionRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2967
+ batchDecide(request: SocialPolicyBatchDecisionRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyBatchDecisionResponse>>;
2968
+ decideAction(action: SocialPolicyAction, actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: {
2969
+ appKey?: string | null;
2970
+ accountId?: string | null;
2971
+ policyPack?: string | null;
2972
+ context?: SocialPolicyContext;
2973
+ metadata?: Record<string, unknown> | null;
2974
+ requestOptions?: RequestOptions;
2975
+ }): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2976
+ decideFollow(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2977
+ decideDirectMessage(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2978
+ decideContactRequest(actor: SocialPolicyIdentity, target: SocialPolicyIdentity, options?: Parameters<SocialPolicyService['decideAction']>[3]): Promise<ApiResponse<SocialPolicyDecisionResponse>>;
2979
+ getSettings(identityId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicySettings>>;
2980
+ updateSettings(identityId: string, request: SocialPolicyUpdateSettingsRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicySettings>>;
2981
+ createRelationship(request: SocialPolicyRelationshipRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyRelationship>>;
2982
+ listRelationships(params?: SocialPolicyRelationshipQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyRelationship[]>>;
2983
+ deleteRelationship(relationshipId: string, options?: RequestOptions): Promise<ApiResponse<{
2984
+ deleted: boolean;
2985
+ }>>;
2986
+ createContactRequest(request: SocialPolicyContactRequestRequest, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2987
+ listContactRequestInbox(params: SocialPolicyContactRequestQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequestListItem[]>>;
2988
+ listContactRequestSent(params: SocialPolicyContactRequestQuery, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequestListItem[]>>;
2989
+ acceptContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2990
+ ignoreContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2991
+ declineContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2992
+ reportContactRequest(requestId: string, options?: RequestOptions): Promise<ApiResponse<SocialPolicyContactRequest>>;
2993
+ block(request: SocialPolicyBlockRequest, options?: RequestOptions): Promise<ApiResponse<{
2994
+ blocked: boolean;
2995
+ }>>;
2996
+ unblock(request: SocialPolicyUnblockRequest, options?: RequestOptions): Promise<ApiResponse<{
2997
+ unblocked: boolean;
2998
+ }>>;
2999
+ mute(request: SocialPolicyMuteRequest, options?: RequestOptions): Promise<ApiResponse<{
3000
+ muted: boolean;
3001
+ }>>;
3002
+ unmute(request: SocialPolicyMuteRequest, options?: RequestOptions): Promise<ApiResponse<{
3003
+ unmuted: boolean;
3004
+ }>>;
3005
+ report(request: SocialPolicyReportRequest, options?: RequestOptions): Promise<ApiResponse<{
3006
+ reported: boolean;
3007
+ }>>;
3008
+ listPolicyPacks(options?: RequestOptions): Promise<ApiResponse<SocialPolicyPolicyPack[]>>;
3009
+ }
3010
+
2772
3011
  /**
2773
3012
  * Referrals Service Module
2774
3013
  *
@@ -6998,6 +7237,7 @@ declare class ScaleMule {
6998
7237
  readonly chat: ChatService;
6999
7238
  readonly conference: ConferenceService;
7000
7239
  readonly social: SocialService;
7240
+ readonly socialPolicy: SocialPolicyService;
7001
7241
  readonly referrals: ReferralsService;
7002
7242
  readonly billing: BillingService;
7003
7243
  readonly analytics: AnalyticsService;
@@ -7100,4 +7340,4 @@ declare class ScaleMule {
7100
7340
  getClient(): ScaleMuleClient;
7101
7341
  }
7102
7342
 
7103
- export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, 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, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
7343
+ export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, 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, MEDIA_PRESETS, type MediaAsset, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
package/dist/index.js CHANGED
@@ -340,6 +340,7 @@ __export(index_exports, {
340
340
  SchedulerService: () => SchedulerService,
341
341
  SearchService: () => SearchService,
342
342
  ServiceModule: () => ServiceModule,
343
+ SocialPolicyService: () => SocialPolicyService,
343
344
  SocialService: () => SocialService,
344
345
  StorageService: () => StorageService,
345
346
  TeamsService: () => TeamsService,
@@ -1651,7 +1652,7 @@ function asString(parent, key) {
1651
1652
  return typeof value === "string" ? value : void 0;
1652
1653
  }
1653
1654
 
1654
- // node_modules/.pnpm/@scalemule+ui@0.0.4/node_modules/@scalemule/ui/dist/phone/index.mjs
1655
+ // node_modules/@scalemule/ui/dist/phone/index.mjs
1655
1656
  var PHONE_COUNTRIES = [
1656
1657
  { code: "US", name: "United States", dialCode: "+1" },
1657
1658
  { code: "CA", name: "Canada", dialCode: "+1" },
@@ -5146,6 +5147,118 @@ var SocialService = class extends ServiceModule {
5146
5147
  }
5147
5148
  };
5148
5149
 
5150
+ // src/services/social-policy.ts
5151
+ var SocialPolicyService = class extends ServiceModule {
5152
+ constructor() {
5153
+ super(...arguments);
5154
+ this.basePath = "/v1/social-policy";
5155
+ }
5156
+ decide(request, options) {
5157
+ return this.post("/decision", withDefaultContext(request), options);
5158
+ }
5159
+ batchDecide(request, options) {
5160
+ return this.post("/decisions/batch", request, options);
5161
+ }
5162
+ decideAction(action, actor, target, options) {
5163
+ return this.decide(
5164
+ {
5165
+ app_key: options?.appKey,
5166
+ account_id: options?.accountId,
5167
+ policy_pack: options?.policyPack,
5168
+ actor,
5169
+ target,
5170
+ action,
5171
+ context: options?.context,
5172
+ metadata: options?.metadata
5173
+ },
5174
+ options?.requestOptions
5175
+ );
5176
+ }
5177
+ decideFollow(actor, target, options) {
5178
+ return this.decideAction("follow", actor, target, options);
5179
+ }
5180
+ decideDirectMessage(actor, target, options) {
5181
+ return this.decideAction("message_direct", actor, target, options);
5182
+ }
5183
+ decideContactRequest(actor, target, options) {
5184
+ return this.decideAction("connect_request", actor, target, options);
5185
+ }
5186
+ getSettings(identityId, options) {
5187
+ return this._get(`/settings/${identityId}`, options);
5188
+ }
5189
+ updateSettings(identityId, request, options) {
5190
+ return this.patch(`/settings/${identityId}`, request, options);
5191
+ }
5192
+ createRelationship(request, options) {
5193
+ return this.post("/relationships", request, options);
5194
+ }
5195
+ listRelationships(params, options) {
5196
+ return this._get(this.withQuery("/relationships", toQueryParams(params)), options);
5197
+ }
5198
+ deleteRelationship(relationshipId, options) {
5199
+ return this.del(`/relationships/${relationshipId}`, options);
5200
+ }
5201
+ createContactRequest(request, options) {
5202
+ return this.post("/contact-requests", request, options);
5203
+ }
5204
+ listContactRequestInbox(params, options) {
5205
+ return this._get(
5206
+ this.withQuery("/contact-requests/inbox", toQueryParams(params)),
5207
+ options
5208
+ );
5209
+ }
5210
+ listContactRequestSent(params, options) {
5211
+ return this._get(
5212
+ this.withQuery("/contact-requests/sent", toQueryParams(params)),
5213
+ options
5214
+ );
5215
+ }
5216
+ acceptContactRequest(requestId, options) {
5217
+ return this.post(`/contact-requests/${requestId}/accept`, void 0, options);
5218
+ }
5219
+ ignoreContactRequest(requestId, options) {
5220
+ return this.post(`/contact-requests/${requestId}/ignore`, void 0, options);
5221
+ }
5222
+ declineContactRequest(requestId, options) {
5223
+ return this.post(`/contact-requests/${requestId}/decline`, void 0, options);
5224
+ }
5225
+ reportContactRequest(requestId, options) {
5226
+ return this.post(`/contact-requests/${requestId}/report`, void 0, options);
5227
+ }
5228
+ block(request, options) {
5229
+ return this.post("/block", request, options);
5230
+ }
5231
+ unblock(request, options) {
5232
+ return this.post("/unblock", request, options);
5233
+ }
5234
+ mute(request, options) {
5235
+ return this.post("/mute", request, options);
5236
+ }
5237
+ unmute(request, options) {
5238
+ return this.post("/unmute", request, options);
5239
+ }
5240
+ report(request, options) {
5241
+ return this.post("/report", request, options);
5242
+ }
5243
+ listPolicyPacks(options) {
5244
+ return this._get("/policy-packs", options);
5245
+ }
5246
+ };
5247
+ function withDefaultContext(request) {
5248
+ return {
5249
+ ...request,
5250
+ context: request.context ?? {}
5251
+ };
5252
+ }
5253
+ function toQueryParams(params) {
5254
+ if (!params) return void 0;
5255
+ const query = {};
5256
+ for (const [key, value] of Object.entries(params)) {
5257
+ query[key] = value;
5258
+ }
5259
+ return query;
5260
+ }
5261
+
5149
5262
  // src/services/referrals.ts
5150
5263
  var ReferralsService = class extends ServiceModule {
5151
5264
  constructor() {
@@ -8462,6 +8575,7 @@ var ScaleMule = class {
8462
8575
  this.chat = new ChatService(this._client);
8463
8576
  this.conference = new ConferenceService(this._client);
8464
8577
  this.social = new SocialService(this._client);
8578
+ this.socialPolicy = new SocialPolicyService(this._client);
8465
8579
  this.referrals = new ReferralsService(this._client);
8466
8580
  this.billing = new BillingService(this._client);
8467
8581
  this.analytics = new AnalyticsService(this._client);
@@ -8670,6 +8784,7 @@ var index_default = ScaleMule;
8670
8784
  SchedulerService,
8671
8785
  SearchService,
8672
8786
  ServiceModule,
8787
+ SocialPolicyService,
8673
8788
  SocialService,
8674
8789
  StorageService,
8675
8790
  TeamsService,
package/dist/index.mjs CHANGED
@@ -1273,7 +1273,7 @@ function asString(parent, key) {
1273
1273
  return typeof value === "string" ? value : void 0;
1274
1274
  }
1275
1275
 
1276
- // node_modules/.pnpm/@scalemule+ui@0.0.4/node_modules/@scalemule/ui/dist/phone/index.mjs
1276
+ // node_modules/@scalemule/ui/dist/phone/index.mjs
1277
1277
  var PHONE_COUNTRIES = [
1278
1278
  { code: "US", name: "United States", dialCode: "+1" },
1279
1279
  { code: "CA", name: "Canada", dialCode: "+1" },
@@ -4765,6 +4765,118 @@ var SocialService = class extends ServiceModule {
4765
4765
  }
4766
4766
  };
4767
4767
 
4768
+ // src/services/social-policy.ts
4769
+ var SocialPolicyService = class extends ServiceModule {
4770
+ constructor() {
4771
+ super(...arguments);
4772
+ this.basePath = "/v1/social-policy";
4773
+ }
4774
+ decide(request, options) {
4775
+ return this.post("/decision", withDefaultContext(request), options);
4776
+ }
4777
+ batchDecide(request, options) {
4778
+ return this.post("/decisions/batch", request, options);
4779
+ }
4780
+ decideAction(action, actor, target, options) {
4781
+ return this.decide(
4782
+ {
4783
+ app_key: options?.appKey,
4784
+ account_id: options?.accountId,
4785
+ policy_pack: options?.policyPack,
4786
+ actor,
4787
+ target,
4788
+ action,
4789
+ context: options?.context,
4790
+ metadata: options?.metadata
4791
+ },
4792
+ options?.requestOptions
4793
+ );
4794
+ }
4795
+ decideFollow(actor, target, options) {
4796
+ return this.decideAction("follow", actor, target, options);
4797
+ }
4798
+ decideDirectMessage(actor, target, options) {
4799
+ return this.decideAction("message_direct", actor, target, options);
4800
+ }
4801
+ decideContactRequest(actor, target, options) {
4802
+ return this.decideAction("connect_request", actor, target, options);
4803
+ }
4804
+ getSettings(identityId, options) {
4805
+ return this._get(`/settings/${identityId}`, options);
4806
+ }
4807
+ updateSettings(identityId, request, options) {
4808
+ return this.patch(`/settings/${identityId}`, request, options);
4809
+ }
4810
+ createRelationship(request, options) {
4811
+ return this.post("/relationships", request, options);
4812
+ }
4813
+ listRelationships(params, options) {
4814
+ return this._get(this.withQuery("/relationships", toQueryParams(params)), options);
4815
+ }
4816
+ deleteRelationship(relationshipId, options) {
4817
+ return this.del(`/relationships/${relationshipId}`, options);
4818
+ }
4819
+ createContactRequest(request, options) {
4820
+ return this.post("/contact-requests", request, options);
4821
+ }
4822
+ listContactRequestInbox(params, options) {
4823
+ return this._get(
4824
+ this.withQuery("/contact-requests/inbox", toQueryParams(params)),
4825
+ options
4826
+ );
4827
+ }
4828
+ listContactRequestSent(params, options) {
4829
+ return this._get(
4830
+ this.withQuery("/contact-requests/sent", toQueryParams(params)),
4831
+ options
4832
+ );
4833
+ }
4834
+ acceptContactRequest(requestId, options) {
4835
+ return this.post(`/contact-requests/${requestId}/accept`, void 0, options);
4836
+ }
4837
+ ignoreContactRequest(requestId, options) {
4838
+ return this.post(`/contact-requests/${requestId}/ignore`, void 0, options);
4839
+ }
4840
+ declineContactRequest(requestId, options) {
4841
+ return this.post(`/contact-requests/${requestId}/decline`, void 0, options);
4842
+ }
4843
+ reportContactRequest(requestId, options) {
4844
+ return this.post(`/contact-requests/${requestId}/report`, void 0, options);
4845
+ }
4846
+ block(request, options) {
4847
+ return this.post("/block", request, options);
4848
+ }
4849
+ unblock(request, options) {
4850
+ return this.post("/unblock", request, options);
4851
+ }
4852
+ mute(request, options) {
4853
+ return this.post("/mute", request, options);
4854
+ }
4855
+ unmute(request, options) {
4856
+ return this.post("/unmute", request, options);
4857
+ }
4858
+ report(request, options) {
4859
+ return this.post("/report", request, options);
4860
+ }
4861
+ listPolicyPacks(options) {
4862
+ return this._get("/policy-packs", options);
4863
+ }
4864
+ };
4865
+ function withDefaultContext(request) {
4866
+ return {
4867
+ ...request,
4868
+ context: request.context ?? {}
4869
+ };
4870
+ }
4871
+ function toQueryParams(params) {
4872
+ if (!params) return void 0;
4873
+ const query = {};
4874
+ for (const [key, value] of Object.entries(params)) {
4875
+ query[key] = value;
4876
+ }
4877
+ return query;
4878
+ }
4879
+
4768
4880
  // src/services/referrals.ts
4769
4881
  var ReferralsService = class extends ServiceModule {
4770
4882
  constructor() {
@@ -8081,6 +8193,7 @@ var ScaleMule = class {
8081
8193
  this.chat = new ChatService(this._client);
8082
8194
  this.conference = new ConferenceService(this._client);
8083
8195
  this.social = new SocialService(this._client);
8196
+ this.socialPolicy = new SocialPolicyService(this._client);
8084
8197
  this.referrals = new ReferralsService(this._client);
8085
8198
  this.billing = new BillingService(this._client);
8086
8199
  this.analytics = new AnalyticsService(this._client);
@@ -8288,6 +8401,7 @@ export {
8288
8401
  SchedulerService,
8289
8402
  SearchService,
8290
8403
  ServiceModule,
8404
+ SocialPolicyService,
8291
8405
  SocialService,
8292
8406
  StorageService,
8293
8407
  TeamsService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
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",