@dynamoi/mcp 1.0.1 → 1.0.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.
Files changed (74) hide show
  1. package/CAPABILITY_PARITY.md +24 -16
  2. package/CHANGELOG.md +124 -0
  3. package/README.md +76 -24
  4. package/dist/auth/protected-resource.d.ts +12 -1
  5. package/dist/auth/protected-resource.js +107 -11
  6. package/dist/consent.d.ts +101 -4
  7. package/dist/consent.js +83 -11
  8. package/dist/flow-types.d.ts +72 -3
  9. package/dist/index.d.ts +15 -6
  10. package/dist/index.js +2741 -639
  11. package/dist/readiness-types.d.ts +21 -1
  12. package/dist/server/about.d.ts +18 -15
  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 +41 -30
  16. package/dist/server/distribution-tools.d.ts +31 -24
  17. package/dist/server/messaging.d.ts +2 -3
  18. package/dist/server/openai-tools.d.ts +30 -23
  19. package/dist/server/output-schemas.d.ts +416 -73
  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/support-tools.d.ts +88 -0
  23. package/dist/server/tools.d.ts +753 -223
  24. package/dist/server/workflow-tools.d.ts +99 -86
  25. package/dist/server/workspace/data.d.ts +67 -0
  26. package/dist/server/workspace/tool.d.ts +82 -0
  27. package/dist/server/youtube-channel-data-schema.d.ts +169 -0
  28. package/dist/server/youtube-strategy-guide.d.ts +103 -0
  29. package/dist/transport/http.d.ts +0 -1
  30. package/dist/types.d.ts +135 -12
  31. package/dist/version.d.ts +0 -1
  32. package/dist/youtube-metrics.d.ts +135 -0
  33. package/dist/youtube-metrics.js +114 -0
  34. package/package.json +50 -13
  35. package/server.json +2 -2
  36. package/dist/auth/protected-resource.d.ts.map +0 -1
  37. package/dist/auth/protected-resource.js.map +0 -9
  38. package/dist/chunk-3htwe57a.js +0 -85
  39. package/dist/chunk-3htwe57a.js.map +0 -10
  40. package/dist/chunk-n5xmtwjj.js +0 -9
  41. package/dist/chunk-n5xmtwjj.js.map +0 -10
  42. package/dist/consent.d.ts.map +0 -1
  43. package/dist/consent.js.map +0 -9
  44. package/dist/flow-types.d.ts.map +0 -1
  45. package/dist/index.d.ts.map +0 -1
  46. package/dist/index.js.map +0 -28
  47. package/dist/readiness-types.d.ts.map +0 -1
  48. package/dist/server/about.d.ts.map +0 -1
  49. package/dist/server/create-server.d.ts.map +0 -1
  50. package/dist/server/distribution-tools.d.ts.map +0 -1
  51. package/dist/server/instructions.d.ts +0 -3
  52. package/dist/server/instructions.d.ts.map +0 -1
  53. package/dist/server/messaging.d.ts.map +0 -1
  54. package/dist/server/onboarding-tool-definitions.d.ts +0 -106
  55. package/dist/server/onboarding-tool-definitions.d.ts.map +0 -1
  56. package/dist/server/openai-tools.d.ts.map +0 -1
  57. package/dist/server/output-schemas.d.ts.map +0 -1
  58. package/dist/server/playbook-resources.d.ts +0 -3
  59. package/dist/server/playbook-resources.d.ts.map +0 -1
  60. package/dist/server/prompts.d.ts +0 -3
  61. package/dist/server/prompts.d.ts.map +0 -1
  62. package/dist/server/resources.d.ts +0 -4
  63. package/dist/server/resources.d.ts.map +0 -1
  64. package/dist/server/shared-schemas.d.ts +0 -14
  65. package/dist/server/shared-schemas.d.ts.map +0 -1
  66. package/dist/server/shop-tools.d.ts.map +0 -1
  67. package/dist/server/smart-link-theme-preview.d.ts +0 -73
  68. package/dist/server/smart-link-theme-preview.d.ts.map +0 -1
  69. package/dist/server/smart-link-tools.d.ts.map +0 -1
  70. package/dist/server/tools.d.ts.map +0 -1
  71. package/dist/server/workflow-tools.d.ts.map +0 -1
  72. package/dist/transport/http.d.ts.map +0 -1
  73. package/dist/types.d.ts.map +0 -1
  74. package/dist/version.d.ts.map +0 -1
