@dynamoi/mcp 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CAPABILITY_PARITY.md +3 -9
- package/CHANGELOG.md +13 -14
- package/README.md +26 -14
- package/dist/auth/protected-resource.d.ts +14 -0
- package/dist/auth/protected-resource.js +126 -2
- package/dist/campaign-limits.d.ts +1 -7
- package/dist/campaign-limits.js +22 -4
- 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 +10309 -4170
- package/dist/server/about.d.ts +18 -19
- package/dist/server/about.generated.d.ts +74 -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/messaging.d.ts +2 -2
- 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 +29 -168
- 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 +832 -303
- 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 +22 -6
- package/server.json +2 -2
|
@@ -0,0 +1,1185 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DRAFT_REOPEN_CONTRACT: {
|
|
3
|
+
readonly capabilityId: "native_drafts_media";
|
|
4
|
+
readonly kind: "query";
|
|
5
|
+
readonly version: 1;
|
|
6
|
+
readonly currencyProof: {
|
|
7
|
+
readonly currency: {
|
|
8
|
+
readonly mode: "usd_only";
|
|
9
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
10
|
+
readonly evidence: readonly [{
|
|
11
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
12
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
13
|
+
}, {
|
|
14
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
15
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
16
|
+
}, {
|
|
17
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
18
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
19
|
+
}, {
|
|
20
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
21
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
22
|
+
}];
|
|
23
|
+
};
|
|
24
|
+
readonly fixtures: readonly [];
|
|
25
|
+
readonly responseFixtures: {};
|
|
26
|
+
};
|
|
27
|
+
readonly mobile: {
|
|
28
|
+
readonly method: "GET";
|
|
29
|
+
readonly operationId: "getMobileArtistCampaignDraft";
|
|
30
|
+
readonly paramsSchema: z.ZodObject<{
|
|
31
|
+
artistId: z.ZodString;
|
|
32
|
+
campaignId: z.ZodUUID;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
readonly path: "/api/mobile/artists/{artistId}/campaign-drafts/{campaignId}";
|
|
35
|
+
readonly responseSchema: z.ZodObject<{
|
|
36
|
+
adCopy: z.ZodNullable<z.ZodObject<Readonly<{
|
|
37
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
38
|
+
}>, z.core.$strip>>;
|
|
39
|
+
budget: z.ZodNullable<z.ZodObject<Readonly<{
|
|
40
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
41
|
+
}>, z.core.$strip>>;
|
|
42
|
+
creative: z.ZodNullable<z.ZodObject<Readonly<{
|
|
43
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
44
|
+
}>, z.core.$strip>>;
|
|
45
|
+
draft: z.ZodObject<{
|
|
46
|
+
activeStep: z.ZodNullable<z.ZodString>;
|
|
47
|
+
campaignId: z.ZodUUID;
|
|
48
|
+
campaignType: z.ZodEnum<{
|
|
49
|
+
SMART_CAMPAIGN: "SMART_CAMPAIGN";
|
|
50
|
+
YOUTUBE: "YOUTUBE";
|
|
51
|
+
}>;
|
|
52
|
+
playLinkId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
title: z.ZodNullable<z.ZodString>;
|
|
54
|
+
updatedAt: z.ZodISODateTime;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
57
|
+
activeStep: z.ZodLiteral<"location">;
|
|
58
|
+
availableCountries: z.ZodArray<z.ZodObject<{
|
|
59
|
+
code: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
campaignId: z.ZodUUID;
|
|
63
|
+
location: z.ZodObject<{
|
|
64
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
mode: z.ZodEnum<{
|
|
69
|
+
INCLUDE: "INCLUDE";
|
|
70
|
+
WORLDWIDE: "WORLDWIDE";
|
|
71
|
+
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
recommendedCountries: z.ZodArray<z.ZodObject<{
|
|
74
|
+
code: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
updatedAt: z.ZodISODateTime;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
youtube: z.ZodNullable<z.ZodObject<Readonly<{
|
|
80
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
81
|
+
}>, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
readonly auth: "bearer";
|
|
84
|
+
readonly platforms: readonly ["ios", "android"];
|
|
85
|
+
};
|
|
86
|
+
readonly mcp: {
|
|
87
|
+
readonly action: "read_draft";
|
|
88
|
+
readonly definition: {
|
|
89
|
+
readonly name: "dynamoi_read_campaign_draft_media";
|
|
90
|
+
readonly title: "Read Campaign Draft and Media";
|
|
91
|
+
readonly description: "Reopen an owned Smart or YouTube campaign draft with action=read_draft and campaignId. Returns its summary, current revision and reached step projections. Use action=read_media_catalog with mediaCatalog={source:uploads|facebook|instagram,limit:1..25,after?:nextCursor} for the native media chooser. Only authorized editors can use these setup reads. No draft, selection or campaign changes. Uploaded URLs stay hidden unless moderation approves them.";
|
|
92
|
+
readonly schema: z.ZodObject<{
|
|
93
|
+
action: z.ZodEnum<{
|
|
94
|
+
read_draft: "read_draft";
|
|
95
|
+
read_media_catalog: "read_media_catalog";
|
|
96
|
+
}>;
|
|
97
|
+
artistId: z.ZodUUID;
|
|
98
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
99
|
+
mediaCatalog: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
after: z.ZodOptional<z.ZodString>;
|
|
101
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
102
|
+
source: z.ZodEnum<{
|
|
103
|
+
facebook: "facebook";
|
|
104
|
+
instagram: "instagram";
|
|
105
|
+
uploads: "uploads";
|
|
106
|
+
}>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
readonly profiles: {
|
|
110
|
+
readonly directory: "excluded";
|
|
111
|
+
readonly full: "advertised";
|
|
112
|
+
};
|
|
113
|
+
readonly readOnlyHint: true;
|
|
114
|
+
readonly destructiveHint: false;
|
|
115
|
+
readonly openWorldHint: false;
|
|
116
|
+
};
|
|
117
|
+
readonly scopes: readonly ["dynamoi:read"];
|
|
118
|
+
readonly directoryReason: "Full-only native setup projections; no directory submission or existing definition change.";
|
|
119
|
+
};
|
|
120
|
+
readonly parity: {
|
|
121
|
+
readonly webmcp: {
|
|
122
|
+
readonly status: "complete";
|
|
123
|
+
readonly binding: {
|
|
124
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
125
|
+
readonly export: "draftReopenWebMcp";
|
|
126
|
+
readonly tool: "dashboard_draft_reopen";
|
|
127
|
+
readonly intermediates: readonly [{
|
|
128
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
129
|
+
readonly export: "draftReopen";
|
|
130
|
+
}];
|
|
131
|
+
};
|
|
132
|
+
readonly journeys: readonly ["WM-DASHBOARD-draftReopen"];
|
|
133
|
+
};
|
|
134
|
+
readonly ios: {
|
|
135
|
+
readonly status: "partial";
|
|
136
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
137
|
+
};
|
|
138
|
+
readonly android: {
|
|
139
|
+
readonly status: "partial";
|
|
140
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export declare const MEDIA_CATALOG_CONTRACT: {
|
|
145
|
+
readonly capabilityId: "native_drafts_media";
|
|
146
|
+
readonly kind: "query";
|
|
147
|
+
readonly version: 1;
|
|
148
|
+
readonly currencyProof: {
|
|
149
|
+
readonly currency: {
|
|
150
|
+
readonly mode: "usd_only";
|
|
151
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
152
|
+
readonly evidence: readonly [{
|
|
153
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
154
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
155
|
+
}, {
|
|
156
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
157
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
158
|
+
}, {
|
|
159
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
160
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
161
|
+
}, {
|
|
162
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
163
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
164
|
+
}];
|
|
165
|
+
};
|
|
166
|
+
readonly fixtures: readonly [];
|
|
167
|
+
readonly responseFixtures: {};
|
|
168
|
+
};
|
|
169
|
+
readonly mobile: {
|
|
170
|
+
readonly method: "GET";
|
|
171
|
+
readonly operationId: "getMobileArtistMediaCatalog";
|
|
172
|
+
readonly path: "/api/mobile/artists/{artistId}/media-catalog";
|
|
173
|
+
readonly querySchema: z.ZodObject<{
|
|
174
|
+
after: z.ZodOptional<z.ZodString>;
|
|
175
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
176
|
+
source: z.ZodEnum<{
|
|
177
|
+
facebook: "facebook";
|
|
178
|
+
instagram: "instagram";
|
|
179
|
+
uploads: "uploads";
|
|
180
|
+
}>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
readonly responseSchema: z.ZodObject<{
|
|
183
|
+
items: z.ZodArray<z.ZodObject<{
|
|
184
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
|
+
eligibleForPromotion: z.ZodNullable<z.ZodBoolean>;
|
|
186
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
fileSizeBytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
mediaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
moderationStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
text: z.ZodString;
|
|
192
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
196
|
+
source: z.ZodEnum<{
|
|
197
|
+
facebook: "facebook";
|
|
198
|
+
instagram: "instagram";
|
|
199
|
+
uploads: "uploads";
|
|
200
|
+
}>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
readonly auth: "bearer";
|
|
203
|
+
readonly paramsSchema: z.ZodObject<{
|
|
204
|
+
artistId: z.ZodString;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
readonly platforms: readonly ["ios", "android"];
|
|
207
|
+
};
|
|
208
|
+
readonly mcp: {
|
|
209
|
+
readonly action: "read_media_catalog";
|
|
210
|
+
readonly definition: {
|
|
211
|
+
readonly name: "dynamoi_read_campaign_draft_media";
|
|
212
|
+
readonly title: "Read Campaign Draft and Media";
|
|
213
|
+
readonly description: "Reopen an owned Smart or YouTube campaign draft with action=read_draft and campaignId. Returns its summary, current revision and reached step projections. Use action=read_media_catalog with mediaCatalog={source:uploads|facebook|instagram,limit:1..25,after?:nextCursor} for the native media chooser. Only authorized editors can use these setup reads. No draft, selection or campaign changes. Uploaded URLs stay hidden unless moderation approves them.";
|
|
214
|
+
readonly schema: z.ZodObject<{
|
|
215
|
+
action: z.ZodEnum<{
|
|
216
|
+
read_draft: "read_draft";
|
|
217
|
+
read_media_catalog: "read_media_catalog";
|
|
218
|
+
}>;
|
|
219
|
+
artistId: z.ZodUUID;
|
|
220
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
221
|
+
mediaCatalog: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
after: z.ZodOptional<z.ZodString>;
|
|
223
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
224
|
+
source: z.ZodEnum<{
|
|
225
|
+
facebook: "facebook";
|
|
226
|
+
instagram: "instagram";
|
|
227
|
+
uploads: "uploads";
|
|
228
|
+
}>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
}, z.core.$strict>;
|
|
231
|
+
readonly profiles: {
|
|
232
|
+
readonly directory: "excluded";
|
|
233
|
+
readonly full: "advertised";
|
|
234
|
+
};
|
|
235
|
+
readonly readOnlyHint: true;
|
|
236
|
+
readonly destructiveHint: false;
|
|
237
|
+
readonly openWorldHint: false;
|
|
238
|
+
};
|
|
239
|
+
readonly scopes: readonly ["dynamoi:read"];
|
|
240
|
+
readonly directoryReason: "Full-only native setup projections; no directory submission or existing definition change.";
|
|
241
|
+
};
|
|
242
|
+
readonly parity: {
|
|
243
|
+
readonly webmcp: {
|
|
244
|
+
readonly status: "complete";
|
|
245
|
+
readonly binding: {
|
|
246
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
247
|
+
readonly export: "mediaCatalogWebMcp";
|
|
248
|
+
readonly tool: "dashboard_media_catalog";
|
|
249
|
+
readonly intermediates: readonly [{
|
|
250
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
251
|
+
readonly export: "mediaCatalog";
|
|
252
|
+
}];
|
|
253
|
+
};
|
|
254
|
+
readonly journeys: readonly ["WM-DASHBOARD-mediaCatalog"];
|
|
255
|
+
};
|
|
256
|
+
readonly ios: {
|
|
257
|
+
readonly status: "partial";
|
|
258
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
259
|
+
};
|
|
260
|
+
readonly android: {
|
|
261
|
+
readonly status: "partial";
|
|
262
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
export declare const MEDIA_UPLOAD_START_CONTRACT: {
|
|
267
|
+
readonly webmcpAliases: {
|
|
268
|
+
operationId: string;
|
|
269
|
+
plan: {
|
|
270
|
+
status: "complete";
|
|
271
|
+
journeys: string[];
|
|
272
|
+
binding: {
|
|
273
|
+
file: string;
|
|
274
|
+
export: string;
|
|
275
|
+
tool: string;
|
|
276
|
+
intermediates: {
|
|
277
|
+
file: string;
|
|
278
|
+
export: string;
|
|
279
|
+
}[];
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
}[];
|
|
283
|
+
readonly mobileAliases: readonly [{
|
|
284
|
+
readonly bodySchema: z.ZodObject<Readonly<{
|
|
285
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
286
|
+
}>, z.core.$strip>;
|
|
287
|
+
readonly idempotent: true;
|
|
288
|
+
readonly method: "POST";
|
|
289
|
+
readonly operationId: "postMobileArtistSmartCampaignSourceAudioUpload";
|
|
290
|
+
readonly path: "/api/mobile/artists/{artistId}/smart-campaign-draft/creative/source-audio-upload";
|
|
291
|
+
readonly responseSchema: z.ZodObject<Readonly<{
|
|
292
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
293
|
+
}>, z.core.$strip>;
|
|
294
|
+
readonly auth: "bearer";
|
|
295
|
+
readonly paramsSchema: z.ZodObject<{
|
|
296
|
+
artistId: z.ZodString;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
readonly platforms: readonly ["android", "ios"];
|
|
299
|
+
}];
|
|
300
|
+
readonly capabilityId: "native_drafts_media";
|
|
301
|
+
readonly kind: "command";
|
|
302
|
+
readonly version: 1;
|
|
303
|
+
readonly currencyProof: {
|
|
304
|
+
readonly currency: {
|
|
305
|
+
readonly mode: "usd_only";
|
|
306
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
307
|
+
readonly evidence: readonly [{
|
|
308
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
309
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
310
|
+
}, {
|
|
311
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
312
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
313
|
+
}, {
|
|
314
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
315
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
316
|
+
}, {
|
|
317
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
318
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
319
|
+
}];
|
|
320
|
+
};
|
|
321
|
+
readonly fixtures: readonly [];
|
|
322
|
+
readonly responseFixtures: {};
|
|
323
|
+
};
|
|
324
|
+
readonly mobile: {
|
|
325
|
+
readonly bodySchema: z.ZodObject<{
|
|
326
|
+
contentType: z.ZodString;
|
|
327
|
+
campaignId: z.ZodUUID;
|
|
328
|
+
assetId: z.ZodUUID;
|
|
329
|
+
fileName: z.ZodString;
|
|
330
|
+
fileSizeBytes: z.ZodNumber;
|
|
331
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
332
|
+
requestId: z.ZodUUID;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
readonly method: "POST";
|
|
335
|
+
readonly operationId: "postMobileArtistMediaUploadStart";
|
|
336
|
+
readonly path: "/api/mobile/artists/{artistId}/media-upload";
|
|
337
|
+
readonly responseSchema: z.ZodObject<{
|
|
338
|
+
expiresAt: z.ZodISODateTime;
|
|
339
|
+
key: z.ZodString;
|
|
340
|
+
partSizeBytes: z.ZodNumber;
|
|
341
|
+
presignedPartUrls: z.ZodArray<z.ZodURL>;
|
|
342
|
+
uploadId: z.ZodString;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
readonly auth: "bearer";
|
|
345
|
+
readonly paramsSchema: z.ZodObject<{
|
|
346
|
+
artistId: z.ZodString;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
readonly platforms: readonly ["ios", "android"];
|
|
349
|
+
};
|
|
350
|
+
readonly mcp: {
|
|
351
|
+
readonly action: "start_media_upload";
|
|
352
|
+
readonly definition: {
|
|
353
|
+
readonly description: "Use save_setup with setupSave={playLinkId, appleMusicUrl?} and a stable UUID-v4 setupRequestId per setup flow; reuse it on retries, and start a new flow for different content. It returns setupDraft. Use read_budget for budgetDraft and save_budget with budgetSave={campaignId, expectedUpdatedAt, budgetAmountCents, budgetAmountMinor?, currency?, budgetType:DAILY|TOTAL, endDate:YYYY-MM-DD|null}. Amounts are exact minor units in the artist currency; use the budget policy from read_budget. Setup and budget saves only edit drafts and never launch or charge. Use read_location to read native draft targeting and save_location with locationSave={campaignId, expectedUpdatedAt, targeting:{mode:WORLDWIDE}|{mode:INCLUDE,countryCodes:[US]}} to save it. Read locationDraft first for the current revision; both location actions return locationDraft. Read generation progress, generated creatives and current selection with action=read. To discover owned social posts, explicitly add catalog={source:facebook|instagram,limit:1..25,after?:nextCursor}. Only requested catalog reads fetch connected-account posts; use catalog.items[].id directly in selectedSocialPosts. Pass nextCursor as after for another page. Catalog reads never alter selections, token state, or campaigns; provider failure is an error, and selection revalidates ownership. Use start_generation, retry_generation or clear_generation with campaignId and expectedUpdatedAt from read. Generation runs asynchronously; poll with read. Use source_audio_upload_status or abort_source_audio_upload with campaignId, expectedUpdatedAt, uploadId and uploadSessionId to inspect uploaded parts or abort the direct upload. Agents never approve or submit. Use action=select with campaignId and expectedUpdatedAt from read, source=generate|posts|upload, and selectedCreativeIds, selectedSocialPosts (owned META:post IDs), or uploadedAssets=[{mediaAssetId}] from dynamoi_list_media_assets. Omit selectedCreativeIds for social or uploaded media. Uploaded metadata is resolved by the server; only owned, moderation-approved uploads can be selected. Selection never attests artist approval and never submits the campaign. Upload private JPEG/PNG/MP4 campaign media (1 GiB maximum) with start_media_upload, campaignId, expectedUpdatedAt and mediaUpload={assetId:UUID,fileName,fileSizeBytes,contentType}. Retain the returned key/uploadId and PUT each presigned part URL. Complete with complete_media_upload, a freshly inspected expectedUpdatedAt, and mediaUpload={assetId,fileName,fileSizeBytes,fileType,key,uploadId,parts:[{partNumber,etag}]}. Use media_upload_status or abort_media_upload with campaignId and mediaUpload={key,uploadId}; both remain usable after draft edits. A completed status means retry completion, not re-upload. Completion returns only a moderation receipt; poll dynamoi_list_media_assets and select only after APPROVED. Uploads do not edit the draft selection. Attach source MP3 audio to a draft with start_source_audio_upload, PUT each returned presigned part URL, then complete_source_audio_upload with the returned uploadId/uploadSessionId and part ETags. Both actions require campaignId, expectedUpdatedAt, fileSizeBytes, trackDurationSeconds and 0–2 hookSeconds. Read sourceAudio to confirm. Use import_source_audio with a public Dropbox share url, campaignId, expectedUpdatedAt, trackDurationSeconds and 0–2 hookSeconds (250 MiB maximum). Google Drive is unsupported because it requires a Google API key. On timeout or an ambiguous result, re-read sourceAudio before retrying.";
|
|
354
|
+
readonly destructiveHint: true;
|
|
355
|
+
readonly profiles: {
|
|
356
|
+
readonly directory: "advertised";
|
|
357
|
+
readonly full: "advertised";
|
|
358
|
+
};
|
|
359
|
+
readonly name: "dynamoi_manage_smart_campaign_creative";
|
|
360
|
+
readonly openWorldHint: true;
|
|
361
|
+
readonly readOnlyHint: false;
|
|
362
|
+
readonly schema: z.ZodObject<{
|
|
363
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
364
|
+
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
365
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
hookSeconds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
367
|
+
trackDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
|
+
etag: z.ZodString;
|
|
370
|
+
partNumber: z.ZodNumber;
|
|
371
|
+
}, z.core.$strict>>>;
|
|
372
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
uploadSessionId: z.ZodOptional<z.ZodUUID>;
|
|
374
|
+
selectedCreativeIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUUID>>>;
|
|
375
|
+
selectedSocialPosts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
376
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
377
|
+
generate: "generate";
|
|
378
|
+
posts: "posts";
|
|
379
|
+
upload: "upload";
|
|
380
|
+
}>>>;
|
|
381
|
+
uploadedAssets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
fileName: z.ZodDefault<z.ZodString>;
|
|
383
|
+
fileSize: z.ZodDefault<z.ZodNumber>;
|
|
384
|
+
fileType: z.ZodDefault<z.ZodString>;
|
|
385
|
+
id: z.ZodDefault<z.ZodString>;
|
|
386
|
+
mediaAssetId: z.ZodUUID;
|
|
387
|
+
}, z.core.$strict>>>>;
|
|
388
|
+
action: z.ZodEnum<{
|
|
389
|
+
save_setup: "save_setup";
|
|
390
|
+
read_budget: "read_budget";
|
|
391
|
+
save_budget: "save_budget";
|
|
392
|
+
read: "read";
|
|
393
|
+
read_location: "read_location";
|
|
394
|
+
save_location: "save_location";
|
|
395
|
+
start_generation: "start_generation";
|
|
396
|
+
retry_generation: "retry_generation";
|
|
397
|
+
clear_generation: "clear_generation";
|
|
398
|
+
source_audio_upload_status: "source_audio_upload_status";
|
|
399
|
+
abort_source_audio_upload: "abort_source_audio_upload";
|
|
400
|
+
select: "select";
|
|
401
|
+
import_source_audio: "import_source_audio";
|
|
402
|
+
start_source_audio_upload: "start_source_audio_upload";
|
|
403
|
+
complete_source_audio_upload: "complete_source_audio_upload";
|
|
404
|
+
start_media_upload: "start_media_upload";
|
|
405
|
+
media_upload_status: "media_upload_status";
|
|
406
|
+
complete_media_upload: "complete_media_upload";
|
|
407
|
+
abort_media_upload: "abort_media_upload";
|
|
408
|
+
}>;
|
|
409
|
+
artistId: z.ZodUUID;
|
|
410
|
+
budgetSave: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
campaignId: z.ZodUUID;
|
|
412
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
413
|
+
budgetAmountCents: z.ZodNumber;
|
|
414
|
+
budgetAmountMinor: z.ZodOptional<z.ZodNumber>;
|
|
415
|
+
budgetType: z.ZodEnum<{
|
|
416
|
+
TOTAL: "TOTAL";
|
|
417
|
+
DAILY: "DAILY";
|
|
418
|
+
}>;
|
|
419
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
420
|
+
endDate: z.ZodNullable<z.ZodISODate>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
catalog: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
after: z.ZodOptional<z.ZodString>;
|
|
424
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
425
|
+
source: z.ZodEnum<{
|
|
426
|
+
facebook: "facebook";
|
|
427
|
+
instagram: "instagram";
|
|
428
|
+
}>;
|
|
429
|
+
}, z.core.$strict>>;
|
|
430
|
+
locationSave: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
campaignId: z.ZodUUID;
|
|
432
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
433
|
+
targeting: z.ZodUnion<readonly [z.ZodObject<{
|
|
434
|
+
mode: z.ZodLiteral<"WORLDWIDE">;
|
|
435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
436
|
+
countryCodes: z.ZodArray<z.ZodString>;
|
|
437
|
+
mode: z.ZodLiteral<"INCLUDE">;
|
|
438
|
+
}, z.core.$strict>]>;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
mediaUpload: z.ZodOptional<z.ZodObject<{
|
|
441
|
+
assetId: z.ZodOptional<z.ZodUUID>;
|
|
442
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
"image/jpeg": "image/jpeg";
|
|
444
|
+
"image/png": "image/png";
|
|
445
|
+
"video/mp4": "video/mp4";
|
|
446
|
+
}>>;
|
|
447
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
448
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
449
|
+
fileType: z.ZodOptional<z.ZodEnum<{
|
|
450
|
+
"image/jpeg": "image/jpeg";
|
|
451
|
+
"image/png": "image/png";
|
|
452
|
+
"video/mp4": "video/mp4";
|
|
453
|
+
}>>;
|
|
454
|
+
key: z.ZodOptional<z.ZodString>;
|
|
455
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
456
|
+
etag: z.ZodString;
|
|
457
|
+
partNumber: z.ZodNumber;
|
|
458
|
+
}, z.core.$strict>>>;
|
|
459
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, z.core.$strict>>;
|
|
461
|
+
setupRequestId: z.ZodOptional<z.ZodUUID>;
|
|
462
|
+
setupSave: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
appleMusicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
|
+
playLinkId: z.ZodString;
|
|
465
|
+
sourceSurface: z.ZodDefault<z.ZodLiteral<"mcp">>;
|
|
466
|
+
}, z.core.$strict>>;
|
|
467
|
+
url: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$strict>;
|
|
469
|
+
readonly title: "Manage Smart Campaign Draft Creative";
|
|
470
|
+
};
|
|
471
|
+
readonly scopes: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
472
|
+
readonly directoryReason: "Existing reviewed creative tool; private upload lifecycle never submits a campaign.";
|
|
473
|
+
};
|
|
474
|
+
readonly parity: {
|
|
475
|
+
readonly webmcp: {
|
|
476
|
+
readonly status: "complete";
|
|
477
|
+
readonly binding: {
|
|
478
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
479
|
+
readonly export: "mediaUploadStartWebMcp";
|
|
480
|
+
readonly tool: "dashboard_media_upload_start";
|
|
481
|
+
readonly intermediates: readonly [{
|
|
482
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
483
|
+
readonly export: "mediaUploadStart";
|
|
484
|
+
}];
|
|
485
|
+
};
|
|
486
|
+
readonly journeys: readonly ["WM-DASHBOARD-mediaUploadStart"];
|
|
487
|
+
};
|
|
488
|
+
readonly ios: {
|
|
489
|
+
readonly status: "partial";
|
|
490
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
491
|
+
};
|
|
492
|
+
readonly android: {
|
|
493
|
+
readonly status: "partial";
|
|
494
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
export declare const MEDIA_UPLOAD_STATUS_CONTRACT: {
|
|
499
|
+
readonly webmcpAliases: {
|
|
500
|
+
operationId: string;
|
|
501
|
+
plan: {
|
|
502
|
+
status: "complete";
|
|
503
|
+
journeys: string[];
|
|
504
|
+
binding: {
|
|
505
|
+
file: string;
|
|
506
|
+
export: string;
|
|
507
|
+
tool: string;
|
|
508
|
+
intermediates: {
|
|
509
|
+
file: string;
|
|
510
|
+
export: string;
|
|
511
|
+
}[];
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
}[];
|
|
515
|
+
readonly mobileAliases: readonly [{
|
|
516
|
+
readonly bodySchema: z.ZodObject<Readonly<{
|
|
517
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
518
|
+
}>, z.core.$strip>;
|
|
519
|
+
readonly method: "POST";
|
|
520
|
+
readonly operationId: "postMobileArtistSmartCampaignSourceAudioUploadStatus";
|
|
521
|
+
readonly path: "/api/mobile/artists/{artistId}/smart-campaign-draft/creative/source-audio-upload/status";
|
|
522
|
+
readonly responseSchema: z.ZodObject<Readonly<{
|
|
523
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
524
|
+
}>, z.core.$strip>;
|
|
525
|
+
readonly auth: "bearer";
|
|
526
|
+
readonly paramsSchema: z.ZodObject<{
|
|
527
|
+
artistId: z.ZodString;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
readonly platforms: readonly ["android", "ios"];
|
|
530
|
+
}];
|
|
531
|
+
readonly capabilityId: "native_drafts_media";
|
|
532
|
+
readonly kind: "command";
|
|
533
|
+
readonly version: 1;
|
|
534
|
+
readonly currencyProof: {
|
|
535
|
+
readonly currency: {
|
|
536
|
+
readonly mode: "usd_only";
|
|
537
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
538
|
+
readonly evidence: readonly [{
|
|
539
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
540
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
541
|
+
}, {
|
|
542
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
543
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
544
|
+
}, {
|
|
545
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
546
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
547
|
+
}, {
|
|
548
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
549
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
550
|
+
}];
|
|
551
|
+
};
|
|
552
|
+
readonly fixtures: readonly [];
|
|
553
|
+
readonly responseFixtures: {};
|
|
554
|
+
};
|
|
555
|
+
readonly mobile: {
|
|
556
|
+
readonly bodySchema: z.ZodObject<{
|
|
557
|
+
campaignId: z.ZodUUID;
|
|
558
|
+
key: z.ZodString;
|
|
559
|
+
uploadId: z.ZodString;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
readonly method: "POST";
|
|
562
|
+
readonly operationId: "postMobileArtistMediaUploadStatus";
|
|
563
|
+
readonly path: "/api/mobile/artists/{artistId}/media-upload/status";
|
|
564
|
+
readonly responseSchema: z.ZodObject<{
|
|
565
|
+
completed: z.ZodBoolean;
|
|
566
|
+
uploadedParts: z.ZodArray<z.ZodObject<{
|
|
567
|
+
etag: z.ZodString;
|
|
568
|
+
partNumber: z.ZodNumber;
|
|
569
|
+
sizeBytes: z.ZodNumber;
|
|
570
|
+
}, z.core.$strip>>;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
readonly auth: "bearer";
|
|
573
|
+
readonly paramsSchema: z.ZodObject<{
|
|
574
|
+
artistId: z.ZodString;
|
|
575
|
+
}, z.core.$strip>;
|
|
576
|
+
readonly platforms: readonly ["ios", "android"];
|
|
577
|
+
};
|
|
578
|
+
readonly mcp: {
|
|
579
|
+
readonly action: "media_upload_status";
|
|
580
|
+
readonly definition: {
|
|
581
|
+
readonly description: "Use save_setup with setupSave={playLinkId, appleMusicUrl?} and a stable UUID-v4 setupRequestId per setup flow; reuse it on retries, and start a new flow for different content. It returns setupDraft. Use read_budget for budgetDraft and save_budget with budgetSave={campaignId, expectedUpdatedAt, budgetAmountCents, budgetAmountMinor?, currency?, budgetType:DAILY|TOTAL, endDate:YYYY-MM-DD|null}. Amounts are exact minor units in the artist currency; use the budget policy from read_budget. Setup and budget saves only edit drafts and never launch or charge. Use read_location to read native draft targeting and save_location with locationSave={campaignId, expectedUpdatedAt, targeting:{mode:WORLDWIDE}|{mode:INCLUDE,countryCodes:[US]}} to save it. Read locationDraft first for the current revision; both location actions return locationDraft. Read generation progress, generated creatives and current selection with action=read. To discover owned social posts, explicitly add catalog={source:facebook|instagram,limit:1..25,after?:nextCursor}. Only requested catalog reads fetch connected-account posts; use catalog.items[].id directly in selectedSocialPosts. Pass nextCursor as after for another page. Catalog reads never alter selections, token state, or campaigns; provider failure is an error, and selection revalidates ownership. Use start_generation, retry_generation or clear_generation with campaignId and expectedUpdatedAt from read. Generation runs asynchronously; poll with read. Use source_audio_upload_status or abort_source_audio_upload with campaignId, expectedUpdatedAt, uploadId and uploadSessionId to inspect uploaded parts or abort the direct upload. Agents never approve or submit. Use action=select with campaignId and expectedUpdatedAt from read, source=generate|posts|upload, and selectedCreativeIds, selectedSocialPosts (owned META:post IDs), or uploadedAssets=[{mediaAssetId}] from dynamoi_list_media_assets. Omit selectedCreativeIds for social or uploaded media. Uploaded metadata is resolved by the server; only owned, moderation-approved uploads can be selected. Selection never attests artist approval and never submits the campaign. Upload private JPEG/PNG/MP4 campaign media (1 GiB maximum) with start_media_upload, campaignId, expectedUpdatedAt and mediaUpload={assetId:UUID,fileName,fileSizeBytes,contentType}. Retain the returned key/uploadId and PUT each presigned part URL. Complete with complete_media_upload, a freshly inspected expectedUpdatedAt, and mediaUpload={assetId,fileName,fileSizeBytes,fileType,key,uploadId,parts:[{partNumber,etag}]}. Use media_upload_status or abort_media_upload with campaignId and mediaUpload={key,uploadId}; both remain usable after draft edits. A completed status means retry completion, not re-upload. Completion returns only a moderation receipt; poll dynamoi_list_media_assets and select only after APPROVED. Uploads do not edit the draft selection. Attach source MP3 audio to a draft with start_source_audio_upload, PUT each returned presigned part URL, then complete_source_audio_upload with the returned uploadId/uploadSessionId and part ETags. Both actions require campaignId, expectedUpdatedAt, fileSizeBytes, trackDurationSeconds and 0–2 hookSeconds. Read sourceAudio to confirm. Use import_source_audio with a public Dropbox share url, campaignId, expectedUpdatedAt, trackDurationSeconds and 0–2 hookSeconds (250 MiB maximum). Google Drive is unsupported because it requires a Google API key. On timeout or an ambiguous result, re-read sourceAudio before retrying.";
|
|
582
|
+
readonly destructiveHint: true;
|
|
583
|
+
readonly profiles: {
|
|
584
|
+
readonly directory: "advertised";
|
|
585
|
+
readonly full: "advertised";
|
|
586
|
+
};
|
|
587
|
+
readonly name: "dynamoi_manage_smart_campaign_creative";
|
|
588
|
+
readonly openWorldHint: true;
|
|
589
|
+
readonly readOnlyHint: false;
|
|
590
|
+
readonly schema: z.ZodObject<{
|
|
591
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
592
|
+
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
593
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
594
|
+
hookSeconds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
595
|
+
trackDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
597
|
+
etag: z.ZodString;
|
|
598
|
+
partNumber: z.ZodNumber;
|
|
599
|
+
}, z.core.$strict>>>;
|
|
600
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
601
|
+
uploadSessionId: z.ZodOptional<z.ZodUUID>;
|
|
602
|
+
selectedCreativeIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUUID>>>;
|
|
603
|
+
selectedSocialPosts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
604
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
605
|
+
generate: "generate";
|
|
606
|
+
posts: "posts";
|
|
607
|
+
upload: "upload";
|
|
608
|
+
}>>>;
|
|
609
|
+
uploadedAssets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
610
|
+
fileName: z.ZodDefault<z.ZodString>;
|
|
611
|
+
fileSize: z.ZodDefault<z.ZodNumber>;
|
|
612
|
+
fileType: z.ZodDefault<z.ZodString>;
|
|
613
|
+
id: z.ZodDefault<z.ZodString>;
|
|
614
|
+
mediaAssetId: z.ZodUUID;
|
|
615
|
+
}, z.core.$strict>>>>;
|
|
616
|
+
action: z.ZodEnum<{
|
|
617
|
+
save_setup: "save_setup";
|
|
618
|
+
read_budget: "read_budget";
|
|
619
|
+
save_budget: "save_budget";
|
|
620
|
+
read: "read";
|
|
621
|
+
read_location: "read_location";
|
|
622
|
+
save_location: "save_location";
|
|
623
|
+
start_generation: "start_generation";
|
|
624
|
+
retry_generation: "retry_generation";
|
|
625
|
+
clear_generation: "clear_generation";
|
|
626
|
+
source_audio_upload_status: "source_audio_upload_status";
|
|
627
|
+
abort_source_audio_upload: "abort_source_audio_upload";
|
|
628
|
+
select: "select";
|
|
629
|
+
import_source_audio: "import_source_audio";
|
|
630
|
+
start_source_audio_upload: "start_source_audio_upload";
|
|
631
|
+
complete_source_audio_upload: "complete_source_audio_upload";
|
|
632
|
+
start_media_upload: "start_media_upload";
|
|
633
|
+
media_upload_status: "media_upload_status";
|
|
634
|
+
complete_media_upload: "complete_media_upload";
|
|
635
|
+
abort_media_upload: "abort_media_upload";
|
|
636
|
+
}>;
|
|
637
|
+
artistId: z.ZodUUID;
|
|
638
|
+
budgetSave: z.ZodOptional<z.ZodObject<{
|
|
639
|
+
campaignId: z.ZodUUID;
|
|
640
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
641
|
+
budgetAmountCents: z.ZodNumber;
|
|
642
|
+
budgetAmountMinor: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
budgetType: z.ZodEnum<{
|
|
644
|
+
TOTAL: "TOTAL";
|
|
645
|
+
DAILY: "DAILY";
|
|
646
|
+
}>;
|
|
647
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
648
|
+
endDate: z.ZodNullable<z.ZodISODate>;
|
|
649
|
+
}, z.core.$strict>>;
|
|
650
|
+
catalog: z.ZodOptional<z.ZodObject<{
|
|
651
|
+
after: z.ZodOptional<z.ZodString>;
|
|
652
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
653
|
+
source: z.ZodEnum<{
|
|
654
|
+
facebook: "facebook";
|
|
655
|
+
instagram: "instagram";
|
|
656
|
+
}>;
|
|
657
|
+
}, z.core.$strict>>;
|
|
658
|
+
locationSave: z.ZodOptional<z.ZodObject<{
|
|
659
|
+
campaignId: z.ZodUUID;
|
|
660
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
661
|
+
targeting: z.ZodUnion<readonly [z.ZodObject<{
|
|
662
|
+
mode: z.ZodLiteral<"WORLDWIDE">;
|
|
663
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
664
|
+
countryCodes: z.ZodArray<z.ZodString>;
|
|
665
|
+
mode: z.ZodLiteral<"INCLUDE">;
|
|
666
|
+
}, z.core.$strict>]>;
|
|
667
|
+
}, z.core.$strict>>;
|
|
668
|
+
mediaUpload: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
assetId: z.ZodOptional<z.ZodUUID>;
|
|
670
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
"image/jpeg": "image/jpeg";
|
|
672
|
+
"image/png": "image/png";
|
|
673
|
+
"video/mp4": "video/mp4";
|
|
674
|
+
}>>;
|
|
675
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
676
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
677
|
+
fileType: z.ZodOptional<z.ZodEnum<{
|
|
678
|
+
"image/jpeg": "image/jpeg";
|
|
679
|
+
"image/png": "image/png";
|
|
680
|
+
"video/mp4": "video/mp4";
|
|
681
|
+
}>>;
|
|
682
|
+
key: z.ZodOptional<z.ZodString>;
|
|
683
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
684
|
+
etag: z.ZodString;
|
|
685
|
+
partNumber: z.ZodNumber;
|
|
686
|
+
}, z.core.$strict>>>;
|
|
687
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$strict>>;
|
|
689
|
+
setupRequestId: z.ZodOptional<z.ZodUUID>;
|
|
690
|
+
setupSave: z.ZodOptional<z.ZodObject<{
|
|
691
|
+
appleMusicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
692
|
+
playLinkId: z.ZodString;
|
|
693
|
+
sourceSurface: z.ZodDefault<z.ZodLiteral<"mcp">>;
|
|
694
|
+
}, z.core.$strict>>;
|
|
695
|
+
url: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$strict>;
|
|
697
|
+
readonly title: "Manage Smart Campaign Draft Creative";
|
|
698
|
+
};
|
|
699
|
+
readonly scopes: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
700
|
+
readonly directoryReason: "Existing reviewed creative tool; private upload lifecycle never submits a campaign.";
|
|
701
|
+
};
|
|
702
|
+
readonly parity: {
|
|
703
|
+
readonly webmcp: {
|
|
704
|
+
readonly status: "complete";
|
|
705
|
+
readonly binding: {
|
|
706
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
707
|
+
readonly export: "mediaUploadStatusWebMcp";
|
|
708
|
+
readonly tool: "dashboard_media_upload_status";
|
|
709
|
+
readonly intermediates: readonly [{
|
|
710
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
711
|
+
readonly export: "mediaUploadStatus";
|
|
712
|
+
}];
|
|
713
|
+
};
|
|
714
|
+
readonly journeys: readonly ["WM-DASHBOARD-mediaUploadStatus"];
|
|
715
|
+
};
|
|
716
|
+
readonly ios: {
|
|
717
|
+
readonly status: "partial";
|
|
718
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
719
|
+
};
|
|
720
|
+
readonly android: {
|
|
721
|
+
readonly status: "partial";
|
|
722
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
export declare const MEDIA_UPLOAD_COMPLETE_CONTRACT: {
|
|
727
|
+
readonly webmcpAliases: {
|
|
728
|
+
operationId: string;
|
|
729
|
+
plan: {
|
|
730
|
+
status: "complete";
|
|
731
|
+
journeys: string[];
|
|
732
|
+
binding: {
|
|
733
|
+
file: string;
|
|
734
|
+
export: string;
|
|
735
|
+
tool: string;
|
|
736
|
+
intermediates: {
|
|
737
|
+
file: string;
|
|
738
|
+
export: string;
|
|
739
|
+
}[];
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
}[];
|
|
743
|
+
readonly mobileAliases: readonly [{
|
|
744
|
+
readonly bodySchema: z.ZodObject<Readonly<{
|
|
745
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
746
|
+
}>, z.core.$strip>;
|
|
747
|
+
readonly idempotent: true;
|
|
748
|
+
readonly method: "POST";
|
|
749
|
+
readonly operationId: "postMobileArtistSmartCampaignSourceAudioUploadComplete";
|
|
750
|
+
readonly path: "/api/mobile/artists/{artistId}/smart-campaign-draft/creative/source-audio-upload/complete";
|
|
751
|
+
readonly responseSchema: z.ZodObject<Readonly<{
|
|
752
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
753
|
+
}>, z.core.$strip>;
|
|
754
|
+
readonly auth: "bearer";
|
|
755
|
+
readonly paramsSchema: z.ZodObject<{
|
|
756
|
+
artistId: z.ZodString;
|
|
757
|
+
}, z.core.$strip>;
|
|
758
|
+
readonly platforms: readonly ["android", "ios"];
|
|
759
|
+
}];
|
|
760
|
+
readonly capabilityId: "native_drafts_media";
|
|
761
|
+
readonly kind: "command";
|
|
762
|
+
readonly version: 1;
|
|
763
|
+
readonly currencyProof: {
|
|
764
|
+
readonly currency: {
|
|
765
|
+
readonly mode: "usd_only";
|
|
766
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
767
|
+
readonly evidence: readonly [{
|
|
768
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
769
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
770
|
+
}, {
|
|
771
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
772
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
773
|
+
}, {
|
|
774
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
775
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
776
|
+
}, {
|
|
777
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
778
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
779
|
+
}];
|
|
780
|
+
};
|
|
781
|
+
readonly fixtures: readonly [];
|
|
782
|
+
readonly responseFixtures: {};
|
|
783
|
+
};
|
|
784
|
+
readonly mobile: {
|
|
785
|
+
readonly bodySchema: z.ZodObject<{
|
|
786
|
+
campaignId: z.ZodUUID;
|
|
787
|
+
key: z.ZodString;
|
|
788
|
+
assetId: z.ZodUUID;
|
|
789
|
+
fileType: z.ZodString;
|
|
790
|
+
fileName: z.ZodString;
|
|
791
|
+
fileSizeBytes: z.ZodNumber;
|
|
792
|
+
uploadId: z.ZodString;
|
|
793
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
794
|
+
etag: z.ZodString;
|
|
795
|
+
partNumber: z.ZodNumber;
|
|
796
|
+
}, z.core.$strip>>;
|
|
797
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
798
|
+
}, z.core.$strip>;
|
|
799
|
+
readonly method: "POST";
|
|
800
|
+
readonly operationId: "postMobileArtistMediaUploadComplete";
|
|
801
|
+
readonly path: "/api/mobile/artists/{artistId}/media-upload/complete";
|
|
802
|
+
readonly responseSchema: z.ZodObject<{
|
|
803
|
+
etag: z.ZodString;
|
|
804
|
+
key: z.ZodString;
|
|
805
|
+
mediaAssetId: z.ZodUUID;
|
|
806
|
+
moderationStatus: z.ZodString;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
readonly auth: "bearer";
|
|
809
|
+
readonly paramsSchema: z.ZodObject<{
|
|
810
|
+
artistId: z.ZodString;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
readonly platforms: readonly ["ios", "android"];
|
|
813
|
+
};
|
|
814
|
+
readonly mcp: {
|
|
815
|
+
readonly action: "complete_media_upload";
|
|
816
|
+
readonly definition: {
|
|
817
|
+
readonly description: "Use save_setup with setupSave={playLinkId, appleMusicUrl?} and a stable UUID-v4 setupRequestId per setup flow; reuse it on retries, and start a new flow for different content. It returns setupDraft. Use read_budget for budgetDraft and save_budget with budgetSave={campaignId, expectedUpdatedAt, budgetAmountCents, budgetAmountMinor?, currency?, budgetType:DAILY|TOTAL, endDate:YYYY-MM-DD|null}. Amounts are exact minor units in the artist currency; use the budget policy from read_budget. Setup and budget saves only edit drafts and never launch or charge. Use read_location to read native draft targeting and save_location with locationSave={campaignId, expectedUpdatedAt, targeting:{mode:WORLDWIDE}|{mode:INCLUDE,countryCodes:[US]}} to save it. Read locationDraft first for the current revision; both location actions return locationDraft. Read generation progress, generated creatives and current selection with action=read. To discover owned social posts, explicitly add catalog={source:facebook|instagram,limit:1..25,after?:nextCursor}. Only requested catalog reads fetch connected-account posts; use catalog.items[].id directly in selectedSocialPosts. Pass nextCursor as after for another page. Catalog reads never alter selections, token state, or campaigns; provider failure is an error, and selection revalidates ownership. Use start_generation, retry_generation or clear_generation with campaignId and expectedUpdatedAt from read. Generation runs asynchronously; poll with read. Use source_audio_upload_status or abort_source_audio_upload with campaignId, expectedUpdatedAt, uploadId and uploadSessionId to inspect uploaded parts or abort the direct upload. Agents never approve or submit. Use action=select with campaignId and expectedUpdatedAt from read, source=generate|posts|upload, and selectedCreativeIds, selectedSocialPosts (owned META:post IDs), or uploadedAssets=[{mediaAssetId}] from dynamoi_list_media_assets. Omit selectedCreativeIds for social or uploaded media. Uploaded metadata is resolved by the server; only owned, moderation-approved uploads can be selected. Selection never attests artist approval and never submits the campaign. Upload private JPEG/PNG/MP4 campaign media (1 GiB maximum) with start_media_upload, campaignId, expectedUpdatedAt and mediaUpload={assetId:UUID,fileName,fileSizeBytes,contentType}. Retain the returned key/uploadId and PUT each presigned part URL. Complete with complete_media_upload, a freshly inspected expectedUpdatedAt, and mediaUpload={assetId,fileName,fileSizeBytes,fileType,key,uploadId,parts:[{partNumber,etag}]}. Use media_upload_status or abort_media_upload with campaignId and mediaUpload={key,uploadId}; both remain usable after draft edits. A completed status means retry completion, not re-upload. Completion returns only a moderation receipt; poll dynamoi_list_media_assets and select only after APPROVED. Uploads do not edit the draft selection. Attach source MP3 audio to a draft with start_source_audio_upload, PUT each returned presigned part URL, then complete_source_audio_upload with the returned uploadId/uploadSessionId and part ETags. Both actions require campaignId, expectedUpdatedAt, fileSizeBytes, trackDurationSeconds and 0–2 hookSeconds. Read sourceAudio to confirm. Use import_source_audio with a public Dropbox share url, campaignId, expectedUpdatedAt, trackDurationSeconds and 0–2 hookSeconds (250 MiB maximum). Google Drive is unsupported because it requires a Google API key. On timeout or an ambiguous result, re-read sourceAudio before retrying.";
|
|
818
|
+
readonly destructiveHint: true;
|
|
819
|
+
readonly profiles: {
|
|
820
|
+
readonly directory: "advertised";
|
|
821
|
+
readonly full: "advertised";
|
|
822
|
+
};
|
|
823
|
+
readonly name: "dynamoi_manage_smart_campaign_creative";
|
|
824
|
+
readonly openWorldHint: true;
|
|
825
|
+
readonly readOnlyHint: false;
|
|
826
|
+
readonly schema: z.ZodObject<{
|
|
827
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
828
|
+
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
829
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
hookSeconds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
831
|
+
trackDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
832
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
833
|
+
etag: z.ZodString;
|
|
834
|
+
partNumber: z.ZodNumber;
|
|
835
|
+
}, z.core.$strict>>>;
|
|
836
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
837
|
+
uploadSessionId: z.ZodOptional<z.ZodUUID>;
|
|
838
|
+
selectedCreativeIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUUID>>>;
|
|
839
|
+
selectedSocialPosts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
840
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
841
|
+
generate: "generate";
|
|
842
|
+
posts: "posts";
|
|
843
|
+
upload: "upload";
|
|
844
|
+
}>>>;
|
|
845
|
+
uploadedAssets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
846
|
+
fileName: z.ZodDefault<z.ZodString>;
|
|
847
|
+
fileSize: z.ZodDefault<z.ZodNumber>;
|
|
848
|
+
fileType: z.ZodDefault<z.ZodString>;
|
|
849
|
+
id: z.ZodDefault<z.ZodString>;
|
|
850
|
+
mediaAssetId: z.ZodUUID;
|
|
851
|
+
}, z.core.$strict>>>>;
|
|
852
|
+
action: z.ZodEnum<{
|
|
853
|
+
save_setup: "save_setup";
|
|
854
|
+
read_budget: "read_budget";
|
|
855
|
+
save_budget: "save_budget";
|
|
856
|
+
read: "read";
|
|
857
|
+
read_location: "read_location";
|
|
858
|
+
save_location: "save_location";
|
|
859
|
+
start_generation: "start_generation";
|
|
860
|
+
retry_generation: "retry_generation";
|
|
861
|
+
clear_generation: "clear_generation";
|
|
862
|
+
source_audio_upload_status: "source_audio_upload_status";
|
|
863
|
+
abort_source_audio_upload: "abort_source_audio_upload";
|
|
864
|
+
select: "select";
|
|
865
|
+
import_source_audio: "import_source_audio";
|
|
866
|
+
start_source_audio_upload: "start_source_audio_upload";
|
|
867
|
+
complete_source_audio_upload: "complete_source_audio_upload";
|
|
868
|
+
start_media_upload: "start_media_upload";
|
|
869
|
+
media_upload_status: "media_upload_status";
|
|
870
|
+
complete_media_upload: "complete_media_upload";
|
|
871
|
+
abort_media_upload: "abort_media_upload";
|
|
872
|
+
}>;
|
|
873
|
+
artistId: z.ZodUUID;
|
|
874
|
+
budgetSave: z.ZodOptional<z.ZodObject<{
|
|
875
|
+
campaignId: z.ZodUUID;
|
|
876
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
877
|
+
budgetAmountCents: z.ZodNumber;
|
|
878
|
+
budgetAmountMinor: z.ZodOptional<z.ZodNumber>;
|
|
879
|
+
budgetType: z.ZodEnum<{
|
|
880
|
+
TOTAL: "TOTAL";
|
|
881
|
+
DAILY: "DAILY";
|
|
882
|
+
}>;
|
|
883
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
884
|
+
endDate: z.ZodNullable<z.ZodISODate>;
|
|
885
|
+
}, z.core.$strict>>;
|
|
886
|
+
catalog: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
after: z.ZodOptional<z.ZodString>;
|
|
888
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
889
|
+
source: z.ZodEnum<{
|
|
890
|
+
facebook: "facebook";
|
|
891
|
+
instagram: "instagram";
|
|
892
|
+
}>;
|
|
893
|
+
}, z.core.$strict>>;
|
|
894
|
+
locationSave: z.ZodOptional<z.ZodObject<{
|
|
895
|
+
campaignId: z.ZodUUID;
|
|
896
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
897
|
+
targeting: z.ZodUnion<readonly [z.ZodObject<{
|
|
898
|
+
mode: z.ZodLiteral<"WORLDWIDE">;
|
|
899
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
900
|
+
countryCodes: z.ZodArray<z.ZodString>;
|
|
901
|
+
mode: z.ZodLiteral<"INCLUDE">;
|
|
902
|
+
}, z.core.$strict>]>;
|
|
903
|
+
}, z.core.$strict>>;
|
|
904
|
+
mediaUpload: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
assetId: z.ZodOptional<z.ZodUUID>;
|
|
906
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
907
|
+
"image/jpeg": "image/jpeg";
|
|
908
|
+
"image/png": "image/png";
|
|
909
|
+
"video/mp4": "video/mp4";
|
|
910
|
+
}>>;
|
|
911
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
912
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
913
|
+
fileType: z.ZodOptional<z.ZodEnum<{
|
|
914
|
+
"image/jpeg": "image/jpeg";
|
|
915
|
+
"image/png": "image/png";
|
|
916
|
+
"video/mp4": "video/mp4";
|
|
917
|
+
}>>;
|
|
918
|
+
key: z.ZodOptional<z.ZodString>;
|
|
919
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
920
|
+
etag: z.ZodString;
|
|
921
|
+
partNumber: z.ZodNumber;
|
|
922
|
+
}, z.core.$strict>>>;
|
|
923
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
924
|
+
}, z.core.$strict>>;
|
|
925
|
+
setupRequestId: z.ZodOptional<z.ZodUUID>;
|
|
926
|
+
setupSave: z.ZodOptional<z.ZodObject<{
|
|
927
|
+
appleMusicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
+
playLinkId: z.ZodString;
|
|
929
|
+
sourceSurface: z.ZodDefault<z.ZodLiteral<"mcp">>;
|
|
930
|
+
}, z.core.$strict>>;
|
|
931
|
+
url: z.ZodOptional<z.ZodString>;
|
|
932
|
+
}, z.core.$strict>;
|
|
933
|
+
readonly title: "Manage Smart Campaign Draft Creative";
|
|
934
|
+
};
|
|
935
|
+
readonly scopes: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
936
|
+
readonly directoryReason: "Existing reviewed creative tool; private upload lifecycle never submits a campaign.";
|
|
937
|
+
};
|
|
938
|
+
readonly parity: {
|
|
939
|
+
readonly webmcp: {
|
|
940
|
+
readonly status: "complete";
|
|
941
|
+
readonly binding: {
|
|
942
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
943
|
+
readonly export: "mediaUploadCompleteWebMcp";
|
|
944
|
+
readonly tool: "dashboard_media_upload_complete";
|
|
945
|
+
readonly intermediates: readonly [{
|
|
946
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
947
|
+
readonly export: "mediaUploadComplete";
|
|
948
|
+
}];
|
|
949
|
+
};
|
|
950
|
+
readonly journeys: readonly ["WM-DASHBOARD-mediaUploadComplete"];
|
|
951
|
+
};
|
|
952
|
+
readonly ios: {
|
|
953
|
+
readonly status: "partial";
|
|
954
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
955
|
+
};
|
|
956
|
+
readonly android: {
|
|
957
|
+
readonly status: "partial";
|
|
958
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
export declare const MEDIA_UPLOAD_ABORT_CONTRACT: {
|
|
963
|
+
readonly webmcpAliases: {
|
|
964
|
+
operationId: string;
|
|
965
|
+
plan: {
|
|
966
|
+
status: "complete";
|
|
967
|
+
journeys: string[];
|
|
968
|
+
binding: {
|
|
969
|
+
file: string;
|
|
970
|
+
export: string;
|
|
971
|
+
tool: string;
|
|
972
|
+
intermediates: {
|
|
973
|
+
file: string;
|
|
974
|
+
export: string;
|
|
975
|
+
}[];
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
}[];
|
|
979
|
+
readonly mobileAliases: readonly [{
|
|
980
|
+
readonly bodySchema: z.ZodObject<Readonly<{
|
|
981
|
+
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
982
|
+
}>, z.core.$strip>;
|
|
983
|
+
readonly idempotent: true;
|
|
984
|
+
readonly method: "DELETE";
|
|
985
|
+
readonly operationId: "deleteMobileArtistSmartCampaignSourceAudioUpload";
|
|
986
|
+
readonly path: "/api/mobile/artists/{artistId}/smart-campaign-draft/creative/source-audio-upload";
|
|
987
|
+
readonly responseSchema: z.ZodObject<{
|
|
988
|
+
ok: z.ZodLiteral<true>;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
readonly auth: "bearer";
|
|
991
|
+
readonly paramsSchema: z.ZodObject<{
|
|
992
|
+
artistId: z.ZodString;
|
|
993
|
+
}, z.core.$strip>;
|
|
994
|
+
readonly platforms: readonly ["android", "ios"];
|
|
995
|
+
}];
|
|
996
|
+
readonly capabilityId: "native_drafts_media";
|
|
997
|
+
readonly kind: "command";
|
|
998
|
+
readonly version: 1;
|
|
999
|
+
readonly currencyProof: {
|
|
1000
|
+
readonly currency: {
|
|
1001
|
+
readonly mode: "usd_only";
|
|
1002
|
+
readonly fixtures: readonly ["commerce-eur.json", "commerce-jpy.json"];
|
|
1003
|
+
readonly evidence: readonly [{
|
|
1004
|
+
readonly path: "packages/mobile-api-data/src/contract-smart-campaign-budget.ts";
|
|
1005
|
+
readonly symbols: readonly ["budgetAmountMinor", "currencyExponent"];
|
|
1006
|
+
}, {
|
|
1007
|
+
readonly path: "apps/ios/Dynamoi/Localization.swift";
|
|
1008
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly path: "apps/android/app/src/main/java/com/dynamoi/app/ui/CampaignBudgetInput.kt";
|
|
1011
|
+
readonly symbols: readonly ["AppMoney", "currencyExponent"];
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly path: "packages/mobile-api-data/src/contract-youtube-campaign-setup.ts";
|
|
1014
|
+
readonly symbols: readonly ["maximumDailyBudgetMinor", "currencyExponent"];
|
|
1015
|
+
}];
|
|
1016
|
+
};
|
|
1017
|
+
readonly fixtures: readonly [];
|
|
1018
|
+
readonly responseFixtures: {};
|
|
1019
|
+
};
|
|
1020
|
+
readonly mobile: {
|
|
1021
|
+
readonly bodySchema: z.ZodObject<{
|
|
1022
|
+
campaignId: z.ZodUUID;
|
|
1023
|
+
key: z.ZodString;
|
|
1024
|
+
uploadId: z.ZodString;
|
|
1025
|
+
}, z.core.$strip>;
|
|
1026
|
+
readonly method: "DELETE";
|
|
1027
|
+
readonly operationId: "deleteMobileArtistMediaUpload";
|
|
1028
|
+
readonly path: "/api/mobile/artists/{artistId}/media-upload";
|
|
1029
|
+
readonly responseSchema: z.ZodObject<{
|
|
1030
|
+
ok: z.ZodLiteral<true>;
|
|
1031
|
+
}, z.core.$strip>;
|
|
1032
|
+
readonly auth: "bearer";
|
|
1033
|
+
readonly paramsSchema: z.ZodObject<{
|
|
1034
|
+
artistId: z.ZodString;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
readonly platforms: readonly ["ios", "android"];
|
|
1037
|
+
};
|
|
1038
|
+
readonly mcp: {
|
|
1039
|
+
readonly action: "abort_media_upload";
|
|
1040
|
+
readonly definition: {
|
|
1041
|
+
readonly description: "Use save_setup with setupSave={playLinkId, appleMusicUrl?} and a stable UUID-v4 setupRequestId per setup flow; reuse it on retries, and start a new flow for different content. It returns setupDraft. Use read_budget for budgetDraft and save_budget with budgetSave={campaignId, expectedUpdatedAt, budgetAmountCents, budgetAmountMinor?, currency?, budgetType:DAILY|TOTAL, endDate:YYYY-MM-DD|null}. Amounts are exact minor units in the artist currency; use the budget policy from read_budget. Setup and budget saves only edit drafts and never launch or charge. Use read_location to read native draft targeting and save_location with locationSave={campaignId, expectedUpdatedAt, targeting:{mode:WORLDWIDE}|{mode:INCLUDE,countryCodes:[US]}} to save it. Read locationDraft first for the current revision; both location actions return locationDraft. Read generation progress, generated creatives and current selection with action=read. To discover owned social posts, explicitly add catalog={source:facebook|instagram,limit:1..25,after?:nextCursor}. Only requested catalog reads fetch connected-account posts; use catalog.items[].id directly in selectedSocialPosts. Pass nextCursor as after for another page. Catalog reads never alter selections, token state, or campaigns; provider failure is an error, and selection revalidates ownership. Use start_generation, retry_generation or clear_generation with campaignId and expectedUpdatedAt from read. Generation runs asynchronously; poll with read. Use source_audio_upload_status or abort_source_audio_upload with campaignId, expectedUpdatedAt, uploadId and uploadSessionId to inspect uploaded parts or abort the direct upload. Agents never approve or submit. Use action=select with campaignId and expectedUpdatedAt from read, source=generate|posts|upload, and selectedCreativeIds, selectedSocialPosts (owned META:post IDs), or uploadedAssets=[{mediaAssetId}] from dynamoi_list_media_assets. Omit selectedCreativeIds for social or uploaded media. Uploaded metadata is resolved by the server; only owned, moderation-approved uploads can be selected. Selection never attests artist approval and never submits the campaign. Upload private JPEG/PNG/MP4 campaign media (1 GiB maximum) with start_media_upload, campaignId, expectedUpdatedAt and mediaUpload={assetId:UUID,fileName,fileSizeBytes,contentType}. Retain the returned key/uploadId and PUT each presigned part URL. Complete with complete_media_upload, a freshly inspected expectedUpdatedAt, and mediaUpload={assetId,fileName,fileSizeBytes,fileType,key,uploadId,parts:[{partNumber,etag}]}. Use media_upload_status or abort_media_upload with campaignId and mediaUpload={key,uploadId}; both remain usable after draft edits. A completed status means retry completion, not re-upload. Completion returns only a moderation receipt; poll dynamoi_list_media_assets and select only after APPROVED. Uploads do not edit the draft selection. Attach source MP3 audio to a draft with start_source_audio_upload, PUT each returned presigned part URL, then complete_source_audio_upload with the returned uploadId/uploadSessionId and part ETags. Both actions require campaignId, expectedUpdatedAt, fileSizeBytes, trackDurationSeconds and 0–2 hookSeconds. Read sourceAudio to confirm. Use import_source_audio with a public Dropbox share url, campaignId, expectedUpdatedAt, trackDurationSeconds and 0–2 hookSeconds (250 MiB maximum). Google Drive is unsupported because it requires a Google API key. On timeout or an ambiguous result, re-read sourceAudio before retrying.";
|
|
1042
|
+
readonly destructiveHint: true;
|
|
1043
|
+
readonly profiles: {
|
|
1044
|
+
readonly directory: "advertised";
|
|
1045
|
+
readonly full: "advertised";
|
|
1046
|
+
};
|
|
1047
|
+
readonly name: "dynamoi_manage_smart_campaign_creative";
|
|
1048
|
+
readonly openWorldHint: true;
|
|
1049
|
+
readonly readOnlyHint: false;
|
|
1050
|
+
readonly schema: z.ZodObject<{
|
|
1051
|
+
campaignId: z.ZodOptional<z.ZodUUID>;
|
|
1052
|
+
expectedUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1053
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
hookSeconds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1055
|
+
trackDurationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1056
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1057
|
+
etag: z.ZodString;
|
|
1058
|
+
partNumber: z.ZodNumber;
|
|
1059
|
+
}, z.core.$strict>>>;
|
|
1060
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
uploadSessionId: z.ZodOptional<z.ZodUUID>;
|
|
1062
|
+
selectedCreativeIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUUID>>>;
|
|
1063
|
+
selectedSocialPosts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1064
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1065
|
+
generate: "generate";
|
|
1066
|
+
posts: "posts";
|
|
1067
|
+
upload: "upload";
|
|
1068
|
+
}>>>;
|
|
1069
|
+
uploadedAssets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1070
|
+
fileName: z.ZodDefault<z.ZodString>;
|
|
1071
|
+
fileSize: z.ZodDefault<z.ZodNumber>;
|
|
1072
|
+
fileType: z.ZodDefault<z.ZodString>;
|
|
1073
|
+
id: z.ZodDefault<z.ZodString>;
|
|
1074
|
+
mediaAssetId: z.ZodUUID;
|
|
1075
|
+
}, z.core.$strict>>>>;
|
|
1076
|
+
action: z.ZodEnum<{
|
|
1077
|
+
save_setup: "save_setup";
|
|
1078
|
+
read_budget: "read_budget";
|
|
1079
|
+
save_budget: "save_budget";
|
|
1080
|
+
read: "read";
|
|
1081
|
+
read_location: "read_location";
|
|
1082
|
+
save_location: "save_location";
|
|
1083
|
+
start_generation: "start_generation";
|
|
1084
|
+
retry_generation: "retry_generation";
|
|
1085
|
+
clear_generation: "clear_generation";
|
|
1086
|
+
source_audio_upload_status: "source_audio_upload_status";
|
|
1087
|
+
abort_source_audio_upload: "abort_source_audio_upload";
|
|
1088
|
+
select: "select";
|
|
1089
|
+
import_source_audio: "import_source_audio";
|
|
1090
|
+
start_source_audio_upload: "start_source_audio_upload";
|
|
1091
|
+
complete_source_audio_upload: "complete_source_audio_upload";
|
|
1092
|
+
start_media_upload: "start_media_upload";
|
|
1093
|
+
media_upload_status: "media_upload_status";
|
|
1094
|
+
complete_media_upload: "complete_media_upload";
|
|
1095
|
+
abort_media_upload: "abort_media_upload";
|
|
1096
|
+
}>;
|
|
1097
|
+
artistId: z.ZodUUID;
|
|
1098
|
+
budgetSave: z.ZodOptional<z.ZodObject<{
|
|
1099
|
+
campaignId: z.ZodUUID;
|
|
1100
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
1101
|
+
budgetAmountCents: z.ZodNumber;
|
|
1102
|
+
budgetAmountMinor: z.ZodOptional<z.ZodNumber>;
|
|
1103
|
+
budgetType: z.ZodEnum<{
|
|
1104
|
+
TOTAL: "TOTAL";
|
|
1105
|
+
DAILY: "DAILY";
|
|
1106
|
+
}>;
|
|
1107
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
endDate: z.ZodNullable<z.ZodISODate>;
|
|
1109
|
+
}, z.core.$strict>>;
|
|
1110
|
+
catalog: z.ZodOptional<z.ZodObject<{
|
|
1111
|
+
after: z.ZodOptional<z.ZodString>;
|
|
1112
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1113
|
+
source: z.ZodEnum<{
|
|
1114
|
+
facebook: "facebook";
|
|
1115
|
+
instagram: "instagram";
|
|
1116
|
+
}>;
|
|
1117
|
+
}, z.core.$strict>>;
|
|
1118
|
+
locationSave: z.ZodOptional<z.ZodObject<{
|
|
1119
|
+
campaignId: z.ZodUUID;
|
|
1120
|
+
expectedUpdatedAt: z.ZodISODateTime;
|
|
1121
|
+
targeting: z.ZodUnion<readonly [z.ZodObject<{
|
|
1122
|
+
mode: z.ZodLiteral<"WORLDWIDE">;
|
|
1123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1124
|
+
countryCodes: z.ZodArray<z.ZodString>;
|
|
1125
|
+
mode: z.ZodLiteral<"INCLUDE">;
|
|
1126
|
+
}, z.core.$strict>]>;
|
|
1127
|
+
}, z.core.$strict>>;
|
|
1128
|
+
mediaUpload: z.ZodOptional<z.ZodObject<{
|
|
1129
|
+
assetId: z.ZodOptional<z.ZodUUID>;
|
|
1130
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
1131
|
+
"image/jpeg": "image/jpeg";
|
|
1132
|
+
"image/png": "image/png";
|
|
1133
|
+
"video/mp4": "video/mp4";
|
|
1134
|
+
}>>;
|
|
1135
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
fileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
1137
|
+
fileType: z.ZodOptional<z.ZodEnum<{
|
|
1138
|
+
"image/jpeg": "image/jpeg";
|
|
1139
|
+
"image/png": "image/png";
|
|
1140
|
+
"video/mp4": "video/mp4";
|
|
1141
|
+
}>>;
|
|
1142
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1144
|
+
etag: z.ZodString;
|
|
1145
|
+
partNumber: z.ZodNumber;
|
|
1146
|
+
}, z.core.$strict>>>;
|
|
1147
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
1148
|
+
}, z.core.$strict>>;
|
|
1149
|
+
setupRequestId: z.ZodOptional<z.ZodUUID>;
|
|
1150
|
+
setupSave: z.ZodOptional<z.ZodObject<{
|
|
1151
|
+
appleMusicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1152
|
+
playLinkId: z.ZodString;
|
|
1153
|
+
sourceSurface: z.ZodDefault<z.ZodLiteral<"mcp">>;
|
|
1154
|
+
}, z.core.$strict>>;
|
|
1155
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
|
+
readonly title: "Manage Smart Campaign Draft Creative";
|
|
1158
|
+
};
|
|
1159
|
+
readonly scopes: readonly ["dynamoi:read", "dynamoi:campaign.write"];
|
|
1160
|
+
readonly directoryReason: "Existing reviewed creative tool; private upload lifecycle never submits a campaign.";
|
|
1161
|
+
};
|
|
1162
|
+
readonly parity: {
|
|
1163
|
+
readonly webmcp: {
|
|
1164
|
+
readonly status: "complete";
|
|
1165
|
+
readonly binding: {
|
|
1166
|
+
readonly file: "apps/dashboard/app/dashboard/webmcp/dashboard-campaigns.webmcp.generated.ts";
|
|
1167
|
+
readonly export: "mediaUploadAbortWebMcp";
|
|
1168
|
+
readonly tool: "dashboard_media_upload_abort";
|
|
1169
|
+
readonly intermediates: readonly [{
|
|
1170
|
+
readonly file: "apps/dashboard/app/dashboard/[orgSlug]/[artistSlug]/marketing/create-smart-campaign/media-actions.ts";
|
|
1171
|
+
readonly export: "mediaUploadAbort";
|
|
1172
|
+
}];
|
|
1173
|
+
};
|
|
1174
|
+
readonly journeys: readonly ["WM-DASHBOARD-mediaUploadAbort"];
|
|
1175
|
+
};
|
|
1176
|
+
readonly ios: {
|
|
1177
|
+
readonly status: "partial";
|
|
1178
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
1179
|
+
};
|
|
1180
|
+
readonly android: {
|
|
1181
|
+
readonly status: "partial";
|
|
1182
|
+
readonly reason: "Native screen pending: native-specs/native_drafts_media.md; exact-revision journey receipt required.";
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
};
|