@scalemule/sdk 0.0.70 → 0.0.71

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
@@ -540,3 +540,30 @@ import type {
540
540
  ## License
541
541
 
542
542
  Proprietary - ScaleMule Inc.
543
+
544
+ ## Community Maps
545
+
546
+ `sm.communityMaps` provides reusable geographic collections. Public responses contain
547
+ approved public geometry and published media references. Private proposals, contacts,
548
+ and moderation notes are available only through authorized `editorial` methods.
549
+
550
+ ```ts
551
+ const guide = await sm.communityMaps.getCollection('halloween-2026');
552
+ const places = await sm.communityMaps.listFeatures('halloween-2026', {
553
+ area_id: selectedAreaId, geometry_type: 'LineString', limit: 50,
554
+ });
555
+ // Use places.data.next_cursor as `after` for the next page.
556
+ const queue = await sm.communityMaps.editorial.listSubmissions(collectionId);
557
+ ```
558
+
559
+ Use the normal ScaleMule client credentials and request context. Server API keys
560
+ stay on the server. Anonymous writes need a stable reader UUID and trusted network
561
+ context. The news-publication server adapter supplies a signed HttpOnly reader cookie.
562
+ `forApplication(id)` selects an administrative scope; it does not grant access.
563
+ Canonical geography maintenance uses `communityMaps.geography` and requires a
564
+ platform administrator. Public geographic areas are included in each collection.
565
+
566
+ Mutations require optimistic revisions. Collection/feature edits never auto-publish.
567
+ Submission/report retries reuse the same UUID `idempotency_key` for unchanged input.
568
+ Residential `EXACT_PUBLIC` locations are rejected. Photo approval and publication
569
+ are separate actions; `mediaPath()` returns a path to proxy, never a signed file URL.
package/dist/index.d.mts CHANGED
@@ -5121,6 +5121,382 @@ declare class ListingsService extends ServiceModule {
5121
5121
  getListing(id: string): Promise<ApiResponse<Listing>>;
5122
5122
  }
5123
5123
 
5124
+ type CommunityMapPosition = [longitude: number, latitude: number];
5125
+ type CommunityMapGeometry = {
5126
+ type: 'Point';
5127
+ coordinates: CommunityMapPosition;
5128
+ } | {
5129
+ type: 'LineString';
5130
+ coordinates: CommunityMapPosition[];
5131
+ } | {
5132
+ type: 'Polygon';
5133
+ coordinates: CommunityMapPosition[][];
5134
+ };
5135
+ type CommunityMapPrecision = 'CITY' | 'NEIGHBORHOOD' | 'STREET' | 'INTERSECTION' | 'GENERALIZED' | 'EXACT_PUBLIC';
5136
+ interface CommunityMapSource {
5137
+ title: string;
5138
+ url: string | null;
5139
+ attribution: string;
5140
+ }
5141
+ interface CommunityMapArea {
5142
+ id: string;
5143
+ slug: string;
5144
+ name: string;
5145
+ kind: string;
5146
+ country_code: string | null;
5147
+ geometry: CommunityMapGeometry | null;
5148
+ }
5149
+ interface CommunityMapReactionDefinition {
5150
+ key: string;
5151
+ label: string;
5152
+ icon: string;
5153
+ }
5154
+ interface CommunityMapCollectionConfig {
5155
+ title: string;
5156
+ description: string;
5157
+ kind: string;
5158
+ timezone: string;
5159
+ starts_at: string | null;
5160
+ ends_at: string | null;
5161
+ submissions_open: boolean;
5162
+ categories: {
5163
+ key: string;
5164
+ label: string;
5165
+ }[];
5166
+ reactions: CommunityMapReactionDefinition[];
5167
+ presentation: {
5168
+ accent?: string | null;
5169
+ season?: string | null;
5170
+ map_style_url?: string | null;
5171
+ };
5172
+ }
5173
+ interface CommunityMapCollection {
5174
+ id: string;
5175
+ slug: string;
5176
+ revision: number;
5177
+ config: CommunityMapCollectionConfig;
5178
+ areas: CommunityMapArea[];
5179
+ }
5180
+ /** Explicit public projection; submitted addresses, contacts and notes are absent. */
5181
+ interface CommunityMapPublicContent {
5182
+ title: string;
5183
+ description: string;
5184
+ location_label: string;
5185
+ precision: CommunityMapPrecision;
5186
+ residential: boolean;
5187
+ geometry: CommunityMapGeometry;
5188
+ external_url: string | null;
5189
+ hours: string | null;
5190
+ admission: string | null;
5191
+ accessibility: string | null;
5192
+ family_friendly: boolean | null;
5193
+ sources: CommunityMapSource[];
5194
+ related_story_urls: string[];
5195
+ metadata: Record<string, string | number | boolean | null>;
5196
+ }
5197
+ interface CommunityMapMedia {
5198
+ id: string;
5199
+ caption: string;
5200
+ attribution: string;
5201
+ }
5202
+ interface CommunityMapFeature {
5203
+ id: string;
5204
+ slug: string;
5205
+ area_id: string;
5206
+ category: string;
5207
+ revision: number;
5208
+ featured: boolean;
5209
+ verified: boolean;
5210
+ content: CommunityMapPublicContent;
5211
+ starts_at: string | null;
5212
+ ends_at: string | null;
5213
+ media: CommunityMapMedia[];
5214
+ reactions: Record<string, number>;
5215
+ }
5216
+ interface CommunityMapPage<T> {
5217
+ items: T[];
5218
+ next_cursor: string | null;
5219
+ }
5220
+ interface CommunityMapFeatureQuery {
5221
+ after?: string;
5222
+ limit?: number;
5223
+ area_id?: string;
5224
+ category?: string;
5225
+ geometry_type?: CommunityMapGeometry['type'];
5226
+ featured?: boolean;
5227
+ verified?: boolean;
5228
+ active_at?: string;
5229
+ bbox?: string;
5230
+ }
5231
+ interface CommunityMapProposal {
5232
+ title: string;
5233
+ description: string;
5234
+ location_text: string;
5235
+ exact_geometry?: CommunityMapGeometry | null;
5236
+ contact_email?: string | null;
5237
+ contact_name?: string | null;
5238
+ contributor_claim: 'resident' | 'owner' | 'visitor' | 'organizer' | 'other';
5239
+ category: string;
5240
+ hours?: string | null;
5241
+ starts_at?: string | null;
5242
+ ends_at?: string | null;
5243
+ correction_for?: string | null;
5244
+ }
5245
+ interface CommunityMapSubmissionInput {
5246
+ area_id: string;
5247
+ idempotency_key: string;
5248
+ proposal: CommunityMapProposal;
5249
+ }
5250
+ type CommunityMapReportReason = 'no-longer-exists' | 'incorrect-location' | 'incorrect-information' | 'inappropriate-media' | 'duplicate' | 'safety' | 'privacy-removal' | 'other';
5251
+ interface CommunityMapReportInput {
5252
+ reason: CommunityMapReportReason;
5253
+ details: string;
5254
+ contact_email?: string | null;
5255
+ idempotency_key: string;
5256
+ }
5257
+ interface CommunityMapReceipt {
5258
+ id: string;
5259
+ received: boolean;
5260
+ }
5261
+ type CommunityMapFeatureStatus = 'DRAFT' | 'APPROVED' | 'PUBLISHED' | 'ARCHIVED' | 'REMOVED';
5262
+ type CommunityMapSubmissionStatus = 'SUBMITTED' | 'REVIEWING' | 'NEEDS_INFO' | 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'ARCHIVED' | 'REMOVED';
5263
+ interface CommunityMapRevision {
5264
+ id: string;
5265
+ revision: number;
5266
+ status: string;
5267
+ }
5268
+ interface CommunityMapFeatureDraft {
5269
+ expected_revision?: number;
5270
+ area_id: string;
5271
+ slug: string;
5272
+ category: string;
5273
+ featured: boolean;
5274
+ verified: boolean;
5275
+ content: CommunityMapPublicContent;
5276
+ starts_at: string | null;
5277
+ ends_at: string | null;
5278
+ }
5279
+ interface CommunityMapEditorialFeature extends Omit<CommunityMapFeature, 'media' | 'reactions'> {
5280
+ status: CommunityMapFeatureStatus;
5281
+ merged_into: string | null;
5282
+ }
5283
+ /** Returned only by editorial endpoints after server-side authorization. */
5284
+ interface CommunityMapPrivateSubmission {
5285
+ id: string;
5286
+ area_id: string;
5287
+ feature_id: string | null;
5288
+ status: CommunityMapSubmissionStatus;
5289
+ revision: number;
5290
+ proposal: CommunityMapProposal;
5291
+ created_at: string;
5292
+ notes: {
5293
+ actor_id: string;
5294
+ note: string;
5295
+ created_at: string;
5296
+ }[];
5297
+ }
5298
+ interface CommunityMapEditorialCollection {
5299
+ id: string;
5300
+ publication_id: string | null;
5301
+ slug: string;
5302
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
5303
+ revision: number;
5304
+ config: CommunityMapCollectionConfig;
5305
+ area_ids?: string[];
5306
+ areas?: CommunityMapArea[];
5307
+ }
5308
+ interface CommunityMapView {
5309
+ id: string;
5310
+ collection_id: string;
5311
+ publication_id: string | null;
5312
+ slug: string;
5313
+ enabled: boolean;
5314
+ revision: number;
5315
+ allow_submissions: boolean;
5316
+ }
5317
+ interface CommunityMapPrivateReport {
5318
+ id: string;
5319
+ feature_id: string;
5320
+ reason: CommunityMapReportReason;
5321
+ priority: number;
5322
+ status: string;
5323
+ revision: number;
5324
+ report: CommunityMapReportInput & {
5325
+ resolution_note?: string;
5326
+ };
5327
+ created_at: string;
5328
+ }
5329
+ interface CommunityMapEditorialMedia extends CommunityMapMedia {
5330
+ submission_id: string | null;
5331
+ feature_id: string | null;
5332
+ status: string;
5333
+ revision: number;
5334
+ }
5335
+ interface CommunityMapQueueQuery {
5336
+ after?: string;
5337
+ limit?: number;
5338
+ status?: string;
5339
+ }
5340
+ /** Reusable collection APIs; use your application's normal SDK credential/context. */
5341
+ declare class CommunityMapsService extends ServiceModule {
5342
+ protected basePath: string;
5343
+ readonly editorial: CommunityMapsEditorialService;
5344
+ readonly geography: CommunityMapsGeographyService;
5345
+ constructor(client: ScaleMuleClient);
5346
+ listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCollection>>>;
5347
+ getCollection(slug: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapCollection>>;
5348
+ listFeatures(slug: string, query?: CommunityMapFeatureQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapFeature>>>;
5349
+ getFeature(slug: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapFeature>>;
5350
+ createSubmission(slug: string, data: CommunityMapSubmissionInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
5351
+ uploadPhoto(slug: string, submission: string, file: File | Blob, fields: {
5352
+ caption: string;
5353
+ attribution: string;
5354
+ rights_confirmed: boolean;
5355
+ }, options?: RequestOptions): Promise<ApiResponse<{
5356
+ id: string;
5357
+ status: string;
5358
+ }>>;
5359
+ react(slug: string, feature: string, reaction: string, active?: boolean, options?: RequestOptions): Promise<ApiResponse<{
5360
+ reaction: string;
5361
+ active: boolean;
5362
+ count: number;
5363
+ }>>;
5364
+ report(slug: string, feature: string, data: CommunityMapReportInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
5365
+ /** Proxy this path through your server; never append a secret API key to an image URL. */
5366
+ mediaPath(slug: string, media: string): string;
5367
+ }
5368
+ /** Editorial identity is required. Selecting a scope never grants permission. */
5369
+ declare class CommunityMapsEditorialService extends ServiceModule {
5370
+ private readonly applicationId?;
5371
+ protected basePath: string;
5372
+ constructor(client: ScaleMuleClient, applicationId?: string | undefined);
5373
+ forApplication(id: string): CommunityMapsEditorialService;
5374
+ private path;
5375
+ listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialCollection>>>;
5376
+ getCollection(id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialCollection>>;
5377
+ createCollection(data: {
5378
+ slug: string;
5379
+ publication_id?: string | null;
5380
+ config: CommunityMapCollectionConfig;
5381
+ area_ids: string[];
5382
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5383
+ updateCollection(id: string, data: {
5384
+ expected_revision: number;
5385
+ config: CommunityMapCollectionConfig;
5386
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
5387
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5388
+ listFeatures(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialFeature>>>;
5389
+ getFeature(collection: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialFeature>>;
5390
+ createFeature(collection: string, data: CommunityMapFeatureDraft, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5391
+ updateFeature(collection: string, id: string, data: CommunityMapFeatureDraft & {
5392
+ expected_revision: number;
5393
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5394
+ featureCommand(collection: string, id: string, data: {
5395
+ expected_revision: number;
5396
+ action: 'approve' | 'publish' | 'unpublish' | 'archive' | 'remove' | 'merge';
5397
+ public_location_reviewed?: boolean;
5398
+ merge_into?: string;
5399
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5400
+ listSubmissions(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateSubmission>>>;
5401
+ reviewSubmission(collection: string, id: string, data: {
5402
+ expected_revision: number;
5403
+ status: Exclude<CommunityMapSubmissionStatus, 'PUBLISHED'>;
5404
+ feature_id?: string;
5405
+ note?: string;
5406
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5407
+ duplicates(collection: string, submission: string, options?: RequestOptions): Promise<ApiResponse<{
5408
+ items: {
5409
+ id: string;
5410
+ content: CommunityMapPublicContent;
5411
+ reasons: string[];
5412
+ }[];
5413
+ automatic_merge: false;
5414
+ }>>;
5415
+ listReports(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateReport>>>;
5416
+ reviewReport(collection: string, id: string, data: {
5417
+ expected_revision: number;
5418
+ status: 'REVIEWING' | 'RESOLVED' | 'REJECTED';
5419
+ note: string;
5420
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5421
+ listMedia(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialMedia>>>;
5422
+ reviewMedia(collection: string, id: string, data: {
5423
+ expected_revision: number;
5424
+ status: 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'REMOVED';
5425
+ feature_id?: string | null;
5426
+ caption: string;
5427
+ attribution: string;
5428
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5429
+ inviteView(collection: string, data: {
5430
+ recipient_application_id: string;
5431
+ publication_id?: string | null;
5432
+ slug: string;
5433
+ allow_submissions: boolean;
5434
+ }, options?: RequestOptions): Promise<ApiResponse<{
5435
+ id: string;
5436
+ enabled: boolean;
5437
+ revision: number;
5438
+ }>>;
5439
+ listViews(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapView>>>;
5440
+ acceptView(id: string, data: {
5441
+ expected_revision: number;
5442
+ enabled: boolean;
5443
+ }, options?: RequestOptions): Promise<ApiResponse<{
5444
+ id: string;
5445
+ revision: number;
5446
+ enabled: boolean;
5447
+ }>>;
5448
+ revokeView(collection: string, view: string, options?: RequestOptions): Promise<ApiResponse<{
5449
+ revoked: boolean;
5450
+ }>>;
5451
+ getCoverage(publication: string, options?: RequestOptions): Promise<ApiResponse<{
5452
+ publication_id: string;
5453
+ area_ids: string[];
5454
+ revision: number;
5455
+ }>>;
5456
+ setCoverage(publication: string, areaIds: string[], expectedRevision: number, options?: RequestOptions): Promise<ApiResponse<{
5457
+ publication_id: string;
5458
+ area_ids: string[];
5459
+ }>>;
5460
+ }
5461
+ interface CommunityMapCanonicalArea extends CommunityMapArea {
5462
+ source_key: string;
5463
+ provenance: CommunityMapSource;
5464
+ revision: number;
5465
+ }
5466
+ /** Platform administrators maintain shared canonical references. Public areas are in getCollection(). */
5467
+ declare class CommunityMapsGeographyService extends ServiceModule {
5468
+ protected basePath: string;
5469
+ list(query?: {
5470
+ q?: string;
5471
+ after?: string;
5472
+ limit?: number;
5473
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCanonicalArea>>>;
5474
+ save(data: Omit<CommunityMapCanonicalArea, 'id' | 'revision'> & {
5475
+ expected_revision?: number;
5476
+ relationships?: {
5477
+ related_area_id: string;
5478
+ relationship: 'WITHIN' | 'REGION_MEMBER' | 'AFFILIATED';
5479
+ }[];
5480
+ }, options?: RequestOptions): Promise<ApiResponse<{
5481
+ id: string;
5482
+ revision: number;
5483
+ }>>;
5484
+ referencePlaces(query: {
5485
+ q: string;
5486
+ region: string;
5487
+ }, options?: RequestOptions): Promise<ApiResponse<{
5488
+ items: {
5489
+ country: string;
5490
+ geoid: string;
5491
+ region: string;
5492
+ name: string;
5493
+ lsad: string;
5494
+ latitude: number;
5495
+ longitude: number;
5496
+ }[];
5497
+ }>>;
5498
+ }
5499
+
5124
5500
  /**
5125
5501
  * Polls Service Module
5126
5502
  *
@@ -7723,6 +8099,7 @@ declare class ScaleMule {
7723
8099
  readonly webhooks: WebhooksService;
7724
8100
  readonly leaderboard: LeaderboardService;
7725
8101
  readonly listings: ListingsService;
8102
+ readonly communityMaps: CommunityMapsService;
7726
8103
  readonly polls: PollsService;
7727
8104
  readonly events: EventsService;
7728
8105
  readonly graph: GraphService;
@@ -7805,4 +8182,4 @@ declare class ScaleMule {
7805
8182
  getClient(): ScaleMuleClient;
7806
8183
  }
7807
8184
 
7808
- export { type AcceptQuoteInput, 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 AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, 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 CreateLeadInput, type CreatePollInput, type CreateQuoteInput, 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 CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, 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 Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, 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 Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, 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 Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, 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 SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, 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 UpdatePollInput, 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, type VoteState, 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, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
8185
+ export { type AcceptQuoteInput, 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 AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, 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 CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapEditorialCollection, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionStatus, type CommunityMapView, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, 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 CreateLeadInput, type CreatePollInput, type CreateQuoteInput, 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 CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, 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 Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, 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 Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, 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 Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, 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 SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, 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 UpdatePollInput, 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, type VoteState, 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, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
package/dist/index.d.ts CHANGED
@@ -5121,6 +5121,382 @@ declare class ListingsService extends ServiceModule {
5121
5121
  getListing(id: string): Promise<ApiResponse<Listing>>;
5122
5122
  }
5123
5123
 
5124
+ type CommunityMapPosition = [longitude: number, latitude: number];
5125
+ type CommunityMapGeometry = {
5126
+ type: 'Point';
5127
+ coordinates: CommunityMapPosition;
5128
+ } | {
5129
+ type: 'LineString';
5130
+ coordinates: CommunityMapPosition[];
5131
+ } | {
5132
+ type: 'Polygon';
5133
+ coordinates: CommunityMapPosition[][];
5134
+ };
5135
+ type CommunityMapPrecision = 'CITY' | 'NEIGHBORHOOD' | 'STREET' | 'INTERSECTION' | 'GENERALIZED' | 'EXACT_PUBLIC';
5136
+ interface CommunityMapSource {
5137
+ title: string;
5138
+ url: string | null;
5139
+ attribution: string;
5140
+ }
5141
+ interface CommunityMapArea {
5142
+ id: string;
5143
+ slug: string;
5144
+ name: string;
5145
+ kind: string;
5146
+ country_code: string | null;
5147
+ geometry: CommunityMapGeometry | null;
5148
+ }
5149
+ interface CommunityMapReactionDefinition {
5150
+ key: string;
5151
+ label: string;
5152
+ icon: string;
5153
+ }
5154
+ interface CommunityMapCollectionConfig {
5155
+ title: string;
5156
+ description: string;
5157
+ kind: string;
5158
+ timezone: string;
5159
+ starts_at: string | null;
5160
+ ends_at: string | null;
5161
+ submissions_open: boolean;
5162
+ categories: {
5163
+ key: string;
5164
+ label: string;
5165
+ }[];
5166
+ reactions: CommunityMapReactionDefinition[];
5167
+ presentation: {
5168
+ accent?: string | null;
5169
+ season?: string | null;
5170
+ map_style_url?: string | null;
5171
+ };
5172
+ }
5173
+ interface CommunityMapCollection {
5174
+ id: string;
5175
+ slug: string;
5176
+ revision: number;
5177
+ config: CommunityMapCollectionConfig;
5178
+ areas: CommunityMapArea[];
5179
+ }
5180
+ /** Explicit public projection; submitted addresses, contacts and notes are absent. */
5181
+ interface CommunityMapPublicContent {
5182
+ title: string;
5183
+ description: string;
5184
+ location_label: string;
5185
+ precision: CommunityMapPrecision;
5186
+ residential: boolean;
5187
+ geometry: CommunityMapGeometry;
5188
+ external_url: string | null;
5189
+ hours: string | null;
5190
+ admission: string | null;
5191
+ accessibility: string | null;
5192
+ family_friendly: boolean | null;
5193
+ sources: CommunityMapSource[];
5194
+ related_story_urls: string[];
5195
+ metadata: Record<string, string | number | boolean | null>;
5196
+ }
5197
+ interface CommunityMapMedia {
5198
+ id: string;
5199
+ caption: string;
5200
+ attribution: string;
5201
+ }
5202
+ interface CommunityMapFeature {
5203
+ id: string;
5204
+ slug: string;
5205
+ area_id: string;
5206
+ category: string;
5207
+ revision: number;
5208
+ featured: boolean;
5209
+ verified: boolean;
5210
+ content: CommunityMapPublicContent;
5211
+ starts_at: string | null;
5212
+ ends_at: string | null;
5213
+ media: CommunityMapMedia[];
5214
+ reactions: Record<string, number>;
5215
+ }
5216
+ interface CommunityMapPage<T> {
5217
+ items: T[];
5218
+ next_cursor: string | null;
5219
+ }
5220
+ interface CommunityMapFeatureQuery {
5221
+ after?: string;
5222
+ limit?: number;
5223
+ area_id?: string;
5224
+ category?: string;
5225
+ geometry_type?: CommunityMapGeometry['type'];
5226
+ featured?: boolean;
5227
+ verified?: boolean;
5228
+ active_at?: string;
5229
+ bbox?: string;
5230
+ }
5231
+ interface CommunityMapProposal {
5232
+ title: string;
5233
+ description: string;
5234
+ location_text: string;
5235
+ exact_geometry?: CommunityMapGeometry | null;
5236
+ contact_email?: string | null;
5237
+ contact_name?: string | null;
5238
+ contributor_claim: 'resident' | 'owner' | 'visitor' | 'organizer' | 'other';
5239
+ category: string;
5240
+ hours?: string | null;
5241
+ starts_at?: string | null;
5242
+ ends_at?: string | null;
5243
+ correction_for?: string | null;
5244
+ }
5245
+ interface CommunityMapSubmissionInput {
5246
+ area_id: string;
5247
+ idempotency_key: string;
5248
+ proposal: CommunityMapProposal;
5249
+ }
5250
+ type CommunityMapReportReason = 'no-longer-exists' | 'incorrect-location' | 'incorrect-information' | 'inappropriate-media' | 'duplicate' | 'safety' | 'privacy-removal' | 'other';
5251
+ interface CommunityMapReportInput {
5252
+ reason: CommunityMapReportReason;
5253
+ details: string;
5254
+ contact_email?: string | null;
5255
+ idempotency_key: string;
5256
+ }
5257
+ interface CommunityMapReceipt {
5258
+ id: string;
5259
+ received: boolean;
5260
+ }
5261
+ type CommunityMapFeatureStatus = 'DRAFT' | 'APPROVED' | 'PUBLISHED' | 'ARCHIVED' | 'REMOVED';
5262
+ type CommunityMapSubmissionStatus = 'SUBMITTED' | 'REVIEWING' | 'NEEDS_INFO' | 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'ARCHIVED' | 'REMOVED';
5263
+ interface CommunityMapRevision {
5264
+ id: string;
5265
+ revision: number;
5266
+ status: string;
5267
+ }
5268
+ interface CommunityMapFeatureDraft {
5269
+ expected_revision?: number;
5270
+ area_id: string;
5271
+ slug: string;
5272
+ category: string;
5273
+ featured: boolean;
5274
+ verified: boolean;
5275
+ content: CommunityMapPublicContent;
5276
+ starts_at: string | null;
5277
+ ends_at: string | null;
5278
+ }
5279
+ interface CommunityMapEditorialFeature extends Omit<CommunityMapFeature, 'media' | 'reactions'> {
5280
+ status: CommunityMapFeatureStatus;
5281
+ merged_into: string | null;
5282
+ }
5283
+ /** Returned only by editorial endpoints after server-side authorization. */
5284
+ interface CommunityMapPrivateSubmission {
5285
+ id: string;
5286
+ area_id: string;
5287
+ feature_id: string | null;
5288
+ status: CommunityMapSubmissionStatus;
5289
+ revision: number;
5290
+ proposal: CommunityMapProposal;
5291
+ created_at: string;
5292
+ notes: {
5293
+ actor_id: string;
5294
+ note: string;
5295
+ created_at: string;
5296
+ }[];
5297
+ }
5298
+ interface CommunityMapEditorialCollection {
5299
+ id: string;
5300
+ publication_id: string | null;
5301
+ slug: string;
5302
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
5303
+ revision: number;
5304
+ config: CommunityMapCollectionConfig;
5305
+ area_ids?: string[];
5306
+ areas?: CommunityMapArea[];
5307
+ }
5308
+ interface CommunityMapView {
5309
+ id: string;
5310
+ collection_id: string;
5311
+ publication_id: string | null;
5312
+ slug: string;
5313
+ enabled: boolean;
5314
+ revision: number;
5315
+ allow_submissions: boolean;
5316
+ }
5317
+ interface CommunityMapPrivateReport {
5318
+ id: string;
5319
+ feature_id: string;
5320
+ reason: CommunityMapReportReason;
5321
+ priority: number;
5322
+ status: string;
5323
+ revision: number;
5324
+ report: CommunityMapReportInput & {
5325
+ resolution_note?: string;
5326
+ };
5327
+ created_at: string;
5328
+ }
5329
+ interface CommunityMapEditorialMedia extends CommunityMapMedia {
5330
+ submission_id: string | null;
5331
+ feature_id: string | null;
5332
+ status: string;
5333
+ revision: number;
5334
+ }
5335
+ interface CommunityMapQueueQuery {
5336
+ after?: string;
5337
+ limit?: number;
5338
+ status?: string;
5339
+ }
5340
+ /** Reusable collection APIs; use your application's normal SDK credential/context. */
5341
+ declare class CommunityMapsService extends ServiceModule {
5342
+ protected basePath: string;
5343
+ readonly editorial: CommunityMapsEditorialService;
5344
+ readonly geography: CommunityMapsGeographyService;
5345
+ constructor(client: ScaleMuleClient);
5346
+ listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCollection>>>;
5347
+ getCollection(slug: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapCollection>>;
5348
+ listFeatures(slug: string, query?: CommunityMapFeatureQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapFeature>>>;
5349
+ getFeature(slug: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapFeature>>;
5350
+ createSubmission(slug: string, data: CommunityMapSubmissionInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
5351
+ uploadPhoto(slug: string, submission: string, file: File | Blob, fields: {
5352
+ caption: string;
5353
+ attribution: string;
5354
+ rights_confirmed: boolean;
5355
+ }, options?: RequestOptions): Promise<ApiResponse<{
5356
+ id: string;
5357
+ status: string;
5358
+ }>>;
5359
+ react(slug: string, feature: string, reaction: string, active?: boolean, options?: RequestOptions): Promise<ApiResponse<{
5360
+ reaction: string;
5361
+ active: boolean;
5362
+ count: number;
5363
+ }>>;
5364
+ report(slug: string, feature: string, data: CommunityMapReportInput, options?: RequestOptions): Promise<ApiResponse<CommunityMapReceipt>>;
5365
+ /** Proxy this path through your server; never append a secret API key to an image URL. */
5366
+ mediaPath(slug: string, media: string): string;
5367
+ }
5368
+ /** Editorial identity is required. Selecting a scope never grants permission. */
5369
+ declare class CommunityMapsEditorialService extends ServiceModule {
5370
+ private readonly applicationId?;
5371
+ protected basePath: string;
5372
+ constructor(client: ScaleMuleClient, applicationId?: string | undefined);
5373
+ forApplication(id: string): CommunityMapsEditorialService;
5374
+ private path;
5375
+ listCollections(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialCollection>>>;
5376
+ getCollection(id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialCollection>>;
5377
+ createCollection(data: {
5378
+ slug: string;
5379
+ publication_id?: string | null;
5380
+ config: CommunityMapCollectionConfig;
5381
+ area_ids: string[];
5382
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5383
+ updateCollection(id: string, data: {
5384
+ expected_revision: number;
5385
+ config: CommunityMapCollectionConfig;
5386
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
5387
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5388
+ listFeatures(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialFeature>>>;
5389
+ getFeature(collection: string, id: string, options?: RequestOptions): Promise<ApiResponse<CommunityMapEditorialFeature>>;
5390
+ createFeature(collection: string, data: CommunityMapFeatureDraft, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5391
+ updateFeature(collection: string, id: string, data: CommunityMapFeatureDraft & {
5392
+ expected_revision: number;
5393
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5394
+ featureCommand(collection: string, id: string, data: {
5395
+ expected_revision: number;
5396
+ action: 'approve' | 'publish' | 'unpublish' | 'archive' | 'remove' | 'merge';
5397
+ public_location_reviewed?: boolean;
5398
+ merge_into?: string;
5399
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5400
+ listSubmissions(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateSubmission>>>;
5401
+ reviewSubmission(collection: string, id: string, data: {
5402
+ expected_revision: number;
5403
+ status: Exclude<CommunityMapSubmissionStatus, 'PUBLISHED'>;
5404
+ feature_id?: string;
5405
+ note?: string;
5406
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5407
+ duplicates(collection: string, submission: string, options?: RequestOptions): Promise<ApiResponse<{
5408
+ items: {
5409
+ id: string;
5410
+ content: CommunityMapPublicContent;
5411
+ reasons: string[];
5412
+ }[];
5413
+ automatic_merge: false;
5414
+ }>>;
5415
+ listReports(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapPrivateReport>>>;
5416
+ reviewReport(collection: string, id: string, data: {
5417
+ expected_revision: number;
5418
+ status: 'REVIEWING' | 'RESOLVED' | 'REJECTED';
5419
+ note: string;
5420
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5421
+ listMedia(collection: string, query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapEditorialMedia>>>;
5422
+ reviewMedia(collection: string, id: string, data: {
5423
+ expected_revision: number;
5424
+ status: 'APPROVED' | 'PUBLISHED' | 'REJECTED' | 'REMOVED';
5425
+ feature_id?: string | null;
5426
+ caption: string;
5427
+ attribution: string;
5428
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapRevision>>;
5429
+ inviteView(collection: string, data: {
5430
+ recipient_application_id: string;
5431
+ publication_id?: string | null;
5432
+ slug: string;
5433
+ allow_submissions: boolean;
5434
+ }, options?: RequestOptions): Promise<ApiResponse<{
5435
+ id: string;
5436
+ enabled: boolean;
5437
+ revision: number;
5438
+ }>>;
5439
+ listViews(query?: CommunityMapQueueQuery, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapView>>>;
5440
+ acceptView(id: string, data: {
5441
+ expected_revision: number;
5442
+ enabled: boolean;
5443
+ }, options?: RequestOptions): Promise<ApiResponse<{
5444
+ id: string;
5445
+ revision: number;
5446
+ enabled: boolean;
5447
+ }>>;
5448
+ revokeView(collection: string, view: string, options?: RequestOptions): Promise<ApiResponse<{
5449
+ revoked: boolean;
5450
+ }>>;
5451
+ getCoverage(publication: string, options?: RequestOptions): Promise<ApiResponse<{
5452
+ publication_id: string;
5453
+ area_ids: string[];
5454
+ revision: number;
5455
+ }>>;
5456
+ setCoverage(publication: string, areaIds: string[], expectedRevision: number, options?: RequestOptions): Promise<ApiResponse<{
5457
+ publication_id: string;
5458
+ area_ids: string[];
5459
+ }>>;
5460
+ }
5461
+ interface CommunityMapCanonicalArea extends CommunityMapArea {
5462
+ source_key: string;
5463
+ provenance: CommunityMapSource;
5464
+ revision: number;
5465
+ }
5466
+ /** Platform administrators maintain shared canonical references. Public areas are in getCollection(). */
5467
+ declare class CommunityMapsGeographyService extends ServiceModule {
5468
+ protected basePath: string;
5469
+ list(query?: {
5470
+ q?: string;
5471
+ after?: string;
5472
+ limit?: number;
5473
+ }, options?: RequestOptions): Promise<ApiResponse<CommunityMapPage<CommunityMapCanonicalArea>>>;
5474
+ save(data: Omit<CommunityMapCanonicalArea, 'id' | 'revision'> & {
5475
+ expected_revision?: number;
5476
+ relationships?: {
5477
+ related_area_id: string;
5478
+ relationship: 'WITHIN' | 'REGION_MEMBER' | 'AFFILIATED';
5479
+ }[];
5480
+ }, options?: RequestOptions): Promise<ApiResponse<{
5481
+ id: string;
5482
+ revision: number;
5483
+ }>>;
5484
+ referencePlaces(query: {
5485
+ q: string;
5486
+ region: string;
5487
+ }, options?: RequestOptions): Promise<ApiResponse<{
5488
+ items: {
5489
+ country: string;
5490
+ geoid: string;
5491
+ region: string;
5492
+ name: string;
5493
+ lsad: string;
5494
+ latitude: number;
5495
+ longitude: number;
5496
+ }[];
5497
+ }>>;
5498
+ }
5499
+
5124
5500
  /**
5125
5501
  * Polls Service Module
5126
5502
  *
@@ -7723,6 +8099,7 @@ declare class ScaleMule {
7723
8099
  readonly webhooks: WebhooksService;
7724
8100
  readonly leaderboard: LeaderboardService;
7725
8101
  readonly listings: ListingsService;
8102
+ readonly communityMaps: CommunityMapsService;
7726
8103
  readonly polls: PollsService;
7727
8104
  readonly events: EventsService;
7728
8105
  readonly graph: GraphService;
@@ -7805,4 +8182,4 @@ declare class ScaleMule {
7805
8182
  getClient(): ScaleMuleClient;
7806
8183
  }
7807
8184
 
7808
- export { type AcceptQuoteInput, 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 AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, 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 CreateLeadInput, type CreatePollInput, type CreateQuoteInput, 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 CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, 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 Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, 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 Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, 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 Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, 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 SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, 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 UpdatePollInput, 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, type VoteState, 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, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
8185
+ export { type AcceptQuoteInput, 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 AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, 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 CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapEditorialCollection, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionStatus, type CommunityMapView, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, 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 CreateLeadInput, type CreatePollInput, type CreateQuoteInput, 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 CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, 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 Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, 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 Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, 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 Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, 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 SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, 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 UpdatePollInput, 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, type VoteState, 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, pollSharePercent, pollVoterKey, readAnonymousId, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
package/dist/index.js CHANGED
@@ -309,6 +309,9 @@ __export(index_exports, {
309
309
  CatalogService: () => CatalogService,
310
310
  ChatService: () => ChatService,
311
311
  CommunicationService: () => CommunicationService,
312
+ CommunityMapsEditorialService: () => CommunityMapsEditorialService,
313
+ CommunityMapsGeographyService: () => CommunityMapsGeographyService,
314
+ CommunityMapsService: () => CommunityMapsService,
312
315
  ComplianceService: () => ComplianceService,
313
316
  ConferenceService: () => ConferenceService,
314
317
  CreatorMakerService: () => CreatorMakerService,
@@ -6914,6 +6917,167 @@ var ListingsService = class extends ServiceModule {
6914
6917
  }
6915
6918
  };
6916
6919
 
6920
+ // src/services/community-maps.ts
6921
+ var segment = (value) => encodeURIComponent(value);
6922
+ var CommunityMapsService = class extends ServiceModule {
6923
+ constructor(client) {
6924
+ super(client);
6925
+ this.basePath = "/v1/knowledge/community-maps";
6926
+ this.editorial = new CommunityMapsEditorialService(client);
6927
+ this.geography = new CommunityMapsGeographyService(client);
6928
+ }
6929
+ listCollections(query = {}, options) {
6930
+ return this._get(this.withQuery("/collections", { ...query }), options);
6931
+ }
6932
+ getCollection(slug, options) {
6933
+ return this._get("/collections/" + segment(slug), options);
6934
+ }
6935
+ listFeatures(slug, query = {}, options) {
6936
+ return this._get(this.withQuery("/collections/" + segment(slug) + "/features", { ...query }), options);
6937
+ }
6938
+ getFeature(slug, id, options) {
6939
+ return this._get("/collections/" + segment(slug) + "/features/" + segment(id), options);
6940
+ }
6941
+ createSubmission(slug, data, options) {
6942
+ return this.post("/collections/" + segment(slug) + "/submissions", data, options);
6943
+ }
6944
+ uploadPhoto(slug, submission, file, fields, options) {
6945
+ return this._upload(
6946
+ "/collections/" + segment(slug) + "/submissions/" + segment(submission) + "/media",
6947
+ file,
6948
+ { caption: fields.caption, attribution: fields.attribution, rights_confirmed: String(fields.rights_confirmed) },
6949
+ options
6950
+ );
6951
+ }
6952
+ react(slug, feature, reaction, active = true, options) {
6953
+ return this.post(
6954
+ "/collections/" + segment(slug) + "/features/" + segment(feature) + "/reactions",
6955
+ { reaction, active },
6956
+ options
6957
+ );
6958
+ }
6959
+ report(slug, feature, data, options) {
6960
+ return this.post("/collections/" + segment(slug) + "/features/" + segment(feature) + "/reports", data, options);
6961
+ }
6962
+ /** Proxy this path through your server; never append a secret API key to an image URL. */
6963
+ mediaPath(slug, media) {
6964
+ return this.basePath + "/collections/" + segment(slug) + "/media/" + segment(media);
6965
+ }
6966
+ };
6967
+ var CommunityMapsEditorialService = class _CommunityMapsEditorialService extends ServiceModule {
6968
+ constructor(client, applicationId) {
6969
+ super(client);
6970
+ this.applicationId = applicationId;
6971
+ this.basePath = "/v1/knowledge/community-maps/manage";
6972
+ }
6973
+ forApplication(id) {
6974
+ return new _CommunityMapsEditorialService(this.client, id);
6975
+ }
6976
+ path(path, query = {}) {
6977
+ return this.withQuery(path, { ...query, ...this.applicationId ? { application_id: this.applicationId } : {} });
6978
+ }
6979
+ listCollections(query = {}, options) {
6980
+ return this._get(this.path("/collections", { ...query }), options);
6981
+ }
6982
+ getCollection(id, options) {
6983
+ return this._get(this.path("/collections/" + segment(id)), options);
6984
+ }
6985
+ createCollection(data, options) {
6986
+ return this.post(this.path("/collections"), data, options);
6987
+ }
6988
+ updateCollection(id, data, options) {
6989
+ return this.put(this.path("/collections/" + segment(id)), data, options);
6990
+ }
6991
+ listFeatures(collection, query = {}, options) {
6992
+ return this._get(this.path("/collections/" + segment(collection) + "/features", { ...query }), options);
6993
+ }
6994
+ getFeature(collection, id, options) {
6995
+ return this._get(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), options);
6996
+ }
6997
+ createFeature(collection, data, options) {
6998
+ return this.post(this.path("/collections/" + segment(collection) + "/features"), data, options);
6999
+ }
7000
+ updateFeature(collection, id, data, options) {
7001
+ return this.put(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), data, options);
7002
+ }
7003
+ featureCommand(collection, id, data, options) {
7004
+ return this.post(
7005
+ this.path("/collections/" + segment(collection) + "/features/" + segment(id) + "/commands"),
7006
+ data,
7007
+ options
7008
+ );
7009
+ }
7010
+ listSubmissions(collection, query = {}, options) {
7011
+ return this._get(this.path("/collections/" + segment(collection) + "/submissions", { ...query }), options);
7012
+ }
7013
+ reviewSubmission(collection, id, data, options) {
7014
+ return this.post(
7015
+ this.path("/collections/" + segment(collection) + "/submissions/" + segment(id) + "/commands"),
7016
+ data,
7017
+ options
7018
+ );
7019
+ }
7020
+ duplicates(collection, submission, options) {
7021
+ return this._get(
7022
+ this.path("/collections/" + segment(collection) + "/submissions/" + segment(submission) + "/duplicates"),
7023
+ options
7024
+ );
7025
+ }
7026
+ listReports(collection, query = {}, options) {
7027
+ return this._get(this.path("/collections/" + segment(collection) + "/reports", { ...query }), options);
7028
+ }
7029
+ reviewReport(collection, id, data, options) {
7030
+ return this.post(
7031
+ this.path("/collections/" + segment(collection) + "/reports/" + segment(id) + "/commands"),
7032
+ data,
7033
+ options
7034
+ );
7035
+ }
7036
+ listMedia(collection, query = {}, options) {
7037
+ return this._get(this.path("/collections/" + segment(collection) + "/media", { ...query }), options);
7038
+ }
7039
+ reviewMedia(collection, id, data, options) {
7040
+ return this.put(this.path("/collections/" + segment(collection) + "/media/" + segment(id)), data, options);
7041
+ }
7042
+ inviteView(collection, data, options) {
7043
+ return this.post(this.path("/collections/" + segment(collection) + "/views"), data, options);
7044
+ }
7045
+ listViews(query = {}, options) {
7046
+ return this._get(this.path("/views", { ...query }), options);
7047
+ }
7048
+ acceptView(id, data, options) {
7049
+ return this.put(this.path("/views/" + segment(id)), data, options);
7050
+ }
7051
+ revokeView(collection, view, options) {
7052
+ return this.del(this.path("/collections/" + segment(collection) + "/views/" + segment(view)), options);
7053
+ }
7054
+ getCoverage(publication, options) {
7055
+ return this._get(this.path("/coverage/" + segment(publication)), options);
7056
+ }
7057
+ setCoverage(publication, areaIds, expectedRevision, options) {
7058
+ return this.put(
7059
+ this.path("/coverage/" + segment(publication)),
7060
+ { area_ids: areaIds, expected_revision: expectedRevision },
7061
+ options
7062
+ );
7063
+ }
7064
+ };
7065
+ var CommunityMapsGeographyService = class extends ServiceModule {
7066
+ constructor() {
7067
+ super(...arguments);
7068
+ this.basePath = "/v1/knowledge/community-maps/admin/geography";
7069
+ }
7070
+ list(query = {}, options) {
7071
+ return this._get(this.withQuery("", { ...query }), options);
7072
+ }
7073
+ save(data, options) {
7074
+ return this.post("", data, options);
7075
+ }
7076
+ referencePlaces(query, options) {
7077
+ return this._get(this.withQuery("/reference-places", query), options);
7078
+ }
7079
+ };
7080
+
6917
7081
  // src/services/polls.ts
6918
7082
  var PollsService = class extends ServiceModule {
6919
7083
  constructor() {
@@ -8939,6 +9103,7 @@ var ScaleMule = class {
8939
9103
  this.webhooks = new WebhooksService(this._client);
8940
9104
  this.leaderboard = new LeaderboardService(this._client);
8941
9105
  this.listings = new ListingsService(this._client);
9106
+ this.communityMaps = new CommunityMapsService(this._client);
8942
9107
  this.polls = new PollsService(this._client);
8943
9108
  this.events = new EventsService(this._client);
8944
9109
  this.graph = new GraphService(this._client);
@@ -9098,6 +9263,9 @@ var index_default = ScaleMule;
9098
9263
  CatalogService,
9099
9264
  ChatService,
9100
9265
  CommunicationService,
9266
+ CommunityMapsEditorialService,
9267
+ CommunityMapsGeographyService,
9268
+ CommunityMapsService,
9101
9269
  ComplianceService,
9102
9270
  ConferenceService,
9103
9271
  CreatorMakerService,
package/dist/index.mjs CHANGED
@@ -6805,6 +6805,167 @@ var ListingsService = class extends ServiceModule {
6805
6805
  }
6806
6806
  };
6807
6807
 
6808
+ // src/services/community-maps.ts
6809
+ var segment = (value) => encodeURIComponent(value);
6810
+ var CommunityMapsService = class extends ServiceModule {
6811
+ constructor(client) {
6812
+ super(client);
6813
+ this.basePath = "/v1/knowledge/community-maps";
6814
+ this.editorial = new CommunityMapsEditorialService(client);
6815
+ this.geography = new CommunityMapsGeographyService(client);
6816
+ }
6817
+ listCollections(query = {}, options) {
6818
+ return this._get(this.withQuery("/collections", { ...query }), options);
6819
+ }
6820
+ getCollection(slug, options) {
6821
+ return this._get("/collections/" + segment(slug), options);
6822
+ }
6823
+ listFeatures(slug, query = {}, options) {
6824
+ return this._get(this.withQuery("/collections/" + segment(slug) + "/features", { ...query }), options);
6825
+ }
6826
+ getFeature(slug, id, options) {
6827
+ return this._get("/collections/" + segment(slug) + "/features/" + segment(id), options);
6828
+ }
6829
+ createSubmission(slug, data, options) {
6830
+ return this.post("/collections/" + segment(slug) + "/submissions", data, options);
6831
+ }
6832
+ uploadPhoto(slug, submission, file, fields, options) {
6833
+ return this._upload(
6834
+ "/collections/" + segment(slug) + "/submissions/" + segment(submission) + "/media",
6835
+ file,
6836
+ { caption: fields.caption, attribution: fields.attribution, rights_confirmed: String(fields.rights_confirmed) },
6837
+ options
6838
+ );
6839
+ }
6840
+ react(slug, feature, reaction, active = true, options) {
6841
+ return this.post(
6842
+ "/collections/" + segment(slug) + "/features/" + segment(feature) + "/reactions",
6843
+ { reaction, active },
6844
+ options
6845
+ );
6846
+ }
6847
+ report(slug, feature, data, options) {
6848
+ return this.post("/collections/" + segment(slug) + "/features/" + segment(feature) + "/reports", data, options);
6849
+ }
6850
+ /** Proxy this path through your server; never append a secret API key to an image URL. */
6851
+ mediaPath(slug, media) {
6852
+ return this.basePath + "/collections/" + segment(slug) + "/media/" + segment(media);
6853
+ }
6854
+ };
6855
+ var CommunityMapsEditorialService = class _CommunityMapsEditorialService extends ServiceModule {
6856
+ constructor(client, applicationId) {
6857
+ super(client);
6858
+ this.applicationId = applicationId;
6859
+ this.basePath = "/v1/knowledge/community-maps/manage";
6860
+ }
6861
+ forApplication(id) {
6862
+ return new _CommunityMapsEditorialService(this.client, id);
6863
+ }
6864
+ path(path, query = {}) {
6865
+ return this.withQuery(path, { ...query, ...this.applicationId ? { application_id: this.applicationId } : {} });
6866
+ }
6867
+ listCollections(query = {}, options) {
6868
+ return this._get(this.path("/collections", { ...query }), options);
6869
+ }
6870
+ getCollection(id, options) {
6871
+ return this._get(this.path("/collections/" + segment(id)), options);
6872
+ }
6873
+ createCollection(data, options) {
6874
+ return this.post(this.path("/collections"), data, options);
6875
+ }
6876
+ updateCollection(id, data, options) {
6877
+ return this.put(this.path("/collections/" + segment(id)), data, options);
6878
+ }
6879
+ listFeatures(collection, query = {}, options) {
6880
+ return this._get(this.path("/collections/" + segment(collection) + "/features", { ...query }), options);
6881
+ }
6882
+ getFeature(collection, id, options) {
6883
+ return this._get(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), options);
6884
+ }
6885
+ createFeature(collection, data, options) {
6886
+ return this.post(this.path("/collections/" + segment(collection) + "/features"), data, options);
6887
+ }
6888
+ updateFeature(collection, id, data, options) {
6889
+ return this.put(this.path("/collections/" + segment(collection) + "/features/" + segment(id)), data, options);
6890
+ }
6891
+ featureCommand(collection, id, data, options) {
6892
+ return this.post(
6893
+ this.path("/collections/" + segment(collection) + "/features/" + segment(id) + "/commands"),
6894
+ data,
6895
+ options
6896
+ );
6897
+ }
6898
+ listSubmissions(collection, query = {}, options) {
6899
+ return this._get(this.path("/collections/" + segment(collection) + "/submissions", { ...query }), options);
6900
+ }
6901
+ reviewSubmission(collection, id, data, options) {
6902
+ return this.post(
6903
+ this.path("/collections/" + segment(collection) + "/submissions/" + segment(id) + "/commands"),
6904
+ data,
6905
+ options
6906
+ );
6907
+ }
6908
+ duplicates(collection, submission, options) {
6909
+ return this._get(
6910
+ this.path("/collections/" + segment(collection) + "/submissions/" + segment(submission) + "/duplicates"),
6911
+ options
6912
+ );
6913
+ }
6914
+ listReports(collection, query = {}, options) {
6915
+ return this._get(this.path("/collections/" + segment(collection) + "/reports", { ...query }), options);
6916
+ }
6917
+ reviewReport(collection, id, data, options) {
6918
+ return this.post(
6919
+ this.path("/collections/" + segment(collection) + "/reports/" + segment(id) + "/commands"),
6920
+ data,
6921
+ options
6922
+ );
6923
+ }
6924
+ listMedia(collection, query = {}, options) {
6925
+ return this._get(this.path("/collections/" + segment(collection) + "/media", { ...query }), options);
6926
+ }
6927
+ reviewMedia(collection, id, data, options) {
6928
+ return this.put(this.path("/collections/" + segment(collection) + "/media/" + segment(id)), data, options);
6929
+ }
6930
+ inviteView(collection, data, options) {
6931
+ return this.post(this.path("/collections/" + segment(collection) + "/views"), data, options);
6932
+ }
6933
+ listViews(query = {}, options) {
6934
+ return this._get(this.path("/views", { ...query }), options);
6935
+ }
6936
+ acceptView(id, data, options) {
6937
+ return this.put(this.path("/views/" + segment(id)), data, options);
6938
+ }
6939
+ revokeView(collection, view, options) {
6940
+ return this.del(this.path("/collections/" + segment(collection) + "/views/" + segment(view)), options);
6941
+ }
6942
+ getCoverage(publication, options) {
6943
+ return this._get(this.path("/coverage/" + segment(publication)), options);
6944
+ }
6945
+ setCoverage(publication, areaIds, expectedRevision, options) {
6946
+ return this.put(
6947
+ this.path("/coverage/" + segment(publication)),
6948
+ { area_ids: areaIds, expected_revision: expectedRevision },
6949
+ options
6950
+ );
6951
+ }
6952
+ };
6953
+ var CommunityMapsGeographyService = class extends ServiceModule {
6954
+ constructor() {
6955
+ super(...arguments);
6956
+ this.basePath = "/v1/knowledge/community-maps/admin/geography";
6957
+ }
6958
+ list(query = {}, options) {
6959
+ return this._get(this.withQuery("", { ...query }), options);
6960
+ }
6961
+ save(data, options) {
6962
+ return this.post("", data, options);
6963
+ }
6964
+ referencePlaces(query, options) {
6965
+ return this._get(this.withQuery("/reference-places", query), options);
6966
+ }
6967
+ };
6968
+
6808
6969
  // src/services/polls.ts
6809
6970
  var PollsService = class extends ServiceModule {
6810
6971
  constructor() {
@@ -8830,6 +8991,7 @@ var ScaleMule = class {
8830
8991
  this.webhooks = new WebhooksService(this._client);
8831
8992
  this.leaderboard = new LeaderboardService(this._client);
8832
8993
  this.listings = new ListingsService(this._client);
8994
+ this.communityMaps = new CommunityMapsService(this._client);
8833
8995
  this.polls = new PollsService(this._client);
8834
8996
  this.events = new EventsService(this._client);
8835
8997
  this.graph = new GraphService(this._client);
@@ -8988,6 +9150,9 @@ export {
8988
9150
  CatalogService,
8989
9151
  ChatService,
8990
9152
  CommunicationService,
9153
+ CommunityMapsEditorialService,
9154
+ CommunityMapsGeographyService,
9155
+ CommunityMapsService,
8991
9156
  ComplianceService,
8992
9157
  ConferenceService,
8993
9158
  CreatorMakerService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/sdk",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
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",