package/dist/consent.d.ts CHANGED
@@ -1,4 +1,101 @@
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
+ export declare const FUNDING_CONSENT_BUDGET_TYPE_MISMATCH_MESSAGE = "The funding consent does not match this budget type. Send acceptedConsentVersion and acceptedConsentCopyHash (with authorizeAutomaticDailyFunding) only for a DAILY budget, and acceptedTotalConsentVersion and acceptedTotalConsentCopyHash only for a TOTAL budget.";
72
+ /** Whether a submitted pair is the current one for the budget type (never interchangeable). */
73
+ export declare function isCurrentFundingConsent(input: {
74
+ copyHash?: string | undefined;
75
+ copyVersion?: string | undefined;
76
+ }, budgetType: "DAILY" | "TOTAL"): boolean;
77
+ /** The consent fields the handlers read: the TOTAL pair when sent, else the DAILY fields. */
78
+ export declare function fundingConsentFields(input: {
79
+ acceptedConsentCopyHash?: string | undefined;
80
+ acceptedConsentVersion?: string | undefined;
81
+ acceptedTotalConsentCopyHash?: string | undefined;
82
+ acceptedTotalConsentVersion?: string | undefined;
83
+ authorizeAutomaticDailyFunding?: true | undefined;
84
+ }): {
85
+ acceptedConsentCopyHash: string | undefined;
86
+ acceptedConsentVersion: string | undefined;
87
+ authorizeAutomaticDailyFunding: true | undefined;
88
+ };
89
+ /** Previous exact consent pair; existing receipts remain renewable. */
90
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
91
+ 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.";
92
+ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
93
+ /** Previous exact consent pair; existing receipts remain renewable. */
94
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
95
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
96
+ export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
97
+ /** Exact (version, hash) pairs whose accepted campaigns may renew daily. */
98
+ export declare function isRenewableProspectiveBudgetFundingConsent(input: {
99
+ copyHash: string;
100
+ copyVersion: string;
101
+ }): boolean;
package/dist/consent.js CHANGED
@@ -1,13 +1,85 @@
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 FUNDING_CONSENT_BUDGET_TYPE_MISMATCH_MESSAGE = "The funding consent does not match this budget type. Send acceptedConsentVersion and acceptedConsentCopyHash (with authorizeAutomaticDailyFunding) only for a DAILY budget, and acceptedTotalConsentVersion and acceptedTotalConsentCopyHash only for a TOTAL budget.";
27
+ function isCurrentFundingConsent(input, budgetType) {
28
+ const pair = {
29
+ copyHash: input.copyHash ?? "",
30
+ copyVersion: input.copyVersion ?? ""
31
+ };
32
+ return budgetType === "TOTAL" ? isCurrentTotalBudgetFundingConsent(pair) : isCurrentProspectiveBudgetFundingConsent(pair);
33
+ }
34
+ function fundingConsentFields(input) {
35
+ return input.acceptedTotalConsentVersion && input.acceptedTotalConsentCopyHash ? {
36
+ acceptedConsentCopyHash: input.acceptedTotalConsentCopyHash,
37
+ acceptedConsentVersion: input.acceptedTotalConsentVersion,
38
+ authorizeAutomaticDailyFunding: true
39
+ } : {
40
+ acceptedConsentCopyHash: input.acceptedConsentCopyHash,
41
+ acceptedConsentVersion: input.acceptedConsentVersion,
42
+ authorizeAutomaticDailyFunding: input.authorizeAutomaticDailyFunding
43
+ };
44
+ }
45
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
46
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY = "Charge my default payment method daily for this campaign's budget, until I pause or end it.";
47
+ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
48
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
49
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
50
+ var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
51
+ function isRenewableProspectiveBudgetFundingConsent(input) {
52
+ 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;
53
+ }
6
54
  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
