@adcp/client 2.5.4 → 2.5.6
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/LICENSE +191 -21
- package/README.md +1 -1
- package/dist/lib/core/ADCPClient.d.ts.map +1 -1
- package/dist/lib/core/ADCPClient.js +56 -2
- package/dist/lib/core/ADCPClient.js.map +1 -1
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/discovery/property-crawler.d.ts +19 -0
- package/dist/lib/discovery/property-crawler.d.ts.map +1 -1
- package/dist/lib/discovery/property-crawler.js +43 -3
- package/dist/lib/discovery/property-crawler.js.map +1 -1
- package/dist/lib/types/schemas.generated.d.ts +1826 -161
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +213 -62
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +1 -1
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.generated.d.ts","sourceRoot":"","sources":["../../../src/lib/types/schemas.generated.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,sIAA+G,CAAC;AAEjJ,eAAO,MAAM,YAAY,iGAA6E,CAAC;AAEvG,eAAO,MAAM,mBAAmB,yHAAkG,CAAC;AAEnI,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,cAAc;;;iBAGzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;iBAO3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"schemas.generated.d.ts","sourceRoot":"","sources":["../../../src/lib/types/schemas.generated.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWtC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod v4 schemas from TypeScript types
|
|
3
|
-
// Generated at: 2025-10-
|
|
3
|
+
// Generated at: 2025-10-29T00:00:56.481Z
|
|
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.ListCreativeFormatsResponseSchema = exports.ListAuthorizedPropertiesResponseSchema = exports.GetMediaBuyDeliveryResponseSchema = exports.UpdateMediaBuyRequestSchema = exports.ListCreativesRequestSchema = exports.FormatSchema = exports.ActivateSignalResponseSchema = exports.ActivateSignalRequestSchema = exports.GetSignalsResponseSchema = exports.GetSignalsRequestSchema = exports.PreviewCreativeResponseSchema = exports.
|
|
11
|
+
exports.CreateMediaBuyResponseSchema = exports.PromotedOfferingsSchema = exports.FormatID1Schema = exports.PushNotificationConfigSchema = exports.StartTimingSchema = exports.BrandManifestReference1Schema = exports.ListCreativeFormatsRequestSchema = exports.ErrorSchema = exports.ProductSchema = exports.BrandManifestReferenceSchema = exports.BrandManifestSchema = exports.TargetingOverlaySchema = exports.CreativePolicySchema = exports.ReportingCapabilitiesSchema = exports.MeasurementSchema = exports.PricingOptionSchema = exports.PlacementSchema = exports.FlatRatePricingOptionSchema = exports.CPPPricingOptionSchema = exports.CPVPricingOptionSchema = exports.CPCVPricingOptionSchema = exports.CPCPricingOptionSchema = exports.VCPMAuctionPricingOptionSchema = exports.VCPMFixedRatePricingOptionSchema = exports.CPMAuctionPricingOptionSchema = exports.CPMFixedRatePricingOptionSchema = exports.DeliveryTypeSchema = exports.PromotedProductsSchema = exports.URLAssetSchema = exports.DAASTAssetSchema = exports.VASTAssetSchema = exports.JavaScriptAssetSchema = exports.CSSAssetSchema = exports.HTMLAssetSchema = exports.TextAssetSchema = exports.AudioAssetSchema = exports.VideoAssetSchema = exports.ImageAssetSchema = exports.BrandManifest2Schema = exports.BrandManifest1Schema = exports.DAASTAsset2Schema = exports.DAASTAsset1Schema = exports.VASTAsset2Schema = exports.VASTAsset1Schema = exports.FrequencyCapSchema = exports.FormatIDSchema = exports.CreativeAssignmentSchema = exports.PackageStatusSchema = exports.PacingSchema = exports.MediaBuyStatusSchema = void 0;
|
|
12
|
+
exports.CreateMediaBuyRequestSchema = exports.ListCreativeFormatsResponseSchema = exports.MediaBuySchema = exports.BuildCreativeResponseSchema = exports.BuildCreativeRequestSchema = exports.ListAuthorizedPropertiesResponseSchema = exports.GetMediaBuyDeliveryResponseSchema = exports.UpdateMediaBuyRequestSchema = exports.ListCreativesResponseSchema = exports.ListCreativesRequestSchema = exports.SyncCreativesRequestSchema = exports.PackageRequestSchema = exports.FormatSchema = exports.GetProductsResponseSchema = exports.GetProductsRequestSchema = exports.PackageSchema = exports.ActivateSignalResponseSchema = exports.ActivateSignalRequestSchema = exports.GetSignalsResponseSchema = exports.GetSignalsRequestSchema = exports.PreviewCreativeResponseSchema = exports.PreviewCreativeRequestSchema = exports.CreativeManifestSchema = exports.WebhookAssetSchema = exports.ProvidePerformanceFeedbackResponseSchema = exports.ProvidePerformanceFeedbackRequestSchema = exports.AdvertisingChannelsSchema = exports.ListAuthorizedPropertiesRequestSchema = exports.DeliveryMetricsSchema = exports.PricingModelSchema = exports.GetMediaBuyDeliveryRequestSchema = exports.UpdateMediaBuyResponseSchema = exports.UpdateMediaBuyRequest2Schema = exports.UpdateMediaBuyRequest1Schema = exports.SubAssetSchema = exports.SubAsset2Schema = exports.SubAsset1Schema = exports.CreativeStatus1Schema = exports.CreativeStatusSchema = exports.SyncCreativesResponseSchema = exports.CreativeAssetSchema = 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")]);
|
|
@@ -35,7 +35,7 @@ exports.VASTAsset1Schema = zod_1.z.object({
|
|
|
35
35
|
duration_ms: zod_1.z.number().optional(),
|
|
36
36
|
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("click"), 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"), zod_1.z.literal("fullscreen"), zod_1.z.literal("exitFullscreen"), zod_1.z.literal("playerExpand"), zod_1.z.literal("playerCollapse")])).optional()
|
|
37
37
|
});
|
|
38
|
-
exports.VASTAsset2Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
38
|
+
exports.VASTAsset2Schema = 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())]);
|
|
39
39
|
exports.DAASTAsset1Schema = zod_1.z.object({
|
|
40
40
|
url: zod_1.z.string().optional(),
|
|
41
41
|
content: zod_1.z.string().optional(),
|
|
@@ -44,7 +44,7 @@ exports.DAASTAsset1Schema = zod_1.z.object({
|
|
|
44
44
|
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(),
|
|
45
45
|
companion_ads: zod_1.z.boolean().optional()
|
|
46
46
|
});
|
|
47
|
-
exports.DAASTAsset2Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
47
|
+
exports.DAASTAsset2Schema = 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())]);
|
|
48
48
|
exports.BrandManifest1Schema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
49
49
|
exports.BrandManifest2Schema = zod_1.z.object({
|
|
50
50
|
url: zod_1.z.string().optional(),
|
|
@@ -284,20 +284,6 @@ exports.TargetingOverlaySchema = zod_1.z.object({
|
|
|
284
284
|
geo_postal_code_any_of: zod_1.z.array(zod_1.z.string()).optional(),
|
|
285
285
|
frequency_cap: exports.FrequencyCapSchema.optional()
|
|
286
286
|
});
|
|
287
|
-
exports.PackageSchema = zod_1.z.object({
|
|
288
|
-
package_id: zod_1.z.string(),
|
|
289
|
-
buyer_ref: zod_1.z.string().optional(),
|
|
290
|
-
product_id: zod_1.z.string().optional(),
|
|
291
|
-
budget: zod_1.z.number().optional(),
|
|
292
|
-
pacing: exports.PacingSchema.optional(),
|
|
293
|
-
pricing_option_id: zod_1.z.string().optional(),
|
|
294
|
-
bid_price: zod_1.z.number().optional(),
|
|
295
|
-
impressions: zod_1.z.number().optional(),
|
|
296
|
-
targeting_overlay: exports.TargetingOverlaySchema.optional(),
|
|
297
|
-
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).optional(),
|
|
298
|
-
format_ids_to_provide: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
299
|
-
status: exports.PackageStatusSchema
|
|
300
|
-
});
|
|
301
287
|
exports.BrandManifestSchema = exports.BrandManifest1Schema.and(exports.BrandManifest2Schema);
|
|
302
288
|
exports.BrandManifestReferenceSchema = zod_1.z.union([exports.BrandManifestSchema, zod_1.z.string()]);
|
|
303
289
|
exports.ProductSchema = zod_1.z.object({
|
|
@@ -329,46 +315,6 @@ exports.ProductSchema = zod_1.z.object({
|
|
|
329
315
|
brief_relevance: zod_1.z.string().optional(),
|
|
330
316
|
expires_at: zod_1.z.string().optional()
|
|
331
317
|
});
|
|
332
|
-
exports.MediaBuySchema = zod_1.z.object({
|
|
333
|
-
media_buy_id: zod_1.z.string(),
|
|
334
|
-
buyer_ref: zod_1.z.string().optional(),
|
|
335
|
-
status: exports.MediaBuyStatusSchema,
|
|
336
|
-
promoted_offering: zod_1.z.string(),
|
|
337
|
-
total_budget: zod_1.z.number(),
|
|
338
|
-
packages: zod_1.z.array(exports.PackageSchema),
|
|
339
|
-
creative_deadline: zod_1.z.string().optional(),
|
|
340
|
-
created_at: zod_1.z.string().optional(),
|
|
341
|
-
updated_at: zod_1.z.string().optional()
|
|
342
|
-
});
|
|
343
|
-
exports.PromotedOfferingsSchema = zod_1.z.object({
|
|
344
|
-
brand_manifest: exports.BrandManifestReferenceSchema,
|
|
345
|
-
product_selectors: exports.PromotedProductsSchema.optional(),
|
|
346
|
-
offerings: zod_1.z.array(zod_1.z.object({
|
|
347
|
-
name: zod_1.z.string(),
|
|
348
|
-
description: zod_1.z.string().optional(),
|
|
349
|
-
assets: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())).optional()
|
|
350
|
-
})).optional(),
|
|
351
|
-
asset_selectors: zod_1.z.object({
|
|
352
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
353
|
-
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("vast"), zod_1.z.literal("daast"), zod_1.z.literal("text"), zod_1.z.literal("url"), zod_1.z.literal("html"), zod_1.z.literal("css"), zod_1.z.literal("javascript"), zod_1.z.literal("webhook")])).optional(),
|
|
354
|
-
exclude_tags: zod_1.z.array(zod_1.z.string()).optional()
|
|
355
|
-
}).optional()
|
|
356
|
-
});
|
|
357
|
-
exports.CreativeAssetSchema = zod_1.z.object({
|
|
358
|
-
creative_id: zod_1.z.string(),
|
|
359
|
-
name: zod_1.z.string(),
|
|
360
|
-
format_id: exports.FormatIDSchema,
|
|
361
|
-
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])),
|
|
362
|
-
inputs: zod_1.z.array(zod_1.z.object({
|
|
363
|
-
name: zod_1.z.string(),
|
|
364
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
365
|
-
context_description: zod_1.z.string().optional()
|
|
366
|
-
})).optional(),
|
|
367
|
-
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
368
|
-
approved: zod_1.z.boolean().optional()
|
|
369
|
-
});
|
|
370
|
-
// ====== TOOL SCHEMAS ======
|
|
371
|
-
// Generated by ts-to-zod
|
|
372
318
|
exports.ErrorSchema = zod_1.z.object({
|
|
373
319
|
code: zod_1.z.string(),
|
|
374
320
|
message: zod_1.z.string(),
|
|
@@ -388,6 +334,7 @@ exports.ListCreativeFormatsRequestSchema = zod_1.z.object({
|
|
|
388
334
|
is_responsive: zod_1.z.boolean().optional(),
|
|
389
335
|
name_search: zod_1.z.string().optional()
|
|
390
336
|
});
|
|
337
|
+
exports.BrandManifestReference1Schema = zod_1.z.union([exports.BrandManifest1Schema, zod_1.z.string()]);
|
|
391
338
|
exports.StartTimingSchema = zod_1.z.union([zod_1.z.literal("asap"), zod_1.z.string()]);
|
|
392
339
|
exports.PushNotificationConfigSchema = zod_1.z.object({
|
|
393
340
|
url: zod_1.z.string(),
|
|
@@ -397,6 +344,24 @@ exports.PushNotificationConfigSchema = zod_1.z.object({
|
|
|
397
344
|
credentials: zod_1.z.string()
|
|
398
345
|
})
|
|
399
346
|
});
|
|
347
|
+
exports.FormatID1Schema = zod_1.z.object({
|
|
348
|
+
agent_url: zod_1.z.string(),
|
|
349
|
+
id: zod_1.z.string()
|
|
350
|
+
});
|
|
351
|
+
exports.PromotedOfferingsSchema = zod_1.z.object({
|
|
352
|
+
brand_manifest: exports.BrandManifestReferenceSchema,
|
|
353
|
+
product_selectors: exports.PromotedProductsSchema.optional(),
|
|
354
|
+
offerings: zod_1.z.array(zod_1.z.object({
|
|
355
|
+
name: zod_1.z.string(),
|
|
356
|
+
description: zod_1.z.string().optional(),
|
|
357
|
+
assets: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())).optional()
|
|
358
|
+
})).optional(),
|
|
359
|
+
asset_selectors: zod_1.z.object({
|
|
360
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
361
|
+
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("vast"), zod_1.z.literal("daast"), zod_1.z.literal("text"), zod_1.z.literal("url"), zod_1.z.literal("html"), zod_1.z.literal("css"), zod_1.z.literal("javascript"), zod_1.z.literal("webhook")])).optional(),
|
|
362
|
+
exclude_tags: zod_1.z.array(zod_1.z.string()).optional()
|
|
363
|
+
}).optional()
|
|
364
|
+
});
|
|
400
365
|
exports.CreateMediaBuyResponseSchema = zod_1.z.object({
|
|
401
366
|
media_buy_id: zod_1.z.string().optional(),
|
|
402
367
|
buyer_ref: zod_1.z.string(),
|
|
@@ -407,6 +372,19 @@ exports.CreateMediaBuyResponseSchema = zod_1.z.object({
|
|
|
407
372
|
})).optional(),
|
|
408
373
|
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
409
374
|
});
|
|
375
|
+
exports.CreativeAssetSchema = zod_1.z.object({
|
|
376
|
+
creative_id: zod_1.z.string(),
|
|
377
|
+
name: zod_1.z.string(),
|
|
378
|
+
format_id: exports.FormatID1Schema,
|
|
379
|
+
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])),
|
|
380
|
+
inputs: zod_1.z.array(zod_1.z.object({
|
|
381
|
+
name: zod_1.z.string(),
|
|
382
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
383
|
+
context_description: zod_1.z.string().optional()
|
|
384
|
+
})).optional(),
|
|
385
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
386
|
+
approved: zod_1.z.boolean().optional()
|
|
387
|
+
});
|
|
410
388
|
exports.SyncCreativesResponseSchema = zod_1.z.object({
|
|
411
389
|
dry_run: zod_1.z.boolean().optional(),
|
|
412
390
|
creatives: zod_1.z.array(zod_1.z.object({
|
|
@@ -424,6 +402,14 @@ exports.SyncCreativesResponseSchema = zod_1.z.object({
|
|
|
424
402
|
});
|
|
425
403
|
exports.CreativeStatusSchema = zod_1.z.union([zod_1.z.literal("processing"), zod_1.z.literal("approved"), zod_1.z.literal("rejected"), zod_1.z.literal("pending_review")]);
|
|
426
404
|
exports.CreativeStatus1Schema = zod_1.z.union([zod_1.z.literal("processing"), zod_1.z.literal("approved"), zod_1.z.literal("rejected"), zod_1.z.literal("pending_review")]);
|
|
405
|
+
exports.SubAsset1Schema = zod_1.z.object({
|
|
406
|
+
asset_type: zod_1.z.string().optional(),
|
|
407
|
+
asset_id: zod_1.z.string().optional(),
|
|
408
|
+
content_uri: zod_1.z.string().optional(),
|
|
409
|
+
content: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional()
|
|
410
|
+
});
|
|
411
|
+
exports.SubAsset2Schema = 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())]);
|
|
412
|
+
exports.SubAssetSchema = exports.SubAsset1Schema.and(exports.SubAsset2Schema);
|
|
427
413
|
exports.UpdateMediaBuyRequest1Schema = zod_1.z.object({
|
|
428
414
|
media_buy_id: zod_1.z.string().optional(),
|
|
429
415
|
buyer_ref: zod_1.z.string().optional(),
|
|
@@ -507,9 +493,33 @@ exports.ProvidePerformanceFeedbackResponseSchema = zod_1.z.object({
|
|
|
507
493
|
success: zod_1.z.boolean(),
|
|
508
494
|
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
509
495
|
});
|
|
510
|
-
exports.
|
|
511
|
-
|
|
512
|
-
|
|
496
|
+
exports.WebhookAssetSchema = zod_1.z.object({
|
|
497
|
+
url: zod_1.z.string(),
|
|
498
|
+
method: zod_1.z.union([zod_1.z.literal("GET"), zod_1.z.literal("POST")]).optional(),
|
|
499
|
+
timeout_ms: zod_1.z.number().optional(),
|
|
500
|
+
supported_macros: zod_1.z.array(zod_1.z.string()).optional(),
|
|
501
|
+
required_macros: zod_1.z.array(zod_1.z.string()).optional(),
|
|
502
|
+
response_type: zod_1.z.union([zod_1.z.literal("html"), zod_1.z.literal("json"), zod_1.z.literal("xml"), zod_1.z.literal("javascript")]),
|
|
503
|
+
security: zod_1.z.object({
|
|
504
|
+
method: zod_1.z.union([zod_1.z.literal("hmac_sha256"), zod_1.z.literal("api_key"), zod_1.z.literal("none")]),
|
|
505
|
+
hmac_header: zod_1.z.string().optional(),
|
|
506
|
+
api_key_header: zod_1.z.string().optional()
|
|
507
|
+
})
|
|
508
|
+
});
|
|
509
|
+
exports.CreativeManifestSchema = zod_1.z.object({
|
|
510
|
+
format_id: exports.FormatIDSchema,
|
|
511
|
+
promoted_offering: zod_1.z.string().optional(),
|
|
512
|
+
assets: zod_1.z.record(zod_1.z.string(), zod_1.z.union([exports.ImageAssetSchema, exports.VideoAssetSchema, exports.AudioAssetSchema, exports.VASTAssetSchema, exports.TextAssetSchema, exports.URLAssetSchema, exports.HTMLAssetSchema, exports.JavaScriptAssetSchema, exports.WebhookAssetSchema, exports.CSSAssetSchema, exports.DAASTAssetSchema, exports.PromotedOfferingsSchema]))
|
|
513
|
+
});
|
|
514
|
+
exports.PreviewCreativeRequestSchema = zod_1.z.object({
|
|
515
|
+
format_id: exports.FormatIDSchema,
|
|
516
|
+
creative_manifest: exports.CreativeManifestSchema,
|
|
517
|
+
inputs: zod_1.z.array(zod_1.z.object({
|
|
518
|
+
name: zod_1.z.string(),
|
|
519
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
520
|
+
context_description: zod_1.z.string().optional()
|
|
521
|
+
})).optional(),
|
|
522
|
+
template_id: zod_1.z.string().optional()
|
|
513
523
|
});
|
|
514
524
|
exports.PreviewCreativeResponseSchema = zod_1.z.object({
|
|
515
525
|
previews: zod_1.z.tuple([zod_1.z.object({
|
|
@@ -640,6 +650,36 @@ exports.ActivateSignalResponseSchema = zod_1.z.object({
|
|
|
640
650
|
deployed_at: zod_1.z.string().optional(),
|
|
641
651
|
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
642
652
|
});
|
|
653
|
+
exports.PackageSchema = zod_1.z.object({
|
|
654
|
+
package_id: zod_1.z.string(),
|
|
655
|
+
buyer_ref: zod_1.z.string().optional(),
|
|
656
|
+
product_id: zod_1.z.string().optional(),
|
|
657
|
+
budget: zod_1.z.number().optional(),
|
|
658
|
+
pacing: exports.PacingSchema.optional(),
|
|
659
|
+
pricing_option_id: zod_1.z.string().optional(),
|
|
660
|
+
bid_price: zod_1.z.number().optional(),
|
|
661
|
+
impressions: zod_1.z.number().optional(),
|
|
662
|
+
targeting_overlay: exports.TargetingOverlaySchema.optional(),
|
|
663
|
+
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).optional(),
|
|
664
|
+
format_ids_to_provide: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
665
|
+
status: exports.PackageStatusSchema
|
|
666
|
+
});
|
|
667
|
+
exports.GetProductsRequestSchema = zod_1.z.object({
|
|
668
|
+
brief: zod_1.z.string().optional(),
|
|
669
|
+
brand_manifest: exports.BrandManifestReferenceSchema.optional(),
|
|
670
|
+
filters: zod_1.z.object({
|
|
671
|
+
delivery_type: exports.DeliveryTypeSchema.optional(),
|
|
672
|
+
is_fixed_price: zod_1.z.boolean().optional(),
|
|
673
|
+
format_types: zod_1.z.array(zod_1.z.union([zod_1.z.literal("video"), zod_1.z.literal("display"), zod_1.z.literal("audio")])).optional(),
|
|
674
|
+
format_ids: zod_1.z.array(exports.FormatIDSchema).optional(),
|
|
675
|
+
standard_formats_only: zod_1.z.boolean().optional(),
|
|
676
|
+
min_exposures: zod_1.z.number().optional()
|
|
677
|
+
}).optional()
|
|
678
|
+
});
|
|
679
|
+
exports.GetProductsResponseSchema = zod_1.z.object({
|
|
680
|
+
products: zod_1.z.array(exports.ProductSchema),
|
|
681
|
+
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
682
|
+
});
|
|
643
683
|
exports.FormatSchema = zod_1.z.object({
|
|
644
684
|
format_id: exports.FormatIDSchema,
|
|
645
685
|
name: zod_1.z.string(),
|
|
@@ -703,6 +743,27 @@ exports.FormatSchema = zod_1.z.object({
|
|
|
703
743
|
supported_macros: zod_1.z.array(zod_1.z.string()).optional(),
|
|
704
744
|
output_format_ids: zod_1.z.array(exports.FormatID1Schema).optional()
|
|
705
745
|
});
|
|
746
|
+
exports.PackageRequestSchema = zod_1.z.object({
|
|
747
|
+
buyer_ref: zod_1.z.string(),
|
|
748
|
+
product_id: zod_1.z.string(),
|
|
749
|
+
format_ids: zod_1.z.tuple([exports.FormatIDSchema]).rest(exports.FormatIDSchema).optional(),
|
|
750
|
+
budget: zod_1.z.number(),
|
|
751
|
+
pacing: exports.PacingSchema.optional(),
|
|
752
|
+
pricing_option_id: zod_1.z.string(),
|
|
753
|
+
bid_price: zod_1.z.number().optional(),
|
|
754
|
+
targeting_overlay: exports.TargetingOverlaySchema.optional(),
|
|
755
|
+
creative_ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
756
|
+
creatives: zod_1.z.array(exports.CreativeAssetSchema).optional()
|
|
757
|
+
});
|
|
758
|
+
exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
759
|
+
creatives: zod_1.z.array(exports.CreativeAssetSchema),
|
|
760
|
+
patch: zod_1.z.boolean().optional(),
|
|
761
|
+
assignments: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string())).optional(),
|
|
762
|
+
delete_missing: zod_1.z.boolean().optional(),
|
|
763
|
+
dry_run: zod_1.z.boolean().optional(),
|
|
764
|
+
validation_mode: zod_1.z.union([zod_1.z.literal("strict"), zod_1.z.literal("lenient")]).optional(),
|
|
765
|
+
push_notification_config: exports.PushNotificationConfigSchema.optional()
|
|
766
|
+
});
|
|
706
767
|
exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
707
768
|
filters: zod_1.z.object({
|
|
708
769
|
format: zod_1.z.string().optional(),
|
|
@@ -735,6 +796,64 @@ exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
|
735
796
|
include_sub_assets: zod_1.z.boolean().optional(),
|
|
736
797
|
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()
|
|
737
798
|
});
|
|
799
|
+
exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
800
|
+
query_summary: zod_1.z.object({
|
|
801
|
+
total_matching: zod_1.z.number(),
|
|
802
|
+
returned: zod_1.z.number(),
|
|
803
|
+
filters_applied: zod_1.z.array(zod_1.z.string()).optional(),
|
|
804
|
+
sort_applied: zod_1.z.object({
|
|
805
|
+
field: zod_1.z.string().optional(),
|
|
806
|
+
direction: zod_1.z.union([zod_1.z.literal("asc"), zod_1.z.literal("desc")]).optional()
|
|
807
|
+
}).optional()
|
|
808
|
+
}),
|
|
809
|
+
pagination: zod_1.z.object({
|
|
810
|
+
limit: zod_1.z.number(),
|
|
811
|
+
offset: zod_1.z.number(),
|
|
812
|
+
has_more: zod_1.z.boolean(),
|
|
813
|
+
total_pages: zod_1.z.number().optional(),
|
|
814
|
+
current_page: zod_1.z.number().optional()
|
|
815
|
+
}),
|
|
816
|
+
creatives: zod_1.z.array(zod_1.z.object({
|
|
817
|
+
creative_id: zod_1.z.string(),
|
|
818
|
+
name: zod_1.z.string(),
|
|
819
|
+
format_id: exports.FormatIDSchema,
|
|
820
|
+
status: exports.CreativeStatusSchema,
|
|
821
|
+
created_date: zod_1.z.string(),
|
|
822
|
+
updated_date: zod_1.z.string(),
|
|
823
|
+
media_url: zod_1.z.string().optional(),
|
|
824
|
+
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(),
|
|
825
|
+
click_url: zod_1.z.string().optional(),
|
|
826
|
+
duration: zod_1.z.number().optional(),
|
|
827
|
+
width: zod_1.z.number().optional(),
|
|
828
|
+
height: zod_1.z.number().optional(),
|
|
829
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
830
|
+
assignments: zod_1.z.object({
|
|
831
|
+
assignment_count: zod_1.z.number(),
|
|
832
|
+
assigned_packages: zod_1.z.array(zod_1.z.object({
|
|
833
|
+
package_id: zod_1.z.string(),
|
|
834
|
+
package_name: zod_1.z.string().optional(),
|
|
835
|
+
assigned_date: zod_1.z.string(),
|
|
836
|
+
status: zod_1.z.union([zod_1.z.literal("active"), zod_1.z.literal("paused"), zod_1.z.literal("ended")])
|
|
837
|
+
})).optional()
|
|
838
|
+
}).optional(),
|
|
839
|
+
performance: zod_1.z.object({
|
|
840
|
+
impressions: zod_1.z.number().optional(),
|
|
841
|
+
clicks: zod_1.z.number().optional(),
|
|
842
|
+
ctr: zod_1.z.number().optional(),
|
|
843
|
+
conversion_rate: zod_1.z.number().optional(),
|
|
844
|
+
performance_score: zod_1.z.number().optional(),
|
|
845
|
+
last_updated: zod_1.z.string()
|
|
846
|
+
}).optional(),
|
|
847
|
+
sub_assets: zod_1.z.array(exports.SubAssetSchema).optional()
|
|
848
|
+
})),
|
|
849
|
+
format_summary: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).optional(),
|
|
850
|
+
status_summary: zod_1.z.object({
|
|
851
|
+
approved: zod_1.z.number().optional(),
|
|
852
|
+
pending_review: zod_1.z.number().optional(),
|
|
853
|
+
rejected: zod_1.z.number().optional(),
|
|
854
|
+
archived: zod_1.z.number().optional()
|
|
855
|
+
}).optional()
|
|
856
|
+
});
|
|
738
857
|
exports.UpdateMediaBuyRequestSchema = exports.UpdateMediaBuyRequest1Schema.and(exports.UpdateMediaBuyRequest2Schema);
|
|
739
858
|
exports.GetMediaBuyDeliveryResponseSchema = zod_1.z.object({
|
|
740
859
|
notification_type: zod_1.z.union([zod_1.z.literal("scheduled"), zod_1.z.literal("final"), zod_1.z.literal("delayed"), zod_1.z.literal("adjusted")]).optional(),
|
|
@@ -786,6 +905,26 @@ exports.ListAuthorizedPropertiesResponseSchema = zod_1.z.object({
|
|
|
786
905
|
last_updated: zod_1.z.string().optional(),
|
|
787
906
|
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
788
907
|
});
|
|
908
|
+
exports.BuildCreativeRequestSchema = zod_1.z.object({
|
|
909
|
+
message: zod_1.z.string().optional(),
|
|
910
|
+
creative_manifest: exports.CreativeManifestSchema.optional(),
|
|
911
|
+
target_format_id: exports.FormatID1Schema
|
|
912
|
+
});
|
|
913
|
+
exports.BuildCreativeResponseSchema = zod_1.z.object({
|
|
914
|
+
creative_manifest: exports.CreativeManifestSchema,
|
|
915
|
+
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
916
|
+
});
|
|
917
|
+
exports.MediaBuySchema = zod_1.z.object({
|
|
918
|
+
media_buy_id: zod_1.z.string(),
|
|
919
|
+
buyer_ref: zod_1.z.string().optional(),
|
|
920
|
+
status: exports.MediaBuyStatusSchema,
|
|
921
|
+
promoted_offering: zod_1.z.string(),
|
|
922
|
+
total_budget: zod_1.z.number(),
|
|
923
|
+
packages: zod_1.z.array(exports.PackageSchema),
|
|
924
|
+
creative_deadline: zod_1.z.string().optional(),
|
|
925
|
+
created_at: zod_1.z.string().optional(),
|
|
926
|
+
updated_at: zod_1.z.string().optional()
|
|
927
|
+
});
|
|
789
928
|
exports.ListCreativeFormatsResponseSchema = zod_1.z.object({
|
|
790
929
|
formats: zod_1.z.array(exports.FormatSchema),
|
|
791
930
|
creative_agents: zod_1.z.array(zod_1.z.object({
|
|
@@ -795,4 +934,16 @@ exports.ListCreativeFormatsResponseSchema = zod_1.z.object({
|
|
|
795
934
|
})).optional(),
|
|
796
935
|
errors: zod_1.z.array(exports.ErrorSchema).optional()
|
|
797
936
|
});
|
|
937
|
+
exports.CreateMediaBuyRequestSchema = zod_1.z.object({
|
|
938
|
+
buyer_ref: zod_1.z.string(),
|
|
939
|
+
packages: zod_1.z.array(exports.PackageRequestSchema),
|
|
940
|
+
brand_manifest: exports.BrandManifestReference1Schema,
|
|
941
|
+
po_number: zod_1.z.string().optional(),
|
|
942
|
+
start_time: exports.StartTimingSchema,
|
|
943
|
+
end_time: zod_1.z.string(),
|
|
944
|
+
reporting_webhook: exports.PushNotificationConfigSchema.and(zod_1.z.object({
|
|
945
|
+
reporting_frequency: zod_1.z.union([zod_1.z.literal("hourly"), zod_1.z.literal("daily"), zod_1.z.literal("monthly")]),
|
|
946
|
+
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()
|
|
947
|
+
})).optional()
|
|
948
|
+
});
|
|
798
949
|
//# sourceMappingURL=schemas.generated.js.map
|