@dynamoi/mcp 1.0.0 → 1.0.2

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.
Files changed (72) hide show
  1. package/CAPABILITY_PARITY.md +20 -13
  2. package/CHANGELOG.md +112 -0
  3. package/README.md +121 -43
  4. package/dist/auth/protected-resource.d.ts +11 -1
  5. package/dist/auth/protected-resource.js +106 -11
  6. package/dist/consent.d.ts +83 -4
  7. package/dist/consent.js +61 -11
  8. package/dist/flow-types.d.ts +73 -3
  9. package/dist/index.d.ts +15 -6
  10. package/dist/index.js +2582 -616
  11. package/dist/readiness-types.d.ts +21 -1
  12. package/dist/server/about.d.ts +17 -14
  13. package/dist/server/account-schema.generated.d.ts +62 -0
  14. package/dist/server/channel-results-schema.d.ts +104 -0
  15. package/dist/server/create-server.d.ts +40 -30
  16. package/dist/server/distribution-tools.d.ts +30 -23
  17. package/dist/server/messaging.d.ts +13 -0
  18. package/dist/server/openai-tools.d.ts +30 -23
  19. package/dist/server/output-schemas.d.ts +367 -75
  20. package/dist/server/shop-tools.d.ts +36 -29
  21. package/dist/server/smart-link-tools.d.ts +511 -73
  22. package/dist/server/tools.d.ts +740 -220
  23. package/dist/server/workflow-tools.d.ts +97 -86
  24. package/dist/server/workspace/data.d.ts +67 -0
  25. package/dist/server/workspace/tool.d.ts +82 -0
  26. package/dist/server/youtube-channel-data-schema.d.ts +105 -0
  27. package/dist/server/youtube-strategy-guide.d.ts +103 -0
  28. package/dist/transport/http.d.ts +0 -1
  29. package/dist/types.d.ts +131 -12
  30. package/dist/version.d.ts +0 -1
  31. package/dist/youtube-metrics.d.ts +135 -0
  32. package/dist/youtube-metrics.js +114 -0
  33. package/package.json +49 -13
  34. package/server.json +2 -2
  35. package/dist/auth/protected-resource.d.ts.map +0 -1
  36. package/dist/auth/protected-resource.js.map +0 -9
  37. package/dist/chunk-3htwe57a.js +0 -85
  38. package/dist/chunk-3htwe57a.js.map +0 -10
  39. package/dist/chunk-n5xmtwjj.js +0 -9
  40. package/dist/chunk-n5xmtwjj.js.map +0 -10
  41. package/dist/consent.d.ts.map +0 -1
  42. package/dist/consent.js.map +0 -9
  43. package/dist/flow-types.d.ts.map +0 -1
  44. package/dist/index.d.ts.map +0 -1
  45. package/dist/index.js.map +0 -27
  46. package/dist/readiness-types.d.ts.map +0 -1
  47. package/dist/server/about.d.ts.map +0 -1
  48. package/dist/server/create-server.d.ts.map +0 -1
  49. package/dist/server/distribution-tools.d.ts.map +0 -1
  50. package/dist/server/instructions.d.ts +0 -3
  51. package/dist/server/instructions.d.ts.map +0 -1
  52. package/dist/server/onboarding-tool-definitions.d.ts +0 -106
  53. package/dist/server/onboarding-tool-definitions.d.ts.map +0 -1
  54. package/dist/server/openai-tools.d.ts.map +0 -1
  55. package/dist/server/output-schemas.d.ts.map +0 -1
  56. package/dist/server/playbook-resources.d.ts +0 -3
  57. package/dist/server/playbook-resources.d.ts.map +0 -1
  58. package/dist/server/prompts.d.ts +0 -3
  59. package/dist/server/prompts.d.ts.map +0 -1
  60. package/dist/server/resources.d.ts +0 -4
  61. package/dist/server/resources.d.ts.map +0 -1
  62. package/dist/server/shared-schemas.d.ts +0 -14
  63. package/dist/server/shared-schemas.d.ts.map +0 -1
  64. package/dist/server/shop-tools.d.ts.map +0 -1
  65. package/dist/server/smart-link-theme-preview.d.ts +0 -73
  66. package/dist/server/smart-link-theme-preview.d.ts.map +0 -1
  67. package/dist/server/smart-link-tools.d.ts.map +0 -1
  68. package/dist/server/tools.d.ts.map +0 -1
  69. package/dist/server/workflow-tools.d.ts.map +0 -1
  70. package/dist/transport/http.d.ts.map +0 -1
  71. package/dist/types.d.ts.map +0 -1
  72. package/dist/version.d.ts.map +0 -1
