@dynamoi/mcp 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CAPABILITY_PARITY.md +3 -9
- package/CHANGELOG.md +16 -14
- package/README.md +22 -11
- package/dist/auth/protected-resource.d.ts +14 -0
- package/dist/auth/protected-resource.js +41 -2
- package/dist/campaign-limits.d.ts +1 -7
- package/dist/campaign-limits.js +11 -7
- package/dist/consent.d.ts +6 -50
- package/dist/consent.js +16 -26
- package/dist/flow-types.d.ts +18 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +5520 -2463
- package/dist/server/about.d.ts +16 -17
- package/dist/server/about.generated.d.ts +68 -0
- package/dist/server/account-schema.generated.d.ts +4 -3
- package/dist/server/account-settings-tools.d.ts +212 -196
- package/dist/server/artist-intake-tools.d.ts +57 -62
- package/dist/server/artist-intake-wire.generated.d.ts +39 -0
- package/dist/server/audit-log.generated.d.ts +120 -0
- package/dist/server/create-server.d.ts +20 -1
- package/dist/server/distribution-tools.d.ts +38 -14
- package/dist/server/draft-media-read.d.ts +109 -0
- package/dist/server/drafts-media.generated.d.ts +1185 -0
- package/dist/server/funding-consent.generated.d.ts +6 -0
- package/dist/server/intake-native.generated.d.ts +58 -0
- package/dist/server/media-moderation.generated.d.ts +189 -0
- package/dist/server/openai-tools.d.ts +102 -87
- package/dist/server/output-schemas.d.ts +141 -18
- package/dist/server/shop-order-status.d.ts +301 -0
- package/dist/server/shop-order-video.d.ts +195 -0
- package/dist/server/shop-purchase-history.d.ts +92 -0
- package/dist/server/shop-rebuy.d.ts +323 -0
- package/dist/server/shop-tools.d.ts +34 -163
- package/dist/server/smart-ad-copy.generated.d.ts +41 -0
- package/dist/server/smart-campaign-creative.d.ts +118 -413
- package/dist/server/smart-link-theme-preview.d.ts +55 -48
- package/dist/server/smart-link-tools.d.ts +212 -266
- package/dist/server/smart-link-wire.generated.d.ts +433 -0
- package/dist/server/support-tools.d.ts +23 -13
- package/dist/server/tools.d.ts +816 -295
- package/dist/server/wire-creative-agent-wire.generated.d.ts +423 -0
- package/dist/server/wire-shop-agent-wire.generated.d.ts +249 -0
- package/dist/server/workflow-tools.d.ts +21 -9
- package/dist/server/workspace/tool.d.ts +8 -4
- package/dist/server/youtube-channel-data-schema.d.ts +23 -23
- package/dist/server/youtube-strategy-guide.d.ts +1 -1
- package/dist/types.d.ts +20 -16
- package/package.json +21 -5
- package/server.json +1 -1
package/CAPABILITY_PARITY.md
CHANGED
|
@@ -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.
|
|
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:
|
|
48
|
-
not be presented as completed mobile behavior. StoreKit, Play Billing
|
|
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,22 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- 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.
|
|
13
|
+
|
|
14
|
+
## [1.0.11] - 2026-11-10
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Consolidate the generated consent constants used by the public SDK without changing consent values or exports.
|
|
19
|
+
|
|
20
|
+
## [1.0.10] - 2026-11-03
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Include the independent full, partial or no-refund remedy outcome in full-profile Shop order reads. Unknown legacy outcomes remain null; directory tools and permissions are unchanged.
|
|
25
|
+
|
|
10
26
|
## [1.0.9] - 2026-11-02
|
|
11
27
|
|
|
12
28
|
### Changed
|
|
@@ -55,8 +71,6 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
55
71
|
|
|
56
72
|
- The README, About text and skill copy describe the two-tier model and the approved pricing.
|
|
57
73
|
|
|
58
|
-
- **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.
|
|
59
|
-
|
|
60
74
|
### Removed
|
|
61
75
|
|
|
62
76
|
- Retired the `monetizationQualificationMode` option and readback from `dynamoi_update_campaign`. YouTube goal toggles remain manually editable; existing campaigns retain their current goals.
|
|
@@ -232,16 +246,6 @@ below for reference.
|
|
|
232
246
|
and campaign changes run the same shared backend checks as the Dynamoi web
|
|
233
247
|
and mobile apps. The MCP client's own tool-approval settings decide whether
|
|
234
248
|
a person approves each call.
|
|
235
|
-
- **Funding consent is required for daily budgets.** `dynamoi_launch_campaign`
|
|
236
|
-
with a `DAILY` budget, and `dynamoi_update_campaign` for `update_budget` or a
|
|
237
|
-
`resume` that needs card funding, must pass
|
|
238
|
-
`authorizeAutomaticDailyFunding: true` with the exact
|
|
239
|
-
`acceptedConsentVersion` and `acceptedConsentCopyHash` (plus
|
|
240
|
-
`clientRequestId` for campaign updates), after the user has seen the consent
|
|
241
|
-
copy. Without them the request is refused. `TOTAL` budgets use existing
|
|
242
|
-
credit and need no consent. The consent constants changed to
|
|
243
|
-
`managed-ads-prospective-daily-v2` with new copy and hash, so clients pinned
|
|
244
|
-
to v1 values must update.
|
|
245
249
|
- **YouTube launch inputs.** `YOUTUBE` launches now require `youtubeStrategy`
|
|
246
250
|
(`CHEAPEST_VIEWS`, `ORGANIC_VIEWS`, `SUBSCRIBERS`,
|
|
247
251
|
`ORGANIC_VIEWS_AND_SUBSCRIBERS` or `ADSENSE_ROI`). They also require
|
|
@@ -334,8 +338,6 @@ Prepared but never published to npm. Its changes ship in 1.0.0.
|
|
|
334
338
|
|
|
335
339
|
### Changed
|
|
336
340
|
|
|
337
|
-
- Make campaign funding consent explicit about daily renewal, advance collection, and unused-fund reconciliation.
|
|
338
|
-
|
|
339
341
|
## [0.7.1] - 2026-08-27
|
|
340
342
|
|
|
341
343
|
### Fixed
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
Dynamoi's MCP server lets your AI assistant promote music for independent
|
|
17
17
|
artists, labels and managers. Ask it how a campaign is doing, build free
|
|
18
|
-
Smart Links, and,
|
|
18
|
+
Smart Links, and, when the artist requests it, launch real Spotify and
|
|
19
19
|
YouTube ad campaigns. It works with whatever distributor the artist already uses.
|
|
20
20
|
|
|
21
21
|
```txt
|
|
@@ -182,18 +182,16 @@ including what did not work.
|
|
|
182
182
|
- **Smart Links are free.** Starter is $25/month per artist, and the plan
|
|
183
183
|
includes monthly campaign credit. Campaigns run from $10 a day. See
|
|
184
184
|
[pricing](https://dynamoi.com/pricing).
|
|
185
|
-
- **
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
the call and charges nothing. The consent values are exported from
|
|
189
|
-
`@dynamoi/mcp/consent`.
|
|
185
|
+
- **Campaign clicks authorize funding.** An authenticated launch, resume or budget
|
|
186
|
+
change uses the existing budget, currency, card and charge-cap checks. The server
|
|
187
|
+
supplies frozen compatibility values for its retained funding history.
|
|
190
188
|
- **Agents never see payment details.** Plans and cards are set up only in the
|
|
191
189
|
[Dynamoi dashboard](https://dynamoi.com/dashboard). Shop checkout tools
|
|
192
190
|
return an unpaid Stripe link; the user pays on Stripe.
|
|
193
191
|
- **Each client gets one of two tool sets**, chosen from the identity it signs
|
|
194
192
|
in with. Reviewed clients and apps that sign in on your own computer
|
|
195
193
|
(Claude Code, Codex, Cursor, VS Code, Gemini CLI, OpenClaw and the `dynamoi`
|
|
196
|
-
CLI) get All
|
|
194
|
+
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
195
|
billing and earnings status, draft preparation, account management and connection links, with no purchases, launches or checkout.
|
|
198
196
|
- **Sign-in is OAuth 2.1**, and every call still checks its scopes and the
|
|
199
197
|
user's role for that artist. See
|
|
@@ -212,6 +210,10 @@ including what did not work.
|
|
|
212
210
|
| `dynamoi_search` | Find artists, campaigns, and Smart Links by name | Reads | Both |
|
|
213
211
|
| `search` / `fetch` | ChatGPT deep research search and fetch | Reads | Both |
|
|
214
212
|
| `dynamoi_list_campaigns` | An artist's campaigns, with type and status filters | Reads | Both |
|
|
213
|
+
| `dynamoi_get_campaign_management` | Bounded campaign lifecycle, targeting and optimization state | Reads | Both |
|
|
214
|
+
| `dynamoi_get_meta_campaign_groups` | Customer-visible Meta analytics for bounded groups of campaigns | Reads | Both |
|
|
215
|
+
| `dynamoi_read_campaign_draft_media` | Reopen an owned draft or read the editor media chooser; preserves private-upload moderation masking | Reads | Full |
|
|
216
|
+
| `dynamoi_list_campaign_drafts` | In-progress campaign drafts and campaignIds to resume setup | Reads | Both |
|
|
215
217
|
| `dynamoi_get_campaign` | One campaign, with optional analytics, delivery status, and countries | Reads | Both |
|
|
216
218
|
| `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
219
|
| `dynamoi_get_growth_audit` | Spotify growth score, recommendations, listener trends, and playlist reach with status and coverage evidence | Reads | Both |
|
|
@@ -245,9 +247,10 @@ including what did not work.
|
|
|
245
247
|
| `dynamoi_get_referrals` | Your referral snapshot; no attribution or commission writes. Pending and available amounts are not approved or paid payouts. | Reads | Both |
|
|
246
248
|
| `dynamoi_get_billing` | Billing status, credit balance, promo limits and masked payment-method display | Reads | Both |
|
|
247
249
|
| `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
|
|
250
|
+
| `dynamoi_get_resume_funding` | Campaign resume-funding breakdown and refusal | Reads | Full |
|
|
249
251
|
| `dynamoi_list_available_countries` | Countries a Smart Campaign or YouTube campaign can target | Reads | Both |
|
|
250
252
|
| `dynamoi_get_campaign_readiness` | Check launch inputs before creating anything | Reads | Both |
|
|
253
|
+
| `dynamoi_read_media_moderation` | Complete moderation receipts with provider, scan time, risk and errors | Reads | Full |
|
|
251
254
|
| `dynamoi_list_media_assets` | Uploaded images and videos that a launch can reuse | Reads | Both |
|
|
252
255
|
| `dynamoi_launch_campaign` | Launch a Smart Campaign or YouTube campaign | Changes data | Full |
|
|
253
256
|
| `dynamoi_update_campaign` | Pause, resume, or change a campaign's budget or end date | Changes data | Full |
|
|
@@ -260,6 +263,15 @@ including what did not work.
|
|
|
260
263
|
| `dynamoi_delete_account` | Preview eligibility and explicitly start irreversible account deletion; cleanup is asynchronous and required records may be retained | Changes data | Full |
|
|
261
264
|
| `dynamoi_update_account_profile` | Preview or explicitly confirm a display name or preferred language change | Changes data | Both |
|
|
262
265
|
| `dynamoi_set_artist_billing_country` | Preview or explicitly confirm an artist checkout-currency suggestion country; existing currency stays fixed | Changes data | Full |
|
|
266
|
+
| `dynamoi_pause_shop_promotion` | Preview and confirm an owned Shop promotion pause; existing safeguards remain authoritative | Changes data | Full |
|
|
267
|
+
| `dynamoi_resume_shop_promotion` | Preview and confirm an owned Shop promotion resume; existing safeguards remain authoritative | Changes data | Full |
|
|
268
|
+
| `dynamoi_restart_shop_promotion` | Preview and confirm an owned Shop promotion restart; existing safeguards remain authoritative | Changes data | Full |
|
|
269
|
+
| `dynamoi_attach_shop_order_video` | Preview and confirm the first video on an owned paid order. | Changes data | Full |
|
|
270
|
+
| `dynamoi_replace_shop_promotion_video` | Preview and confirm an eligible policy replacement. | Changes data | Full |
|
|
271
|
+
| `dynamoi_quote_shop_rebuy_custom` | Read an authorized returning-buyer custom quote. | Reads | Full |
|
|
272
|
+
| `dynamoi_estimate_shop_rebuy_packages` | Read up to ten returning-buyer package estimates. | Reads | Full |
|
|
273
|
+
| `dynamoi_prepare_shop_rebuy_checkout` | Preview and confirm an unpaid checkout bound to the verified buyer and artist. | Changes data | Full |
|
|
274
|
+
| `dynamoi_get_shop_purchase_history` | Read the same localized buyer-safe purchase-history rows and cursor as the web | Reads | Full |
|
|
263
275
|
| `dynamoi_shop_list_orders` | Read your authorized artist’s newest Shop order status and fulfillment timestamps | Reads | Full |
|
|
264
276
|
| `dynamoi_shop_get_quote` | Estimate a one-off YouTube promotion | Reads | Full |
|
|
265
277
|
| `dynamoi_shop_create_checkout` | Create an unpaid Stripe Checkout link for that promotion | Changes data | Full |
|
|
@@ -282,8 +294,7 @@ artist decides whether to apply.
|
|
|
282
294
|
<details>
|
|
283
295
|
<summary><b>Can the assistant spend money on its own?</b></summary>
|
|
284
296
|
|
|
285
|
-
|
|
286
|
-
that exact budget. Keep your client's approval prompt on for tools that change
|
|
297
|
+
Campaign writes require the artist’s instruction and authenticated access. Keep your client's approval prompt on for tools that change
|
|
287
298
|
data, and no tool starts a subscription.
|
|
288
299
|
|
|
289
300
|
</details>
|
|
@@ -323,7 +334,7 @@ The package is ESM-only and built on MCP TypeScript SDK v2.
|
|
|
323
334
|
| --- | --- |
|
|
324
335
|
| `@dynamoi/mcp` | `createDynamoiMcpServer`, `handleMcpHttpRequest`, `getDynamoiToolDefinitions`, `DynamoiMcpToolProfile`, `Phase3Adapter`, tool schemas, About exports, result types, `DYNAMOI_MCP_VERSION` |
|
|
325
336
|
| `@dynamoi/mcp/auth` | `DYNAMOI_BETTER_AUTH_MCP_SCOPES`, `DYNAMOI_MCP_TOOL_SCOPES`, `buildWwwAuthenticateHeader` |
|
|
326
|
-
| `@dynamoi/mcp/consent` |
|
|
337
|
+
| `@dynamoi/mcp/consent` | Frozen funding-history compatibility values and automatic-renewal predicates |
|
|
327
338
|
|
|
328
339
|
A host supplies a `Phase3Adapter` that connects each tool to its services, and
|
|
329
340
|
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,7 @@ var AUDIENCE_ANALYTICS_CONTRACT = {
|
|
|
55
55
|
}),
|
|
56
56
|
responseSchema: MobileAudienceAnalyticsResponseSchema
|
|
57
57
|
},
|
|
58
|
+
parity: { webmcp: { status: "complete", journeys: ["WM-DASHBOARD-audienceAnalytics"], binding: { file: "apps/dashboard/app/dashboard/webmcp/dashboard-bindings.webmcp.generated.ts", export: "audienceAnalyticsWebMcp", tool: "dashboard_audience_analytics", role: "consumer", intermediates: [{ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts", export: "audienceAnalytics" }] } } },
|
|
58
59
|
version: 1
|
|
59
60
|
};
|
|
60
61
|
|
|
@@ -97,6 +98,24 @@ var BILLING_COUNTRY_READ_CONTRACT = {
|
|
|
97
98
|
method: "GET",
|
|
98
99
|
operationId: "getMobileArtistBillingCountry"
|
|
99
100
|
},
|
|
101
|
+
parity: {
|
|
102
|
+
webmcp: {
|
|
103
|
+
binding: {
|
|
104
|
+
export: "billingCountryWebMcp",
|
|
105
|
+
file: "apps/dashboard/app/dashboard/webmcp/dashboard-bindings.webmcp.generated.ts",
|
|
106
|
+
intermediates: [
|
|
107
|
+
{
|
|
108
|
+
export: "billingCountry",
|
|
109
|
+
file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
role: "consumer",
|
|
113
|
+
tool: "dashboard_billing_country"
|
|
114
|
+
},
|
|
115
|
+
journeys: ["WM-DASHBOARD-billingCountry"],
|
|
116
|
+
status: "complete"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
100
119
|
version: 1
|
|
101
120
|
};
|
|
102
121
|
var BILLING_COUNTRY_SET_CONTRACT = {
|
|
@@ -123,11 +142,15 @@ var BILLING_COUNTRY_SET_CONTRACT = {
|
|
|
123
142
|
},
|
|
124
143
|
mobile: {
|
|
125
144
|
...mobile,
|
|
126
|
-
bodySchema: z2.object({
|
|
145
|
+
bodySchema: z2.object({
|
|
146
|
+
countryCode: z2.string().trim().min(1),
|
|
147
|
+
expectedCountryCode: z2.string().nullable().default(null)
|
|
148
|
+
}),
|
|
127
149
|
idempotent: true,
|
|
128
150
|
method: "PATCH",
|
|
129
151
|
operationId: "patchMobileArtistBillingCountry"
|
|
130
152
|
},
|
|
153
|
+
parity: { webmcp: { status: "complete", journeys: ["WM-DASHBOARD-billingCountrySet"], binding: { file: "apps/dashboard/app/dashboard/webmcp/dashboard-bindings.webmcp.generated.ts", export: "billingCountrySetWebMcp", tool: "dashboard_set_artist_billing_country", intermediates: [{ file: "apps/dashboard/app/dashboard/webmcp/account-commands.ts", export: "billingCountrySet" }] } } },
|
|
131
154
|
version: 1
|
|
132
155
|
};
|
|
133
156
|
|
|
@@ -272,7 +295,8 @@ var GROWTH_AUDIT_CONTRACT = {
|
|
|
272
295
|
cli: partial,
|
|
273
296
|
ios: partial,
|
|
274
297
|
mcp: partial,
|
|
275
|
-
web: partial
|
|
298
|
+
web: partial,
|
|
299
|
+
webmcp: { status: "complete", journeys: ["WM-DASHBOARD-growthAudit"], binding: { file: "apps/dashboard/app/dashboard/webmcp/dashboard-bindings.webmcp.generated.ts", export: "growthAuditWebMcp", tool: "dashboard_growth_audit", role: "consumer", intermediates: [{ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts", export: "growthAudit" }] } }
|
|
276
300
|
},
|
|
277
301
|
version: 1
|
|
278
302
|
};
|
|
@@ -360,6 +384,7 @@ var PLAYLIST_ANALYTICS_CONTRACT = {
|
|
|
360
384
|
platforms: ["android", "ios"],
|
|
361
385
|
responseSchema: MobilePlaylistAnalyticsResponseSchema
|
|
362
386
|
},
|
|
387
|
+
parity: { webmcp: { status: "complete", journeys: ["WM-DASHBOARD-playlistAnalytics"], binding: { file: "apps/dashboard/app/dashboard/webmcp/dashboard-bindings.webmcp.generated.ts", export: "playlistAnalyticsWebMcp", tool: "dashboard_playlist_analytics", role: "consumer", intermediates: [{ file: "apps/dashboard/app/dashboard/webmcp/insight-reads.ts", export: "playlistAnalytics" }] } } },
|
|
363
388
|
version: 1
|
|
364
389
|
};
|
|
365
390
|
|
|
@@ -377,6 +402,8 @@ var DYNAMOI_BETTER_AUTH_MCP_SCOPES = [
|
|
|
377
402
|
"dynamoi:smart_links.write"
|
|
378
403
|
];
|
|
379
404
|
var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
405
|
+
dynamoi_get_meta_campaign_groups: ["dynamoi:read"],
|
|
406
|
+
dynamoi_get_campaign_management: ["dynamoi:read"],
|
|
380
407
|
dynamoi_about: [],
|
|
381
408
|
dynamoi_add_campaign_funds: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
382
409
|
dynamoi_apply_for_distribution: [
|
|
@@ -428,7 +455,10 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
428
455
|
dynamoi_launch_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
|
|
429
456
|
dynamoi_list_artists: ["dynamoi:read"],
|
|
430
457
|
dynamoi_list_available_countries: ["dynamoi:read"],
|
|
458
|
+
dynamoi_read_campaign_draft_media: ["dynamoi:read"],
|
|
459
|
+
dynamoi_list_campaign_drafts: ["dynamoi:read"],
|
|
431
460
|
dynamoi_list_campaigns: ["dynamoi:read"],
|
|
461
|
+
dynamoi_read_media_moderation: ["dynamoi:read"],
|
|
432
462
|
dynamoi_list_media_assets: ["dynamoi:read"],
|
|
433
463
|
dynamoi_list_smart_links: ["dynamoi:read"],
|
|
434
464
|
dynamoi_manage_smart_campaign_creative: [
|
|
@@ -443,6 +473,15 @@ var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
|
443
473
|
[BILLING_COUNTRY_SET_CONTRACT.mcp.definition.name]: BILLING_COUNTRY_SET_CONTRACT.mcp.scopes,
|
|
444
474
|
dynamoi_shop_create_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
445
475
|
dynamoi_shop_get_quote: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
476
|
+
dynamoi_pause_shop_promotion: ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"],
|
|
477
|
+
dynamoi_resume_shop_promotion: ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"],
|
|
478
|
+
dynamoi_restart_shop_promotion: ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"],
|
|
479
|
+
dynamoi_attach_shop_order_video: ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"],
|
|
480
|
+
dynamoi_replace_shop_promotion_video: ["dynamoi:read", "dynamoi:campaign.write", "dynamoi:mcp.full"],
|
|
481
|
+
dynamoi_quote_shop_rebuy_custom: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
482
|
+
dynamoi_estimate_shop_rebuy_packages: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
483
|
+
dynamoi_prepare_shop_rebuy_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
484
|
+
dynamoi_get_shop_purchase_history: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
446
485
|
dynamoi_shop_list_orders: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
447
486
|
dynamoi_smart_campaign_ad_copy: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
448
487
|
dynamoi_smart_link_controls: ["dynamoi:read", "dynamoi:smart_links.write"],
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
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;
|
package/dist/campaign-limits.js
CHANGED
|
@@ -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,15 @@ var USD_BUDGET_MINIMUMS = {
|
|
|
12
12
|
},
|
|
13
13
|
youtube: { dailyUsd: MIN_DAILY_CAMPAIGN_BUDGET_USD, totalUsd: 75 }
|
|
14
14
|
};
|
|
15
|
+
var CAMPAIGN_LIMITS = { CAMPAIGN_CREATIVE_SELECTION_LIMIT, CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT, MIN_CAMPAIGN_DAYS, MAX_SOURCE_AUDIO_MIB, MAX_SOURCE_AUDIO_BYTES, USD_BUDGET_MINIMUMS };
|
|
16
|
+
|
|
17
|
+
// src/campaign-limits.ts
|
|
18
|
+
var { CAMPAIGN_CREATIVE_SELECTION_LIMIT: CAMPAIGN_CREATIVE_SELECTION_LIMIT2, CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT: CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT2, MIN_CAMPAIGN_DAYS: MIN_CAMPAIGN_DAYS2, MAX_SOURCE_AUDIO_MIB: MAX_SOURCE_AUDIO_MIB2, MAX_SOURCE_AUDIO_BYTES: MAX_SOURCE_AUDIO_BYTES2, USD_BUDGET_MINIMUMS: USD_BUDGET_MINIMUMS2 } = CAMPAIGN_LIMITS;
|
|
15
19
|
export {
|
|
16
|
-
CAMPAIGN_CREATIVE_SELECTION_LIMIT,
|
|
17
|
-
CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT,
|
|
18
|
-
MAX_SOURCE_AUDIO_BYTES,
|
|
19
|
-
MAX_SOURCE_AUDIO_MIB,
|
|
20
|
-
MIN_CAMPAIGN_DAYS,
|
|
21
|
-
USD_BUDGET_MINIMUMS
|
|
20
|
+
CAMPAIGN_CREATIVE_SELECTION_LIMIT2 as CAMPAIGN_CREATIVE_SELECTION_LIMIT,
|
|
21
|
+
CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT2 as CAMPAIGN_CREATIVE_TOTAL_SELECTION_LIMIT,
|
|
22
|
+
MAX_SOURCE_AUDIO_BYTES2 as MAX_SOURCE_AUDIO_BYTES,
|
|
23
|
+
MAX_SOURCE_AUDIO_MIB2 as MAX_SOURCE_AUDIO_MIB,
|
|
24
|
+
MIN_CAMPAIGN_DAYS2 as MIN_CAMPAIGN_DAYS,
|
|
25
|
+
USD_BUDGET_MINIMUMS2 as USD_BUDGET_MINIMUMS
|
|
22
26
|
};
|
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
|
-
|
|
81
|
-
isCurrentFundingConsent,
|
|
71
|
+
currentCampaignFundingPair,
|
|
82
72
|
isCurrentProspectiveBudgetFundingConsent,
|
|
83
73
|
isCurrentTotalBudgetFundingConsent,
|
|
84
74
|
isRenewableProspectiveBudgetFundingConsent
|
package/dist/flow-types.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { buildWwwAuthenticateHeader, DYNAMOI_BETTER_AUTH_MCP_SCOPES, DYNAMOI_MCP_TOOL_SCOPES, } from "./auth/protected-resource";
|
|
2
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 {
|
|
4
|
+
export { DeleteAccountSchema, GetArtistBillingCountrySchema, SetArtistBillingCountrySchema, UpdateAccountProfileSchema, } from "./server/account-settings-tools";
|
|
5
5
|
export { ArtistIntakeInputSchema } from "./server/artist-intake-tools";
|
|
6
6
|
export type { ChannelResults } from "./server/channel-results-schema";
|
|
7
7
|
export { ChannelResultsSchema } from "./server/channel-results-schema";
|
|
@@ -16,7 +16,7 @@ export { CreativeGenerationSchema, CreativeSelectionSchema, SmartCampaignCreativ
|
|
|
16
16
|
export { DynamoiPreviewSmartLinkThemesInputSchema } from "./server/smart-link-theme-preview";
|
|
17
17
|
export { DynamoiCreateSmartLinkFromSpotifyInputSchema, DynamoiCreateSmartLinksFromSpotifyArtistInputSchema, DynamoiGetSmartLinkAnalyticsInputSchema, DynamoiGetSmartLinkArtistSettingsInputSchema, DynamoiGetSmartLinkInputSchema, DynamoiListSmartLinksInputSchema, DynamoiSmartLinkControlsInputSchema, 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";
|
|
18
18
|
export { DYNAMOI_SUPPORT_CATEGORIES, type DynamoiContactSupportInput, DynamoiContactSupportInputSchema, SUPPORT_TOOL_DEFINITIONS, } from "./server/support-tools";
|
|
19
|
-
export { DateRangeSchema, DynamoiAddCampaignFundsInputSchema, DynamoiClaimReferralCodeInputSchema, DynamoiGetActionCenterInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetAudienceAnalyticsInputSchema, DynamoiGetAuditLogInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetEarningsInputSchema, DynamoiGetGrowthAuditInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetPlaylistAnalyticsInputSchema, DynamoiGetReferralsInputSchema, DynamoiGetResumeFundingInputSchema, DynamoiGetTeamInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiManageTeamInputSchema, DynamoiManageYoutubeDraftInputSchema, DynamoiPauseCampaignInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiSmartCampaignAdCopyInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, ToolFormatSchema, } from "./server/tools";
|
|
19
|
+
export { DateRangeSchema, DynamoiAddCampaignFundsInputSchema, DynamoiClaimReferralCodeInputSchema, DynamoiGetActionCenterInputSchema, DynamoiGetArtistAnalyticsInputSchema, DynamoiGetArtistInputSchema, DynamoiGetAudienceAnalyticsInputSchema, DynamoiGetAuditLogInputSchema, DynamoiGetBillingInputSchema, DynamoiGetCampaignAnalyticsInputSchema, DynamoiGetCampaignDeploymentStatusInputSchema, DynamoiGetCampaignInputSchema, DynamoiGetCampaignReadinessInputSchema, DynamoiGetCurrentUserInputSchema, DynamoiGetEarningsInputSchema, DynamoiGetGrowthAuditInputSchema, DynamoiGetOnboardingStatusInputSchema, DynamoiGetPlatformStatusInputSchema, DynamoiGetPlaylistAnalyticsInputSchema, DynamoiGetReferralsInputSchema, DynamoiGetResumeFundingInputSchema, DynamoiGetTeamInputSchema, DynamoiLaunchCampaignInputSchema, DynamoiListArtistsInputSchema, DynamoiListAvailableCountriesInputSchema, DynamoiListCampaignDraftsInputSchema, DynamoiListCampaignsInputSchema, DynamoiListMediaAssetsInputSchema, DynamoiManageTeamInputSchema, DynamoiManageYoutubeDraftInputSchema, DynamoiPauseCampaignInputSchema, DynamoiResumeCampaignInputSchema, DynamoiSearchInputSchema, DynamoiSmartCampaignAdCopyInputSchema, DynamoiStartMetaConnectionInputSchema, DynamoiStartYoutubeChannelLinkInputSchema, DynamoiUpdateBudgetInputSchema, DynamoiUpdateCampaignInputSchema, PHASE_1_TOOL_DEFINITIONS, PHASE_2_TOOL_DEFINITIONS, PHASE_ONBOARDING_TOOL_DEFINITIONS, ToolFormatSchema, } from "./server/tools";
|
|
20
20
|
export { PHASE_3_TOOL_DEFINITIONS } from "./server/workflow-tools";
|
|
21
21
|
export type { WorkspaceData } from "./server/workspace/data";
|
|
22
22
|
export { openWorkspace, WORKSPACE_TOOL_DEFINITION, type WorkspaceReaders, } from "./server/workspace/tool";
|
|
@@ -27,3 +27,9 @@ export { handleMcpHttpRequest } from "./transport/http";
|
|
|
27
27
|
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";
|
|
28
28
|
export { DYNAMOI_MCP_VERSION } from "./version";
|
|
29
29
|
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";
|
|
30
|
+
export { DRAFT_REOPEN_CONTRACT, MEDIA_CATALOG_CONTRACT, MEDIA_UPLOAD_START_CONTRACT, MEDIA_UPLOAD_STATUS_CONTRACT, MEDIA_UPLOAD_COMPLETE_CONTRACT, MEDIA_UPLOAD_ABORT_CONTRACT } from "./server/drafts-media.generated";
|
|
31
|
+
export { DraftMediaReadInputSchema } from "./server/draft-media-read";
|
|
32
|
+
export { DynamoiShopPauseInputSchema, DynamoiShopResumeInputSchema, DynamoiShopRestartInputSchema } from "./server/shop-order-status";
|
|
33
|
+
export { DynamoiShopHistoryInputSchema } from "./server/shop-purchase-history";
|
|
34
|
+
export { DynamoiShopAttachVideoInputSchema, DynamoiShopReplaceVideoInputSchema } from "./server/shop-order-video";
|
|
35
|
+
export { DynamoiShopRebuyCustomInputSchema, DynamoiShopRebuyPresetsInputSchema, DynamoiShopRebuyCheckoutInputSchema } from "./server/shop-rebuy";
|