@dynamoi/mcp 0.6.2 → 0.6.3

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/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.6.3] - 2026-05-30
11
+
12
+ ### Added
13
+
14
+ - Added a ChatGPT app review profile that exposes the approved 14-tool surface while keeping the broader MCP package available for other clients.
15
+ - Added regression coverage for profile-specific server behavior and ChatGPT app review schemas.
16
+
17
+ ### Changed
18
+
19
+ - Tightened Smart Link detail inputs to explicit include booleans and closed schemas for app-review clients.
20
+ - Advertised concrete campaign status enum values for campaign listing instead of a free-form status string.
21
+ - Hid billing, paid launch/readiness, campaign mutation, OAuth-start, media asset, and country-catalog tools from the ChatGPT app review profile.
22
+
23
+ ### Fixed
24
+
25
+ - Fixed legacy Smart Link include normalization under the repo-wide strict TypeScript settings.
26
+ - Added a package version fallback so unbundled runtime metadata reports the published package version instead of a placeholder build token.
27
+
10
28
  ## [0.6.2] - 2026-05-12
11
29
 
12
30
  ### Added
@@ -5,7 +5,7 @@ type ProtectedResourceMetadata = {
5
5
  resource_documentation?: string;
6
6
  scopes_supported: string[];
7
7
  };
