@adcp/client 3.0.2 → 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/core/TaskExecutor.d.ts.map +1 -1
- package/dist/lib/core/TaskExecutor.js.map +1 -1
- package/dist/lib/discovery/types.d.ts +7 -6
- package/dist/lib/discovery/types.d.ts.map +1 -1
- package/dist/lib/protocols/a2a.d.ts.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 +101 -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 +490 -276
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +161 -152
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +269 -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/dist/lib/validation/index.d.ts.map +1 -1
- package/dist/lib/validation/index.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(),
|
|
@@ -300,6 +259,8 @@ exports.TargetingOverlaySchema = zod_1.z.object({
|
|
|
300
259
|
geo_region_any_of: zod_1.z.array(zod_1.z.string()).optional(),
|
|
301
260
|
geo_metro_any_of: zod_1.z.array(zod_1.z.string()).optional(),
|
|
302
261
|
geo_postal_code_any_of: zod_1.z.array(zod_1.z.string()).optional(),
|
|
262
|
+
axe_include_segment: zod_1.z.string().optional(),
|
|
263
|
+
axe_exclude_segment: zod_1.z.string().optional(),
|
|
303
264
|
frequency_cap: exports.FrequencyCapSchema.optional()
|
|
304
265
|
});
|
|
305
266
|
exports.PropertyIdentifierTypesSchema = zod_1.z.union([zod_1.z.literal("domain"), zod_1.z.literal("subdomain"), zod_1.z.literal("network_id"), zod_1.z.literal("ios_bundle"), zod_1.z.literal("android_package"), zod_1.z.literal("apple_app_store_id"), zod_1.z.literal("google_play_id"), zod_1.z.literal("roku_store_id"), zod_1.z.literal("fire_tv_asin"), zod_1.z.literal("samsung_app_id"), zod_1.z.literal("apple_tv_bundle"), zod_1.z.literal("bundle_id"), zod_1.z.literal("venue_id"), zod_1.z.literal("screen_id"), zod_1.z.literal("openooh_venue_type"), zod_1.z.literal("rss_url"), zod_1.z.literal("apple_podcast_id"), zod_1.z.literal("spotify_show_id"), zod_1.z.literal("podcast_guid")]);
|
|
@@ -317,21 +278,73 @@ exports.PropertySchema = zod_1.z.object({
|
|
|
317
278
|
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
318
279
|
publisher_domain: zod_1.z.string().optional()
|
|
319
280
|
});
|
|
320
|
-
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
|
+
});
|
|
321
342
|
exports.BrandManifestReferenceSchema = zod_1.z.union([exports.BrandManifestSchema, zod_1.z.string()]);
|
|
322
343
|
exports.ProductSchema = zod_1.z.object({
|
|
323
344
|
product_id: zod_1.z.string(),
|
|
324
345
|
name: zod_1.z.string(),
|
|
325
346
|
description: zod_1.z.string(),
|
|
326
|
-
publisher_properties: zod_1.z.tuple([
|
|
327
|
-
publisher_domain: zod_1.z.string(),
|
|
328
|
-
property_ids: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
329
|
-
property_tags: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional()
|
|
330
|
-
})]).rest(zod_1.z.object({
|
|
331
|
-
publisher_domain: zod_1.z.string(),
|
|
332
|
-
property_ids: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
333
|
-
property_tags: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional()
|
|
334
|
-
})),
|
|
347
|
+
publisher_properties: zod_1.z.tuple([exports.PublisherPropertySelectorSchema]).rest(exports.PublisherPropertySelectorSchema),
|
|
335
348
|
format_ids: zod_1.z.array(exports.FormatIDSchema),
|
|
336
349
|
placements: zod_1.z.tuple([exports.PlacementSchema]).rest(exports.PlacementSchema).optional(),
|
|
337
350
|
delivery_type: exports.DeliveryTypeSchema,
|
|
@@ -364,23 +377,13 @@ exports.ErrorSchema = zod_1.z.object({
|
|
|
364
377
|
retry_after: zod_1.z.number().optional(),
|
|
365
378
|
details: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
366
379
|
});
|
|
367
|
-
exports.
|
|
368
|
-
|
|
369
|
-
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(),
|
|
370
|
-
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(),
|
|
371
|
-
max_width: zod_1.z.number().optional(),
|
|
372
|
-
max_height: zod_1.z.number().optional(),
|
|
373
|
-
min_width: zod_1.z.number().optional(),
|
|
374
|
-
min_height: zod_1.z.number().optional(),
|
|
375
|
-
is_responsive: zod_1.z.boolean().optional(),
|
|
376
|
-
name_search: zod_1.z.string().optional(),
|
|
377
|
-
context: zod_1.z.object({}).optional()
|
|
378
|
-
});
|
|
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")]);
|
|
379
382
|
exports.FormatID3Schema = zod_1.z.object({
|
|
380
383
|
agent_url: zod_1.z.string(),
|
|
381
384
|
id: zod_1.z.string()
|
|
382
385
|
});
|
|
383
|
-
exports.BrandManifestReference1Schema = zod_1.z.union([exports.
|
|
386
|
+
exports.BrandManifestReference1Schema = zod_1.z.union([exports.BrandManifestSchema, zod_1.z.string()]);
|
|
384
387
|
exports.StartTimingSchema = zod_1.z.union([zod_1.z.literal("asap"), zod_1.z.string()]);
|
|
385
388
|
exports.PushNotificationConfigSchema = zod_1.z.object({
|
|
386
389
|
url: zod_1.z.string(),
|
|
@@ -404,19 +407,20 @@ exports.PromotedOfferingsSchema = zod_1.z.object({
|
|
|
404
407
|
exclude_tags: zod_1.z.array(zod_1.z.string()).optional()
|
|
405
408
|
}).optional()
|
|
406
409
|
});
|
|
407
|
-
exports.
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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
|
+
});
|
|
420
424
|
exports.CreativeAssetSchema = zod_1.z.object({
|
|
421
425
|
creative_id: zod_1.z.string(),
|
|
422
426
|
name: zod_1.z.string(),
|
|
@@ -486,12 +490,7 @@ exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
|
486
490
|
status: exports.CreativeStatusSchema,
|
|
487
491
|
created_date: zod_1.z.string(),
|
|
488
492
|
updated_date: zod_1.z.string(),
|
|
489
|
-
media_url: zod_1.z.string().optional(),
|
|
490
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(),
|
|
491
|
-
click_url: zod_1.z.string().optional(),
|
|
492
|
-
duration: zod_1.z.number().optional(),
|
|
493
|
-
width: zod_1.z.number().optional(),
|
|
494
|
-
height: zod_1.z.number().optional(),
|
|
495
494
|
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
496
495
|
assignments: zod_1.z.object({
|
|
497
496
|
assignment_count: zod_1.z.number(),
|
|
@@ -529,17 +528,14 @@ exports.UpdateMediaBuyRequest1Schema = zod_1.z.object({
|
|
|
529
528
|
end_time: zod_1.z.string().optional(),
|
|
530
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(),
|
|
531
530
|
push_notification_config: exports.PushNotificationConfigSchema.optional(),
|
|
532
|
-
context: zod_1.z.
|
|
531
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
533
532
|
});
|
|
534
533
|
exports.UpdateMediaBuyRequest2Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
535
534
|
exports.UpdateMediaBuyResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
536
535
|
media_buy_id: zod_1.z.string(),
|
|
537
536
|
buyer_ref: zod_1.z.string(),
|
|
538
537
|
implementation_date: zod_1.z.string().optional().nullable(),
|
|
539
|
-
affected_packages: zod_1.z.array(
|
|
540
|
-
package_id: zod_1.z.string(),
|
|
541
|
-
buyer_ref: zod_1.z.string()
|
|
542
|
-
})).optional(),
|
|
538
|
+
affected_packages: zod_1.z.array(exports.PackageSchema).optional(),
|
|
543
539
|
context: zod_1.z.object({}).optional()
|
|
544
540
|
}), zod_1.z.object({
|
|
545
541
|
errors: zod_1.z.tuple([exports.ErrorSchema]).rest(exports.ErrorSchema),
|
|
@@ -551,7 +547,7 @@ exports.GetMediaBuyDeliveryRequestSchema = zod_1.z.object({
|
|
|
551
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(),
|
|
552
548
|
start_date: zod_1.z.string().optional(),
|
|
553
549
|
end_date: zod_1.z.string().optional(),
|
|
554
|
-
context: zod_1.z.
|
|
550
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
555
551
|
});
|
|
556
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")]);
|
|
557
553
|
exports.DeliveryMetricsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).and(zod_1.z.object({
|
|
@@ -592,7 +588,7 @@ exports.DeliveryMetricsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown
|
|
|
592
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")]);
|
|
593
589
|
exports.ListAuthorizedPropertiesRequestSchema = zod_1.z.object({
|
|
594
590
|
publisher_domains: zod_1.z.tuple([zod_1.z.string()]).rest(zod_1.z.string()).optional(),
|
|
595
|
-
context: zod_1.z.
|
|
591
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
596
592
|
});
|
|
597
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")]);
|
|
598
594
|
exports.ProvidePerformanceFeedbackRequestSchema = zod_1.z.object({
|
|
@@ -606,7 +602,7 @@ exports.ProvidePerformanceFeedbackRequestSchema = zod_1.z.object({
|
|
|
606
602
|
creative_id: zod_1.z.string().optional(),
|
|
607
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(),
|
|
608
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(),
|
|
609
|
-
context: zod_1.z.
|
|
605
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
610
606
|
});
|
|
611
607
|
exports.ProvidePerformanceFeedbackResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
612
608
|
success: zod_1.z.literal(true),
|
|
@@ -697,7 +693,7 @@ exports.DestinationSchema = zod_1.z.union([zod_1.z.object({
|
|
|
697
693
|
exports.GetSignalsRequestSchema = zod_1.z.object({
|
|
698
694
|
signal_spec: zod_1.z.string(),
|
|
699
695
|
deliver_to: zod_1.z.object({
|
|
700
|
-
|
|
696
|
+
deployments: zod_1.z.tuple([exports.DestinationSchema]).rest(exports.DestinationSchema),
|
|
701
697
|
countries: zod_1.z.array(zod_1.z.string())
|
|
702
698
|
}),
|
|
703
699
|
filters: zod_1.z.object({
|
|
@@ -707,7 +703,7 @@ exports.GetSignalsRequestSchema = zod_1.z.object({
|
|
|
707
703
|
min_coverage_percentage: zod_1.z.number().optional()
|
|
708
704
|
}).optional(),
|
|
709
705
|
max_results: zod_1.z.number().optional(),
|
|
710
|
-
context: zod_1.z.
|
|
706
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
711
707
|
});
|
|
712
708
|
exports.ActivationKeySchema = zod_1.z.union([zod_1.z.object({
|
|
713
709
|
type: zod_1.z.literal("segment_id"),
|
|
@@ -744,8 +740,8 @@ exports.DeploymentSchema = zod_1.z.union([zod_1.z.object({
|
|
|
744
740
|
})]);
|
|
745
741
|
exports.ActivateSignalRequestSchema = zod_1.z.object({
|
|
746
742
|
signal_agent_segment_id: zod_1.z.string(),
|
|
747
|
-
|
|
748
|
-
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()
|
|
749
745
|
});
|
|
750
746
|
exports.ActivateSignalResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
751
747
|
deployments: zod_1.z.array(exports.DeploymentSchema),
|
|
@@ -754,19 +750,16 @@ exports.ActivateSignalResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
754
750
|
errors: zod_1.z.tuple([exports.ErrorSchema]).rest(exports.ErrorSchema),
|
|
755
751
|
context: zod_1.z.object({}).optional()
|
|
756
752
|
})]);
|
|
757
|
-
exports.
|
|
758
|
-
|
|
753
|
+
exports.MediaBuySchema = zod_1.z.object({
|
|
754
|
+
media_buy_id: zod_1.z.string(),
|
|
759
755
|
buyer_ref: zod_1.z.string().optional(),
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).optional(),
|
|
768
|
-
format_ids_to_provide: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
769
|
-
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()
|
|
770
763
|
});
|
|
771
764
|
exports.GetProductsRequestSchema = zod_1.z.object({
|
|
772
765
|
brief: zod_1.z.string().optional(),
|
|
@@ -779,20 +772,32 @@ exports.GetProductsRequestSchema = zod_1.z.object({
|
|
|
779
772
|
standard_formats_only: zod_1.z.boolean().optional(),
|
|
780
773
|
min_exposures: zod_1.z.number().optional()
|
|
781
774
|
}).optional(),
|
|
782
|
-
context: zod_1.z.
|
|
775
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
783
776
|
});
|
|
784
777
|
exports.GetProductsResponseSchema = zod_1.z.object({
|
|
785
778
|
products: zod_1.z.array(exports.ProductSchema),
|
|
786
779
|
errors: zod_1.z.array(exports.ErrorSchema).optional(),
|
|
787
780
|
context: zod_1.z.object({}).optional()
|
|
788
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
|
+
});
|
|
789
794
|
exports.FormatSchema = zod_1.z.object({
|
|
790
795
|
format_id: exports.FormatIDSchema,
|
|
791
796
|
name: zod_1.z.string(),
|
|
792
797
|
description: zod_1.z.string().optional(),
|
|
793
798
|
preview_image: zod_1.z.string().optional(),
|
|
794
799
|
example_url: zod_1.z.string().optional(),
|
|
795
|
-
type:
|
|
800
|
+
type: exports.FormatCategorySchema,
|
|
796
801
|
renders: zod_1.z.tuple([zod_1.z.object({
|
|
797
802
|
role: zod_1.z.string(),
|
|
798
803
|
dimensions: zod_1.z.object({
|
|
@@ -827,19 +832,20 @@ exports.FormatSchema = zod_1.z.object({
|
|
|
827
832
|
})
|
|
828
833
|
})).optional(),
|
|
829
834
|
assets_required: zod_1.z.array(zod_1.z.union([zod_1.z.object({
|
|
835
|
+
item_type: zod_1.z.literal("individual"),
|
|
830
836
|
asset_id: zod_1.z.string(),
|
|
831
|
-
asset_type:
|
|
837
|
+
asset_type: exports.AssetContentTypeSchema,
|
|
832
838
|
asset_role: zod_1.z.string().optional(),
|
|
833
839
|
required: zod_1.z.boolean().optional(),
|
|
834
840
|
requirements: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
835
841
|
}), zod_1.z.object({
|
|
842
|
+
item_type: zod_1.z.literal("repeatable_group"),
|
|
836
843
|
asset_group_id: zod_1.z.string(),
|
|
837
|
-
repeatable: zod_1.z.literal(true),
|
|
838
844
|
min_count: zod_1.z.number(),
|
|
839
845
|
max_count: zod_1.z.number(),
|
|
840
846
|
assets: zod_1.z.array(zod_1.z.object({
|
|
841
847
|
asset_id: zod_1.z.string(),
|
|
842
|
-
asset_type:
|
|
848
|
+
asset_type: exports.AssetContentType1Schema,
|
|
843
849
|
asset_role: zod_1.z.string().optional(),
|
|
844
850
|
required: zod_1.z.boolean().optional(),
|
|
845
851
|
requirements: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
@@ -869,6 +875,16 @@ exports.PackageRequestSchema = zod_1.z.object({
|
|
|
869
875
|
creative_ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
870
876
|
creatives: zod_1.z.array(exports.CreativeAssetSchema).optional()
|
|
871
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
|
+
})]);
|
|
872
888
|
exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
873
889
|
creatives: zod_1.z.array(exports.CreativeAssetSchema),
|
|
874
890
|
patch: zod_1.z.boolean().optional(),
|
|
@@ -877,7 +893,7 @@ exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
|
877
893
|
dry_run: zod_1.z.boolean().optional(),
|
|
878
894
|
validation_mode: zod_1.z.union([zod_1.z.literal("strict"), zod_1.z.literal("lenient")]).optional(),
|
|
879
895
|
push_notification_config: exports.PushNotificationConfigSchema.optional(),
|
|
880
|
-
context: zod_1.z.
|
|
896
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
881
897
|
});
|
|
882
898
|
exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
883
899
|
filters: zod_1.z.object({
|
|
@@ -910,7 +926,7 @@ exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
|
910
926
|
include_performance: zod_1.z.boolean().optional(),
|
|
911
927
|
include_sub_assets: zod_1.z.boolean().optional(),
|
|
912
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(),
|
|
913
|
-
context: zod_1.z.
|
|
929
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
914
930
|
});
|
|
915
931
|
exports.UpdateMediaBuyRequestSchema = exports.UpdateMediaBuyRequest1Schema.and(exports.UpdateMediaBuyRequest2Schema);
|
|
916
932
|
exports.GetMediaBuyDeliveryResponseSchema = zod_1.z.object({
|
|
@@ -972,7 +988,7 @@ exports.BuildCreativeRequestSchema = zod_1.z.object({
|
|
|
972
988
|
message: zod_1.z.string().optional(),
|
|
973
989
|
creative_manifest: exports.CreativeManifestSchema.optional(),
|
|
974
990
|
target_format_id: exports.FormatID1Schema,
|
|
975
|
-
context: zod_1.z.
|
|
991
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
976
992
|
});
|
|
977
993
|
exports.BuildCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
978
994
|
creative_manifest: exports.CreativeManifestSchema,
|
|
@@ -982,6 +998,7 @@ exports.BuildCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
982
998
|
context: zod_1.z.object({}).optional()
|
|
983
999
|
})]);
|
|
984
1000
|
exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
1001
|
+
request_type: zod_1.z.literal("single"),
|
|
985
1002
|
format_id: exports.FormatIDSchema,
|
|
986
1003
|
creative_manifest: exports.CreativeManifestSchema,
|
|
987
1004
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
@@ -991,8 +1008,9 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
991
1008
|
})).optional(),
|
|
992
1009
|
template_id: zod_1.z.string().optional(),
|
|
993
1010
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional(),
|
|
994
|
-
context: zod_1.z.
|
|
1011
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
995
1012
|
}), zod_1.z.object({
|
|
1013
|
+
request_type: zod_1.z.literal("batch"),
|
|
996
1014
|
requests: zod_1.z.tuple([zod_1.z.object({
|
|
997
1015
|
format_id: exports.FormatID2Schema,
|
|
998
1016
|
creative_manifest: exports.CreativeManifest1Schema,
|
|
@@ -1015,9 +1033,10 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1015
1033
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional()
|
|
1016
1034
|
})),
|
|
1017
1035
|
output_format: zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]).optional(),
|
|
1018
|
-
context: zod_1.z.
|
|
1036
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
1019
1037
|
})]);
|
|
1020
1038
|
exports.PreviewCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
1039
|
+
response_type: zod_1.z.literal("single"),
|
|
1021
1040
|
previews: zod_1.z.tuple([zod_1.z.object({
|
|
1022
1041
|
preview_id: zod_1.z.string(),
|
|
1023
1042
|
renders: zod_1.z.tuple([exports.PreviewRenderSchema]).rest(exports.PreviewRenderSchema),
|
|
@@ -1039,6 +1058,7 @@ exports.PreviewCreativeResponseSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1039
1058
|
expires_at: zod_1.z.string(),
|
|
1040
1059
|
context: zod_1.z.object({}).optional()
|
|
1041
1060
|
}), zod_1.z.object({
|
|
1061
|
+
response_type: zod_1.z.literal("batch"),
|
|
1042
1062
|
results: zod_1.z.tuple([zod_1.z.union([zod_1.z.object({
|
|
1043
1063
|
success: zod_1.z.literal(true).optional()
|
|
1044
1064
|
}), zod_1.z.object({
|
|
@@ -1067,17 +1087,6 @@ exports.GetSignalsResponseSchema = zod_1.z.object({
|
|
|
1067
1087
|
errors: zod_1.z.array(exports.ErrorSchema).optional(),
|
|
1068
1088
|
context: zod_1.z.object({}).optional()
|
|
1069
1089
|
});
|
|
1070
|
-
exports.MediaBuySchema = zod_1.z.object({
|
|
1071
|
-
media_buy_id: zod_1.z.string(),
|
|
1072
|
-
buyer_ref: zod_1.z.string().optional(),
|
|
1073
|
-
status: exports.MediaBuyStatusSchema,
|
|
1074
|
-
promoted_offering: zod_1.z.string(),
|
|
1075
|
-
total_budget: zod_1.z.number(),
|
|
1076
|
-
packages: zod_1.z.array(exports.PackageSchema),
|
|
1077
|
-
creative_deadline: zod_1.z.string().optional(),
|
|
1078
|
-
created_at: zod_1.z.string().optional(),
|
|
1079
|
-
updated_at: zod_1.z.string().optional()
|
|
1080
|
-
});
|
|
1081
1090
|
exports.ListCreativeFormatsResponseSchema = zod_1.z.object({
|
|
1082
1091
|
formats: zod_1.z.array(exports.FormatSchema),
|
|
1083
1092
|
creative_agents: zod_1.z.array(zod_1.z.object({
|
|
@@ -1099,6 +1108,6 @@ exports.CreateMediaBuyRequestSchema = zod_1.z.object({
|
|
|
1099
1108
|
reporting_frequency: zod_1.z.union([zod_1.z.literal("hourly"), zod_1.z.literal("daily"), zod_1.z.literal("monthly")]),
|
|
1100
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()
|
|
1101
1110
|
})).optional(),
|
|
1102
|
-
context: zod_1.z.
|
|
1111
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional()
|
|
1103
1112
|
});
|
|
1104
1113
|
//# sourceMappingURL=schemas.generated.js.map
|