@adcp/sdk 8.1.0-beta.6 → 8.1.0-beta.8
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 +12 -0
- package/dist/lib/conformance/oracle.d.ts.map +1 -1
- package/dist/lib/conformance/oracle.js +8 -1
- package/dist/lib/conformance/oracle.js.map +1 -1
- package/dist/lib/conformance/schemaArbitrary.js +135 -9
- package/dist/lib/conformance/schemaArbitrary.js.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/create-adcp-server.d.ts +5 -0
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +41 -3
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/decisioning/capabilities.d.ts +8 -0
- package/dist/lib/server/decisioning/capabilities.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.js +2 -0
- package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js +14 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/responses.d.ts +1 -1
- package/dist/lib/server/responses.d.ts.map +1 -1
- package/dist/lib/server/responses.js +5 -2
- package/dist/lib/server/responses.js.map +1 -1
- package/dist/lib/signing/types.d.ts +6 -0
- package/dist/lib/signing/types.d.ts.map +1 -1
- package/dist/lib/signing/types.js.map +1 -1
- package/dist/lib/signing/verifier.d.ts.map +1 -1
- package/dist/lib/signing/verifier.js +33 -4
- package/dist/lib/signing/verifier.js.map +1 -1
- package/dist/lib/testing/storyboard/compliance.d.ts +1 -0
- package/dist/lib/testing/storyboard/compliance.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/compliance.js +8 -2
- package/dist/lib/testing/storyboard/compliance.js.map +1 -1
- package/dist/lib/testing/storyboard/index.d.ts +1 -1
- package/dist/lib/testing/storyboard/index.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/index.js +3 -2
- package/dist/lib/testing/storyboard/index.js.map +1 -1
- package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/probes.js +3 -0
- package/dist/lib/testing/storyboard/probes.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +294 -29
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/types.d.ts +59 -0
- package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/types.js.map +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts +4 -3
- package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/validations.js +26 -2
- package/dist/lib/testing/storyboard/validations.js.map +1 -1
- package/dist/lib/types/activate-signal.d.ts +647 -0
- package/dist/lib/types/build-creative.d.ts +2105 -0
- package/dist/lib/types/calibrate-content.d.ts +675 -0
- package/dist/lib/types/check-governance.d.ts +619 -0
- package/dist/lib/types/comply-test-controller.d.ts +8428 -0
- package/dist/lib/types/core.generated.d.ts +180 -252
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js +1 -1
- package/dist/lib/types/create-collection-list.d.ts +693 -0
- package/dist/lib/types/create-content-standards.d.ts +830 -0
- package/dist/lib/types/create-media-buy.d.ts +3374 -0
- package/dist/lib/types/create-property-list.d.ts +836 -0
- package/dist/lib/types/delete-collection-list.d.ts +497 -0
- package/dist/lib/types/delete-property-list.d.ts +497 -0
- package/dist/lib/types/get-account-financials.d.ts +624 -0
- package/dist/lib/types/get-adcp-capabilities.d.ts +2863 -0
- package/dist/lib/types/get-collection-list.d.ts +763 -0
- package/dist/lib/types/get-content-standards.d.ts +919 -0
- package/dist/lib/types/get-creative-delivery.d.ts +2219 -0
- package/dist/lib/types/get-creative-features.d.ts +1736 -0
- package/dist/lib/types/get-media-buy-artifacts.d.ts +864 -0
- package/dist/lib/types/get-media-buys.d.ts +1670 -0
- package/dist/lib/types/get-plan-audit-logs.d.ts +455 -0
- package/dist/lib/types/get-products.d.ts +4935 -0
- package/dist/lib/types/get-property-list.d.ts +874 -0
- package/dist/lib/types/get-signals.d.ts +986 -0
- package/dist/lib/types/list-accounts.d.ts +851 -0
- package/dist/lib/types/list-content-standards.d.ts +975 -0
- package/dist/lib/types/list-creative-formats.d.ts +3132 -0
- package/dist/lib/types/list-creatives.d.ts +2390 -0
- package/dist/lib/types/list-property-lists.d.ts +855 -0
- package/dist/lib/types/log-event.d.ts +373 -0
- package/dist/lib/types/per-tool-index.json +391 -0
- package/dist/lib/types/preview-creative.d.ts +1981 -0
- package/dist/lib/types/provide-performance-feedback.d.ts +218 -0
- package/dist/lib/types/report-plan-outcome.d.ts +433 -0
- package/dist/lib/types/report-usage.d.ts +579 -0
- package/dist/lib/types/schemas.generated.d.ts +127279 -125067
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +221 -293
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/si-get-offering.d.ts +259 -0
- package/dist/lib/types/si-initiate-session.d.ts +372 -0
- package/dist/lib/types/si-send-message.d.ts +300 -0
- package/dist/lib/types/si-terminate-session.d.ts +213 -0
- package/dist/lib/types/sync-accounts.d.ts +856 -0
- package/dist/lib/types/sync-audiences.d.ts +707 -0
- package/dist/lib/types/sync-catalogs.d.ts +766 -0
- package/dist/lib/types/sync-creatives.d.ts +2134 -0
- package/dist/lib/types/sync-event-sources.d.ts +665 -0
- package/dist/lib/types/sync-governance.d.ts +558 -0
- package/dist/lib/types/sync-plans.d.ts +979 -0
- package/dist/lib/types/update-collection-list.d.ts +697 -0
- package/dist/lib/types/update-content-standards.d.ts +847 -0
- package/dist/lib/types/update-media-buy.d.ts +3047 -0
- package/dist/lib/types/update-property-list.d.ts +840 -0
- package/dist/lib/types/validate-content-delivery.d.ts +722 -0
- package/dist/lib/types/validate-input.d.ts +1683 -0
- package/dist/lib/utils/response-schemas.js +1 -1
- package/dist/lib/utils/response-schemas.js.map +1 -1
- package/dist/lib/utils/response-unwrapper.d.ts.map +1 -1
- package/dist/lib/utils/response-unwrapper.js +18 -3
- package/dist/lib/utils/response-unwrapper.js.map +1 -1
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/examples/error-compliant-server.ts +1 -1
- package/examples/hello_seller_adapter_guaranteed.ts +8 -3
- package/examples/hello_seller_adapter_multi_tenant.ts +27 -23
- package/examples/hello_seller_adapter_non_guaranteed.ts +7 -3
- package/examples/hello_seller_adapter_proposal_mode.ts +22 -6
- package/examples/hello_signals_adapter_marketplace.ts +34 -3
- package/package.json +9 -2
|
@@ -0,0 +1,1683 @@
|
|
|
1
|
+
// AUTO-GENERATED — DO NOT EDIT.
|
|
2
|
+
// Per-tool .d.ts slice for `validate_input`. Built from the published
|
|
3
|
+
// `tools.generated.d.ts` + `core.generated.d.ts` + `enums.generated.d.ts`
|
|
4
|
+
// by `scripts/generate-per-tool-types.ts`.
|
|
5
|
+
//
|
|
6
|
+
// Self-contained: imports nothing from the broader SDK. Adopters who
|
|
7
|
+
// import only this slice pay a fraction of the tsc cost of pulling in
|
|
8
|
+
// `@adcp/sdk` root — useful when strict + skipLibCheck:false adopters
|
|
9
|
+
// hit memory pressure on the full surface.
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Request payload for the validate_input task. Lets buyers dry-run a creative manifest against canonical formats and/or specific products before committing to a render. Cheaper than preview_creative (no synthesis cost). Used by build_creative internally to validate inputs before producing output. For genuinely nondeterministic generative platforms (Veo/Sora/Runway-class) where predictive validation is impossible, the platform's own post-synthesis QA loop applies — validate_input is the predictable-case primitive.
|
|
13
|
+
*
|
|
14
|
+
* The `targets[]` array is a discriminated list of validation targets, mirroring the response shape on `validate-input-result.json#target`. Each entry has a `kind` (canonical | product | third_party_format) plus a kind-specific identifier. Discriminated-by-kind on both sides eliminates a wire-shape mismatch: a previous draft used `format_ids: string[]` for canonical names alongside `product_ids: string[]`, which collided with `Product.format_ids: FormatId[]` ({agent_url, id}) — codegen would emit the same field name with two different types. Discriminated `targets[]` makes the intent explicit and codegen-clean.
|
|
15
|
+
*/
|
|
16
|
+
export interface ValidateInputRequest {
|
|
17
|
+
manifest: CreativeManifest;
|
|
18
|
+
/**
|
|
19
|
+
* Discriminated list of validation targets. Each entry mirrors the `target` shape on `validate-input-result.json` so the request/response wire shapes match exactly. Multi-target requests enable universal-creative scenarios where one manifest targets multiple sellers' format declarations in a single round-trip; the response carries one result per target in the same order.
|
|
20
|
+
*/
|
|
21
|
+
targets?: (CanonicalFormatTarget | ProductTarget | ThirdPartyFormatTarget)[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response payload for the validate_input task. Returns per-target validation results — one entry per format_id or product_id requested. Each result carries a `result_kind` discriminator (`validated_pass` / `validated_fail` / `unvalidatable_nondeterministic`) so callers can branch on three meaningfully different outcomes. The `predicted` field on violations carries the platform's pre-flight estimate (e.g., predicted audio duration from text-length analysis), NOT the actual output — there is no protocol state for orphaned out-of-spec artifacts. For nondeterministic generative platforms (Veo / Sora / Runway-class with `synthesis_nondeterministic: true`), the result_kind is `unvalidatable_nondeterministic` — predictive validation is impossible, the platform's post-synthesis QA loop applies on `build_creative`, and out-of-spec output never reaches this surface (instead `build_creative` returns task_failed with synthesis_failed reason).
|
|
26
|
+
*
|
|
27
|
+
* The `ValidateInputResult` type is split into its own schema (`/schemas/creative/validate-input-result.json`) rather than inlined here because the same per-target shape is intended for reuse by adjacent async-validation surfaces (planned: per-batch result envelopes on `build_creative` async paths, and asynchronous canonical-against-product validation in `sync_creatives`). Producers that only need the synchronous batch shape today MAY treat the split as YAGNI, but the schema reuse anchors the violation/retry shape so downstream surfaces don't drift.
|
|
28
|
+
*/
|
|
29
|
+
export interface ValidateInputResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Session/conversation identifier for tracking related operations across multiple task invocations. Managed by the protocol layer to maintain conversational context. Distinct from `context` (per-request opaque echo, see below).
|
|
32
|
+
*/
|
|
33
|
+
context_id?: string;
|
|
34
|
+
context?: ContextObject;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for tracking asynchronous operations. Present when a task requires extended processing time. Used to query task status and retrieve results when complete.
|
|
37
|
+
*/
|
|
38
|
+
task_id?: string;
|
|
39
|
+
status: TaskStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Human-readable summary of the task result. Provides natural language explanation of what happened, suitable for display to end users or for AI agent comprehension. Generated by the protocol layer based on the task response.
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.
|
|
46
|
+
*/
|
|
47
|
+
timestamp?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Set to true when this response was returned from the idempotency cache rather than from a fresh execution. Set to false (or omitted) when the request was executed fresh. Buyers use this to distinguish cached replays from new executions — matters for billing reconciliation, audit logs, state-machine routing (cached state-tracking fields are historical snapshots, not current state — re-read via the resource's read endpoint), and any downstream system that assumes exactly-once event semantics. From 3.1 onward, `replayed` MAY appear on responses to any request that resolved via the idempotency cache, including read tools — universal `idempotency_key` (see security.mdx §Idempotency) means the cache holds read responses too.
|
|
50
|
+
*/
|
|
51
|
+
replayed?: boolean;
|
|
52
|
+
adcp_error?: Error;
|
|
53
|
+
push_notification_config?: PushNotificationConfig;
|
|
54
|
+
/**
|
|
55
|
+
* Governance context token issued by the account's governance agent during check_governance. Buyers attach it to governed purchase requests (media buys, rights acquisitions, signal activations, creative services); sellers persist it and include it on all subsequent governance calls for that action's lifecycle. An account binds to one governance agent (see sync_governance); governance is phased across `purchase` / `modification` / `delivery`, not partitioned across specialist agents, so the envelope carries a single token for the full lifecycle.
|
|
56
|
+
*
|
|
57
|
+
* Value format: governance agents MUST emit a compact JWS per the AdCP JWS profile (see Security — Signed Governance Context). Sellers MAY verify; sellers that do not verify MUST persist and forward the token unchanged. In 3.1 all sellers MUST verify. Non-JWS values from pre-3.0 governance agents are deprecated.
|
|
58
|
+
*
|
|
59
|
+
* This is the primary correlation key for audit and reporting across the governance lifecycle.
|
|
60
|
+
*/
|
|
61
|
+
governance_context?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Conceptual grouping for the task-specific response data defined by individual task response schemas (e.g., get-products-response.json, create-media-buy-response.json). `payload` is a documentary construct — it is NOT a required wire field, and its on-the-wire shape depends on transport (see Transport serialization below). Task response schemas declare body fields without wrapping them in a `payload` object; the wire representation places those body fields per transport convention. On MCP the body fields appear as siblings of envelope fields at the root of the tool response; on A2A they appear inside `task.artifacts[0].parts[].DataPart`; on REST they appear at the root of the JSON body.
|
|
64
|
+
*/
|
|
65
|
+
payload?: {};
|
|
66
|
+
/**
|
|
67
|
+
* Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.
|
|
68
|
+
*/
|
|
69
|
+
adcp_version?: string;
|
|
70
|
+
/**
|
|
71
|
+
* DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
|
|
72
|
+
*/
|
|
73
|
+
adcp_major_version?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Per-target validation results.
|
|
76
|
+
*/
|
|
77
|
+
results: ValidateInputResult[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Canonical union of all asset variant schemas. Referenced from creative-asset.json and creative-manifest.json to ensure a single named type is emitted by schema-to-TypeScript tooling. Add new asset types here and to the creative/asset-types registry.
|
|
82
|
+
*/
|
|
83
|
+
export type AssetVariant = ImageAsset | VideoAsset | AudioAsset | VASTAsset | TextAsset | URLAsset | HTMLAsset | JavaScriptAsset | ZipAsset | WebhookAsset | CSSAsset | DAASTAsset | MarkdownAsset | BriefAsset | CatalogAsset | CardAsset;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Audio asset with URL and technical specifications
|
|
87
|
+
*/
|
|
88
|
+
export interface AudioAsset {
|
|
89
|
+
/**
|
|
90
|
+
* Discriminator identifying this as an audio asset. See /schemas/creative/asset-types for the registry.
|
|
91
|
+
*/
|
|
92
|
+
asset_type: 'audio';
|
|
93
|
+
/**
|
|
94
|
+
* URL to the audio asset
|
|
95
|
+
*/
|
|
96
|
+
url: string;
|
|
97
|
+
/**
|
|
98
|
+
* Audio duration in milliseconds
|
|
99
|
+
* @minimum 0
|
|
100
|
+
*/
|
|
101
|
+
duration_ms?: number;
|
|
102
|
+
/**
|
|
103
|
+
* File size in bytes
|
|
104
|
+
* @minimum 1
|
|
105
|
+
*/
|
|
106
|
+
file_size_bytes?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Audio container/file format (mp3, m4a, aac, wav, ogg, flac, etc.)
|
|
109
|
+
*/
|
|
110
|
+
container_format?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Audio codec used (aac, aac_lc, he_aac, pcm, mp3, vorbis, opus, flac, ac3, eac3, etc.)
|
|
113
|
+
*/
|
|
114
|
+
codec?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Sampling rate in Hz (e.g., 44100, 48000, 96000)
|
|
117
|
+
*/
|
|
118
|
+
sampling_rate_hz?: number;
|
|
119
|
+
channels?: AudioChannelLayout;
|
|
120
|
+
/**
|
|
121
|
+
* Bit depth
|
|
122
|
+
*/
|
|
123
|
+
bit_depth?: 16 | 24 | 32;
|
|
124
|
+
/**
|
|
125
|
+
* Bitrate in kilobits per second
|
|
126
|
+
* @minimum 1
|
|
127
|
+
*/
|
|
128
|
+
bitrate_kbps?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Integrated loudness in LUFS
|
|
131
|
+
*/
|
|
132
|
+
loudness_lufs?: number;
|
|
133
|
+
/**
|
|
134
|
+
* True peak level in dBFS
|
|
135
|
+
*/
|
|
136
|
+
true_peak_dbfs?: number;
|
|
137
|
+
/**
|
|
138
|
+
* URL to text transcript of the audio content
|
|
139
|
+
*/
|
|
140
|
+
transcript_url?: string;
|
|
141
|
+
provenance?: Provenance;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Audio channel configuration
|
|
146
|
+
*/
|
|
147
|
+
export type AudioChannelLayout = 'mono' | 'stereo' | '5.1' | '7.1';
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Legacy authentication schemes for the webhook auth block. Bearer: token sent in Authorization header. HMAC-SHA256: legacy shared-secret signing. Both are deprecated; new integrations SHOULD omit the authentication block and use the RFC 9421 webhook signing profile (applicable on schemas where authentication is optional). Removed in AdCP 4.0.
|
|
151
|
+
*/
|
|
152
|
+
export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Brand identifier within the house portfolio. Optional for single-brand domains.
|
|
156
|
+
*/
|
|
157
|
+
export type BrandID = string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Brand reference for product discovery context. Resolved to full brand identity at execution time.
|
|
161
|
+
*/
|
|
162
|
+
export interface BrandReference {
|
|
163
|
+
/**
|
|
164
|
+
* Domain where /.well-known/brand.json is hosted, or the brand's operating domain
|
|
165
|
+
* @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
|
|
166
|
+
*/
|
|
167
|
+
domain: string;
|
|
168
|
+
brand_id?: BrandID;
|
|
169
|
+
/**
|
|
170
|
+
* Inline override for the brand's industries. Useful when the caller cannot modify the brand's canonical brand.json but needs to declare industries for governance (e.g., Annex III vertical detection). brand.json remains the canonical source; when omitted here, governance agents SHOULD resolve from brand.json.
|
|
171
|
+
*/
|
|
172
|
+
industries?: string[];
|
|
173
|
+
/**
|
|
174
|
+
* Inline override for the brand's contestation contact point. Useful when the operator does not control brand.json but needs to discharge Art 22(3) for this plan. brand.json is canonical; when omitted, governance agents resolve brand → house → missing.
|
|
175
|
+
*/
|
|
176
|
+
data_subject_contestation?: {
|
|
177
|
+
[k: string]: unknown | undefined;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Inline override for brand-kit fields normally resolved from `/.well-known/brand.json` on `domain` (logo, colors, voice, tagline). Use when brand.json is missing, stale, or inappropriate for this specific call — e.g., a campaign-scoped tagline, a co-branded creative, a freshly-rebranded color palette the brand.json hasn't shipped yet. Same inline-override pattern as `industries` and `data_subject_contestation` above: brand.json is canonical, the override is per-call. Adopters needing to override fields outside this subset (`voice_attributes`, `prohibited_terms`, etc.) MUST publish a different brand.json and reference it via a different `domain` — the inline override is intentionally narrow to a small high-traffic subset.
|
|
181
|
+
*
|
|
182
|
+
* **Merge semantics (normative).** The merge is **field-level**, not whole-object replacement. Each field within `brand_kit_override` (`logo`, `colors`, `voice`, `tagline`) is evaluated independently — when a field is present on the override the override value applies; when a field is absent the brand.json value applies (or is absent if brand.json doesn't carry one either). For composite fields (`colors.primary`, `colors.secondary`, `colors.accent`), the merge is one level deeper: each color slot is evaluated independently — a producer can override `colors.primary` while still inheriting `colors.secondary` from brand.json. SDKs MUST NOT treat a present `brand_kit_override.colors` as wiping the brand.json `colors` block entirely; only the per-slot fields present in the override take precedence. Without this rule, a partial-override semantics would diverge across SDKs and produce inconsistent rendering for the same payload.
|
|
183
|
+
*/
|
|
184
|
+
brand_kit_override?: {
|
|
185
|
+
logo?: ImageAsset;
|
|
186
|
+
/**
|
|
187
|
+
* Override brand colors (hex strings).
|
|
188
|
+
*/
|
|
189
|
+
colors?: {
|
|
190
|
+
/**
|
|
191
|
+
* @pattern ^#[0-9a-fA-F]{6}$
|
|
192
|
+
*/
|
|
193
|
+
primary?: string;
|
|
194
|
+
/**
|
|
195
|
+
* @pattern ^#[0-9a-fA-F]{6}$
|
|
196
|
+
*/
|
|
197
|
+
secondary?: string;
|
|
198
|
+
/**
|
|
199
|
+
* @pattern ^#[0-9a-fA-F]{6}$
|
|
200
|
+
*/
|
|
201
|
+
accent?: string;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Override brand-voice description for surface-composed text/audio output.
|
|
205
|
+
*/
|
|
206
|
+
voice?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Override tagline.
|
|
209
|
+
*/
|
|
210
|
+
tagline?: string;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Campaign-level creative context as an asset. Carries the creative brief through the manifest so it travels with the creative through regeneration, resizing, and auditing.
|
|
216
|
+
*/
|
|
217
|
+
export interface BriefAsset {
|
|
218
|
+
/**
|
|
219
|
+
* Campaign or flight name for identification
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
/**
|
|
223
|
+
* Campaign objective that guides creative tone and call-to-action strategy
|
|
224
|
+
*/
|
|
225
|
+
objective?: 'awareness' | 'consideration' | 'conversion' | 'retention' | 'engagement';
|
|
226
|
+
/**
|
|
227
|
+
* Desired tone for this campaign, modulating the brand's base tone (e.g., 'playful and festive', 'premium and aspirational')
|
|
228
|
+
*/
|
|
229
|
+
tone?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Target audience description for this campaign
|
|
232
|
+
*/
|
|
233
|
+
audience?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Creative territory or positioning the campaign should occupy
|
|
236
|
+
*/
|
|
237
|
+
territory?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Messaging framework for the campaign
|
|
240
|
+
*/
|
|
241
|
+
messaging?: {
|
|
242
|
+
/**
|
|
243
|
+
* Primary headline
|
|
244
|
+
*/
|
|
245
|
+
headline?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Supporting tagline or sub-headline
|
|
248
|
+
*/
|
|
249
|
+
tagline?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Call-to-action text
|
|
252
|
+
*/
|
|
253
|
+
cta?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Key messages to communicate in priority order
|
|
256
|
+
*/
|
|
257
|
+
key_messages?: string[];
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Visual and strategic reference materials such as mood boards, product shots, example creatives, and strategy documents
|
|
261
|
+
*/
|
|
262
|
+
reference_assets?: ReferenceAsset[];
|
|
263
|
+
/**
|
|
264
|
+
* Regulatory and legal compliance requirements for this campaign. Campaign-specific, regional, and product-based — distinct from brand-level disclaimers in brand.json.
|
|
265
|
+
*/
|
|
266
|
+
compliance?: {
|
|
267
|
+
/**
|
|
268
|
+
* Disclosures that must appear in creatives for this campaign. Each disclosure specifies the text, where it should appear, and which jurisdictions require it.
|
|
269
|
+
*/
|
|
270
|
+
required_disclosures?: {
|
|
271
|
+
/**
|
|
272
|
+
* The disclosure text that must appear in the creative
|
|
273
|
+
*/
|
|
274
|
+
text: string;
|
|
275
|
+
position?: DisclosurePosition;
|
|
276
|
+
/**
|
|
277
|
+
* Jurisdictions where this disclosure is required. ISO 3166-1 alpha-2 country codes or ISO 3166-2 subdivision codes (e.g., 'US', 'GB', 'US-NJ', 'CA-QC'). If omitted, the disclosure applies to all jurisdictions in the campaign.
|
|
278
|
+
*/
|
|
279
|
+
jurisdictions?: string[];
|
|
280
|
+
/**
|
|
281
|
+
* The regulation or legal authority requiring this disclosure (e.g., 'SEC Rule 156', 'FCA COBS 4.5', 'FDA 21 CFR 202')
|
|
282
|
+
*/
|
|
283
|
+
regulation?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Minimum display duration in milliseconds. For video/audio disclosures, how long the disclosure must be visible or audible. For static formats, how long the disclosure must remain on screen before any auto-advance.
|
|
286
|
+
*/
|
|
287
|
+
min_duration_ms?: number;
|
|
288
|
+
/**
|
|
289
|
+
* Language of the disclosure text as a BCP 47 language tag (e.g., 'en', 'fr-CA', 'es'). When omitted, the disclosure is assumed to match the creative's language.
|
|
290
|
+
*/
|
|
291
|
+
language?: string;
|
|
292
|
+
persistence?: DisclosurePersistence;
|
|
293
|
+
}[];
|
|
294
|
+
/**
|
|
295
|
+
* Claims that must not appear in creatives for this campaign. Creative agents should ensure generated content avoids these claims.
|
|
296
|
+
*/
|
|
297
|
+
prohibited_claims?: string[];
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Discriminator identifying this as a brief asset. See /schemas/creative/asset-types for the registry.
|
|
301
|
+
*/
|
|
302
|
+
asset_type: 'brief';
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* C2PA action classification for this watermark
|
|
307
|
+
*/
|
|
308
|
+
export type C2PAWatermarkAction = 'c2pa.watermarked.bound' | 'c2pa.watermarked.unbound';
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* CSS stylesheet asset
|
|
312
|
+
*/
|
|
313
|
+
export interface CSSAsset {
|
|
314
|
+
/**
|
|
315
|
+
* Discriminator identifying this as a CSS asset. See /schemas/creative/asset-types for the registry.
|
|
316
|
+
*/
|
|
317
|
+
asset_type: 'css';
|
|
318
|
+
/**
|
|
319
|
+
* CSS content
|
|
320
|
+
*/
|
|
321
|
+
content: string;
|
|
322
|
+
/**
|
|
323
|
+
* CSS media query context (e.g., 'screen', 'print')
|
|
324
|
+
*/
|
|
325
|
+
media?: string;
|
|
326
|
+
provenance?: Provenance;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* The v2 canonical-format-kind this v1 format projects to (`image`, `html5`, `display_tag`, `image_carousel`, `video_hosted`, `video_vast`, `audio_hosted`, `audio_daast`, `sponsored_placement`, `responsive_creative`, `agent_placement`, or `custom`).
|
|
331
|
+
*/
|
|
332
|
+
export type CanonicalFormatKind = 'image' | 'html5' | 'display_tag' | 'image_carousel' | 'video_hosted' | 'video_vast' | 'audio_hosted' | 'audio_daast' | 'sponsored_placement' | 'native_in_feed' | 'responsive_creative' | 'agent_placement' | 'custom';
|
|
333
|
+
|
|
334
|
+
export interface CanonicalFormatTarget {
|
|
335
|
+
kind: 'canonical';
|
|
336
|
+
/**
|
|
337
|
+
* Canonical format name from `canonical-format-kind.json` (e.g., `image`, `video_hosted`, `audio_daast`). Validators check the manifest against the canonical's parameter schema.
|
|
338
|
+
*/
|
|
339
|
+
id: string;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* A single card in a multi-card creative (image_carousel, future composed carousels). Carries: `media` (an image OR video asset), optional `headline` (short text), optional `description` (longer text), optional `cta` (call-to-action label), optional `landing_page_url` (url asset with `url_type: "clickthrough"`).
|
|
344
|
+
*
|
|
345
|
+
* Covers the multi-card patterns across Meta carousel, Pinterest sponsored pin, Snap Collection, TikTok carousel, and AI-surface result cards. The two-field text shape (`headline` + `description`) reflects how almost every adopter splits short labels from longer copy; Pinterest pin description and Meta per-card description both go in `description`.
|
|
346
|
+
*
|
|
347
|
+
* Used as the array element type for the `cards` slot on image_carousel canonicals. Adopters MUST NOT invent per-card key conventions like `card_0_headline` / `cards.0.headline` — the manifest's `assets.cards` value is an array of card-asset objects, period. Per-card platform extensions (e.g., Meta-specific carousel attributes, Pinterest rich-pin metadata, Snap Collection price tags) attach via the `platform_extensions` field, never via inline non-canonical keys.
|
|
348
|
+
*/
|
|
349
|
+
export interface CardAsset {
|
|
350
|
+
/**
|
|
351
|
+
* Discriminator identifying this as a card asset. See /schemas/creative/asset-types for the registry.
|
|
352
|
+
*/
|
|
353
|
+
asset_type: 'card';
|
|
354
|
+
/**
|
|
355
|
+
* The card's primary visual asset. Either an `image` or `video` asset, matching the parent format's `allowed_card_media_asset_types` parameter.
|
|
356
|
+
*/
|
|
357
|
+
media: ImageAsset | VideoAsset;
|
|
358
|
+
/**
|
|
359
|
+
* Optional per-card short text label (typically 25-40 chars). Length governed by `card_headline_max_chars` on the format declaration. Meta carousel headline, Pinterest pin title, Snap Collection sticker text, TikTok caption-short.
|
|
360
|
+
*/
|
|
361
|
+
headline?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Optional per-card longer text (typically 100-500 chars). Distinct from `headline`: `description` is body copy, `headline` is the label. Length governed by `card_description_max_chars` on the format declaration. Meta carousel description, Pinterest pin description, AI-surface result body text, TikTok long caption.
|
|
364
|
+
*/
|
|
365
|
+
description?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Optional per-card call-to-action label (e.g., 'SHOP_NOW', 'LEARN_MORE'). When the parent format declares `cta_values` (allowed CTA labels), the per-card `cta` MUST be one of those values. Lets a Meta or TikTok carousel show different CTAs per card.
|
|
368
|
+
*/
|
|
369
|
+
cta?: string;
|
|
370
|
+
landing_page_url?: URLAsset;
|
|
371
|
+
/**
|
|
372
|
+
* Per-card platform-specific extensions (URI+digest references). Same hosting model as format-level platform_extensions. Use this for Meta carousel-card attributes, Pinterest pin overrides, etc. — NEVER inline non-canonical keys on the card object directly.
|
|
373
|
+
*/
|
|
374
|
+
platform_extensions?: PlatformExtensionReference[];
|
|
375
|
+
provenance?: Provenance;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* A typed data feed as a creative asset. Carries catalog context (products, stores, jobs, etc.) within the manifest's assets map.
|
|
380
|
+
*/
|
|
381
|
+
export interface CatalogAsset {
|
|
382
|
+
/**
|
|
383
|
+
* Buyer's identifier for this catalog. Required when syncing via sync_catalogs. When used in creatives, references a previously synced catalog on the account.
|
|
384
|
+
*/
|
|
385
|
+
catalog_id?: string;
|
|
386
|
+
/**
|
|
387
|
+
* Human-readable name for this catalog (e.g., 'Summer Products 2025', 'Amsterdam Store Locations').
|
|
388
|
+
*/
|
|
389
|
+
name?: string;
|
|
390
|
+
type: CatalogType;
|
|
391
|
+
/**
|
|
392
|
+
* URL to an external catalog feed. The platform fetches and resolves items from this URL. For offering-type catalogs, the feed contains an array of Offering objects. For other types, the feed format is determined by feed_format. When omitted with type 'product', the platform uses its synced copy of the brand's product catalog.
|
|
393
|
+
*/
|
|
394
|
+
url?: string;
|
|
395
|
+
feed_format?: FeedFormat;
|
|
396
|
+
update_frequency?: UpdateFrequency;
|
|
397
|
+
/**
|
|
398
|
+
* Inline catalog data. The item schema depends on the catalog type: Offering objects for 'offering', StoreItem for 'store', HotelItem for 'hotel', FlightItem for 'flight', JobItem for 'job', VehicleItem for 'vehicle', RealEstateItem for 'real_estate', EducationItem for 'education', DestinationItem for 'destination', AppItem for 'app', or freeform objects for 'product', 'inventory', and 'promotion'. Mutually exclusive with url — provide one or the other, not both. Implementations should validate items against the type-specific schema.
|
|
399
|
+
*/
|
|
400
|
+
items?: {}[];
|
|
401
|
+
/**
|
|
402
|
+
* Filter catalog to specific item IDs. For offering-type catalogs, these are offering_id values. For product-type catalogs, these are SKU identifiers.
|
|
403
|
+
*/
|
|
404
|
+
ids?: string[];
|
|
405
|
+
/**
|
|
406
|
+
* Filter product-type catalogs by GTIN identifiers for cross-retailer catalog matching. Accepts standard GTIN formats (GTIN-8, UPC-A/GTIN-12, EAN-13/GTIN-13, GTIN-14). Only applicable when type is 'product'.
|
|
407
|
+
*/
|
|
408
|
+
gtins?: string[];
|
|
409
|
+
/**
|
|
410
|
+
* Filter catalog to items with these tags. Tags are matched using OR logic — items matching any tag are included.
|
|
411
|
+
*/
|
|
412
|
+
tags?: string[];
|
|
413
|
+
/**
|
|
414
|
+
* Filter catalog to items in this category (e.g., 'beverages/soft-drinks', 'chef-positions').
|
|
415
|
+
*/
|
|
416
|
+
category?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Natural language filter for catalog items (e.g., 'all pasta sauces under $5', 'amsterdam vacancies').
|
|
419
|
+
*/
|
|
420
|
+
query?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Event types that represent conversions for items in this catalog. Declares what events the platform should attribute to catalog items — e.g., a job catalog converts via submit_application, a product catalog via purchase. The event's content_ids field carries the item IDs that connect back to catalog items. Use content_id_type to declare what identifier type content_ids values represent.
|
|
423
|
+
*/
|
|
424
|
+
conversion_events?: EventType[];
|
|
425
|
+
content_id_type?: ContentIDType;
|
|
426
|
+
/**
|
|
427
|
+
* Declarative normalization rules for external feeds. Maps non-standard feed field names, date formats, price encodings, and image URLs to the AdCP catalog item schema. Applied during sync_catalogs ingestion. Supports field renames, named transforms (date, divide, boolean, split), static literal injection, and assignment of image URLs to typed asset pools.
|
|
428
|
+
*/
|
|
429
|
+
feed_field_mappings?: CatalogFieldMapping[];
|
|
430
|
+
/**
|
|
431
|
+
* Discriminator identifying this as a catalog asset. See /schemas/creative/asset-types for the registry.
|
|
432
|
+
*/
|
|
433
|
+
asset_type: 'catalog';
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Declares how a field in an external feed maps to the AdCP catalog item schema. Used in sync_catalogs feed_field_mappings to normalize non-AdCP feeds (Google Merchant Center, LinkedIn Jobs XML, hotel XML, etc.) to the standard catalog item schema without requiring the buyer to preprocess every feed. Multiple mappings can assemble a nested object via dot notation (e.g., separate mappings for price.amount and price.currency).
|
|
438
|
+
*/
|
|
439
|
+
export interface CatalogFieldMapping {
|
|
440
|
+
/**
|
|
441
|
+
* Field name in the external feed record. Omit when injecting a static literal value (use the value property instead).
|
|
442
|
+
*/
|
|
443
|
+
feed_field?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Target field on the catalog item schema, using dot notation for nested fields (e.g., 'name', 'price.amount', 'location.city'). Mutually exclusive with asset_group_id.
|
|
446
|
+
*/
|
|
447
|
+
catalog_field?: string;
|
|
448
|
+
/**
|
|
449
|
+
* Places the feed field value (a URL) into a typed asset pool on the catalog item's assets array. The value is wrapped as an image or video asset in a group with this ID. Use standard group IDs: 'images_landscape', 'images_vertical', 'images_square', 'logo', 'video'. Mutually exclusive with catalog_field.
|
|
450
|
+
*/
|
|
451
|
+
asset_group_id?: string;
|
|
452
|
+
/**
|
|
453
|
+
* Static literal value to inject into catalog_field for every item, regardless of what the feed contains. Mutually exclusive with feed_field. Useful for fields the feed omits (e.g., currency when price is always USD, or a constant category value).
|
|
454
|
+
*/
|
|
455
|
+
value?: unknown;
|
|
456
|
+
/**
|
|
457
|
+
* Named transform to apply to the feed field value before writing to the catalog schema. See transform-specific parameters (format, timezone, by, separator).
|
|
458
|
+
*/
|
|
459
|
+
transform?: 'date' | 'divide' | 'boolean' | 'split';
|
|
460
|
+
/**
|
|
461
|
+
* For transform 'date': the input date format string (e.g., 'YYYYMMDD', 'MM/DD/YYYY', 'DD-MM-YYYY'). Output is always ISO 8601 (e.g., '2025-03-01'). Uses Unicode date pattern tokens.
|
|
462
|
+
*/
|
|
463
|
+
format?: string;
|
|
464
|
+
/**
|
|
465
|
+
* For transform 'date': the timezone of the input value. IANA timezone identifier (e.g., 'UTC', 'America/New_York', 'Europe/Amsterdam'). Defaults to UTC when omitted.
|
|
466
|
+
*/
|
|
467
|
+
timezone?: string;
|
|
468
|
+
/**
|
|
469
|
+
* For transform 'divide': the divisor to apply (e.g., 100 to convert integer cents to decimal dollars).
|
|
470
|
+
*/
|
|
471
|
+
by?: number;
|
|
472
|
+
/**
|
|
473
|
+
* For transform 'split': the separator character or string to split on. Defaults to ','.
|
|
474
|
+
*/
|
|
475
|
+
separator?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Fallback value to use when feed_field is absent, null, or empty. Applied after any transform would have been applied. Allows optional feed fields to have a guaranteed baseline value.
|
|
478
|
+
*/
|
|
479
|
+
default?: unknown;
|
|
480
|
+
ext?: ExtensionObject;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Catalog type. Structural types: 'offering' (AdCP Offering objects), 'product' (ecommerce entries), 'inventory' (stock per location), 'store' (physical locations), 'promotion' (deals and pricing). Vertical types: 'hotel', 'flight', 'job', 'vehicle', 'real_estate', 'education', 'destination', 'app' — each with an industry-specific item schema.
|
|
485
|
+
*/
|
|
486
|
+
export type CatalogType = 'offering' | 'product' | 'inventory' | 'store' | 'promotion' | 'hotel' | 'flight' | 'job' | 'vehicle' | 'real_estate' | 'education' | 'destination' | 'app';
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Identifier type that the event's content_ids field should be matched against for items in this catalog. For example, 'gtin' means content_ids values are Global Trade Item Numbers, 'sku' means retailer SKUs. Omit when using a custom identifier scheme not listed in the enum.
|
|
490
|
+
*/
|
|
491
|
+
export type ContentIDType = 'sku' | 'gtin' | 'offering_id' | 'job_id' | 'hotel_id' | 'flight_id' | 'vehicle_id' | 'listing_id' | 'store_id' | 'program_id' | 'destination_id' | 'app_id';
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
|
|
495
|
+
*/
|
|
496
|
+
export interface ContextObject {
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Industry-standard identifier types for advertising creatives. These identifiers are managed by external registries and used across the supply chain to track and reference specific creative assets.
|
|
501
|
+
*/
|
|
502
|
+
export type CreativeIdentifierType = 'ad_id' | 'isci' | 'clearcast_clock';
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Creative manifest to transform or generate from. For pure generation, this should include the target format_id and any required input assets. For transformation (e.g., resizing, reformatting), this is the complete creative to adapt. When creative_id is provided, the agent resolves the creative from its library and this field is ignored.
|
|
506
|
+
*/
|
|
507
|
+
export type CreativeManifest = {
|
|
508
|
+
format_id?: FormatReferenceStructuredObject;
|
|
509
|
+
format_kind?: CanonicalFormatKind;
|
|
510
|
+
/**
|
|
511
|
+
* v2 path, optional. Stable identifier matching one of the seller's product `format_options[i].capability_id` values. REQUIRED when the target product carries multiple `format_options` entries sharing the same `format_kind` (the buyer must disambiguate which option this manifest matches). When the product's `format_options` has a single entry — or multiple entries with distinct `format_kind` values — `capability_id` is OPTIONAL because `format_kind` alone routes the manifest to the right declaration.
|
|
512
|
+
*/
|
|
513
|
+
capability_id?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Map of slot keys to actual asset content. v1 path: each key matches an `asset_id` from the format's `assets` array (e.g., 'banner_image', 'clickthrough_url', 'video_file', 'vast_tag'). v2 path: each key matches an `asset_group_id` from the format's `slots` declaration drawn from the canonical vocabulary registry (e.g., 'images_landscape', 'video', 'landing_page_url', 'vast_tag', 'script', 'creative_brief'). Either path produces the same envelope shape; only the slot-key vocabulary differs.
|
|
516
|
+
*
|
|
517
|
+
* Each slot value is **either** a single asset object (most slots — image, video, vast_tag, landing_page_url, etc.) **or** an array of asset objects (slots with `min`/`max` counts on the format declaration — `cards` on `image_carousel`, `headlines` / `descriptions` / `images_landscape` on `responsive_creative`, etc.). Single-vs-array shape is governed by the format's `slots[].min` and `slots[].max` parameters: when `max > 1` (or when the slot is conceptually a pool), the value MUST be an array; when the slot is single-valued, the value MUST be a single object. Each asset value (single or array element) carries an `asset_type` discriminator (image, video, audio, vast, daast, text, markdown, url, html, css, webhook, javascript, brief, catalog, zip, card) that selects the matching asset schema. Validators with OpenAPI-style discriminator support use `asset_type` to report errors against only the selected branch instead of all branches.
|
|
518
|
+
*/
|
|
519
|
+
assets: {
|
|
520
|
+
/**
|
|
521
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
522
|
+
* via the `patternProperty` "^[a-z0-9_]+$".
|
|
523
|
+
*/
|
|
524
|
+
[k: string]: AssetVariant | AssetVariant[];
|
|
525
|
+
};
|
|
526
|
+
brand?: BrandReference;
|
|
527
|
+
/**
|
|
528
|
+
* Rights constraints attached to this creative. Each entry represents constraints from a single rights holder. A creative may combine multiple rights constraints (e.g., talent likeness + music license). For v1, rights constraints are informational metadata — the buyer/orchestrator manages creative lifecycle against these terms.
|
|
529
|
+
*/
|
|
530
|
+
rights?: RightsConstraint[];
|
|
531
|
+
/**
|
|
532
|
+
* Industry-standard identifiers for this specific manifest (e.g., Ad-ID, ISCI, Clearcast clock number). When present, overrides creative-level identifiers. Use when different format versions of the same source creative have distinct Ad-IDs (e.g., the :15 and :30 cuts).
|
|
533
|
+
*/
|
|
534
|
+
industry_identifiers?: IndustryIdentifier[];
|
|
535
|
+
provenance?: Provenance;
|
|
536
|
+
ext?: ExtensionObject;
|
|
537
|
+
} & (V1ManifestNamedFormatReference | V2ManifestCanonicalFormatKind);
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* DAAST (Digital Audio Ad Serving Template) tag for third-party audio ad serving
|
|
541
|
+
*/
|
|
542
|
+
export type DAASTAsset = {
|
|
543
|
+
/**
|
|
544
|
+
* Discriminator identifying this as a DAAST asset. See /schemas/creative/asset-types for the registry.
|
|
545
|
+
*/
|
|
546
|
+
asset_type: 'daast';
|
|
547
|
+
daast_version?: DAASTVersion;
|
|
548
|
+
/**
|
|
549
|
+
* Expected audio duration in milliseconds (if known)
|
|
550
|
+
* @minimum 0
|
|
551
|
+
*/
|
|
552
|
+
duration_ms?: number;
|
|
553
|
+
/**
|
|
554
|
+
* Tracking events supported by this DAAST tag
|
|
555
|
+
*/
|
|
556
|
+
tracking_events?: DAASTTrackingEvent[];
|
|
557
|
+
/**
|
|
558
|
+
* Whether companion display ads are included
|
|
559
|
+
*/
|
|
560
|
+
companion_ads?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* URL to text transcript of the audio content
|
|
563
|
+
*/
|
|
564
|
+
transcript_url?: string;
|
|
565
|
+
provenance?: Provenance;
|
|
566
|
+
} & ({
|
|
567
|
+
/**
|
|
568
|
+
* Discriminator indicating DAAST is delivered via URL endpoint
|
|
569
|
+
*/
|
|
570
|
+
delivery_type: 'url';
|
|
571
|
+
/**
|
|
572
|
+
* URL endpoint that returns DAAST XML
|
|
573
|
+
*/
|
|
574
|
+
url: string;
|
|
575
|
+
} | {
|
|
576
|
+
/**
|
|
577
|
+
* Discriminator indicating DAAST is delivered as inline XML content
|
|
578
|
+
*/
|
|
579
|
+
delivery_type: 'inline';
|
|
580
|
+
/**
|
|
581
|
+
* Inline DAAST XML content
|
|
582
|
+
*/
|
|
583
|
+
content: string;
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Tracking events for audio ads. Aligned to the IAB DAAST 1.1 `Tracking@event` enumeration from §3.2.1.7 of the spec (creativeView, start, firstQuartile, midpoint, thirdQuartile, complete, mute, unmute, pause, rewind, resume, skip, progress) — plus `close` (referenced descriptively in DAAST 1.1 §3.2.4.2 contrasting it with `skip`), and AdCP-flattened representations of the `Impression`, `Error`, and click elements (`<Impression>`, `<Error>`, and the click children of `<AdInteractions>`) so a single declared list can cover everything a measurement vendor wants to track. `viewable` / `notViewable` / `viewUndetermined` and `measurableImpression` / `viewableImpression` are AdCP extensions for OM-SDK Audio measurability signals (DAAST 1.1 itself does not define a `<ViewableImpression>` element). DAAST 1.1 audio-incompatible video events are deliberately omitted: no `loaded`, `playerExpand` / `playerCollapse`, `fullscreen` / `exitFullscreen`, `acceptInvitation`, `adExpand` / `adCollapse`, `minimize`, `overlayViewDuration`, or `interactiveStart`.
|
|
588
|
+
*/
|
|
589
|
+
export type DAASTTrackingEvent = 'impression' | 'creativeView' | 'start' | 'firstQuartile' | 'midpoint' | 'thirdQuartile' | 'complete' | 'mute' | 'unmute' | 'pause' | 'resume' | 'rewind' | 'skip' | 'progress' | 'clickTracking' | 'customClick' | 'close' | 'error' | 'viewable' | 'notViewable' | 'viewUndetermined' | 'measurableImpression' | 'viewableImpression';
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* DAAST specification version
|
|
593
|
+
*/
|
|
594
|
+
export type DAASTVersion = '1.0' | '1.1';
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* IPTC-aligned classification of AI involvement in producing this content
|
|
598
|
+
*/
|
|
599
|
+
export type DigitalSourceType = 'digital_capture' | 'digital_creation' | 'trained_algorithmic_media' | 'composite_with_trained_algorithmic_media' | 'algorithmic_media' | 'composite_capture' | 'composite_synthetic' | 'human_edits' | 'data_driven_media';
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* How long the disclosure must persist during content playback or display
|
|
603
|
+
*/
|
|
604
|
+
export type DisclosurePersistence = 'continuous' | 'initial' | 'flexible';
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Where a required disclosure should appear within a creative. Used by creative briefs to specify disclosure placement and by formats to declare which positions they can render.
|
|
608
|
+
*/
|
|
609
|
+
export type DisclosurePosition = 'prominent' | 'footer' | 'audio' | 'subtitle' | 'overlay' | 'end_card' | 'pre_roll' | 'companion';
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* How provenance data is carried within the content
|
|
613
|
+
*/
|
|
614
|
+
export type EmbeddedProvenanceMethod = 'manifest_wrapper' | 'provenance_markers';
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Standard marketing event types for event logging, aligned with IAB ECAPI
|
|
618
|
+
*/
|
|
619
|
+
export type EventType = 'page_view' | 'view_content' | 'select_content' | 'select_item' | 'search' | 'share' | 'add_to_cart' | 'remove_from_cart' | 'viewed_cart' | 'add_to_wishlist' | 'initiate_checkout' | 'add_payment_info' | 'purchase' | 'refund' | 'lead' | 'qualify_lead' | 'close_convert_lead' | 'disqualify_lead' | 'complete_registration' | 'subscribe' | 'start_trial' | 'app_install' | 'app_launch' | 'contact' | 'schedule' | 'donate' | 'submit_application' | 'custom';
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Extension object for platform-specific, vendor-namespaced parameters. Extensions are always optional and must be namespaced under a vendor/platform key (e.g., ext.gam, ext.roku). Used for custom capabilities, partner-specific configuration, and features being proposed for standardization.
|
|
623
|
+
*/
|
|
624
|
+
export interface ExtensionObject {
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Format of the external feed at url. Required when url points to a non-AdCP feed (e.g., Google Merchant Center XML, Meta Product Catalog). Omit for offering-type catalogs where the feed is native AdCP JSON.
|
|
629
|
+
*/
|
|
630
|
+
export type FeedFormat = 'google_merchant_center' | 'facebook_catalog' | 'shopify' | 'linkedin_jobs' | 'custom';
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* A JSON object — never a plain string — that identifies a creative format by its declaring agent and local slug. Required properties: agent_url (URI of the agent that owns the format) and id (slug matching [a-zA-Z0-9_-]+). Example: {"agent_url": "https://creative.adcontextprotocol.org", "id": "display_300x250"}. Can reference: (1) a concrete format with fixed dimensions (id only), (2) a template format without parameters (id only), or (3) a template format with parameters (id + dimensions/duration). Template formats accept parameters in format_id while concrete formats have fixed dimensions in their definition. Parameterized format IDs create unique, specific format variants. Using a plain string here is a schema violation.
|
|
634
|
+
*/
|
|
635
|
+
export interface FormatReferenceStructuredObject {
|
|
636
|
+
/**
|
|
637
|
+
* URL of the agent that defines this format (e.g., 'https://creative.adcontextprotocol.org' for standard formats, or 'https://publisher.com/.well-known/adcp/sales' for custom formats). Callers comparing two `format-id` values MUST canonicalize `agent_url` per the AdCP URL canonicalization rules before treating two formats as the same. See docs/reference/url-canonicalization.
|
|
638
|
+
*/
|
|
639
|
+
agent_url: string;
|
|
640
|
+
/**
|
|
641
|
+
* Format identifier within the agent's namespace (e.g., 'display_static', 'video_hosted', 'audio_standard'). When used alone, references a template format. When combined with dimension/duration fields, creates a parameterized format ID for a specific variant.
|
|
642
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
643
|
+
*/
|
|
644
|
+
id: string;
|
|
645
|
+
/**
|
|
646
|
+
* Width in pixels for visual formats. When specified, height must also be specified. Both fields together create a parameterized format ID for dimension-specific variants.
|
|
647
|
+
* @minimum 1
|
|
648
|
+
*/
|
|
649
|
+
width?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Height in pixels for visual formats. When specified, width must also be specified. Both fields together create a parameterized format ID for dimension-specific variants.
|
|
652
|
+
* @minimum 1
|
|
653
|
+
*/
|
|
654
|
+
height?: number;
|
|
655
|
+
/**
|
|
656
|
+
* Duration in milliseconds for time-based formats (video, audio). When specified, creates a parameterized format ID. Omit to reference a template format without parameters.
|
|
657
|
+
* @minimum 1
|
|
658
|
+
*/
|
|
659
|
+
duration_ms?: number;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Whether the video uses a constant or variable frame rate. Broadcast and SSAI contexts require constant frame rate for seamless splicing.
|
|
664
|
+
*/
|
|
665
|
+
export type FrameRateType = 'constant' | 'variable';
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Group of Pictures structure. SSAI and broadcast require closed GOPs for clean splice points; open GOPs may produce artifacts at ad boundaries.
|
|
669
|
+
*/
|
|
670
|
+
export type GOPType = 'closed' | 'open';
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Inline HTML content asset. For URL-delivered HTML5 banner bundles, use the zip asset type instead. For single-URL iframe-rendered tag references, use the url asset type with an appropriate url_type.
|
|
674
|
+
*/
|
|
675
|
+
export interface HTMLAsset {
|
|
676
|
+
/**
|
|
677
|
+
* Discriminator identifying this as an HTML asset. See /schemas/creative/asset-types for the registry.
|
|
678
|
+
*/
|
|
679
|
+
asset_type: 'html';
|
|
680
|
+
/**
|
|
681
|
+
* HTML content
|
|
682
|
+
*/
|
|
683
|
+
content: string;
|
|
684
|
+
/**
|
|
685
|
+
* HTML version (e.g., 'HTML5')
|
|
686
|
+
*/
|
|
687
|
+
version?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Self-declared accessibility properties for this opaque creative
|
|
690
|
+
*/
|
|
691
|
+
accessibility?: {
|
|
692
|
+
/**
|
|
693
|
+
* Text alternative describing the creative content
|
|
694
|
+
*/
|
|
695
|
+
alt_text?: string;
|
|
696
|
+
/**
|
|
697
|
+
* Whether the creative can be fully operated via keyboard
|
|
698
|
+
*/
|
|
699
|
+
keyboard_navigable?: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Whether the creative respects prefers-reduced-motion or provides pause/stop controls
|
|
702
|
+
*/
|
|
703
|
+
motion_control?: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Whether the creative has been tested with screen readers
|
|
706
|
+
*/
|
|
707
|
+
screen_reader_tested?: boolean;
|
|
708
|
+
};
|
|
709
|
+
provenance?: Provenance;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* HTTP method
|
|
714
|
+
*/
|
|
715
|
+
export type HTTPMethod = 'GET' | 'POST';
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Override logo asset.
|
|
719
|
+
*/
|
|
720
|
+
export interface ImageAsset {
|
|
721
|
+
/**
|
|
722
|
+
* Discriminator identifying this as an image asset. See /schemas/creative/asset-types for the registry.
|
|
723
|
+
*/
|
|
724
|
+
asset_type: 'image';
|
|
725
|
+
/**
|
|
726
|
+
* URL to the image asset
|
|
727
|
+
*/
|
|
728
|
+
url: string;
|
|
729
|
+
/**
|
|
730
|
+
* Width in pixels
|
|
731
|
+
* @minimum 1
|
|
732
|
+
*/
|
|
733
|
+
width: number;
|
|
734
|
+
/**
|
|
735
|
+
* Height in pixels
|
|
736
|
+
* @minimum 1
|
|
737
|
+
*/
|
|
738
|
+
height: number;
|
|
739
|
+
/**
|
|
740
|
+
* Image file format (jpg, png, gif, webp, etc.)
|
|
741
|
+
*/
|
|
742
|
+
format?: string;
|
|
743
|
+
/**
|
|
744
|
+
* Alternative text for accessibility
|
|
745
|
+
*/
|
|
746
|
+
alt_text?: string;
|
|
747
|
+
provenance?: Provenance;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* An industry-standard identifier for an advertising creative (e.g., Ad-ID, ISCI, Clearcast clock number). These identifiers are managed by external registries and used across the supply chain to track and reference specific creative assets.
|
|
752
|
+
*/
|
|
753
|
+
export interface IndustryIdentifier {
|
|
754
|
+
type: CreativeIdentifierType;
|
|
755
|
+
/**
|
|
756
|
+
* The identifier value (e.g., 'ABCD1234000H' for Ad-ID)
|
|
757
|
+
* @maxLength 64
|
|
758
|
+
*/
|
|
759
|
+
value: string;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Inline JavaScript content asset. For URL-delivered third-party tag scripts, use the url asset type with url_type 'tracker_script'. For HTML5 banner bundles that include JavaScript, use the zip asset type.
|
|
764
|
+
*/
|
|
765
|
+
export interface JavaScriptAsset {
|
|
766
|
+
/**
|
|
767
|
+
* Discriminator identifying this as a JavaScript asset. See /schemas/creative/asset-types for the registry.
|
|
768
|
+
*/
|
|
769
|
+
asset_type: 'javascript';
|
|
770
|
+
/**
|
|
771
|
+
* JavaScript content
|
|
772
|
+
*/
|
|
773
|
+
content: string;
|
|
774
|
+
module_type?: JavaScriptModuleType;
|
|
775
|
+
/**
|
|
776
|
+
* Self-declared accessibility properties for this opaque creative
|
|
777
|
+
*/
|
|
778
|
+
accessibility?: {
|
|
779
|
+
/**
|
|
780
|
+
* Text alternative describing the creative content
|
|
781
|
+
*/
|
|
782
|
+
alt_text?: string;
|
|
783
|
+
/**
|
|
784
|
+
* Whether the creative can be fully operated via keyboard
|
|
785
|
+
*/
|
|
786
|
+
keyboard_navigable?: boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Whether the creative respects prefers-reduced-motion or provides pause/stop controls
|
|
789
|
+
*/
|
|
790
|
+
motion_control?: boolean;
|
|
791
|
+
/**
|
|
792
|
+
* Whether the creative has been tested with screen readers
|
|
793
|
+
*/
|
|
794
|
+
screen_reader_tested?: boolean;
|
|
795
|
+
};
|
|
796
|
+
provenance?: Provenance;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* JavaScript module type
|
|
801
|
+
*/
|
|
802
|
+
export type JavaScriptModuleType = 'esm' | 'commonjs' | 'script';
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Markdown-formatted text content following CommonMark specification
|
|
806
|
+
*/
|
|
807
|
+
export interface MarkdownAsset {
|
|
808
|
+
/**
|
|
809
|
+
* Discriminator identifying this as a markdown asset. See /schemas/creative/asset-types for the registry.
|
|
810
|
+
*/
|
|
811
|
+
asset_type: 'markdown';
|
|
812
|
+
/**
|
|
813
|
+
* Markdown content following CommonMark spec with optional GitHub Flavored Markdown extensions
|
|
814
|
+
*/
|
|
815
|
+
content: string;
|
|
816
|
+
/**
|
|
817
|
+
* Language code (e.g., 'en', 'es', 'fr')
|
|
818
|
+
*/
|
|
819
|
+
language?: string;
|
|
820
|
+
markdown_flavor?: MarkdownFlavor;
|
|
821
|
+
/**
|
|
822
|
+
* Whether raw HTML blocks are allowed in the markdown. False recommended for security.
|
|
823
|
+
*/
|
|
824
|
+
allow_raw_html?: boolean;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Markdown flavor used. CommonMark for strict compatibility, GFM for tables/task lists/strikethrough.
|
|
829
|
+
*/
|
|
830
|
+
export type MarkdownFlavor = 'commonmark' | 'gfm';
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Position of the moov atom in an MP4 container. 'start' enables progressive download without buffering the entire file; required for streaming ad delivery.
|
|
834
|
+
*/
|
|
835
|
+
export type MoovAtomPosition = 'start' | 'end';
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* REQUIRED when `format_kind: "custom"`; otherwise MUST be absent. URI+digest reference to a fetchable schema describing this custom shape's actual `params` and `slots`. Same hosting model as `platform_extensions`: open-ecosystem publishers host the artifact at the canonical URI on their subdomain; closed-platform / walled-garden shapes resolve through the AAO mirror at `https://creative.adcontextprotocol.org/translated/...`. Buyer agents fetch by `uri@digest` (immutable per digest, aggressive caching, `Cache-Control: public, max-age=31536000, immutable`), validate `params` and `slots` against the fetched schema, and reason about manifests structurally — same mechanic as platform_extensions but at the format-structure level. Without `format_schema`, custom shapes would be opaque to buyer agents and the protocol would regress to per-seller integration code; that's why the schema is required, not optional.
|
|
839
|
+
*
|
|
840
|
+
* **Fetch contract (normative)** — `format_schema` is load-bearing for validation (unlike `platform_extensions`, which is informational on the *consumption* side). The *transport* rules below apply identically to BOTH fields — any SDK fetching a `platform-extension-ref.json` URI MUST apply this contract regardless of whether the field name is `format_schema` or `platform_extensions`. A shared SDK fetch path that drops to the weakest bar undermines `format_schema`'s hardening. The consumption distinction (load-bearing vs informational) is about *what the body means*; the transport distinction is `https`-and-allowlisted regardless.
|
|
841
|
+
*
|
|
842
|
+
* - **Transport**: `https` only. Buyers MUST reject `http://`, `file://`, `data:`, and any non-`https` scheme. The URI MUST resolve to a JSON document that is itself a valid JSON Schema (Draft 07 or 2020-12; producers MUST declare `$schema`).
|
|
843
|
+
* - **SSRF protection**: buyers MUST resolve the URI hostname and reject if any resolved address is in RFC 1918 private space (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`), loopback (`127.0.0.0/8`, `::1`), link-local (`169.254.0.0/16`, `fe80::/10`), CGNAT (`100.64.0.0/10`), or any RFC 6761 special-use name (`.local`, `.localhost`, `.internal`, `.test`, `.example`, `.invalid`). Cloud metadata endpoints (`169.254.169.254`, `metadata.google.internal`, `kubernetes.default.svc`) are explicitly forbidden — these are credential-leak primitives. Buyers MUST pin the connection to the resolved IP (or re-resolve and re-validate the allowlist per request) to defeat DNS rebinding.
|
|
844
|
+
* - **HTTP redirects**: MUST be disabled. If a follow is implemented at all, the redirect target MUST pass the same scheme + SSRF + allowlist checks; otherwise the fetch hard-fails. Open redirects on same-origin paths are otherwise a free SSRF primitive.
|
|
845
|
+
* - **Response size cap**: response body MUST be capped at 1 MiB. Enforce during streaming, not after full buffering. Over-cap hard-fails identically to digest mismatch.
|
|
846
|
+
* - **Timeout**: SDKs SHOULD apply a fetch timeout ≤5 seconds. Timeout SHOULD be treated identically to an HTTP 5xx response (transient — retry policy at the SDK's discretion; on persistent failure surface as unresolved and skip the declaration for this session).
|
|
847
|
+
* - **Digest verification**: SHA-256 of the response body MUST equal `digest`. **Digest mismatch is a hard fail** — the buyer MUST treat the format declaration as unresolvable and MUST NOT validate manifests against the mismatched body. A divergent digest is either a malicious substitution or producer error; either way, falling back to the un-verified body breaks the trust model. Digest format: `sha256:` prefix + 64 lowercase hex characters. Cache key is `uri@digest`; digest mismatch MUST NOT be cached as a negative result keyed on `uri` alone (defeats CDN-flap recovery), and MUST be distinguishable in telemetry from network 5xx / 404 (sustained mismatch is a substitution-attack signal, not a flap).
|
|
848
|
+
* - **Sandboxing of `$ref`**: fetched schemas MAY use `$ref`. Buyers MUST resolve `$ref` only to URIs that are (a) same-origin as the parent `format_schema.uri` after RFC 3986 §6 normalization (lowercase scheme + host, strip default port, normalize path dot-segments, no userinfo component), OR (b) hosted under the AAO catalog domain (`https://creative.adcontextprotocol.org/...`), OR (c) intra-document JSON Pointer refs (`#/...`) bounded to the parent document's parsed tree. Cross-origin `$ref` to arbitrary URIs MUST be rejected. `$ref: file://...` MUST be rejected unconditionally. Transitive `$ref` chains MUST be bounded at depth ≤8 AND `$ref` count ≤256 across the resolved tree (depth 8 with breadth 100 per level is 10^16 nodes — depth alone is not enough). Publishers SHOULD inline rather than $ref where possible.
|
|
849
|
+
* - **Schema-compile bounds (DoS protection)**: validators MUST bound CPU/memory on fetched schemas. Recommended: compiled-schema keyword count ≤10 000, `pattern` regexes evaluated with a non-backtracking engine (re2) OR under a per-pattern timeout, per-manifest validation budget ≤250 ms (exceeded budget → treat manifest as invalid, surface telemetry signal). Without these, a 'valid' schema with catastrophic regex backtracking or exponential `allOf`/`anyOf` expansion pins a CPU forever.
|
|
850
|
+
* - **Cache**: buyers cache fetched schemas by `uri@digest` and treat them as immutable (the same hosting contract as `platform_extensions`). On `404`, network partition, or persistent fetch failure, buyers SHOULD degrade gracefully (treat the declaration as unresolved, skip it for the current `get_products` response, surface via `errors[]` with the relevant code) rather than failing the entire session.
|
|
851
|
+
* - **Schema-not-valid handling**: if the fetched body parses as JSON but is not a valid JSON Schema, the buyer MUST treat the declaration as unresolvable (same as digest mismatch) and surface via `errors[]`. Validators MUST NOT attempt partial validation against an invalid schema.
|
|
852
|
+
* - **AAO catalog trust**: `https://creative.adcontextprotocol.org/*` is a single trust anchor in the same-origin allowlist; compromise of the catalog domain or its CA compromises every buyer agent. Catalog-served bodies MUST be digest-pinned identically to origin fetches (the digest is on the *parent* `format_schema.uri@digest`, not on the catalog response). Future hardening (signed bodies, transparency log) is tracked separately.
|
|
853
|
+
*/
|
|
854
|
+
export interface PlatformExtensionReference {
|
|
855
|
+
/**
|
|
856
|
+
* HTTPS URL identifying the extension. `https://` is mandatory — `http://`, `file://`, `data:`, and other schemes are rejected at the schema layer (defense-in-depth on top of the fetch-contract normative rules). The URI base is the owning agent's URL; the path identifies the extension within that agent. Example: 'https://creative.adcontextprotocol.org/translated/meta/extensions/meta_pixel'. The full fetch contract — SSRF allowlist, response-size cap, $ref sandbox, schema-compile bounds — is documented on `product-format-declaration.json#format_schema` and applies to ALL fetches of this reference shape regardless of whether the field is named `format_schema` (load-bearing for validation) or `platform_extensions` (informational); the *transport* rules are identical, only the *consumption* semantics differ.
|
|
857
|
+
* @pattern ^https:\/\/
|
|
858
|
+
*/
|
|
859
|
+
uri: string;
|
|
860
|
+
/**
|
|
861
|
+
* SHA-256 content digest of the extension definition (sha256:<hex>). Used to detect drift — if the agent revises the extension, the digest changes and cached definitions become invalid.
|
|
862
|
+
* @pattern ^sha256:[a-f0-9]{64}$
|
|
863
|
+
*/
|
|
864
|
+
digest: string;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
export interface ProductTarget {
|
|
868
|
+
kind: 'product';
|
|
869
|
+
/**
|
|
870
|
+
* Product ID. Validators check the manifest against the product's inline `ProductFormatDeclaration` narrowing of the canonical (parameter constraints, slot requirements, platform extensions).
|
|
871
|
+
*/
|
|
872
|
+
id: string;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Provenance metadata for this asset, overrides manifest-level provenance
|
|
877
|
+
*/
|
|
878
|
+
export interface Provenance {
|
|
879
|
+
digital_source_type?: DigitalSourceType;
|
|
880
|
+
/**
|
|
881
|
+
* AI system used to generate or modify this content. Aligns with IPTC 2025.1 AI metadata fields and C2PA claim_generator.
|
|
882
|
+
*/
|
|
883
|
+
ai_tool?: {
|
|
884
|
+
/**
|
|
885
|
+
* Name of the AI tool or model (e.g., 'DALL-E 3', 'Stable Diffusion XL', 'Gemini')
|
|
886
|
+
*/
|
|
887
|
+
name: string;
|
|
888
|
+
/**
|
|
889
|
+
* Version identifier for the AI tool or model (e.g., '25.1', '0125', '2.1'). For generative models, use the model version rather than the API version.
|
|
890
|
+
*/
|
|
891
|
+
version?: string;
|
|
892
|
+
/**
|
|
893
|
+
* Organization that provides the AI tool (e.g., 'OpenAI', 'Stability AI', 'Google')
|
|
894
|
+
*/
|
|
895
|
+
provider?: string;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Level of human involvement in the AI-assisted creation process. Independent of `disclosure.required` — the protocol does not derive disclosure obligations from oversight level. Some regulations include carve-outs for human-edited or human-directed AI output, but those carve-outs have factual prerequisites the schema cannot evaluate. Asserting `edited` or `directed` does not by itself justify `disclosure.required: false`.
|
|
899
|
+
*/
|
|
900
|
+
human_oversight?: 'none' | 'prompt_only' | 'selected' | 'edited' | 'directed';
|
|
901
|
+
/**
|
|
902
|
+
* Party declaring this provenance. Identifies who attached the provenance claim, enabling receiving parties to assess trust.
|
|
903
|
+
*/
|
|
904
|
+
declared_by?: {
|
|
905
|
+
/**
|
|
906
|
+
* URL of the agent or service that declared this provenance
|
|
907
|
+
*/
|
|
908
|
+
agent_url?: string;
|
|
909
|
+
/**
|
|
910
|
+
* Role of the declaring party in the supply chain
|
|
911
|
+
*/
|
|
912
|
+
role: 'creator' | 'advertiser' | 'agency' | 'platform' | 'tool';
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* When this provenance claim was made (ISO 8601). Distinct from created_time, which records when the content itself was produced. A provenance claim may be attached well after content creation, for example when retroactively declaring AI involvement for regulatory compliance.
|
|
916
|
+
* @format date-time
|
|
917
|
+
*/
|
|
918
|
+
declared_at?: string;
|
|
919
|
+
/**
|
|
920
|
+
* When this content was created or generated (ISO 8601)
|
|
921
|
+
* @format date-time
|
|
922
|
+
*/
|
|
923
|
+
created_time?: string;
|
|
924
|
+
/**
|
|
925
|
+
* C2PA sidecar manifest reference. Links to a detached cryptographic provenance manifest for this content. Note: file-level C2PA bindings break when ad servers transcode, resize, or re-encode assets. For pipelines with intermediaries, consider embedded_provenance as the primary provenance mechanism.
|
|
926
|
+
*/
|
|
927
|
+
c2pa?: {
|
|
928
|
+
/**
|
|
929
|
+
* URL to the C2PA manifest store for this content
|
|
930
|
+
*/
|
|
931
|
+
manifest_url: string;
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
* Provenance metadata embedded within the content stream. Each entry declares one embedding layer: structured provenance data carried inside the content itself, as distinct from sidecar references (c2pa.manifest_url). Embedded provenance survives operations that break sidecar and file-level bindings: ad-server transcoding, CMS ingestion, copy-paste, reformatting, and CDN re-encoding. For ad-tech pipelines where content passes through multiple intermediaries, embedded provenance is the reliable path for provenance that persists from declaration through delivery. This is a declaration by the embedding party. The receiving party (the seller) is the verifier-of-record: it confirms the claim by calling a governance agent it trusts (typically one published in `creative_policy.accepted_verifiers`).
|
|
935
|
+
*/
|
|
936
|
+
embedded_provenance?: {
|
|
937
|
+
method: EmbeddedProvenanceMethod;
|
|
938
|
+
/**
|
|
939
|
+
* Standard the embedding conforms to, if any (e.g., 'c2pa' for C2PA Section A.7 text manifest embedding)
|
|
940
|
+
*/
|
|
941
|
+
standard?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Organization that performed the embedding (e.g., 'Encypher', 'Digimarc'). Display label and audit context — not a wire identifier.
|
|
944
|
+
*/
|
|
945
|
+
provider: string;
|
|
946
|
+
/**
|
|
947
|
+
* Buyer's representation that this embedding can be verified by a governance agent on the seller's `creative_policy.accepted_verifiers` list. The `agent_url` MUST match (canonicalized) one of the seller's published `accepted_verifiers[].agent_url` entries; sellers reject `sync_creatives` submissions whose `verify_agent.agent_url` is off-list with `PROVENANCE_VERIFIER_NOT_ACCEPTED`. This is buyer-supplied evidence, not buyer-driven routing — the seller is the verifier-of-record and the seller controls which agent it actually calls (the seller MAY use a different on-list agent if it determines this is more appropriate; the seller does not call buyer-asserted endpoints outside its allowlist). MAY be omitted for self-verifiable embeddings (e.g., a C2PA text manifest with a public key the seller already trusts).
|
|
948
|
+
*/
|
|
949
|
+
verify_agent?: {
|
|
950
|
+
/**
|
|
951
|
+
* URL of the governance agent the buyer represents was used to embed/verify this layer. MUST use the `https://` scheme and MUST appear in the seller's `creative_policy.accepted_verifiers[].agent_url` list (canonicalized per /docs/reference/url-canonicalization: lowercase scheme and host, strip default port, normalize path dot-segments). Sellers MUST NOT call this URL until the canonicalized match is confirmed.
|
|
952
|
+
* @pattern ^https:\/\/
|
|
953
|
+
*/
|
|
954
|
+
agent_url: string;
|
|
955
|
+
/**
|
|
956
|
+
* Optional `feature_id` the buyer represents the seller should request via `get_creative_features` (e.g., `encypher.markers_present_v2`). SHOULD match the `feature_id` declared on the matching `accepted_verifiers[]` entry, or be omitted to defer the selector to the seller. When the seller's entry pins a `feature_id`, that value wins; when neither side pins, the seller selects from the agent's `governance.creative_features` catalog.
|
|
957
|
+
*/
|
|
958
|
+
feature_id?: string;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* When the provenance data was embedded (ISO 8601)
|
|
962
|
+
* @format date-time
|
|
963
|
+
*/
|
|
964
|
+
embedded_at?: string;
|
|
965
|
+
}[];
|
|
966
|
+
/**
|
|
967
|
+
* Content watermarks applied to this asset. Each entry declares one watermarking layer: a content modification that encodes an identifier or fingerprint within the asset. Watermarks differ from embedded provenance: a watermark encodes an identifier (who generated it, who owns it), while embedded provenance carries or references a structured provenance record (the full chain of custody). A single asset may carry both. Aligns with C2PA action taxonomy: c2pa.watermarked.bound (watermark linked to a C2PA manifest) and c2pa.watermarked.unbound (watermark independent of any manifest). This is a declaration by the watermarking party. The receiving party (the seller) is the verifier-of-record: it confirms the claim by calling a governance agent it trusts (typically one published in `creative_policy.accepted_verifiers`).
|
|
968
|
+
*/
|
|
969
|
+
watermarks?: {
|
|
970
|
+
media_type: WatermarkMediaType;
|
|
971
|
+
/**
|
|
972
|
+
* Organization that applied the watermark (e.g., 'Imatag', 'Steg.AI', 'Encypher'). Display label and audit context — not a wire identifier.
|
|
973
|
+
*/
|
|
974
|
+
provider: string;
|
|
975
|
+
/**
|
|
976
|
+
* Buyer's representation that this watermark can be detected by a governance agent on the seller's `creative_policy.accepted_verifiers` list. The `agent_url` MUST match (canonicalized) one of the seller's published `accepted_verifiers[].agent_url` entries; sellers reject `sync_creatives` submissions whose `verify_agent.agent_url` is off-list with `PROVENANCE_VERIFIER_NOT_ACCEPTED`. This is buyer-supplied evidence, not buyer-driven routing — the seller is the verifier-of-record and the seller controls which agent it actually calls (the seller MAY use a different on-list agent if it determines this is more appropriate; the seller does not call buyer-asserted endpoints outside its allowlist).
|
|
977
|
+
*/
|
|
978
|
+
verify_agent?: {
|
|
979
|
+
/**
|
|
980
|
+
* URL of the governance agent the buyer represents was used to apply/detect this watermark. MUST use the `https://` scheme and MUST appear in the seller's `creative_policy.accepted_verifiers[].agent_url` list (canonicalized per /docs/reference/url-canonicalization: lowercase scheme and host, strip default port, normalize path dot-segments). Sellers MUST NOT call this URL until the canonicalized match is confirmed.
|
|
981
|
+
* @pattern ^https:\/\/
|
|
982
|
+
*/
|
|
983
|
+
agent_url: string;
|
|
984
|
+
/**
|
|
985
|
+
* Optional `feature_id` the buyer represents the seller should request via `get_creative_features` (e.g., `imatag.watermark_detected`). SHOULD match the `feature_id` declared on the matching `accepted_verifiers[]` entry, or be omitted to defer the selector to the seller. When the seller's entry pins a `feature_id`, that value wins; when neither side pins, the seller selects from the agent's `governance.creative_features` catalog.
|
|
986
|
+
*/
|
|
987
|
+
feature_id?: string;
|
|
988
|
+
};
|
|
989
|
+
c2pa_action?: C2PAWatermarkAction;
|
|
990
|
+
/**
|
|
991
|
+
* When the watermark was applied (ISO 8601)
|
|
992
|
+
* @format date-time
|
|
993
|
+
*/
|
|
994
|
+
embedded_at?: string;
|
|
995
|
+
}[];
|
|
996
|
+
/**
|
|
997
|
+
* Regulatory disclosure requirements for this content. Indicates whether AI disclosure is required and under which jurisdictions.
|
|
998
|
+
*/
|
|
999
|
+
disclosure?: {
|
|
1000
|
+
/**
|
|
1001
|
+
* The declaring party's claim that AI disclosure is required for this content under applicable regulations. This is a declared signal carried through the supply chain — useful as a routing and audit input — not a regulatory determination made by the protocol. Receiving parties remain responsible for their own jurisdictional analysis and should not treat `required: false` as compliance cover.
|
|
1002
|
+
*/
|
|
1003
|
+
required: boolean;
|
|
1004
|
+
/**
|
|
1005
|
+
* Jurisdictions where disclosure obligations apply
|
|
1006
|
+
*/
|
|
1007
|
+
jurisdictions?: {
|
|
1008
|
+
/**
|
|
1009
|
+
* ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'CN')
|
|
1010
|
+
*/
|
|
1011
|
+
country: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Sub-national region code (e.g., 'CA' for California, 'BY' for Bavaria)
|
|
1014
|
+
*/
|
|
1015
|
+
region?: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* Regulation identifier (e.g., 'eu_ai_act_article_50', 'ca_sb_942', 'cn_deep_synthesis')
|
|
1018
|
+
*/
|
|
1019
|
+
regulation: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Required disclosure label text for this jurisdiction, in the local language
|
|
1022
|
+
*/
|
|
1023
|
+
label_text?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* How the disclosure should be rendered for this jurisdiction. Expresses the declaring party's intent for persistence and position based on regulatory requirements. Publishers control actual rendering but governance agents can audit whether guidance was followed.
|
|
1026
|
+
*/
|
|
1027
|
+
render_guidance?: {
|
|
1028
|
+
persistence?: DisclosurePersistence;
|
|
1029
|
+
/**
|
|
1030
|
+
* Minimum display duration in milliseconds for initial persistence. Recommended when persistence is initial — without it, the duration is at the publisher's discretion. At serve time the publisher reads this from provenance since the brief is not available.
|
|
1031
|
+
* @minimum 1
|
|
1032
|
+
*/
|
|
1033
|
+
min_duration_ms?: number;
|
|
1034
|
+
/**
|
|
1035
|
+
* Preferred disclosure positions in priority order. The first position a format supports should be used.
|
|
1036
|
+
*/
|
|
1037
|
+
positions?: DisclosurePosition[];
|
|
1038
|
+
ext?: ExtensionObject;
|
|
1039
|
+
};
|
|
1040
|
+
}[];
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* Third-party verification or detection results for this content. Multiple services may independently evaluate the same content. Provenance is a claim — verification results attached by the declaring party are supplementary. The enforcing party (e.g., seller/publisher) should run its own verification via get_creative_features or calibrate_content.
|
|
1044
|
+
*/
|
|
1045
|
+
verification?: {
|
|
1046
|
+
/**
|
|
1047
|
+
* Name of the verification service (e.g., 'DoubleVerify', 'Hive Moderation', 'Reality Defender')
|
|
1048
|
+
*/
|
|
1049
|
+
verified_by: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* When the verification was performed (ISO 8601)
|
|
1052
|
+
* @format date-time
|
|
1053
|
+
*/
|
|
1054
|
+
verified_time?: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* Verification outcome
|
|
1057
|
+
*/
|
|
1058
|
+
result: 'authentic' | 'ai_generated' | 'ai_modified' | 'inconclusive';
|
|
1059
|
+
/**
|
|
1060
|
+
* Confidence score of the verification result (0.0 to 1.0)
|
|
1061
|
+
* @minimum 0
|
|
1062
|
+
* @maximum 1
|
|
1063
|
+
*/
|
|
1064
|
+
confidence?: number;
|
|
1065
|
+
/**
|
|
1066
|
+
* URL to the full verification report
|
|
1067
|
+
*/
|
|
1068
|
+
details_url?: string;
|
|
1069
|
+
}[];
|
|
1070
|
+
ext?: ExtensionObject;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Push notification configuration for async task updates (A2A and REST protocols). Echoed from the request to confirm webhook settings. Specifies URL, authentication scheme (Bearer or HMAC-SHA256), and credentials. MCP uses progress notifications instead of webhooks.
|
|
1075
|
+
*/
|
|
1076
|
+
export interface PushNotificationConfig {
|
|
1077
|
+
/**
|
|
1078
|
+
* Webhook endpoint URL for task status notifications. The wire contract is unconstrained beyond `format: "uri"` — in particular, publishers SHOULD NOT enforce a destination-port allowlist by default, since buyers legitimately host receivers on non-standard TLS ports (`:9443`, `:4443`, path-routed multi-tenant gateways). The SSRF guard the protocol relies on is the IP-range check + DNS-rebinding-resistant connect pin defined in [Webhook URL validation (SSRF)](/docs/building/by-layer/L1/security#webhook-url-validation-ssrf), not port filtering. Operators who want a hardened destination-port allowlist as defense-in-depth (e.g., locked-down enterprise egress) opt in explicitly — see [Destination port: permissive by default](/docs/building/by-layer/L1/security#destination-port-permissive-by-default).
|
|
1079
|
+
*/
|
|
1080
|
+
url: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* Buyer-supplied correlation identifier for the operation that will produce webhooks against this registration. The seller MUST echo this value verbatim into every webhook payload's `operation_id` field (see [`mcp-webhook-payload.json`](/schemas/core/mcp-webhook-payload.json) and [Webhooks — Operation IDs](/docs/building/by-layer/L3/webhooks#operation-ids-and-url-templates)). Buyers SHOULD generate a unique value per task invocation (UUID recommended). This field is the canonical registration channel for `operation_id`; buyers MAY additionally embed the same value in the URL path or query as a routing aid for their own HTTP server, but the URL is opaque to the seller and the wire-level source of truth is this field. Sellers MUST NOT parse the URL to recover `operation_id`. Sellers that receive a webhook registration without `operation_id` MAY reject the task with `INVALID_REQUEST`.
|
|
1083
|
+
* @minLength 1
|
|
1084
|
+
* @maxLength 255
|
|
1085
|
+
* @pattern ^[A-Za-z0-9_.:-]{1,255}$
|
|
1086
|
+
*/
|
|
1087
|
+
operation_id?: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* Optional client-provided token for webhook validation. The seller MUST echo this value verbatim in every webhook payload's `token` field (see [`mcp-webhook-payload.json`](/schemas/core/mcp-webhook-payload.json) for the receiver-side validation obligation). Length bounds give receivers a defensive range check on the echoed value; senders SHOULD generate tokens with at least 128 bits of entropy (≥22 base64url characters). This is a complementary authenticity mechanism that can layer on top of the RFC 9421 webhook signature — unlike the `authentication` block below, it is not on the 4.0 removal track. Receivers that registered both a signing key (RFC 9421) and a `token` MUST NOT treat a valid token echo as authorization to skip signature verification; both checks remain independent obligations.
|
|
1090
|
+
* @minLength 16
|
|
1091
|
+
* @maxLength 4096
|
|
1092
|
+
*/
|
|
1093
|
+
token?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* Legacy authentication configuration (A2A-compatible). Opts the seller into Bearer or HMAC-SHA256 signing instead of the default RFC 9421 webhook profile. Deprecated; removed in AdCP 4.0. **Precedence is a switch, not a fallback:** presence of this block selects the legacy scheme; absence selects 9421. A seller MUST NOT sign the same webhook both ways, and a buyer MUST NOT attempt 'try 9421 first, fall back to HMAC' verification — signature mode is determined solely by whether this block was present at registration time. The seller's baseline 9421 webhook-signing key published at its brand.json `agents[]` `jwks_uri` does not override this selector; it is always discoverable but only used when `authentication` is omitted. See docs/building/implementation/security.mdx#webhook-callbacks for the full precedence and downgrade-resistance rules (including the `webhook_mode_mismatch` rejection a buyer MUST apply when a received webhook's signing mode does not match the registered mode).
|
|
1096
|
+
*/
|
|
1097
|
+
authentication?: {
|
|
1098
|
+
/**
|
|
1099
|
+
* Array of authentication schemes. Supported: ['Bearer'] for simple token auth, ['HMAC-SHA256'] for legacy shared-secret signing. Both are deprecated; new integrations SHOULD omit `authentication` and use the RFC 9421 webhook profile.
|
|
1100
|
+
*/
|
|
1101
|
+
schemes: AuthenticationScheme[];
|
|
1102
|
+
/**
|
|
1103
|
+
* Credentials for the legacy scheme. For Bearer: token sent in Authorization header. For HMAC-SHA256: shared secret used to generate signature. Minimum 32 characters. Exchanged out-of-band during onboarding.
|
|
1104
|
+
* @minLength 32
|
|
1105
|
+
*/
|
|
1106
|
+
credentials: string;
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* A reference asset that provides creative context. Carries visual materials (mood boards, product shots, example creatives) with semantic roles that tell creative agents how to use them.
|
|
1112
|
+
*/
|
|
1113
|
+
export interface ReferenceAsset {
|
|
1114
|
+
/**
|
|
1115
|
+
* URL to the reference asset (image, video, or document)
|
|
1116
|
+
*/
|
|
1117
|
+
url: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* How the creative agent should use this asset. style_reference: match the visual style; product_shot: include this product; mood_board: overall look and feel; example_creative: example of a similar execution; logo: logo to use; strategy_doc: strategy or planning document for context; storyboard: sequential visual direction for video or multi-scene creative
|
|
1120
|
+
*/
|
|
1121
|
+
role: 'style_reference' | 'product_shot' | 'mood_board' | 'example_creative' | 'logo' | 'strategy_doc' | 'storyboard';
|
|
1122
|
+
/**
|
|
1123
|
+
* Human-readable description of the asset and how it should inform creative generation
|
|
1124
|
+
*/
|
|
1125
|
+
description?: string;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Type of rights (talent, music, etc.). Helps identify constraints when a creative combines multiple rights types.
|
|
1130
|
+
*/
|
|
1131
|
+
export type RightType = 'talent' | 'character' | 'brand_ip' | 'music' | 'stock_media';
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Types of rights usage that can be licensed through the brand protocol. Aligned with DDEX UseType direction for interoperability with music and media rights systems.
|
|
1135
|
+
*/
|
|
1136
|
+
export type RightUse = 'likeness' | 'voice' | 'name' | 'endorsement' | 'motion_capture' | 'signature' | 'catchphrase' | 'sync' | 'background_music' | 'editorial' | 'commercial' | 'ai_generated_image';
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Rights metadata attached to a creative manifest. Each entry represents constraints from a single rights holder. A creative may combine multiple rights constraints (e.g., talent likeness + music license). For v1, rights constraints are informational metadata — the buyer/orchestrator manages creative lifecycle against these terms.
|
|
1140
|
+
*/
|
|
1141
|
+
export interface RightsConstraint {
|
|
1142
|
+
/**
|
|
1143
|
+
* Rights grant identifier from the acquire_rights response
|
|
1144
|
+
*/
|
|
1145
|
+
rights_id: string;
|
|
1146
|
+
/**
|
|
1147
|
+
* The agent that granted these rights
|
|
1148
|
+
*/
|
|
1149
|
+
rights_agent: {
|
|
1150
|
+
/**
|
|
1151
|
+
* MCP endpoint URL of the rights agent
|
|
1152
|
+
*/
|
|
1153
|
+
url: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* Agent identifier
|
|
1156
|
+
*/
|
|
1157
|
+
id: string;
|
|
1158
|
+
};
|
|
1159
|
+
/**
|
|
1160
|
+
* Start of the rights validity period
|
|
1161
|
+
* @format date-time
|
|
1162
|
+
*/
|
|
1163
|
+
valid_from?: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* End of the rights validity period. Creative should not be served after this time.
|
|
1166
|
+
* @format date-time
|
|
1167
|
+
*/
|
|
1168
|
+
valid_until?: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* Rights uses covered by this constraint
|
|
1171
|
+
*/
|
|
1172
|
+
uses: RightUse[];
|
|
1173
|
+
/**
|
|
1174
|
+
* Countries where this creative may be served under these rights (ISO 3166-1 alpha-2). If omitted, no country restriction. When both countries and excluded_countries are present, the effective set is countries minus excluded_countries.
|
|
1175
|
+
*/
|
|
1176
|
+
countries?: string[];
|
|
1177
|
+
/**
|
|
1178
|
+
* Countries excluded from rights availability (ISO 3166-1 alpha-2). Use when the grant is worldwide except specific markets.
|
|
1179
|
+
*/
|
|
1180
|
+
excluded_countries?: string[];
|
|
1181
|
+
/**
|
|
1182
|
+
* Maximum total impressions allowed for the full validity period (valid_from to valid_until). This is the absolute cap across all creatives using this rights grant, not a per-creative or per-period limit.
|
|
1183
|
+
* @minimum 1
|
|
1184
|
+
*/
|
|
1185
|
+
impression_cap?: number;
|
|
1186
|
+
right_type?: RightType;
|
|
1187
|
+
/**
|
|
1188
|
+
* Approval status from the rights holder at manifest creation time (snapshot, not a live value)
|
|
1189
|
+
*/
|
|
1190
|
+
approval_status?: 'pending' | 'approved' | 'rejected';
|
|
1191
|
+
/**
|
|
1192
|
+
* URL where downstream supply chain participants can verify this rights grant is active. Returns HTTP 200 with the current grant status, or 404 if revoked. Enables SSPs and verification vendors to confirm rights before serving.
|
|
1193
|
+
*/
|
|
1194
|
+
verification_url?: string;
|
|
1195
|
+
ext?: ExtensionObject;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Video scan method. Modern digital delivery requires progressive scan; interlaced is retained for broadcast legacy content.
|
|
1200
|
+
*/
|
|
1201
|
+
export type ScanType = 'progressive' | 'interlaced';
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Current task execution state. Indicates whether the task is completed, in progress (working), submitted for async processing, failed, or requires user input. REQUIRED on every task response envelope. Synchronous tasks (including read-only metadata calls like `get_adcp_capabilities`) MUST emit `status: "completed"`; async tasks emit `submitted`, `working`, `input-required`, etc. per their lifecycle. Agents MUST NOT emit the legacy task_status or response_status fields alongside this field — the status field is the single authoritative task state.
|
|
1205
|
+
*/
|
|
1206
|
+
export type TaskStatus = 'submitted' | 'working' | 'input-required' | 'completed' | 'canceled' | 'failed' | 'rejected' | 'auth-required' | 'unknown';
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Text content asset
|
|
1210
|
+
*/
|
|
1211
|
+
export interface TextAsset {
|
|
1212
|
+
/**
|
|
1213
|
+
* Discriminator identifying this as a text asset. See /schemas/creative/asset-types for the registry.
|
|
1214
|
+
*/
|
|
1215
|
+
asset_type: 'text';
|
|
1216
|
+
/**
|
|
1217
|
+
* Text content
|
|
1218
|
+
*/
|
|
1219
|
+
content: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Language code (e.g., 'en', 'es', 'fr')
|
|
1222
|
+
*/
|
|
1223
|
+
language?: string;
|
|
1224
|
+
provenance?: Provenance;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export interface ThirdPartyFormatTarget {
|
|
1228
|
+
kind: 'third_party_format';
|
|
1229
|
+
/**
|
|
1230
|
+
* URI-form format identifier referencing a third-party format definition (e.g., `https://flashtalking.example/formats/image_300x250@sha256:...`). Validators fetch the definition (digest-pinned, cached) and validate the manifest against it.
|
|
1231
|
+
*/
|
|
1232
|
+
id: string;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* URL reference asset. `url_type` declares the mechanism a receiver uses to invoke the URL (clickthrough vs. tracker_pixel vs. tracker_script) and is distinct from the URL's purpose, which the format declares in `url-asset-requirements.role` (clickthrough, landing_page, impression_tracker, click_tracker, viewability_tracker, third_party_tracker). Senders SHOULD include `url_type` on every URL asset. When `url_type` is absent, receivers SHOULD fall back to the format's `url-asset-requirements.role` per this mapping: clickthrough/landing_page → `clickthrough`; impression_tracker/click_tracker → `tracker_pixel`; viewability_tracker → `tracker_script` (OMID and equivalent verification SDKs require a <script> tag — firing them as a pixel produces no measurement); third_party_tracker → no safe fallback (mechanism is integration-specific — DV/IAS ship both pixel and script forms — receivers MAY reject or warn). When neither `url_type` nor a format-side `role` is available, receivers MUST NOT silently pick a mechanism; they SHOULD reject the manifest. Note: VAST/DAAST tag URLs are not URL assets — use `asset_type: "vast"` (or the dedicated tracker types pending RFC #2915), not `asset_type: "url"` with a tracker_pixel mechanism.
|
|
1237
|
+
*/
|
|
1238
|
+
export interface URLAsset {
|
|
1239
|
+
/**
|
|
1240
|
+
* Discriminator identifying this as a URL asset. See /schemas/creative/asset-types for the registry.
|
|
1241
|
+
*/
|
|
1242
|
+
asset_type: 'url';
|
|
1243
|
+
/**
|
|
1244
|
+
* URL reference. May be a plain URI or an RFC 6570 URI template carrying AdCP universal macros (e.g., `{SKU}`, `{MEDIA_BUY_ID}`). Buyers MUST NOT pre-encode macro braces at sync time; the ad server URL-encodes substituted values at impression time. See docs/creative/universal-macros.mdx.
|
|
1245
|
+
*/
|
|
1246
|
+
url: string;
|
|
1247
|
+
url_type?: URLAssetType;
|
|
1248
|
+
/**
|
|
1249
|
+
* Description of what this URL points to
|
|
1250
|
+
*/
|
|
1251
|
+
description?: string;
|
|
1252
|
+
provenance?: Provenance;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Mechanism a receiver uses to invoke this URL (distinct from purpose, which lives in `url-asset-requirements.role`): `clickthrough` for user click destination (landing page), `tracker_pixel` for impression/event tracking via HTTP request (fires GET, expects pixel/204 response), `tracker_script` for measurement SDKs that must load as a <script> tag (OMID verification, native event trackers using method:2). SHOULD be present on every URL asset; senders that omit it force the receiver into the role-based fallback described in this schema's top-level description.
|
|
1257
|
+
*/
|
|
1258
|
+
export type URLAssetType = 'clickthrough' | 'tracker_pixel' | 'tracker_script';
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Standardized macro placeholders for dynamic value substitution in creative tracking URLs. Macros are replaced with actual values at impression time. See docs/creative/universal-macros.mdx for detailed documentation.
|
|
1262
|
+
*/
|
|
1263
|
+
export type UniversalMacro = 'MEDIA_BUY_ID' | 'PACKAGE_ID' | 'CREATIVE_ID' | 'CACHEBUSTER' | 'TIMESTAMP' | 'CLICK_URL' | 'GDPR' | 'GDPR_CONSENT' | 'US_PRIVACY' | 'GPP_STRING' | 'GPP_SID' | 'IP_ADDRESS' | 'LIMIT_AD_TRACKING' | 'DEVICE_TYPE' | 'OS' | 'OS_VERSION' | 'DEVICE_MAKE' | 'DEVICE_MODEL' | 'USER_AGENT' | 'APP_BUNDLE' | 'APP_NAME' | 'COUNTRY' | 'REGION' | 'CITY' | 'ZIP' | 'DMA' | 'LAT' | 'LONG' | 'DEVICE_ID' | 'DEVICE_ID_TYPE' | 'DOMAIN' | 'PAGE_URL' | 'REFERRER' | 'KEYWORDS' | 'PLACEMENT_ID' | 'FOLD_POSITION' | 'AD_WIDTH' | 'AD_HEIGHT' | 'VIDEO_ID' | 'VIDEO_TITLE' | 'VIDEO_DURATION' | 'VIDEO_CATEGORY' | 'CONTENT_GENRE' | 'CONTENT_RATING' | 'PLAYER_WIDTH' | 'PLAYER_HEIGHT' | 'POD_POSITION' | 'POD_SIZE' | 'AD_BREAK_ID' | 'STATION_ID' | 'COLLECTION_NAME' | 'INSTALLMENT_ID' | 'AUDIO_DURATION' | 'TMPX' | 'AXEM' | 'CATALOG_ID' | 'SKU' | 'GTIN' | 'OFFERING_ID' | 'JOB_ID' | 'HOTEL_ID' | 'FLIGHT_ID' | 'VEHICLE_ID' | 'LISTING_ID' | 'STORE_ID' | 'PROGRAM_ID' | 'DESTINATION_ID' | 'CREATIVE_VARIANT_ID' | 'APP_ITEM_ID';
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* How often the platform should re-fetch the feed from url. Only applicable when url is provided. Platforms may use this as a hint for polling schedules.
|
|
1267
|
+
*/
|
|
1268
|
+
export type UpdateFrequency = 'realtime' | 'hourly' | 'daily' | 'weekly';
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Manifest references a named format via the structured `format_id` object. The v1 path; remains supported through 4.x.
|
|
1272
|
+
*/
|
|
1273
|
+
export interface V1ManifestNamedFormatReference {
|
|
1274
|
+
format_id: FormatReferenceStructuredObject;
|
|
1275
|
+
/**
|
|
1276
|
+
* v2 path, optional. Stable identifier matching one of the seller's product `format_options[i].capability_id` values. REQUIRED when the target product carries multiple `format_options` entries sharing the same `format_kind` (the buyer must disambiguate which option this manifest matches). When the product's `format_options` has a single entry — or multiple entries with distinct `format_kind` values — `capability_id` is OPTIONAL because `format_kind` alone routes the manifest to the right declaration.
|
|
1277
|
+
*/
|
|
1278
|
+
capability_id?: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* Map of slot keys to actual asset content. v1 path: each key matches an `asset_id` from the format's `assets` array (e.g., 'banner_image', 'clickthrough_url', 'video_file', 'vast_tag'). v2 path: each key matches an `asset_group_id` from the format's `slots` declaration drawn from the canonical vocabulary registry (e.g., 'images_landscape', 'video', 'landing_page_url', 'vast_tag', 'script', 'creative_brief'). Either path produces the same envelope shape; only the slot-key vocabulary differs.
|
|
1281
|
+
*
|
|
1282
|
+
* Each slot value is **either** a single asset object (most slots — image, video, vast_tag, landing_page_url, etc.) **or** an array of asset objects (slots with `min`/`max` counts on the format declaration — `cards` on `image_carousel`, `headlines` / `descriptions` / `images_landscape` on `responsive_creative`, etc.). Single-vs-array shape is governed by the format's `slots[].min` and `slots[].max` parameters: when `max > 1` (or when the slot is conceptually a pool), the value MUST be an array; when the slot is single-valued, the value MUST be a single object. Each asset value (single or array element) carries an `asset_type` discriminator (image, video, audio, vast, daast, text, markdown, url, html, css, webhook, javascript, brief, catalog, zip, card) that selects the matching asset schema. Validators with OpenAPI-style discriminator support use `asset_type` to report errors against only the selected branch instead of all branches.
|
|
1283
|
+
*/
|
|
1284
|
+
assets: {
|
|
1285
|
+
/**
|
|
1286
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
1287
|
+
* via the `patternProperty` "^[a-z0-9_]+$".
|
|
1288
|
+
*/
|
|
1289
|
+
[k: string]: AssetVariant | AssetVariant[];
|
|
1290
|
+
};
|
|
1291
|
+
brand?: BrandReference;
|
|
1292
|
+
/**
|
|
1293
|
+
* Rights constraints attached to this creative. Each entry represents constraints from a single rights holder. A creative may combine multiple rights constraints (e.g., talent likeness + music license). For v1, rights constraints are informational metadata — the buyer/orchestrator manages creative lifecycle against these terms.
|
|
1294
|
+
*/
|
|
1295
|
+
rights?: RightsConstraint[];
|
|
1296
|
+
/**
|
|
1297
|
+
* Industry-standard identifiers for this specific manifest (e.g., Ad-ID, ISCI, Clearcast clock number). When present, overrides creative-level identifiers. Use when different format versions of the same source creative have distinct Ad-IDs (e.g., the :15 and :30 cuts).
|
|
1298
|
+
*/
|
|
1299
|
+
industry_identifiers?: IndustryIdentifier[];
|
|
1300
|
+
provenance?: Provenance;
|
|
1301
|
+
ext?: ExtensionObject;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Manifest declares which canonical format it targets via `format_kind` (e.g., `image`). The v2 path introduced by RFC #3305.
|
|
1306
|
+
*/
|
|
1307
|
+
export interface V2ManifestCanonicalFormatKind {
|
|
1308
|
+
format_kind: CanonicalFormatKind;
|
|
1309
|
+
/**
|
|
1310
|
+
* v2 path, optional. Stable identifier matching one of the seller's product `format_options[i].capability_id` values. REQUIRED when the target product carries multiple `format_options` entries sharing the same `format_kind` (the buyer must disambiguate which option this manifest matches). When the product's `format_options` has a single entry — or multiple entries with distinct `format_kind` values — `capability_id` is OPTIONAL because `format_kind` alone routes the manifest to the right declaration.
|
|
1311
|
+
*/
|
|
1312
|
+
capability_id?: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* Map of slot keys to actual asset content. v1 path: each key matches an `asset_id` from the format's `assets` array (e.g., 'banner_image', 'clickthrough_url', 'video_file', 'vast_tag'). v2 path: each key matches an `asset_group_id` from the format's `slots` declaration drawn from the canonical vocabulary registry (e.g., 'images_landscape', 'video', 'landing_page_url', 'vast_tag', 'script', 'creative_brief'). Either path produces the same envelope shape; only the slot-key vocabulary differs.
|
|
1315
|
+
*
|
|
1316
|
+
* Each slot value is **either** a single asset object (most slots — image, video, vast_tag, landing_page_url, etc.) **or** an array of asset objects (slots with `min`/`max` counts on the format declaration — `cards` on `image_carousel`, `headlines` / `descriptions` / `images_landscape` on `responsive_creative`, etc.). Single-vs-array shape is governed by the format's `slots[].min` and `slots[].max` parameters: when `max > 1` (or when the slot is conceptually a pool), the value MUST be an array; when the slot is single-valued, the value MUST be a single object. Each asset value (single or array element) carries an `asset_type` discriminator (image, video, audio, vast, daast, text, markdown, url, html, css, webhook, javascript, brief, catalog, zip, card) that selects the matching asset schema. Validators with OpenAPI-style discriminator support use `asset_type` to report errors against only the selected branch instead of all branches.
|
|
1317
|
+
*/
|
|
1318
|
+
assets: {
|
|
1319
|
+
/**
|
|
1320
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
1321
|
+
* via the `patternProperty` "^[a-z0-9_]+$".
|
|
1322
|
+
*/
|
|
1323
|
+
[k: string]: AssetVariant | AssetVariant[];
|
|
1324
|
+
};
|
|
1325
|
+
brand?: BrandReference;
|
|
1326
|
+
/**
|
|
1327
|
+
* Rights constraints attached to this creative. Each entry represents constraints from a single rights holder. A creative may combine multiple rights constraints (e.g., talent likeness + music license). For v1, rights constraints are informational metadata — the buyer/orchestrator manages creative lifecycle against these terms.
|
|
1328
|
+
*/
|
|
1329
|
+
rights?: RightsConstraint[];
|
|
1330
|
+
/**
|
|
1331
|
+
* Industry-standard identifiers for this specific manifest (e.g., Ad-ID, ISCI, Clearcast clock number). When present, overrides creative-level identifiers. Use when different format versions of the same source creative have distinct Ad-IDs (e.g., the :15 and :30 cuts).
|
|
1332
|
+
*/
|
|
1333
|
+
industry_identifiers?: IndustryIdentifier[];
|
|
1334
|
+
provenance?: Provenance;
|
|
1335
|
+
ext?: ExtensionObject;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* VAST (Video Ad Serving Template) tag for third-party video ad serving
|
|
1340
|
+
*/
|
|
1341
|
+
export type VASTAsset = {
|
|
1342
|
+
/**
|
|
1343
|
+
* Discriminator identifying this as a VAST asset. See /schemas/creative/asset-types for the registry.
|
|
1344
|
+
*/
|
|
1345
|
+
asset_type: 'vast';
|
|
1346
|
+
vast_version?: VASTVersion;
|
|
1347
|
+
/**
|
|
1348
|
+
* Whether VPAID (Video Player-Ad Interface Definition) is supported
|
|
1349
|
+
*/
|
|
1350
|
+
vpaid_enabled?: boolean;
|
|
1351
|
+
/**
|
|
1352
|
+
* Expected video duration in milliseconds (if known)
|
|
1353
|
+
* @minimum 0
|
|
1354
|
+
*/
|
|
1355
|
+
duration_ms?: number;
|
|
1356
|
+
/**
|
|
1357
|
+
* Tracking events supported by this VAST tag
|
|
1358
|
+
*/
|
|
1359
|
+
tracking_events?: VASTTrackingEvent[];
|
|
1360
|
+
/**
|
|
1361
|
+
* URL to captions file (WebVTT, SRT, etc.)
|
|
1362
|
+
*/
|
|
1363
|
+
captions_url?: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* URL to audio description track for visually impaired users
|
|
1366
|
+
*/
|
|
1367
|
+
audio_description_url?: string;
|
|
1368
|
+
provenance?: Provenance;
|
|
1369
|
+
} & ({
|
|
1370
|
+
/**
|
|
1371
|
+
* Discriminator indicating VAST is delivered via URL endpoint
|
|
1372
|
+
*/
|
|
1373
|
+
delivery_type: 'url';
|
|
1374
|
+
/**
|
|
1375
|
+
* URL endpoint that returns VAST XML
|
|
1376
|
+
*/
|
|
1377
|
+
url: string;
|
|
1378
|
+
} | {
|
|
1379
|
+
/**
|
|
1380
|
+
* Discriminator indicating VAST is delivered as inline XML content
|
|
1381
|
+
*/
|
|
1382
|
+
delivery_type: 'inline';
|
|
1383
|
+
/**
|
|
1384
|
+
* Inline VAST XML content
|
|
1385
|
+
*/
|
|
1386
|
+
content: string;
|
|
1387
|
+
});
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Tracking events for video ads. Includes the IAB VAST 4.2 `Tracking@event` enumeration (vast_4.2.xsd `TrackingEvents_type`, lines 112–136), plus AdCP-flattened representations of the `Impression`, `Error`, `VideoClicks`, and `ViewableImpression` elements (which live in dedicated VAST elements, not under `<TrackingEvents>` — they are surfaced here so a single declared list can cover everything a measurement vendor wants to track). `fullscreen` / `exitFullscreen` are retained for VAST 2.x / 3.x compatibility (VAST 4.0+ replaced them with `playerExpand` / `playerCollapse`). `measurableImpression` is an AdCP extension for MRC measurability signals.
|
|
1391
|
+
*/
|
|
1392
|
+
export type VASTTrackingEvent = 'impression' | 'creativeView' | 'loaded' | 'start' | 'firstQuartile' | 'midpoint' | 'thirdQuartile' | 'complete' | 'mute' | 'unmute' | 'pause' | 'resume' | 'rewind' | 'skip' | 'playerExpand' | 'playerCollapse' | 'fullscreen' | 'exitFullscreen' | 'progress' | 'acceptInvitation' | 'adExpand' | 'adCollapse' | 'minimize' | 'overlayViewDuration' | 'otherAdInteraction' | 'interactiveStart' | 'clickTracking' | 'customClick' | 'close' | 'closeLinear' | 'error' | 'viewable' | 'notViewable' | 'viewUndetermined' | 'measurableImpression' | 'viewableImpression';
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* VAST specification version
|
|
1396
|
+
*/
|
|
1397
|
+
export type VASTVersion = '2.0' | '3.0' | '4.0' | '4.1' | '4.2';
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Per-target result of a validate_input call. The `result_kind` discriminator (replacing the earlier boolean `ok`) lets buyers distinguish three meaningfully different outcomes:
|
|
1401
|
+
*
|
|
1402
|
+
* - `validated_pass` — manifest validates cleanly against the target. Buyers can submit with confidence.
|
|
1403
|
+
* - `validated_fail` — manifest is structurally evaluable AND fails specific constraints. `violations[]` enumerates which. Buyers fix and retry.
|
|
1404
|
+
* - `unvalidatable_nondeterministic` — predictive validation is impossible because the target's production pipeline is genuinely nondeterministic (Veo / Sora / Runway-class formats with `synthesis_nondeterministic: true`). The platform's own post-synthesis QA loop applies; outcome is unknowable until `build_creative` runs. Buyers MUST plan for the QA-loop semantics: submission may return `task_failed` with a `synthesis_failed` reason if the QA loop exhausts. There is no protocol state for orphaned out-of-spec artifacts.
|
|
1405
|
+
*
|
|
1406
|
+
* The boolean `ok` field carried in earlier drafts is removed — it conflated `validated_fail` (a real validation result the buyer can act on) with `unvalidatable_nondeterministic` (a structural property of the target the buyer needs to handle differently). `validated_fail` returns `violations[]`; `unvalidatable_nondeterministic` does not (there's nothing to enumerate).
|
|
1407
|
+
*
|
|
1408
|
+
* **Scope of validation (normative).** `validate_input` validates **manifest structure** against the canonical / product / third-party format target — slot counts, asset types, parameter ranges, format-shape constraints. It does NOT predict the surface's per-impression rendering choice. This distinction matters for `composition_model: algorithmic` formats (`responsive_creative`, `agent_placement`) where the surface picks combinations or phrasing at delivery time: the buyer's asset pool can still be structurally validated (does it meet the count/size/length requirements?) → `validated_pass` or `validated_fail` with violations. What's unpredictable is the rendered output composition, and that's NOT what `validate_input` claims to predict. `unvalidatable_nondeterministic` is reserved for `synthesis_nondeterministic: true` cases where the production pipeline itself can't be evaluated upfront — distinct from algorithmic composition where the inputs ARE evaluable but the output rendering isn't. Buyers calling `validate_input` on an algorithmic-composition target SHOULD expect a structural verdict (pass/fail), not a rendering preview.
|
|
1409
|
+
*/
|
|
1410
|
+
export interface ValidateInputResult {
|
|
1411
|
+
target: {
|
|
1412
|
+
kind: 'canonical' | 'product' | 'third_party_format';
|
|
1413
|
+
/**
|
|
1414
|
+
* Canonical format name (e.g., 'image'), product_id, or URI-form format_id.
|
|
1415
|
+
*/
|
|
1416
|
+
id: string;
|
|
1417
|
+
};
|
|
1418
|
+
/**
|
|
1419
|
+
* Discriminator for the validation outcome. See schema description for the three states. Replaces the earlier boolean `ok` to distinguish 'failed validation' from 'platform is nondeterministic, can't pre-validate'.
|
|
1420
|
+
*/
|
|
1421
|
+
result_kind: 'validated_pass' | 'validated_fail' | 'unvalidatable_nondeterministic';
|
|
1422
|
+
/**
|
|
1423
|
+
* When `result_kind` is `validated_fail`, the specific constraints the manifest fails to meet. MUST be absent (or empty) for `validated_pass` and `unvalidatable_nondeterministic` — neither has constraint violations to enumerate (`unvalidatable_nondeterministic` doesn't validate at all; `validated_pass` has nothing to fail).
|
|
1424
|
+
*/
|
|
1425
|
+
violations?: {
|
|
1426
|
+
/**
|
|
1427
|
+
* Rule name (e.g., 'duration_ms_range', 'aspect_ratio', 'max_file_size_kb').
|
|
1428
|
+
*/
|
|
1429
|
+
rule: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Expected value or range (e.g., '28000-32000', '9:16', 200).
|
|
1432
|
+
*/
|
|
1433
|
+
expected?: unknown;
|
|
1434
|
+
/**
|
|
1435
|
+
* Platform's pre-flight estimate for this field (NOT the actual output — there is no protocol state for orphaned out-of-spec artifacts). For TTS, this might be the predicted audio duration from text-length analysis. Helps the buyer fix the input before committing to a build.
|
|
1436
|
+
*/
|
|
1437
|
+
predicted?: unknown;
|
|
1438
|
+
/**
|
|
1439
|
+
* Path to the violating field (e.g., 'assets.video_main.duration_ms').
|
|
1440
|
+
*/
|
|
1441
|
+
field: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Optional advisory adjustment hint. Platforms MAY suggest a corrected input shape; buyers MUST treat this as advisory, not authoritative.
|
|
1444
|
+
*/
|
|
1445
|
+
retry_with?: {};
|
|
1446
|
+
}[];
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Video asset with URL and technical specifications including audio track properties
|
|
1451
|
+
*/
|
|
1452
|
+
export interface VideoAsset {
|
|
1453
|
+
/**
|
|
1454
|
+
* Discriminator identifying this as a video asset. See /schemas/creative/asset-types for the registry.
|
|
1455
|
+
*/
|
|
1456
|
+
asset_type: 'video';
|
|
1457
|
+
/**
|
|
1458
|
+
* URL to the video asset
|
|
1459
|
+
*/
|
|
1460
|
+
url: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Width in pixels
|
|
1463
|
+
* @minimum 1
|
|
1464
|
+
*/
|
|
1465
|
+
width: number;
|
|
1466
|
+
/**
|
|
1467
|
+
* Height in pixels
|
|
1468
|
+
* @minimum 1
|
|
1469
|
+
*/
|
|
1470
|
+
height: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* Video duration in milliseconds
|
|
1473
|
+
* @minimum 1
|
|
1474
|
+
*/
|
|
1475
|
+
duration_ms?: number;
|
|
1476
|
+
/**
|
|
1477
|
+
* File size in bytes
|
|
1478
|
+
* @minimum 1
|
|
1479
|
+
*/
|
|
1480
|
+
file_size_bytes?: number;
|
|
1481
|
+
/**
|
|
1482
|
+
* Video container format (mp4, webm, mov, etc.)
|
|
1483
|
+
*/
|
|
1484
|
+
container_format?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* Video codec used (h264, h265, vp9, av1, prores, etc.)
|
|
1487
|
+
*/
|
|
1488
|
+
video_codec?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Video stream bitrate in kilobits per second
|
|
1491
|
+
* @minimum 1
|
|
1492
|
+
*/
|
|
1493
|
+
video_bitrate_kbps?: number;
|
|
1494
|
+
/**
|
|
1495
|
+
* Frame rate as string to preserve precision (e.g., '23.976', '29.97', '30')
|
|
1496
|
+
*/
|
|
1497
|
+
frame_rate?: string;
|
|
1498
|
+
frame_rate_type?: FrameRateType;
|
|
1499
|
+
scan_type?: ScanType;
|
|
1500
|
+
/**
|
|
1501
|
+
* Color space of the video
|
|
1502
|
+
*/
|
|
1503
|
+
color_space?: 'rec709' | 'rec2020' | 'rec2100' | 'srgb' | 'dci_p3';
|
|
1504
|
+
/**
|
|
1505
|
+
* HDR format if applicable, or 'sdr' for standard dynamic range
|
|
1506
|
+
*/
|
|
1507
|
+
hdr_format?: 'sdr' | 'hdr10' | 'hdr10_plus' | 'hlg' | 'dolby_vision';
|
|
1508
|
+
/**
|
|
1509
|
+
* Chroma subsampling format
|
|
1510
|
+
*/
|
|
1511
|
+
chroma_subsampling?: '4:2:0' | '4:2:2' | '4:4:4';
|
|
1512
|
+
/**
|
|
1513
|
+
* Video bit depth
|
|
1514
|
+
*/
|
|
1515
|
+
video_bit_depth?: 8 | 10 | 12;
|
|
1516
|
+
/**
|
|
1517
|
+
* GOP/keyframe interval in seconds
|
|
1518
|
+
*/
|
|
1519
|
+
gop_interval_seconds?: number;
|
|
1520
|
+
gop_type?: GOPType;
|
|
1521
|
+
moov_atom_position?: MoovAtomPosition;
|
|
1522
|
+
/**
|
|
1523
|
+
* Whether the video contains an audio track
|
|
1524
|
+
*/
|
|
1525
|
+
has_audio?: boolean;
|
|
1526
|
+
/**
|
|
1527
|
+
* Audio codec used (aac, aac_lc, he_aac, pcm, mp3, ac3, eac3, etc.)
|
|
1528
|
+
*/
|
|
1529
|
+
audio_codec?: string;
|
|
1530
|
+
/**
|
|
1531
|
+
* Audio sampling rate in Hz (e.g., 44100, 48000)
|
|
1532
|
+
*/
|
|
1533
|
+
audio_sampling_rate_hz?: number;
|
|
1534
|
+
audio_channels?: AudioChannelLayout;
|
|
1535
|
+
/**
|
|
1536
|
+
* Audio bit depth
|
|
1537
|
+
*/
|
|
1538
|
+
audio_bit_depth?: 16 | 24 | 32;
|
|
1539
|
+
/**
|
|
1540
|
+
* Audio bitrate in kilobits per second
|
|
1541
|
+
* @minimum 1
|
|
1542
|
+
*/
|
|
1543
|
+
audio_bitrate_kbps?: number;
|
|
1544
|
+
/**
|
|
1545
|
+
* Integrated loudness in LUFS
|
|
1546
|
+
*/
|
|
1547
|
+
audio_loudness_lufs?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* True peak level in dBFS
|
|
1550
|
+
*/
|
|
1551
|
+
audio_true_peak_dbfs?: number;
|
|
1552
|
+
/**
|
|
1553
|
+
* URL to captions file (WebVTT, SRT, etc.)
|
|
1554
|
+
*/
|
|
1555
|
+
captions_url?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* URL to text transcript of the video content
|
|
1558
|
+
*/
|
|
1559
|
+
transcript_url?: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* URL to audio description track for visually impaired users
|
|
1562
|
+
*/
|
|
1563
|
+
audio_description_url?: string;
|
|
1564
|
+
provenance?: Provenance;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Media category of the watermarked content
|
|
1569
|
+
*/
|
|
1570
|
+
export type WatermarkMediaType = 'audio' | 'image' | 'video' | 'text';
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Webhook for server-side dynamic content rendering (DCO)
|
|
1574
|
+
*/
|
|
1575
|
+
export interface WebhookAsset {
|
|
1576
|
+
/**
|
|
1577
|
+
* Discriminator identifying this as a webhook asset. See /schemas/creative/asset-types for the registry.
|
|
1578
|
+
*/
|
|
1579
|
+
asset_type: 'webhook';
|
|
1580
|
+
/**
|
|
1581
|
+
* Webhook URL to call for dynamic content
|
|
1582
|
+
*/
|
|
1583
|
+
url: string;
|
|
1584
|
+
method?: HTTPMethod;
|
|
1585
|
+
/**
|
|
1586
|
+
* Maximum time to wait for response in milliseconds
|
|
1587
|
+
* @minimum 10
|
|
1588
|
+
* @maximum 5000
|
|
1589
|
+
*/
|
|
1590
|
+
timeout_ms?: number;
|
|
1591
|
+
/**
|
|
1592
|
+
* Universal macros that can be passed to webhook (e.g., DEVICE_TYPE, COUNTRY). See docs/creative/universal-macros.mdx for full list.
|
|
1593
|
+
*/
|
|
1594
|
+
supported_macros?: (UniversalMacro | string)[];
|
|
1595
|
+
/**
|
|
1596
|
+
* Universal macros that must be provided for webhook to function
|
|
1597
|
+
*/
|
|
1598
|
+
required_macros?: (UniversalMacro | string)[];
|
|
1599
|
+
response_type: WebhookResponseType;
|
|
1600
|
+
/**
|
|
1601
|
+
* Security configuration for webhook calls
|
|
1602
|
+
*/
|
|
1603
|
+
security: {
|
|
1604
|
+
method: WebhookSecurityMethod;
|
|
1605
|
+
/**
|
|
1606
|
+
* Header name for HMAC signature (e.g., 'X-Signature')
|
|
1607
|
+
*/
|
|
1608
|
+
hmac_header?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* Header name for API key (e.g., 'X-API-Key')
|
|
1611
|
+
*/
|
|
1612
|
+
api_key_header?: string;
|
|
1613
|
+
};
|
|
1614
|
+
provenance?: Provenance;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Expected content type of webhook response
|
|
1619
|
+
*/
|
|
1620
|
+
export type WebhookResponseType = 'html' | 'json' | 'xml' | 'javascript';
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Authentication method
|
|
1624
|
+
*/
|
|
1625
|
+
export type WebhookSecurityMethod = 'hmac_sha256' | 'api_key' | 'none';
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Bundled creative asset delivered as a zip archive — typically an HTML5 banner with index.html plus supporting CSS, JS, images, and fonts. Receivers unpack the zip, validate internal structure, and serve contents from CDN. Distinct from inline HTML (html asset) and from third-party tag URLs (url asset with url_type tracker_script).
|
|
1629
|
+
*/
|
|
1630
|
+
export interface ZipAsset {
|
|
1631
|
+
/**
|
|
1632
|
+
* Discriminator identifying this as a zip-bundled asset. See /schemas/creative/asset-types for the registry.
|
|
1633
|
+
*/
|
|
1634
|
+
asset_type: 'zip';
|
|
1635
|
+
/**
|
|
1636
|
+
* URL where the zip archive is hosted. Must be HTTPS.
|
|
1637
|
+
*/
|
|
1638
|
+
url: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Maximum file size in kilobytes. Receivers should reject zips exceeding this.
|
|
1641
|
+
* @minimum 0
|
|
1642
|
+
*/
|
|
1643
|
+
max_file_size_kb?: number;
|
|
1644
|
+
/**
|
|
1645
|
+
* Relative path to the entry file within the zip (typically 'index.html'). Receivers default to 'index.html' if absent.
|
|
1646
|
+
*/
|
|
1647
|
+
entry_point?: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* File extensions permitted inside the zip (e.g., ['html', 'css', 'js', 'png', 'jpg', 'svg', 'webp', 'json', 'woff2']). Receivers may reject zips containing other extensions.
|
|
1650
|
+
*/
|
|
1651
|
+
allowed_inner_extensions?: string[];
|
|
1652
|
+
/**
|
|
1653
|
+
* Fallback image URL for environments that cannot render the bundled creative (e.g., non-HTML5 endpoints, ad blockers). Recommended for HTML5 banners.
|
|
1654
|
+
*/
|
|
1655
|
+
backup_image_url?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* Optional SHA-256 content digest of the zip archive (sha256:<hex>) for integrity verification. Lets receivers detect tampered or stale archives.
|
|
1658
|
+
* @pattern ^sha256:[a-f0-9]{64}$
|
|
1659
|
+
*/
|
|
1660
|
+
digest?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* Self-declared accessibility properties for this opaque creative
|
|
1663
|
+
*/
|
|
1664
|
+
accessibility?: {
|
|
1665
|
+
/**
|
|
1666
|
+
* Text alternative describing the creative content
|
|
1667
|
+
*/
|
|
1668
|
+
alt_text?: string;
|
|
1669
|
+
/**
|
|
1670
|
+
* Whether the creative can be fully operated via keyboard
|
|
1671
|
+
*/
|
|
1672
|
+
keyboard_navigable?: boolean;
|
|
1673
|
+
/**
|
|
1674
|
+
* Whether the creative respects prefers-reduced-motion or provides pause/stop controls
|
|
1675
|
+
*/
|
|
1676
|
+
motion_control?: boolean;
|
|
1677
|
+
/**
|
|
1678
|
+
* Whether the creative has been tested with screen readers
|
|
1679
|
+
*/
|
|
1680
|
+
screen_reader_tested?: boolean;
|
|
1681
|
+
};
|
|
1682
|
+
provenance?: Provenance;
|
|
1683
|
+
}
|