@dynamoi/mcp 1.0.10 → 1.0.12

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 (50) hide show
  1. package/CAPABILITY_PARITY.md +3 -9
  2. package/CHANGELOG.md +13 -14
  3. package/README.md +26 -14
  4. package/dist/auth/protected-resource.d.ts +14 -0
  5. package/dist/auth/protected-resource.js +126 -2
  6. package/dist/campaign-limits.d.ts +1 -7
  7. package/dist/campaign-limits.js +22 -4
  8. package/dist/consent.d.ts +6 -50
  9. package/dist/consent.js +16 -26
  10. package/dist/flow-types.d.ts +18 -2
  11. package/dist/index.d.ts +8 -2
  12. package/dist/index.js +10309 -4170
  13. package/dist/server/about.d.ts +18 -19
  14. package/dist/server/about.generated.d.ts +74 -0
  15. package/dist/server/account-schema.generated.d.ts +4 -3
  16. package/dist/server/account-settings-tools.d.ts +212 -196
  17. package/dist/server/artist-intake-tools.d.ts +57 -62
  18. package/dist/server/artist-intake-wire.generated.d.ts +39 -0
  19. package/dist/server/audit-log.generated.d.ts +120 -0
  20. package/dist/server/create-server.d.ts +20 -1
  21. package/dist/server/distribution-tools.d.ts +38 -14
  22. package/dist/server/draft-media-read.d.ts +109 -0
  23. package/dist/server/drafts-media.generated.d.ts +1185 -0
  24. package/dist/server/funding-consent.generated.d.ts +6 -0
  25. package/dist/server/intake-native.generated.d.ts +58 -0
  26. package/dist/server/media-moderation.generated.d.ts +189 -0
  27. package/dist/server/messaging.d.ts +2 -2
  28. package/dist/server/openai-tools.d.ts +102 -87
  29. package/dist/server/output-schemas.d.ts +141 -18
  30. package/dist/server/shop-order-status.d.ts +301 -0
  31. package/dist/server/shop-order-video.d.ts +195 -0
  32. package/dist/server/shop-purchase-history.d.ts +92 -0
  33. package/dist/server/shop-rebuy.d.ts +323 -0
  34. package/dist/server/shop-tools.d.ts +29 -168
  35. package/dist/server/smart-ad-copy.generated.d.ts +41 -0
  36. package/dist/server/smart-campaign-creative.d.ts +118 -413
  37. package/dist/server/smart-link-theme-preview.d.ts +55 -48
  38. package/dist/server/smart-link-tools.d.ts +212 -266
  39. package/dist/server/smart-link-wire.generated.d.ts +433 -0
  40. package/dist/server/support-tools.d.ts +23 -13
  41. package/dist/server/tools.d.ts +832 -303
  42. package/dist/server/wire-creative-agent-wire.generated.d.ts +423 -0
  43. package/dist/server/wire-shop-agent-wire.generated.d.ts +249 -0
  44. package/dist/server/workflow-tools.d.ts +21 -9
  45. package/dist/server/workspace/tool.d.ts +8 -4
  46. package/dist/server/youtube-channel-data-schema.d.ts +23 -23
  47. package/dist/server/youtube-strategy-guide.d.ts +1 -1
  48. package/dist/types.d.ts +20 -16
  49. package/package.json +22 -6
  50. package/server.json +2 -2
@@ -34,18 +34,12 @@ work. Everything else is refused.
34
34
  | Billing and Shop | Managed billing observations including masked payment-method display, and read-only existing-campaign resume funding breakdown (`dynamoi_get_resume_funding`); unpaid Add campaign funds Checkout creation (`dynamoi_add_campaign_funds`); full-profile Shop quote, unpaid Stripe checkout creation and bounded authorized-artist order status/fulfillment reads | Managed subscription changes, invoice/funding workflows or agent payment settlement. Shop checkout is not a campaign launch or paid order. |
35
35
 
36
36
  A real campaign launch, budget edit or pause/resume runs the same shared
37
- backend functions as web and mobile. Operations that need automatic daily card
38
- funding — launches and budget updates (DAILY or TOTAL), and resumes of
39
- campaigns that require card funding — must carry the funding-consent fields
40
- (`authorizeAutomaticDailyFunding` with the exact `acceptedConsentVersion` and
41
- `acceptedConsentCopyHash`, plus `clientRequestId`) after the user is shown the
42
- consent copy for the budget type (the TOTAL consent only on a TOTAL budget);
43
- without them the shared path refuses before any provider call.
37
+ backend functions as web and mobile. The user reviews the funding summary and submits.
44
38
  Existing owners retain RBAC, spending authority and idempotency checks. Demo
45
39
  responses remain simulations with no provider, billing or campaign effects.
46
40
 
47
- The native parity manifest is itself incomplete: planned/partial entries must
48
- not be presented as completed mobile behavior. StoreKit, Play Billing, APNs and
41
+ The native parity manifest is itself incomplete: partial entries must
42
+ not be presented as completed mobile behavior. StoreKit, Play Billing and
49
43
  native session mechanics are client-specific implementations; removing them from