@@ -1,13 +1,108 @@
1
- import {
2
- DYNAMOI_BETTER_AUTH_MCP_SCOPES2,
3
- DYNAMOI_MCP_TOOL_SCOPES2,
4
- buildWwwAuthenticateHeader2
5
- } from "../chunk-3htwe57a.js";
1
+ // src/auth/protected-resource.ts
2
+ var DYNAMOI_BETTER_AUTH_MCP_SCOPES = [
3
+ "dynamoi:read",
4
+ "dynamoi:mcp.full",
5
+ "dynamoi:billing.read",
6
+ "dynamoi:campaign.launch",
7
+ "dynamoi:campaign.write",
8
+ "dynamoi:distribution.apply",
9
+ "dynamoi:distribution.read",
10
+ "dynamoi:platform.read",
11
+ "dynamoi:platform.write",
12
+ "dynamoi:smart_links.write"
13
+ ];
14
+ var DYNAMOI_MCP_TOOL_SCOPES = {
15
+ dynamoi_about: [],
16
+ dynamoi_apply_for_distribution: [
17
+ "dynamoi:read",
18
+ "dynamoi:distribution.apply"
19
+ ],
20
+ dynamoi_create_smart_link_from_spotify: [
21
+ "dynamoi:read",
22
+ "dynamoi:smart_links.write"
23
+ ],
24
+ dynamoi_create_smart_links_from_spotify_artist: [
25
+ "dynamoi:read",
26
+ "dynamoi:smart_links.write"
27
+ ],
28
+ dynamoi_get_account_overview: ["dynamoi:read"],
29
+ dynamoi_get_artist_analytics: ["dynamoi:read"],
30
+ dynamoi_get_audience_analytics: ["dynamoi:read"],
31
+ dynamoi_get_billing: ["dynamoi:read", "dynamoi:billing.read"],
32
+ dynamoi_get_campaign: ["dynamoi:read"],
33
+ dynamoi_get_campaign_readiness: ["dynamoi:read"],
34
+ dynamoi_get_distribution_application: [
35
+ "dynamoi:read",
36
+ "dynamoi:distribution.read"
37
+ ],
38
+ dynamoi_get_growth_audit: ["dynamoi:read"],
39
+ dynamoi_get_platform_status: ["dynamoi:read", "dynamoi:platform.read"],
40
+ dynamoi_get_playlist_analytics: ["dynamoi:read"],
41
+ dynamoi_get_resume_funding: ["dynamoi:read", "dynamoi:billing.read"],
42
+ dynamoi_get_smart_link: ["dynamoi:read"],
43
+ dynamoi_get_youtube_channel_data: ["dynamoi:read"],
44
+ dynamoi_launch_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
45
+ dynamoi_list_artists: ["dynamoi:read"],
46
+ dynamoi_list_available_countries: ["dynamoi:read"],
47
+ dynamoi_list_campaigns: ["dynamoi:read"],
48
+ dynamoi_list_media_assets: ["dynamoi:read"],
49
+ dynamoi_list_smart_links: ["dynamoi:read"],
50
+ dynamoi_manage_youtube_draft: ["dynamoi:read", "dynamoi:campaign.write"],
51
+ dynamoi_open_workspace: ["dynamoi:read"],
52
+ dynamoi_preview_smart_link_themes: ["dynamoi:read"],
53
+ dynamoi_search: ["dynamoi:read"],
54
+ dynamoi_shop_create_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
55
+ dynamoi_shop_get_quote: ["dynamoi:read", "dynamoi:mcp.full"],
56
+ dynamoi_start_meta_connection: ["dynamoi:read", "dynamoi:platform.write"],
57
+ dynamoi_start_youtube_channel_link: [
58
+ "dynamoi:read",
59
+ "dynamoi:platform.write"
60
+ ],
61
+ dynamoi_update_campaign: ["dynamoi:read", "dynamoi:campaign.write"],
62
+ dynamoi_update_smart_link: ["dynamoi:read", "dynamoi:smart_links.write"],
63
+ dynamoi_update_smart_link_artist_hub_settings: [
64
+ "dynamoi:read",
65
+ "dynamoi:smart_links.write"
66
+ ],
67
+ dynamoi_update_smart_link_artist_settings: [
68
+ "dynamoi:read",
69
+ "dynamoi:smart_links.write"
70
+ ],
71
+ dynamoi_update_smart_link_description: [
72
+ "dynamoi:read",
73
+ "dynamoi:smart_links.write"
74
+ ],
75
+ dynamoi_update_smart_link_release_settings: [
76
+ "dynamoi:read",
77
+ "dynamoi:smart_links.write"
78
+ ],
79
+ fetch: ["dynamoi:read"],
80
+ search: ["dynamoi:read"]
81
+ };
82
+ function buildWwwAuthenticateHeader(options) {
83
+ const scope = options.scope ?? "dynamoi:read";
84
+ const params = [
85
+ `resource_metadata="${escapeHeaderValue(options.resourceMetadataUrl)}"`,
86
+ `scope="${escapeHeaderValue(scope)}"`
87
+ ];
88
+ if (options.error) {
89
+ const errorDescription = options.errorDescription ?? (options.error === "insufficient_scope" ? "Additional Dynamoi permissions are required." : "Sign in to Dynamoi to continue.");
90
+ params.push(`error="${escapeHeaderValue(options.error)}"`, `error_description="${escapeHeaderValue(errorDescription)}"`);
91
+ }
92
+ return `Bearer ${params.join(", ")}`;
93
+ }
94
+ function escapeHeaderValue(value) {
95
+ const containsControlCharacter = Array.from(value).some((character) => {
96
+ const codePoint = character.codePointAt(0) ?? 0;
97
+ return codePoint <= 31 || codePoint === 127;
98
+ });
99
+ if (containsControlCharacter) {
100
+ throw new Error("WWW-Authenticate values cannot contain control characters.");
101
+ }
102
+ return value.replaceAll("\\", "\\\\").replaceAll('"', "\\\"");
103
+ }
6
104
  export {
7
- DYNAMOI_BETTER_AUTH_MCP_SCOPES2 as DYNAMOI_BETTER_AUTH_MCP_SCOPES,
8
- DYNAMOI_MCP_TOOL_SCOPES2 as DYNAMOI_MCP_TOOL_SCOPES,
9
- buildWwwAuthenticateHeader2 as buildWwwAuthenticateHeader
105
+ DYNAMOI_BETTER_AUTH_MCP_SCOPES,
106
+ DYNAMOI_MCP_TOOL_SCOPES,
107
+ buildWwwAuthenticateHeader
10
108
  };
