@adcp/client 4.11.0 → 4.13.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/README.md +13 -0
- package/bin/adcp.js +77 -182
- package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
- package/dist/lib/core/AgentClient.d.ts +8 -6
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/core/AgentClient.js.map +1 -1
- package/dist/lib/core/GovernanceMiddleware.d.ts.map +1 -1
- package/dist/lib/core/GovernanceMiddleware.js +2 -1
- package/dist/lib/core/GovernanceMiddleware.js.map +1 -1
- package/dist/lib/core/ProtocolResponseParser.d.ts.map +1 -1
- package/dist/lib/core/ProtocolResponseParser.js +3 -1
- package/dist/lib/core/ProtocolResponseParser.js.map +1 -1
- package/dist/lib/core/SingleAgentClient.d.ts +18 -13
- package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
- package/dist/lib/core/SingleAgentClient.js +51 -33
- 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 +13 -5
- package/dist/lib/core/TaskExecutor.js.map +1 -1
- package/dist/lib/errors/index.d.ts +5 -5
- package/dist/lib/errors/index.d.ts.map +1 -1
- package/dist/lib/errors/index.js +3 -1
- package/dist/lib/errors/index.js.map +1 -1
- package/dist/lib/index.d.ts +6 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +30 -9
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/protocols/a2a.d.ts +2 -1
- package/dist/lib/protocols/a2a.d.ts.map +1 -1
- package/dist/lib/protocols/a2a.js +24 -10
- package/dist/lib/protocols/a2a.js.map +1 -1
- package/dist/lib/protocols/index.d.ts +5 -5
- package/dist/lib/protocols/index.d.ts.map +1 -1
- package/dist/lib/protocols/index.js +2 -1
- package/dist/lib/protocols/index.js.map +1 -1
- package/dist/lib/protocols/mcp.d.ts +22 -9
- package/dist/lib/protocols/mcp.d.ts.map +1 -1
- package/dist/lib/protocols/mcp.js +205 -75
- package/dist/lib/protocols/mcp.js.map +1 -1
- package/dist/lib/server/errors.d.ts +62 -0
- package/dist/lib/server/errors.d.ts.map +1 -0
- package/dist/lib/server/errors.js +54 -0
- package/dist/lib/server/errors.js.map +1 -0
- package/dist/lib/server/index.d.ts +5 -0
- package/dist/lib/server/index.d.ts.map +1 -0
- package/dist/lib/server/index.js +11 -0
- package/dist/lib/server/index.js.map +1 -0
- package/dist/lib/server/responses.d.ts +64 -0
- package/dist/lib/server/responses.d.ts.map +1 -0
- package/dist/lib/server/responses.js +85 -0
- package/dist/lib/server/responses.js.map +1 -0
- 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 +19 -1
- package/dist/lib/testing/agent-tester.js.map +1 -1
- package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
- package/dist/lib/testing/compliance/comply.js +38 -0
- package/dist/lib/testing/compliance/comply.js.map +1 -1
- package/dist/lib/testing/compliance/index.d.ts +1 -1
- package/dist/lib/testing/compliance/index.d.ts.map +1 -1
- package/dist/lib/testing/compliance/index.js +2 -1
- package/dist/lib/testing/compliance/index.js.map +1 -1
- package/dist/lib/testing/compliance/profiles.d.ts +7 -0
- package/dist/lib/testing/compliance/profiles.d.ts.map +1 -1
- package/dist/lib/testing/compliance/profiles.js +10 -0
- package/dist/lib/testing/compliance/profiles.js.map +1 -1
- package/dist/lib/testing/compliance/types.d.ts +2 -2
- package/dist/lib/testing/compliance/types.d.ts.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 +2 -1
- 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 +7 -0
- package/dist/lib/testing/orchestrator.js.map +1 -1
- package/dist/lib/testing/scenarios/capabilities.js.map +1 -1
- package/dist/lib/testing/scenarios/creative.js +1 -1
- package/dist/lib/testing/scenarios/creative.js.map +1 -1
- package/dist/lib/testing/scenarios/edge-cases.js.map +1 -1
- package/dist/lib/testing/scenarios/error-compliance.d.ts +30 -0
- package/dist/lib/testing/scenarios/error-compliance.d.ts.map +1 -0
- package/dist/lib/testing/scenarios/error-compliance.js +382 -0
- package/dist/lib/testing/scenarios/error-compliance.js.map +1 -0
- package/dist/lib/testing/scenarios/governance.js.map +1 -1
- package/dist/lib/testing/scenarios/index.d.ts +1 -0
- package/dist/lib/testing/scenarios/index.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/index.js +6 -1
- package/dist/lib/testing/scenarios/index.js.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.js +23 -1
- package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
- package/dist/lib/testing/scenarios/signals.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/signals.js +20 -21
- package/dist/lib/testing/scenarios/signals.js.map +1 -1
- package/dist/lib/testing/scenarios/sponsored-intelligence.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/adcp.d.ts +9 -4
- package/dist/lib/types/adcp.d.ts.map +1 -1
- package/dist/lib/types/core.generated.d.ts +25 -2
- 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 +371 -330
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +78 -84
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +131 -122
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/utils/a2a-discovery.d.ts +32 -0
- package/dist/lib/utils/a2a-discovery.d.ts.map +1 -0
- package/dist/lib/utils/a2a-discovery.js +55 -0
- package/dist/lib/utils/a2a-discovery.js.map +1 -0
- 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 +17 -8
- package/dist/lib/utils/capabilities.js.map +1 -1
- package/dist/lib/utils/creative-adapter.d.ts.map +1 -1
- package/dist/lib/utils/creative-adapter.js.map +1 -1
- package/dist/lib/utils/error-extraction.d.ts +57 -0
- package/dist/lib/utils/error-extraction.d.ts.map +1 -0
- package/dist/lib/utils/error-extraction.js +174 -0
- package/dist/lib/utils/error-extraction.js.map +1 -0
- package/dist/lib/utils/index.d.ts +3 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +14 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/logger.d.ts +8 -8
- package/dist/lib/utils/logger.d.ts.map +1 -1
- package/dist/lib/utils/logger.js.map +1 -1
- package/dist/lib/utils/preview-utils.d.ts.map +1 -1
- package/dist/lib/utils/preview-utils.js +32 -16
- package/dist/lib/utils/preview-utils.js.map +1 -1
- package/dist/lib/utils/pricing-adapter.d.ts.map +1 -1
- package/dist/lib/utils/pricing-adapter.js +13 -1
- package/dist/lib/utils/pricing-adapter.js.map +1 -1
- package/dist/lib/utils/protocol-detection.d.ts +1 -1
- package/dist/lib/utils/protocol-detection.d.ts.map +1 -1
- package/dist/lib/utils/protocol-detection.js +25 -47
- package/dist/lib/utils/protocol-detection.js.map +1 -1
- package/dist/lib/utils/request-normalizer.d.ts.map +1 -1
- package/dist/lib/utils/request-normalizer.js +15 -1
- package/dist/lib/utils/request-normalizer.js.map +1 -1
- package/dist/lib/utils/response-unwrapper.d.ts.map +1 -1
- package/dist/lib/utils/response-unwrapper.js +61 -5
- package/dist/lib/utils/response-unwrapper.js.map +1 -1
- package/dist/lib/validation/index.d.ts.map +1 -1
- package/dist/lib/validation/index.js +3 -2
- package/dist/lib/validation/index.js.map +1 -1
- package/package.json +19 -1
|
@@ -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-20T22:32:43.953Z
|
|
4
4
|
// Sources:
|
|
5
5
|
// - core.generated.ts (core types)
|
|
6
6
|
// - tools.generated.ts (tool types)
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// Generated using ts-to-zod from TypeScript type definitions
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
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.AuthenticationSchemeSchema = exports.BrandIDSchema = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.ListCreativeFormatsResponseSchema = exports.SISendMessageResponseSchema = exports.GetSignalsResponseSchema = exports.PreviewCreativeResponseSchema = void 0;
|
|
12
|
+
exports.TaskTypeSchema = exports.PropertySchema = exports.PropertyIdentifierTypesSchema = exports.PropertyTypeSchema = exports.AdInventoryConfigurationSchema = exports.TalentSchema = exports.SpecialSchema = exports.ContentRatingSchema = exports.GeographicBreakdownSupportSchema = exports.ForecastRangeSchema = exports.TimeBasedPricingOptionSchema = exports.DoohParametersSchema = exports.CPPPricingOptionSchema = exports.CPVPricingOptionSchema = exports.CPCVPricingOptionSchema = exports.CPCPricingOptionSchema = exports.VCPMPricingOptionSchema = exports.PriceGuidanceSchema = exports.ShowSelectorSchema = exports.CreativePolicySchema = exports.OutcomeMeasurementSchema = exports.PlacementSchema = exports.PublisherPropertySelectorSchema = exports.DerivativeTypeSchema = exports.TalentRoleSchema = exports.SpecialCategorySchema = exports.ContentRatingSystemSchema = exports.EpisodeStatusSchema = exports.ActionSourceSchema = exports.DataProviderSignalSelectorSchema = exports.LandingPageRequirementSchema = exports.CoBrandingRequirementSchema = exports.AvailableMetricSchema = exports.ReportingFrequencySchema = exports.ForecastMethodSchema = exports.ForecastRangeUnitSchema = exports.DemographicSystemSchema = exports.CPAPricingOptionSchema = exports.ExclusivitySchema = exports.DeliveryTypeSchema = exports.MediaChannelSchema = exports.PropertyTagSchema = exports.PropertyIDSchema = exports.ReferenceAssetSchema = exports.CatalogAssetSchema = exports.MarkdownAssetSchema = exports.DAASTAssetSchema = exports.CSSAssetSchema = exports.WebhookAssetSchema = exports.JavaScriptAssetSchema = void 0;
|
|
13
|
+
exports.EpisodeSchema = exports.ReportingCapabilitiesSchema = exports.PricingOptionSchema = exports.FlatRatePricingOptionSchema = exports.CPMPricingOptionSchema = exports.SignalTargetingSchema = exports.MediaBuyFeaturesSchema = exports.PaginationRequestSchema = exports.SignalIDSchema = exports.GeographicTargetingLevelSchema = exports.FormatCategorySchema = 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.RightsConstraintSchema = exports.UpdateMediaBuyAsyncSubmittedSchema = exports.UpdateMediaBuyAsyncInputRequiredSchema = exports.UpdateMediaBuyAsyncWorkingSchema = exports.UpdateMediaBuyErrorSchema = exports.CreateMediaBuyAsyncSubmittedSchema = exports.CreateMediaBuyAsyncInputRequiredSchema = exports.CreateMediaBuyAsyncWorkingSchema = exports.CreateMediaBuyErrorSchema = exports.PlannedDeliverySchema = exports.AccountSchema = exports.GetProductsAsyncSubmittedSchema = exports.GetProductsAsyncWorkingSchema = exports.ContextObjectSchema = exports.PaginationResponseSchema = exports.ErrorSchema = exports.CatalogItemStatusSchema = exports.CatalogActionSchema = exports.CreativeActionSchema = exports.PreviewRenderSchema = exports.RightTypeSchema = exports.RightUseSchema = exports.TaskStatusSchema = exports.AdCPDomainSchema = void 0;
|
|
14
|
+
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 = exports.PackageSchema = exports.BriefAssetSchema = exports.TargetingOverlaySchema = exports.ReportingWebhookSchema = exports.PushNotificationConfigSchema = exports.StartTimingSchema = exports.CreativeBriefSchema = exports.BaseGroupAssetSchema = exports.OverlaySchema = exports.CreativeAgentCapabilitySchema = exports.FormatIDParameterSchema = exports.ListCreativeFormatsRequestSchema = exports.WCAGLevelSchema = exports.AssetContentTypeSchema = exports.ProductAllocationSchema = exports.DeliveryForecastSchema = exports.ForecastPointSchema = void 0;
|
|
15
|
+
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 = exports.CreativeItemSchema = exports.CreativeFiltersSchema = exports.SortDirectionSchema = exports.CreativeSortFieldSchema = exports.CreativeVariantSchema = exports.IdentifierSchema = exports.GetCreativeDeliveryRequestSchema = exports.PreviewBatchResultErrorSchema = exports.PreviewBatchResultSuccessSchema = exports.PreviewCreativeVariantResponseSchema = exports.PreviewCreativeSingleResponseSchema = exports.PreviewCreativeRequestSchema = exports.BuildCreativeMultiSuccessSchema = exports.BuildCreativeSuccessSchema = exports.CreativeManifestSchema = exports.PreviewOutputFormatSchema = exports.CreativeQualitySchema = void 0;
|
|
16
|
+
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 = exports.SIIdentitySchema = exports.SIGetOfferingResponseSchema = exports.SIGetOfferingRequestSchema = exports.CheckGovernanceResponseSchema = exports.GovernanceContextSchema = exports.GovernancePhaseSchema = exports.GetPlanAuditLogsResponseSchema = exports.GetPlanAuditLogsRequestSchema = exports.ReportPlanOutcomeResponseSchema = exports.EscalationSeveritySchema = exports.ReportPlanOutcomeRequestSchema = exports.OutcomeTypeSchema = exports.SyncPlansResponseSchema = exports.PolicyEnforcementLevelSchema = exports.SyncPlansRequestSchema = exports.GovernanceModeSchema = exports.DelegationAuthoritySchema = exports.BudgetAuthorityLevelSchema = 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 = void 0;
|
|
17
|
+
exports.CreateMediaBuyRequestSchema = exports.FormatSchema = exports.GetProductsRequestSchema = exports.MCPWebhookPayloadSchema = exports.AdCPAsyncResponseDataSchema = exports.GetAccountFinancialsResponseSchema = exports.GetAccountFinancialsRequestSchema = exports.SyncAccountsResponseSchema = exports.A2UISurfaceSchema = exports.SIInitiateSessionRequestSchema = exports.CheckGovernanceRequestSchema = exports.GetCreativeFeaturesResponseSchema = exports.UpdateContentStandardsResponseSchema = exports.GetContentStandardsResponseSchema = exports.ListContentStandardsResponseSchema = exports.UpdatePropertyListResponseSchema = exports.CreatePropertyListResponseSchema = exports.CreatePropertyListRequestSchema = exports.ActivateSignalResponseSchema = exports.SignalPricingOptionSchema = exports.SignalPricingSchema = exports.GetSignalsRequestSchema = exports.ListCreativesResponseSchema = exports.ListCreativesRequestSchema = exports.GetCreativeDeliveryResponseSchema = exports.PreviewCreativeBatchResponseSchema = 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 = void 0;
|
|
18
|
+
exports.ListCreativeFormatsResponseSchema = exports.SISendMessageResponseSchema = exports.GetSignalsResponseSchema = exports.PreviewCreativeResponseSchema = exports.LogEventRequestSchema = exports.UpdateMediaBuyRequestSchema = void 0;
|
|
19
19
|
// Generated by ts-to-zod
|
|
20
20
|
const zod_1 = require("zod");
|
|
21
21
|
exports.BrandIDSchema = zod_1.z.string();
|
|
@@ -42,7 +42,7 @@ exports.OptimizationGoalSchema = zod_1.z.union([zod_1.z.object({
|
|
|
42
42
|
kind: zod_1.z.literal("metric"),
|
|
43
43
|
metric: zod_1.z.union([zod_1.z.literal("clicks"), zod_1.z.literal("views"), zod_1.z.literal("completed_views"), zod_1.z.literal("viewed_seconds"), zod_1.z.literal("attention_seconds"), zod_1.z.literal("attention_score"), zod_1.z.literal("engagements"), zod_1.z.literal("follows"), zod_1.z.literal("saves"), zod_1.z.literal("profile_visits"), zod_1.z.literal("reach")]),
|
|
44
44
|
reach_unit: exports.ReachUnitSchema.nullish(),
|
|
45
|
-
target_frequency: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
45
|
+
target_frequency: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullish(),
|
|
46
46
|
view_duration_seconds: zod_1.z.number().nullish(),
|
|
47
47
|
target: zod_1.z.union([zod_1.z.object({
|
|
48
48
|
kind: zod_1.z.literal("cost_per"),
|
|
@@ -97,13 +97,13 @@ exports.CatalogFieldMappingSchema = zod_1.z.object({
|
|
|
97
97
|
feed_field: zod_1.z.string().nullish(),
|
|
98
98
|
catalog_field: zod_1.z.string().nullish(),
|
|
99
99
|
asset_group_id: zod_1.z.string().nullish(),
|
|
100
|
-
value: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
100
|
+
value: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullish(),
|
|
101
101
|
transform: zod_1.z.union([zod_1.z.literal("date"), zod_1.z.literal("divide"), zod_1.z.literal("boolean"), zod_1.z.literal("split")]).nullish(),
|
|
102
102
|
format: zod_1.z.string().nullish(),
|
|
103
103
|
timezone: zod_1.z.string().nullish(),
|
|
104
104
|
by: zod_1.z.number().nullish(),
|
|
105
105
|
separator: zod_1.z.string().nullish(),
|
|
106
|
-
default: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
106
|
+
default: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullish(),
|
|
107
107
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
108
108
|
}).passthrough();
|
|
109
109
|
exports.DaypartTargetSchema = zod_1.z.object({
|
|
@@ -112,13 +112,13 @@ exports.DaypartTargetSchema = zod_1.z.object({
|
|
|
112
112
|
end_hour: zod_1.z.number(),
|
|
113
113
|
label: zod_1.z.string().nullish()
|
|
114
114
|
}).passthrough();
|
|
115
|
-
exports.FrequencyCapSchema = zod_1.z.
|
|
115
|
+
exports.FrequencyCapSchema = zod_1.z.object({
|
|
116
116
|
suppress: exports.DurationSchema.nullish(),
|
|
117
117
|
suppress_minutes: zod_1.z.number().nullish(),
|
|
118
118
|
max_impressions: zod_1.z.number().nullish(),
|
|
119
119
|
per: exports.ReachUnitSchema.nullish(),
|
|
120
120
|
window: exports.DurationSchema.nullish()
|
|
121
|
-
}).passthrough()
|
|
121
|
+
}).passthrough();
|
|
122
122
|
exports.PropertyListReferenceSchema = zod_1.z.object({
|
|
123
123
|
agent_url: zod_1.z.string(),
|
|
124
124
|
list_id: zod_1.z.string(),
|
|
@@ -393,7 +393,8 @@ exports.DataProviderSignalSelectorSchema = zod_1.z.union([zod_1.z.object({
|
|
|
393
393
|
exports.ActionSourceSchema = zod_1.z.union([zod_1.z.literal("website"), zod_1.z.literal("app"), zod_1.z.literal("offline"), zod_1.z.literal("phone_call"), zod_1.z.literal("chat"), zod_1.z.literal("email"), zod_1.z.literal("in_store"), zod_1.z.literal("system_generated"), zod_1.z.literal("other")]);
|
|
394
394
|
exports.EpisodeStatusSchema = zod_1.z.union([zod_1.z.literal("scheduled"), zod_1.z.literal("tentative"), zod_1.z.literal("live"), zod_1.z.literal("postponed"), zod_1.z.literal("cancelled"), zod_1.z.literal("aired"), zod_1.z.literal("published")]);
|
|
395
395
|
exports.ContentRatingSystemSchema = zod_1.z.union([zod_1.z.literal("tv_parental"), zod_1.z.literal("mpaa"), zod_1.z.literal("podcast"), zod_1.z.literal("esrb"), zod_1.z.literal("bbfc"), zod_1.z.literal("fsk"), zod_1.z.literal("acb"), zod_1.z.literal("custom")]);
|
|
396
|
-
exports.
|
|
396
|
+
exports.SpecialCategorySchema = zod_1.z.union([zod_1.z.literal("awards"), zod_1.z.literal("championship"), zod_1.z.literal("concert"), zod_1.z.literal("conference"), zod_1.z.literal("election"), zod_1.z.literal("festival"), zod_1.z.literal("gala"), zod_1.z.literal("holiday"), zod_1.z.literal("premiere"), zod_1.z.literal("product_launch"), zod_1.z.literal("reunion"), zod_1.z.literal("tribute")]);
|
|
397
|
+
exports.TalentRoleSchema = zod_1.z.union([zod_1.z.literal("host"), zod_1.z.literal("guest"), zod_1.z.literal("creator"), zod_1.z.literal("cast"), zod_1.z.literal("narrator"), zod_1.z.literal("producer"), zod_1.z.literal("correspondent"), zod_1.z.literal("commentator"), zod_1.z.literal("analyst")]);
|
|
397
398
|
exports.DerivativeTypeSchema = zod_1.z.union([zod_1.z.literal("clip"), zod_1.z.literal("highlight"), zod_1.z.literal("recap"), zod_1.z.literal("trailer"), zod_1.z.literal("bonus")]);
|
|
398
399
|
exports.PublisherPropertySelectorSchema = zod_1.z.union([zod_1.z.object({
|
|
399
400
|
publisher_domain: zod_1.z.string(),
|
|
@@ -526,13 +527,19 @@ exports.ForecastRangeSchema = zod_1.z.object({
|
|
|
526
527
|
exports.GeographicBreakdownSupportSchema = zod_1.z.object({
|
|
527
528
|
country: zod_1.z.boolean().nullish(),
|
|
528
529
|
region: zod_1.z.boolean().nullish(),
|
|
529
|
-
metro: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
530
|
-
postal_area: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
530
|
+
metro: zod_1.z.record(zod_1.z.string(), zod_1.z.boolean()).nullish(),
|
|
531
|
+
postal_area: zod_1.z.record(zod_1.z.string(), zod_1.z.boolean()).nullish()
|
|
531
532
|
}).passthrough();
|
|
532
533
|
exports.ContentRatingSchema = zod_1.z.object({
|
|
533
534
|
system: exports.ContentRatingSystemSchema,
|
|
534
535
|
rating: zod_1.z.string()
|
|
535
536
|
}).passthrough();
|
|
537
|
+
exports.SpecialSchema = zod_1.z.object({
|
|
538
|
+
name: zod_1.z.string(),
|
|
539
|
+
category: exports.SpecialCategorySchema.nullish(),
|
|
540
|
+
starts: zod_1.z.string().nullish(),
|
|
541
|
+
ends: zod_1.z.string().nullish()
|
|
542
|
+
}).passthrough();
|
|
536
543
|
exports.TalentSchema = zod_1.z.object({
|
|
537
544
|
role: exports.TalentRoleSchema,
|
|
538
545
|
name: zod_1.z.string(),
|
|
@@ -787,7 +794,7 @@ exports.SyncCreativesSuccessSchema = zod_1.z.object({
|
|
|
787
794
|
preview_url: zod_1.z.string().nullish(),
|
|
788
795
|
expires_at: zod_1.z.string().nullish(),
|
|
789
796
|
assigned_to: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
790
|
-
assignment_errors: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
797
|
+
assignment_errors: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish()
|
|
791
798
|
}).passthrough()),
|
|
792
799
|
sandbox: zod_1.z.boolean().nullish(),
|
|
793
800
|
context: exports.ContextObjectSchema.nullish(),
|
|
@@ -875,10 +882,6 @@ exports.AccountReferenceSchema = zod_1.z.union([zod_1.z.object({
|
|
|
875
882
|
operator: zod_1.z.string(),
|
|
876
883
|
sandbox: zod_1.z.boolean().nullish()
|
|
877
884
|
}).passthrough()]);
|
|
878
|
-
exports.PaginationRequestSchema = zod_1.z.object({
|
|
879
|
-
max_results: zod_1.z.number().nullish(),
|
|
880
|
-
cursor: zod_1.z.string().nullish()
|
|
881
|
-
}).passthrough();
|
|
882
885
|
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")]);
|
|
883
886
|
exports.GeographicTargetingLevelSchema = zod_1.z.union([zod_1.z.literal("country"), zod_1.z.literal("region"), zod_1.z.literal("metro"), zod_1.z.literal("postal_area")]);
|
|
884
887
|
exports.SignalIDSchema = zod_1.z.union([zod_1.z.object({
|
|
@@ -890,7 +893,11 @@ exports.SignalIDSchema = zod_1.z.union([zod_1.z.object({
|
|
|
890
893
|
agent_url: zod_1.z.string(),
|
|
891
894
|
id: zod_1.z.string()
|
|
892
895
|
}).passthrough()]);
|
|
893
|
-
exports.
|
|
896
|
+
exports.PaginationRequestSchema = zod_1.z.object({
|
|
897
|
+
max_results: zod_1.z.number().nullish(),
|
|
898
|
+
cursor: zod_1.z.string().nullish()
|
|
899
|
+
}).passthrough();
|
|
900
|
+
exports.MediaBuyFeaturesSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.boolean()).and(zod_1.z.object({
|
|
894
901
|
inline_creative_management: zod_1.z.boolean().nullish(),
|
|
895
902
|
property_list_filtering: zod_1.z.boolean().nullish(),
|
|
896
903
|
content_standards: zod_1.z.boolean().nullish(),
|
|
@@ -961,6 +968,7 @@ exports.EpisodeSchema = zod_1.z.object({
|
|
|
961
968
|
valid_until: zod_1.z.string().nullish(),
|
|
962
969
|
content_rating: exports.ContentRatingSchema.nullish(),
|
|
963
970
|
topics: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
971
|
+
special: exports.SpecialSchema.nullish(),
|
|
964
972
|
guest_talent: zod_1.z.array(exports.TalentSchema).nullish(),
|
|
965
973
|
ad_inventory: exports.AdInventoryConfigurationSchema.nullish(),
|
|
966
974
|
derivative_of: zod_1.z.object({
|
|
@@ -971,7 +979,7 @@ exports.EpisodeSchema = zod_1.z.object({
|
|
|
971
979
|
}).passthrough();
|
|
972
980
|
exports.ForecastPointSchema = zod_1.z.object({
|
|
973
981
|
budget: zod_1.z.number(),
|
|
974
|
-
metrics: zod_1.z.record(zod_1.z.string(),
|
|
982
|
+
metrics: zod_1.z.record(zod_1.z.string(), exports.ForecastRangeSchema).and(zod_1.z.object({
|
|
975
983
|
audience_size: exports.ForecastRangeSchema.nullish(),
|
|
976
984
|
reach: exports.ForecastRangeSchema.nullish(),
|
|
977
985
|
frequency: exports.ForecastRangeSchema.nullish(),
|
|
@@ -1143,7 +1151,7 @@ exports.TargetingOverlaySchema = zod_1.z.object({
|
|
|
1143
1151
|
store_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1144
1152
|
catchment_ids: zod_1.z.array(zod_1.z.string()).nullish()
|
|
1145
1153
|
}).passthrough()).nullish(),
|
|
1146
|
-
geo_proximity: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1154
|
+
geo_proximity: zod_1.z.array(zod_1.z.record(zod_1.z.string(), zod_1.z.unknown())).nullish(),
|
|
1147
1155
|
language: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1148
1156
|
keyword_targets: zod_1.z.array(zod_1.z.object({
|
|
1149
1157
|
keyword: zod_1.z.string(),
|
|
@@ -1183,7 +1191,7 @@ exports.CreativeAssetSchema = zod_1.z.object({
|
|
|
1183
1191
|
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])),
|
|
1184
1192
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
1185
1193
|
name: zod_1.z.string(),
|
|
1186
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1194
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1187
1195
|
context_description: zod_1.z.string().nullish()
|
|
1188
1196
|
}).passthrough()).nullish(),
|
|
1189
1197
|
tags: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
@@ -1410,7 +1418,7 @@ exports.SyncEventSourcesErrorSchema = zod_1.z.object({
|
|
|
1410
1418
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1411
1419
|
}).passthrough();
|
|
1412
1420
|
exports.UIDTypeSchema = zod_1.z.union([zod_1.z.literal("rampid"), zod_1.z.literal("id5"), zod_1.z.literal("uid2"), zod_1.z.literal("euid"), zod_1.z.literal("pairid"), zod_1.z.literal("maid"), zod_1.z.literal("other")]);
|
|
1413
|
-
exports.UserMatchSchema = zod_1.z.
|
|
1421
|
+
exports.UserMatchSchema = zod_1.z.object({
|
|
1414
1422
|
uids: zod_1.z.array(zod_1.z.object({
|
|
1415
1423
|
type: exports.UIDTypeSchema,
|
|
1416
1424
|
value: zod_1.z.string()
|
|
@@ -1422,7 +1430,7 @@ exports.UserMatchSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union([zod_1.
|
|
|
1422
1430
|
client_ip: zod_1.z.string().nullish(),
|
|
1423
1431
|
client_user_agent: zod_1.z.string().nullish(),
|
|
1424
1432
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1425
|
-
}).passthrough()
|
|
1433
|
+
}).passthrough();
|
|
1426
1434
|
exports.EventCustomDataSchema = zod_1.z.object({
|
|
1427
1435
|
value: zod_1.z.number().nullish(),
|
|
1428
1436
|
currency: zod_1.z.string().nullish(),
|
|
@@ -1460,7 +1468,7 @@ exports.LogEventErrorSchema = zod_1.z.object({
|
|
|
1460
1468
|
context: exports.ContextObjectSchema.nullish(),
|
|
1461
1469
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1462
1470
|
}).passthrough();
|
|
1463
|
-
exports.AudienceMemberSchema = zod_1.z.
|
|
1471
|
+
exports.AudienceMemberSchema = zod_1.z.object({
|
|
1464
1472
|
external_id: zod_1.z.string(),
|
|
1465
1473
|
hashed_email: zod_1.z.string().nullish(),
|
|
1466
1474
|
hashed_phone: zod_1.z.string().nullish(),
|
|
@@ -1469,7 +1477,7 @@ exports.AudienceMemberSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union([z
|
|
|
1469
1477
|
value: zod_1.z.string()
|
|
1470
1478
|
}).passthrough()).nullish(),
|
|
1471
1479
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1472
|
-
}).passthrough()
|
|
1480
|
+
}).passthrough();
|
|
1473
1481
|
exports.ConsentBasisSchema = zod_1.z.union([zod_1.z.literal("consent"), zod_1.z.literal("legitimate_interest"), zod_1.z.literal("contract"), zod_1.z.literal("legal_obligation")]);
|
|
1474
1482
|
exports.SyncAudiencesRequestSchema = zod_1.z.object({
|
|
1475
1483
|
account: exports.AccountReferenceSchema,
|
|
@@ -1524,6 +1532,8 @@ exports.SyncCatalogsRequestSchema = zod_1.z.object({
|
|
|
1524
1532
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1525
1533
|
}).passthrough();
|
|
1526
1534
|
exports.SyncCatalogsResponseSchema = zod_1.z.union([exports.SyncCatalogsSuccessSchema, exports.SyncCatalogsErrorSchema]);
|
|
1535
|
+
exports.CreativeQualitySchema = zod_1.z.union([zod_1.z.literal("draft"), zod_1.z.literal("production")]);
|
|
1536
|
+
exports.PreviewOutputFormatSchema = zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]);
|
|
1527
1537
|
exports.CreativeManifestSchema = zod_1.z.object({
|
|
1528
1538
|
format_id: exports.FormatIDSchema,
|
|
1529
1539
|
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])),
|
|
@@ -1531,8 +1541,6 @@ exports.CreativeManifestSchema = zod_1.z.object({
|
|
|
1531
1541
|
provenance: exports.ProvenanceSchema.nullish(),
|
|
1532
1542
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1533
1543
|
}).passthrough();
|
|
1534
|
-
exports.CreativeQualitySchema = zod_1.z.union([zod_1.z.literal("draft"), zod_1.z.literal("production")]);
|
|
1535
|
-
exports.PreviewOutputFormatSchema = zod_1.z.union([zod_1.z.literal("url"), zod_1.z.literal("html")]);
|
|
1536
1544
|
exports.BuildCreativeSuccessSchema = zod_1.z.object({
|
|
1537
1545
|
creative_manifest: exports.CreativeManifestSchema,
|
|
1538
1546
|
sandbox: zod_1.z.boolean().nullish(),
|
|
@@ -1543,7 +1551,7 @@ exports.BuildCreativeSuccessSchema = zod_1.z.object({
|
|
|
1543
1551
|
renders: zod_1.z.array(exports.PreviewRenderSchema),
|
|
1544
1552
|
input: zod_1.z.object({
|
|
1545
1553
|
name: zod_1.z.string(),
|
|
1546
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1554
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1547
1555
|
context_description: zod_1.z.string().nullish()
|
|
1548
1556
|
}).passthrough()
|
|
1549
1557
|
}).passthrough()),
|
|
@@ -1565,7 +1573,7 @@ exports.BuildCreativeMultiSuccessSchema = zod_1.z.object({
|
|
|
1565
1573
|
renders: zod_1.z.array(exports.PreviewRenderSchema),
|
|
1566
1574
|
input: zod_1.z.object({
|
|
1567
1575
|
name: zod_1.z.string(),
|
|
1568
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1576
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1569
1577
|
context_description: zod_1.z.string().nullish()
|
|
1570
1578
|
}).passthrough()
|
|
1571
1579
|
}).passthrough()),
|
|
@@ -1582,7 +1590,7 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1582
1590
|
creative_manifest: exports.CreativeManifestSchema,
|
|
1583
1591
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
1584
1592
|
name: zod_1.z.string(),
|
|
1585
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1593
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1586
1594
|
context_description: zod_1.z.string().nullish()
|
|
1587
1595
|
}).passthrough()).nullish(),
|
|
1588
1596
|
template_id: zod_1.z.string().nullish(),
|
|
@@ -1598,7 +1606,7 @@ exports.PreviewCreativeRequestSchema = zod_1.z.union([zod_1.z.object({
|
|
|
1598
1606
|
creative_manifest: exports.CreativeManifestSchema,
|
|
1599
1607
|
inputs: zod_1.z.array(zod_1.z.object({
|
|
1600
1608
|
name: zod_1.z.string(),
|
|
1601
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1609
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1602
1610
|
context_description: zod_1.z.string().nullish()
|
|
1603
1611
|
}).passthrough()).nullish(),
|
|
1604
1612
|
template_id: zod_1.z.string().nullish(),
|
|
@@ -1625,7 +1633,7 @@ exports.PreviewCreativeSingleResponseSchema = zod_1.z.object({
|
|
|
1625
1633
|
renders: zod_1.z.array(exports.PreviewRenderSchema),
|
|
1626
1634
|
input: zod_1.z.object({
|
|
1627
1635
|
name: zod_1.z.string(),
|
|
1628
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1636
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
1629
1637
|
context_description: zod_1.z.string().nullish()
|
|
1630
1638
|
}).passthrough()
|
|
1631
1639
|
}).passthrough()),
|
|
@@ -1653,7 +1661,7 @@ exports.PreviewBatchResultSuccessSchema = zod_1.z.object({
|
|
|
1653
1661
|
exports.PreviewBatchResultErrorSchema = zod_1.z.object({
|
|
1654
1662
|
success: zod_1.z.literal(false).nullish()
|
|
1655
1663
|
}).passthrough();
|
|
1656
|
-
exports.GetCreativeDeliveryRequestSchema = zod_1.z.
|
|
1664
|
+
exports.GetCreativeDeliveryRequestSchema = zod_1.z.object({
|
|
1657
1665
|
account: exports.AccountReferenceSchema.nullish(),
|
|
1658
1666
|
media_buy_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
1659
1667
|
media_buy_buyer_refs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
@@ -1664,7 +1672,7 @@ exports.GetCreativeDeliveryRequestSchema = zod_1.z.record(zod_1.z.string(), zod_
|
|
|
1664
1672
|
pagination: exports.PaginationRequestSchema.nullish(),
|
|
1665
1673
|
context: exports.ContextObjectSchema.nullish(),
|
|
1666
1674
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1667
|
-
}).passthrough()
|
|
1675
|
+
}).passthrough();
|
|
1668
1676
|
exports.IdentifierSchema = zod_1.z.object({
|
|
1669
1677
|
type: exports.PropertyIdentifierTypesSchema,
|
|
1670
1678
|
value: zod_1.z.string()
|
|
@@ -1895,7 +1903,7 @@ exports.GetPropertyListResponseSchema = zod_1.z.object({
|
|
|
1895
1903
|
pagination: exports.PaginationResponseSchema.nullish(),
|
|
1896
1904
|
resolved_at: zod_1.z.string().nullish(),
|
|
1897
1905
|
cache_valid_until: zod_1.z.string().nullish(),
|
|
1898
|
-
coverage_gaps: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
1906
|
+
coverage_gaps: zod_1.z.record(zod_1.z.string(), zod_1.z.array(exports.IdentifierSchema)).nullish(),
|
|
1899
1907
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
1900
1908
|
}).passthrough();
|
|
1901
1909
|
exports.ListPropertyListsRequestSchema = zod_1.z.object({
|
|
@@ -2235,10 +2243,10 @@ exports.SyncPlansRequestSchema = zod_1.z.object({
|
|
|
2235
2243
|
channels: zod_1.z.object({
|
|
2236
2244
|
required: zod_1.z.array(exports.MediaChannelSchema).nullish(),
|
|
2237
2245
|
allowed: zod_1.z.array(exports.MediaChannelSchema).nullish(),
|
|
2238
|
-
mix_targets: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2246
|
+
mix_targets: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
2247
|
+
min_pct: zod_1.z.number().nullish(),
|
|
2248
|
+
max_pct: zod_1.z.number().nullish()
|
|
2249
|
+
}).passthrough()).nullish()
|
|
2242
2250
|
}).passthrough().nullish(),
|
|
2243
2251
|
flight: zod_1.z.object({
|
|
2244
2252
|
start: zod_1.z.string(),
|
|
@@ -2339,12 +2347,12 @@ exports.ReportPlanOutcomeResponseSchema = zod_1.z.object({
|
|
|
2339
2347
|
budget_remaining: zod_1.z.number().nullish()
|
|
2340
2348
|
}).passthrough().nullish()
|
|
2341
2349
|
}).passthrough();
|
|
2342
|
-
exports.GetPlanAuditLogsRequestSchema = zod_1.z.
|
|
2350
|
+
exports.GetPlanAuditLogsRequestSchema = zod_1.z.object({
|
|
2343
2351
|
plan_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2344
2352
|
portfolio_plan_ids: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2345
2353
|
buyer_campaign_ref: zod_1.z.string().nullish(),
|
|
2346
2354
|
include_entries: zod_1.z.boolean().nullish()
|
|
2347
|
-
}).passthrough()
|
|
2355
|
+
}).passthrough();
|
|
2348
2356
|
exports.GetPlanAuditLogsResponseSchema = zod_1.z.object({
|
|
2349
2357
|
plans: zod_1.z.array(zod_1.z.object({
|
|
2350
2358
|
plan_id: zod_1.z.string(),
|
|
@@ -2356,10 +2364,10 @@ exports.GetPlanAuditLogsResponseSchema = zod_1.z.object({
|
|
|
2356
2364
|
remaining: zod_1.z.number().nullish(),
|
|
2357
2365
|
utilization_pct: zod_1.z.number().nullish()
|
|
2358
2366
|
}).passthrough(),
|
|
2359
|
-
channel_allocation: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2367
|
+
channel_allocation: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
2368
|
+
committed: zod_1.z.number().nullish(),
|
|
2369
|
+
pct: zod_1.z.number().nullish()
|
|
2370
|
+
}).passthrough()).nullish(),
|
|
2363
2371
|
campaigns: zod_1.z.array(zod_1.z.object({
|
|
2364
2372
|
buyer_campaign_ref: zod_1.z.string(),
|
|
2365
2373
|
status: zod_1.z.union([zod_1.z.literal("active"), zod_1.z.literal("suspended"), zod_1.z.literal("completed")]),
|
|
@@ -2455,7 +2463,7 @@ exports.CheckGovernanceResponseSchema = zod_1.z.object({
|
|
|
2455
2463
|
}).passthrough()).nullish(),
|
|
2456
2464
|
conditions: zod_1.z.array(zod_1.z.object({
|
|
2457
2465
|
field: zod_1.z.string(),
|
|
2458
|
-
required_value: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
2466
|
+
required_value: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullish(),
|
|
2459
2467
|
reason: zod_1.z.string()
|
|
2460
2468
|
}).passthrough()).nullish(),
|
|
2461
2469
|
escalation: zod_1.z.object({
|
|
@@ -2558,10 +2566,10 @@ exports.SICapabilitiesSchema = zod_1.z.object({
|
|
|
2558
2566
|
}).passthrough().nullish(),
|
|
2559
2567
|
mcp_apps: zod_1.z.boolean().nullish()
|
|
2560
2568
|
}).passthrough();
|
|
2561
|
-
exports.SIUIElementSchema = zod_1.z.
|
|
2569
|
+
exports.SIUIElementSchema = zod_1.z.object({
|
|
2562
2570
|
type: zod_1.z.union([zod_1.z.literal("text"), zod_1.z.literal("link"), zod_1.z.literal("image"), zod_1.z.literal("product_card"), zod_1.z.literal("carousel"), zod_1.z.literal("action_button"), zod_1.z.literal("app_handoff"), zod_1.z.literal("integration_actions")]),
|
|
2563
2571
|
data: zod_1.z.object({}).passthrough().nullish()
|
|
2564
|
-
}).passthrough()
|
|
2572
|
+
}).passthrough();
|
|
2565
2573
|
exports.SIInitiateSessionResponseSchema = zod_1.z.object({
|
|
2566
2574
|
session_id: zod_1.z.string(),
|
|
2567
2575
|
response: zod_1.z.object({
|
|
@@ -2572,7 +2580,7 @@ exports.SIInitiateSessionResponseSchema = zod_1.z.object({
|
|
|
2572
2580
|
errors: zod_1.z.array(exports.ErrorSchema).nullish(),
|
|
2573
2581
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2574
2582
|
}).passthrough();
|
|
2575
|
-
exports.SISendMessageRequestSchema = zod_1.z.
|
|
2583
|
+
exports.SISendMessageRequestSchema = zod_1.z.object({
|
|
2576
2584
|
session_id: zod_1.z.string(),
|
|
2577
2585
|
message: zod_1.z.string().nullish(),
|
|
2578
2586
|
action_response: zod_1.z.object({
|
|
@@ -2580,11 +2588,11 @@ exports.SISendMessageRequestSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.un
|
|
|
2580
2588
|
payload: zod_1.z.object({}).passthrough().nullish()
|
|
2581
2589
|
}).passthrough().nullish(),
|
|
2582
2590
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
2583
|
-
}).passthrough()
|
|
2591
|
+
}).passthrough();
|
|
2584
2592
|
exports.A2UIComponentSchema = zod_1.z.object({
|
|
2585
2593
|
id: zod_1.z.string(),
|
|
2586
2594
|
parentId: zod_1.z.string().nullish(),
|
|
2587
|
-
component: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
2595
|
+
component: zod_1.z.record(zod_1.z.string(), zod_1.z.object({}).passthrough())
|
|
2588
2596
|
}).passthrough();
|
|
2589
2597
|
exports.SITerminateSessionRequestSchema = zod_1.z.object({
|
|
2590
2598
|
session_id: zod_1.z.string(),
|
|
@@ -2727,7 +2735,7 @@ exports.GetAdCPCapabilitiesResponseSchema = zod_1.z.object({
|
|
|
2727
2735
|
}).passthrough().nullish(),
|
|
2728
2736
|
signals: zod_1.z.object({
|
|
2729
2737
|
data_provider_domains: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
2730
|
-
features: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
2738
|
+
features: zod_1.z.record(zod_1.z.string(), zod_1.z.boolean()).and(zod_1.z.object({
|
|
2731
2739
|
catalog_signals: zod_1.z.boolean().nullish()
|
|
2732
2740
|
}).passthrough()).nullish()
|
|
2733
2741
|
}).passthrough().nullish(),
|
|
@@ -3042,7 +3050,7 @@ exports.ProductFiltersSchema = zod_1.z.object({
|
|
|
3042
3050
|
min_exposures: zod_1.z.number().nullish(),
|
|
3043
3051
|
start_date: zod_1.z.string().nullish(),
|
|
3044
3052
|
end_date: zod_1.z.string().nullish(),
|
|
3045
|
-
budget_range: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3053
|
+
budget_range: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullish(),
|
|
3046
3054
|
countries: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
3047
3055
|
regions: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
3048
3056
|
metros: zod_1.z.array(zod_1.z.object({
|
|
@@ -3140,7 +3148,7 @@ exports.PackageUpdateSchema = zod_1.z.object({
|
|
|
3140
3148
|
creative_assignments: zod_1.z.array(exports.CreativeAssignmentSchema).nullish(),
|
|
3141
3149
|
creatives: zod_1.z.array(exports.CreativeAssetSchema).nullish(),
|
|
3142
3150
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3143
|
-
}).passthrough()
|
|
3151
|
+
}).passthrough();
|
|
3144
3152
|
exports.GetMediaBuysResponseSchema = zod_1.z.object({
|
|
3145
3153
|
media_buys: zod_1.z.array(zod_1.z.object({
|
|
3146
3154
|
media_buy_id: zod_1.z.string(),
|
|
@@ -3282,7 +3290,7 @@ exports.ProvidePerformanceFeedbackRequestSchema = zod_1.z.object({
|
|
|
3282
3290
|
feedback_source: exports.FeedbackSourceSchema.nullish(),
|
|
3283
3291
|
context: exports.ContextObjectSchema.nullish(),
|
|
3284
3292
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3285
|
-
}).passthrough()
|
|
3293
|
+
}).passthrough();
|
|
3286
3294
|
exports.ProvidePerformanceFeedbackResponseSchema = zod_1.z.union([exports.ProvidePerformanceFeedbackSuccessSchema, exports.ProvidePerformanceFeedbackErrorSchema]);
|
|
3287
3295
|
exports.SyncEventSourcesResponseSchema = zod_1.z.union([exports.SyncEventSourcesSuccessSchema, exports.SyncEventSourcesErrorSchema]);
|
|
3288
3296
|
exports.EventSchema = zod_1.z.object({
|
|
@@ -3313,19 +3321,15 @@ exports.BuildCreativeRequestSchema = zod_1.z.object({
|
|
|
3313
3321
|
include_preview: zod_1.z.boolean().nullish(),
|
|
3314
3322
|
preview_inputs: zod_1.z.array(zod_1.z.object({
|
|
3315
3323
|
name: zod_1.z.string(),
|
|
3316
|
-
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3324
|
+
macros: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
3317
3325
|
context_description: zod_1.z.string().nullish()
|
|
3318
3326
|
}).passthrough()).nullish(),
|
|
3319
3327
|
preview_quality: exports.CreativeQualitySchema.nullish(),
|
|
3320
3328
|
preview_output_format: exports.PreviewOutputFormatSchema.nullish(),
|
|
3321
|
-
macro_values: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3329
|
+
macro_values: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).nullish(),
|
|
3322
3330
|
context: exports.ContextObjectSchema.nullish(),
|
|
3323
3331
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3324
|
-
}).passthrough()
|
|
3325
|
-
target_format_ids: zod_1.z.never().optional()
|
|
3326
|
-
}).passthrough(), zod_1.z.object({
|
|
3327
|
-
target_format_id: zod_1.z.never().optional()
|
|
3328
|
-
}).passthrough()]));
|
|
3332
|
+
}).passthrough();
|
|
3329
3333
|
exports.PreviewCreativeBatchResponseSchema = zod_1.z.object({
|
|
3330
3334
|
response_type: zod_1.z.literal("batch"),
|
|
3331
3335
|
results: zod_1.z.array(zod_1.z.union([exports.PreviewBatchResultSuccessSchema, exports.PreviewBatchResultErrorSchema])),
|
|
@@ -3416,7 +3420,7 @@ exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
|
3416
3420
|
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(),
|
|
3417
3421
|
items: zod_1.z.array(exports.CreativeItemSchema).nullish()
|
|
3418
3422
|
}).passthrough()),
|
|
3419
|
-
format_summary: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3423
|
+
format_summary: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).nullish(),
|
|
3420
3424
|
status_summary: zod_1.z.object({
|
|
3421
3425
|
processing: zod_1.z.number().nullish(),
|
|
3422
3426
|
approved: zod_1.z.number().nullish(),
|
|
@@ -3429,7 +3433,7 @@ exports.ListCreativesResponseSchema = zod_1.z.object({
|
|
|
3429
3433
|
context: exports.ContextObjectSchema.nullish(),
|
|
3430
3434
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3431
3435
|
}).passthrough();
|
|
3432
|
-
exports.GetSignalsRequestSchema = zod_1.z.
|
|
3436
|
+
exports.GetSignalsRequestSchema = zod_1.z.object({
|
|
3433
3437
|
account: exports.AccountReferenceSchema.nullish(),
|
|
3434
3438
|
buyer_campaign_ref: zod_1.z.string().nullish(),
|
|
3435
3439
|
signal_spec: zod_1.z.string().nullish(),
|
|
@@ -3441,7 +3445,7 @@ exports.GetSignalsRequestSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.union
|
|
|
3441
3445
|
pagination: exports.PaginationRequestSchema.nullish(),
|
|
3442
3446
|
context: exports.ContextObjectSchema.nullish(),
|
|
3443
3447
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3444
|
-
}).passthrough()
|
|
3448
|
+
}).passthrough();
|
|
3445
3449
|
exports.SignalPricingSchema = zod_1.z.union([exports.CpmPricingSchema, exports.PercentOfMediaPricingSchema, exports.FlatFeePricingSchema]);
|
|
3446
3450
|
exports.SignalPricingOptionSchema = zod_1.z.object({
|
|
3447
3451
|
pricing_option_id: zod_1.z.string()
|
|
@@ -3512,8 +3516,8 @@ exports.CheckGovernanceRequestSchema = zod_1.z.object({
|
|
|
3512
3516
|
cumulative_spend: zod_1.z.number().nullish(),
|
|
3513
3517
|
impressions: zod_1.z.number().nullish(),
|
|
3514
3518
|
cumulative_impressions: zod_1.z.number().nullish(),
|
|
3515
|
-
geo_distribution: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3516
|
-
channel_distribution: zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3519
|
+
geo_distribution: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).nullish(),
|
|
3520
|
+
channel_distribution: zod_1.z.record(zod_1.z.string(), zod_1.z.number()).nullish(),
|
|
3517
3521
|
pacing: zod_1.z.union([zod_1.z.literal("ahead"), zod_1.z.literal("on_track"), zod_1.z.literal("behind")]).nullish()
|
|
3518
3522
|
}).passthrough().nullish(),
|
|
3519
3523
|
modification_summary: zod_1.z.string().nullish()
|
|
@@ -3585,17 +3589,7 @@ exports.GetProductsRequestSchema = zod_1.z.object({
|
|
|
3585
3589
|
context: exports.ContextObjectSchema.nullish(),
|
|
3586
3590
|
required_policies: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
3587
3591
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3588
|
-
}).passthrough()
|
|
3589
|
-
buying_mode: zod_1.z.literal("brief"),
|
|
3590
|
-
refine: zod_1.z.never().optional()
|
|
3591
|
-
}).passthrough(), zod_1.z.object({
|
|
3592
|
-
buying_mode: zod_1.z.literal("wholesale"),
|
|
3593
|
-
brief: zod_1.z.never().optional(),
|
|
3594
|
-
refine: zod_1.z.never().optional()
|
|
3595
|
-
}).passthrough(), zod_1.z.object({
|
|
3596
|
-
buying_mode: zod_1.z.literal("refine"),
|
|
3597
|
-
brief: zod_1.z.never().optional()
|
|
3598
|
-
}).passthrough()]));
|
|
3592
|
+
}).passthrough();
|
|
3599
3593
|
exports.FormatSchema = zod_1.z.object({
|
|
3600
3594
|
format_id: exports.FormatIDSchema,
|
|
3601
3595
|
name: zod_1.z.string(),
|
|
@@ -3603,7 +3597,7 @@ exports.FormatSchema = zod_1.z.object({
|
|
|
3603
3597
|
example_url: zod_1.z.string().nullish(),
|
|
3604
3598
|
type: exports.FormatCategorySchema.nullish(),
|
|
3605
3599
|
accepts_parameters: zod_1.z.array(exports.FormatIDParameterSchema).nullish(),
|
|
3606
|
-
renders: zod_1.z.array(zod_1.z.union([zod_1.z.record(zod_1.z.string(), zod_1.z.
|
|
3600
|
+
renders: zod_1.z.array(zod_1.z.union([zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.object({
|
|
3607
3601
|
parameters_from_format_id: zod_1.z.literal(true)
|
|
3608
3602
|
}).passthrough()])).nullish(),
|
|
3609
3603
|
assets: zod_1.z.array(zod_1.z.union([exports.BaseIndividualAssetSchema, zod_1.z.object({
|
|
@@ -3681,7 +3675,7 @@ exports.UpdateMediaBuyRequestSchema = zod_1.z.object({
|
|
|
3681
3675
|
idempotency_key: zod_1.z.string().nullish(),
|
|
3682
3676
|
context: exports.ContextObjectSchema.nullish(),
|
|
3683
3677
|
ext: exports.ExtensionObjectSchema.nullish()
|
|
3684
|
-
}).passthrough()
|
|
3678
|
+
}).passthrough();
|
|
3685
3679
|
exports.LogEventRequestSchema = zod_1.z.object({
|
|
3686
3680
|
event_source_id: zod_1.z.string(),
|
|
3687
3681
|
test_event_code: zod_1.z.string().nullish(),
|