50
44
  an agent operation count does not make the underlying commerce journey complete.
51
45
 
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.12] - 2026-11-12
11
+
12
+ ### Changed
13
+
14
+ - The registry and standard descriptions, server instructions, About text, README and Dynamoi skill now say Dynamoi is how artists promote a song on Spotify or promote a video on YouTube, and that Smart Links are free with no plan needed. The Shop mention is removed from the instructions summary and the skill overview. No tool, schema or permission changes.
15
+
16
+ ## [1.0.11] - 2026-11-10
17
+
18
+ ### Changed
19
+
20
+ - Server instructions and the Dynamoi skill state that Dynamoi promotes AI-generated music but does not distribute music made with generative AI. No tool, schema or permission changes.
21
+ - Consolidate the generated consent constants used by the public SDK without changing consent values or exports.
22
+
10
23
  ## [1.0.10] - 2026-11-03
11
24
 
12
25
  ### Changed
@@ -61,8 +74,6 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
61
74
 
62
75
  - The README, About text and skill copy describe the two-tier model and the approved pricing.
63
76
 
64
- - **TOTAL budgets use the same funding path and consent as the web app.** `dynamoi_launch_campaign`, and `dynamoi_update_campaign` for `resume`, `update_budget` and `update_end_date`, now accept the TOTAL funding consent (`managed-ads-total-daily-v3`, exported from `@dynamoi/mcp/consent`): show the user its copy, then send its version and hash in the new optional `acceptedTotalConsentVersion` and `acceptedTotalConsentCopyHash` fields (the DAILY fields are unchanged). Every budget is funded from credit, then prepaid funds, then the saved card. A DAILY budget refuses the TOTAL consent and the reverse, stale versions are refused, and a TOTAL launch without consent is refused and never charged. The DAILY consent is unchanged.
65
-
66
77
  ### Removed
67
78
 
68
79
  - Retired the `monetizationQualificationMode` option and readback from `dynamoi_update_campaign`. YouTube goal toggles remain manually editable; existing campaigns retain their current goals.
@@ -238,16 +249,6 @@ below for reference.
238
249
  and campaign changes run the same shared backend checks as the Dynamoi web
239
250
  and mobile apps. The MCP client's own tool-approval settings decide whether
240
251
  a person approves each call.
241
- - **Funding consent is required for daily budgets.** `dynamoi_launch_campaign`
242
- with a `DAILY` budget, and `dynamoi_update_campaign` for `update_budget` or a
243
- `resume` that needs card funding, must pass
244
- `authorizeAutomaticDailyFunding: true` with the exact
245
- `acceptedConsentVersion` and `acceptedConsentCopyHash` (plus
246
- `clientRequestId` for campaign updates), after the user has seen the consent
247
- copy. Without them the request is refused. `TOTAL` budgets use existing
248
- credit and need no consent. The consent constants changed to
249
- `managed-ads-prospective-daily-v2` with new copy and hash, so clients pinned
250
- to v1 values must update.
251
252
  - **YouTube launch inputs.** `YOUTUBE` launches now require `youtubeStrategy`
252
253
  (`CHEAPEST_VIEWS`, `ORGANIC_VIEWS`, `SUBSCRIBERS`,
253
254
  `ORGANIC_VIEWS_AND_SUBSCRIBERS` or `ADSENSE_ROI`). They also require
@@ -340,8 +341,6 @@ Prepared but never published to npm. Its changes ship in 1.0.0.
340
341
 
341
342
  ### Changed
342
343
 
343
- - Make campaign funding consent explicit about daily renewal, advance collection, and unused-fund reconciliation.
344
-
345
344
  ## [0.7.1] - 2026-08-27
346
345
 
347
346
  ### Fixed
