@dynamoi/mcp 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CAPABILITY_PARITY.md +24 -16
- package/CHANGELOG.md +124 -0
- package/README.md +76 -24
- package/dist/auth/protected-resource.d.ts +12 -1
- package/dist/auth/protected-resource.js +107 -11
- package/dist/consent.d.ts +101 -4
- package/dist/consent.js +83 -11
- package/dist/flow-types.d.ts +72 -3
- package/dist/index.d.ts +15 -6
- package/dist/index.js +2741 -639
- package/dist/readiness-types.d.ts +21 -1
- package/dist/server/about.d.ts +18 -15
- 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 +41 -30
- package/dist/server/distribution-tools.d.ts +31 -24
- package/dist/server/messaging.d.ts +2 -3
- package/dist/server/openai-tools.d.ts +30 -23
- package/dist/server/output-schemas.d.ts +416 -73
- package/dist/server/shop-tools.d.ts +36 -29
- package/dist/server/smart-link-tools.d.ts +511 -73
- package/dist/server/support-tools.d.ts +88 -0
- package/dist/server/tools.d.ts +753 -223
- package/dist/server/workflow-tools.d.ts +99 -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 +169 -0
- package/dist/server/youtube-strategy-guide.d.ts +103 -0
- package/dist/transport/http.d.ts +0 -1
- package/dist/types.d.ts +135 -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 +50 -13
- package/server.json +2 -2
- 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
|
@@ -3,152 +3,165 @@ export declare const PHASE_3_TOOL_DEFINITIONS: readonly [{
|
|
|
3
3
|
readonly destructiveHint: false;
|
|
4
4
|
readonly name: "dynamoi_list_media_assets";
|
|
5
5
|
readonly openWorldHint: false;
|
|
6
|
-
readonly outputSchema: import("zod
|
|
7
|
-
|
|
6
|
+
readonly outputSchema: import("zod").ZodObject<{
|
|
7
|
+
status: import("zod").ZodEnum<{
|
|
8
|
+
success: "success";
|
|
9
|
+
partial_success: "partial_success";
|
|
10
|
+
error: "error";
|
|
11
|
+
}>;
|
|
12
|
+
code: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8
13
|
ACCOUNT_READ_ONLY: "ACCOUNT_READ_ONLY";
|
|
14
|
+
INVALID_SPOTIFY_SOURCE: "INVALID_SPOTIFY_SOURCE";
|
|
9
15
|
CAPABILITY_REQUIRED: "CAPABILITY_REQUIRED";
|
|
10
16
|
INSUFFICIENT_SCOPE: "INSUFFICIENT_SCOPE";
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
TENANT_ACCESS_DENIED: "TENANT_ACCESS_DENIED";
|
|
18
|
+
STATE_CONFLICT: "STATE_CONFLICT";
|
|
13
19
|
QUOTE_CHANGED: "QUOTE_CHANGED";
|
|
14
20
|
RATE_LIMITED: "RATE_LIMITED";
|
|
15
|
-
|
|
21
|
+
OUTPUT_INVALID: "OUTPUT_INVALID";
|
|
16
22
|
UNKNOWN_EFFECT: "UNKNOWN_EFFECT";
|
|
17
23
|
}>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
draftId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
failureStage: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
nextAction: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
28
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
kind: import("zod").ZodEnum<{
|
|
23
30
|
provide_input: "provide_input";
|
|
24
31
|
read_status: "read_status";
|
|
25
32
|
reconnect: "reconnect";
|
|
33
|
+
handoff: "handoff";
|
|
26
34
|
}>;
|
|
27
|
-
reason: import("zod
|
|
35
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
36
|
}, import("zod/v4/core").$strict>>;
|
|
29
|
-
prerequisite: import("zod
|
|
30
|
-
retryAfterSeconds: import("zod
|
|
31
|
-
retryable: import("zod
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
platform: "platform";
|
|
37
|
+
prerequisite: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
retryAfterSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
39
|
+
retryable: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
40
|
+
screeningResult: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
data: import("zod").ZodOptional<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
42
|
+
kind: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
36
43
|
unknown: "unknown";
|
|
37
44
|
validation: "validation";
|
|
45
|
+
business: "business";
|
|
46
|
+
platform: "platform";
|
|
38
47
|
}>>;
|
|
39
|
-
message: import("zod
|
|
40
|
-
status: import("zod/v4").ZodEnum<{
|
|
41
|
-
error: "error";
|
|
42
|
-
partial_success: "partial_success";
|
|
43
|
-
success: "success";
|
|
44
|
-
}>;
|
|
48
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
49
|
}, import("zod/v4/core").$strict>;
|
|
46
50
|
readonly readOnlyHint: true;
|
|
47
|
-
readonly schema: import("zod
|
|
48
|
-
artistId: import("zod
|
|
49
|
-
cursor: import("zod
|
|
50
|
-
format: import("zod
|
|
51
|
+
readonly schema: import("zod").ZodObject<{
|
|
52
|
+
artistId: import("zod").ZodString;
|
|
53
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
format: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
51
55
|
json: "json";
|
|
52
56
|
summary: "summary";
|
|
53
57
|
}>>;
|
|
54
|
-
includeUrls: import("zod
|
|
55
|
-
limit: import("zod
|
|
58
|
+
includeUrls: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
59
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
56
60
|
}, import("zod/v4/core").$strict>;
|
|
57
61
|
readonly title: "List Media Assets";
|
|
58
62
|
}, {
|
|
59
|
-
readonly description: "Use this when the user explicitly wants to create a new Smart Campaign or YouTube Campaign and start the launch workflow with provided details. Ads are not necessarily live until the returned delivery state is ACTIVE. DAILY budgets require authorizeAutomaticDailyFunding=true plus the exact acceptedConsentVersion (\"managed-ads-prospective-daily-
|
|
63
|
+
readonly description: "Use this when the user explicitly wants to create a new Smart Campaign or YouTube Campaign and start the launch workflow with provided details. Ads are not necessarily live until the returned delivery state is ACTIVE. DAILY budgets require authorizeAutomaticDailyFunding=true plus the exact acceptedConsentVersion (\"managed-ads-prospective-daily-v7\") and acceptedConsentCopyHash (\"f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356\"); first show the user this exact consent copy: \"Charge my default payment method daily for this campaign's budget, after my available credits, until I pause or end it.\". A TOTAL budget uses its own consent: show \"Charge my default payment method daily for this campaign, after my available credits, up to my total budget.\" and send acceptedTotalConsentVersion (\"managed-ads-total-daily-v3\") and acceptedTotalConsentCopyHash (\"8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd\"), without authorizeAutomaticDailyFunding. Every budget is funded from credit first, then prepaid funds, then the saved card; a budget type refuses the other's consent, and without consent the launch is refused and never charged. YOUTUBE campaigns require youtubeStrategy and either legacy youtubeVideoId/youtubePlaylistId or ordered youtubeEntries (up to 10 videoId/playlistId pairs); playlistId is optional for CHEAPEST_VIEWS, which supports one video. After a successful launch, answer from the returned campaign details directly instead of chaining more tools unless the user explicitly asked for more.";
|
|
60
64
|
readonly destructiveHint: true;
|
|
61
65
|
readonly idempotentHint: true;
|
|
62
66
|
readonly name: "dynamoi_launch_campaign";
|
|
63
67
|
readonly openWorldHint: true;
|
|
64
|
-
readonly outputSchema: import("zod
|
|
65
|
-
|
|
68
|
+
readonly outputSchema: import("zod").ZodObject<{
|
|
69
|
+
status: import("zod").ZodEnum<{
|
|
70
|
+
success: "success";
|
|
71
|
+
partial_success: "partial_success";
|
|
72
|
+
error: "error";
|
|
73
|
+
}>;
|
|
74
|
+
code: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
66
75
|
ACCOUNT_READ_ONLY: "ACCOUNT_READ_ONLY";
|
|
76
|
+
INVALID_SPOTIFY_SOURCE: "INVALID_SPOTIFY_SOURCE";
|
|
67
77
|
CAPABILITY_REQUIRED: "CAPABILITY_REQUIRED";
|
|
68
78
|
INSUFFICIENT_SCOPE: "INSUFFICIENT_SCOPE";
|
|
69
|
-
|
|
70
|
-
|
|
79
|
+
TENANT_ACCESS_DENIED: "TENANT_ACCESS_DENIED";
|
|
80
|
+
STATE_CONFLICT: "STATE_CONFLICT";
|
|
71
81
|
QUOTE_CHANGED: "QUOTE_CHANGED";
|
|
72
82
|
RATE_LIMITED: "RATE_LIMITED";
|
|
73
|
-
|
|
83
|
+
OUTPUT_INVALID: "OUTPUT_INVALID";
|
|
74
84
|
UNKNOWN_EFFECT: "UNKNOWN_EFFECT";
|
|
75
85
|
}>>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
draftId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
failureStage: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
89
|
+
nextAction: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
90
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
|
+
kind: import("zod").ZodEnum<{
|
|
81
92
|
provide_input: "provide_input";
|
|
82
93
|
read_status: "read_status";
|
|
83
94
|
reconnect: "reconnect";
|
|
95
|
+
handoff: "handoff";
|
|
84
96
|
}>;
|
|
85
|
-
reason: import("zod
|
|
97
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
98
|
}, import("zod/v4/core").$strict>>;
|
|
87
|
-
prerequisite: import("zod
|
|
88
|
-
retryAfterSeconds: import("zod
|
|
89
|
-
retryable: import("zod
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
platform: "platform";
|
|
99
|
+
prerequisite: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
retryAfterSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
101
|
+
retryable: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
102
|
+
screeningResult: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
data: import("zod").ZodOptional<import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
|
|
104
|
+
kind: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
94
105
|
unknown: "unknown";
|
|
95
106
|
validation: "validation";
|
|
107
|
+
business: "business";
|
|
108
|
+
platform: "platform";
|
|
96
109
|
}>>;
|
|
97
|
-
message: import("zod
|
|
98
|
-
status: import("zod/v4").ZodEnum<{
|
|
99
|
-
error: "error";
|
|
100
|
-
partial_success: "partial_success";
|
|
101
|
-
success: "success";
|
|
102
|
-
}>;
|
|
110
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
111
|
}, import("zod/v4/core").$strict>;
|
|
104
112
|
readonly readOnlyHint: false;
|
|
105
|
-
readonly schema: import("zod
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
budgetAmount: import("zod/v4").ZodNumber;
|
|
113
|
-
budgetSplits: import("zod/v4").ZodRecord<import("zod/v4").ZodEnum<{
|
|
114
|
-
GOOGLE: "GOOGLE";
|
|
113
|
+
readonly schema: import("zod").ZodObject<{
|
|
114
|
+
adCopy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
+
appleMusicUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
+
artistId: import("zod").ZodString;
|
|
117
|
+
authorizeAutomaticDailyFunding: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
118
|
+
budgetAmount: import("zod").ZodNumber;
|
|
119
|
+
budgetSplits: import("zod").ZodRecord<import("zod").ZodEnum<{
|
|
115
120
|
META: "META";
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
GOOGLE: "GOOGLE";
|
|
122
|
+
}>, import("zod").ZodNumber>;
|
|
123
|
+
budgetType: import("zod").ZodEnum<{
|
|
118
124
|
DAILY: "DAILY";
|
|
119
125
|
TOTAL: "TOTAL";
|
|
120
126
|
}>;
|
|
121
|
-
campaignType: import("zod
|
|
127
|
+
campaignType: import("zod").ZodEnum<{
|
|
122
128
|
SMART_CAMPAIGN: "SMART_CAMPAIGN";
|
|
123
129
|
YOUTUBE: "YOUTUBE";
|
|
124
130
|
}>;
|
|
125
|
-
clientRequestId: import("zod
|
|
126
|
-
contentTitle: import("zod
|
|
127
|
-
contentType: import("zod
|
|
131
|
+
clientRequestId: import("zod").ZodString;
|
|
132
|
+
contentTitle: import("zod").ZodString;
|
|
133
|
+
contentType: import("zod").ZodEnum<{
|
|
134
|
+
TRACK: "TRACK";
|
|
128
135
|
ALBUM: "ALBUM";
|
|
129
136
|
PLAYLIST: "PLAYLIST";
|
|
130
|
-
TRACK: "TRACK";
|
|
131
137
|
VIDEO: "VIDEO";
|
|
132
138
|
}>;
|
|
133
|
-
endDate: import("zod
|
|
134
|
-
locationTargets: import("zod
|
|
135
|
-
code: import("zod
|
|
136
|
-
name: import("zod
|
|
139
|
+
endDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
140
|
+
locationTargets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
141
|
+
code: import("zod").ZodString;
|
|
142
|
+
name: import("zod").ZodString;
|
|
137
143
|
}, import("zod/v4/core").$strict>>>;
|
|
138
|
-
mediaAssetIds: import("zod
|
|
139
|
-
spotifyUrl: import("zod
|
|
140
|
-
useAiGeneratedCopy: import("zod
|
|
141
|
-
userIntentSummary: import("zod
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
mediaAssetIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
145
|
+
spotifyUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
|
+
useAiGeneratedCopy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
147
|
+
userIntentSummary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
youtubeEntries: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
149
|
+
playlistId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
150
|
+
videoId: import("zod").ZodString;
|
|
151
|
+
}, import("zod/v4/core").$strict>>>;
|
|
152
|
+
youtubePlaylistId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
youtubeStrategy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
145
154
|
CHEAPEST_VIEWS: "CHEAPEST_VIEWS";
|
|
146
155
|
ORGANIC_VIEWS: "ORGANIC_VIEWS";
|
|
147
|
-
ORGANIC_VIEWS_AND_SUBSCRIBERS: "ORGANIC_VIEWS_AND_SUBSCRIBERS";
|
|
148
156
|
SUBSCRIBERS: "SUBSCRIBERS";
|
|
157
|
+
ORGANIC_VIEWS_AND_SUBSCRIBERS: "ORGANIC_VIEWS_AND_SUBSCRIBERS";
|
|
158
|
+
ADSENSE_ROI: "ADSENSE_ROI";
|
|
149
159
|
}>>;
|
|
150
|
-
youtubeVideoId: import("zod
|
|
160
|
+
youtubeVideoId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
161
|
+
acceptedTotalConsentCopyHash: import("zod").ZodOptional<import("zod").ZodLiteral<"8bece5f58e0c94b04b35ac1a98f0e8a142ed968bbe34dcc0d51fe52e2c0d75bd">>;
|
|
162
|
+
acceptedTotalConsentVersion: import("zod").ZodOptional<import("zod").ZodLiteral<"managed-ads-total-daily-v3">>;
|
|
163
|
+
acceptedConsentCopyHash: import("zod").ZodOptional<import("zod").ZodLiteral<"f49b33a4f7e8aa3cc814d5057d03e97eaa0c35a9f3f2bc0315dbd031efa0f356">>;
|
|
164
|
+
acceptedConsentVersion: import("zod").ZodOptional<import("zod").ZodLiteral<"managed-ads-prospective-daily-v7">>;
|
|
151
165
|
}, import("zod/v4/core").$strict>;
|
|
152
166
|
readonly title: "Start Campaign Launch Workflow";
|
|
153
167
|
}];
|
|
154
|
-
//# sourceMappingURL=workflow-tools.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** Allowlisted presentation data. Never forward arbitrary domain records to the model. */
|
|
2
|
+
export type WorkspaceArtist = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
organizationName?: string;
|
|
6
|
+
};
|
|
7
|
+
export type WorkspaceData = {
|
|
8
|
+
artistCount: number;
|
|
9
|
+
artists: WorkspaceArtist[];
|
|
10
|
+
nextCursor?: string;
|
|
11
|
+
};
|
|
12
|
+
export type WorkspaceRecord = {
|
|
13
|
+
id: string;
|
|
14
|
+
artistId?: string;
|
|
15
|
+
channel?: {
|
|
16
|
+
period: string;
|
|
17
|
+
asOf: string | null;
|
|
18
|
+
observedThrough: string;
|
|
19
|
+
missingDays: number;
|
|
20
|
+
placeholderDays: number;
|
|
21
|
+
source: string;
|
|
22
|
+
attribution: string;
|
|
23
|
+
metrics: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
kind: "artist" | "campaign" | "smartlink";
|
|
29
|
+
name: string;
|
|
30
|
+
status?: string;
|
|
31
|
+
campaignType?: "SMART_CAMPAIGN" | "YOUTUBE";
|
|
32
|
+
isPublic?: boolean;
|
|
33
|
+
sampleResults?: boolean;
|
|
34
|
+
warnings?: string[];
|
|
35
|
+
channelAvailability?: {
|
|
36
|
+
status: "pending" | "unavailable";
|
|
37
|
+
period?: string;
|
|
38
|
+
asOf?: string;
|
|
39
|
+
observedThrough?: string;
|
|
40
|
+
};
|
|
41
|
+
url?: string;
|
|
42
|
+
metrics?: {
|
|
43
|
+
label: string;
|
|
44
|
+
value: number;
|
|
45
|
+
}[];
|
|
46
|
+
period?: string;
|
|
47
|
+
source?: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const UUID: RegExp;
|
|
50
|
+
export declare function object(value: unknown): Record<string, unknown>;
|
|
51
|
+
export declare function text(value: unknown, max?: number): string;
|
|
52
|
+
export declare function artists(value: unknown): WorkspaceArtist[];
|
|
53
|
+
export declare function cursor(value: unknown): string | undefined;
|
|
54
|
+
/** Only generated Dynamoi public links; no credentials, fragments or tracking query. */
|
|
55
|
+
export declare function publicLink(value: unknown): string | undefined;
|
|
56
|
+
export type WorkspaceRoute = {
|
|
57
|
+
artistId: string;
|
|
58
|
+
kind?: "campaign" | "smartlink";
|
|
59
|
+
id?: string;
|
|
60
|
+
};
|
|
61
|
+
/** Host has already decoded the app-relative path. Reject alternate/encoded forms. */
|
|
62
|
+
export declare function parseDeepLink(hostState: unknown): WorkspaceRoute | null;
|
|
63
|
+
export declare function projectRecord(kind: WorkspaceRecord["kind"], rawRecord: unknown, authorizedArtistId?: string, mode?: "summary" | "detail"): WorkspaceRecord;
|
|
64
|
+
export declare function selectedContext(record: WorkspaceRecord): string;
|
|
65
|
+
/** Auto-selection requires a complete roster without duplicate names. */
|
|
66
|
+
export declare function initialArtist(roster: WorkspaceArtist[], rosterCursor?: string): WorkspaceArtist | undefined;
|
|
67
|
+
export declare function artistLabel(artist: WorkspaceArtist, roster: WorkspaceArtist[]): string;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/server";
|
|
2
|
+
import * as z from "zod/v4";
|
|
3
|
+
import type { ResultEnvelope } from "../../types";
|
|
4
|
+
import { type WorkspaceData } from "./data";
|
|
5
|
+
export declare const WORKSPACE_METADATA: {
|
|
6
|
+
readonly "openai/ui": {
|
|
7
|
+
readonly entrypoints: readonly [{
|
|
8
|
+
readonly type: "global";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "thread";
|
|
11
|
+
}];
|
|
12
|
+
};
|
|
13
|
+
readonly ui: {
|
|
14
|
+
readonly resourceUri: "ui://dynamoi/artist-workspace-v1.html";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const WORKSPACE_TOOL_DEFINITION: {
|
|
18
|
+
readonly description: "Open the read-only Dynamoi workspace when the user wants to browse their existing artists, campaigns, Smart Links and observed results in ChatGPT. Returns an authorized artist roster or an honest empty account state. Does not create links, change campaigns, start purchases or connect accounts. Use individual read tools for follow-up details.";
|
|
19
|
+
readonly destructiveHint: false;
|
|
20
|
+
readonly name: "dynamoi_open_workspace";
|
|
21
|
+
readonly openWorldHint: false;
|
|
22
|
+
readonly outputSchema: z.ZodObject<{
|
|
23
|
+
status: z.ZodEnum<{
|
|
24
|
+
success: "success";
|
|
25
|
+
error: "error";
|
|
26
|
+
}>;
|
|
27
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
ACCOUNT_READ_ONLY: "ACCOUNT_READ_ONLY";
|
|
29
|
+
INVALID_SPOTIFY_SOURCE: "INVALID_SPOTIFY_SOURCE";
|
|
30
|
+
CAPABILITY_REQUIRED: "CAPABILITY_REQUIRED";
|
|
31
|
+
INSUFFICIENT_SCOPE: "INSUFFICIENT_SCOPE";
|
|
32
|
+
TENANT_ACCESS_DENIED: "TENANT_ACCESS_DENIED";
|
|
33
|
+
STATE_CONFLICT: "STATE_CONFLICT";
|
|
34
|
+
QUOTE_CHANGED: "QUOTE_CHANGED";
|
|
35
|
+
RATE_LIMITED: "RATE_LIMITED";
|
|
36
|
+
OUTPUT_INVALID: "OUTPUT_INVALID";
|
|
37
|
+
UNKNOWN_EFFECT: "UNKNOWN_EFFECT";
|
|
38
|
+
}>>;
|
|
39
|
+
draftId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
failureStage: z.ZodOptional<z.ZodString>;
|
|
41
|
+
field: z.ZodOptional<z.ZodString>;
|
|
42
|
+
nextAction: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
field: z.ZodOptional<z.ZodString>;
|
|
44
|
+
kind: z.ZodEnum<{
|
|
45
|
+
provide_input: "provide_input";
|
|
46
|
+
read_status: "read_status";
|
|
47
|
+
reconnect: "reconnect";
|
|
48
|
+
handoff: "handoff";
|
|
49
|
+
}>;
|
|
50
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
prerequisite: z.ZodOptional<z.ZodString>;
|
|
53
|
+
retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
screeningResult: z.ZodOptional<z.ZodString>;
|
|
56
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
artistCount: z.ZodNumber;
|
|
58
|
+
artists: z.ZodArray<z.ZodObject<{
|
|
59
|
+
id: z.ZodUUID;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
unknown: "unknown";
|
|
67
|
+
validation: "validation";
|
|
68
|
+
business: "business";
|
|
69
|
+
platform: "platform";
|
|
70
|
+
}>>;
|
|
71
|
+
message: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
readonly readOnlyHint: true;
|
|
74
|
+
readonly schema: z.ZodObject<{}, z.core.$strict>;
|
|
75
|
+
readonly title: "Open Artist Workspace";
|
|
76
|
+
};
|
|
77
|
+
export type WorkspaceReaders = {
|
|
78
|
+
getCurrentUser(input: unknown): Promise<ResultEnvelope<object>>;
|
|
79
|
+
listArtists(input: unknown): Promise<ResultEnvelope<object>>;
|
|
80
|
+
};
|
|
81
|
+
export declare function openWorkspace(adapter: WorkspaceReaders): Promise<ResultEnvelope<WorkspaceData>>;
|
|
82
|
+
export declare function registerWorkspaceResource(server: McpServer): void;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export declare const YOUTUBE_CHANNEL_DATASETS: readonly ["channel_daily", "video_daily", "country_daily", "traffic_source_daily", "search_term_daily", "subscribed_status_daily", "device_daily", "operating_system_daily", "playback_location_daily", "creator_content_type_daily", "video_catalog"];
|
|
3
|
+
export declare const YouTubeChannelDatasetSchema: z.ZodEnum<{
|
|
4
|
+
channel_daily: "channel_daily";
|
|
5
|
+
video_daily: "video_daily";
|
|
6
|
+
country_daily: "country_daily";
|
|
7
|
+
traffic_source_daily: "traffic_source_daily";
|
|
8
|
+
search_term_daily: "search_term_daily";
|
|
9
|
+
subscribed_status_daily: "subscribed_status_daily";
|
|
10
|
+
device_daily: "device_daily";
|
|
11
|
+
operating_system_daily: "operating_system_daily";
|
|
12
|
+
playback_location_daily: "playback_location_daily";
|
|
13
|
+
creator_content_type_daily: "creator_content_type_daily";
|
|
14
|
+
video_catalog: "video_catalog";
|
|
15
|
+
}>;
|
|
16
|
+
export type YouTubeChannelDataset = z.infer<typeof YouTubeChannelDatasetSchema>;
|
|
17
|
+
export declare const YOUTUBE_CHANNEL_DATA_DEFAULT_LIMIT = 500;
|
|
18
|
+
export declare const DynamoiGetYouTubeChannelDataInputSchema: z.ZodObject<{
|
|
19
|
+
artistId: z.ZodString;
|
|
20
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dataset: z.ZodEnum<{
|
|
22
|
+
channel_daily: "channel_daily";
|
|
23
|
+
video_daily: "video_daily";
|
|
24
|
+
country_daily: "country_daily";
|
|
25
|
+
traffic_source_daily: "traffic_source_daily";
|
|
26
|
+
search_term_daily: "search_term_daily";
|
|
27
|
+
subscribed_status_daily: "subscribed_status_daily";
|
|
28
|
+
device_daily: "device_daily";
|
|
29
|
+
operating_system_daily: "operating_system_daily";
|
|
30
|
+
playback_location_daily: "playback_location_daily";
|
|
31
|
+
creator_content_type_daily: "creator_content_type_daily";
|
|
32
|
+
video_catalog: "video_catalog";
|
|
33
|
+
}>;
|
|
34
|
+
endDate: z.ZodString;
|
|
35
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
json: "json";
|
|
37
|
+
summary: "summary";
|
|
38
|
+
}>>;
|
|
39
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
startDate: z.ZodString;
|
|
41
|
+
videoIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
export type DynamoiGetYouTubeChannelDataInput = z.infer<typeof DynamoiGetYouTubeChannelDataInputSchema>;
|
|
44
|
+
export declare const YouTubeChannelDataSchema: z.ZodObject<{
|
|
45
|
+
adsense: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
campaigns: z.ZodArray<z.ZodObject<{
|
|
47
|
+
billedUsd: z.ZodNumber;
|
|
48
|
+
campaignId: z.ZodString;
|
|
49
|
+
countsThroughDay: z.ZodNullable<z.ZodString>;
|
|
50
|
+
daysToGo: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
earnedBack: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
incrementalUsd: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
status: z.ZodEnum<{
|
|
54
|
+
counting: "counting";
|
|
55
|
+
final: "final";
|
|
56
|
+
unmeasured: "unmeasured";
|
|
57
|
+
}>;
|
|
58
|
+
title: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
61
|
+
adsensePerAdPlaybackUsd: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
code: z.ZodString;
|
|
63
|
+
name: z.ZodNullable<z.ZodString>;
|
|
64
|
+
peerAdsensePerAdPlaybackUsd: z.ZodNullable<z.ZodNumber>;
|
|
65
|
+
peerDelta: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
revenueUsd: z.ZodNumber;
|
|
67
|
+
targeted: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
formats: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
longForm: z.ZodObject<{
|
|
71
|
+
revenueUsd: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
rpmUsd: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
shorts: z.ZodObject<{
|
|
76
|
+
revenueUsd: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
rpmUsd: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
views: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
throughDay: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
recovery: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
aboveSwing: z.ZodNullable<z.ZodBoolean>;
|
|
84
|
+
billedUsd: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
daysCounted: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
daysNeeded: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
earnedBack: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
incrementalUsd: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
sinceDay: z.ZodNullable<z.ZodString>;
|
|
90
|
+
state: z.ZodEnum<{
|
|
91
|
+
unavailable: "unavailable";
|
|
92
|
+
ready: "ready";
|
|
93
|
+
building: "building";
|
|
94
|
+
}>;
|
|
95
|
+
swingUsd: z.ZodNullable<z.ZodNumber>;
|
|
96
|
+
throughDay: z.ZodNullable<z.ZodString>;
|
|
97
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
98
|
+
baseline: "baseline";
|
|
99
|
+
billing: "billing";
|
|
100
|
+
no_campaign: "no_campaign";
|
|
101
|
+
read_failed: "read_failed";
|
|
102
|
+
}>>;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
windowDays: z.ZodNumber;
|
|
105
|
+
windowFromDay: z.ZodString;
|
|
106
|
+
windowThroughDay: z.ZodString;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
adsenseNote: z.ZodString;
|
|
109
|
+
artistId: z.ZodString;
|
|
110
|
+
campaigns: z.ZodArray<z.ZodObject<{
|
|
111
|
+
campaignId: z.ZodString;
|
|
112
|
+
createdAt: z.ZodString;
|
|
113
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
114
|
+
promotedVideos: z.ZodArray<z.ZodObject<{
|
|
115
|
+
playlistId: z.ZodNullable<z.ZodString>;
|
|
116
|
+
videoId: z.ZodString;
|
|
117
|
+
}, z.core.$strict>>;
|
|
118
|
+
status: z.ZodNullable<z.ZodString>;
|
|
119
|
+
strategy: z.ZodObject<{
|
|
120
|
+
key: z.ZodEnum<{
|
|
121
|
+
CHEAPEST_VIEWS: "CHEAPEST_VIEWS";
|
|
122
|
+
ORGANIC_VIEWS: "ORGANIC_VIEWS";
|
|
123
|
+
SUBSCRIBERS: "SUBSCRIBERS";
|
|
124
|
+
ORGANIC_VIEWS_AND_SUBSCRIBERS: "ORGANIC_VIEWS_AND_SUBSCRIBERS";
|
|
125
|
+
ADSENSE_ROI: "ADSENSE_ROI";
|
|
126
|
+
}>;
|
|
127
|
+
label: z.ZodString;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
title: z.ZodNullable<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
channelId: z.ZodString;
|
|
132
|
+
channelName: z.ZodNullable<z.ZodString>;
|
|
133
|
+
coverage: z.ZodObject<{
|
|
134
|
+
datasetLatestDay: z.ZodNullable<z.ZodString>;
|
|
135
|
+
latestCompleteDay: z.ZodString;
|
|
136
|
+
missingDays: z.ZodArray<z.ZodString>;
|
|
137
|
+
note: z.ZodString;
|
|
138
|
+
observedThroughDay: z.ZodNullable<z.ZodString>;
|
|
139
|
+
placeholderDays: z.ZodArray<z.ZodString>;
|
|
140
|
+
requestedEndDate: z.ZodString;
|
|
141
|
+
requestedStartDate: z.ZodString;
|
|
142
|
+
revenueThroughDay: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
dataLagNote: z.ZodString;
|
|
145
|
+
dataset: z.ZodEnum<{
|
|
146
|
+
channel_daily: "channel_daily";
|
|
147
|
+
video_daily: "video_daily";
|
|
148
|
+
country_daily: "country_daily";
|
|
149
|
+
traffic_source_daily: "traffic_source_daily";
|
|
150
|
+
search_term_daily: "search_term_daily";
|
|
151
|
+
subscribed_status_daily: "subscribed_status_daily";
|
|
152
|
+
device_daily: "device_daily";
|
|
153
|
+
operating_system_daily: "operating_system_daily";
|
|
154
|
+
playback_location_daily: "playback_location_daily";
|
|
155
|
+
creator_content_type_daily: "creator_content_type_daily";
|
|
156
|
+
video_catalog: "video_catalog";
|
|
157
|
+
}>;
|
|
158
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
159
|
+
notAvailable: z.ZodArray<z.ZodString>;
|
|
160
|
+
rowCount: z.ZodNumber;
|
|
161
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
|
|
162
|
+
source: z.ZodObject<{
|
|
163
|
+
attribution: z.ZodString;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
strategyGuideResource: z.ZodString;
|
|
167
|
+
summary: z.ZodString;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export type GetYouTubeChannelDataData = z.infer<typeof YouTubeChannelDataSchema>;
|