@dynamoi/mcp 0.1.0

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.
@@ -0,0 +1,594 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import * as z from 'zod/v4';
3
+
4
+ type ProtectedResourceMetadata = {
5
+ resource: string;
6
+ authorization_servers: string[];
7
+ scopes_supported: string[];
8
+ };
9
+ declare function buildProtectedResourceMetadata(options: {
10
+ resource: string;
11
+ authorizationServers: string[];
12
+ scopesSupported?: string[];
13
+ }): ProtectedResourceMetadata;
14
+ declare function buildWwwAuthenticateHeader(options: {
15
+ resourceMetadataUrl: string;
16
+ scope?: string;
17
+ }): string;
18
+
19
+ type VerifiedAccessToken = {
20
+ sub: string;
21
+ iss: string;
22
+ aud: string | string[] | undefined;
23
+ exp: number;
24
+ clientId: string | null;
25
+ };
26
+ type VerifyAccessTokenOptions = {
27
+ token: string;
28
+ jwksUrl: string;
29
+ issuer: string;
30
+ audienceAllowlist: string[];
31
+ };
32
+ declare function verifyAccessToken(options: VerifyAccessTokenOptions): Promise<VerifiedAccessToken>;
33
+
34
+ type ResultEnvelope<T> = {
35
+ status: "success";
36
+ data: T;
37
+ } | {
38
+ status: "partial_success";
39
+ data: T;
40
+ message: string;
41
+ } | {
42
+ status: "error";
43
+ message: string;
44
+ kind?: "validation" | "business" | "platform" | "unknown";
45
+ };
46
+ type MoneyDisplay = {
47
+ formatted: string;
48
+ amountUsd: number;
49
+ };
50
+ type AccessRole = "admin" | "editor" | "viewer";
51
+ type ArtistTier = "none" | "starter" | "plus";
52
+ type BillingStatus = "ACTIVE" | "SUSPENDED" | "INACTIVE" | "NEVER_SUBSCRIBED";
53
+ type CampaignType = "SMART_CAMPAIGN" | "YOUTUBE";
54
+ type CampaignDisplayStatus = "AWAITING_SMART_LINK" | "CONTENT_VALIDATION" | "DEPLOYING" | "READY_FOR_REVIEW" | "ACTIVE" | "PAUSED" | "SUBSCRIPTION_PAUSED" | "ARCHIVED" | "FAILED" | "ENDED";
55
+ type ListArtistsData = {
56
+ artists: Array<{
57
+ id: string;
58
+ name: string;
59
+ tier: ArtistTier;
60
+ billingStatus: BillingStatus;
61
+ activeCampaignCount: number;
62
+ role: AccessRole;
63
+ }>;
64
+ nextCursor?: string;
65
+ };
66
+ type SearchResultType = "artist" | "campaign" | "smartlink";
67
+ type SearchData = {
68
+ results: Array<{
69
+ type: SearchResultType;
70
+ id: string;
71
+ name: string;
72
+ status?: string;
73
+ artistName?: string;
74
+ }>;
75
+ nextCursor?: string;
76
+ };
77
+ type GetArtistData = {
78
+ id: string;
79
+ name: string;
80
+ slug: string;
81
+ tier: ArtistTier;
82
+ billingStatus: BillingStatus;
83
+ connections: {
84
+ spotify: {
85
+ connected: boolean;
86
+ artistName?: string;
87
+ };
88
+ meta: {
89
+ connected: boolean;
90
+ status?: string;
91
+ };
92
+ youtube: {
93
+ connected: boolean;
94
+ channelName?: string;
95
+ };
96
+ };
97
+ onboarding: {
98
+ smartCampaign: {
99
+ isReady: boolean;
100
+ missingRequirements: string[];
101
+ nextAction?: string;
102
+ };
103
+ youtube: {
104
+ isReady: boolean;
105
+ missingRequirements: string[];
106
+ nextAction?: string;
107
+ };
108
+ };
109
+ organization?: {
110
+ id: string;
111
+ name: string;
112
+ };
113
+ };
114
+ type ListCampaignsJsonData = {
115
+ campaigns: Array<{
116
+ id: string;
117
+ contentTitle: string;
118
+ campaignType: CampaignType;
119
+ status: CampaignDisplayStatus;
120
+ budget: MoneyDisplay;
121
+ budgetType: "DAILY" | "TOTAL";
122
+ platforms: string[];
123
+ createdAt: string;
124
+ endDate?: string;
125
+ }>;
126
+ nextCursor?: string;
127
+ };
128
+ type ListCampaignsSummaryData = {
129
+ summary: string;
130
+ totalCount: number;
131
+ };
132
+ type GetCampaignData = {
133
+ id: string;
134
+ contentTitle: string;
135
+ contentType: "TRACK" | "ALBUM" | "PLAYLIST" | "VIDEO";
136
+ campaignType: CampaignType;
137
+ status: CampaignDisplayStatus;
138
+ budget: MoneyDisplay;
139
+ budgetType: "DAILY" | "TOTAL";
140
+ locationTargets: {
141
+ mode: "GLOBAL";
142
+ } | {
143
+ mode: "COUNTRIES";
144
+ countries: Array<{
145
+ code: string;
146
+ name: string;
147
+ }>;
148
+ };
149
+ platforms: Array<{
150
+ name: "META" | "GOOGLE";
151
+ status: string;
152
+ budgetAllocation: MoneyDisplay;
153
+ }>;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ endDate?: string;
157
+ artistId: string;
158
+ artistName: string;
159
+ smartLinkUrl?: string;
160
+ blockedReason?: string;
161
+ nextAction?: string;
162
+ };
163
+ type GetCampaignAnalyticsJsonData = {
164
+ campaignId: string;
165
+ contentTitle: string;
166
+ status: CampaignDisplayStatus;
167
+ dateRange: {
168
+ start: string;
169
+ end: string;
170
+ };
171
+ totals: {
172
+ impressions: number;
173
+ clicks: number;
174
+ spend: MoneyDisplay;
175
+ cpc: MoneyDisplay | null;
176
+ cpm: MoneyDisplay | null;
177
+ ctr: number | null;
178
+ };
179
+ byPlatform?: Array<{
180
+ platform: "META" | "GOOGLE";
181
+ impressions: number;
182
+ clicks: number;
183
+ spend: MoneyDisplay;
184
+ }>;
185
+ warnings?: string[];
186
+ };
187
+ type GetCampaignAnalyticsSummaryData = {
188
+ report: string;
189
+ warnings?: string[];
190
+ };
191
+ type GetBillingData = {
192
+ tier: ArtistTier;
193
+ billingStatus: BillingStatus;
194
+ creditBalance: MoneyDisplay | null;
195
+ recentUsage?: {
196
+ period: string;
197
+ totalSpend: MoneyDisplay;
198
+ campaignCount: number;
199
+ };
200
+ isPromoArtist: boolean;
201
+ promoLimits?: {
202
+ campaignsUsed: number;
203
+ campaignsAllowed: number;
204
+ remainingBudget: MoneyDisplay;
205
+ };
206
+ };
207
+ type GetPlatformStatusData = {
208
+ platforms: {
209
+ spotify: {
210
+ connected: boolean;
211
+ artistName?: string;
212
+ artistUrl?: string;
213
+ };
214
+ meta: {
215
+ connected: boolean;
216
+ status: "not_connected" | "oauth_complete" | "selection_pending" | "partnership_pending" | "partnership_active";
217
+ pageName?: string;
218
+ tokenExpiresAt?: string;
219
+ isTokenExpired?: boolean;
220
+ };
221
+ youtube: {
222
+ connected: boolean;
223
+ channelName?: string;
224
+ channelUrl?: string;
225
+ };
226
+ };
227
+ onboardingComplete: boolean;
228
+ missingForSmartCampaign: string[];
229
+ missingForYouTube: string[];
230
+ };
231
+ type PauseResumePlatformResult = {
232
+ platform: "META" | "GOOGLE";
233
+ success: boolean;
234
+ message?: string;
235
+ };
236
+ type PauseResumeCampaignData = {
237
+ id: string;
238
+ contentTitle: string;
239
+ newStatus: "PAUSED" | "ACTIVE";
240
+ platformResults: PauseResumePlatformResult[];
241
+ };
242
+ type UpdateBudgetData = {
243
+ id: string;
244
+ contentTitle: string;
245
+ previousBudget: MoneyDisplay;
246
+ newBudget: MoneyDisplay;
247
+ budgetType: "DAILY" | "TOTAL";
248
+ endDate?: string;
249
+ };
250
+ type MediaAssetSummary = {
251
+ id: string;
252
+ url: string;
253
+ fileType: string;
254
+ fileName?: string;
255
+ width?: number;
256
+ height?: number;
257
+ createdAt: string;
258
+ };
259
+ type ListMediaAssetsData = {
260
+ assets: MediaAssetSummary[];
261
+ nextCursor?: string;
262
+ };
263
+ type LaunchCampaignData = {
264
+ id: string;
265
+ contentTitle: string;
266
+ campaignType: CampaignType;
267
+ status: CampaignDisplayStatus;
268
+ budget: MoneyDisplay;
269
+ budgetType: "DAILY" | "TOTAL";
270
+ platforms: string[];
271
+ nextSteps: string[];
272
+ };
273
+
274
+ type Phase3Adapter = {
275
+ listArtists(input: unknown): Promise<ResultEnvelope<ListArtistsData>>;
276
+ search(input: unknown): Promise<ResultEnvelope<SearchData>>;
277
+ getArtist(input: unknown): Promise<ResultEnvelope<GetArtistData>>;
278
+ listCampaigns(input: unknown): Promise<ResultEnvelope<ListCampaignsJsonData | ListCampaignsSummaryData>>;
279
+ getCampaign(input: unknown): Promise<ResultEnvelope<GetCampaignData>>;
280
+ getCampaignAnalytics(input: unknown): Promise<ResultEnvelope<GetCampaignAnalyticsJsonData | GetCampaignAnalyticsSummaryData>>;
281
+ getBilling(input: unknown): Promise<ResultEnvelope<GetBillingData>>;
282
+ getPlatformStatus(input: unknown): Promise<ResultEnvelope<GetPlatformStatusData>>;
283
+ pauseCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
284
+ resumeCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
285
+ updateBudget(input: unknown): Promise<ResultEnvelope<UpdateBudgetData>>;
286
+ listMediaAssets(input: unknown): Promise<ResultEnvelope<ListMediaAssetsData>>;
287
+ launchCampaign(input: unknown): Promise<ResultEnvelope<LaunchCampaignData>>;
288
+ };
289
+ declare function createDynamoiMcpServer(options: {
290
+ adapter: Phase3Adapter;
291
+ }): McpServer;
292
+
293
+ declare const ToolFormatSchema: z.ZodEnum<{
294
+ json: "json";
295
+ summary: "summary";
296
+ }>;
297
+ declare const DynamoiListArtistsInputSchema: z.ZodObject<{
298
+ cursor: z.ZodOptional<z.ZodString>;
299
+ limit: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$strip>;
301
+ declare const DynamoiSearchInputSchema: z.ZodObject<{
302
+ cursor: z.ZodOptional<z.ZodString>;
303
+ limit: z.ZodOptional<z.ZodNumber>;
304
+ query: z.ZodOptional<z.ZodString>;
305
+ type: z.ZodOptional<z.ZodEnum<{
306
+ artist: "artist";
307
+ campaign: "campaign";
308
+ smartlink: "smartlink";
309
+ }>>;
310
+ }, z.core.$strip>;
311
+ declare const DynamoiGetArtistInputSchema: z.ZodObject<{
312
+ artistId: z.ZodString;
313
+ }, z.core.$strip>;
314
+ declare const DynamoiListCampaignsInputSchema: z.ZodObject<{
315
+ artistId: z.ZodString;
316
+ cursor: z.ZodOptional<z.ZodString>;
317
+ format: z.ZodOptional<z.ZodEnum<{
318
+ json: "json";
319
+ summary: "summary";
320
+ }>>;
321
+ limit: z.ZodOptional<z.ZodNumber>;
322
+ status: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>;
324
+ declare const DynamoiGetCampaignInputSchema: z.ZodObject<{
325
+ campaignId: z.ZodString;
326
+ }, z.core.$strip>;
327
+ declare const DateRangeSchema: z.ZodObject<{
328
+ end: z.ZodString;
329
+ start: z.ZodString;
330
+ }, z.core.$strip>;
331
+ declare const DynamoiGetCampaignAnalyticsInputSchema: z.ZodObject<{
332
+ campaignId: z.ZodString;
333
+ dateRange: z.ZodOptional<z.ZodObject<{
334
+ end: z.ZodString;
335
+ start: z.ZodString;
336
+ }, z.core.$strip>>;
337
+ format: z.ZodOptional<z.ZodEnum<{
338
+ json: "json";
339
+ summary: "summary";
340
+ }>>;
341
+ }, z.core.$strip>;
342
+ declare const DynamoiGetBillingInputSchema: z.ZodObject<{
343
+ artistId: z.ZodString;
344
+ }, z.core.$strip>;
345
+ declare const DynamoiGetPlatformStatusInputSchema: z.ZodObject<{
346
+ artistId: z.ZodString;
347
+ }, z.core.$strip>;
348
+ declare const DynamoiPauseCampaignInputSchema: z.ZodObject<{
349
+ campaignId: z.ZodString;
350
+ }, z.core.$strip>;
351
+ declare const DynamoiResumeCampaignInputSchema: z.ZodObject<{
352
+ campaignId: z.ZodString;
353
+ }, z.core.$strip>;
354
+ declare const DynamoiUpdateBudgetInputSchema: z.ZodObject<{
355
+ budgetAmount: z.ZodNumber;
356
+ campaignId: z.ZodString;
357
+ endDate: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>;
359
+ declare const DynamoiListMediaAssetsInputSchema: z.ZodObject<{
360
+ artistId: z.ZodString;
361
+ cursor: z.ZodOptional<z.ZodString>;
362
+ limit: z.ZodOptional<z.ZodNumber>;
363
+ }, z.core.$strip>;
364
+ declare const DynamoiLaunchCampaignInputSchema: z.ZodObject<{
365
+ adCopy: z.ZodOptional<z.ZodString>;
366
+ appleMusicUrl: z.ZodOptional<z.ZodString>;
367
+ artistId: z.ZodString;
368
+ budgetAmount: z.ZodNumber;
369
+ budgetSplits: z.ZodRecord<z.ZodEnum<{
370
+ META: "META";
371
+ GOOGLE: "GOOGLE";
372
+ }>, z.ZodNumber>;
373
+ budgetType: z.ZodEnum<{
374
+ DAILY: "DAILY";
375
+ TOTAL: "TOTAL";
376
+ }>;
377
+ campaignType: z.ZodEnum<{
378
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
379
+ YOUTUBE: "YOUTUBE";
380
+ }>;
381
+ clientRequestId: z.ZodString;
382
+ contentTitle: z.ZodString;
383
+ contentType: z.ZodEnum<{
384
+ TRACK: "TRACK";
385
+ ALBUM: "ALBUM";
386
+ PLAYLIST: "PLAYLIST";
387
+ VIDEO: "VIDEO";
388
+ }>;
389
+ endDate: z.ZodOptional<z.ZodString>;
390
+ locationTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
391
+ code: z.ZodString;
392
+ name: z.ZodString;
393
+ }, z.core.$strip>>>;
394
+ mediaAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
395
+ spotifyUrl: z.ZodOptional<z.ZodString>;
396
+ useAiGeneratedCopy: z.ZodOptional<z.ZodBoolean>;
397
+ youtubeVideoId: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strip>;
399
+ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
400
+ readonly description: "List all music artists and YouTube channels the user manages. Returns each artist's subscription tier, billing status, active campaign count, and the user's role.";
401
+ readonly destructiveHint: false;
402
+ readonly name: "dynamoi_list_artists";
403
+ readonly openWorldHint: false;
404
+ readonly readOnlyHint: true;
405
+ readonly schema: z.ZodObject<{
406
+ cursor: z.ZodOptional<z.ZodString>;
407
+ limit: z.ZodOptional<z.ZodNumber>;
408
+ }, z.core.$strip>;
409
+ }, {
410
+ readonly description: "Search across artists, ad campaigns, and smart links by name or URL. Find a specific Spotify release, YouTube campaign, or artist profile.";
411
+ readonly destructiveHint: false;
412
+ readonly name: "dynamoi_search";
413
+ readonly openWorldHint: false;
414
+ readonly readOnlyHint: true;
415
+ readonly schema: z.ZodObject<{
416
+ cursor: z.ZodOptional<z.ZodString>;
417
+ limit: z.ZodOptional<z.ZodNumber>;
418
+ query: z.ZodOptional<z.ZodString>;
419
+ type: z.ZodOptional<z.ZodEnum<{
420
+ artist: "artist";
421
+ campaign: "campaign";
422
+ smartlink: "smartlink";
423
+ }>>;
424
+ }, z.core.$strip>;
425
+ }, {
426
+ readonly description: "Get a music artist or YouTube channel profile — connected platforms (Spotify, Meta, YouTube), subscription tier, billing status, and whether they're ready to launch campaigns.";
427
+ readonly destructiveHint: false;
428
+ readonly name: "dynamoi_get_artist";
429
+ readonly openWorldHint: false;
430
+ readonly readOnlyHint: true;
431
+ readonly schema: z.ZodObject<{
432
+ artistId: z.ZodString;
433
+ }, z.core.$strip>;
434
+ }, {
435
+ readonly description: "List ad campaigns for an artist — each campaign's content title, type (Smart Campaign for Spotify or YouTube for channel growth), budget, status, and platforms. Supports status filtering and pagination.";
436
+ readonly destructiveHint: false;
437
+ readonly name: "dynamoi_list_campaigns";
438
+ readonly openWorldHint: false;
439
+ readonly readOnlyHint: true;
440
+ readonly schema: z.ZodObject<{
441
+ artistId: z.ZodString;
442
+ cursor: z.ZodOptional<z.ZodString>;
443
+ format: z.ZodOptional<z.ZodEnum<{
444
+ json: "json";
445
+ summary: "summary";
446
+ }>>;
447
+ limit: z.ZodOptional<z.ZodNumber>;
448
+ status: z.ZodOptional<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ }, {
451
+ readonly description: "Get full details for a campaign — budget, targeting countries, per-platform status for Meta and Google, smart link URL, and any blocked reasons with suggested next actions.";
452
+ readonly destructiveHint: false;
453
+ readonly name: "dynamoi_get_campaign";
454
+ readonly openWorldHint: false;
455
+ readonly readOnlyHint: true;
456
+ readonly schema: z.ZodObject<{
457
+ campaignId: z.ZodString;
458
+ }, z.core.$strip>;
459
+ }, {
460
+ readonly description: "Get performance analytics for a campaign — impressions, clicks, ad spend, CPC, CPM, and CTR. Optionally filter by date range. Returns per-platform breakdowns for Meta Ads and Google Ads.";
461
+ readonly destructiveHint: false;
462
+ readonly name: "dynamoi_get_campaign_analytics";
463
+ readonly openWorldHint: false;
464
+ readonly readOnlyHint: true;
465
+ readonly schema: z.ZodObject<{
466
+ campaignId: z.ZodString;
467
+ dateRange: z.ZodOptional<z.ZodObject<{
468
+ end: z.ZodString;
469
+ start: z.ZodString;
470
+ }, z.core.$strip>>;
471
+ format: z.ZodOptional<z.ZodEnum<{
472
+ json: "json";
473
+ summary: "summary";
474
+ }>>;
475
+ }, z.core.$strip>;
476
+ }, {
477
+ readonly description: "Get an artist's billing summary — subscription tier, ad credit balance, billing status, and recent spend. Shows remaining credits and campaign usage for the current period.";
478
+ readonly destructiveHint: false;
479
+ readonly name: "dynamoi_get_billing";
480
+ readonly openWorldHint: false;
481
+ readonly readOnlyHint: true;
482
+ readonly schema: z.ZodObject<{
483
+ artistId: z.ZodString;
484
+ }, z.core.$strip>;
485
+ }, {
486
+ readonly description: "Check connection health for Spotify, Meta (Facebook/Instagram), and YouTube. Shows connection status, token expiry, and what steps remain before campaigns can launch on each platform.";
487
+ readonly destructiveHint: false;
488
+ readonly name: "dynamoi_get_platform_status";
489
+ readonly openWorldHint: false;
490
+ readonly readOnlyHint: true;
491
+ readonly schema: z.ZodObject<{
492
+ artistId: z.ZodString;
493
+ }, z.core.$strip>;
494
+ }];
495
+ declare const PHASE_2_TOOL_DEFINITIONS: readonly [{
496
+ readonly description: "Pause a running campaign, stopping ad delivery on Meta (Facebook/Instagram) and/or Google (YouTube). Returns per-platform results.";
497
+ readonly destructiveHint: false;
498
+ readonly name: "dynamoi_pause_campaign";
499
+ readonly openWorldHint: true;
500
+ readonly readOnlyHint: false;
501
+ readonly schema: z.ZodObject<{
502
+ campaignId: z.ZodString;
503
+ }, z.core.$strip>;
504
+ }, {
505
+ readonly description: "Resume a paused campaign, restarting ad delivery on Meta and/or Google. Returns per-platform results.";
506
+ readonly destructiveHint: false;
507
+ readonly name: "dynamoi_resume_campaign";
508
+ readonly openWorldHint: true;
509
+ readonly readOnlyHint: false;
510
+ readonly schema: z.ZodObject<{
511
+ campaignId: z.ZodString;
512
+ }, z.core.$strip>;
513
+ }, {
514
+ readonly description: "Change a campaign's daily or total budget amount in USD. For total-budget campaigns, the end date can also be updated. Cannot switch between daily and total budget types.";
515
+ readonly destructiveHint: false;
516
+ readonly name: "dynamoi_update_budget";
517
+ readonly openWorldHint: true;
518
+ readonly readOnlyHint: false;
519
+ readonly schema: z.ZodObject<{
520
+ budgetAmount: z.ZodNumber;
521
+ campaignId: z.ZodString;
522
+ endDate: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strip>;
524
+ }];
525
+ declare const PHASE_3_TOOL_DEFINITIONS: readonly [{
526
+ readonly description: "List an artist's uploaded creative assets (images and videos) available for campaign launches. Use this to select media before launching a Smart Campaign.";
527
+ readonly destructiveHint: false;
528
+ readonly name: "dynamoi_list_media_assets";
529
+ readonly openWorldHint: false;
530
+ readonly readOnlyHint: true;
531
+ readonly schema: z.ZodObject<{
532
+ artistId: z.ZodString;
533
+ cursor: z.ZodOptional<z.ZodString>;
534
+ limit: z.ZodOptional<z.ZodNumber>;
535
+ }, z.core.$strip>;
536
+ }, {
537
+ readonly description: "Launch a new campaign to promote a Spotify release (track, album, or playlist via Meta Ads) or grow a YouTube channel (via Google Ads with AdSense revenue optimization). Provide a client-generated request ID for safe retries.";
538
+ readonly destructiveHint: false;
539
+ readonly name: "dynamoi_launch_campaign";
540
+ readonly openWorldHint: true;
541
+ readonly readOnlyHint: false;
542
+ readonly schema: z.ZodObject<{
543
+ adCopy: z.ZodOptional<z.ZodString>;
544
+ appleMusicUrl: z.ZodOptional<z.ZodString>;
545
+ artistId: z.ZodString;
546
+ budgetAmount: z.ZodNumber;
547
+ budgetSplits: z.ZodRecord<z.ZodEnum<{
548
+ META: "META";
549
+ GOOGLE: "GOOGLE";
550
+ }>, z.ZodNumber>;
551
+ budgetType: z.ZodEnum<{
552
+ DAILY: "DAILY";
553
+ TOTAL: "TOTAL";
554
+ }>;
555
+ campaignType: z.ZodEnum<{
556
+ SMART_CAMPAIGN: "SMART_CAMPAIGN";
557
+ YOUTUBE: "YOUTUBE";
558
+ }>;
559
+ clientRequestId: z.ZodString;
560
+ contentTitle: z.ZodString;
561
+ contentType: z.ZodEnum<{
562
+ TRACK: "TRACK";
563
+ ALBUM: "ALBUM";
564
+ PLAYLIST: "PLAYLIST";
565
+ VIDEO: "VIDEO";
566
+ }>;
567
+ endDate: z.ZodOptional<z.ZodString>;
568
+ locationTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ code: z.ZodString;
570
+ name: z.ZodString;
571
+ }, z.core.$strip>>>;
572
+ mediaAssetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
+ spotifyUrl: z.ZodOptional<z.ZodString>;
574
+ useAiGeneratedCopy: z.ZodOptional<z.ZodBoolean>;
575
+ youtubeVideoId: z.ZodOptional<z.ZodString>;
576
+ }, z.core.$strip>;
577
+ }];
578
+
579
+ type HandleOptions = {
580
+ createServer: () => McpServer;
581
+ request: Request;
582
+ parsedBody: unknown;
583
+ /**
584
+ * Context key used to bind an in-memory session to the authenticated principal.
585
+ * This prevents cross-user/session confusion if an MCP client accidentally reuses
586
+ * a `mcp-session-id` across different end users.
587
+ *
588
+ * Recommended: `${sub}:${clientId ?? "unknown"}`.
589
+ */
590
+ sessionContextKey: string;
591
+ };
592
+ declare function handleMcpHttpRequest(options: HandleOptions): Promise<Response>;
593
+
594
+ export { type AccessRole, type ArtistTier, type BillingStatus, type CampaignDisplayStatus, type CampaignType, DateRangeSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiPauseCampaignInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiUpdateBudgetInputSchema, type GetArtistData, type GetBillingData, type GetCampaignAnalyticsJsonData, type GetCampaignAnalyticsSummaryData, type GetCampaignData, type GetPlatformStatusData, type LaunchCampaignData, type ListArtistsData, type ListCampaignsJsonData, type ListCampaignsSummaryData, type ListMediaAssetsData, type MediaAssetSummary, type MoneyDisplay, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_3_TOOL_DEFINITIONS, type PauseResumeCampaignData, type PauseResumePlatformResult, type Phase3Adapter, type ResultEnvelope, type SearchData, type SearchResultType, ToolFormatSchema, type UpdateBudgetData, buildProtectedResourceMetadata, buildWwwAuthenticateHeader, createDynamoiMcpServer, handleMcpHttpRequest, verifyAccessToken };