@adcp/client 3.0.3 → 3.1.0
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/dist/lib/auth/index.d.ts +8 -3
- package/dist/lib/auth/index.d.ts.map +1 -1
- package/dist/lib/auth/index.js +32 -6
- package/dist/lib/auth/index.js.map +1 -1
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/core/ConfigurationManager.d.ts.map +1 -1
- package/dist/lib/core/ConfigurationManager.js +14 -1
- package/dist/lib/core/ConfigurationManager.js.map +1 -1
- package/dist/lib/core/SingleAgentClient.d.ts +6 -0
- package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
- package/dist/lib/core/SingleAgentClient.js +15 -2
- package/dist/lib/core/SingleAgentClient.js.map +1 -1
- package/dist/lib/protocols/a2a.js +2 -2
- package/dist/lib/protocols/a2a.js.map +1 -1
- package/dist/lib/types/adcp.d.ts +3 -58
- package/dist/lib/types/adcp.d.ts.map +1 -1
- package/dist/lib/types/core.generated.d.ts +85 -50
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js +1 -1
- package/dist/lib/types/schemas.generated.d.ts +483 -279
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +159 -152
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +261 -150
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/types/tools.generated.js +1 -1
- package/dist/lib/types/tools.generated.js.map +1 -1
- package/dist/lib/utils/preview-utils.d.ts.map +1 -1
- package/dist/lib/utils/preview-utils.js +2 -0
- package/dist/lib/utils/preview-utils.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod v4 schemas from TypeScript types
|
|
3
|
-
// Generated at: 2025-11-
|
|
3
|
+
// Generated at: 2025-11-20T19:39:11.558Z
|
|
4
4
|
// Sources:
|
|
5
5
|
// - core.generated.ts (core types)
|
|
6
6
|
// - tools.generated.ts (tool types)
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
// These schemas provide runtime validation for AdCP data structures
|
|
9
9
|
// Generated using ts-to-zod from TypeScript type definitions
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
exports.CreateMediaBuyRequestSchema = exports.ListCreativeFormatsResponseSchema = exports.
|
|
11
|
+
exports.PromotedOfferingsSchema = exports.PushNotificationConfigSchema = exports.StartTimingSchema = exports.BrandManifestReference1Schema = exports.FormatID3Schema = exports.AssetContentType1Schema = exports.FormatCategorySchema = exports.ErrorSchema = exports.ProductSchema = exports.BrandManifestReferenceSchema = exports.BrandManifestSchema = exports.PropertySchema = exports.PropertyIdentifierTypesSchema = exports.TargetingOverlaySchema = exports.FormatID2Schema = exports.FormatID1Schema = exports.CreativePolicySchema = exports.ReportingCapabilitiesSchema = exports.MeasurementSchema = exports.PricingOptionSchema = exports.PlacementSchema = exports.PublisherPropertySelectorSchema = exports.FlatRatePricingOptionSchema = exports.CPPPricingOptionSchema = exports.CPVPricingOptionSchema = exports.CPCVPricingOptionSchema = exports.CPCPricingOptionSchema = exports.VCPMAuctionPricingOptionSchema = exports.VCPMFixedRatePricingOptionSchema = exports.CPMAuctionPricingOptionSchema = exports.CPMFixedRatePricingOptionSchema = exports.DeliveryTypeSchema = exports.AssetContentTypeSchema = exports.PromotedProductsSchema = exports.URLAssetSchema = exports.JavaScriptAssetSchema = exports.CSSAssetSchema = exports.HTMLAssetSchema = exports.TextAssetSchema = exports.AudioAssetSchema = exports.VideoAssetSchema = exports.ImageAssetSchema = exports.DAASTAssetSchema = exports.VASTAssetSchema = exports.FrequencyCapSchema = exports.FormatIDSchema = exports.CreativeAssignmentSchema = exports.PackageStatusSchema = exports.PacingSchema = exports.MediaBuyStatusSchema = void 0;
|
|
12
|
+
exports.CreateMediaBuyRequestSchema = exports.ListCreativeFormatsResponseSchema = exports.GetSignalsResponseSchema = exports.PreviewCreativeResponseSchema = exports.PreviewCreativeRequestSchema = exports.BuildCreativeResponseSchema = exports.BuildCreativeRequestSchema = exports.ListAuthorizedPropertiesResponseSchema = exports.GetMediaBuyDeliveryResponseSchema = exports.UpdateMediaBuyRequestSchema = exports.ListCreativesRequestSchema = exports.SyncCreativesRequestSchema = exports.CreateMediaBuyResponseSchema = exports.PackageRequestSchema = exports.FormatSchema = exports.ListCreativeFormatsRequestSchema = exports.GetProductsResponseSchema = exports.GetProductsRequestSchema = exports.MediaBuySchema = exports.ActivateSignalResponseSchema = exports.ActivateSignalRequestSchema = exports.DeploymentSchema = exports.ActivationKey1Schema = exports.ActivationKeySchema = exports.GetSignalsRequestSchema = exports.DestinationSchema = exports.PreviewRenderSchema = exports.CreativeManifest1Schema = exports.CreativeManifestSchema = exports.WebhookAssetSchema = exports.ProvidePerformanceFeedbackResponseSchema = exports.ProvidePerformanceFeedbackRequestSchema = exports.AdvertisingChannelsSchema = exports.ListAuthorizedPropertiesRequestSchema = exports.PricingModel1Schema = exports.DeliveryMetricsSchema = exports.PricingModelSchema = exports.GetMediaBuyDeliveryRequestSchema = exports.UpdateMediaBuyResponseSchema = exports.UpdateMediaBuyRequest2Schema = exports.UpdateMediaBuyRequest1Schema = exports.ListCreativesResponseSchema = exports.SubAssetSchema = exports.CreativeStatus1Schema = exports.CreativeStatusSchema = exports.SyncCreativesResponseSchema = exports.CreativeAssetSchema = exports.PackageSchema = void 0;
|
|
13
13
|
// Generated by ts-to-zod
|
|
14
14
|
const zod_1 = require("zod");
|
|
15
15
|
exports.MediaBuyStatusSchema = zod_1.z.union([zod_1.z.literal("pending_activation"), zod_1.z.literal("active"), zod_1.z.literal("paused"), zod_1.z.literal("completed")]);
|
|
@@ -57,68 +57,6 @@ exports.DAASTAssetSchema = zod_1.z.union([zod_1.z.object({
|
|
|
57
57
|
tracking_events: zod_1.z.array(zod_1.z.union([zod_1.z.literal("start"), zod_1.z.literal("firstQuartile"), zod_1.z.literal("midpoint"), zod_1.z.literal("thirdQuartile"), zod_1.z.literal("complete"), zod_1.z.literal("impression"), zod_1.z.literal("pause"), zod_1.z.literal("resume"), zod_1.z.literal("skip"), zod_1.z.literal("mute"), zod_1.z.literal("unmute")])).optional(),
|
|
58
58
|
companion_ads: zod_1.z.boolean().optional()
|
|
59
59
|
})]);
|
|
60
|
-
exports.BrandManifest1Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
61
|
-
exports.BrandManifest2Schema = zod_1.z.object({
|
|
62
|
-
url: zod_1.z.string().optional(),
|
|
63
|
-
name: zod_1.z.string().optional(),
|
|
64
|
-
logos: zod_1.z.array(zod_1.z.object({
|
|
65
|
-
url: zod_1.z.string(),
|
|
66
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
67
|
-
width: zod_1.z.number().optional(),
|
|
68
|
-
height: zod_1.z.number().optional()
|
|
69
|
-
})).optional(),
|
|
70
|
-
colors: zod_1.z.object({
|
|
71
|
-
primary: zod_1.z.string().optional(),
|
|
72
|
-
secondary: zod_1.z.string().optional(),
|
|
73
|
-
accent: zod_1.z.string().optional(),
|
|
74
|
-
background: zod_1.z.string().optional(),
|
|
75
|
-
text: zod_1.z.string().optional()
|
|
76
|
-
}).optional(),
|
|
77
|
-
fonts: zod_1.z.object({
|
|
78
|
-
primary: zod_1.z.string().optional(),
|
|
79
|
-
secondary: zod_1.z.string().optional(),
|
|
80
|
-
font_urls: zod_1.z.array(zod_1.z.string()).optional()
|
|
81
|
-
}).optional(),
|
|
82
|
-
tone: zod_1.z.string().optional(),
|
|
83
|
-
tagline: zod_1.z.string().optional(),
|
|
84
|
-
assets: zod_1.z.array(zod_1.z.object({
|
|
85
|
-
asset_id: zod_1.z.string(),
|
|
86
|
-
asset_type: zod_1.z.union([zod_1.z.literal("image"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("text")]),
|
|
87
|
-
url: zod_1.z.string(),
|
|
88
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
89
|
-
name: zod_1.z.string().optional(),
|
|
90
|
-
description: zod_1.z.string().optional(),
|
|
91
|
-
width: zod_1.z.number().optional(),
|
|
92
|
-
height: zod_1.z.number().optional(),
|
|
93
|
-
duration_seconds: zod_1.z.number().optional(),
|
|
94
|
-
file_size_bytes: zod_1.z.number().optional(),
|
|
95
|
-
format: zod_1.z.string().optional(),
|
|
96
|
-
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
97
|
-
})).optional(),
|
|
98
|
-
product_catalog: zod_1.z.object({
|
|
99
|
-
feed_url: zod_1.z.string(),
|
|
100
|
-
feed_format: zod_1.z.union([zod_1.z.literal("google_merchant_center"), zod_1.z.literal("facebook_catalog"), zod_1.z.literal("custom")]).optional(),
|
|
101
|
-
categories: zod_1.z.array(zod_1.z.string()).optional(),
|
|
102
|
-
last_updated: zod_1.z.string().optional(),
|
|
103
|
-
update_frequency: zod_1.z.union([zod_1.z.literal("realtime"), zod_1.z.literal("hourly"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")]).optional()
|
|
104
|
-
}).optional(),
|
|
105
|
-
disclaimers: zod_1.z.array(zod_1.z.object({
|
|
106
|
-
text: zod_1.z.string(),
|
|
107
|
-
context: zod_1.z.string().optional(),
|
|
108
|
-
required: zod_1.z.boolean().optional()
|
|
109
|
-
})).optional(),
|
|
110
|
-
industry: zod_1.z.string().optional(),
|
|
111
|
-
target_audience: zod_1.z.string().optional(),
|
|
112
|
-
contact: zod_1.z.object({
|
|
113
|
-
email: zod_1.z.string().optional(),
|
|
114
|
-
phone: zod_1.z.string().optional()
|
|
115
|
-
}).optional(),
|
|
116
|
-
metadata: zod_1.z.object({
|
|
117
|
-
created_date: zod_1.z.string().optional(),
|
|
118
|
-
updated_date: zod_1.z.string().optional(),
|
|
119
|
-
version: zod_1.z.string().optional()
|
|
120
|
-
}).optional()
|
|
121
|
-
});
|
|
122
60
|
exports.ImageAssetSchema = zod_1.z.object({
|
|
123
61
|
url: zod_1.z.string(),
|
|
124
62
|
width: zod_1.z.number().optional(),
|
|
@@ -167,18 +105,21 @@ exports.PromotedProductsSchema = zod_1.z.object({
|
|
|
167
105
|
manifest_category: zod_1.z.string().optional(),
|
|
168
106
|
manifest_query: zod_1.z.string().optional()
|
|
169
107
|
});
|
|
108
|
+
exports.AssetContentTypeSchema = zod_1.z.union([zod_1.z.literal("image"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("text"), zod_1.z.literal("markdown"), zod_1.z.literal("html"), zod_1.z.literal("css"), zod_1.z.literal("javascript"), zod_1.z.literal("vast"), zod_1.z.literal("daast"), zod_1.z.literal("promoted_offerings"), zod_1.z.literal("url"), zod_1.z.literal("webhook")]);
|
|
170
109
|
exports.DeliveryTypeSchema = zod_1.z.union([zod_1.z.literal("guaranteed"), zod_1.z.literal("non_guaranteed")]);
|
|
171
110
|
exports.CPMFixedRatePricingOptionSchema = zod_1.z.object({
|
|
172
111
|
pricing_option_id: zod_1.z.string(),
|
|
173
112
|
pricing_model: zod_1.z.literal("cpm"),
|
|
174
113
|
rate: zod_1.z.number(),
|
|
175
114
|
currency: zod_1.z.string(),
|
|
115
|
+
is_fixed: zod_1.z.literal(true),
|
|
176
116
|
min_spend_per_package: zod_1.z.number().optional()
|
|
177
117
|
});
|
|
178
118
|
exports.CPMAuctionPricingOptionSchema = zod_1.z.object({
|
|
179
119
|
pricing_option_id: zod_1.z.string(),
|
|
180
120
|
pricing_model: zod_1.z.literal("cpm"),
|
|
181
121
|
currency: zod_1.z.string(),
|
|
122
|
+
is_fixed: zod_1.z.literal(false),
|
|
182
123
|
price_guidance: zod_1.z.object({
|
|
183
124
|
floor: zod_1.z.number(),
|
|
184
125
|
p25: zod_1.z.number().optional(),
|
|
@@ -193,12 +134,14 @@ exports.VCPMFixedRatePricingOptionSchema = zod_1.z.object({
|
|
|
193
134
|
pricing_model: zod_1.z.literal("vcpm"),
|
|
194
135
|
rate: zod_1.z.number(),
|
|
195
136
|
currency: zod_1.z.string(),
|
|
137
|
+
is_fixed: zod_1.z.literal(true),
|
|
196
138
|
min_spend_per_package: zod_1.z.number().optional()
|
|
197
139
|
});
|
|
198
140
|
exports.VCPMAuctionPricingOptionSchema = zod_1.z.object({
|
|
199
141
|
pricing_option_id: zod_1.z.string(),
|
|
200
142
|
pricing_model: zod_1.z.literal("vcpm"),
|
|
201
143
|
currency: zod_1.z.string(),
|
|
144
|
+
is_fixed: zod_1.z.literal(false),
|
|
202
145
|
price_guidance: zod_1.z.object({
|
|
203
146
|
floor: zod_1.z.number(),
|
|
204
147
|
p25: zod_1.z.number().optional(),
|
|
@@ -213,6 +156,7 @@ exports.CPCPricingOptionSchema = zod_1.z.object({
|
|
|
213
156
|
pricing_model: zod_1.z.literal("cpc"),
|
|
214
157
|
rate: zod_1.z.number(),
|
|
215
158
|
currency: zod_1.z.string(),
|
|
159
|
+
is_fixed: zod_1.z.literal(true),
|
|
216
160
|
min_spend_per_package: zod_1.z.number().optional()
|
|
217
161
|
});
|
|
218
162
|
exports.CPCVPricingOptionSchema = zod_1.z.object({
|
|
@@ -220,6 +164,7 @@ exports.CPCVPricingOptionSchema = zod_1.z.object({
|
|
|
220
164
|
pricing_model: zod_1.z.literal("cpcv"),
|
|
221
165
|
rate: zod_1.z.number(),
|
|
222
166
|
currency: zod_1.z.string(),
|
|
167
|
+
is_fixed: zod_1.z.literal(true),
|
|
223
168
|
min_spend_per_package: zod_1.z.number().optional()
|
|
224
169
|
});
|
|
225
170
|
exports.CPVPricingOptionSchema = zod_1.z.object({
|
|
@@ -227,6 +172,7 @@ exports.CPVPricingOptionSchema = zod_1.z.object({
|
|
|
227
172
|
pricing_model: zod_1.z.literal("cpv"),
|
|
228
173
|
rate: zod_1.z.number(),
|
|
229
174
|
currency: zod_1.z.string(),
|
|
175
|
+
is_fixed: zod_1.z.literal(true),
|
|
230
176
|
parameters: zod_1.z.object({
|
|
231
177
|
view_threshold: zod_1.z.union([zod_1.z.number(), zod_1.z.object({
|
|
232
178
|
duration_seconds: zod_1.z.number()
|
|
@@ -239,6 +185,7 @@ exports.CPPPricingOptionSchema = zod_1.z.object({
|
|
|
239
185
|
pricing_model: zod_1.z.literal("cpp"),
|
|
240
186
|
rate: zod_1.z.number(),
|
|
241
187
|
currency: zod_1.z.string(),
|
|
188
|
+
is_fixed: zod_1.z.literal(true),
|
|
242
189
|
parameters: zod_1.z.object({
|
|
243
190
|
demographic: zod_1.z.string(),
|
|
244
191
|
min_points: zod_1.z.number().optional()
|
|
@@ -262,6 +209,18 @@ exports.FlatRatePricingOptionSchema = zod_1.z.object({
|
|
|
262
209
|
}).optional(),
|
|
263
210
|
min_spend_per_package: zod_1.z.number().optional()
|
|
264
211
|
});
|
|
212
|
+
exports.PublisherPropertySelectorSchema = zod_1.z.union([zod_1.z.object({
|
|
213
|
+
publisher_domain: zod_1.z.string(),
|
|
214
|
+
selection_type: zod_1.z.literal("all")
|
|
215
|
+
}), zod_1.z.object({
|
|
216
|
+
publisher_domain: zod_1.z.string(),
|
|
217
|
+
selection_type: zod_1.z.literal("by_id"),
|
|
218
|
+
property_ids: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string())
|
|
219
|
+
}), zod_1.z.object({
|
|
220
|
+
publisher_domain: zod_1.z.string(),
|
|
221
|
+
selection_type: zod_1.z.literal("by_tag"),
|
|
222
|
+
property_tags: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string())
|
|
223
|
+
})]);
|
|
265
224
|
exports.PlacementSchema = zod_1.z.object({
|
|
266
225
|
placement_id: zod_1.z.string(),
|
|
267
226
|
name: zod_1.z.string(),
|
|
@@ -319,21 +278,73 @@ exports.PropertySchema = zod_1.z.object({
|
|
|
319
278
|
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
320
279
|
publisher_domain: zod_1.z.string().optional()
|
|
321
280
|
});
|
|
322
|
-
exports.BrandManifestSchema =
|
|
281
|
+
exports.BrandManifestSchema = zod_1.z.object({
|
|
282
|
+
url: zod_1.z.string().optional(),
|
|
283
|
+
name: zod_1.z.string(),
|
|
284
|
+
logos: zod_1.z.array(zod_1.z.object({
|
|
285
|
+
url: zod_1.z.string(),
|
|
286
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
287
|
+
width: zod_1.z.number().optional(),
|
|
288
|
+
height: zod_1.z.number().optional()
|
|
289
|
+
})).optional(),
|
|
290
|
+
colors: zod_1.z.object({
|
|
291
|
+
primary: zod_1.z.string().optional(),
|
|
292
|
+
secondary: zod_1.z.string().optional(),
|
|
293
|
+
accent: zod_1.z.string().optional(),
|
|
294
|
+
background: zod_1.z.string().optional(),
|
|
295
|
+
text: zod_1.z.string().optional()
|
|
296
|
+
}).optional(),
|
|
297
|
+
fonts: zod_1.z.object({
|
|
298
|
+
primary: zod_1.z.string().optional(),
|
|
299
|
+
secondary: zod_1.z.string().optional(),
|
|
300
|
+
font_urls: zod_1.z.array(zod_1.z.string()).optional()
|
|
301
|
+
}).optional(),
|
|
302
|
+
tone: zod_1.z.string().optional(),
|
|
303
|
+
tagline: zod_1.z.string().optional(),
|
|
304
|
+
assets: zod_1.z.array(zod_1.z.object({
|
|
305
|
+
asset_id: zod_1.z.string(),
|
|
306
|
+
asset_type: exports.AssetContentTypeSchema,
|
|
307
|
+
url: zod_1.z.string(),
|
|
308
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
309
|
+
name: zod_1.z.string().optional(),
|
|
310
|
+
description: zod_1.z.string().optional(),
|
|
311
|
+
width: zod_1.z.number().optional(),
|
|
312
|
+
height: zod_1.z.number().optional(),
|
|
313
|
+
duration_seconds: zod_1.z.number().optional(),
|
|
314
|
+
file_size_bytes: zod_1.z.number().optional(),
|
|
315
|
+
format: zod_1.z.string().optional(),
|
|
316
|
+
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
317
|
+
})).optional(),
|
|
318
|
+
product_catalog: zod_1.z.object({
|
|
319
|
+
feed_url: zod_1.z.string(),
|
|
320
|
+
feed_format: zod_1.z.union([zod_1.z.literal("google_merchant_center"), zod_1.z.literal("facebook_catalog"), zod_1.z.literal("custom")]).optional(),
|
|
321
|
+
categories: zod_1.z.array(zod_1.z.string()).optional(),
|
|
322
|
+
last_updated: zod_1.z.string().optional(),
|
|
323
|
+
update_frequency: zod_1.z.union([zod_1.z.literal("realtime"), zod_1.z.literal("hourly"), zod_1.z.literal("daily"), zod_1.z.literal("weekly")]).optional()
|
|
324
|
+
}).optional(),
|
|
325
|
+
disclaimers: zod_1.z.array(zod_1.z.object({
|
|
326
|
+
text: zod_1.z.string(),
|
|
327
|
+
context: zod_1.z.string().optional(),
|
|
328
|
+
required: zod_1.z.boolean().optional()
|
|
329
|
+
})).optional(),
|
|
330
|
+
industry: zod_1.z.string().optional(),
|
|
331
|
+
target_audience: zod_1.z.string().optional(),
|
|
332
|
+
contact: zod_1.z.object({
|
|
333
|
+
email: zod_1.z.string().optional(),
|
|
334
|
+
phone: zod_1.z.string().optional()
|
|
335
|
+
}).optional(),
|
|
336
|
+
metadata: zod_1.z.object({
|
|
337
|
+
created_date: zod_1.z.string().optional(),
|
|
338
|
+
updated_date: zod_1.z.string().optional(),
|
|
339
|
+
version: zod_1.z.string().optional()
|
|
340
|
+
}).optional()
|
|
341
|
+
});
|
|
323
342
|
exports.BrandManifestReferenceSchema = zod_1.z.union([exports.BrandManifestSchema, zod_1.z.string()]);
|
|
324
343
|
exports.ProductSchema = zod_1.z.object({
|
|
325
344
|
product_id: zod_1.z.string(),
|
|
326
345
|
name: zod_1.z.string(),
|
|
327
346
|
description: zod_1.z.string(),
|
|
328
|
-
publisher_properties: zod_1.z.tuple([
|
|
329
|
-
publisher_domain: zod_1.z.string(),
|
|
330
|
-
property_ids: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
331
|
-
property_tags: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional()
|
|
332
|
-
})]).rest(zod_1.z.object({
|
|
333
|
-
publisher_domain: zod_1.z.string(),
|
|
334
|
-
property_ids: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
335
|
-
property_tags: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional()
|
|
336
|
-
})),
|
|
347
|
+
publisher_properties: zod_1.z.tuple([exports.PublisherPropertySelectorSchema]).rest(exports.PublisherPropertySelectorSchema),
|
|
337
348
|
format_ids: zod_1.z.array(exports.FormatIDSchema),
|
|
338
349
|
placements: zod_1.z.tuple([exports.PlacementSchema]).rest(exports.PlacementSchema).optional(),
|
|
339
350
|
delivery_type: exports.DeliveryTypeSchema,
|
|
@@ -366,23 +377,13 @@ exports.ErrorSchema = zod_1.z.object({
|
|
|
366
377
|
retry_after: zod_1.z.number().optional(),
|
|
367
378
|
details: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
368
379
|
});
|
|
369
|
-
exports.
|
|
370
|
-
|
|
371
|
-
type: zod_1.z.union([zod_1.z.literal("audio"), zod_1.z.literal("video"), zod_1.z.literal("display"), zod_1.z.literal("dooh")]).optional(),
|
|
372
|
-
asset_types: zod_1.z.array(zod_1.z.union([zod_1.z.literal("image"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("text"), zod_1.z.literal("html"), zod_1.z.literal("javascript"), zod_1.z.literal("url")])).optional(),
|
|
373
|
-
max_width: zod_1.z.number().optional(),
|
|
374
|
-
max_height: zod_1.z.number().optional(),
|
|
375
|
-
min_width: zod_1.z.number().optional(),
|
|
376
|
-
min_height: zod_1.z.number().optional(),
|
|
377
|
-
is_responsive: zod_1.z.boolean().optional(),
|
|
378
|
-
name_search: zod_1.z.string().optional(),
|
|
379
|
-
context: zod_1.z.object({}).optional()
|
|
380
|
-
});
|
|
380
|
+
exports.FormatCategorySchema = zod_1.z.union([zod_1.z.literal("audio"), zod_1.z.literal("video"), zod_1.z.literal("display"), zod_1.z.literal("native"), zod_1.z.literal("dooh"), zod_1.z.literal("rich_media"), zod_1.z.literal("universal")]);
|
|
381
|
+
exports.AssetContentType1Schema = zod_1.z.union([zod_1.z.literal("image"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("text"), zod_1.z.literal("markdown"), zod_1.z.literal("html"), zod_1.z.literal("css"), zod_1.z.literal("javascript"), zod_1.z.literal("vast"), zod_1.z.literal("daast"), zod_1.z.literal("promoted_offerings"), zod_1.z.literal("url"), zod_1.z.literal("webhook")]);
|
|
381
382
|
exports.FormatID3Schema = zod_1.z.object({
|
|
382
383
|
agent_url: zod_1.z.string(),
|
|
383
384
|
id: zod_1.z.string()
|
|
384
385
|
});
|
|
385
|
-
exports.BrandManifestReference1Schema = zod_1.z.union([exports.
|
|
386
|
+
exports.BrandManifestReference1Schema = zod_1.z.union([exports.BrandManifestSchema, zod_1.z.string()]);
|
|
386
387
|
exports.StartTimingSchema = zod_1.z.union([zod_1.z.literal("asap"), zod_1.z.string()]);
|
|
387
388
|
exports.PushNotificationConfigSchema = zod_1.z.object({
|
|
388
389
|
url: zod_1.z.string(),
|
|
@@ -406,19 +407,20 @@ exports.PromotedOfferingsSchema = zod_1.z.object({
|
|
|
406
407
|
exclude_tags: zod_1.z.array(zod_1.z.string()).optional()
|
|
407
408
|
}).optional()
|
|
408
409
|
});
|
|
409
|
-
exports.
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
410
|
+
exports.PackageSchema = zod_1.z.object({
|
|
411
|
+
package_id: zod_1.z.string(),
|
|
412
|
+
buyer_ref: zod_1.z.string().optional(),
|
|
413
|
+
product_id: zod_1.z.string().optional(),
|
|
414
|
+
budget: zod_1.z.number().optional(),
|
|
415
|
+
pacing: exports.PacingSchema.optional(),
|
|
416
|
+
pricing_option_id: zod_1.z.string().optional(),
|
|
417
|
+
bid_price: zod_1.z.number().optional(),
|
|
418
|
+
impressions: zod_1.z.number().optional(),
|
|
419
|
+
targeting_overlay: exports.TargetingOverlaySchema.optional(),
|
|
420
|
+
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).optional(),
|
|
421
|
+
format_ids_to_provide: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
422
|
+
status: exports.PackageStatusSchema
|
|
423
|
+
});
|
|
422
424
|
exports.CreativeAssetSchema = zod_1.z.object({
|
|
423
425
|
creative_id: zod_1.z.string(),
|
|
424
426
|
name: zod_1.z.string(),
|
|
@@ -488,12 +490,7 @@ exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
|
488
490
|
status: exports.CreativeStatusSchema,
|
|
489
491
|
created_date: zod_1.z.string(),
|
|
490
492
|
updated_date: zod_1.z.string(),
|
|
491
|
-
media_url: zod_1.z.string().optional(),
|
|
492
493
|
assets: zod_1.z.record(zod_1.z.string(), zod_1.z.union([exports.ImageAssetSchema, exports.VideoAssetSchema, exports.AudioAssetSchema, exports.TextAssetSchema, exports.HTMLAssetSchema, exports.CSSAssetSchema, exports.JavaScriptAssetSchema, exports.VASTAssetSchema, exports.DAASTAssetSchema, exports.PromotedOfferingsSchema, exports.URLAssetSchema])).optional(),
|
|
493
|
-
click_url: zod_1.z.string().optional(),
|
|
494
|
-
duration: zod_1.z.number().optional(),
|
|
495
|
-
width: zod_1.z.number().optional(),
|
|
496
|
-
height: zod_1.z.number().optional(),
|
|
497
494
|
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
498
495
|
assignments: zod_1.z.object({
|
|
499
496
|
assignment_count: zod_1.z.number(),
|
|
@@ -531,17 +528,14 @@ exports.UpdateMediaBuyRequest1Schema = zod_1.z.object({
|
|
|
531
528
|
end_time: zod_1.z.string().optional(),
|
|
532
529
|
packages: zod_1.z.array(zod_1.z.union([zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())])).optional(),
|
|
533
530
|
push_notification_config: exports.PushNotificationConfigSchema.optional(),
|
|
534
|
-
context: zod_1.z.
|
|
531
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
535
532
|
});
|
|
536
533
|
exports.UpdateMediaBuyRequest2Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
537
534
|
exports.UpdateMediaBuyResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
538
535
|
media_buy_id: zod_1.z.string(),
|
|
539
536
|
buyer_ref: zod_1.z.string(),
|
|
540
537
|
implementation_date: zod_1.z.string().optional().nullable(),
|
|
541
|
-
affected_packages: zod_1.z.array(
|
|
542
|
-
package_id: zod_1.z.string(),
|
|
543
|
-
buyer_ref: zod_1.z.string()
|
|
544
|
-
})).optional(),
|
|
538
|
+
affected_packages: zod_1.z.array(exports.PackageSchema).optional(),
|
|
545
539
|
context: zod_1.z.object({}).optional()
|
|
546
540
|
}), zod_1.z.object({
|
|
547
541
|
errors: zod_1.z.tuple([exports.ErrorSchema]).rest(exports.ErrorSchema),
|
|
@@ -553,7 +547,7 @@ exports.GetMediaBuyDeliveryRequestSchema = zod_1.z.object({
|
|
|
553
547
|
status_filter: zod_1.z.union([zod_1.z.union([zod_1.z.literal("active"), zod_1.z.literal("pending"), zod_1.z.literal("paused"), zod_1.z.literal("completed"), zod_1.z.literal("failed"), zod_1.z.literal("all")]), zod_1.z.array(zod_1.z.union([zod_1.z.literal("active"), zod_1.z.literal("pending"), zod_1.z.literal("paused"), zod_1.z.literal("completed"), zod_1.z.literal("failed")]))]).optional(),
|
|
554
548
|
start_date: zod_1.z.string().optional(),
|
|
555
549
|
end_date: zod_1.z.string().optional(),
|
|
556
|
-
context: zod_1.z.
|
|
550
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
557
551
|
});
|
|
558
552
|
exports.PricingModelSchema = zod_1.z.union([zod_1.z.literal("cpm"), zod_1.z.literal("vcpm"), zod_1.z.literal("cpc"), zod_1.z.literal("cpcv"), zod_1.z.literal("cpv"), zod_1.z.literal("cpp"), zod_1.z.literal("flat_rate")]);
|
|
559
553
|
exports.DeliveryMetricsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).and(zod_1.z.object({
|
|
@@ -594,7 +588,7 @@ exports.DeliveryMetricsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown
|
|
|
594
588
|
exports.PricingModel1Schema = zod_1.z.union([zod_1.z.literal("cpm"), zod_1.z.literal("vcpm"), zod_1.z.literal("cpc"), zod_1.z.literal("cpcv"), zod_1.z.literal("cpv"), zod_1.z.literal("cpp"), zod_1.z.literal("flat_rate")]);
|
|
595
589
|
exports.ListAuthorizedPropertiesRequestSchema = zod_1.z.object({
|
|
596
590
|
publisher_domains: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
597
|
-
context: zod_1.z.
|
|
591
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
598
592
|
});
|
|
599
593
|
exports.AdvertisingChannelsSchema = zod_1.z.union([zod_1.z.literal("display"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("native"), zod_1.z.literal("dooh"), zod_1.z.literal("ctv"), zod_1.z.literal("podcast"), zod_1.z.literal("retail"), zod_1.z.literal("social")]);
|
|
600
594
|
exports.ProvidePerformanceFeedbackRequestSchema = zod_1.z.object({
|
|
@@ -608,7 +602,7 @@ exports.ProvidePerformanceFeedbackRequestSchema = zod_1.z.object({
|
|
|
608
602
|
creative_id: zod_1.z.string().optional(),
|
|
609
603
|
metric_type: zod_1.z.union([zod_1.z.literal("overall_performance"), zod_1.z.literal("conversion_rate"), zod_1.z.literal("brand_lift"), zod_1.z.literal("click_through_rate"), zod_1.z.literal("completion_rate"), zod_1.z.literal("viewability"), zod_1.z.literal("brand_safety"), zod_1.z.literal("cost_efficiency")]).optional(),
|
|
610
604
|
feedback_source: zod_1.z.union([zod_1.z.literal("buyer_attribution"), zod_1.z.literal("third_party_measurement"), zod_1.z.literal("platform_analytics"), zod_1.z.literal("verification_partner")]).optional(),
|
|
611
|
-
context: zod_1.z.
|
|
605
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
612
606
|
});
|
|
613
607
|
exports.ProvidePerformanceFeedbackResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
614
608
|
success: zod_1.z.literal(true),
|
|
@@ -699,7 +693,7 @@ exports.DestinationSchema = zod_1.z.union([zod_1.z.object({
|
|
|
699
693
|
exports.GetSignalsRequestSchema = zod_1.z.object({
|
|
700
694
|
signal_spec: zod_1.z.string(),
|
|
701
695
|
deliver_to: zod_1.z.object({
|
|
702
|
-
|
|
696
|
+
deployments: zod_1.z.tuple([exports.DestinationSchema]).rest(exports.DestinationSchema),
|
|
703
697
|
countries: zod_1.z.array(zod_1.z.string())
|
|
704
698
|
}),
|
|
705
699
|
filters: zod_1.z.object({
|
|
@@ -709,7 +703,7 @@ exports.GetSignalsRequestSchema = zod_1.z.object({
|
|
|
709
703
|
min_coverage_percentage: zod_1.z.number().optional()
|
|
710
704
|
}).optional(),
|
|
711
705
|
max_results: zod_1.z.number().optional(),
|
|
712
|
-
context: zod_1.z.
|
|
706
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
713
707
|
});
|
|
714
708
|
exports.ActivationKeySchema = zod_1.z.union([zod_1.z.object({
|
|
715
709
|
type: zod_1.z.literal("segment_id"),
|
|
@@ -746,8 +740,8 @@ exports.DeploymentSchema = zod_1.z.union([zod_1.z.object({
|
|
|
746
740
|
})]);
|
|
747
741
|
exports.ActivateSignalRequestSchema = zod_1.z.object({
|
|
748
742
|
signal_agent_segment_id: zod_1.z.string(),
|
|
749
|
-
|
|
750
|
-
context: zod_1.z.
|
|
743
|
+
deployments: zod_1.z.tuple([exports.DestinationSchema]).rest(exports.DestinationSchema),
|
|
744
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
751
745
|
});
|
|
752
746
|
exports.ActivateSignalResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
753
747
|
deployments: zod_1.z.array(exports.DeploymentSchema),
|
|
@@ -756,19 +750,16 @@ exports.ActivateSignalResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
756
750
|
errors: zod_1.z.tuple([exports.ErrorSchema]).rest(exports.ErrorSchema),
|
|
757
751
|
context: zod_1.z.object({}).optional()
|
|
758
752
|
})]);
|
|
759
|
-
exports.
|
|
760
|
-
|
|
753
|
+
exports.MediaBuySchema = zod_1.z.object({
|
|
754
|
+
media_buy_id: zod_1.z.string(),
|
|
761
755
|
buyer_ref: zod_1.z.string().optional(),
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).optional(),
|
|
770
|
-
format_ids_to_provide: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
771
|
-
status: exports.PackageStatusSchema
|
|
756
|
+
status: exports.MediaBuyStatusSchema,
|
|
757
|
+
promoted_offering: zod_1.z.string(),
|
|
758
|
+
total_budget: zod_1.z.number(),
|
|
759
|
+
packages: zod_1.z.array(exports.PackageSchema),
|
|
760
|
+
creative_deadline: zod_1.z.string().optional(),
|
|
761
|
+
created_at: zod_1.z.string().optional(),
|
|
762
|
+
updated_at: zod_1.z.string().optional()
|
|
772
763
|
});
|
|
773
764
|
exports.GetProductsRequestSchema = zod_1.z.object({
|
|
774
765
|
brief: zod_1.z.string().optional(),
|
|
@@ -781,20 +772,32 @@ exports.GetProductsRequestSchema = zod_1.z.object({
|
|
|
781
772
|
standard_formats_only: zod_1.z.boolean().optional(),
|
|
782
773
|
min_exposures: zod_1.z.number().optional()
|
|
783
774
|
}).optional(),
|
|
784
|
-
context: zod_1.z.
|
|
775
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
785
776
|
});
|
|
786
777
|
exports.GetProductsResponseSchema = zod_1.z.object({
|
|
787
778
|
products: zod_1.z.array(exports.ProductSchema),
|
|
788
779
|
errors: zod_1.z.array(exports.ErrorSchema).optional(),
|
|
789
780
|
context: zod_1.z.object({}).optional()
|
|
790
781
|
});
|
|
782
|
+
exports.ListCreativeFormatsRequestSchema = zod_1.z.object({
|
|
783
|
+
format_ids: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
784
|
+
type: exports.FormatCategorySchema.optional(),
|
|
785
|
+
asset_types: zod_1.z.array(exports.AssetContentTypeSchema).optional(),
|
|
786
|
+
max_width: zod_1.z.number().optional(),
|
|
787
|
+
max_height: zod_1.z.number().optional(),
|
|
788
|
+
min_width: zod_1.z.number().optional(),
|
|
789
|
+
min_height: zod_1.z.number().optional(),
|
|
790
|
+
is_responsive: zod_1.z.boolean().optional(),
|
|
791
|
+
name_search: zod_1.z.string().optional(),
|
|
792
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
793
|
+
});
|
|
791
794
|
exports.FormatSchema = zod_1.z.object({
|
|
792
795
|
format_id: exports.FormatIDSchema,
|
|
793
796
|
name: zod_1.z.string(),
|
|
794
797
|
description: zod_1.z.string().optional(),
|
|
795
798
|
preview_image: zod_1.z.string().optional(),
|
|
796
799
|
example_url: zod_1.z.string().optional(),
|
|
797
|
-
type:
|
|
800
|
+
type: exports.FormatCategorySchema,
|
|
798
801
|
renders: zod_1.z.tuple([zod_1.z.object({
|
|
799
802
|
role: zod_1.z.string(),
|
|
800
803
|
dimensions: zod_1.z.object({
|
|
@@ -829,19 +832,20 @@ exports.FormatSchema = zod_1.z.object({
|
|
|
829
832
|
})
|
|
830
833
|
})).optional(),
|
|
831
834
|
assets_required: zod_1.z.array(zod_1.z.union([zod_1.z.object({
|
|
835
|
+
item_type: zod_1.z.literal("individual"),
|
|
832
836
|
asset_id: zod_1.z.string(),
|
|
833
|
-
asset_type:
|
|
837
|
+
asset_type: exports.AssetContentTypeSchema,
|
|
834
838
|
asset_role: zod_1.z.string().optional(),
|
|
835
839
|
required: zod_1.z.boolean().optional(),
|
|
836
840
|
requirements: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
837
841
|
}), zod_1.z.object({
|
|
842
|
+
item_type: zod_1.z.literal("repeatable_group"),
|
|
838
843
|
asset_group_id: zod_1.z.string(),
|
|
839
|
-
repeatable: zod_1.z.literal(true),
|
|
840
844
|
min_count: zod_1.z.number(),
|
|
841
845
|
max_count: zod_1.z.number(),
|
|
842
846
|
assets: zod_1.z.array(zod_1.z.object({
|
|
843
847
|
asset_id: zod_1.z.string(),
|
|
844
|
-
asset_type:
|
|
848
|
+
asset_type: exports.AssetContentType1Schema,
|
|
845
849
|
asset_role: zod_1.z.string().optional(),
|
|
846
850
|
required: zod_1.z.boolean().optional(),
|
|
847
851
|
requirements: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
@@ -871,6 +875,16 @@ exports.PackageRequestSchema = zod_1.z.object({
|
|
|
871
875
|
creative_ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
872
876
|
creatives: zod_1.z.array(exports.CreativeAssetSchema).optional()
|
|
873
877
|
});
|
|
878
|
+
exports.CreateMediaBuyResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
879
|
+
media_buy_id: zod_1.z.string(),
|
|
880
|
+
buyer_ref: zod_1.z.string(),
|
|
881
|
+
creative_deadline: zod_1.z.string().optional(),
|
|
882
|
+
packages: zod_1.z.array(exports.PackageSchema),
|
|
883
|
+
context: zod_1.z.object({}).optional()
|
|
884
|
+
}), zod_1.z.object({
|
|
885
|
+
errors: zod_1.z.tuple([exports.ErrorSchema]).rest(exports.ErrorSchema),
|
|
886
|
+
context: zod_1.z.object({}).optional()
|
|
887
|
+
})]);
|
|
874
888
|
exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
875
889
|
creatives: zod_1.z.array(exports.CreativeAssetSchema),
|
|
876
890
|
patch: zod_1.z.boolean().optional(),
|
|
@@ -879,7 +893,7 @@ exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
|
879
893
|
dry_run: zod_1.z.boolean().optional(),
|
|
880
894
|
validation_mode: zod_1.z.union([zod_1.z.literal("strict"), zod_1.z.literal("lenient")]).optional(),
|
|
881
895
|
push_notification_config: exports.PushNotificationConfigSchema.optional(),
|
|
882
|
-
context: zod_1.z.
|
|
896
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
883
897
|
});
|
|
884
898
|
exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
885
899
|
filters: zod_1.z.object({
|
|
@@ -912,7 +926,7 @@ exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
|
912
926
|
include_performance: zod_1.z.boolean().optional(),
|
|
913
927
|
include_sub_assets: zod_1.z.boolean().optional(),
|
|
914
928
|
fields: zod_1.z.array(zod_1.z.union([zod_1.z.literal("creative_id"), zod_1.z.literal("name"), zod_1.z.literal("format"), zod_1.z.literal("status"), zod_1.z.literal("created_date"), zod_1.z.literal("updated_date"), zod_1.z.literal("tags"), zod_1.z.literal("assignments"), zod_1.z.literal("performance"), zod_1.z.literal("sub_assets")])).optional(),
|
|
915
|
-
context: zod_1.z.
|
|
929
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
916
930
|
});
|
|
917
931
|
exports.UpdateMediaBuyRequestSchema = exports.UpdateMediaBuyRequest1Schema.and(exports.UpdateMediaBuyRequest2Schema);
|
|
918
932
|
exports.GetMediaBuyDeliveryResponseSchema = zod_1.z.object({
|
|
@@ -974,7 +988,7 @@ exports.BuildCreativeRequestSchema = zod_1.z.object({
|
|
|
974
988
|
message: zod_1.z.string().optional(),
|
|
975
989
|
creative_manifest: exports.CreativeManifestSchema.optional(),
|
|
976
990
|
target_format_id: exports.FormatID1Schema,
|
|
977
|
-
context: zod_1.z.
|
|
991
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
978
992
|
});
|
|
979
993
|
exports.BuildCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
980
994
|
creative_manifest: exports.CreativeManifestSchema,
|
|
@@ -984,6 +998,7 @@ exports.BuildCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
984
998
|
context: zod_1.z.object({}).optional()
|
|
985
999
|
})]);
|
|
986
1000
|
exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
1001
|
+
request_type: zod_1.z.literal("single"),
|
|
987
1002
|
format_id: exports.FormatIDSchema,
|
|
988
1003
|
creative_manifest: exports.CreativeManifestSchema,
|
|
989
1004
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
@@ -993,8 +1008,9 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
993
1008
|
})).optional(),
|
|
994
1009
|
template_id: zod_1.z.string().optional(),
|
|
995
1010
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional(),
|
|
996
|
-
context: zod_1.z.
|
|
1011
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
997
1012
|
}), zod_1.z.object({
|
|
1013
|
+
request_type: zod_1.z.literal("batch"),
|
|
998
1014
|
requests: zod_1.z.tuple([zod_1.z.object({
|
|
999
1015
|
format_id: exports.FormatID2Schema,
|
|
1000
1016
|
creative_manifest: exports.CreativeManifest1Schema,
|
|
@@ -1017,9 +1033,10 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1017
1033
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional()
|
|
1018
1034
|
})),
|
|
1019
1035
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional(),
|
|
1020
|
-
context: zod_1.z.
|
|
1036
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
1021
1037
|
})]);
|
|
1022
1038
|
exports.PreviewCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
1039
|
+
response_type: zod_1.z.literal("single"),
|
|
1023
1040
|
previews: zod_1.z.tuple([zod_1.z.object({
|
|
1024
1041
|
preview_id: zod_1.z.string(),
|
|
1025
1042
|
renders: zod_1.z.tuple([exports.PreviewRenderSchema]).rest(exports.PreviewRenderSchema),
|
|
@@ -1041,6 +1058,7 @@ exports.PreviewCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1041
1058
|
expires_at: zod_1.z.string(),
|
|
1042
1059
|
context: zod_1.z.object({}).optional()
|
|
1043
1060
|
}), zod_1.z.object({
|
|
1061
|
+
response_type: zod_1.z.literal("batch"),
|
|
1044
1062
|
results: zod_1.z.tuple([zod_1.z.union([zod_1.z.object({
|
|
1045
1063
|
success: zod_1.z.literal(true).optional()
|
|
1046
1064
|
}), zod_1.z.object({
|
|
@@ -1069,17 +1087,6 @@ exports.GetSignalsResponseSchema = zod_1.z.object({
|
|
|
1069
1087
|
errors: zod_1.z.array(exports.ErrorSchema).optional(),
|
|
1070
1088
|
context: zod_1.z.object({}).optional()
|
|
1071
1089
|
});
|
|
1072
|
-
exports.MediaBuySchema = zod_1.z.object({
|
|
1073
|
-
media_buy_id: zod_1.z.string(),
|
|
1074
|
-
buyer_ref: zod_1.z.string().optional(),
|
|
1075
|
-
status: exports.MediaBuyStatusSchema,
|
|
1076
|
-
promoted_offering: zod_1.z.string(),
|
|
1077
|
-
total_budget: zod_1.z.number(),
|
|
1078
|
-
packages: zod_1.z.array(exports.PackageSchema),
|
|
1079
|
-
creative_deadline: zod_1.z.string().optional(),
|
|
1080
|
-
created_at: zod_1.z.string().optional(),
|
|
1081
|
-
updated_at: zod_1.z.string().optional()
|
|
1082
|
-
});
|
|
1083
1090
|
exports.ListCreativeFormatsResponseSchema = zod_1.z.object({
|
|
1084
1091
|
formats: zod_1.z.array(exports.FormatSchema),
|
|
1085
1092
|
creative_agents: zod_1.z.array(zod_1.z.object({
|
|
@@ -1101,6 +1108,6 @@ exports.CreateMediaBuyRequestSchema = zod_1.z.object({
|
|
|
1101
1108
|
reporting_frequency: zod_1.z.union([zod_1.z.literal("hourly"), zod_1.z.literal("daily"), zod_1.z.literal("monthly")]),
|
|
1102
1109
|
requested_metrics: zod_1.z.array(zod_1.z.union([zod_1.z.literal("impressions"), zod_1.z.literal("spend"), zod_1.z.literal("clicks"), zod_1.z.literal("ctr"), zod_1.z.literal("video_completions"), zod_1.z.literal("completion_rate"), zod_1.z.literal("conversions"), zod_1.z.literal("viewability"), zod_1.z.literal("engagement_rate")])).optional()
|
|
1103
1110
|
})).optional(),
|
|
1104
|
-
context: zod_1.z.
|
|
1111
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
1105
1112
|
});
|
|
1106
1113
|
//# sourceMappingURL=schemas.generated.js.map
|