@dynamoi/mcp 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CAPABILITY_PARITY.md +20 -13
- package/CHANGELOG.md +105 -0
- package/README.md +33 -4
- package/dist/auth/protected-resource.d.ts +11 -1
- package/dist/auth/protected-resource.js +106 -11
- package/dist/consent.d.ts +83 -4
- package/dist/consent.js +61 -11
- package/dist/flow-types.d.ts +73 -3
- package/dist/index.d.ts +14 -6
- package/dist/index.js +2571 -616
- package/dist/readiness-types.d.ts +21 -1
- package/dist/server/about.d.ts +17 -14
- package/dist/server/account-schema.generated.d.ts +62 -0
- package/dist/server/channel-results-schema.d.ts +104 -0
- package/dist/server/create-server.d.ts +40 -30
- package/dist/server/distribution-tools.d.ts +30 -23
- package/dist/server/messaging.d.ts +0 -1
- package/dist/server/openai-tools.d.ts +30 -23
- package/dist/server/output-schemas.d.ts +367 -75
- package/dist/server/shop-tools.d.ts +36 -29
- package/dist/server/smart-link-tools.d.ts +511 -73
- package/dist/server/tools.d.ts +740 -220
- package/dist/server/workflow-tools.d.ts +97 -86
- package/dist/server/workspace/data.d.ts +67 -0
- package/dist/server/workspace/tool.d.ts +82 -0
- package/dist/server/youtube-channel-data-schema.d.ts +105 -0
- package/dist/server/youtube-strategy-guide.d.ts +103 -0
- package/dist/transport/http.d.ts +0 -1
- package/dist/types.d.ts +131 -12
- package/dist/version.d.ts +0 -1
- package/dist/youtube-metrics.d.ts +135 -0
- package/dist/youtube-metrics.js +114 -0
- package/package.json +48 -12
- package/server.json +1 -1
- package/dist/auth/protected-resource.d.ts.map +0 -1
- package/dist/auth/protected-resource.js.map +0 -9
- package/dist/chunk-3htwe57a.js +0 -85
- package/dist/chunk-3htwe57a.js.map +0 -10
- package/dist/chunk-n5xmtwjj.js +0 -9
- package/dist/chunk-n5xmtwjj.js.map +0 -10
- package/dist/consent.d.ts.map +0 -1
- package/dist/consent.js.map +0 -9
- package/dist/flow-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -28
- package/dist/readiness-types.d.ts.map +0 -1
- package/dist/server/about.d.ts.map +0 -1
- package/dist/server/create-server.d.ts.map +0 -1
- package/dist/server/distribution-tools.d.ts.map +0 -1
- package/dist/server/instructions.d.ts +0 -3
- package/dist/server/instructions.d.ts.map +0 -1
- package/dist/server/messaging.d.ts.map +0 -1
- package/dist/server/onboarding-tool-definitions.d.ts +0 -106
- package/dist/server/onboarding-tool-definitions.d.ts.map +0 -1
- package/dist/server/openai-tools.d.ts.map +0 -1
- package/dist/server/output-schemas.d.ts.map +0 -1
- package/dist/server/playbook-resources.d.ts +0 -3
- package/dist/server/playbook-resources.d.ts.map +0 -1
- package/dist/server/prompts.d.ts +0 -3
- package/dist/server/prompts.d.ts.map +0 -1
- package/dist/server/resources.d.ts +0 -4
- package/dist/server/resources.d.ts.map +0 -1
- package/dist/server/shared-schemas.d.ts +0 -14
- package/dist/server/shared-schemas.d.ts.map +0 -1
- package/dist/server/shop-tools.d.ts.map +0 -1
- package/dist/server/smart-link-theme-preview.d.ts +0 -73
- package/dist/server/smart-link-theme-preview.d.ts.map +0 -1
- package/dist/server/smart-link-tools.d.ts.map +0 -1
- package/dist/server/tools.d.ts.map +0 -1
- package/dist/server/workflow-tools.d.ts.map +0 -1
- package/dist/transport/http.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
package/CAPABILITY_PARITY.md
CHANGED
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Release truth
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The current source does **not** implement 100% dashboard,
|
|
6
6
|
iOS, Android and MCP workflow parity. Universal client registration and full
|
|
7
7
|
catalog access are authorization capabilities, not evidence of workflow parity.
|
|
8
8
|
The canonical catalog owner is `getDynamoiToolDefinitions` in
|
|
9
9
|
`src/server/create-server.ts`; do not maintain a second availability registry here.
|
|
10
10
|
|
|
11
|
-
The
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
The full profile serves 37 tools. The directory profile advertises 24 tools:
|
|
12
|
+
22 Dynamoi operations and the OpenAI Connector `search` and `fetch` tools.
|
|
13
|
+
It uses separate directory-only tools for Smart Link description and artist
|
|
14
|
+
settings updates. The prior combined schema remains callable for compatibility
|
|
15
|
+
requests from already-approved clients. On `/mcp`, the host picks the profile
|
|
16
|
+
from the verified OAuth client ID; `/mcp/directory` always serves the directory
|
|
17
|
+
profile. Every other authenticated client on `/mcp` gets the full profile,
|
|
18
|
+
whatever its vendor or client-ID format. Each call still requires its own
|
|
19
|
+
scopes and resource RBAC; the Shop tools also require `dynamoi:mcp.full`.
|
|
20
|
+
Unauthenticated requests get the directory profile, where only discovery
|
|
21
|
+
methods, the public `dynamoi_about` tool and the `dynamoi://about` resource
|
|
22
|
+
work. Everything else is refused.
|
|
20
23
|
|
|
21
24
|
## Implemented boundaries and gaps
|
|
22
25
|
|
|
@@ -24,11 +27,11 @@ only discovery methods, the public `dynamoi_about` tool and the
|
|
|
24
27
|
| --- | --- | --- |
|
|
25
28
|
| Account/artist orientation | Account overview, roster and single-artist reads | Organization invites/roles, full artist settings and account deletion |
|
|
26
29
|
| Smart Links | Spotify ingestion, list/detail, description, artist theme/pixels, per-link analytics and theme previews | Full studio/availability controls, every field, aggregate analytics and promotion request workflow |
|
|
27
|
-
| Campaigns | List/detail, provider analytics, readiness, existing-asset launch, pause/resume and eligible single-provider budgets | Draft state machines, source uploads, creative generation/selection/approval, screening, existing targeting edits and multi-provider budgets |
|
|
28
|
-
| Analytics | Campaign-provider rollups
|
|
30
|
+
| Campaigns | List/detail, provider analytics, readiness, existing-asset launch, YouTube draft inspect/discard, pause/resume and eligible single-provider budgets | Draft state machines, source uploads, creative generation/selection/approval, screening, existing targeting edits and multi-provider budgets |
|
|
31
|
+
| Analytics | Campaign-provider rollups, growth audit (`dynamoi_get_growth_audit`), tracked playlist analytics (`dynamoi_get_playlist_analytics`), streaming audience analytics (`dynamoi_get_audience_analytics`), per-link analytics and observed YouTube channel data (`dynamoi_get_youtube_channel_data`) | Artist-wide Smart Link aggregation |
|
|
29
32
|
| Connections | Meta and YouTube browser OAuth handoffs and status reads | Headless provider login, owner selection or bypass of ownership verification |
|
|
30
33
|
| Distribution | Five scored requirements, application state and explicit adult-attested application submission for manual review | Agreement execution, release intake/catalog, rights/splits, royalties, tax, payout and takedown workflows |
|
|
31
|
-
| Billing and Shop | Managed billing observations; full-profile Shop quote and unpaid Stripe checkout creation | Managed subscription changes, invoice/funding workflows or agent payment settlement. Shop checkout is not a campaign launch or paid order. |
|
|
34
|
+
| Billing and Shop | Managed billing observations and read-only existing-campaign resume funding breakdown (`dynamoi_get_resume_funding`); full-profile Shop quote and unpaid Stripe checkout creation | Managed subscription changes, invoice/funding workflows or agent payment settlement. Shop checkout is not a campaign launch or paid order. |
|
|
32
35
|
|
|
33
36
|
A real campaign launch, budget edit or pause/resume runs the same shared
|
|
34
37
|
backend functions as web and mobile. Operations that need automatic daily card
|
|
@@ -56,3 +59,7 @@ standalone SSE subscription channel and no session resumption. CIMD uses the
|
|
|
56
59
|
`mcp-2026-07-28` metadata profile. Authentication challenges, discovery and
|
|
57
60
|
both protocol eras must still be tested against the deployed edge and origin.
|
|
58
61
|
Do not advertise universal host compatibility without host journey tests.
|
|
62
|
+
|
|
63
|
+
## Read-only workspace
|
|
64
|
+
|
|
65
|
+
`dynamoi_open_workspace` exposes a bounded authorized artist roster and an MCP Apps HTML resource with global/thread entrypoints. The view reads existing campaign and Smart Link records through individually registered directory read tools. Selected context is explicit and bounded; only the selected record and artist IDs, displayed name/status and qualified observed results are shared, with no billing fields, raw records or spend. Host support is capability-detected. The existing theme-preview resource is retained. Composer mentions, settings, file viewers, events and public host acceptance are not implemented or claimed.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,111 @@ and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.2] - 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **YouTube metric dictionary.** `@dynamoi/mcp/youtube-metrics` is the single owner of what each YouTube number is, its source field, freshness clock and the claims agents must not make. `dynamoi_get_campaign` `analytics` for YouTube campaigns additively returns `viewsThroughAd` (Google Ads clicks) and `subscribersDirectlyAttributed` (credited by the ad account). `totals.clicks` is unchanged.
|
|
15
|
+
- **Full-profile Smart Link Studio tools.** `dynamoi_update_smart_link_release_settings` sparsely updates one link's release video, destination visibility and description, and `dynamoi_update_smart_link_artist_hub_settings` updates an artist's hub introduction, official profile links and service order. Both reuse the native Studio mutation owners, keep the Smart Link write scope and are omitted from the directory profile; the approved `dynamoi_update_smart_link` schema is unchanged. Full-profile `dynamoi_get_smart_link` additively returns `artistHub` (with `includeArtistSettings=true`) and `releaseSettings` so partial or ambiguous Studio saves can be read back, and the two mutation results carry the same readback; the directory profile is unchanged. The full profile now has 37 tools.
|
|
16
|
+
- **Single-purpose Smart Link update tools.** The directory catalog now advertises separate tools for a link's public description and artist-level theme or pixel settings. The prior `dynamoi_update_smart_link` schema remains in the full catalog and as an exact-name, scope-checked compatibility call for previously approved directory clients; it is omitted from new directory listings.
|
|
17
|
+
- **Views per ad click.** `dynamoi_get_campaign` `channelResults.viewsPerAdClick` is the playlist waterfall signal: channel views divided by ad clicks from campaign analytics, over only the days in the window that have both. It is null when ad clicks are unavailable or no day qualifies.
|
|
18
|
+
- **`dynamoi_get_youtube_channel_data`.** A read-only tool for the artist's observed YouTube channel data, one dataset per call: channel, video, country, traffic source (views YouTube tags `ADVERTISING` versus every other source, which is not organic proof), search term, subscribed status, device, operating system, playback location, content type and the video catalog. Each response lists coverage (days YouTube has not delivered are unknown, never zero), the data lag, and the artist's YouTube campaigns with strategy and dates. It pages with `nextCursor` and refuses a channel that needs reconnecting. It is in the directory profile. The full profile now has 30 tools and the directory profile 19.
|
|
19
|
+
- **Continued views type.** `GetCampaignAnalyticsJsonData` now declares `adNetworkReportedContinuedViews`, matching the runtime output.
|
|
20
|
+
- **Continued views.** Campaign analytics for YouTube campaigns (`dynamoi_get_campaign` `analytics`) add `adNetworkReportedContinuedViews`: organic views directly attributed, meaning the follow-on views the ad account credits to the campaign by click date. The credit stays provisional for two days. Whether it includes the first watch after the click is unconfirmed, and it is not YouTube's channel view count.
|
|
21
|
+
- **`dynamoi_manage_youtube_draft`** (full profile). Inspect an artist's open
|
|
22
|
+
YouTube draft after an interrupted launch, or discard it when the user
|
|
23
|
+
explicitly asks. Discard requires `expectedUpdatedAt` from inspect and
|
|
24
|
+
cannot be undone.
|
|
25
|
+
- **`.mcp.json`** at the repository root, so clients and directories that
|
|
26
|
+
read it can connect to `https://dynamoi.com/mcp`.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Publish map-free artifacts with an exact file allowlist (#7717).
|
|
31
|
+
|
|
32
|
+
- **YouTube strategy names.** The strategies are now labeled Views, Watch Time,
|
|
33
|
+
Subscribers, Channel Growth and Revenue (formerly Maximize Views, Organic
|
|
34
|
+
Views, Subscriber Growth, Organic Views & Subscribers and Revenue
|
|
35
|
+
Optimization) in tool descriptions, the strategy guide and the About text.
|
|
36
|
+
The enum values (`CHEAPEST_VIEWS`, `ORGANIC_VIEWS`, `SUBSCRIBERS`,
|
|
37
|
+
`ORGANIC_VIEWS_AND_SUBSCRIBERS`, `ADSENSE_ROI`) are unchanged.
|
|
38
|
+
- **`update_goals` keeps the strategy in step.** `dynamoi_update_campaign`
|
|
39
|
+
`update_goals` now stores the matching goal-based strategy
|
|
40
|
+
(Watch Time, Subscribers or Channel Growth) with the new goals and returns it
|
|
41
|
+
as `strategy` (null when it is unchanged); Revenue and Views campaigns keep
|
|
42
|
+
their strategy. The change is
|
|
43
|
+
recorded in the campaign's strategy history, and archived campaigns are
|
|
44
|
+
refused.
|
|
45
|
+
- **Analytics spend in the artist's currency.** `dynamoi_get_campaign_analytics`, `dynamoi_get_artist_analytics` and `dynamoi_get_campaign` `analytics` now show spend, CPC and CPM in the artist's currency. USD artists are unchanged. When an amount cannot be shown in the artist's currency, `spend`, `cpc` and `cpm` are `null` (rendered as an em dash in summaries) with one warning; impressions, clicks and CTR are unaffected. The `spend` fields of `GetArtistAnalyticsJsonData` are now typed `MoneyDisplay | null`, as the campaign type already declared.
|
|
46
|
+
- **Honest view labels for YouTube campaigns.** YouTube credits ad clicks that
|
|
47
|
+
land in a playlist mostly to PLAYLIST and SUBSCRIBER, not ADVERTISING, so
|
|
48
|
+
"everything but ADVERTISING is organic" counted ad sessions as organic.
|
|
49
|
+
`dynamoi_get_campaign` `channelResults.trafficSources` now reports
|
|
50
|
+
`advertisingSourceViews` (YouTube-tagged ADVERTISING) and `otherSourceViews`
|
|
51
|
+
instead of `paidViews` and `organicViews`, and the summary says other-source
|
|
52
|
+
views are not organic proof. The strategy guide separates campaign-period
|
|
53
|
+
lift (views above the pre-campaign baseline, mostly ad sessions) from
|
|
54
|
+
organic lift (growth in sources the ads do not touch, or lift that persists
|
|
55
|
+
after spend stops), and says neither YouTube traffic sources nor the ad
|
|
56
|
+
network's continued views are organic proof. Server instructions use the
|
|
57
|
+
same vocabulary. The `trafficClass` row field of `dynamoi_get_youtube_channel_data`
|
|
58
|
+
is unchanged, but its description now says `organic` only groups sources.
|
|
59
|
+
- **"The ad network" vocabulary.** Server instructions and the YouTube
|
|
60
|
+
strategy guide now tell agents to say "the ad network" when reporting to
|
|
61
|
+
users (Google may be named once; do not repeat "Google Ads"). Summary text
|
|
62
|
+
shows the Google platform as "Ad network" and the geo target ID column as
|
|
63
|
+
"Geo Target ID". Enum values, field names and JSON keys are unchanged.
|
|
64
|
+
|
|
65
|
+
### Fixed
|
|
66
|
+
|
|
67
|
+
- **Bounded observer.** A hung `onToolCall` observer no longer delays a tool
|
|
68
|
+
result. The server waits up to `observerTimeoutMs` (default 3000) and then
|
|
69
|
+
answers, absorbing any late rejection. Observer failures still never change
|
|
70
|
+
the result.
|
|
71
|
+
- **Directory catalog count.** The README now states the directory profile's
|
|
72
|
+
19 tools (17 Dynamoi tools plus `search` and `fetch`).
|
|
73
|
+
- **YouTube budget minimum.** The server instructions said agents could
|
|
74
|
+
launch a YouTube campaign with a $50 total budget. The enforced minimum is
|
|
75
|
+
$75 total.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- **Daily funding consent v6.** The consent constants are now
|
|
80
|
+
`managed-ads-prospective-daily-v6` with one-sentence copy and a new hash:
|
|
81
|
+
"Charge my default payment method daily for this campaign's budget, until
|
|
82
|
+
I pause or end it." The rest of the charging terms are the Terms of Service
|
|
83
|
+
section on automatic daily charges, as for total budgets; the funding terms
|
|
84
|
+
are unchanged. `dynamoi_launch_campaign` and `dynamoi_update_campaign`
|
|
85
|
+
(`resume` and `update_budget`) refuse the v5, v4, v3 and v2 values, so
|
|
86
|
+
clients pinned to them must update. The v5 constants are exported as
|
|
87
|
+
`PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_*`. Campaigns that accepted v2, v3,
|
|
88
|
+
v4 or v5 keep renewing under the consent they accepted.
|
|
89
|
+
- **Daily funding consent v5.** The consent constants are now
|
|
90
|
+
`managed-ads-prospective-daily-v5`. The copy drops the funding time zone;
|
|
91
|
+
the funding terms are unchanged and get a new hash. `dynamoi_launch_campaign` and `dynamoi_update_campaign` (`resume`
|
|
92
|
+
and `update_budget`) refuse the v4, v3 and v2 values, so clients pinned to
|
|
93
|
+
them must update. The v4 constants are exported as
|
|
94
|
+
`PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_*`. Campaigns that accepted v2, v3
|
|
95
|
+
or v4 keep renewing under the consent they accepted.
|
|
96
|
+
- **Daily funding consent v4.** The consent constants are now
|
|
97
|
+
`managed-ads-prospective-daily-v4` with shorter copy and a new hash. The
|
|
98
|
+
copy names the payment method, says credits and campaign funds apply first,
|
|
99
|
+
and says unused funds stay available. The funding terms are unchanged from
|
|
100
|
+
v3. `dynamoi_launch_campaign` and
|
|
101
|
+
`dynamoi_update_campaign` (`resume` and `update_budget`) refuse the v3 and
|
|
102
|
+
v2 values, so clients pinned to them must update. The v3 constants are
|
|
103
|
+
exported as `PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_*`. Campaigns that
|
|
104
|
+
accepted v2 or v3 keep renewing under the consent they accepted.
|
|
105
|
+
`isCurrentProspectiveBudgetFundingConsent` reports whether a submitted
|
|
106
|
+
version and hash are exactly the current pair.
|
|
107
|
+
- **Daily funding consent v3.** The consent constants are now
|
|
108
|
+
`managed-ads-prospective-daily-v3` with new copy and hash. A launch or resume
|
|
109
|
+
of a `DAILY` campaign funds the rest of today and all of tomorrow in
|
|
110
|
+
one charge, then each following day up to one hour before it starts. `dynamoi_launch_campaign` and `dynamoi_update_campaign` (`resume`
|
|
111
|
+
and `update_budget`) refuse the v2 values, so clients pinned to v2 must
|
|
112
|
+
update. Campaigns that accepted v2 keep renewing under v2.
|
|
113
|
+
- **Channel results.** `dynamoi_get_campaign` `channelResults` gains a `pending` status for windows YouTube has not delivered yet, reporting the day loaded data runs through instead of zeros.
|
|
114
|
+
|
|
10
115
|
## [1.0.1] - 2026-09-23
|
|
11
116
|
|
|
12
117
|
### Changed
|
package/README.md
CHANGED
|
@@ -158,8 +158,8 @@ signed in, not from anything the client claims about itself.
|
|
|
158
158
|
|
|
159
159
|
| Catalog | Who gets it | What it includes |
|
|
160
160
|
| --- | --- | --- |
|
|
161
|
-
| **Directory** | Every client on `https://dynamoi.com/mcp/directory` (used by agent-directory listings such as the Dynamoi Claude plugin), the published ChatGPT app on `/mcp`, and requests made before sign-in |
|
|
162
|
-
| **Full** | Every other signed-in client on `https://dynamoi.com/mcp`, such as Claude custom connectors, Claude Code, Cursor, VS Code, Gemini CLI, Codex CLI, and custom agents | All
|
|
161
|
+
| **Directory** | Every client on `https://dynamoi.com/mcp/directory` (used by agent-directory listings such as the Dynamoi Claude plugin), the published ChatGPT app on `/mcp`, and requests made before sign-in | 24 review-safe advertised tools: reads, Smart Links, distribution, and About. No billing, campaign launch or campaign changes, platform connection starters, or Shop checkout. |
|
|
162
|
+
| **Full** | Every other signed-in client on `https://dynamoi.com/mcp`, such as Claude custom connectors, Claude Code, Cursor, VS Code, Gemini CLI, Codex CLI, and custom agents | All 37 tools, plus the Dynamoi prompts and reference resources |
|
|
163
163
|
|
|
164
164
|
Signing in does not skip permission checks. Every tool call still needs its
|
|
165
165
|
OAuth scopes, and the user's role must allow access to the artist, campaign,
|
|
@@ -173,6 +173,7 @@ start an action with an outside provider.
|
|
|
173
173
|
| Tool | What it does | Access | Catalog |
|
|
174
174
|
| --- | --- | --- | --- |
|
|
175
175
|
| `dynamoi_about` | What Dynamoi is and how to start. Works before sign-in. | Reads | Both |
|
|
176
|
+
| `dynamoi_open_workspace` | Open a read-only workspace for the authorized artist roster; supported hosts can browse campaigns and Smart Links | Reads | Both |
|
|
176
177
|
| `dynamoi_get_account_overview` | Signed-in account, access counts and suggested next steps | Reads | Both |
|
|
177
178
|
| `dynamoi_list_artists` | Artist roster, or one artist's profile and readiness | Reads | Both |
|
|
178
179
|
| `dynamoi_search` | Find artists, campaigns, and Smart Links by name | Reads | Both |
|
|
@@ -180,6 +181,10 @@ start an action with an outside provider.
|
|
|
180
181
|
| `dynamoi_list_campaigns` | An artist's campaigns, with type and status filters | Reads | Both |
|
|
181
182
|
| `dynamoi_get_campaign` | One campaign, with optional analytics, delivery status, and countries | Reads | Both |
|
|
182
183
|
| `dynamoi_get_artist_analytics` | Artist-level analytics across campaigns | Reads | Both |
|
|
184
|
+
| `dynamoi_get_growth_audit` | Spotify growth score, recommendations, listener trends, and playlist reach with status and coverage evidence | Reads | Both |
|
|
185
|
+
| `dynamoi_get_playlist_analytics` | Tracked playlist placements, reach, and movement with freshness and snapshot dates | Reads | Both |
|
|
186
|
+
| `dynamoi_get_audience_analytics` | Streaming audience by date range, country, service, and paid/free tier | Reads | Both |
|
|
187
|
+
| `dynamoi_get_youtube_channel_data` | Observed YouTube channel data by dataset, with coverage and campaign dates | Reads | Both |
|
|
183
188
|
| `dynamoi_get_platform_status` | Spotify, Meta, and YouTube connection status and setup blockers | Reads | Both |
|
|
184
189
|
| `dynamoi_get_distribution_application` | The five distribution requirements and application status | Reads | Both |
|
|
185
190
|
| `dynamoi_apply_for_distribution` | Submit a distribution application for manual review | Changes data | Both |
|
|
@@ -188,13 +193,19 @@ start an action with an outside provider.
|
|
|
188
193
|
| `dynamoi_create_smart_links_from_spotify_artist` | Import an artist's catalog as free Smart Links and return the artist hub | Changes data | Both |
|
|
189
194
|
| `dynamoi_list_smart_links` | An artist's Smart Links and public URLs | Reads | Both |
|
|
190
195
|
| `dynamoi_get_smart_link` | One Smart Link, with optional analytics and artist settings | Reads | Both |
|
|
191
|
-
| `
|
|
196
|
+
| `dynamoi_update_smart_link_description` | Update one Smart Link's public description | Changes data | Directory |
|
|
197
|
+
| `dynamoi_update_smart_link_artist_settings` | Update an artist's Smart Link theme or validated pixel settings | Changes data | Directory |
|
|
198
|
+
| `dynamoi_update_smart_link` | Prior multi-action schema for description or artist settings | Changes data | Full |
|
|
199
|
+
| `dynamoi_update_smart_link_release_settings` | Update one Smart Link's release video or destination visibility | Changes data | Full |
|
|
200
|
+
| `dynamoi_update_smart_link_artist_hub_settings` | Update an artist's hub introduction, official profile links or service order | Changes data | Full |
|
|
192
201
|
| `dynamoi_get_billing` | Billing status, credit balance, and promo limits | Reads | Full |
|
|
202
|
+
| `dynamoi_get_resume_funding` | Campaign resume-funding breakdown, refusal, and consent requirements | Reads | Full |
|
|
193
203
|
| `dynamoi_list_available_countries` | Countries a Smart Campaign or YouTube campaign can target | Reads | Full |
|
|
194
204
|
| `dynamoi_get_campaign_readiness` | Check launch inputs before creating anything | Reads | Full |
|
|
195
205
|
| `dynamoi_list_media_assets` | Uploaded images and videos that a launch can reuse | Reads | Full |
|
|
196
206
|
| `dynamoi_launch_campaign` | Launch a Smart Campaign or YouTube campaign | Changes data | Full |
|
|
197
207
|
| `dynamoi_update_campaign` | Pause, resume, or change a campaign's budget or end date | Changes data | Full |
|
|
208
|
+
| `dynamoi_manage_youtube_draft` | Inspect an interrupted YouTube launch draft, or discard it when the user asks | Changes data | Full |
|
|
198
209
|
| `dynamoi_start_meta_connection` | Start the Facebook Page and Instagram connection in the browser | Changes data | Full |
|
|
199
210
|
| `dynamoi_start_youtube_channel_link` | Start the YouTube channel connection in the browser | Changes data | Full |
|
|
200
211
|
| `dynamoi_shop_get_quote` | Estimate a one-off YouTube promotion | Reads | Full |
|
|
@@ -203,6 +214,16 @@ start an action with an outside provider.
|
|
|
203
214
|
Full tool descriptions and input schemas come from `tools/list`, or from
|
|
204
215
|
`getDynamoiToolDefinitions()` in this package.
|
|
205
216
|
|
|
217
|
+
The full-only Studio tools (`dynamoi_update_smart_link_release_settings` and
|
|
218
|
+
`dynamoi_update_smart_link_artist_hub_settings`) are not part of the approved
|
|
219
|
+
directory contract and are never listed in the directory profile.
|
|
220
|
+
|
|
221
|
+
Previously approved directory clients may continue calling the exact
|
|
222
|
+
`dynamoi_update_smart_link` name with its approved schema. New directory tool
|
|
223
|
+
lists omit that compatibility handler and advertise the two single-purpose
|
|
224
|
+
operations above. Compatibility calls keep the same Smart Link write scope,
|
|
225
|
+
confirmation, account, and domain checks.
|
|
226
|
+
|
|
206
227
|
## Money and safety
|
|
207
228
|
|
|
208
229
|
- **Smart Links are free.** Creating or updating them never charges anyone.
|
|
@@ -292,7 +313,7 @@ The package is ESM-only and built on MCP TypeScript SDK v2
|
|
|
292
313
|
| --- | --- |
|
|
293
314
|
| `@dynamoi/mcp` | `createDynamoiMcpServer`, `handleMcpHttpRequest`, `getDynamoiToolDefinitions`, `DynamoiMcpToolProfile`, `Phase3Adapter`, tool definition arrays and input schemas, Shop schemas, About exports (`getDynamoiAbout`, `DYNAMOI_ABOUT_*`), result and data types, `DYNAMOI_MCP_VERSION` |
|
|
294
315
|
| `@dynamoi/mcp/auth` | `DYNAMOI_BETTER_AUTH_MCP_SCOPES`, `DYNAMOI_MCP_TOOL_SCOPES`, `buildWwwAuthenticateHeader` |
|
|
295
|
-
| `@dynamoi/mcp/consent` | `PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH` |
|
|
316
|
+
| `@dynamoi/mcp/consent` | `PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY`, `PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH` (current v6), the previous v5, v4, v3 and v2 constants, `isCurrentProspectiveBudgetFundingConsent`, and `isRenewableProspectiveBudgetFundingConsent` |
|
|
296
317
|
|
|
297
318
|
A host provides a `Phase3Adapter`, which connects each tool to its own
|
|
298
319
|
services. It also verifies the caller before it serves a request:
|
|
@@ -346,3 +367,11 @@ per-request transport.
|
|
|
346
367
|
| Capability map | [CAPABILITY_PARITY.md](./CAPABILITY_PARITY.md) |
|
|
347
368
|
|
|
348
369
|
MIT licensed. See [LICENSE](./LICENSE).
|
|
370
|
+
|
|
371
|
+
## Artist workspace
|
|
372
|
+
|
|
373
|
+
`dynamoi_open_workspace({})` returns an authorized artist roster and declares a read-only MCP Apps resource with global and thread entrypoints. On supported hosts, browse campaigns and Smart Links, inspect reported metrics, and deliberately share the selected record and artist references with the next conversation turn. Channel observations retain their own window, provenance and coverage; they are not attributed to the campaign. No pricing, checkout or campaign-write controls appear in this workspace. Unsupported hosts retain the ordinary text and tool result.
|
|
374
|
+
|
|
375
|
+
The existing Smart Link theme preview remains separate. Composer mentions, settings, file viewers and events are not advertised. Local App/AppBridge fixtures establish their tested contract only; actual ChatGPT host support and public approval require separate evidence.
|
|
376
|
+
|
|
377
|
+
The browser bridge is bundled locally with the compatible MCP Apps v2 SDK; no CDN is needed. `bun scripts/build-workspace.cjs` regenerates the checked-in source bundle and `bun scripts/build-workspace.cjs --check` verifies reproducibility from the package directory. The ordinary package build runs the same owner. Keep the generated script synchronized with its browser/view/data sources.
|
|
@@ -6,18 +6,25 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
6
6
|
readonly dynamoi_create_smart_links_from_spotify_artist: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
7
7
|
readonly dynamoi_get_account_overview: readonly ["dynamoi:read"];
|
|
8
8
|
readonly dynamoi_get_artist_analytics: readonly ["dynamoi:read"];
|
|
9
|
+
readonly dynamoi_get_audience_analytics: readonly ["dynamoi:read"];
|
|
9
10
|
readonly dynamoi_get_billing: readonly ["dynamoi:read", "dynamoi:billing.read"];
|
|
10
11
|
readonly dynamoi_get_campaign: readonly ["dynamoi:read"];
|
|
11
12
|
readonly dynamoi_get_campaign_readiness: readonly ["dynamoi:read"];
|
|
12
13
|
readonly dynamoi_get_distribution_application: readonly ["dynamoi:read", "dynamoi:distribution.read"];
|
|
14
|
+
readonly dynamoi_get_growth_audit: readonly ["dynamoi:read"];
|
|
13
15
|
readonly dynamoi_get_platform_status: readonly ["dynamoi:read", "dynamoi:platform.read"];
|
|
16
|
+
readonly dynamoi_get_playlist_analytics: readonly ["dynamoi:read"];
|
|
17
|
+
readonly dynamoi_get_resume_funding: readonly ["dynamoi:read", "dynamoi:billing.read"];
|
|
14
18
|
readonly dynamoi_get_smart_link: readonly ["dynamoi:read"];
|
|
19
|
+
readonly dynamoi_get_youtube_channel_data: readonly ["dynamoi:read"];
|
|
15
20
|
readonly dynamoi_launch_campaign: readonly ["dynamoi:read", "dynamoi:campaign.launch"];
|
|
16
21
|
readonly dynamoi_list_artists: readonly ["dynamoi:read"];
|
|
17
22
|
readonly dynamoi_list_available_countries: readonly ["dynamoi:read"];
|
|
18
23
|
readonly dynamoi_list_campaigns: readonly ["dynamoi:read"];
|
|
19
24
|
readonly dynamoi_list_media_assets: readonly ["dynamoi:read"];
|
|
20
25
|
readonly dynamoi_list_smart_links: readonly ["dynamoi:read"];
|
|
26
|
+
readonly dynamoi_manage_youtube_draft: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
27
|
+
readonly dynamoi_open_workspace: readonly ["dynamoi:read"];
|
|
21
28
|
readonly dynamoi_preview_smart_link_themes: readonly ["dynamoi:read"];
|
|
22
29
|
readonly dynamoi_search: readonly ["dynamoi:read"];
|
|
23
30
|
readonly dynamoi_shop_create_checkout: readonly ["dynamoi:read", "dynamoi:mcp.full"];
|
|
@@ -26,6 +33,10 @@ export declare const DYNAMOI_MCP_TOOL_SCOPES: {
|
|
|
26
33
|
readonly dynamoi_start_youtube_channel_link: readonly ["dynamoi:read", "dynamoi:platform.write"];
|
|
27
34
|
readonly dynamoi_update_campaign: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
28
35
|
readonly dynamoi_update_smart_link: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
36
|
+
readonly dynamoi_update_smart_link_artist_hub_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
37
|
+
readonly dynamoi_update_smart_link_artist_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
38
|
+
readonly dynamoi_update_smart_link_description: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
39
|
+
readonly dynamoi_update_smart_link_release_settings: readonly ["dynamoi:read", "dynamoi:smart_links.write"];
|
|
29
40
|
readonly fetch: readonly ["dynamoi:read"];
|
|
30
41
|
readonly search: readonly ["dynamoi:read"];
|
|
31
42
|
};
|
|
@@ -35,4 +46,3 @@ export declare function buildWwwAuthenticateHeader(options: {
|
|
|
35
46
|
error?: "insufficient_scope" | "invalid_token";
|
|
36
47
|
scope?: string;
|
|
37
48
|
}): string;
|
|
38
|
-
//# sourceMappingURL=protected-resource.d.ts.map
|
|
@@ -1,13 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
// src/auth/protected-resource.ts
|
|
2
|
+
var DYNAMOI_BETTER_AUTH_MCP_SCOPES = [
|
|
3
|
+
"dynamoi:read",
|
|
4
|
+
"dynamoi:mcp.full",
|
|
5
|
+
"dynamoi:billing.read",
|
|
6
|
+
"dynamoi:campaign.launch",
|
|
7
|
+
"dynamoi:campaign.write",
|
|
8
|
+
"dynamoi:distribution.apply",
|
|
9
|
+
"dynamoi:distribution.read",
|
|
10
|
+
"dynamoi:platform.read",
|
|
11
|
+
"dynamoi:platform.write",
|
|
12
|
+
"dynamoi:smart_links.write"
|
|
13
|
+
];
|
|
14
|
+
var DYNAMOI_MCP_TOOL_SCOPES = {
|
|
15
|
+
dynamoi_about: [],
|
|
16
|
+
dynamoi_apply_for_distribution: [
|
|
17
|
+
"dynamoi:read",
|
|
18
|
+
"dynamoi:distribution.apply"
|
|
19
|
+
],
|
|
20
|
+
dynamoi_create_smart_link_from_spotify: [
|
|
21
|
+
"dynamoi:read",
|
|
22
|
+
"dynamoi:smart_links.write"
|
|
23
|
+
],
|
|
24
|
+
dynamoi_create_smart_links_from_spotify_artist: [
|
|
25
|
+
"dynamoi:read",
|
|
26
|
+
"dynamoi:smart_links.write"
|
|
27
|
+
],
|
|
28
|
+
dynamoi_get_account_overview: ["dynamoi:read"],
|
|
29
|
+
dynamoi_get_artist_analytics: ["dynamoi:read"],
|
|
30
|
+
dynamoi_get_audience_analytics: ["dynamoi:read"],
|
|
31
|
+
dynamoi_get_billing: ["dynamoi:read", "dynamoi:billing.read"],
|
|
32
|
+
dynamoi_get_campaign: ["dynamoi:read"],
|
|
33
|
+
dynamoi_get_campaign_readiness: ["dynamoi:read"],
|
|
34
|
+
dynamoi_get_distribution_application: [
|
|
35
|
+
"dynamoi:read",
|
|
36
|
+
"dynamoi:distribution.read"
|
|
37
|
+
],
|
|
38
|
+
dynamoi_get_growth_audit: ["dynamoi:read"],
|
|
39
|
+
dynamoi_get_platform_status: ["dynamoi:read", "dynamoi:platform.read"],
|
|
40
|
+
dynamoi_get_playlist_analytics: ["dynamoi:read"],
|
|
41
|
+
dynamoi_get_resume_funding: ["dynamoi:read", "dynamoi:billing.read"],
|
|
42
|
+
dynamoi_get_smart_link: ["dynamoi:read"],
|
|
43
|
+
dynamoi_get_youtube_channel_data: ["dynamoi:read"],
|
|
44
|
+
dynamoi_launch_campaign: ["dynamoi:read", "dynamoi:campaign.launch"],
|
|
45
|
+
dynamoi_list_artists: ["dynamoi:read"],
|
|
46
|
+
dynamoi_list_available_countries: ["dynamoi:read"],
|
|
47
|
+
dynamoi_list_campaigns: ["dynamoi:read"],
|
|
48
|
+
dynamoi_list_media_assets: ["dynamoi:read"],
|
|
49
|
+
dynamoi_list_smart_links: ["dynamoi:read"],
|
|
50
|
+
dynamoi_manage_youtube_draft: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
51
|
+
dynamoi_open_workspace: ["dynamoi:read"],
|
|
52
|
+
dynamoi_preview_smart_link_themes: ["dynamoi:read"],
|
|
53
|
+
dynamoi_search: ["dynamoi:read"],
|
|
54
|
+
dynamoi_shop_create_checkout: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
55
|
+
dynamoi_shop_get_quote: ["dynamoi:read", "dynamoi:mcp.full"],
|
|
56
|
+
dynamoi_start_meta_connection: ["dynamoi:read", "dynamoi:platform.write"],
|
|
57
|
+
dynamoi_start_youtube_channel_link: [
|
|
58
|
+
"dynamoi:read",
|
|
59
|
+
"dynamoi:platform.write"
|
|
60
|
+
],
|
|
61
|
+
dynamoi_update_campaign: ["dynamoi:read", "dynamoi:campaign.write"],
|
|
62
|
+
dynamoi_update_smart_link: ["dynamoi:read", "dynamoi:smart_links.write"],
|
|
63
|
+
dynamoi_update_smart_link_artist_hub_settings: [
|
|
64
|
+
"dynamoi:read",
|
|
65
|
+
"dynamoi:smart_links.write"
|
|
66
|
+
],
|
|
67
|
+
dynamoi_update_smart_link_artist_settings: [
|
|
68
|
+
"dynamoi:read",
|
|
69
|
+
"dynamoi:smart_links.write"
|
|
70
|
+
],
|
|
71
|
+
dynamoi_update_smart_link_description: [
|
|
72
|
+
"dynamoi:read",
|
|
73
|
+
"dynamoi:smart_links.write"
|
|
74
|
+
],
|
|
75
|
+
dynamoi_update_smart_link_release_settings: [
|
|
76
|
+
"dynamoi:read",
|
|
77
|
+
"dynamoi:smart_links.write"
|
|
78
|
+
],
|
|
79
|
+
fetch: ["dynamoi:read"],
|
|
80
|
+
search: ["dynamoi:read"]
|
|
81
|
+
};
|
|
82
|
+
function buildWwwAuthenticateHeader(options) {
|
|
83
|
+
const scope = options.scope ?? "dynamoi:read";
|
|
84
|
+
const params = [
|
|
85
|
+
`resource_metadata="${escapeHeaderValue(options.resourceMetadataUrl)}"`,
|
|
86
|
+
`scope="${escapeHeaderValue(scope)}"`
|
|
87
|
+
];
|
|
88
|
+
if (options.error) {
|
|
89
|
+
const errorDescription = options.errorDescription ?? (options.error === "insufficient_scope" ? "Additional Dynamoi permissions are required." : "Sign in to Dynamoi to continue.");
|
|
90
|
+
params.push(`error="${escapeHeaderValue(options.error)}"`, `error_description="${escapeHeaderValue(errorDescription)}"`);
|
|
91
|
+
}
|
|
92
|
+
return `Bearer ${params.join(", ")}`;
|
|
93
|
+
}
|
|
94
|
+
function escapeHeaderValue(value) {
|
|
95
|
+
const containsControlCharacter = Array.from(value).some((character) => {
|
|
96
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
97
|
+
return codePoint <= 31 || codePoint === 127;
|
|
98
|
+
});
|
|
99
|
+
if (containsControlCharacter) {
|
|
100
|
+
throw new Error("WWW-Authenticate values cannot contain control characters.");
|
|
101
|
+
}
|
|
102
|
+
return value.replaceAll("\\", "\\\\").replaceAll('"', "\\\"");
|
|
103
|
+
}
|
|
6
104
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
105
|
+
DYNAMOI_BETTER_AUTH_MCP_SCOPES,
|
|
106
|
+
DYNAMOI_MCP_TOOL_SCOPES,
|
|
107
|
+
buildWwwAuthenticateHeader
|
|
10
108
|
};
|
|
11
|
-
|
|
12
|
-
//# debugId=3CEA7E243AFD6EFD64756E2164756E21
|
|
13
|
-
//# sourceMappingURL=protected-resource.js.map
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,4 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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";
|
|
14
|
+
/**
|
|
15
|
+
* The previous daily consent, with the same terms as v6 spelled out in the
|
|
16
|
+
* copy. Campaigns that accepted it keep renewing under it; new launches and
|
|
17
|
+
* resumes require v7.
|
|
18
|
+
*/
|
|
19
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION = "managed-ads-prospective-daily-v5";
|
|
20
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
|
|
21
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH = "14a318c6ef3defc44a13aa4813f0af9d3432db1c2910bada98581e762b35f9e2";
|
|
22
|
+
/**
|
|
23
|
+
* The daily consent before v5, with the same terms as v5 plus a funding time
|
|
24
|
+
* zone in the copy. Campaigns that accepted it keep renewing under it; new
|
|
25
|
+
* launches and resumes require v7.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION = "managed-ads-prospective-daily-v4";
|
|
28
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow (Pacific time) now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
|
|
29
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH = "e40485780d7b025c7a10bde969a25eecdcb0b4ebf1783251440e870fd8e10a60";
|
|
30
|
+
/**
|
|
31
|
+
* The Pacific-day consent, with the same terms as v4. Campaigns that
|
|
32
|
+
* accepted it keep renewing under it; new launches and resumes require v7.
|
|
33
|
+
*/
|
|
34
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION = "managed-ads-prospective-daily-v3";
|
|
35
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the rest of today and all of tomorrow (Pacific time) now, then each following day up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
|
|
36
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786746f962c91f5cad78d8bba531c478109041b2808a4a81efbe380abf1";
|
|
37
|
+
/**
|
|
38
|
+
* The earlier 24-hour-window daily consent. Campaigns that accepted it keep
|
|
39
|
+
* renewing under its exact terms; new launches and resumes require v7.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
|
|
42
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the first approximately 24 hours now and each following 24-hour window up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
|
|
43
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "06bbd517d58f345a767be9aaeb59f4959d11c6db16e7d07cb889f3ce7950f805";
|
|
44
|
+
/**
|
|
45
|
+
* Total-budget campaign funding consent. A total budget is funded one Pacific
|
|
46
|
+
* day at a time like a daily budget: a launch or resume funds the rest of
|
|
47
|
+
* today and all of tomorrow, then each following day, never more than the
|
|
48
|
+
* total budget in all. Client copy only. The checkbox carries the two terms
|
|
49
|
+
* that matter at the moment of consent (a daily charge to the default payment
|
|
50
|
+
* method, capped by the total budget); the rest of the charging terms are the
|
|
51
|
+
* Terms of Service section linked beside it.
|
|
52
|
+
*/
|
|
53
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-total-daily-v3";
|
|
54
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign, after my available credits, up to my total budget.";
|
|
55
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH = "8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd";
|
|
56
|
+
/** Whether a client-submitted total-budget consent is exactly the current pair. */
|
|
57
|
+
export declare function isCurrentTotalBudgetFundingConsent(input: {
|
|
58
|
+
copyHash: string;
|
|
59
|
+
copyVersion: string;
|
|
60
|
+
}): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Whether a client-submitted consent is exactly the current (version, hash)
|
|
63
|
+
* pair. New launches and resumes accept only this pair; earlier versions stay
|
|
64
|
+
* renewable for campaigns that already accepted them, but a client must not
|
|
65
|
+
* be able to name one for a new authorization after showing the current copy.
|
|
66
|
+
*/
|
|
67
|
+
export declare function isCurrentProspectiveBudgetFundingConsent(input: {
|
|
68
|
+
copyHash: string;
|
|
69
|
+
copyVersion: string;
|
|
70
|
+
}): boolean;
|
|
71
|
+
/** Previous exact consent pair; existing receipts remain renewable. */
|
|
72
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
|
|
73
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY = "Charge my default payment method daily for this campaign's budget, until I pause or end it.";
|
|
74
|
+
export declare const PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
|
|
75
|
+
/** Previous exact consent pair; existing receipts remain renewable. */
|
|
76
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
|
|
77
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
|
|
78
|
+
export declare const TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
|
|
79
|
+
/** Exact (version, hash) pairs whose accepted campaigns may renew daily. */
|
|
80
|
+
export declare function isRenewableProspectiveBudgetFundingConsent(input: {
|
|
81
|
+
copyHash: string;
|
|
82
|
+
copyVersion: string;
|
|
83
|
+
}): boolean;
|
package/dist/consent.js
CHANGED
|
@@ -1,13 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
// src/consent.ts
|
|
2
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-prospective-daily-v7";
|
|
3
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign's budget, after my available credits, until I pause or end it.";
|
|
4
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH = "f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356";
|
|
5
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION = "managed-ads-prospective-daily-v5";
|
|
6
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
|
|
7
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH = "14a318c6ef3defc44a13aa4813f0af9d3432db1c2910bada98581e762b35f9e2";
|
|
8
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION = "managed-ads-prospective-daily-v4";
|
|
9
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY = "Automatically charge my payment method for this campaign's daily budget, after credits and campaign funds: the rest of today and tomorrow (Pacific time) now, then each day ahead, until I pause or end the campaign. Unused funds stay available.";
|
|
10
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH = "e40485780d7b025c7a10bde969a25eecdcb0b4ebf1783251440e870fd8e10a60";
|
|
11
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION = "managed-ads-prospective-daily-v3";
|
|
12
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the rest of today and all of tomorrow (Pacific time) now, then each following day up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
|
|
13
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH = "53647786746f962c91f5cad78d8bba531c478109041b2808a4a81efbe380abf1";
|
|
14
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-prospective-daily-v2";
|
|
15
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY = "Authorize automatic card funding for this campaign's daily budget, after available credits and campaign funds. Fund the first approximately 24 hours now and each following 24-hour window up to one hour before it starts, until I pause or end the campaign. Unused funds become available after delivery is reconciled.";
|
|
16
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "06bbd517d58f345a767be9aaeb59f4959d11c6db16e7d07cb889f3ce7950f805";
|
|
17
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_VERSION = "managed-ads-total-daily-v3";
|
|
18
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_COPY = "Charge my default payment method daily for this campaign, after my available credits, up to my total budget.";
|
|
19
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH = "8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd";
|
|
20
|
+
function isCurrentTotalBudgetFundingConsent(input) {
|
|
21
|
+
return input.copyVersion === TOTAL_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH;
|
|
22
|
+
}
|
|
23
|
+
function isCurrentProspectiveBudgetFundingConsent(input) {
|
|
24
|
+
return input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH;
|
|
25
|
+
}
|
|
26
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION = "managed-ads-prospective-daily-v6";
|
|
27
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY = "Charge my default payment method daily for this campaign's budget, until I pause or end it.";
|
|
28
|
+
var PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH = "b4c2d0b0eef5a3d54165c4225e9b316d473f07f8581b0715f803575fc815557b";
|
|
29
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION = "managed-ads-total-daily-v2";
|
|
30
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY = "Charge my default payment method daily for this campaign, up to my total budget.";
|
|
31
|
+
var TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH = "e6afbb5d76383f9f336f4924caaf51022c686fa5b77bba4e2f480a1d5a118aed";
|
|
32
|
+
function isRenewableProspectiveBudgetFundingConsent(input) {
|
|
33
|
+
return isCurrentProspectiveBudgetFundingConsent(input) || isCurrentTotalBudgetFundingConsent(input) || input.copyVersion === TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION && input.copyHash === TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH || input.copyVersion === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION && input.copyHash === PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH;
|
|
34
|
+
}
|
|
6
35
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
36
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY,
|
|
37
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_COPY_HASH,
|
|
38
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY,
|
|
39
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
|
|
40
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V2_VERSION,
|
|
41
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY,
|
|
42
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_COPY_HASH,
|
|
43
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V3_VERSION,
|
|
44
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY,
|
|
45
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_COPY_HASH,
|
|
46
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V4_VERSION,
|
|
47
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY,
|
|
48
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_COPY_HASH,
|
|
49
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V5_VERSION,
|
|
50
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY,
|
|
51
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_COPY_HASH,
|
|
52
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_V6_VERSION,
|
|
53
|
+
PROSPECTIVE_BUDGET_FUNDING_CONSENT_VERSION,
|
|
54
|
+
TOTAL_BUDGET_FUNDING_CONSENT_COPY,
|
|
55
|
+
TOTAL_BUDGET_FUNDING_CONSENT_COPY_HASH,
|
|
56
|
+
TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY,
|
|
57
|
+
TOTAL_BUDGET_FUNDING_CONSENT_V2_COPY_HASH,
|
|
58
|
+
TOTAL_BUDGET_FUNDING_CONSENT_V2_VERSION,
|
|
59
|
+
TOTAL_BUDGET_FUNDING_CONSENT_VERSION,
|
|
60
|
+
isCurrentProspectiveBudgetFundingConsent,
|
|
61
|
+
isCurrentTotalBudgetFundingConsent,
|
|
62
|
+
isRenewableProspectiveBudgetFundingConsent
|
|
10
63
|
};
|
|
11
|
-
|
|
12
|
-
//# debugId=F04EB66A6C6942CA64756E2164756E21
|
|
13
|
-
//# sourceMappingURL=consent.js.map
|