package/README.md CHANGED
@@ -13,9 +13,10 @@
13
13
  [![license](https://img.shields.io/npm/l/@dynamoi/mcp)](./LICENSE)
14
14
  [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.getDynamoi%2Fdynamoi-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.getDynamoi/dynamoi)
15
15
 
16
- Dynamoi's MCP server lets your AI assistant promote music for independent
17
- artists, labels and managers. Ask it how a campaign is doing, build free
18
- Smart Links, and, with the artist's explicit consent, launch real Spotify and
16
+ Dynamoi's MCP server lets your AI assistant promote a song on Spotify or
17
+ promote a video on YouTube for independent artists, labels and managers. Ask it
18
+ how a campaign is doing, make a free smart link for music or a free link in bio
19
+ for musicians, and, when the artist requests it, launch real Spotify and
19
20
  YouTube ad campaigns. It works with whatever distributor the artist already uses.
20
21
 
21
22
  ```txt
@@ -168,7 +169,7 @@ artists, labels, managers and YouTube creators, on any distributor.
168
169
  each release, optimized for listeners who go on to Spotify, not for likes.
169
170
  - **YouTube campaigns.** Google video ads optimized for the goal the channel
170
171
  picks: subscribers, organic views or measured AdSense return.
171
- - **Free tools.** Smart Links, analytics and growth audits on every plan.
172
+ - **Free tools.** Smart Links (release pages and a link-in-bio artist hub), analytics and growth audits, with no plan needed.
172
173
  - **Distribution, if you want it.** Eligible artists can release to 100+
173
174
  stores and keep their masters and 90% of net receipts. Artists who prefer
174
175
  their current distributor keep it and use everything else.
@@ -182,18 +183,16 @@ including what did not work.
182
183
  - **Smart Links are free.** Starter is $25/month per artist, and the plan
183
184
  includes monthly campaign credit. Campaigns run from $10 a day. See
184
185
  [pricing](https://dynamoi.com/pricing).
185
- - **Nothing is charged without consent.** Every launch, budget change or
186
- card-funded resume needs the artist to accept the exact consent text, which
187
- the agent passes back as a version and hash. Without it the server refuses
188
- the call and charges nothing. The consent values are exported from
189
- `@dynamoi/mcp/consent`.
186
+ - **Campaign clicks authorize funding.** An authenticated launch, resume or budget
187
+ change uses the existing budget, currency, card and charge-cap checks. The server
188
+ supplies frozen compatibility values for its retained funding history.
190
189
  - **Agents never see payment details.** Plans and cards are set up only in the
191
190
  [Dynamoi dashboard](https://dynamoi.com/dashboard). Shop checkout tools
192
191
  return an unpaid Stripe link; the user pays on Stripe.
193
192
  - **Each client gets one of two tool sets**, chosen from the identity it signs
194
193
  in with. Reviewed clients and apps that sign in on your own computer
195
194
  (Claude Code, Codex, Cursor, VS Code, Gemini CLI, OpenClaw and the `dynamoi`
196
- CLI) get All 57 tools. ChatGPT, Claude added from its directory listing and other web apps get 50 review-safe advertised tools: reads, Smart Links,
195
+ CLI) get All 71 tools. ChatGPT, Claude added from its directory listing and other web apps get 53 review-safe advertised tools: reads, Smart Links,
197
196
  billing and earnings status, draft preparation, account management and connection links, with no purchases, launches or checkout.
198
197
  - **Sign-in is OAuth 2.1**, and every call still checks its scopes and the
199
198
  user's role for that artist. See
@@ -212,6 +211,10 @@ including what did not work.
212
211
  | `dynamoi_search` | Find artists, campaigns, and Smart Links by name | Reads | Both |
213
212
  | `search` / `fetch` | ChatGPT deep research search and fetch | Reads | Both |
214
213
  | `dynamoi_list_campaigns` | An artist's campaigns, with type and status filters | Reads | Both |
214
+ | `dynamoi_get_campaign_management` | Bounded campaign lifecycle, targeting and optimization state | Reads | Both |
215
+ | `dynamoi_get_meta_campaign_groups` | Customer-visible Meta analytics for bounded groups of campaigns | Reads | Both |
216
+ | `dynamoi_read_campaign_draft_media` | Reopen an owned draft or read the editor media chooser; preserves private-upload moderation masking | Reads | Full |
217
+ | `dynamoi_list_campaign_drafts` | In-progress campaign drafts and campaignIds to resume setup | Reads | Both |
215
218
  | `dynamoi_get_campaign` | One campaign, with optional analytics, delivery status, and countries | Reads | Both |
216
219
  | `dynamoi_get_artist_analytics` | Artist campaign analytics; full profile also includes qualified artist-wide Smart Link totals and up to ten top links | Reads | Both |
217
220
  | `dynamoi_get_growth_audit` | Spotify growth score, recommendations, listener trends, and playlist reach with status and coverage evidence | Reads | Both |
@@ -245,9 +248,10 @@ including what did not work.
245
248
  | `dynamoi_get_referrals` | Your referral snapshot; no attribution or commission writes. Pending and available amounts are not approved or paid payouts. | Reads | Both |
246
249
  | `dynamoi_get_billing` | Billing status, credit balance, promo limits and masked payment-method display | Reads | Both |
247
250
  | `dynamoi_add_campaign_funds` | Create the unpaid Add campaign funds Stripe Checkout link, after the user approves the amount and currency | Changes data | Full |
248
- | `dynamoi_get_resume_funding` | Campaign resume-funding breakdown, refusal, and consent requirements | Reads | Full |
251
+ | `dynamoi_get_resume_funding` | Campaign resume-funding breakdown and refusal | Reads | Full |
249
252
  | `dynamoi_list_available_countries` | Countries a Smart Campaign or YouTube campaign can target | Reads | Both |
250
253
  | `dynamoi_get_campaign_readiness` | Check launch inputs before creating anything | Reads | Both |
254
+ | `dynamoi_read_media_moderation` | Complete moderation receipts with provider, scan time, risk and errors | Reads | Full |
251
255
  | `dynamoi_list_media_assets` | Uploaded images and videos that a launch can reuse | Reads | Both |
252
256
  | `dynamoi_launch_campaign` | Launch a Smart Campaign or YouTube campaign | Changes data | Full |
253
257
  | `dynamoi_update_campaign` | Pause, resume, or change a campaign's budget or end date | Changes data | Full |
@@ -260,6 +264,15 @@ including what did not work.
260
264
  | `dynamoi_delete_account` | Preview eligibility and explicitly start irreversible account deletion; cleanup is asynchronous and required records may be retained | Changes data | Full |
261
265
  | `dynamoi_update_account_profile` | Preview or explicitly confirm a display name or preferred language change | Changes data | Both |
262
266
  | `dynamoi_set_artist_billing_country` | Preview or explicitly confirm an artist checkout-currency suggestion country; existing currency stays fixed | Changes data | Full |
267
+ | `dynamoi_pause_shop_promotion` | Preview and confirm an owned Shop promotion pause; existing safeguards remain authoritative | Changes data | Full |
268
+ | `dynamoi_resume_shop_promotion` | Preview and confirm an owned Shop promotion resume; existing safeguards remain authoritative | Changes data | Full |
269
+ | `dynamoi_restart_shop_promotion` | Preview and confirm an owned Shop promotion restart; existing safeguards remain authoritative | Changes data | Full |
270
+ | `dynamoi_attach_shop_order_video` | Preview and confirm the first video on an owned paid order. | Changes data | Full |
271
+ | `dynamoi_replace_shop_promotion_video` | Preview and confirm an eligible policy replacement. | Changes data | Full |
272
+ | `dynamoi_quote_shop_rebuy_custom` | Read an authorized returning-buyer custom quote. | Reads | Full |
273
+ | `dynamoi_estimate_shop_rebuy_packages` | Read up to ten returning-buyer package estimates. | Reads | Full |
274
+ | `dynamoi_prepare_shop_rebuy_checkout` | Preview and confirm an unpaid checkout bound to the verified buyer and artist. | Changes data | Full |
275
+ | `dynamoi_get_shop_purchase_history` | Read the same localized buyer-safe purchase-history rows and cursor as the web | Reads | Full |
263
276
  | `dynamoi_shop_list_orders` | Read your authorized artist’s newest Shop order status and fulfillment timestamps | Reads | Full |
264
277
  | `dynamoi_shop_get_quote` | Estimate a one-off YouTube promotion | Reads | Full |
265
278
  | `dynamoi_shop_create_checkout` | Create an unpaid Stripe Checkout link for that promotion | Changes data | Full |
@@ -282,8 +295,7 @@ artist decides whether to apply.
282
295
  <details>
283
296
  <summary><b>Can the assistant spend money on its own?</b></summary>
284
297
 
285
- No. Paid calls are refused unless the artist accepted the consent text for
286
- that exact budget. Keep your client's approval prompt on for tools that change
298
+ Campaign writes require the artist’s instruction and authenticated access. Keep your client's approval prompt on for tools that change
287
299
  data, and no tool starts a subscription.
288
300
 
289
301
  </details>
@@ -323,7 +335,7 @@ The package is ESM-only and built on MCP TypeScript SDK v2.
323
335
  | --- | --- |
324
336
  | `@dynamoi/mcp` | `createDynamoiMcpServer`, `handleMcpHttpRequest`, `getDynamoiToolDefinitions`, `DynamoiMcpToolProfile`, `Phase3Adapter`, tool schemas, About exports, result types, `DYNAMOI_MCP_VERSION` |
325
337
  | `@dynamoi/mcp/auth` | `DYNAMOI_BETTER_AUTH_MCP_SCOPES`, `DYNAMOI_MCP_TOOL_SCOPES`, `buildWwwAuthenticateHeader` |
326
- | `@dynamoi/mcp/consent` | Current and previous budget-funding consent versions, copy and hashes, plus `isCurrentProspectiveBudgetFundingConsent` and `isRenewableProspectiveBudgetFundingConsent` |
338
+ | `@dynamoi/mcp/consent` | Frozen funding-history compatibility values and automatic-renewal predicates |
327
339
 
328
340
  A host supplies a `Phase3Adapter` that connects each tool to its services, and
329
341
  authenticates the request and checks scopes before calling
@@ -1,5 +1,7 @@
1
1
  export declare const DYNAMOI_BETTER_AUTH_MCP_SCOPES: readonly ["dynamoi:read", "dynamoi:mcp.full", "dynamoi:billing.read", "dynamoi:campaign.launch", "dynamoi:campaign.write", "dynamoi:distribution.apply", "dynamoi:distribution.read", "dynamoi:platform.read", "dynamoi:platform.write", "dynamoi:smart_links.write"];
2
2
  export declare const DYNAMOI_MCP_TOOL_SCOPES: {
3
+ readonly dynamoi_get_meta_campaign_groups: readonly ["dynamoi:read"];
4
+ readonly dynamoi_get_campaign_management: readonly ["dynamoi:read"];
3
5
  readonly dynamoi_about: readonly [];
4
6
  readonly dynamoi_add_campaign_funds: readonly ["dynamoi:read", "dynamoi:mcp.full"];
5
7
  readonly dynamoi_apply_for_distribution: readonly ["dynamoi:read", "dynamoi:distribution.apply"];
@@ -33,7 +35,10 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
33
35
  readonly dynamoi_launch_campaign: readonly ["dynamoi:read", "dynamoi:campaign.launch"];
34
36
  readonly dynamoi_list_artists: readonly ["dynamoi:read"];
35
37
  readonly dynamoi_list_available_countries: readonly ["dynamoi:read"];
38
+ readonly dynamoi_read_campaign_draft_media: readonly ["dynamoi:read"];
39
+ readonly dynamoi_list_campaign_drafts: readonly ["dynamoi:read"];
36
40
  readonly dynamoi_list_campaigns: readonly ["dynamoi:read"];
41
+ readonly dynamoi_read_media_moderation: readonly ["dynamoi:read"];
37
42
  readonly dynamoi_list_media_assets: readonly ["dynamoi:read"];
38
43
  readonly dynamoi_list_smart_links: readonly ["dynamoi:read"];
39
44
  readonly dynamoi_manage_smart_campaign_creative: readonly ["dynamoi:read", "dynamoi:campaign.write"];
@@ -45,6 +50,15 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
45
50
  readonly dynamoi_set_artist_billing_country: readonly ["dynamoi:read", "dynamoi:mcp.full"];
46
51
  readonly dynamoi_shop_create_checkout: readonly ["dynamoi:read", "dynamoi:mcp.full"];
47
52
  readonly dynamoi_shop_get_quote: readonly ["dynamoi:read", "dynamoi:mcp.full"];
53
+ readonly dynamoi_pause_shop_promotion: readonly ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"];
54
+ readonly dynamoi_resume_shop_promotion: readonly ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"];
55
+ readonly dynamoi_restart_shop_promotion: readonly ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"];
56
+ readonly dynamoi_attach_shop_order_video: readonly ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"];
57
+ readonly dynamoi_replace_shop_promotion_video: readonly ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"];
58
+ readonly dynamoi_quote_shop_rebuy_custom: readonly ["dynamoi:read", "dynamoi:mcp.full"];
59
+ readonly dynamoi_estimate_shop_rebuy_packages: readonly ["dynamoi:read", "dynamoi:mcp.full"];
60
+ readonly dynamoi_prepare_shop_rebuy_checkout: readonly ["dynamoi:read", "dynamoi:mcp.full"];
61
+ readonly dynamoi_get_shop_purchase_history: readonly ["dynamoi:read", "dynamoi:mcp.full"];
48
62
  readonly dynamoi_shop_list_orders: readonly ["dynamoi:read", "dynamoi:mcp.full"];
49
63
  readonly dynamoi_smart_campaign_ad_copy: readonly ["dynamoi:read", "dynamoi:campaign.write"];
50
64
  readonly dynamoi_smart_link_controls: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
@@ -55,6 +55,24 @@ var AUDIENCE_ANALYTICS_CONTRACT = {
55
55
  }),
56
56
  responseSchema: MobileAudienceAnalyticsResponseSchema
57
57
  },
58
+ parity: {
59
+ webmcp: {
60
+ status: "complete",
61
+ journeys: ["WM-DASHBOARD-audienceAnalytics"],
62
+ binding: {
63
+ file: "apps/dashboard/app/dashboard/webmcp/dashboard-reads.webmcp.generated.ts",
64
+ export: "audienceAnalyticsWebMcp",
65
+ tool: "dashboard_audience_analytics",
66
+ role: "consumer",
67
+ intermediates: [
68
+ {
69
+ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts",
70
+ export: "audienceAnalytics"
71
+ }
72
+ ]
73
+ }
74
+ }
75
+ },
58
76
  version: 1
59
77
  };
60
78
 
@@ -97,6 +115,24 @@ var BILLING_COUNTRY_READ_CONTRACT = {
97
115
  method: "GET",
98
116
  operationId: "getMobileArtistBillingCountry"
99
117
  },
118
+ parity: {
119
+ webmcp: {
120
+ binding: {
121
+ export: "billingCountryWebMcp",
122
+ file: "apps/dashboard/app/dashboard/webmcp/dashboard-reads.webmcp.generated.ts",
123
+ intermediates: [
124
+ {
125
+ export: "billingCountry",
126
+ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts"
127
+ }
128
+ ],
129
+ role: "consumer",
130
+ tool: "dashboard_billing_country"
131
+ },
132
+ journeys: ["WM-DASHBOARD-billingCountry"],
133
+ status: "complete"
134
+ }
135
+ },
100
136
  version: 1
101
137
  };
102
138
  var BILLING_COUNTRY_SET_CONTRACT = {
@@ -123,11 +159,31 @@ var BILLING_COUNTRY_SET_CONTRACT = {
123
159
  },
124
160
  mobile: {
125
161
  ...mobile,
126
- bodySchema: z2.object({ countryCode: z2.string().trim().min(1) }),
162
+ bodySchema: z2.object({
163
+ countryCode: z2.string().trim().min(1),
164
+ expectedCountryCode: z2.string().nullable().default(null)
165
+ }),
127
166
  idempotent: true,
128
167
  method: "PATCH",
129
168
  operationId: "patchMobileArtistBillingCountry"
130
169
  },
170
+ parity: {
171
+ webmcp: {
172
+ status: "complete",
173
+ journeys: ["WM-DASHBOARD-billingCountrySet"],
174
+ binding: {
175
+ file: "apps/dashboard/app/dashboard/webmcp/dashboard-account.webmcp.generated.ts",
176
+ export: "billingCountrySetWebMcp",
177
+ tool: "dashboard_set_artist_billing_country",
178
+ intermediates: [
179
+ {
180
+ file: "apps/dashboard/app/dashboard/webmcp/account-commands.ts",
181
+ export: "billingCountrySet"
182
+ }
183
+ ]
184
+ }
185
+ }
186
+ },
131
187
  version: 1
132
188
  };
133
189
 
@@ -272,7 +328,23 @@ var GROWTH_AUDIT_CONTRACT = {
272
328
  cli: partial,
273
329
  ios: partial,
274
330
  mcp: partial,
275
- web: partial
331
+ web: partial,
332
+ webmcp: {
333
+ status: "complete",
334
+ journeys: ["WM-DASHBOARD-growthAudit"],
335
+ binding: {
336
+ file: "apps/dashboard/app/dashboard/webmcp/dashboard-reads.webmcp.generated.ts",
337
+ export: "growthAuditWebMcp",
338
+ tool: "dashboard_growth_audit",
339
+ role: "consumer",
340
+ intermediates: [
341
+ {
342
+ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts",
343
+ export: "growthAudit"
344
+ }
345
+ ]
346
+ }
347
+ }
276
348
  },
277
349
  version: 1
278
350
  };
@@ -360,6 +432,24 @@ var PLAYLIST_ANALYTICS_CONTRACT = {
360
432
  platforms: ["android", "ios"],
361
433
  responseSchema: MobilePlaylistAnalyticsResponseSchema
362
434
  },
435
+ parity: {
436
+ webmcp: {
437
+ status: "complete",
438
+ journeys: ["WM-DASHBOARD-playlistAnalytics"],
439
+ binding: {
440
+ file: "apps/dashboard/app/dashboard/webmcp/dashboard-reads.webmcp.generated.ts",
441
+ export: "playlistAnalyticsWebMcp",
442
+ tool: "dashboard_playlist_analytics",
443
+ role: "consumer",
444
+ intermediates: [
445
+ {
446
+ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts",
447
+ export: "playlistAnalytics"
448
+ }
449
+ ]
450
+ }
451
+ }
452
+ },
363
453
  version: 1
364
454
  };
365
455
 
@@ -377,6 +467,8 @@ var DYNAMOI_BETTER_AUTH_MCP_SCOPES = [
377
467
  "dynamoi:smart_links.write"
378
468
  ];
379
469
  var DYNAMOI_MCP_TOOL_SCOPES = {
470
+ dynamoi_get_meta_campaign_groups: ["dynamoi:read"],
471
+ dynamoi_get_campaign_management: ["dynamoi:read"],
380
472
  dynamoi_about: [],
381
473
  dynamoi_add_campaign_funds: ["dynamoi:read", "dynamoi:mcp.full"],
382
474
  dynamoi_apply_for_distribution: [
@@ -428,7 +520,10 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
428
520
  dynamoi_launch_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
429
521
  dynamoi_list_artists: ["dynamoi:read"],
430
522
  dynamoi_list_available_countries: ["dynamoi:read"],
523
+ dynamoi_read_campaign_draft_media: ["dynamoi:read"],
524
+ dynamoi_list_campaign_drafts: ["dynamoi:read"],
431
525
  dynamoi_list_campaigns: ["dynamoi:read"],
526
+ dynamoi_read_media_moderation: ["dynamoi:read"],
432
527
  dynamoi_list_media_assets: ["dynamoi:read"],
433
528
  dynamoi_list_smart_links: ["dynamoi:read"],
434
529
  dynamoi_manage_smart_campaign_creative: [
@@ -443,6 +538,35 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
443
538
  [BILLING_COUNTRY_SET_CONTRACT.mcp.definition.name]: BILLING_COUNTRY_SET_CONTRACT.mcp.scopes,
444
539
  dynamoi_shop_create_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
445
540
  dynamoi_shop_get_quote: ["dynamoi:read", "dynamoi:mcp.full"],
541
+ dynamoi_pause_shop_promotion: [
542
+ "dynamoi:read",
543
+ "dynamoi:campaign.write",
544
+ "dynamoi:mcp.full"
545
+ ],
546
+ dynamoi_resume_shop_promotion: [
547
+ "dynamoi:read",
548
+ "dynamoi:campaign.write",
549
+ "dynamoi:mcp.full"
550
+ ],
551
+ dynamoi_restart_shop_promotion: [
552
+ "dynamoi:read",
553
+ "dynamoi:campaign.write",
554
+ "dynamoi:mcp.full"
555
+ ],
556
+ dynamoi_attach_shop_order_video: [
557
+ "dynamoi:read",
558
+ "dynamoi:campaign.write",
559
+ "dynamoi:mcp.full"
560
+ ],
561
+ dynamoi_replace_shop_promotion_video: [
562
+ "dynamoi:read",
563
+ "dynamoi:campaign.write",
564
+ "dynamoi:mcp.full"
565
+ ],
566
+ dynamoi_quote_shop_rebuy_custom: ["dynamoi:read", "dynamoi:mcp.full"],
567
+ dynamoi_estimate_shop_rebuy_packages: ["dynamoi:read", "dynamoi:mcp.full"],
568
+ dynamoi_prepare_shop_rebuy_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
569
+ dynamoi_get_shop_purchase_history: ["dynamoi:read", "dynamoi:mcp.full"],
446
570
  dynamoi_shop_list_orders: ["dynamoi:read", "dynamoi:mcp.full"],
447
571
  dynamoi_smart_campaign_ad_copy: ["dynamoi:read", "dynamoi:campaign.write"],
448
572
  dynamoi_smart_link_controls: ["dynamoi:read", "dynamoi:smart_links.write"],
@@ -1,10 +1,4 @@
1
- /** Public campaign policy shared by standalone adapters and backend owners. */
2
- export declare const CAMPAIGN_CREATIVE_SELECTION_LIMIT = 10;
3
- export declare const CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT: number;
4
- export declare const MIN_CAMPAIGN_DAYS = 5;
5
- export declare const MAX_SOURCE_AUDIO_MIB = 250;
6
- export declare const MAX_SOURCE_AUDIO_BYTES: number;
7
- export declare const USD_BUDGET_MINIMUMS: {
1
+ export declare const CAMPAIGN_CREATIVE_SELECTION_LIMIT: 10, CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT: number, MIN_CAMPAIGN_DAYS: 5, MAX_SOURCE_AUDIO_MIB: 250, MAX_SOURCE_AUDIO_BYTES: number, USD_BUDGET_MINIMUMS: {
8
2
  readonly smartCampaign: {
9
3
  readonly dailyUsd: 10;
10
4
  readonly totalUsd: number;
@@ -1,4 +1,4 @@
1
- // src/campaign-limits.ts
1
+ // src/server/campaign-limits.generated.ts
2
2
  var CAMPAIGN_CREATIVE_SELECTION_LIMIT = 10;
3
3
  var CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT = 3 * CAMPAIGN_CREATIVE_SELECTION_LIMIT;
4
4
  var MIN_CAMPAIGN_DAYS = 5;
@@ -12,11 +12,29 @@ var USD_BUDGET_MINIMUMS = {
12
12
  },
13
13
  youtube: { dailyUsd: MIN_DAILY_CAMPAIGN_BUDGET_USD, totalUsd: 75 }
14
14
  };
15
- export {
15
+ var CAMPAIGN_LIMITS = {
16
16
  CAMPAIGN_CREATIVE_SELECTION_LIMIT,
17
17
  CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT,
18
- MAX_SOURCE_AUDIO_BYTES,
19
- MAX_SOURCE_AUDIO_MIB,
20
18
  MIN_CAMPAIGN_DAYS,
19
+ MAX_SOURCE_AUDIO_MIB,
20
+ MAX_SOURCE_AUDIO_BYTES,
21
21
  USD_BUDGET_MINIMUMS
22
22
  };
23
+
24
+ // src/campaign-limits.ts
25
+ var {
26
+ CAMPAIGN_CREATIVE_SELECTION_LIMIT: CAMPAIGN_CREATIVE_SELECTION_LIMIT2,
27
+ CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT: CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT2,
28
+ MIN_CAMPAIGN_DAYS: MIN_CAMPAIGN_DAYS2,
29
+ MAX_SOURCE_AUDIO_MIB: MAX_SOURCE_AUDIO_MIB2,
30
+ MAX_SOURCE_AUDIO_BYTES: MAX_SOURCE_AUDIO_BYTES2,
31
+ USD_BUDGET_MINIMUMS: USD_BUDGET_MINIMUMS2
32
+ } = CAMPAIGN_LIMITS;
33
+ export {
34
+ CAMPAIGN_CREATIVE_SELECTION_LIMIT2 as CAMPAIGN_CREATIVE_SELECTION_LIMIT,
35
+ CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT2 as CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT,
36
+ MAX_SOURCE_AUDIO_BYTES2 as MAX_SOURCE_AUDIO_BYTES,
37
+ MAX_SOURCE_AUDIO_MIB2 as MAX_SOURCE_AUDIO_MIB,
38
+ MIN_CAMPAIGN_DAYS2 as MIN_CAMPAIGN_DAYS,
39
+ USD_BUDGET_MINIMUMS2 as USD_BUDGET_MINIMUMS
40
+ };
package/dist/consent.d.ts CHANGED
@@ -1,16 +1,4 @@
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";
1
+ export { PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION, PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY, PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH, TOTAL_BUDGET_FUNDING_CONSENT_VERSION, TOTAL_BUDGET_FUNDING_CONSENT_COPY, TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH, } from "./server/funding-consent.generated";
14
2
  /**
15
3
  * The previous daily consent, with the same terms as v6 spelled out in the
16
4
  * copy. Campaigns that accepted it keep renewing under it; new launches and
@@ -41,51 +29,14 @@ export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786
41
29
  export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
42
30
  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
31
  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
32
  export declare function isCurrentTotalBudgetFundingConsent(input: {
58
33
  copyHash: string;
59
34
  copyVersion: string;
60
35
  }): 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
36
  export declare function isCurrentProspectiveBudgetFundingConsent(input: {
68
37
  copyHash: string;
69
38
  copyVersion: string;
70
39
  }): 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
40
  /** Previous exact consent pair; existing receipts remain renewable. */
90
41
  export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
91
42
  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.";
@@ -99,3 +50,8 @@ export declare function isRenewableProspectiveBudgetFundingConsent(input: {
99
50
  copyHash: string;
100
51
  copyVersion: string;
101
52
  }): boolean;
53
+ /** Frozen storage compatibility values for an authenticated campaign click. */
54
+ export declare function currentCampaignFundingPair(budgetType: string): {
55
+ acceptedConsentCopyHash: string;
56
+ acceptedConsentVersion: string;
57
+ };
package/dist/consent.js CHANGED
@@ -1,7 +1,12 @@
1
- // src/consent.ts
1
+ // src/server/funding-consent.generated.ts
2
2
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-prospective-daily-v7";
3
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
4
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH = "f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356";
5
+ var TOTAL_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-total-daily-v3";
6
+ var TOTAL_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign, after my available credits, up to my total budget.";
7
+ var TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH = "8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd";
8
+
9
+ // src/consent.ts
5
10
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION = "managed-ads-prospective-daily-v5";
6
11
  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
12
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH = "14a318c6ef3defc44a13aa4813f0af9d3432db1c2910bada98581e762b35f9e2";
@@ -14,34 +19,12 @@ var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786746f962c91f5cad78
14
19
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
15
20
  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
21
  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
22
  function isCurrentTotalBudgetFundingConsent(input) {
21
23
  return input.copyVersion === TOTAL_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH;
22
24
  }
23
25
  function isCurrentProspectiveBudgetFundingConsent(input) {
24
26
  return input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH;
25
27
  }
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
28
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
46
29
  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
30
  var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
@@ -51,8 +34,16 @@ var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf510
51
34
  function isRenewableProspectiveBudgetFundingConsent(input) {
52
35
  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
36
  }
37
+ function currentCampaignFundingPair(budgetType) {
38
+ return budgetType === "TOTAL" ? {
39
+ acceptedConsentCopyHash: TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH,
40
+ acceptedConsentVersion: TOTAL_BUDGET_FUNDING_CONSENT_VERSION
41
+ } : {
42
+ acceptedConsentCopyHash: PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
43
+ acceptedConsentVersion: PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION
44
+ };
45
+ }
54
46
  export {
55
- FUNDING_CONSENT_BUDGET_TYPE_MISMATCH_MESSAGE,
56
47
  PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY,
57
48
  PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
58
49
  PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY,
@@ -77,8 +68,7 @@ export {
77
68
  TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
78
69
  TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION,
79
70
  TOTAL_BUDGET_FUNDING_CONSENT_VERSION,
80
- fundingConsentFields,
81
- isCurrentFundingConsent,
71
+ currentCampaignFundingPair,
82
72
  isCurrentProspectiveBudgetFundingConsent,
83
73
  isCurrentTotalBudgetFundingConsent,
84
74
  isRenewableProspectiveBudgetFundingConsent
@@ -1,5 +1,5 @@
1
1
  import type { z } from "zod/v4";
2
- import type { MediaAssetModerationOutputSchema } from "./server/output-schemas";
2
+ import type { MediaAssetModerationOutputSchema, GetResumeFundingData } from "./server/output-schemas";
3
3
  import type { ArtistTier, BillingStatus, CampaignDisplayStatus, CampaignType, MoneyDisplay } from "./types";
4
4
  export type GetBillingData = {
5
5
  /** Safe shared payment display; null means unavailable, absent on older servers. */
@@ -164,7 +164,23 @@ export type UpdateBudgetData = {
164
164
  warnings?: string[] | undefined;
165
165
  actionRequired?: string[] | undefined;
166
166
  };
167
- export type UpdateCampaignData = PauseResumeCampaignData | UpdateBudgetData | {
167
+ export type CampaignStatusPreviewData = {
168
+ phase: "preview";
169
+ preview: {
170
+ action: "pause" | "resume" | "archive" | "unarchive";
171
+ campaignId: string;
172
+ artistId: string;
173
+ contentTitle: string;
174
+ currentStatus: string;
175
+ expected: {
176
+ expectedUpdatedAt: string;
177
+ expectedCurrentStatus: string;
178
+ expectedFundingHash?: string;
179
+ };
180
+ funding: GetResumeFundingData | null;
181
+ };
182
+ };
183
+ export type UpdateCampaignData = CampaignStatusPreviewData | PauseResumeCampaignData | UpdateBudgetData | {
168
184
  id: string;
169
185
  contentTitle: string;
170
186
  didChange: boolean;