@adcp/client 4.7.2 → 4.8.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/agents/index.generated.d.ts +17 -17
- package/dist/lib/agents/index.generated.d.ts.map +1 -1
- package/dist/lib/agents/index.generated.js +24 -24
- package/dist/lib/agents/index.generated.js.map +1 -1
- package/dist/lib/core/CreativeAgentClient.d.ts +17 -1
- package/dist/lib/core/CreativeAgentClient.d.ts.map +1 -1
- package/dist/lib/core/CreativeAgentClient.js +21 -0
- package/dist/lib/core/CreativeAgentClient.js.map +1 -1
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/testing/agent-tester.d.ts +1 -1
- package/dist/lib/testing/agent-tester.d.ts.map +1 -1
- package/dist/lib/testing/agent-tester.js +2 -1
- package/dist/lib/testing/agent-tester.js.map +1 -1
- package/dist/lib/testing/formatter.d.ts.map +1 -1
- package/dist/lib/testing/formatter.js +6 -5
- package/dist/lib/testing/formatter.js.map +1 -1
- package/dist/lib/testing/index.d.ts +1 -1
- package/dist/lib/testing/index.d.ts.map +1 -1
- package/dist/lib/testing/index.js +3 -2
- package/dist/lib/testing/index.js.map +1 -1
- package/dist/lib/testing/orchestrator.d.ts.map +1 -1
- package/dist/lib/testing/orchestrator.js +10 -3
- package/dist/lib/testing/orchestrator.js.map +1 -1
- package/dist/lib/testing/scenarios/capabilities.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/capabilities.js +50 -39
- package/dist/lib/testing/scenarios/capabilities.js.map +1 -1
- package/dist/lib/testing/scenarios/index.d.ts +1 -1
- package/dist/lib/testing/scenarios/index.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/index.js +2 -1
- package/dist/lib/testing/scenarios/index.js.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.d.ts +13 -1
- package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.js +60 -33
- package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
- package/dist/lib/testing/types.d.ts +1 -1
- package/dist/lib/testing/types.d.ts.map +1 -1
- package/dist/lib/types/core.generated.d.ts +118 -3
- 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 +25675 -21635
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +230 -183
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +1323 -1225
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/utils/capabilities.d.ts +1 -1
- package/dist/lib/utils/capabilities.d.ts.map +1 -1
- package/dist/lib/utils/capabilities.js +9 -4
- package/dist/lib/utils/capabilities.js.map +1 -1
- package/package.json +6 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Generated Zod v4 schemas from TypeScript types
|
|
3
|
-
// Generated at: 2026-03-
|
|
3
|
+
// Generated at: 2026-03-13T14:10:46.796Z
|
|
4
4
|
// Sources:
|
|
5
5
|
// - core.generated.ts (core types)
|
|
6
6
|
// - tools.generated.ts (tool types)
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.JavaScriptAssetSchema = exports.HTMLAssetSchema = exports.URLAssetSchema = exports.TextAssetSchema = exports.VASTAssetSchema = exports.AudioAssetSchema = exports.VideoAssetSchema = exports.ImageAssetSchema = exports.CreativeStatusSchema = exports.CatalogSchema = exports.MarkdownFlavorSchema = exports.DAASTTrackingEventSchema = exports.DAASTVersionSchema = exports.WebhookSecurityMethodSchema = exports.WebhookResponseTypeSchema = exports.UniversalMacroSchema = exports.HTTPMethodSchema = exports.JavaScriptModuleTypeSchema = exports.URLAssetTypeSchema = exports.ProvenanceSchema = exports.VASTTrackingEventSchema = exports.VASTVersionSchema = exports.DisclosurePositionSchema = exports.DisclosurePersistenceSchema = exports.DigitalSourceTypeSchema = exports.PropertyListReferenceSchema = exports.FrequencyCapSchema = exports.DaypartTargetSchema = exports.CatalogFieldMappingSchema = exports.CreativeAssignmentSchema = exports.FormatIDSchema = exports.BrandReferenceSchema = exports.ExtensionObjectSchema = exports.OptimizationGoalSchema = exports.DeviceTypeSchema = exports.DevicePlatformSchema = exports.AgeVerificationMethodSchema = exports.ReachUnitSchema = exports.DurationSchema = exports.DayOfWeekSchema = exports.PostalCodeSystemSchema = exports.MetroAreaSystemSchema = exports.ContentIDTypeSchema = exports.EventTypeSchema = exports.UpdateFrequencySchema = exports.FeedFormatSchema = exports.CatalogTypeSchema = exports.PacingSchema = exports.MediaBuyStatusSchema = exports.BrandIDSchema = void 0;
|
|
12
12
|
exports.CreateMediaBuyErrorSchema = exports.AccountSchema = exports.GetProductsAsyncSubmittedSchema = exports.GetProductsAsyncWorkingSchema = exports.ContextObjectSchema = exports.PaginationResponseSchema = exports.ErrorSchema = exports.CatalogItemStatusSchema = exports.CatalogActionSchema = exports.CreativeActionSchema = exports.TaskStatusSchema = exports.AdCPDomainSchema = exports.TaskTypeSchema = exports.PropertySchema = exports.PropertyIdentifierTypesSchema = exports.PropertyTypeSchema = exports.GeographicBreakdownSupportSchema = exports.ForecastRangeSchema = exports.TimeBasedPricingOptionSchema = exports.DoohParametersSchema = exports.CPPPricingOptionSchema = exports.CPVPricingOptionSchema = exports.CPCVPricingOptionSchema = exports.CPCPricingOptionSchema = exports.VCPMPricingOptionSchema = exports.PriceGuidanceSchema = exports.CreativePolicySchema = exports.OutcomeMeasurementSchema = exports.PlacementSchema = exports.PublisherPropertySelectorSchema = exports.ActionSourceSchema = exports.DataProviderSignalSelectorSchema = exports.LandingPageRequirementSchema = exports.CoBrandingRequirementSchema = exports.AvailableMetricSchema = exports.ReportingFrequencySchema = exports.ForecastMethodSchema = exports.ForecastRangeUnitSchema = exports.DemographicSystemSchema = exports.CPAPricingOptionSchema = exports.DeliveryTypeSchema = exports.MediaChannelSchema = exports.PropertyTagSchema = exports.PropertyIDSchema = exports.ReferenceAssetSchema = exports.CatalogAssetSchema = exports.MarkdownAssetSchema = exports.DAASTAssetSchema = exports.CSSAssetSchema = exports.WebhookAssetSchema = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.CreativeVariantSchema = exports.IdentifierSchema = exports.GetCreativeDeliveryRequestSchema = exports.PreviewCreativeVariantResponseSchema = exports.PreviewBatchResultErrorSchema = exports.PreviewBatchResultSuccessSchema = exports.PreviewCreativeSingleResponseSchema = exports.PreviewRenderSchema = exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.ListCreativeFormatsResponseSchema = exports.SISendMessageResponseSchema = exports.GetSignalsResponseSchema = exports.PreviewCreativeResponseSchema = exports.LogEventRequestSchema = exports.CreateMediaBuyRequestSchema = exports.FormatSchema = exports.GetProductsRequestSchema = exports.MCPWebhookPayloadSchema = exports.AdCPAsyncResponseDataSchema = exports.GetAccountFinancialsResponseSchema = exports.GetAccountFinancialsRequestSchema = exports.SyncAccountsResponseSchema = exports.A2UISurfaceSchema = exports.SIInitiateSessionRequestSchema = exports.GetCreativeFeaturesResponseSchema = exports.UpdateContentStandardsResponseSchema = exports.GetContentStandardsResponseSchema = exports.ListContentStandardsResponseSchema = exports.UpdatePropertyListResponseSchema = void 0;
|
|
13
|
+
exports.PackageSchema = exports.BriefAssetSchema = exports.TargetingOverlaySchema = exports.ReportingWebhookSchema = exports.PushNotificationConfigSchema = exports.AuthenticationSchemeSchema = exports.StartTimingSchema = exports.CreativeBriefSchema = exports.BaseGroupAssetSchema = exports.OverlaySchema = exports.CreativeAgentCapabilitySchema = exports.FormatIDParameterSchema = exports.ListCreativeFormatsRequestSchema = exports.WCAGLevelSchema = exports.AssetContentTypeSchema = exports.ProductAllocationSchema = exports.DeliveryForecastSchema = exports.ForecastPointSchema = exports.ReportingCapabilitiesSchema = exports.PricingOptionSchema = exports.FlatRatePricingOptionSchema = exports.CPMPricingOptionSchema = exports.SignalTargetingSchema = exports.MediaBuyFeaturesSchema = exports.SignalIDSchema = exports.GeographicTargetingLevelSchema = exports.FormatCategorySchema = exports.PaginationRequestSchema = exports.AccountReferenceSchema = exports.SyncCatalogsAsyncSubmittedSchema = exports.SyncCatalogsAsyncInputRequiredSchema = exports.SyncCatalogsAsyncWorkingSchema = exports.SyncCatalogsErrorSchema = exports.SyncCatalogsSuccessSchema = exports.SyncCreativesAsyncSubmittedSchema = exports.SyncCreativesAsyncInputRequiredSchema = exports.SyncCreativesAsyncWorkingSchema = exports.SyncCreativesErrorSchema = exports.SyncCreativesSuccessSchema = exports.BuildCreativeAsyncSubmittedSchema = exports.BuildCreativeAsyncInputRequiredSchema = exports.BuildCreativeAsyncWorkingSchema = exports.BuildCreativeErrorSchema = exports.UpdateMediaBuyAsyncSubmittedSchema = exports.UpdateMediaBuyAsyncInputRequiredSchema = exports.UpdateMediaBuyAsyncWorkingSchema = exports.UpdateMediaBuyErrorSchema = exports.CreateMediaBuyAsyncSubmittedSchema = exports.CreateMediaBuyAsyncInputRequiredSchema = exports.CreateMediaBuyAsyncWorkingSchema = void 0;
|
|
14
|
+
exports.CreativeItemSchema = exports.CreativeFiltersSchema = exports.SortDirectionSchema = exports.CreativeSortFieldSchema = exports.CreativeVariantSchema = exports.IdentifierSchema = exports.GetCreativeDeliveryRequestSchema = exports.PreviewCreativeVariantResponseSchema = exports.PreviewBatchResultErrorSchema = exports.PreviewBatchResultSuccessSchema = exports.PreviewCreativeSingleResponseSchema = exports.PreviewRenderSchema = exports.PreviewOutputFormatSchema = exports.BuildCreativeMultiSuccessSchema = exports.BuildCreativeSuccessSchema = exports.CreativeQualitySchema = exports.CreativeManifestSchema = exports.SyncCatalogsResponseSchema = exports.SyncCatalogsRequestSchema = exports.ValidationModeSchema = exports.SyncAudiencesErrorSchema = exports.SyncAudiencesSuccessSchema = exports.SyncAudiencesRequestSchema = exports.ConsentBasisSchema = exports.AudienceMemberSchema = exports.LogEventErrorSchema = exports.LogEventSuccessSchema = exports.EventCustomDataSchema = exports.UserMatchSchema = exports.UIDTypeSchema = exports.SyncEventSourcesErrorSchema = exports.SyncEventSourcesSuccessSchema = exports.SyncEventSourcesRequestSchema = exports.ProvidePerformanceFeedbackErrorSchema = exports.ProvidePerformanceFeedbackSuccessSchema = exports.FeedbackSourceSchema = exports.MetricTypeSchema = exports.DatetimeRangeSchema = exports.DeliveryMetricsSchema = exports.AttributionWindowSchema = exports.AudienceSourceSchema = exports.PricingModelSchema = exports.GetMediaBuyDeliveryRequestSchema = exports.SortMetricSchema = exports.AttributionModelSchema = exports.PackageStatusSchema = exports.CreativeApprovalStatusSchema = exports.GetMediaBuysRequestSchema = exports.UpdateMediaBuySuccessSchema = exports.CreativeAssetSchema = void 0;
|
|
15
|
+
exports.SIIdentitySchema = exports.SIGetOfferingResponseSchema = exports.SIGetOfferingRequestSchema = exports.CreativeFeatureResultSchema = exports.GetCreativeFeaturesRequestSchema = exports.GetMediaBuyArtifactsResponseSchema = exports.GetMediaBuyArtifactsRequestSchema = exports.ValidateContentDeliveryResponseSchema = exports.ValidateContentDeliveryRequestSchema = exports.CalibrateContentResponseSchema = exports.CalibrateContentRequestSchema = exports.UpdateContentStandardsErrorSchema = exports.UpdateContentStandardsSuccessSchema = exports.UpdateContentStandardsRequestSchema = exports.CreateContentStandardsResponseSchema = exports.CreateContentStandardsRequestSchema = exports.ContentStandardsSchema = exports.GetContentStandardsRequestSchema = exports.ArtifactSchema = exports.AssetAccessSchema = exports.ListContentStandardsRequestSchema = exports.DeletePropertyListResponseSchema = exports.DeletePropertyListRequestSchema = exports.ListPropertyListsResponseSchema = exports.ListPropertyListsRequestSchema = exports.GetPropertyListResponseSchema = exports.GetPropertyListRequestSchema = exports.PropertyListSchema = exports.UpdatePropertyListRequestSchema = exports.PropertyListFiltersSchema = exports.FeatureRequirementSchema = exports.BasePropertySourceSchema = exports.DirectIdentifiersSourceSchema = exports.PublisherPropertyIDsSourceSchema = exports.PublisherTagsSourceSchema = exports.ActivateSignalErrorSchema = exports.ActivateSignalSuccessSchema = exports.ActivateSignalRequestSchema = exports.DeploymentSchema = exports.FlatFeePricingSchema = exports.PercentOfMediaPricingSchema = exports.CpmPricingSchema = exports.ActivationKeySchema = exports.SignalValueTypeSchema = exports.SignalFiltersSchema = exports.SignalCatalogTypeSchema = exports.DestinationSchema = exports.SyncCreativesResponseSchema = exports.SyncCreativesRequestSchema = exports.CreativeVariableSchema = void 0;
|
|
16
|
+
exports.SignalPricingOptionSchema = exports.SignalPricingSchema = exports.GetSignalsRequestSchema = exports.ListCreativesResponseSchema = exports.ListCreativesRequestSchema = exports.GetCreativeDeliveryResponseSchema = exports.PreviewCreativeBatchResponseSchema = exports.PreviewCreativeRequestSchema = exports.BuildCreativeRequestSchema = exports.SyncAudiencesResponseSchema = exports.LogEventResponseSchema = exports.EventSchema = exports.SyncEventSourcesResponseSchema = exports.ProvidePerformanceFeedbackResponseSchema = exports.ProvidePerformanceFeedbackRequestSchema = exports.GetMediaBuyDeliveryResponseSchema = exports.GetMediaBuysResponseSchema = exports.PackageUpdateSchema = exports.CreateMediaBuyResponseSchema = exports.PackageRequestSchema = exports.BaseIndividualAssetSchema = exports.GetProductsResponseSchema = exports.ProductFiltersSchema = exports.ProposalSchema = exports.CreateMediaBuySuccessSchema = exports.BuildCreativeResponseSchema = exports.UpdateMediaBuyResponseSchema = exports.GetProductsAsyncInputRequiredSchema = exports.ProductSchema = exports.MediaBuySchema = exports.GetAccountFinancialsErrorSchema = exports.GetAccountFinancialsSuccessSchema = exports.DateRangeSchema = exports.ReportUsageResponseSchema = exports.ReportUsageRequestSchema = exports.SyncAccountsErrorSchema = exports.SyncAccountsSuccessSchema = exports.SyncAccountsRequestSchema = exports.ListAccountsResponseSchema = exports.ListAccountsRequestSchema = exports.GetAdCPCapabilitiesResponseSchema = exports.TransportModeSchema = exports.GetAdCPCapabilitiesRequestSchema = exports.SITerminateSessionResponseSchema = exports.SITerminateSessionRequestSchema = exports.A2UIComponentSchema = exports.SISendMessageRequestSchema = exports.SIInitiateSessionResponseSchema = exports.SIUIElementSchema = exports.SICapabilitiesSchema = void 0;
|
|
17
|
+
exports.ListCreativeFormatsResponseSchema = exports.SISendMessageResponseSchema = exports.GetSignalsResponseSchema = exports.PreviewCreativeResponseSchema = exports.LogEventRequestSchema = exports.UpdateMediaBuyRequestSchema = exports.CreateMediaBuyRequestSchema = exports.FormatSchema = exports.GetProductsRequestSchema = exports.MCPWebhookPayloadSchema = exports.AdCPAsyncResponseDataSchema = exports.GetAccountFinancialsResponseSchema = exports.GetAccountFinancialsRequestSchema = exports.SyncAccountsResponseSchema = exports.A2UISurfaceSchema = exports.SIInitiateSessionRequestSchema = exports.GetCreativeFeaturesResponseSchema = exports.UpdateContentStandardsResponseSchema = exports.GetContentStandardsResponseSchema = exports.ListContentStandardsResponseSchema = exports.UpdatePropertyListResponseSchema = exports.CreatePropertyListResponseSchema = exports.CreatePropertyListRequestSchema = exports.ActivateSignalResponseSchema = void 0;
|
|
18
18
|
// Generated by ts-to-zod
|
|
19
19
|
const zod_1 = require("zod");
|
|
20
20
|
exports.BrandIDSchema = zod_1.z.string();
|
|
@@ -576,7 +576,7 @@ exports.AccountSchema = zod_1.z.object({
|
|
|
576
576
|
operator: zod_1.z.string().nullish(),
|
|
577
577
|
billing: zod_1.z.union([zod_1.z.literal("operator"), zod_1.z.literal("agent")]).nullish(),
|
|
578
578
|
rate_card: zod_1.z.string().nullish(),
|
|
579
|
-
payment_terms: zod_1.z.
|
|
579
|
+
payment_terms: zod_1.z.union([zod_1.z.literal("net_15"), zod_1.z.literal("net_30"), zod_1.z.literal("net_45"), zod_1.z.literal("net_60"), zod_1.z.literal("net_90"), zod_1.z.literal("prepay")]).nullish(),
|
|
580
580
|
credit_limit: zod_1.z.object({
|
|
581
581
|
amount: zod_1.z.number(),
|
|
582
582
|
currency: zod_1.z.string()
|
|
@@ -635,6 +635,29 @@ exports.UpdateMediaBuyAsyncSubmittedSchema = zod_1.z.object({
|
|
|
635
635
|
context: exports.ContextObjectSchema.nullish(),
|
|
636
636
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
637
637
|
}).passthrough();
|
|
638
|
+
exports.BuildCreativeErrorSchema = zod_1.z.object({
|
|
639
|
+
errors: zod_1.z.array(exports.ErrorSchema),
|
|
640
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
641
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
642
|
+
}).passthrough();
|
|
643
|
+
exports.BuildCreativeAsyncWorkingSchema = zod_1.z.object({
|
|
644
|
+
percentage: zod_1.z.number().nullish(),
|
|
645
|
+
current_step: zod_1.z.string().nullish(),
|
|
646
|
+
total_steps: zod_1.z.number().nullish(),
|
|
647
|
+
step_number: zod_1.z.number().nullish(),
|
|
648
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
649
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
650
|
+
}).passthrough();
|
|
651
|
+
exports.BuildCreativeAsyncInputRequiredSchema = zod_1.z.object({
|
|
652
|
+
reason: zod_1.z.union([zod_1.z.literal("APPROVAL_REQUIRED"), zod_1.z.literal("CREATIVE_DIRECTION_NEEDED"), zod_1.z.literal("ASSET_SELECTION_NEEDED")]).nullish(),
|
|
653
|
+
errors: zod_1.z.array(exports.ErrorSchema).nullish(),
|
|
654
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
655
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
656
|
+
}).passthrough();
|
|
657
|
+
exports.BuildCreativeAsyncSubmittedSchema = zod_1.z.object({
|
|
658
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
659
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
660
|
+
}).passthrough();
|
|
638
661
|
exports.SyncCreativesSuccessSchema = zod_1.z.object({
|
|
639
662
|
dry_run: zod_1.z.boolean().nullish(),
|
|
640
663
|
creatives: zod_1.z.array(zod_1.z.object({
|
|
@@ -1017,7 +1040,6 @@ exports.PackageSchema = zod_1.z.object({
|
|
|
1017
1040
|
paused: zod_1.z.boolean().nullish(),
|
|
1018
1041
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1019
1042
|
}).passthrough();
|
|
1020
|
-
exports.ValidationModeSchema = zod_1.z.union([zod_1.z.literal("strict"), zod_1.z.literal("lenient")]);
|
|
1021
1043
|
exports.CreativeAssetSchema = zod_1.z.object({
|
|
1022
1044
|
creative_id: zod_1.z.string(),
|
|
1023
1045
|
name: zod_1.z.string(),
|
|
@@ -1034,123 +1056,6 @@ exports.CreativeAssetSchema = zod_1.z.object({
|
|
|
1034
1056
|
placement_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1035
1057
|
provenance: exports.ProvenanceSchema.nullish()
|
|
1036
1058
|
}).passthrough();
|
|
1037
|
-
exports.SyncCreativesResponseSchema = zod_1.z.union([exports.SyncCreativesSuccessSchema, exports.SyncCreativesErrorSchema]);
|
|
1038
|
-
exports.CreativeSortFieldSchema = zod_1.z.union([zod_1.z.literal("created_date"), zod_1.z.literal("updated_date"), zod_1.z.literal("name"), zod_1.z.literal("status"), zod_1.z.literal("assignment_count"), zod_1.z.literal("performance_score")]);
|
|
1039
|
-
exports.SortDirectionSchema = zod_1.z.union([zod_1.z.literal("asc"), zod_1.z.literal("desc")]);
|
|
1040
|
-
exports.CreativeFiltersSchema = zod_1.z.object({
|
|
1041
|
-
accounts: zod_1.z.array(exports.AccountReferenceSchema).nullish(),
|
|
1042
|
-
formats: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1043
|
-
statuses: zod_1.z.array(exports.CreativeStatusSchema).nullish(),
|
|
1044
|
-
tags: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1045
|
-
tags_any: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1046
|
-
name_contains: zod_1.z.string().nullish(),
|
|
1047
|
-
creative_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1048
|
-
created_after: zod_1.z.string().nullish(),
|
|
1049
|
-
created_before: zod_1.z.string().nullish(),
|
|
1050
|
-
updated_after: zod_1.z.string().nullish(),
|
|
1051
|
-
updated_before: zod_1.z.string().nullish(),
|
|
1052
|
-
assigned_to_packages: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1053
|
-
media_buy_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1054
|
-
buyer_refs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1055
|
-
unassigned: zod_1.z.boolean().nullish(),
|
|
1056
|
-
has_performance_data: zod_1.z.boolean().nullish()
|
|
1057
|
-
}).passthrough();
|
|
1058
|
-
exports.SubAssetSchema = zod_1.z.union([zod_1.z.object({
|
|
1059
|
-
asset_kind: zod_1.z.literal("media"),
|
|
1060
|
-
asset_type: zod_1.z.string(),
|
|
1061
|
-
asset_id: zod_1.z.string(),
|
|
1062
|
-
content_uri: zod_1.z.string()
|
|
1063
|
-
}).passthrough(), zod_1.z.object({
|
|
1064
|
-
asset_kind: zod_1.z.literal("text"),
|
|
1065
|
-
asset_type: zod_1.z.string(),
|
|
1066
|
-
asset_id: zod_1.z.string(),
|
|
1067
|
-
content: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
1068
|
-
}).passthrough()]);
|
|
1069
|
-
exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
1070
|
-
query_summary: zod_1.z.object({
|
|
1071
|
-
total_matching: zod_1.z.number().nullish(),
|
|
1072
|
-
returned: zod_1.z.number().nullish(),
|
|
1073
|
-
filters_applied: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1074
|
-
sort_applied: zod_1.z.object({
|
|
1075
|
-
field: zod_1.z.string().nullish(),
|
|
1076
|
-
direction: exports.SortDirectionSchema.nullish()
|
|
1077
|
-
}).passthrough().nullish()
|
|
1078
|
-
}).passthrough(),
|
|
1079
|
-
pagination: exports.PaginationResponseSchema,
|
|
1080
|
-
creatives: zod_1.z.array(zod_1.z.object({
|
|
1081
|
-
creative_id: zod_1.z.string(),
|
|
1082
|
-
account: exports.AccountSchema.nullish(),
|
|
1083
|
-
name: zod_1.z.string(),
|
|
1084
|
-
format_id: exports.FormatIDSchema,
|
|
1085
|
-
status: exports.CreativeStatusSchema,
|
|
1086
|
-
created_date: zod_1.z.string(),
|
|
1087
|
-
updated_date: zod_1.z.string(),
|
|
1088
|
-
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.MarkdownAssetSchema, exports.BriefAssetSchema, exports.CatalogAssetSchema])).nullish(),
|
|
1089
|
-
tags: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1090
|
-
assignments: zod_1.z.object({
|
|
1091
|
-
assignment_count: zod_1.z.number(),
|
|
1092
|
-
assigned_packages: zod_1.z.array(zod_1.z.object({
|
|
1093
|
-
package_id: zod_1.z.string(),
|
|
1094
|
-
buyer_ref: zod_1.z.string().nullish(),
|
|
1095
|
-
assigned_date: zod_1.z.string()
|
|
1096
|
-
}).passthrough()).nullish()
|
|
1097
|
-
}).passthrough().nullish(),
|
|
1098
|
-
performance: zod_1.z.object({
|
|
1099
|
-
impressions: zod_1.z.number().nullish(),
|
|
1100
|
-
clicks: zod_1.z.number().nullish(),
|
|
1101
|
-
ctr: zod_1.z.number().nullish(),
|
|
1102
|
-
conversion_rate: zod_1.z.number().nullish(),
|
|
1103
|
-
performance_score: zod_1.z.number().nullish(),
|
|
1104
|
-
last_updated: zod_1.z.string()
|
|
1105
|
-
}).passthrough().nullish(),
|
|
1106
|
-
sub_assets: zod_1.z.array(exports.SubAssetSchema).nullish()
|
|
1107
|
-
}).passthrough()),
|
|
1108
|
-
format_summary: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.number(), zod_1.z.undefined()])).nullish(),
|
|
1109
|
-
status_summary: zod_1.z.object({
|
|
1110
|
-
processing: zod_1.z.number().nullish(),
|
|
1111
|
-
approved: zod_1.z.number().nullish(),
|
|
1112
|
-
pending_review: zod_1.z.number().nullish(),
|
|
1113
|
-
rejected: zod_1.z.number().nullish(),
|
|
1114
|
-
archived: zod_1.z.number().nullish()
|
|
1115
|
-
}).passthrough().nullish(),
|
|
1116
|
-
sandbox: zod_1.z.boolean().nullish(),
|
|
1117
|
-
context: exports.ContextObjectSchema.nullish(),
|
|
1118
|
-
ext: exports.ExtensionObjectSchema.nullish()
|
|
1119
|
-
}).passthrough();
|
|
1120
|
-
exports.PackageUpdateSchema = zod_1.z.object({
|
|
1121
|
-
package_id: zod_1.z.string().nullish(),
|
|
1122
|
-
buyer_ref: zod_1.z.string().nullish(),
|
|
1123
|
-
budget: zod_1.z.number().nullish(),
|
|
1124
|
-
pacing: exports.PacingSchema.nullish(),
|
|
1125
|
-
bid_price: zod_1.z.number().nullish(),
|
|
1126
|
-
impressions: zod_1.z.number().nullish(),
|
|
1127
|
-
start_time: zod_1.z.string().nullish(),
|
|
1128
|
-
end_time: zod_1.z.string().nullish(),
|
|
1129
|
-
paused: zod_1.z.boolean().nullish(),
|
|
1130
|
-
catalogs: zod_1.z.array(exports.CatalogSchema).nullish(),
|
|
1131
|
-
optimization_goals: zod_1.z.array(exports.OptimizationGoalSchema).nullish(),
|
|
1132
|
-
targeting_overlay: exports.TargetingOverlaySchema.nullish(),
|
|
1133
|
-
keyword_targets_add: zod_1.z.array(zod_1.z.object({
|
|
1134
|
-
keyword: zod_1.z.string(),
|
|
1135
|
-
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")]),
|
|
1136
|
-
bid_price: zod_1.z.number().nullish()
|
|
1137
|
-
}).passthrough()).nullish(),
|
|
1138
|
-
keyword_targets_remove: zod_1.z.array(zod_1.z.object({
|
|
1139
|
-
keyword: zod_1.z.string(),
|
|
1140
|
-
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
1141
|
-
}).passthrough()).nullish(),
|
|
1142
|
-
negative_keywords_add: zod_1.z.array(zod_1.z.object({
|
|
1143
|
-
keyword: zod_1.z.string(),
|
|
1144
|
-
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
1145
|
-
}).passthrough()).nullish(),
|
|
1146
|
-
negative_keywords_remove: zod_1.z.array(zod_1.z.object({
|
|
1147
|
-
keyword: zod_1.z.string(),
|
|
1148
|
-
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
1149
|
-
}).passthrough()).nullish(),
|
|
1150
|
-
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).nullish(),
|
|
1151
|
-
creatives: zod_1.z.array(exports.CreativeAssetSchema).nullish(),
|
|
1152
|
-
ext: exports.ExtensionObjectSchema.nullish()
|
|
1153
|
-
}).passthrough().and(zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.unknown(), zod_1.z.undefined()])));
|
|
1154
1059
|
exports.UpdateMediaBuySuccessSchema = zod_1.z.object({
|
|
1155
1060
|
media_buy_id: zod_1.z.string(),
|
|
1156
1061
|
buyer_ref: zod_1.z.string(),
|
|
@@ -1470,6 +1375,7 @@ exports.SyncAudiencesErrorSchema = zod_1.z.object({
|
|
|
1470
1375
|
context: exports.ContextObjectSchema.nullish(),
|
|
1471
1376
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1472
1377
|
}).passthrough();
|
|
1378
|
+
exports.ValidationModeSchema = zod_1.z.union([zod_1.z.literal("strict"), zod_1.z.literal("lenient")]);
|
|
1473
1379
|
exports.SyncCatalogsRequestSchema = zod_1.z.object({
|
|
1474
1380
|
account: exports.AccountReferenceSchema,
|
|
1475
1381
|
catalogs: zod_1.z.array(exports.CatalogSchema).nullish(),
|
|
@@ -1482,13 +1388,13 @@ exports.SyncCatalogsRequestSchema = zod_1.z.object({
|
|
|
1482
1388
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1483
1389
|
}).passthrough();
|
|
1484
1390
|
exports.SyncCatalogsResponseSchema = zod_1.z.union([exports.SyncCatalogsSuccessSchema, exports.SyncCatalogsErrorSchema]);
|
|
1485
|
-
exports.CreativeQualitySchema = zod_1.z.union([zod_1.z.literal("draft"), zod_1.z.literal("production")]);
|
|
1486
1391
|
exports.CreativeManifestSchema = zod_1.z.object({
|
|
1487
1392
|
format_id: exports.FormatIDSchema,
|
|
1488
1393
|
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.MarkdownAssetSchema, exports.BriefAssetSchema, exports.CatalogAssetSchema])),
|
|
1489
1394
|
provenance: exports.ProvenanceSchema.nullish(),
|
|
1490
1395
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1491
1396
|
}).passthrough();
|
|
1397
|
+
exports.CreativeQualitySchema = zod_1.z.union([zod_1.z.literal("draft"), zod_1.z.literal("production")]);
|
|
1492
1398
|
exports.BuildCreativeSuccessSchema = zod_1.z.object({
|
|
1493
1399
|
creative_manifest: exports.CreativeManifestSchema,
|
|
1494
1400
|
sandbox: zod_1.z.boolean().nullish(),
|
|
@@ -1496,18 +1402,14 @@ exports.BuildCreativeSuccessSchema = zod_1.z.object({
|
|
|
1496
1402
|
context: exports.ContextObjectSchema.nullish(),
|
|
1497
1403
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1498
1404
|
}).passthrough();
|
|
1499
|
-
exports.
|
|
1500
|
-
|
|
1405
|
+
exports.BuildCreativeMultiSuccessSchema = zod_1.z.object({
|
|
1406
|
+
creative_manifests: zod_1.z.array(exports.CreativeManifestSchema),
|
|
1407
|
+
sandbox: zod_1.z.boolean().nullish(),
|
|
1408
|
+
expires_at: zod_1.z.string().nullish(),
|
|
1501
1409
|
context: exports.ContextObjectSchema.nullish(),
|
|
1502
1410
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1503
1411
|
}).passthrough();
|
|
1504
1412
|
exports.PreviewOutputFormatSchema = zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]);
|
|
1505
|
-
exports.CreativeManifest1Schema = zod_1.z.object({
|
|
1506
|
-
format_id: exports.FormatIDSchema,
|
|
1507
|
-
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.MarkdownAssetSchema, exports.BriefAssetSchema, exports.CatalogAssetSchema])),
|
|
1508
|
-
provenance: exports.ProvenanceSchema.nullish(),
|
|
1509
|
-
ext: exports.ExtensionObjectSchema.nullish()
|
|
1510
|
-
}).passthrough();
|
|
1511
1413
|
exports.PreviewRenderSchema = zod_1.z.union([zod_1.z.object({
|
|
1512
1414
|
render_id: zod_1.z.string(),
|
|
1513
1415
|
output_format: zod_1.z.literal("url"),
|
|
@@ -1618,6 +1520,66 @@ exports.CreativeVariantSchema = exports.DeliveryMetricsSchema.and(zod_1.z.object
|
|
|
1618
1520
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1619
1521
|
}).passthrough().nullish()
|
|
1620
1522
|
}).passthrough());
|
|
1523
|
+
exports.CreativeSortFieldSchema = zod_1.z.union([zod_1.z.literal("created_date"), zod_1.z.literal("updated_date"), zod_1.z.literal("name"), zod_1.z.literal("status"), zod_1.z.literal("assignment_count")]);
|
|
1524
|
+
exports.SortDirectionSchema = zod_1.z.union([zod_1.z.literal("asc"), zod_1.z.literal("desc")]);
|
|
1525
|
+
exports.CreativeFiltersSchema = zod_1.z.object({
|
|
1526
|
+
accounts: zod_1.z.array(exports.AccountReferenceSchema).nullish(),
|
|
1527
|
+
format_types: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1528
|
+
statuses: zod_1.z.array(exports.CreativeStatusSchema).nullish(),
|
|
1529
|
+
tags: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1530
|
+
tags_any: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1531
|
+
name_contains: zod_1.z.string().nullish(),
|
|
1532
|
+
creative_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1533
|
+
created_after: zod_1.z.string().nullish(),
|
|
1534
|
+
created_before: zod_1.z.string().nullish(),
|
|
1535
|
+
updated_after: zod_1.z.string().nullish(),
|
|
1536
|
+
updated_before: zod_1.z.string().nullish(),
|
|
1537
|
+
assigned_to_packages: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1538
|
+
media_buy_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1539
|
+
buyer_refs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1540
|
+
unassigned: zod_1.z.boolean().nullish(),
|
|
1541
|
+
has_served: zod_1.z.boolean().nullish(),
|
|
1542
|
+
concept_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1543
|
+
format_ids: zod_1.z.array(exports.FormatIDSchema).nullish(),
|
|
1544
|
+
has_variables: zod_1.z.boolean().nullish()
|
|
1545
|
+
}).passthrough();
|
|
1546
|
+
exports.CreativeItemSchema = zod_1.z.union([zod_1.z.object({
|
|
1547
|
+
asset_kind: zod_1.z.literal("media"),
|
|
1548
|
+
asset_type: zod_1.z.string(),
|
|
1549
|
+
asset_id: zod_1.z.string(),
|
|
1550
|
+
content_uri: zod_1.z.string()
|
|
1551
|
+
}).passthrough(), zod_1.z.object({
|
|
1552
|
+
asset_kind: zod_1.z.literal("text"),
|
|
1553
|
+
asset_type: zod_1.z.string(),
|
|
1554
|
+
asset_id: zod_1.z.string(),
|
|
1555
|
+
content: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
1556
|
+
}).passthrough()]);
|
|
1557
|
+
exports.CreativeVariableSchema = zod_1.z.object({
|
|
1558
|
+
variable_id: zod_1.z.string(),
|
|
1559
|
+
name: zod_1.z.string(),
|
|
1560
|
+
variable_type: zod_1.z.union([zod_1.z.literal("text"), zod_1.z.literal("image"), zod_1.z.literal("video"), zod_1.z.literal("audio"), zod_1.z.literal("url"), zod_1.z.literal("number"), zod_1.z.literal("boolean"), zod_1.z.literal("color"), zod_1.z.literal("date")]),
|
|
1561
|
+
default_value: zod_1.z.string().nullish(),
|
|
1562
|
+
required: zod_1.z.boolean().nullish()
|
|
1563
|
+
}).passthrough();
|
|
1564
|
+
exports.SyncCreativesRequestSchema = zod_1.z.object({
|
|
1565
|
+
account: exports.AccountReferenceSchema,
|
|
1566
|
+
creatives: zod_1.z.array(exports.CreativeAssetSchema),
|
|
1567
|
+
creative_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1568
|
+
assignments: zod_1.z.array(zod_1.z.object({
|
|
1569
|
+
creative_id: zod_1.z.string(),
|
|
1570
|
+
package_id: zod_1.z.string(),
|
|
1571
|
+
weight: zod_1.z.number().nullish(),
|
|
1572
|
+
placement_ids: zod_1.z.array(zod_1.z.string()).nullish()
|
|
1573
|
+
}).passthrough()).nullish(),
|
|
1574
|
+
idempotency_key: zod_1.z.string().nullish(),
|
|
1575
|
+
delete_missing: zod_1.z.boolean().nullish(),
|
|
1576
|
+
dry_run: zod_1.z.boolean().nullish(),
|
|
1577
|
+
validation_mode: exports.ValidationModeSchema.nullish(),
|
|
1578
|
+
push_notification_config: exports.PushNotificationConfigSchema.nullish(),
|
|
1579
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
1580
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
1581
|
+
}).passthrough();
|
|
1582
|
+
exports.SyncCreativesResponseSchema = zod_1.z.union([exports.SyncCreativesSuccessSchema, exports.SyncCreativesErrorSchema]);
|
|
1621
1583
|
exports.DestinationSchema = zod_1.z.union([zod_1.z.object({
|
|
1622
1584
|
type: zod_1.z.literal("platform"),
|
|
1623
1585
|
platform: zod_1.z.string(),
|
|
@@ -2390,7 +2352,10 @@ exports.GetAdCPCapabilitiesResponseSchema = zod_1.z.object({
|
|
|
2390
2352
|
brand_url: zod_1.z.string().nullish()
|
|
2391
2353
|
}).passthrough().nullish(),
|
|
2392
2354
|
creative: zod_1.z.object({
|
|
2393
|
-
supports_compliance: zod_1.z.boolean().nullish()
|
|
2355
|
+
supports_compliance: zod_1.z.boolean().nullish(),
|
|
2356
|
+
has_creative_library: zod_1.z.boolean().nullish(),
|
|
2357
|
+
supports_generation: zod_1.z.boolean().nullish(),
|
|
2358
|
+
supports_transformation: zod_1.z.boolean().nullish()
|
|
2394
2359
|
}).passthrough().nullish(),
|
|
2395
2360
|
extensions_supported: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2396
2361
|
last_updated: zod_1.z.string().nullish(),
|
|
@@ -2417,6 +2382,7 @@ exports.SyncAccountsRequestSchema = zod_1.z.object({
|
|
|
2417
2382
|
brand: exports.BrandReferenceSchema,
|
|
2418
2383
|
operator: zod_1.z.string(),
|
|
2419
2384
|
billing: zod_1.z.union([zod_1.z.literal("operator"), zod_1.z.literal("agent")]),
|
|
2385
|
+
payment_terms: zod_1.z.union([zod_1.z.literal("net_15"), zod_1.z.literal("net_30"), zod_1.z.literal("net_45"), zod_1.z.literal("net_60"), zod_1.z.literal("net_90"), zod_1.z.literal("prepay")]).nullish(),
|
|
2420
2386
|
sandbox: zod_1.z.boolean().nullish()
|
|
2421
2387
|
}).passthrough()),
|
|
2422
2388
|
delete_missing: zod_1.z.boolean().nullish(),
|
|
@@ -2441,7 +2407,7 @@ exports.SyncAccountsSuccessSchema = zod_1.z.object({
|
|
|
2441
2407
|
expires_at: zod_1.z.string().nullish()
|
|
2442
2408
|
}).passthrough().nullish(),
|
|
2443
2409
|
rate_card: zod_1.z.string().nullish(),
|
|
2444
|
-
payment_terms: zod_1.z.
|
|
2410
|
+
payment_terms: zod_1.z.union([zod_1.z.literal("net_15"), zod_1.z.literal("net_30"), zod_1.z.literal("net_45"), zod_1.z.literal("net_60"), zod_1.z.literal("net_90"), zod_1.z.literal("prepay")]).nullish(),
|
|
2445
2411
|
credit_limit: zod_1.z.object({
|
|
2446
2412
|
amount: zod_1.z.number(),
|
|
2447
2413
|
currency: zod_1.z.string()
|
|
@@ -2508,7 +2474,7 @@ exports.GetAccountFinancialsSuccessSchema = zod_1.z.object({
|
|
|
2508
2474
|
}).passthrough().nullish()
|
|
2509
2475
|
}).passthrough().nullish(),
|
|
2510
2476
|
payment_status: zod_1.z.union([zod_1.z.literal("current"), zod_1.z.literal("past_due"), zod_1.z.literal("suspended")]).nullish(),
|
|
2511
|
-
payment_terms: zod_1.z.
|
|
2477
|
+
payment_terms: zod_1.z.union([zod_1.z.literal("net_15"), zod_1.z.literal("net_30"), zod_1.z.literal("net_45"), zod_1.z.literal("net_60"), zod_1.z.literal("net_90"), zod_1.z.literal("prepay")]).nullish(),
|
|
2512
2478
|
invoices: zod_1.z.array(zod_1.z.object({
|
|
2513
2479
|
invoice_id: zod_1.z.string(),
|
|
2514
2480
|
period: exports.DateRangeSchema.nullish(),
|
|
@@ -2600,6 +2566,7 @@ exports.GetProductsAsyncInputRequiredSchema = zod_1.z.object({
|
|
|
2600
2566
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2601
2567
|
}).passthrough();
|
|
2602
2568
|
exports.UpdateMediaBuyResponseSchema = zod_1.z.union([exports.UpdateMediaBuySuccessSchema, exports.UpdateMediaBuyErrorSchema]);
|
|
2569
|
+
exports.BuildCreativeResponseSchema = zod_1.z.union([exports.BuildCreativeSuccessSchema, exports.BuildCreativeMultiSuccessSchema, exports.BuildCreativeErrorSchema]);
|
|
2603
2570
|
exports.CreateMediaBuySuccessSchema = zod_1.z.object({
|
|
2604
2571
|
media_buy_id: zod_1.z.string(),
|
|
2605
2572
|
buyer_ref: zod_1.z.string(),
|
|
@@ -2701,49 +2668,38 @@ exports.PackageRequestSchema = zod_1.z.object({
|
|
|
2701
2668
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2702
2669
|
}).passthrough();
|
|
2703
2670
|
exports.CreateMediaBuyResponseSchema = zod_1.z.union([exports.CreateMediaBuySuccessSchema, exports.CreateMediaBuyErrorSchema]);
|
|
2704
|
-
exports.
|
|
2705
|
-
|
|
2706
|
-
creatives: zod_1.z.array(exports.CreativeAssetSchema),
|
|
2707
|
-
creative_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2708
|
-
assignments: zod_1.z.array(zod_1.z.object({
|
|
2709
|
-
creative_id: zod_1.z.string(),
|
|
2710
|
-
package_id: zod_1.z.string(),
|
|
2711
|
-
weight: zod_1.z.number().nullish(),
|
|
2712
|
-
placement_ids: zod_1.z.array(zod_1.z.string()).nullish()
|
|
2713
|
-
}).passthrough()).nullish(),
|
|
2714
|
-
idempotency_key: zod_1.z.string().nullish(),
|
|
2715
|
-
delete_missing: zod_1.z.boolean().nullish(),
|
|
2716
|
-
dry_run: zod_1.z.boolean().nullish(),
|
|
2717
|
-
validation_mode: exports.ValidationModeSchema.nullish(),
|
|
2718
|
-
push_notification_config: exports.PushNotificationConfigSchema.nullish(),
|
|
2719
|
-
context: exports.ContextObjectSchema.nullish(),
|
|
2720
|
-
ext: exports.ExtensionObjectSchema.nullish()
|
|
2721
|
-
}).passthrough();
|
|
2722
|
-
exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
2723
|
-
filters: exports.CreativeFiltersSchema.nullish(),
|
|
2724
|
-
sort: zod_1.z.object({
|
|
2725
|
-
field: exports.CreativeSortFieldSchema.nullish(),
|
|
2726
|
-
direction: exports.SortDirectionSchema.nullish()
|
|
2727
|
-
}).passthrough().nullish(),
|
|
2728
|
-
pagination: exports.PaginationRequestSchema.nullish(),
|
|
2729
|
-
include_assignments: zod_1.z.boolean().nullish(),
|
|
2730
|
-
include_performance: zod_1.z.boolean().nullish(),
|
|
2731
|
-
include_sub_assets: zod_1.z.boolean().nullish(),
|
|
2732
|
-
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")])).nullish(),
|
|
2733
|
-
context: exports.ContextObjectSchema.nullish(),
|
|
2734
|
-
ext: exports.ExtensionObjectSchema.nullish()
|
|
2735
|
-
}).passthrough();
|
|
2736
|
-
exports.UpdateMediaBuyRequestSchema = zod_1.z.object({
|
|
2737
|
-
media_buy_id: zod_1.z.string().nullish(),
|
|
2671
|
+
exports.PackageUpdateSchema = zod_1.z.object({
|
|
2672
|
+
package_id: zod_1.z.string().nullish(),
|
|
2738
2673
|
buyer_ref: zod_1.z.string().nullish(),
|
|
2739
|
-
|
|
2740
|
-
|
|
2674
|
+
budget: zod_1.z.number().nullish(),
|
|
2675
|
+
pacing: exports.PacingSchema.nullish(),
|
|
2676
|
+
bid_price: zod_1.z.number().nullish(),
|
|
2677
|
+
impressions: zod_1.z.number().nullish(),
|
|
2678
|
+
start_time: zod_1.z.string().nullish(),
|
|
2741
2679
|
end_time: zod_1.z.string().nullish(),
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2680
|
+
paused: zod_1.z.boolean().nullish(),
|
|
2681
|
+
catalogs: zod_1.z.array(exports.CatalogSchema).nullish(),
|
|
2682
|
+
optimization_goals: zod_1.z.array(exports.OptimizationGoalSchema).nullish(),
|
|
2683
|
+
targeting_overlay: exports.TargetingOverlaySchema.nullish(),
|
|
2684
|
+
keyword_targets_add: zod_1.z.array(zod_1.z.object({
|
|
2685
|
+
keyword: zod_1.z.string(),
|
|
2686
|
+
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")]),
|
|
2687
|
+
bid_price: zod_1.z.number().nullish()
|
|
2688
|
+
}).passthrough()).nullish(),
|
|
2689
|
+
keyword_targets_remove: zod_1.z.array(zod_1.z.object({
|
|
2690
|
+
keyword: zod_1.z.string(),
|
|
2691
|
+
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
2692
|
+
}).passthrough()).nullish(),
|
|
2693
|
+
negative_keywords_add: zod_1.z.array(zod_1.z.object({
|
|
2694
|
+
keyword: zod_1.z.string(),
|
|
2695
|
+
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
2696
|
+
}).passthrough()).nullish(),
|
|
2697
|
+
negative_keywords_remove: zod_1.z.array(zod_1.z.object({
|
|
2698
|
+
keyword: zod_1.z.string(),
|
|
2699
|
+
match_type: zod_1.z.union([zod_1.z.literal("broad"), zod_1.z.literal("phrase"), zod_1.z.literal("exact")])
|
|
2700
|
+
}).passthrough()).nullish(),
|
|
2701
|
+
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).nullish(),
|
|
2702
|
+
creatives: zod_1.z.array(exports.CreativeAssetSchema).nullish(),
|
|
2747
2703
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2748
2704
|
}).passthrough().and(zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.unknown(), zod_1.z.undefined()])));
|
|
2749
2705
|
exports.GetMediaBuysResponseSchema = zod_1.z.object({
|
|
@@ -2906,14 +2862,23 @@ exports.SyncAudiencesResponseSchema = zod_1.z.union([exports.SyncAudiencesSucces
|
|
|
2906
2862
|
exports.BuildCreativeRequestSchema = zod_1.z.object({
|
|
2907
2863
|
message: zod_1.z.string().nullish(),
|
|
2908
2864
|
creative_manifest: exports.CreativeManifestSchema.nullish(),
|
|
2909
|
-
|
|
2865
|
+
creative_id: zod_1.z.string().nullish(),
|
|
2866
|
+
concept_id: zod_1.z.string().nullish(),
|
|
2867
|
+
media_buy_id: zod_1.z.string().nullish(),
|
|
2868
|
+
package_id: zod_1.z.string().nullish(),
|
|
2869
|
+
target_format_id: exports.FormatIDSchema.nullish(),
|
|
2870
|
+
target_format_ids: zod_1.z.array(exports.FormatIDSchema).nullish(),
|
|
2910
2871
|
brand: exports.BrandReferenceSchema.nullish(),
|
|
2911
2872
|
quality: exports.CreativeQualitySchema.nullish(),
|
|
2912
2873
|
item_limit: zod_1.z.number().nullish(),
|
|
2874
|
+
macro_values: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()])).nullish(),
|
|
2913
2875
|
context: exports.ContextObjectSchema.nullish(),
|
|
2914
2876
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2915
|
-
}).passthrough()
|
|
2916
|
-
|
|
2877
|
+
}).passthrough().and(zod_1.z.union([zod_1.z.object({
|
|
2878
|
+
target_format_ids: zod_1.z.never().optional()
|
|
2879
|
+
}).passthrough(), zod_1.z.object({
|
|
2880
|
+
target_format_id: zod_1.z.never().optional()
|
|
2881
|
+
}).passthrough()]));
|
|
2917
2882
|
exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
2918
2883
|
request_type: zod_1.z.literal("single"),
|
|
2919
2884
|
format_id: exports.FormatIDSchema.nullish(),
|
|
@@ -2932,7 +2897,7 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
2932
2897
|
request_type: zod_1.z.literal("batch"),
|
|
2933
2898
|
requests: zod_1.z.array(zod_1.z.object({
|
|
2934
2899
|
format_id: exports.FormatIDSchema.nullish(),
|
|
2935
|
-
creative_manifest: exports.
|
|
2900
|
+
creative_manifest: exports.CreativeManifestSchema,
|
|
2936
2901
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
2937
2902
|
name: zod_1.z.string(),
|
|
2938
2903
|
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()])).nullish(),
|
|
@@ -2987,6 +2952,75 @@ exports.GetCreativeDeliveryResponseSchema = zod_1.z.object({
|
|
|
2987
2952
|
context: exports.ContextObjectSchema.nullish(),
|
|
2988
2953
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2989
2954
|
}).passthrough();
|
|
2955
|
+
exports.ListCreativesRequestSchema = zod_1.z.object({
|
|
2956
|
+
filters: exports.CreativeFiltersSchema.nullish(),
|
|
2957
|
+
sort: zod_1.z.object({
|
|
2958
|
+
field: exports.CreativeSortFieldSchema.nullish(),
|
|
2959
|
+
direction: exports.SortDirectionSchema.nullish()
|
|
2960
|
+
}).passthrough().nullish(),
|
|
2961
|
+
pagination: exports.PaginationRequestSchema.nullish(),
|
|
2962
|
+
include_assignments: zod_1.z.boolean().nullish(),
|
|
2963
|
+
include_snapshot: zod_1.z.boolean().nullish(),
|
|
2964
|
+
include_items: zod_1.z.boolean().nullish(),
|
|
2965
|
+
include_variables: zod_1.z.boolean().nullish(),
|
|
2966
|
+
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_id"), 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("snapshot"), zod_1.z.literal("items"), zod_1.z.literal("variables"), zod_1.z.literal("concept")])).nullish(),
|
|
2967
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
2968
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
2969
|
+
}).passthrough();
|
|
2970
|
+
exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
2971
|
+
query_summary: zod_1.z.object({
|
|
2972
|
+
total_matching: zod_1.z.number(),
|
|
2973
|
+
returned: zod_1.z.number(),
|
|
2974
|
+
filters_applied: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2975
|
+
sort_applied: zod_1.z.object({
|
|
2976
|
+
field: zod_1.z.string().nullish(),
|
|
2977
|
+
direction: exports.SortDirectionSchema.nullish()
|
|
2978
|
+
}).passthrough().nullish()
|
|
2979
|
+
}).passthrough(),
|
|
2980
|
+
pagination: exports.PaginationResponseSchema,
|
|
2981
|
+
creatives: zod_1.z.array(zod_1.z.object({
|
|
2982
|
+
creative_id: zod_1.z.string(),
|
|
2983
|
+
account: exports.AccountSchema.nullish(),
|
|
2984
|
+
name: zod_1.z.string(),
|
|
2985
|
+
format_id: exports.FormatIDSchema,
|
|
2986
|
+
status: exports.CreativeStatusSchema,
|
|
2987
|
+
created_date: zod_1.z.string(),
|
|
2988
|
+
updated_date: zod_1.z.string(),
|
|
2989
|
+
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.MarkdownAssetSchema, exports.BriefAssetSchema, exports.CatalogAssetSchema])).nullish(),
|
|
2990
|
+
tags: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2991
|
+
concept_id: zod_1.z.string().nullish(),
|
|
2992
|
+
concept_name: zod_1.z.string().nullish(),
|
|
2993
|
+
variables: zod_1.z.array(exports.CreativeVariableSchema).nullish(),
|
|
2994
|
+
assignments: zod_1.z.object({
|
|
2995
|
+
assignment_count: zod_1.z.number(),
|
|
2996
|
+
assigned_packages: zod_1.z.array(zod_1.z.object({
|
|
2997
|
+
package_id: zod_1.z.string(),
|
|
2998
|
+
buyer_ref: zod_1.z.string().nullish(),
|
|
2999
|
+
assigned_date: zod_1.z.string()
|
|
3000
|
+
}).passthrough()).nullish()
|
|
3001
|
+
}).passthrough().nullish(),
|
|
3002
|
+
snapshot: zod_1.z.object({
|
|
3003
|
+
as_of: zod_1.z.string(),
|
|
3004
|
+
staleness_seconds: zod_1.z.number(),
|
|
3005
|
+
impressions: zod_1.z.number(),
|
|
3006
|
+
last_served: zod_1.z.string().nullish()
|
|
3007
|
+
}).passthrough().nullish(),
|
|
3008
|
+
snapshot_unavailable_reason: zod_1.z.union([zod_1.z.literal("SNAPSHOT_UNSUPPORTED"), zod_1.z.literal("SNAPSHOT_TEMPORARILY_UNAVAILABLE"), zod_1.z.literal("SNAPSHOT_PERMISSION_DENIED")]).nullish(),
|
|
3009
|
+
items: zod_1.z.array(exports.CreativeItemSchema).nullish()
|
|
3010
|
+
}).passthrough()),
|
|
3011
|
+
format_summary: zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.number(), zod_1.z.undefined()])).nullish(),
|
|
3012
|
+
status_summary: zod_1.z.object({
|
|
3013
|
+
processing: zod_1.z.number().nullish(),
|
|
3014
|
+
approved: zod_1.z.number().nullish(),
|
|
3015
|
+
pending_review: zod_1.z.number().nullish(),
|
|
3016
|
+
rejected: zod_1.z.number().nullish(),
|
|
3017
|
+
archived: zod_1.z.number().nullish()
|
|
3018
|
+
}).passthrough().nullish(),
|
|
3019
|
+
errors: zod_1.z.array(exports.ErrorSchema).nullish(),
|
|
3020
|
+
sandbox: zod_1.z.boolean().nullish(),
|
|
3021
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
3022
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
3023
|
+
}).passthrough();
|
|
2990
3024
|
exports.GetSignalsRequestSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.unknown(), zod_1.z.undefined()])).and(zod_1.z.object({
|
|
2991
3025
|
account: exports.AccountReferenceSchema.nullish(),
|
|
2992
3026
|
buyer_campaign_ref: zod_1.z.string().nullish(),
|
|
@@ -3074,7 +3108,7 @@ exports.GetAccountFinancialsRequestSchema = zod_1.z.object({
|
|
|
3074
3108
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3075
3109
|
}).passthrough();
|
|
3076
3110
|
exports.GetAccountFinancialsResponseSchema = zod_1.z.union([exports.GetAccountFinancialsSuccessSchema, exports.GetAccountFinancialsErrorSchema]);
|
|
3077
|
-
exports.AdCPAsyncResponseDataSchema = zod_1.z.union([exports.GetProductsResponseSchema, exports.GetProductsAsyncWorkingSchema, exports.GetProductsAsyncInputRequiredSchema, exports.GetProductsAsyncSubmittedSchema, exports.CreateMediaBuyResponseSchema, exports.CreateMediaBuyAsyncWorkingSchema, exports.CreateMediaBuyAsyncInputRequiredSchema, exports.CreateMediaBuyAsyncSubmittedSchema, exports.UpdateMediaBuyResponseSchema, exports.UpdateMediaBuyAsyncWorkingSchema, exports.UpdateMediaBuyAsyncInputRequiredSchema, exports.UpdateMediaBuyAsyncSubmittedSchema, exports.SyncCreativesResponseSchema, exports.SyncCreativesAsyncWorkingSchema, exports.SyncCreativesAsyncInputRequiredSchema, exports.SyncCreativesAsyncSubmittedSchema, exports.SyncCatalogsResponseSchema, exports.SyncCatalogsAsyncWorkingSchema, exports.SyncCatalogsAsyncInputRequiredSchema, exports.SyncCatalogsAsyncSubmittedSchema]);
|
|
3111
|
+
exports.AdCPAsyncResponseDataSchema = zod_1.z.union([exports.GetProductsResponseSchema, exports.GetProductsAsyncWorkingSchema, exports.GetProductsAsyncInputRequiredSchema, exports.GetProductsAsyncSubmittedSchema, exports.CreateMediaBuyResponseSchema, exports.CreateMediaBuyAsyncWorkingSchema, exports.CreateMediaBuyAsyncInputRequiredSchema, exports.CreateMediaBuyAsyncSubmittedSchema, exports.UpdateMediaBuyResponseSchema, exports.UpdateMediaBuyAsyncWorkingSchema, exports.UpdateMediaBuyAsyncInputRequiredSchema, exports.UpdateMediaBuyAsyncSubmittedSchema, exports.BuildCreativeResponseSchema, exports.BuildCreativeAsyncWorkingSchema, exports.BuildCreativeAsyncInputRequiredSchema, exports.BuildCreativeAsyncSubmittedSchema, exports.SyncCreativesResponseSchema, exports.SyncCreativesAsyncWorkingSchema, exports.SyncCreativesAsyncInputRequiredSchema, exports.SyncCreativesAsyncSubmittedSchema, exports.SyncCatalogsResponseSchema, exports.SyncCatalogsAsyncWorkingSchema, exports.SyncCatalogsAsyncInputRequiredSchema, exports.SyncCatalogsAsyncSubmittedSchema]);
|
|
3078
3112
|
exports.MCPWebhookPayloadSchema = zod_1.z.object({
|
|
3079
3113
|
operation_id: zod_1.z.string().nullish(),
|
|
3080
3114
|
task_id: zod_1.z.string(),
|
|
@@ -3197,6 +3231,19 @@ exports.CreateMediaBuyRequestSchema = zod_1.z.object({
|
|
|
3197
3231
|
context: exports.ContextObjectSchema.nullish(),
|
|
3198
3232
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3199
3233
|
}).passthrough();
|
|
3234
|
+
exports.UpdateMediaBuyRequestSchema = zod_1.z.object({
|
|
3235
|
+
media_buy_id: zod_1.z.string().nullish(),
|
|
3236
|
+
buyer_ref: zod_1.z.string().nullish(),
|
|
3237
|
+
paused: zod_1.z.boolean().nullish(),
|
|
3238
|
+
start_time: exports.StartTimingSchema.nullish(),
|
|
3239
|
+
end_time: zod_1.z.string().nullish(),
|
|
3240
|
+
packages: zod_1.z.array(exports.PackageUpdateSchema).nullish(),
|
|
3241
|
+
reporting_webhook: exports.ReportingWebhookSchema.nullish(),
|
|
3242
|
+
push_notification_config: exports.PushNotificationConfigSchema.nullish(),
|
|
3243
|
+
idempotency_key: zod_1.z.string().nullish(),
|
|
3244
|
+
context: exports.ContextObjectSchema.nullish(),
|
|
3245
|
+
ext: exports.ExtensionObjectSchema.nullish()
|
|
3246
|
+
}).passthrough().and(zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.z.unknown(), zod_1.z.undefined()])));
|
|
3200
3247
|
exports.LogEventRequestSchema = zod_1.z.object({
|
|
3201
3248
|
event_source_id: zod_1.z.string(),
|
|
3202
3249
|
test_event_code: zod_1.z.string().nullish(),
|