11
-
12
- //# debugId=3CEA7E243AFD6EFD64756E2164756E21
13
- //# sourceMappingURL=protected-resource.js.map
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,83 @@
1
- export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-prospective-daily-v2";
2
- export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the first approximately 24 hours now and each following 24-hour window up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
3
- export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH = "06bbd517d58f345a767be9aaeb59f4959d11c6db16e7d07cb889f3ce7950f805";
4
- //# sourceMappingURL=consent.d.ts.map
1
+ /**
2
+ * Current prospective daily funding consent. A launch or resume funds one
3
+ * first window (the rest of today plus the next full day) in one charge;
4
+ * routine renewals then fund each following day. Like the total-budget
5
+ * consent, the checkbox carries the term that matters at the moment of
6
+ * consent (a daily charge to the default payment method until the campaign is
7
+ * paused or ended); the rest of the charging terms are the Terms of Service
8
+ * section linked beside it. v7 makes credit-first allocation explicit; its
9
+ * funding and collection terms are identical.
10
+ */
11
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-prospective-daily-v7";
12
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign's budget, after my available credits, until I pause or end it.";
13
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH = "f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356";
14
+ /**
15
+ * The previous daily consent, with the same terms as v6 spelled out in the
16
+ * copy. Campaigns that accepted it keep renewing under it; new launches and
17
+ * resumes require v7.
18
+ */
19
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION = "managed-ads-prospective-daily-v5";
20
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
21
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH = "14a318c6ef3defc44a13aa4813f0af9d3432db1c2910bada98581e762b35f9e2";
22
+ /**
23
+ * The daily consent before v5, with the same terms as v5 plus a funding time
24
+ * zone in the copy. Campaigns that accepted it keep renewing under it; new
25
+ * launches and resumes require v7.
26
+ */
27
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION = "managed-ads-prospective-daily-v4";
28
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow (Pacific time) now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
29
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH = "e40485780d7b025c7a10bde969a25eecdcb0b4ebf1783251440e870fd8e10a60";
30
+ /**
31
+ * The Pacific-day consent, with the same terms as v4. Campaigns that
32
+ * accepted it keep renewing under it; new launches and resumes require v7.
33
+ */
34
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION = "managed-ads-prospective-daily-v3";
35
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the rest of today and all of tomorrow (Pacific time) now, then each following day up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
36
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786746f962c91f5cad78d8bba531c478109041b2808a4a81efbe380abf1";
37
+ /**
38
+ * The earlier 24-hour-window daily consent. Campaigns that accepted it keep
39
+ * renewing under its exact terms; new launches and resumes require v7.
40
+ */
41
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
42
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the first approximately 24 hours now and each following 24-hour window up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
43
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "06bbd517d58f345a767be9aaeb59f4959d11c6db16e7d07cb889f3ce7950f805";
44
+ /**
45
+ * Total-budget campaign funding consent. A total budget is funded one Pacific
46
+ * day at a time like a daily budget: a launch or resume funds the rest of
47
+ * today and all of tomorrow, then each following day, never more than the
48
+ * total budget in all. Client copy only. The checkbox carries the two terms
49
+ * that matter at the moment of consent (a daily charge to the default payment
50
+ * method, capped by the total budget); the rest of the charging terms are the
51
+ * Terms of Service section linked beside it.
52
+ */
53
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-total-daily-v3";
54
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign, after my available credits, up to my total budget.";
55
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH = "8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd";
56
+ /** Whether a client-submitted total-budget consent is exactly the current pair. */
57
+ export declare function isCurrentTotalBudgetFundingConsent(input: {
58
+ copyHash: string;
59
+ copyVersion: string;
60
+ }): boolean;
61
+ /**
62
+ * Whether a client-submitted consent is exactly the current (version, hash)
63
+ * pair. New launches and resumes accept only this pair; earlier versions stay
64
+ * renewable for campaigns that already accepted them, but a client must not
65
+ * be able to name one for a new authorization after showing the current copy.
66
+ */
67
+ export declare function isCurrentProspectiveBudgetFundingConsent(input: {
68
+ copyHash: string;
69
+ copyVersion: string;
70
+ }): boolean;
71
+ /** Previous exact consent pair; existing receipts remain renewable. */
72
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
73
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY = "Charge my default payment method daily for this campaign's budget, until I pause or end it.";
74
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
75
+ /** Previous exact consent pair; existing receipts remain renewable. */
76
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
77
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
78
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
79
+ /** Exact (version, hash) pairs whose accepted campaigns may renew daily. */
80
+ export declare function isRenewableProspectiveBudgetFundingConsent(input: {
81
+ copyHash: string;
82
+ copyVersion: string;
83
+ }): boolean;
package/dist/consent.js CHANGED
@@ -1,13 +1,63 @@
1
- import {
2
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION2,
3
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY2,
4
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH2
5
- } from "./chunk-n5xmtwjj.js";
1
+ // src/consent.ts
2
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-prospective-daily-v7";
3
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign's budget, after my available credits, until I pause or end it.";
4
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH = "f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356";
5
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION = "managed-ads-prospective-daily-v5";
6
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
7
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH = "14a318c6ef3defc44a13aa4813f0af9d3432db1c2910bada98581e762b35f9e2";
8
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION = "managed-ads-prospective-daily-v4";
9
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow (Pacific time) now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
10
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH = "e40485780d7b025c7a10bde969a25eecdcb0b4ebf1783251440e870fd8e10a60";
11
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION = "managed-ads-prospective-daily-v3";
12
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the rest of today and all of tomorrow (Pacific time) now, then each following day up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
13
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786746f962c91f5cad78d8bba531c478109041b2808a4a81efbe380abf1";
14
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
15
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the first approximately 24 hours now and each following 24-hour window up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
16
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "06bbd517d58f345a767be9aaeb59f4959d11c6db16e7d07cb889f3ce7950f805";
17
+ var TOTAL_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-total-daily-v3";
18
+ var TOTAL_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign, after my available credits, up to my total budget.";
19
+ var TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH = "8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd";
20
+ function isCurrentTotalBudgetFundingConsent(input) {
21
+ return input.copyVersion === TOTAL_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH;
22
+ }
23
+ function isCurrentProspectiveBudgetFundingConsent(input) {
24
+ return input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH;
25
+ }
26
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
27
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY = "Charge my default payment method daily for this campaign's budget, until I pause or end it.";
28
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
29
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
30
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
31
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
32
+ function isRenewableProspectiveBudgetFundingConsent(input) {
33
+ return isCurrentProspectiveBudgetFundingConsent(input) || isCurrentTotalBudgetFundingConsent(input) || input.copyVersion === TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION && input.copyHash === TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH;
34
+ }
6
35
  export {
7
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY2 as PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY,
8
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH2 as PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
9
- PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION2 as PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION
36
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY,
37
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
38
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY,
39
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
40
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION,
41
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY,
42
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH,
43
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION,
44
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY,
45
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH,
46
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION,
47
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY,
48
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH,
49
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION,
50
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY,
51
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH,
52
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION,
53
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION,
54
+ TOTAL_BUDGET_FUNDING_CONSENT_COPY,
55
+ TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH,
56
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY,
57
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
58
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION,
59
+ TOTAL_BUDGET_FUNDING_CONSENT_VERSION,
60
+ isCurrentProspectiveBudgetFundingConsent,
61
+ isCurrentTotalBudgetFundingConsent,
62
+ isRenewableProspectiveBudgetFundingConsent
10
63
  };