55
+ FUNDING_CONSENT_BUDGET_TYPE_MISMATCH_MESSAGE,
56
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY,
57
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
58
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY,
59
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
60
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION,
61
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY,
62
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH,
63
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION,
64
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY,
65
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH,
66
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION,
67
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY,
68
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH,
69
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION,
70
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY,
71
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH,
72
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION,
73
+ PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION,
74
+ TOTAL_BUDGET_FUNDING_CONSENT_COPY,
75
+ TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH,
76
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY,
77
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
78
+ TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION,
79
+ TOTAL_BUDGET_FUNDING_CONSENT_VERSION,
80
+ fundingConsentFields,
81
+ isCurrentFundingConsent,
82
+ isCurrentProspectiveBudgetFundingConsent,
83
+ isCurrentTotalBudgetFundingConsent,
84
+ isRenewableProspectiveBudgetFundingConsent
10
85
  };
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,35 @@ 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
+ };
126
191
  export type MediaAssetSummary = {
127
192
  id: string;
128
193
  url?: string;
@@ -144,6 +209,11 @@ export type ListMediaAssetsSummaryData = {
144
209
  nextCursor?: string;
145
210
  };
146
211
  export type LaunchCampaignData = {
212
+ youtubeEntries?: Array<{
213
+ videoId: string;
214
+ playlistId: string;
215
+ selectionIndex: number;
216
+ }>;
147
217
  summary: string;
148
218
  id: string;
149
219
  contentTitle: string;
@@ -157,4 +227,3 @@ export type LaunchCampaignData = {
157
227
  nextSteps: string[];
158
228
  warnings?: string[];
159
229
  };
160
- //# sourceMappingURL=flow-types.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,16 +1,25 @@
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";
7
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";
8
10
  export { DynamoiOpenAiFetchInputSchema, DynamoiOpenAiSearchInputSchema, type OpenAiFetchData, type OpenAiSearchData, } from "./server/openai-tools";
11
+ export type { ContactSupportData, GetResumeFundingData, } from "./server/output-schemas";
9
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";
10
- export { DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiListSmartLinksInputSchema, DynamoiUpdateSmartLinkArtistSettingsInputSchema, DynamoiUpdateSmartLinkInputSchema, PHASE_4_TOOL_DEFINITIONS, parseDynamoiGetSmartLinkInput, } from "./server/smart-link-tools";
11
- 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 { DYNAMOI_SUPPORT_CATEGORIES, type DynamoiContactSupportInput, DynamoiContactSupportInputSchema, SUPPORT_TOOL_DEFINITIONS, } from "./server/support-tools";
15
+ 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";
12
16
  export { PHASE_3_TOOL_DEFINITIONS } from "./server/workflow-tools";
17
+ export type { WorkspaceData } from "./server/workspace/data";
18
+ export { openWorkspace, WORKSPACE_TOOL_DEFINITION, type WorkspaceReaders, } from "./server/workspace/tool";
19
+ export { type DynamoiGetYouTubeChannelDataInput, DynamoiGetYouTubeChannelDataInputSchema, type GetYouTubeChannelDataData, YOUTUBE_CHANNEL_DATA_DEFAULT_LIMIT, YOUTUBE_CHANNEL_DATASETS, YouTubeChannelDataSchema, type YouTubeChannelDataset, YouTubeChannelDatasetSchema, } from "./server/youtube-channel-data-schema";
20
+ export type { YouTubeStrategyGuide } from "./server/youtube-strategy-guide";
21
+ export { buildYouTubeStrategyGuide, YOUTUBE_CAMPAIGN_STRATEGIES_RESOURCE_URI, } from "./server/youtube-strategy-guide";
13
22
  export { handleMcpHttpRequest } from "./transport/http";
14
- 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";
23
+ 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";
15
24
  export { DYNAMOI_MCP_VERSION } from "./version";
16
- //# sourceMappingURL=index.d.ts.map
25
+ 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";