@scalemule/sdk 0.0.58 → 0.0.60
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 +50 -0
- package/dist/index.d.mts +241 -1
- package/dist/index.d.ts +241 -1
- package/dist/index.js +116 -1
- package/dist/index.mjs +410 -17
- package/package.json +1 -1
- package/dist/chunk-3FTGBRLU.mjs +0 -158
- package/dist/upload-compression-VOUJRAIM.mjs +0 -97
- package/dist/upload-resume-RXLHBH5E.mjs +0 -6
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 };
|