11
-
12
- //# debugId=F04EB66A6C6942CA64756E2164756E21
13
- //# sourceMappingURL=consent.js.map
@@ -1,5 +1,27 @@
1
1
  import type { ArtistTier, BillingStatus, CampaignDisplayStatus, CampaignType, MoneyDisplay } from "./types";
2
2
  export type GetBillingData = {
3
+ /** Canonical paid plan evidence; absent on older servers. */
4
+ plan?: {
5
+ state: "NONE";
6
+ } | {
7
+ state: "ACTIVE";
8
+ provider: "APP_STORE" | "GOOGLE_PLAY" | "STRIPE";
9
+ tier: "starter" | "plus";
10
+ paidThroughAt: string | null;
11
+ renewsAt: string | null;
12
+ cancellation: {
13
+ state: "NONE";
14
+ } | {
15
+ state: "SCHEDULED";
16
+ cancelAtUTC: string;
17
+ cancelAtPeriodEnd: boolean | null;
18
+ cancellationReason: string | null;
19
+ } | {
20
+ state: "CANCELED";
21
+ canceledAtUTC: string | null;
22
+ cancellationReason: string | null;
23
+ };
24
+ };
3
25
  tier: ArtistTier;
4
26
  billingStatus: BillingStatus;
5
27
  creditBalance: MoneyDisplay | null;
@@ -8,11 +30,26 @@ export type GetBillingData = {
8
30
  totalSpend: MoneyDisplay;
9
31
  campaignCount: number;
10
32
  };
33
+ /**
34
+ * Account commercial currency (ISO 4217, uppercase). Present only for
35
+ * non-USD accounts; absent means USD.
36
+ */
37
+ currency?: string;
11
38
  isPromoArtist: boolean;
39
+ /**
40
+ * Amounts that have no source in the account currency yet. They are
41
+ * reported as null rather than relabeled from another currency.
42
+ */
43
+ moneyUnavailable?: {
44
+ currency: string;
45
+ fields: Array<"creditBalance" | "promoLimits.remainingBudget">;
46
+ reason: "no_source_in_account_currency";
47
+ };
12
48
  promoLimits?: {
13
49
  campaignsUsed: number;
14
50
  campaignsAllowed: number;
15
- remainingBudget: MoneyDisplay;
51
+ /** Null only when listed in `moneyUnavailable.fields`. */
52
+ remainingBudget: MoneyDisplay | null;
16
53
  };
17
54
  warnings?: string[];
18
55
  actionRequired?: string[];
@@ -122,7 +159,36 @@ export type UpdateBudgetData = {
122
159
  warnings?: string[] | undefined;
123
160
  actionRequired?: string[] | undefined;
124
161
  };
125
- export type UpdateCampaignData = PauseResumeCampaignData | UpdateBudgetData;
162
+ export type UpdateCampaignData = PauseResumeCampaignData | UpdateBudgetData | {
163
+ id: string;
164
+ contentTitle: string;
165
+ didChange: boolean;
166
+ endDate: string | null;
167
+ previousEndDate: string | null;
168
+ } | {
169
+ campaignId: string;
170
+ mode: "GLOBAL" | "COUNTRIES";
171
+ locationTargets: Array<{
172
+ code: string;
173
+ name: string;
174
+ }>;
175
+ } | {
176
+ id: string;
177
+ contentTitle: string;
178
+ campaignId: string;
179
+ strategy: string;
180
+ inventoryConfig: string;
181
+ } | {
182
+ id: string;
183
+ contentTitle: string;
184
+ newStatus: "ARCHIVED";
185
+ warnings: string[];
186
+ } | {
187
+ campaignId: string;
188
+ optimizeForOrganicViews: boolean;
189
+ optimizeForSubscribers: boolean;
190
+ monetizationQualificationMode: "STANDARD" | "MONETIZATION_QUALIFICATION";
191
+ };
126
192
  export type MediaAssetSummary = {
127
193
  id: string;
128
194
  url?: string;
@@ -144,6 +210,11 @@ export type ListMediaAssetsSummaryData = {
144
210
  nextCursor?: string;
145
211
  };
146
212
  export type LaunchCampaignData = {
213
+ youtubeEntries?: Array<{
214
+ videoId: string;
215
+ playlistId: string;
216
+ selectionIndex: number;
217
+ }>;
147
218
  summary: string;
148
219
  id: string;
149
220
  contentTitle: string;
@@ -157,4 +228,3 @@ export type LaunchCampaignData = {
157
228
  nextSteps: string[];
158
229
  warnings?: string[];
159
230
  };
160
- //# sourceMappingURL=flow-types.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,15 +1,24 @@
1
1
  export { buildWwwAuthenticateHeader, DYNAMOI_BETTER_AUTH_MCP_SCOPES, DYNAMOI_MCP_TOOL_SCOPES, } from "./auth/protected-resource";
2
- export { PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY, PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH, PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION, } from "./consent";
2
+ export { PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY, PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH, PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION, TOTAL_BUDGET_FUNDING_CONSENT_COPY, TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH, TOTAL_BUDGET_FUNDING_CONSENT_VERSION, } from "./consent";
3
3
  export { DYNAMOI_ABOUT_DIRECTORY_MARKDOWN, DYNAMOI_ABOUT_MARKDOWN, DYNAMOI_ABOUT_RESOURCE, DYNAMOI_ABOUT_TOOL_DEFINITION, getDynamoiAbout, } from "./server/about";
4
+ export type { ChannelResults } from "./server/channel-results-schema";
5
+ export { ChannelResultsSchema } from "./server/channel-results-schema";
4
6
  export type { Phase3Adapter } from "./server/create-server";
5
- export { createDynamoiMcpServer, type DynamoiMcpToolProfile, getDynamoiToolDefinitions, } from "./server/create-server";
7
+ export { createDynamoiMcpServer, type DynamoiMcpToolProfile, getDynamoiToolCompatibilityDefinitions, getDynamoiToolDefinitions, } from "./server/create-server";
6
8
  export { DISTRIBUTION_TOOL_DEFINITIONS, DynamoiApplyForDistributionInputSchema, DynamoiGetDistributionApplicationInputSchema, } from "./server/distribution-tools";
9
+ export { DYNAMOI_MCP_REGISTRY_DESCRIPTION_MAX_LENGTH, DYNAMOI_MCP_SERVER_NAME, DYNAMOI_MCP_SHORT_DESCRIPTION, DYNAMOI_MCP_STANDARD_DESCRIPTION, DYNAMOI_MCP_TAGLINE, } from "./server/messaging";
7
10
  export { DynamoiOpenAiFetchInputSchema, DynamoiOpenAiSearchInputSchema, type OpenAiFetchData, type OpenAiSearchData, } from "./server/openai-tools";
11
+ export type { GetResumeFundingData } from "./server/output-schemas";
8
12
  export { DYNAMOI_SHOP_FULL_SCOPE, DYNAMOI_SHOP_MAX_TARGET_COUNTRY_CODES, type DynamoiShopCheckoutData, DynamoiShopCheckoutDataSchema, type DynamoiShopCreateCheckoutInput, DynamoiShopCreateCheckoutInputSchema, type DynamoiShopGetQuoteInput, DynamoiShopGetQuoteInputSchema, type DynamoiShopQuoteData, DynamoiShopQuoteDataSchema, DynamoiShopSelectionInputSchema, DynamoiShopTargetingInputSchema, SHOP_TOOL_DEFINITIONS, } from "./server/shop-tools";
9
- export { DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiListSmartLinksInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, PHASE_4_TOOL_DEFINITIONS, parseDynamoiGetSmartLinkInput, } from "./server/smart-link-tools";
10
- export { DateRangeSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiPauseCampaignInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, ToolFormatSchema, } from "./server/tools";
13
+ export { DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiListSmartLinksInputSchema, DynamoiUpdateSmartLinkArtistHubSettingsInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkDescriptionInputSchema, DynamoiUpdateSmartLinkInputSchema, DynamoiUpdateSmartLinkReleaseSettingsInputSchema, PHASE_4_TOOL_DEFINITIONS, parseDynamoiCreateSmartLinkFromSpotifyInput, parseDynamoiCreateSmartLinksFromSpotifyArtistInput, parseDynamoiGetSmartLinkAnalyticsInput, parseDynamoiGetSmartLinkArtistSettingsInput, parseDynamoiGetSmartLinkInput, parseDynamoiListSmartLinksInput, parseDynamoiUpdateSmartLinkArtistHubSettingsInput, parseDynamoiUpdateSmartLinkArtistSettingsInput, parseDynamoiUpdateSmartLinkInput, parseDynamoiUpdateSmartLinkReleaseSettingsInput, SMART_LINK_UPDATE_OPERATION_TOOL_DEFINITIONS, } from "./server/smart-link-tools";
14
+ export { DateRangeSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetAudienceAnalyticsInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetGrowthAuditInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetPlaylistAnalyticsInputSchema, DynamoiGetResumeFundingInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiManageYoutubeDraftInputSchema, DynamoiPauseCampaignInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, ToolFormatSchema, } from "./server/tools";
11
15
  export { PHASE_3_TOOL_DEFINITIONS } from "./server/workflow-tools";
16
+ export type { WorkspaceData } from "./server/workspace/data";
17
+ export { openWorkspace, WORKSPACE_TOOL_DEFINITION, type WorkspaceReaders, } from "./server/workspace/tool";
18
+ export { type DynamoiGetYouTubeChannelDataInput, DynamoiGetYouTubeChannelDataInputSchema, type GetYouTubeChannelDataData, YOUTUBE_CHANNEL_DATA_DEFAULT_LIMIT, YOUTUBE_CHANNEL_DATASETS, YouTubeChannelDataSchema, type YouTubeChannelDataset, YouTubeChannelDatasetSchema, } from "./server/youtube-channel-data-schema";
19
+ export type { YouTubeStrategyGuide } from "./server/youtube-strategy-guide";
20
+ export { buildYouTubeStrategyGuide, YOUTUBE_CAMPAIGN_STRATEGIES_RESOURCE_URI, } from "./server/youtube-strategy-guide";
12
21
  export { handleMcpHttpRequest } from "./transport/http";
13
- export type { AccessRole, ApplyForDistributionData, ArtistTier, BillingStatus, CampaignDisplayStatus, CampaignType, CountryCatalogSource, CreateSmartLinkFromSpotifyData, CreateSmartLinksFromSpotifyArtistData, DistributionRequirementKey, GetArtistAnalyticsJsonData, GetArtistAnalyticsSummaryData, GetArtistData, GetArtistSummaryData, GetBillingData, GetBillingSummaryData, GetCampaignAnalyticsJsonData, GetCampaignAnalyticsSummaryData, GetCampaignData, GetCampaignDeploymentStatusData, GetCampaignDeploymentStatusSummaryData, GetCampaignReadinessData, GetCampaignReadinessSummaryData, GetCampaignSummaryData, GetCurrentUserArtistSummary, GetCurrentUserData, GetCurrentUserState, GetCurrentUserSummaryData, GetDistributionApplicationData, GetOnboardingStatusData, GetOnboardingStatusSummaryData, GetPlatformStatusData, GetPlatformStatusSummaryData, GetSmartLinkAnalyticsData, GetSmartLinkAnalyticsSummaryData, GetSmartLinkData, GetSmartLinkSummaryData, LaunchCampaignData, ListArtistsData, ListArtistsSummaryData, ListAvailableCountriesData, ListAvailableCountriesSummaryData, ListCampaignsJsonData, ListCampaignsSummaryData, ListMediaAssetsData, ListMediaAssetsSummaryData, ListSmartLinksData, ListSmartLinksSummaryData, MediaAssetSummary, MoneyDisplay, PauseResumeCampaignData, PauseResumePlatformResult, ResultEnvelope, ResultErrorCode, ResultNextAction, SearchData, SearchResultType, SearchSummaryData, SmartLinkSettingsData, SmartLinkSummary, StartMetaConnectionData, StartYoutubeChannelLinkData, UpdateBudgetData, UpdateCampaignData, UpdateSmartLinkArtistSettingsData, UpdateSmartLinkData, } from "./types";
22
+ export type { AccessRole, ApplyForDistributionData, ArtistTier, BillingStatus, CampaignDisplayStatus, CampaignProposalBlockingCode, CampaignType, CountryCatalogSource, CreateSmartLinkFromSpotifyData, CreateSmartLinksFromSpotifyArtistData, DistributionRequirementKey, GetArtistAnalyticsJsonData, GetArtistAnalyticsSummaryData, GetArtistData, GetArtistSummaryData, GetBillingData, GetBillingSummaryData, GetCampaignAnalyticsJsonData, GetCampaignAnalyticsSummaryData, GetCampaignData, GetCampaignDeploymentStatusData, GetCampaignDeploymentStatusSummaryData, GetCampaignReadinessBudgetConstraints, GetCampaignReadinessData, GetCampaignReadinessSummaryData, GetCampaignSummaryData, GetCurrentUserArtistSummary, GetCurrentUserData, GetCurrentUserState, GetCurrentUserSummaryData, GetDistributionApplicationData, GetOnboardingStatusData, GetOnboardingStatusSummaryData, GetPlatformStatusData, GetPlatformStatusSummaryData, GetSmartLinkAnalyticsData, GetSmartLinkAnalyticsSummaryData, GetSmartLinkData, GetSmartLinkSummaryData, LaunchCampaignData, ListArtistsData, ListArtistsSummaryData, ListAvailableCountriesData, ListAvailableCountriesSummaryData, ListCampaignsJsonData, ListCampaignsSummaryData, ListMediaAssetsData, ListMediaAssetsSummaryData, ListSmartLinksData, ListSmartLinksSummaryData, MediaAssetSummary, MoneyDisplay, PauseResumeCampaignData, PauseResumePlatformResult, ResultEnvelope, ResultErrorCode, ResultNextAction, SearchData, SearchResultType, SearchSummaryData, SmartLinkArtistHubReadback, SmartLinkReleaseSettingsReadback, SmartLinkSettingsData, SmartLinkSummary, StartMetaConnectionData, StartYoutubeChannelLinkData, UpdateBudgetData, UpdateCampaignData, UpdateSmartLinkArtistSettingsData, UpdateSmartLinkData, } from "./types";
14
23
  export { DYNAMOI_MCP_VERSION } from "./version";
15
- //# sourceMappingURL=index.d.ts.map
24
+ export { getYouTubeMetric, YOUTUBE_AGENT_KNOWLEDGE, YOUTUBE_CHANNEL_ANALYTICS_LAG_DAYS, YOUTUBE_DIRECT_ORGANIC_VIEWS_NOTE, YOUTUBE_FOLLOW_ON_VIEWS_CONVERSION_ACTION_ID, YOUTUBE_METRIC_DICTIONARY, YOUTUBE_METRIC_IDS, YOUTUBE_PROVISIONAL_CONVERSION_DAYS, YOUTUBE_SUBSCRIBERS_CONVERSION_ACTION_ID, type YouTubeFreshnessClock, type YouTubeMetricClass, type YouTubeMetricDefinition, type YouTubeMetricId, } from "./youtube-metrics";