8
- declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile", "dynamoi:read", "dynamoi:billing.read", "dynamoi:platform.read", "dynamoi:platform.write", "dynamoi:campaign.write", "dynamoi:campaign.launch", "dynamoi:smart_links.write"];
8
+ declare const DYNAMOI_MCP_SCOPES: readonly ["email", "profile"];
9
9
  declare function buildProtectedResourceMetadata(options: {
10
10
  resource: string;
11
11
  authorizationServers: string[];
@@ -14,6 +14,7 @@ declare function buildProtectedResourceMetadata(options: {
14
14
  }): ProtectedResourceMetadata;
15
15
  declare function buildWwwAuthenticateHeader(options: {
16
16
  resourceMetadataUrl: string;
17
+ errorDescription?: string;
17
18
  error?: "insufficient_scope" | "invalid_token";
18
19
  scope?: string;
19
20
  }): string;
@@ -2,7 +2,7 @@ import {
2
2
  DYNAMOI_MCP_SCOPES,
3
3
  buildProtectedResourceMetadata,
4
4
  buildWwwAuthenticateHeader
5
- } from "../chunk-53YNLVA3.js";
5
+ } from "../chunk-CHQUK72A.js";
6
6
  export {
7
7
  DYNAMOI_MCP_SCOPES,
8
8
  buildProtectedResourceMetadata,
@@ -1,15 +1,5 @@
1
1
  // src/auth/protected-resource.ts
2
- var DYNAMOI_MCP_SCOPES = [
3
- "email",
4
- "profile",
5
- "dynamoi:read",
6
- "dynamoi:billing.read",
7
- "dynamoi:platform.read",
8
- "dynamoi:platform.write",
9
- "dynamoi:campaign.write",
10
- "dynamoi:campaign.launch",
11
- "dynamoi:smart_links.write"
12
- ];
2
+ var DYNAMOI_MCP_SCOPES = ["email", "profile"];
13
3
  function buildProtectedResourceMetadata(options) {
14
4
  return {
15
5
  authorization_servers: options.authorizationServers,
@@ -23,8 +13,18 @@ function buildProtectedResourceMetadata(options) {
23
13
  }
24
14
  function buildWwwAuthenticateHeader(options) {
25
15
  const scope = options.scope ?? "email profile";
26
- const error = options.error ? `, error="${options.error}"` : "";
27
- return `Bearer resource_metadata="${options.resourceMetadataUrl}", scope="${scope}"${error}`;
16
+ const error = options.error ?? "invalid_token";
17
+ const errorDescription = options.errorDescription ?? (error === "insufficient_scope" ? "Additional Dynamoi permissions are required." : "Sign in to Dynamoi to continue.");
18
+ const params = [
19
+ `resource_metadata="${escapeHeaderValue(options.resourceMetadataUrl)}"`,
20
+ `scope="${escapeHeaderValue(scope)}"`,
21
+ `error="${escapeHeaderValue(error)}"`,
22
+ `error_description="${escapeHeaderValue(errorDescription)}"`
23
+ ];
24
+ return `Bearer ${params.join(", ")}`;
25
+ }
26
+ function escapeHeaderValue(value) {
27
+ return value.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
28
28
  }
29
29
 
30
30
  export {
@@ -32,4 +32,4 @@ export {
32
32
  buildProtectedResourceMetadata,
33
33
  buildWwwAuthenticateHeader
34
34
  };
35
- //# sourceMappingURL=chunk-53YNLVA3.js.map
35
+ //# sourceMappingURL=chunk-CHQUK72A.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/auth/protected-resource.ts"],"sourcesContent":["type ProtectedResourceMetadata = {\n\tauthorization_servers: string[];\n\tbearer_methods_supported: [\"header\"];\n\tresource: string;\n\tresource_documentation?: string;\n\tscopes_supported: string[];\n};\n\n// Supabase OAuth Server currently rejects custom resource scopes, so the public\n// MCP auth contract advertises only the standard identity scopes it can mint.\nexport const DYNAMOI_MCP_SCOPES = [\"email\", \"profile\"] as const;\n\nexport function buildProtectedResourceMetadata(options: {\n\tresource: string;\n\tauthorizationServers: string[];\n\tresourceDocumentation?: string;\n\tscopesSupported?: string[];\n}): ProtectedResourceMetadata {\n\treturn {\n\t\tauthorization_servers: options.authorizationServers,\n\t\tbearer_methods_supported: [\"header\"],\n\t\tresource: options.resource,\n\t\t...(options.resourceDocumentation\n\t\t\t? { resource_documentation: options.resourceDocumentation }\n\t\t\t: {}),\n\t\t// Supabase OAuth Server (beta) can fail token exchange when `openid` is requested\n\t\t// (it attempts to mint an ID token). Our MCP only needs an access token.\n\t\tscopes_supported: options.scopesSupported ?? [...DYNAMOI_MCP_SCOPES],\n\t};\n}\n\nexport function buildWwwAuthenticateHeader(options: {\n\tresourceMetadataUrl: string;\n\terrorDescription?: string;\n\terror?: \"insufficient_scope\" | \"invalid_token\";\n\tscope?: string;\n}): string {\n\tconst scope = options.scope ?? \"email profile\";\n\tconst error = options.error ?? \"invalid_token\";\n\tconst errorDescription =\n\t\toptions.errorDescription ??\n\t\t(error === \"insufficient_scope\"\n\t\t\t? \"Additional Dynamoi permissions are required.\"\n\t\t\t: \"Sign in to Dynamoi to continue.\");\n\tconst params = [\n\t\t`resource_metadata=\"${escapeHeaderValue(options.resourceMetadataUrl)}\"`,\n\t\t`scope=\"${escapeHeaderValue(scope)}\"`,\n\t\t`error=\"${escapeHeaderValue(error)}\"`,\n\t\t`error_description=\"${escapeHeaderValue(errorDescription)}\"`,\n\t];\n\t// RFC 6750 style with resource metadata extension.\n\treturn `Bearer ${params.join(\", \")}`;\n}\n\nfunction escapeHeaderValue(value: string): string {\n\treturn value.replaceAll(\"\\\\\", \"\\\\\\\\\").replaceAll('\"', '\\\\\"');\n}\n"],"mappings":";AAUO,IAAM,qBAAqB,CAAC,SAAS,SAAS;AAE9C,SAAS,+BAA+B,SAKjB;AAC7B,SAAO;AAAA,IACN,uBAAuB,QAAQ;AAAA,IAC/B,0BAA0B,CAAC,QAAQ;AAAA,IACnC,UAAU,QAAQ;AAAA,IAClB,GAAI,QAAQ,wBACT,EAAE,wBAAwB,QAAQ,sBAAsB,IACxD,CAAC;AAAA;AAAA;AAAA,IAGJ,kBAAkB,QAAQ,mBAAmB,CAAC,GAAG,kBAAkB;AAAA,EACpE;AACD;AAEO,SAAS,2BAA2B,SAKhC;AACV,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,mBACL,QAAQ,qBACP,UAAU,uBACR,iDACA;AACJ,QAAM,SAAS;AAAA,IACd,sBAAsB,kBAAkB,QAAQ,mBAAmB,CAAC;AAAA,IACpE,UAAU,kBAAkB,KAAK,CAAC;AAAA,IAClC,UAAU,kBAAkB,KAAK,CAAC;AAAA,IAClC,sBAAsB,kBAAkB,gBAAgB,CAAC;AAAA,EAC1D;AAEA,SAAO,UAAU,OAAO,KAAK,IAAI,CAAC;AACnC;AAEA,SAAS,kBAAkB,OAAuB;AACjD,SAAO,MAAM,WAAW,MAAM,MAAM,EAAE,WAAW,KAAK,KAAK;AAC5D;","names":[]}
package/dist/index.d.ts CHANGED
@@ -347,7 +347,7 @@ type GetCurrentUserData = {
347
347
  recommendedNextActions: string[];
348
348
  hints: string[];
349
349
  };
350
- type SmartLinkClaimStatus = "auto_approved" | "pending_ops_review" | "approved_by_ops" | "rejected";
350
+ type SmartLinkClaimStatus = "auto_approved" | "pending_ops_review" | "verification_deferred" | "approved_by_ops" | "rejected";
351
351
  type SmartLinkPublishState = "published" | "unpublished";
352
352
  type SmartLinkTakedownStatus = "none" | "active" | "resolved";
353
353
  type SmartLinkOdesliStatus = "pending" | "resolved" | "failed";
@@ -415,6 +415,7 @@ type GetSmartLinkSummaryData = {
415
415
  type SmartLinkAnalyticsTotals = {
416
416
  anonymousVisits: number;
417
417
  streamingServiceClicks: number;
418
+ youtubeVideoPlays: number;
418
419
  shareClicks: number;
419
420
  promoteCtaClicks: number;
420
421
  };
@@ -733,47 +734,6 @@ declare const DynamoiOpenAiFetchInputSchema: z.ZodObject<{
733
734
  id: z.ZodString;
734
735
  }, z.core.$strict>;
735
736
 
736
- type Phase3Adapter = {
737
- getCurrentUser(input: unknown): Promise<ResultEnvelope<GetCurrentUserData | GetCurrentUserSummaryData>>;
738
- listArtists(input: unknown): Promise<ResultEnvelope<ListArtistsData | ListArtistsSummaryData>>;
739
- search(input: unknown): Promise<ResultEnvelope<SearchData | SearchSummaryData>>;
740
- openAiSearch(input: unknown): Promise<ResultEnvelope<OpenAiSearchData>>;
741
- openAiFetch(input: unknown): Promise<ResultEnvelope<OpenAiFetchData>>;
742
- getArtist(input: unknown): Promise<ResultEnvelope<GetArtistData | GetArtistSummaryData>>;
743
- getArtistAnalytics(input: unknown): Promise<ResultEnvelope<GetArtistAnalyticsJsonData | GetArtistAnalyticsSummaryData>>;
744
- listCampaigns(input: unknown): Promise<ResultEnvelope<ListCampaignsJsonData | ListCampaignsSummaryData>>;
745
- getCampaign(input: unknown): Promise<ResultEnvelope<GetCampaignData | GetCampaignSummaryData>>;
746
- getCampaignAnalytics(input: unknown): Promise<ResultEnvelope<GetCampaignAnalyticsJsonData | GetCampaignAnalyticsSummaryData>>;
747
- getBilling(input: unknown): Promise<ResultEnvelope<GetBillingData | GetBillingSummaryData>>;
748
- startMetaConnection(input: unknown): Promise<ResultEnvelope<StartMetaConnectionData>>;
749
- getPlatformStatus(input: unknown): Promise<ResultEnvelope<GetPlatformStatusData | GetPlatformStatusSummaryData>>;
750
- startYoutubeChannelLink(input: unknown): Promise<ResultEnvelope<StartYoutubeChannelLinkData>>;
751
- listAvailableCountries(input: unknown): Promise<ResultEnvelope<ListAvailableCountriesData | ListAvailableCountriesSummaryData>>;
752
- getOnboardingStatus(input: unknown): Promise<ResultEnvelope<GetOnboardingStatusData | GetOnboardingStatusSummaryData>>;
753
- getCampaignReadiness(input: unknown): Promise<ResultEnvelope<GetCampaignReadinessData | GetCampaignReadinessSummaryData>>;
754
- getCampaignDeploymentStatus(input: unknown): Promise<ResultEnvelope<GetCampaignDeploymentStatusData | GetCampaignDeploymentStatusSummaryData>>;
755
- pauseCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
756
- resumeCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
757
- updateBudget(input: unknown): Promise<ResultEnvelope<UpdateBudgetData>>;
758
- updateCampaign(input: unknown): Promise<ResultEnvelope<UpdateCampaignData>>;
759
- listMediaAssets(input: unknown): Promise<ResultEnvelope<ListMediaAssetsData | ListMediaAssetsSummaryData>>;
760
- launchCampaign(input: unknown): Promise<ResultEnvelope<LaunchCampaignData>>;
761
- createSmartLinkFromSpotify(input: unknown): Promise<ResultEnvelope<CreateSmartLinkFromSpotifyData>>;
762
- createSmartLinksFromSpotifyArtist(input: unknown): Promise<ResultEnvelope<CreateSmartLinksFromSpotifyArtistData>>;
763
- listSmartLinks(input: unknown): Promise<ResultEnvelope<ListSmartLinksData | ListSmartLinksSummaryData>>;
764
- getSmartLink(input: unknown): Promise<ResultEnvelope<GetSmartLinkData | GetSmartLinkSummaryData>>;
765
- getSmartLinkAnalytics(input: unknown): Promise<ResultEnvelope<GetSmartLinkAnalyticsData | GetSmartLinkAnalyticsSummaryData>>;
766
- getSmartLinkArtistSettings(input: unknown): Promise<ResultEnvelope<SmartLinkSettingsData>>;
767
- updateSmartLink(input: unknown): Promise<ResultEnvelope<UpdateSmartLinkData | UpdateSmartLinkArtistSettingsData | PublishSmartLinkData>>;
768
- updateSmartLinkArtistSettings(input: unknown): Promise<ResultEnvelope<UpdateSmartLinkArtistSettingsData>>;
769
- publishSmartLink(input: unknown): Promise<ResultEnvelope<PublishSmartLinkData>>;
770
- unpublishSmartLink(input: unknown): Promise<ResultEnvelope<PublishSmartLinkData>>;
771
- };
772
- declare function createDynamoiMcpServer(options: {
773
- adapter: Phase3Adapter;
774
- websiteUrl?: string;
775
- }): McpServer;
776
-
777
737
  declare const DynamoiCreateSmartLinkFromSpotifyInputSchema: z.ZodObject<{
778
738
  artistId: z.ZodString;
779
739
  clientRequestId: z.ZodOptional<z.ZodString>;
@@ -799,6 +759,7 @@ declare const DynamoiListSmartLinksInputSchema: z.ZodObject<{
799
759
  claimStatus: z.ZodOptional<z.ZodEnum<{
800
760
  auto_approved: "auto_approved";
801
761
  pending_ops_review: "pending_ops_review";
762
+ verification_deferred: "verification_deferred";
802
763
  approved_by_ops: "approved_by_ops";
803
764
  rejected: "rejected";
804
765
  }>>;
@@ -835,14 +796,26 @@ declare const DynamoiGetSmartLinkInputSchema: z.ZodObject<{
835
796
  DAILY: "DAILY";
836
797
  TOTAL: "TOTAL";
837
798
  }>>;
838
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
839
- analytics: "analytics";
840
- artist_settings: "artist_settings";
841
- }>>>;
799
+ includeAnalytics: z.ZodOptional<z.ZodBoolean>;
800
+ includeArtistSettings: z.ZodOptional<z.ZodBoolean>;
842
801
  includeBreakdowns: z.ZodOptional<z.ZodBoolean>;
843
802
  playLinkId: z.ZodOptional<z.ZodString>;
844
803
  spotifyUrl: z.ZodOptional<z.ZodString>;
845
804
  }, z.core.$strict>;
805
+ declare function parseDynamoiGetSmartLinkInput(rawInput: unknown): {
806
+ artistId?: string | undefined;
807
+ dateRange?: {
808
+ end: string;
809
+ start: string;
810
+ } | undefined;
811
+ format?: "summary" | "json" | undefined;
812
+ granularity?: "DAILY" | "TOTAL" | undefined;
813
+ includeAnalytics?: boolean | undefined;
814
+ includeArtistSettings?: boolean | undefined;
815
+ includeBreakdowns?: boolean | undefined;
816
+ playLinkId?: string | undefined;
817
+ spotifyUrl?: string | undefined;
818
+ };
846
819
  declare const DynamoiGetSmartLinkAnalyticsInputSchema: z.ZodObject<{
847
820
  dateRange: z.ZodOptional<z.ZodObject<{
848
821
  end: z.ZodString;
@@ -917,7 +890,7 @@ declare const DynamoiPublishSmartLinkInputSchema: z.ZodObject<{
917
890
  userIntentSummary: z.ZodOptional<z.ZodString>;
918
891
  }, z.core.$strict>;
919
892
  declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
920
- readonly description: "Use this when the user wants to create one free Dynamoi Smart Link from a Spotify album or track URL/URI, or a single starter release from a Spotify artist URL. For full-catalog artist imports or artist hub requests, prefer dynamoi_create_smart_links_from_spotify_artist. Smart Links are free: no per-link fee, no subscription requirement, and no upgrade gate. This does not create a paid ad campaign. Spotify playlist URLs are not supported today. If the Smart Link already exists, return the existing link instead of creating a duplicate; if customDescription is provided, update that Smart Link's public description. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
893
+ readonly description: "Use this when the user wants to create one free Dynamoi Smart Link from a Spotify album or track URL/URI, or a single starter release from a Spotify artist URL. For full-catalog artist imports or artist hub requests, prefer dynamoi_create_smart_links_from_spotify_artist. Smart Links are free to create and manage. High-popularity or unverifiable artist links may stay unpublished in verification hold until Dynamoi can verify the client relationship. This does not create a paid ad campaign. Spotify playlist URLs are not supported today. If the Smart Link already exists, return the existing link instead of creating a duplicate; if customDescription is provided, update that Smart Link's public description. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
921
894
  readonly destructiveHint: true;
922
895
  readonly idempotentHint: true;
923
896
  readonly name: "dynamoi_create_smart_link_from_spotify";
@@ -930,6 +903,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
930
903
  claimStatus: z.ZodEnum<{
931
904
  auto_approved: "auto_approved";
932
905
  pending_ops_review: "pending_ops_review";
906
+ verification_deferred: "verification_deferred";
933
907
  approved_by_ops: "approved_by_ops";
934
908
  rejected: "rejected";
935
909
  }>;
@@ -1010,8 +984,8 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1010
984
  }, z.core.$strict>;
1011
985
  readonly title: "Create Free Smart Link from Spotify";
1012
986
  }, {
1013
- readonly description: "Use this when the user gives a Spotify artist URL and wants Dynamoi to create, import, or refresh free Smart Links for the artist catalog and return the artist hub. If the signed-in user has no Dynamoi artist yet, omit artistId so Dynamoi can create the first artist from the Spotify artist profile. This starts the background catalog import so the user does not need to open the dashboard. Smart Links are free: no per-link fee, no subscription requirement, and no upgrade gate. This does not create a paid ad campaign. In the final answer, lead with the artist hub URL and current public Smart Link URLs; do not expose internal IDs unless asked.";
1014
- readonly destructiveHint: false;
987
+ readonly description: "Use this when the user gives a Spotify artist URL and wants Dynamoi to create, import, or refresh free Smart Links for the artist catalog and return the artist hub. If the signed-in user has no Dynamoi artist yet, omit artistId so Dynamoi can create the first artist from the Spotify artist profile. This starts the background catalog import so the user does not need to open the dashboard. Smart Links are free to create and manage. High-popularity or unverifiable artist catalog links may stay unpublished in verification hold until Dynamoi can verify the client relationship. This does not create a paid ad campaign. In the final answer, lead with the artist hub URL and current public Smart Link URLs; do not expose internal IDs unless asked.";
988
+ readonly destructiveHint: true;
1015
989
  readonly idempotentHint: true;
1016
990
  readonly name: "dynamoi_create_smart_links_from_spotify_artist";
1017
991
  readonly openWorldHint: true;
@@ -1036,6 +1010,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1036
1010
  claimStatus: z.ZodEnum<{
1037
1011
  auto_approved: "auto_approved";
1038
1012
  pending_ops_review: "pending_ops_review";
1013
+ verification_deferred: "verification_deferred";
1039
1014
  approved_by_ops: "approved_by_ops";
1040
1015
  rejected: "rejected";
1041
1016
  }>;
@@ -1085,6 +1060,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1085
1060
  claimStatus: z.ZodEnum<{
1086
1061
  auto_approved: "auto_approved";
1087
1062
  pending_ops_review: "pending_ops_review";
1063
+ verification_deferred: "verification_deferred";
1088
1064
  approved_by_ops: "approved_by_ops";
1089
1065
  rejected: "rejected";
1090
1066
  }>;
@@ -1167,6 +1143,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1167
1143
  claimStatus: z.ZodEnum<{
1168
1144
  auto_approved: "auto_approved";
1169
1145
  pending_ops_review: "pending_ops_review";
1146
+ verification_deferred: "verification_deferred";
1170
1147
  approved_by_ops: "approved_by_ops";
1171
1148
  rejected: "rejected";
1172
1149
  }>;
@@ -1228,6 +1205,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1228
1205
  claimStatus: z.ZodOptional<z.ZodEnum<{
1229
1206
  auto_approved: "auto_approved";
1230
1207
  pending_ops_review: "pending_ops_review";
1208
+ verification_deferred: "verification_deferred";
1231
1209
  approved_by_ops: "approved_by_ops";
1232
1210
  rejected: "rejected";
1233
1211
  }>>;
@@ -1252,7 +1230,7 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1252
1230
  }, z.core.$strict>;
1253
1231
  readonly title: "List Smart Links";
1254
1232
  }, {
1255
- readonly description: "Use this when the user wants full details for one free Smart Link, including release, Spotify URL, public play.dynamoi.com URL, current status, theme source, and next actions. Add include=['analytics'] for visit/click analytics and include=['artist_settings'] for artist-level theme/pixel settings. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
1233
+ readonly description: "Use this when the user wants full details for one free Smart Link, including release, Spotify URL, public play.dynamoi.com URL, current status, theme source, and next actions. Set includeAnalytics=true for visit/click analytics and includeArtistSettings=true for artist-level theme/pixel settings. In the final answer, lead with the public URL and do not expose internal IDs unless asked.";
1256
1234
  readonly destructiveHint: false;
1257
1235
  readonly name: "dynamoi_get_smart_link";
1258
1236
  readonly openWorldHint: false;
@@ -1288,10 +1266,8 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1288
1266
  DAILY: "DAILY";
1289
1267
  TOTAL: "TOTAL";
1290
1268
  }>>;
1291
- include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1292
- analytics: "analytics";
1293
- artist_settings: "artist_settings";
1294
- }>>>;
1269
+ includeAnalytics: z.ZodOptional<z.ZodBoolean>;
1270
+ includeArtistSettings: z.ZodOptional<z.ZodBoolean>;
1295
1271
  includeBreakdowns: z.ZodOptional<z.ZodBoolean>;
1296
1272
  playLinkId: z.ZodOptional<z.ZodString>;
1297
1273
  spotifyUrl: z.ZodOptional<z.ZodString>;
@@ -1351,6 +1327,10 @@ declare const PHASE_4_TOOL_DEFINITIONS: readonly [{
1351
1327
  readonly title: "Update Smart Link";
1352
1328
  }];
1353
1329
 
1330
+ declare const DateRangeSchema: z.ZodObject<{
1331
+ end: z.ZodString;
1332
+ start: z.ZodString;
1333
+ }, z.core.$strict>;
1354
1334
  declare const ToolFormatSchema: z.ZodEnum<{
1355
1335
  summary: "summary";
1356
1336
  json: "json";
@@ -1411,11 +1391,17 @@ declare const DynamoiListCampaignsInputSchema: z.ZodObject<{
1411
1391
  json: "json";
1412
1392
  }>>;
1413
1393
  limit: z.ZodOptional<z.ZodNumber>;
1414
- status: z.ZodOptional<z.ZodString>;
1415
- }, z.core.$strict>;
1416
- declare const DateRangeSchema: z.ZodObject<{
1417
- end: z.ZodString;
1418
- start: z.ZodString;
1394
+ status: z.ZodOptional<z.ZodEnum<{
1395
+ ACTIVE: "ACTIVE";
1396
+ PAUSED: "PAUSED";
1397
+ AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
1398
+ CONTENT_VALIDATION: "CONTENT_VALIDATION";
1399
+ DEPLOYING: "DEPLOYING";
1400
+ READY_FOR_REVIEW: "READY_FOR_REVIEW";
1401
+ SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
1402
+ ARCHIVED: "ARCHIVED";
1403
+ FAILED: "FAILED";
1404
+ }>>;
1419
1405
  }, z.core.$strict>;
1420
1406
  declare const DynamoiGetCampaignInputSchema: z.ZodObject<{
1421
1407
  analyticsDateRange: z.ZodOptional<z.ZodObject<{
@@ -1710,7 +1696,7 @@ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
1710
1696
  }, z.core.$strict>;
1711
1697
  readonly title: "Get Account Overview";
1712
1698
  }, {
1713
- readonly description: "Use this when the user wants to see which artists or YouTube channels they manage, along with billing status, active campaign count, and their role. Pass artistId when you need the full profile/readiness details for one artist instead of a roster page. Do not use this for campaign details; use dynamoi_list_campaigns or dynamoi_get_campaign. Never use this for generic social-media or marketing advice, including Instagram follower-growth questions, unless the user explicitly asked about their Dynamoi roster. If the result is empty, the user is brand-new — do not stop with 'no records found'; instead route via dynamoi_get_account_overview.recommendedNextActions or read dynamoi://playbooks/onboarding-tree.";
1699
+ readonly description: "Use this when the user wants to see which artists or YouTube channels they manage, along with billing status, active campaign count, and their role. Pass artistId when you need the full profile/readiness details for one artist instead of a roster page. Do not use this for campaign details; use dynamoi_list_campaigns or dynamoi_get_campaign. Never use this for generic social-media or marketing advice, including Instagram follower-growth questions, unless the user explicitly asked about their Dynamoi roster. If the result is empty, the user is brand-new — do not stop with 'no records found'; route through dynamoi_get_account_overview.recommendedNextActions.";
1714
1700
  readonly destructiveHint: false;
1715
1701
  readonly name: "dynamoi_list_artists";
1716
1702
  readonly openWorldHint: false;
@@ -1743,7 +1729,7 @@ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
1743
1729
  }, z.core.$strict>;
1744
1730
  readonly title: "List Artists";
1745
1731
  }, {
1746
- readonly description: "Use this when the user mentions an artist, release, campaign, or smart link but you do not yet know the exact record to inspect. Do not use this for analytics summaries or billing questions once you already know the target record. If the result is empty for a brand-new user (no artists yet), do not respond 'no records found' as a terminal answer — instead suggest creating their first artist hub via dynamoi_create_smart_links_from_spotify_artist or read dynamoi://playbooks/onboarding-tree.";
1732
+ readonly description: "Use this when the user mentions an artist, release, campaign, or smart link but you do not yet know the exact record to inspect. Do not use this for analytics summaries or billing questions once you already know the target record. If the result is empty for a brand-new user (no artists yet), do not respond 'no records found' as a terminal answer — instead suggest creating their first artist hub via dynamoi_create_smart_links_from_spotify_artist.";
1747
1733
  readonly destructiveHint: false;
1748
1734
  readonly name: "dynamoi_search";
1749
1735
  readonly openWorldHint: false;
@@ -1871,7 +1857,17 @@ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
1871
1857
  json: "json";
1872
1858
  }>>;
1873
1859
  limit: z.ZodOptional<z.ZodNumber>;
1874
- status: z.ZodOptional<z.ZodString>;
1860
+ status: z.ZodOptional<z.ZodEnum<{
1861
+ ACTIVE: "ACTIVE";
1862
+ PAUSED: "PAUSED";
1863
+ AWAITING_SMART_LINK: "AWAITING_SMART_LINK";
1864
+ CONTENT_VALIDATION: "CONTENT_VALIDATION";
1865
+ DEPLOYING: "DEPLOYING";
1866
+ READY_FOR_REVIEW: "READY_FOR_REVIEW";
1867
+ SUBSCRIPTION_PAUSED: "SUBSCRIPTION_PAUSED";
1868
+ ARCHIVED: "ARCHIVED";
1869
+ FAILED: "FAILED";
1870
+ }>>;
1875
1871
  }, z.core.$strict>;
1876
1872
  readonly title: "List Campaigns";
1877
1873
  }, {
@@ -1988,7 +1984,7 @@ declare const PHASE_1_TOOL_DEFINITIONS: readonly [{
1988
1984
  }, z.core.$strict>;
1989
1985
  readonly title: "Get Billing";
1990
1986
  }, {
1991
- readonly description: "Use this when the user wants to know whether Spotify, Meta, or YouTube are connected and what setup steps still block launches. When polling after dynamoi_start_meta_connection or dynamoi_start_youtube_channel_link, pass the returned onboardingAttemptId and onboardingFlow so Dynamoi ops can correlate the chat-first browser step. Do not use this for billing details; use dynamoi_get_billing when the question is about credits or subscription billing state. Never use this to personalize generic Instagram or marketing-advice questions.";
1987
+ readonly description: "Use this when the user wants to know whether Spotify, Meta, or YouTube are connected and what setup steps still block launches. When polling after a connection-start flow, pass the returned onboardingAttemptId and onboardingFlow so Dynamoi ops can correlate the browser step. Do not use this for detailed billing questions. Never use this to personalize generic Instagram or marketing-advice questions.";
1992
1988
  readonly destructiveHint: false;
1993
1989
  readonly name: "dynamoi_get_platform_status";
1994
1990
  readonly openWorldHint: false;
@@ -2392,6 +2388,53 @@ declare const PHASE_3_TOOL_DEFINITIONS: readonly [{
2392
2388
  readonly title: "Start Campaign Launch Workflow";
2393
2389
  }];
2394
2390
 
2391
+ type DynamoiMcpToolProfile = "full" | "chatgpt-app";
2392
+ type DynamoiToolDefinition = (typeof PHASE_1_TOOL_DEFINITIONS)[number] | (typeof PHASE_ONBOARDING_TOOL_DEFINITIONS)[number] | (typeof PHASE_2_TOOL_DEFINITIONS)[number] | (typeof PHASE_3_TOOL_DEFINITIONS)[number] | (typeof PHASE_4_TOOL_DEFINITIONS)[number];
2393
+ declare function getDynamoiToolDefinitions(options?: {
2394
+ toolProfile?: DynamoiMcpToolProfile;
2395
+ }): DynamoiToolDefinition[];
2396
+ type Phase3Adapter = {
2397
+ getCurrentUser(input: unknown): Promise<ResultEnvelope<GetCurrentUserData | GetCurrentUserSummaryData>>;
2398
+ listArtists(input: unknown): Promise<ResultEnvelope<ListArtistsData | ListArtistsSummaryData>>;
2399
+ search(input: unknown): Promise<ResultEnvelope<SearchData | SearchSummaryData>>;
2400
+ openAiSearch(input: unknown): Promise<ResultEnvelope<OpenAiSearchData>>;
2401
+ openAiFetch(input: unknown): Promise<ResultEnvelope<OpenAiFetchData>>;
2402
+ getArtist(input: unknown): Promise<ResultEnvelope<GetArtistData | GetArtistSummaryData>>;
2403
+ getArtistAnalytics(input: unknown): Promise<ResultEnvelope<GetArtistAnalyticsJsonData | GetArtistAnalyticsSummaryData>>;
2404
+ listCampaigns(input: unknown): Promise<ResultEnvelope<ListCampaignsJsonData | ListCampaignsSummaryData>>;
2405
+ getCampaign(input: unknown): Promise<ResultEnvelope<GetCampaignData | GetCampaignSummaryData>>;
2406
+ getCampaignAnalytics(input: unknown): Promise<ResultEnvelope<GetCampaignAnalyticsJsonData | GetCampaignAnalyticsSummaryData>>;
2407
+ getBilling(input: unknown): Promise<ResultEnvelope<GetBillingData | GetBillingSummaryData>>;
2408
+ startMetaConnection(input: unknown): Promise<ResultEnvelope<StartMetaConnectionData>>;
2409
+ getPlatformStatus(input: unknown): Promise<ResultEnvelope<GetPlatformStatusData | GetPlatformStatusSummaryData>>;
2410
+ startYoutubeChannelLink(input: unknown): Promise<ResultEnvelope<StartYoutubeChannelLinkData>>;
2411
+ listAvailableCountries(input: unknown): Promise<ResultEnvelope<ListAvailableCountriesData | ListAvailableCountriesSummaryData>>;
2412
+ getOnboardingStatus(input: unknown): Promise<ResultEnvelope<GetOnboardingStatusData | GetOnboardingStatusSummaryData>>;
2413
+ getCampaignReadiness(input: unknown): Promise<ResultEnvelope<GetCampaignReadinessData | GetCampaignReadinessSummaryData>>;
2414
+ getCampaignDeploymentStatus(input: unknown): Promise<ResultEnvelope<GetCampaignDeploymentStatusData | GetCampaignDeploymentStatusSummaryData>>;
2415
+ pauseCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
2416
+ resumeCampaign(input: unknown): Promise<ResultEnvelope<PauseResumeCampaignData>>;
2417
+ updateBudget(input: unknown): Promise<ResultEnvelope<UpdateBudgetData>>;
2418
+ updateCampaign(input: unknown): Promise<ResultEnvelope<UpdateCampaignData>>;
2419
+ listMediaAssets(input: unknown): Promise<ResultEnvelope<ListMediaAssetsData | ListMediaAssetsSummaryData>>;
2420
+ launchCampaign(input: unknown): Promise<ResultEnvelope<LaunchCampaignData>>;
2421
+ createSmartLinkFromSpotify(input: unknown): Promise<ResultEnvelope<CreateSmartLinkFromSpotifyData>>;
2422
+ createSmartLinksFromSpotifyArtist(input: unknown): Promise<ResultEnvelope<CreateSmartLinksFromSpotifyArtistData>>;
2423
+ listSmartLinks(input: unknown): Promise<ResultEnvelope<ListSmartLinksData | ListSmartLinksSummaryData>>;
2424
+ getSmartLink(input: unknown): Promise<ResultEnvelope<GetSmartLinkData | GetSmartLinkSummaryData>>;
2425
+ getSmartLinkAnalytics(input: unknown): Promise<ResultEnvelope<GetSmartLinkAnalyticsData | GetSmartLinkAnalyticsSummaryData>>;
2426
+ getSmartLinkArtistSettings(input: unknown): Promise<ResultEnvelope<SmartLinkSettingsData>>;
2427
+ updateSmartLink(input: unknown): Promise<ResultEnvelope<UpdateSmartLinkData | UpdateSmartLinkArtistSettingsData | PublishSmartLinkData>>;
2428
+ updateSmartLinkArtistSettings(input: unknown): Promise<ResultEnvelope<UpdateSmartLinkArtistSettingsData>>;
2429
+ publishSmartLink(input: unknown): Promise<ResultEnvelope<PublishSmartLinkData>>;
2430
+ unpublishSmartLink(input: unknown): Promise<ResultEnvelope<PublishSmartLinkData>>;
2431
+ };
2432
+ declare function createDynamoiMcpServer(options: {
2433
+ adapter: Phase3Adapter;
2434
+ toolProfile?: DynamoiMcpToolProfile;
2435
+ websiteUrl?: string;
2436
+ }): McpServer;
2437
+
2395
2438
  type HandleOptions = {
2396
2439
  createServer: () => McpServer;
2397
2440
  request: Request;
@@ -2416,4 +2459,6 @@ type HandleOptions = {
2416
2459
  };
2417
2460
  declare function handleMcpHttpRequest(options: HandleOptions): Promise<Response>;
2418
2461
 
2419
- export { type AccessRole, type ArtistTier, type BillingStatus, type CampaignDisplayStatus, type CampaignType, type CountryCatalogSource, type CreateSmartLinkFromSpotifyData, type CreateSmartLinksFromSpotifyArtistData, DateRangeSchema, DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiListSmartLinksInputSchema, DynamoiOpenAiFetchInputSchema, DynamoiOpenAiSearchInputSchema, DynamoiPauseCampaignInputSchema, DynamoiPublishSmartLinkInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, type GetArtistAnalyticsJsonData, type GetArtistAnalyticsSummaryData, type GetArtistData, type GetArtistSummaryData, type GetBillingData, type GetBillingSummaryData, type GetCampaignAnalyticsJsonData, type GetCampaignAnalyticsSummaryData, type GetCampaignData, type GetCampaignDeploymentStatusData, type GetCampaignDeploymentStatusSummaryData, type GetCampaignReadinessData, type GetCampaignReadinessSummaryData, type GetCampaignSummaryData, type GetCurrentUserArtistSummary, type GetCurrentUserData, type GetCurrentUserState, type GetCurrentUserSummaryData, type GetOnboardingStatusData, type GetOnboardingStatusSummaryData, type GetPlatformStatusData, type GetPlatformStatusSummaryData, type GetSmartLinkAnalyticsData, type GetSmartLinkAnalyticsSummaryData, type GetSmartLinkData, type GetSmartLinkSummaryData, type LaunchCampaignData, type ListArtistsData, type ListArtistsSummaryData, type ListAvailableCountriesData, type ListAvailableCountriesSummaryData, type ListCampaignsJsonData, type ListCampaignsSummaryData, type ListMediaAssetsData, type ListMediaAssetsSummaryData, type ListSmartLinksData, type ListSmartLinksSummaryData, type MediaAssetSummary, type MoneyDisplay, type OpenAiFetchData, type OpenAiSearchData, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_3_TOOL_DEFINITIONS, PHASE_4_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, type PauseResumeCampaignData, type PauseResumePlatformResult, type Phase3Adapter, type PublishSmartLinkData, type ResultEnvelope, type SearchData, type SearchResultType, type SearchSummaryData, type SmartLinkSettingsData, type SmartLinkSummary, type StartMetaConnectionData, type StartYoutubeChannelLinkData, ToolFormatSchema, type UpdateBudgetData, type UpdateCampaignData, type UpdateSmartLinkArtistSettingsData, type UpdateSmartLinkData, createDynamoiMcpServer, handleMcpHttpRequest, verifyAccessToken };
2462
+ declare const DYNAMOI_MCP_VERSION: string;
2463
+
2464
+ export { type AccessRole, type ArtistTier, type BillingStatus, type CampaignDisplayStatus, type CampaignType, type CountryCatalogSource, type CreateSmartLinkFromSpotifyData, type CreateSmartLinksFromSpotifyArtistData, DYNAMOI_MCP_VERSION, DateRangeSchema, DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiListSmartLinksInputSchema, type DynamoiMcpToolProfile, DynamoiOpenAiFetchInputSchema, DynamoiOpenAiSearchInputSchema, DynamoiPauseCampaignInputSchema, DynamoiPublishSmartLinkInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, type GetArtistAnalyticsJsonData, type GetArtistAnalyticsSummaryData, type GetArtistData, type GetArtistSummaryData, type GetBillingData, type GetBillingSummaryData, type GetCampaignAnalyticsJsonData, type GetCampaignAnalyticsSummaryData, type GetCampaignData, type GetCampaignDeploymentStatusData, type GetCampaignDeploymentStatusSummaryData, type GetCampaignReadinessData, type GetCampaignReadinessSummaryData, type GetCampaignSummaryData, type GetCurrentUserArtistSummary, type GetCurrentUserData, type GetCurrentUserState, type GetCurrentUserSummaryData, type GetOnboardingStatusData, type GetOnboardingStatusSummaryData, type GetPlatformStatusData, type GetPlatformStatusSummaryData, type GetSmartLinkAnalyticsData, type GetSmartLinkAnalyticsSummaryData, type GetSmartLinkData, type GetSmartLinkSummaryData, type LaunchCampaignData, type ListArtistsData, type ListArtistsSummaryData, type ListAvailableCountriesData, type ListAvailableCountriesSummaryData, type ListCampaignsJsonData, type ListCampaignsSummaryData, type ListMediaAssetsData, type ListMediaAssetsSummaryData, type ListSmartLinksData, type ListSmartLinksSummaryData, type MediaAssetSummary, type MoneyDisplay, type OpenAiFetchData, type OpenAiSearchData, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_3_TOOL_DEFINITIONS, PHASE_4_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, type PauseResumeCampaignData, type PauseResumePlatformResult, type Phase3Adapter, type PublishSmartLinkData, type ResultEnvelope, type SearchData, type SearchResultType, type SearchSummaryData, type SmartLinkSettingsData, type SmartLinkSummary, type StartMetaConnectionData, type StartYoutubeChannelLinkData, ToolFormatSchema, type UpdateBudgetData, type UpdateCampaignData, type UpdateSmartLinkArtistSettingsData, type UpdateSmartLinkData, createDynamoiMcpServer, getDynamoiToolDefinitions, handleMcpHttpRequest, parseDynamoiGetSmartLinkInput, verifyAccessToken };