@adcp/sdk 8.1.0-beta.7 → 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.
Files changed (56) hide show
  1. package/README.md +12 -0
  2. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  3. package/dist/lib/types/activate-signal.d.ts +647 -0
  4. package/dist/lib/types/build-creative.d.ts +2105 -0
  5. package/dist/lib/types/calibrate-content.d.ts +675 -0
  6. package/dist/lib/types/check-governance.d.ts +619 -0
  7. package/dist/lib/types/comply-test-controller.d.ts +8428 -0
  8. package/dist/lib/types/create-collection-list.d.ts +693 -0
  9. package/dist/lib/types/create-content-standards.d.ts +830 -0
  10. package/dist/lib/types/create-media-buy.d.ts +3374 -0
  11. package/dist/lib/types/create-property-list.d.ts +836 -0
  12. package/dist/lib/types/delete-collection-list.d.ts +497 -0
  13. package/dist/lib/types/delete-property-list.d.ts +497 -0
  14. package/dist/lib/types/get-account-financials.d.ts +624 -0
  15. package/dist/lib/types/get-adcp-capabilities.d.ts +2863 -0
  16. package/dist/lib/types/get-collection-list.d.ts +763 -0
  17. package/dist/lib/types/get-content-standards.d.ts +919 -0
  18. package/dist/lib/types/get-creative-delivery.d.ts +2219 -0
  19. package/dist/lib/types/get-creative-features.d.ts +1736 -0
  20. package/dist/lib/types/get-media-buy-artifacts.d.ts +864 -0
  21. package/dist/lib/types/get-media-buys.d.ts +1670 -0
  22. package/dist/lib/types/get-plan-audit-logs.d.ts +455 -0
  23. package/dist/lib/types/get-products.d.ts +4935 -0
  24. package/dist/lib/types/get-property-list.d.ts +874 -0
  25. package/dist/lib/types/get-signals.d.ts +986 -0
  26. package/dist/lib/types/list-accounts.d.ts +851 -0
  27. package/dist/lib/types/list-content-standards.d.ts +975 -0
  28. package/dist/lib/types/list-creative-formats.d.ts +3132 -0
  29. package/dist/lib/types/list-creatives.d.ts +2390 -0
  30. package/dist/lib/types/list-property-lists.d.ts +855 -0
  31. package/dist/lib/types/log-event.d.ts +373 -0
  32. package/dist/lib/types/per-tool-index.json +391 -0
  33. package/dist/lib/types/preview-creative.d.ts +1981 -0
  34. package/dist/lib/types/provide-performance-feedback.d.ts +218 -0
  35. package/dist/lib/types/report-plan-outcome.d.ts +433 -0
  36. package/dist/lib/types/report-usage.d.ts +579 -0
  37. package/dist/lib/types/si-get-offering.d.ts +259 -0
  38. package/dist/lib/types/si-initiate-session.d.ts +372 -0
  39. package/dist/lib/types/si-send-message.d.ts +300 -0
  40. package/dist/lib/types/si-terminate-session.d.ts +213 -0
  41. package/dist/lib/types/sync-accounts.d.ts +856 -0
  42. package/dist/lib/types/sync-audiences.d.ts +707 -0
  43. package/dist/lib/types/sync-catalogs.d.ts +766 -0
  44. package/dist/lib/types/sync-creatives.d.ts +2134 -0
  45. package/dist/lib/types/sync-event-sources.d.ts +665 -0
  46. package/dist/lib/types/sync-governance.d.ts +558 -0
  47. package/dist/lib/types/sync-plans.d.ts +979 -0
  48. package/dist/lib/types/update-collection-list.d.ts +697 -0
  49. package/dist/lib/types/update-content-standards.d.ts +847 -0
  50. package/dist/lib/types/update-media-buy.d.ts +3047 -0
  51. package/dist/lib/types/update-property-list.d.ts +840 -0
  52. package/dist/lib/types/validate-content-delivery.d.ts +722 -0
  53. package/dist/lib/types/validate-input.d.ts +1683 -0
  54. package/dist/lib/version.d.ts +3 -3
  55. package/dist/lib/version.js +3 -3
  56. package/package.json +9 -2
@@ -0,0 +1,693 @@
1
+ // AUTO-GENERATED — DO NOT EDIT.
2
+ // Per-tool .d.ts slice for `create_collection_list`. 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 parameters for creating a new collection list
13
+ */
14
+ export interface CreateCollectionListRequest {
15
+ /**
16
+ * 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.
17
+ */
18
+ adcp_version?: string;
19
+ /**
20
+ * 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.
21
+ */
22
+ adcp_major_version?: number;
23
+ account?: AccountReference;
24
+ /**
25
+ * Human-readable name for the list
26
+ */
27
+ name: string;
28
+ /**
29
+ * Description of the list's purpose
30
+ */
31
+ description?: string;
32
+ /**
33
+ * Array of collection sources to evaluate. Each entry is a discriminated union: distribution_ids (platform-independent identifiers), publisher_collections (publisher_domain + collection_ids), or publisher_genres (publisher_domain + genres). If omitted, queries the agent's entire collection database.
34
+ */
35
+ base_collections?: BaseCollectionSource[];
36
+ filters?: CollectionListFilters;
37
+ brand?: BrandReference;
38
+ /**
39
+ * Client-generated unique key for this request. Prevents duplicate collection list creation on retries. MUST be unique per (seller, request) pair to prevent cross-seller correlation. Use a fresh UUID v4 for each request.
40
+ * @minLength 16
41
+ * @maxLength 255
42
+ * @pattern ^[A-Za-z0-9_.:-]{16,255}$
43
+ */
44
+ idempotency_key: string;
45
+ context?: ContextObject;
46
+ ext?: ExtensionObject;
47
+ }
48
+
49
+ /**
50
+ * Response payload for create_collection_list task
51
+ */
52
+ export interface CreateCollectionListResponse {
53
+ /**
54
+ * 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).
55
+ */
56
+ context_id?: string;
57
+ context?: ContextObject;
58
+ /**
59
+ * Unique identifier for tracking asynchronous operations. Present when a task requires extended processing time. Used to query task status and retrieve results when complete.
60
+ */
61
+ task_id?: string;
62
+ status: TaskStatus;
63
+ /**
64
+ * 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.
65
+ */
66
+ message?: string;
67
+ /**
68
+ * ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.
69
+ */
70
+ timestamp?: string;
71
+ /**
72
+ * 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.
73
+ */
74
+ replayed?: boolean;
75
+ adcp_error?: Error;
76
+ push_notification_config?: PushNotificationConfig;
77
+ /**
78
+ * 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.
79
+ *
80
+ * 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.
81
+ *
82
+ * This is the primary correlation key for audit and reporting across the governance lifecycle.
83
+ */
84
+ governance_context?: string;
85
+ /**
86
+ * 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.
87
+ */
88
+ payload?: {};
89
+ /**
90
+ * 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.
91
+ */
92
+ adcp_version?: string;
93
+ /**
94
+ * 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.
95
+ */
96
+ adcp_major_version?: number;
97
+ list: CollectionList;
98
+ /**
99
+ * Token that authorizes sellers to fetch this list via get_collection_list. Only returned at creation time — buyers MUST store it in a secret manager. Scoped to this one list_id; MUST NOT be reused across lists. Governance agents MUST issue a distinct token per seller so per-relationship revocation is possible. Tokens MUST NOT be logged, appear in cache keys, or echo in error responses. delete_collection_list MUST revoke the token immediately; compromise-driven revocation MUST also signal cache invalidation to sellers (reduced cache_valid_until or a list-changed webhook). See Security considerations in docs/governance/collection/tasks/collection_lists.
100
+ */
101
+ auth_token: string;
102
+ ext?: ExtensionObject;
103
+ }
104
+
105
+ /**
106
+ * Account for product lookup. Returns products with pricing specific to this account's rate card.
107
+ */
108
+ export type AccountReference = {
109
+ /**
110
+ * Seller-assigned account identifier (from sync_accounts or list_accounts)
111
+ */
112
+ account_id: string;
113
+ } | {
114
+ brand: BrandReference;
115
+ /**
116
+ * Domain of the entity operating on the brand's behalf. When the brand operates directly, this is the brand's domain.
117
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
118
+ */
119
+ operator: string;
120
+ /**
121
+ * When true, references the sandbox account for this brand/operator pair. Defaults to false (production account).
122
+ */
123
+ sandbox?: boolean;
124
+ };
125
+
126
+ /**
127
+ * 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.
128
+ */
129
+ export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
130
+
131
+ /**
132
+ * A source of collections for a collection list. Supports three selection patterns: distribution identifiers (cross-publisher), publisher-specific collection IDs, or publisher-specific genres.
133
+ */
134
+ export type BaseCollectionSource = DistributionIDsSource | PublisherCollectionsSource | PublisherGenresSource;
135
+
136
+ /**
137
+ * Brand identifier within the house portfolio. Optional for single-brand domains.
138
+ */
139
+ export type BrandID = string;
140
+
141
+ /**
142
+ * Brand reference for product discovery context. Resolved to full brand identity at execution time.
143
+ */
144
+ export interface BrandReference {
145
+ /**
146
+ * Domain where /.well-known/brand.json is hosted, or the brand's operating domain
147
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
148
+ */
149
+ domain: string;
150
+ brand_id?: BrandID;
151
+ /**
152
+ * 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.
153
+ */
154
+ industries?: string[];
155
+ /**
156
+ * 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.
157
+ */
158
+ data_subject_contestation?: {
159
+ [k: string]: unknown | undefined;
160
+ };
161
+ /**
162
+ * 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.
163
+ *
164
+ * **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.
165
+ */
166
+ brand_kit_override?: {
167
+ logo?: ImageAsset;
168
+ /**
169
+ * Override brand colors (hex strings).
170
+ */
171
+ colors?: {
172
+ /**
173
+ * @pattern ^#[0-9a-fA-F]{6}$
174
+ */
175
+ primary?: string;
176
+ /**
177
+ * @pattern ^#[0-9a-fA-F]{6}$
178
+ */
179
+ secondary?: string;
180
+ /**
181
+ * @pattern ^#[0-9a-fA-F]{6}$
182
+ */
183
+ accent?: string;
184
+ };
185
+ /**
186
+ * Override brand-voice description for surface-composed text/audio output.
187
+ */
188
+ voice?: string;
189
+ /**
190
+ * Override tagline.
191
+ */
192
+ tagline?: string;
193
+ };
194
+ }
195
+
196
+ /**
197
+ * C2PA action classification for this watermark
198
+ */
199
+ export type C2PAWatermarkAction = 'c2pa.watermarked.bound' | 'c2pa.watermarked.unbound';
200
+
201
+ /**
202
+ * What kind of content program a collection represents. Determines how installments should be interpreted by buyer agents.
203
+ */
204
+ export type CollectionKind = 'series' | 'publication' | 'event_series' | 'rotation';
205
+
206
+ /**
207
+ * The created collection list
208
+ */
209
+ export interface CollectionList {
210
+ /**
211
+ * Unique identifier for this collection list
212
+ */
213
+ list_id: string;
214
+ /**
215
+ * Human-readable name for the list
216
+ */
217
+ name: string;
218
+ /**
219
+ * Description of the list's purpose
220
+ */
221
+ description?: string;
222
+ account?: AccountReference;
223
+ /**
224
+ * Array of collection sources to evaluate. Each entry is a discriminated union: distribution_ids (platform-independent identifiers), publisher_collections (publisher_domain + collection_ids), or publisher_genres (publisher_domain + genres). If omitted, queries the agent's entire collection database.
225
+ */
226
+ base_collections?: BaseCollectionSource[];
227
+ filters?: CollectionListFilters;
228
+ brand?: BrandReference;
229
+ /**
230
+ * URL to receive notifications when the resolved list changes
231
+ */
232
+ webhook_url?: string;
233
+ /**
234
+ * Recommended cache duration for resolved list. Consumers should re-fetch after this period. Defaults to 168 (one week) because collection metadata changes less frequently than property metadata.
235
+ * @minimum 1
236
+ */
237
+ cache_duration_hours?: number;
238
+ /**
239
+ * When the list was created
240
+ * @format date-time
241
+ */
242
+ created_at?: string;
243
+ /**
244
+ * When the list was last modified
245
+ * @format date-time
246
+ */
247
+ updated_at?: string;
248
+ /**
249
+ * Number of collections in the resolved list (at time of last resolution)
250
+ */
251
+ collection_count?: number;
252
+ }
253
+
254
+ /**
255
+ * Dynamic filters to apply when resolving the list
256
+ */
257
+ export interface CollectionListFilters {
258
+ /**
259
+ * Exclude collections with any of these content ratings (OR logic). This is a metadata filter on the collection's declared content_rating field — it does not evaluate episode content.
260
+ */
261
+ content_ratings_exclude?: ContentRating[];
262
+ /**
263
+ * Include only collections with any of these content ratings (OR logic). Collections without a declared content_rating are excluded.
264
+ */
265
+ content_ratings_include?: ContentRating[];
266
+ /**
267
+ * Exclude collections tagged with any of these genres (OR logic). Values are interpreted against genre_taxonomy when present.
268
+ */
269
+ genres_exclude?: string[];
270
+ /**
271
+ * Include only collections with any of these genres (OR logic). Collections without genre metadata are excluded. Values are interpreted against genre_taxonomy when present.
272
+ */
273
+ genres_include?: string[];
274
+ genre_taxonomy?: GenreTaxonomy;
275
+ /**
276
+ * Filter to these collection kinds
277
+ */
278
+ kinds?: CollectionKind[];
279
+ /**
280
+ * Always exclude collections with these distribution identifiers
281
+ */
282
+ exclude_distribution_ids?: {
283
+ type: DistributionIdentifierType;
284
+ /**
285
+ * The identifier value
286
+ */
287
+ value: string;
288
+ }[];
289
+ /**
290
+ * Filter by production quality tier
291
+ */
292
+ production_quality?: ProductionQuality[];
293
+ }
294
+
295
+ /**
296
+ * Installment-specific content rating. Overrides the collection's baseline content_rating when present.
297
+ */
298
+ export interface ContentRating {
299
+ system: ContentRatingSystem;
300
+ /**
301
+ * Rating value within the system (e.g., 'TV-PG', 'R', 'explicit')
302
+ */
303
+ rating: string;
304
+ }
305
+
306
+ /**
307
+ * Rating system used
308
+ */
309
+ export type ContentRatingSystem = 'tv_parental' | 'mpaa' | 'podcast' | 'esrb' | 'bbfc' | 'fsk' | 'acb' | 'chvrs' | 'csa' | 'pegi' | 'custom';
310
+
311
+ /**
312
+ * 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.
313
+ */
314
+ export interface ContextObject {
315
+ }
316
+
317
+ /**
318
+ * IPTC-aligned classification of AI involvement in producing this content
319
+ */
320
+ 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';
321
+
322
+ /**
323
+ * How long the disclosure must persist during content playback or display
324
+ */
325
+ export type DisclosurePersistence = 'continuous' | 'initial' | 'flexible';
326
+
327
+ /**
328
+ * 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.
329
+ */
330
+ export type DisclosurePosition = 'prominent' | 'footer' | 'audio' | 'subtitle' | 'overlay' | 'end_card' | 'pre_roll' | 'companion';
331
+
332
+ /**
333
+ * Select collections by platform-independent distribution identifiers. The primary mechanism for cross-publisher collection matching.
334
+ */
335
+ export interface DistributionIDsSource {
336
+ /**
337
+ * Discriminator indicating selection by platform-independent distribution identifiers
338
+ */
339
+ selection_type: 'distribution_ids';
340
+ /**
341
+ * Platform-independent identifiers (imdb_id, gracenote_id, eidr_id, etc.). Each identifier uniquely identifies a collection across all publishers.
342
+ */
343
+ identifiers: {
344
+ type: DistributionIdentifierType;
345
+ /**
346
+ * The identifier value
347
+ */
348
+ value: string;
349
+ }[];
350
+ }
351
+
352
+ /**
353
+ * Type of distribution identifier
354
+ */
355
+ export type DistributionIdentifierType = 'apple_podcast_id' | 'spotify_collection_id' | 'rss_url' | 'podcast_guid' | 'amazon_music_id' | 'iheart_id' | 'podcast_index_id' | 'youtube_channel_id' | 'youtube_playlist_id' | 'amazon_title_id' | 'roku_channel_id' | 'pluto_channel_id' | 'tubi_id' | 'peacock_id' | 'tiktok_id' | 'twitch_channel' | 'imdb_id' | 'gracenote_id' | 'eidr_id' | 'domain' | 'substack_id';
356
+
357
+ /**
358
+ * How provenance data is carried within the content
359
+ */
360
+ export type EmbeddedProvenanceMethod = 'manifest_wrapper' | 'provenance_markers';
361
+
362
+ /**
363
+ * 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.
364
+ */
365
+ export interface ExtensionObject {
366
+ }
367
+
368
+ /**
369
+ * Taxonomy for the genre values. Required so sellers can interpret genre strings unambiguously. Use 'custom' for free-form values negotiated out of band.
370
+ */
371
+ export type GenreTaxonomy = 'iab_content_3.0' | 'iab_content_2.2' | 'gracenote' | 'eidr' | 'apple_genres' | 'google_genres' | 'roku' | 'amazon_genres' | 'custom';
372
+
373
+ /**
374
+ * Override logo asset.
375
+ */
376
+ export interface ImageAsset {
377
+ /**
378
+ * Discriminator identifying this as an image asset. See /schemas/creative/asset-types for the registry.
379
+ */
380
+ asset_type: 'image';
381
+ /**
382
+ * URL to the image asset
383
+ */
384
+ url: string;
385
+ /**
386
+ * Width in pixels
387
+ * @minimum 1
388
+ */
389
+ width: number;
390
+ /**
391
+ * Height in pixels
392
+ * @minimum 1
393
+ */
394
+ height: number;
395
+ /**
396
+ * Image file format (jpg, png, gif, webp, etc.)
397
+ */
398
+ format?: string;
399
+ /**
400
+ * Alternative text for accessibility
401
+ */
402
+ alt_text?: string;
403
+ provenance?: Provenance;
404
+ }
405
+
406
+ /**
407
+ * Production quality tier for collection content. Maps to OpenRTB content.prodq: professional=1, prosumer=2, ugc=3. Seller-declared — no external validation.
408
+ */
409
+ export type ProductionQuality = 'professional' | 'prosumer' | 'ugc';
410
+
411
+ /**
412
+ * Provenance metadata for this asset, overrides manifest-level provenance
413
+ */
414
+ export interface Provenance {
415
+ digital_source_type?: DigitalSourceType;
416
+ /**
417
+ * AI system used to generate or modify this content. Aligns with IPTC 2025.1 AI metadata fields and C2PA claim_generator.
418
+ */
419
+ ai_tool?: {
420
+ /**
421
+ * Name of the AI tool or model (e.g., 'DALL-E 3', 'Stable Diffusion XL', 'Gemini')
422
+ */
423
+ name: string;
424
+ /**
425
+ * 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.
426
+ */
427
+ version?: string;
428
+ /**
429
+ * Organization that provides the AI tool (e.g., 'OpenAI', 'Stability AI', 'Google')
430
+ */
431
+ provider?: string;
432
+ };
433
+ /**
434
+ * 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`.
435
+ */
436
+ human_oversight?: 'none' | 'prompt_only' | 'selected' | 'edited' | 'directed';
437
+ /**
438
+ * Party declaring this provenance. Identifies who attached the provenance claim, enabling receiving parties to assess trust.
439
+ */
440
+ declared_by?: {
441
+ /**
442
+ * URL of the agent or service that declared this provenance
443
+ */
444
+ agent_url?: string;
445
+ /**
446
+ * Role of the declaring party in the supply chain
447
+ */
448
+ role: 'creator' | 'advertiser' | 'agency' | 'platform' | 'tool';
449
+ };
450
+ /**
451
+ * 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.
452
+ * @format date-time
453
+ */
454
+ declared_at?: string;
455
+ /**
456
+ * When this content was created or generated (ISO 8601)
457
+ * @format date-time
458
+ */
459
+ created_time?: string;
460
+ /**
461
+ * 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.
462
+ */
463
+ c2pa?: {
464
+ /**
465
+ * URL to the C2PA manifest store for this content
466
+ */
467
+ manifest_url: string;
468
+ };
469
+ /**
470
+ * 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`).
471
+ */
472
+ embedded_provenance?: {
473
+ method: EmbeddedProvenanceMethod;
474
+ /**
475
+ * Standard the embedding conforms to, if any (e.g., 'c2pa' for C2PA Section A.7 text manifest embedding)
476
+ */
477
+ standard?: string;
478
+ /**
479
+ * Organization that performed the embedding (e.g., 'Encypher', 'Digimarc'). Display label and audit context — not a wire identifier.
480
+ */
481
+ provider: string;
482
+ /**
483
+ * 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).
484
+ */
485
+ verify_agent?: {
486
+ /**
487
+ * 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.
488
+ * @pattern ^https:\/\/
489
+ */
490
+ agent_url: string;
491
+ /**
492
+ * 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.
493
+ */
494
+ feature_id?: string;
495
+ };
496
+ /**
497
+ * When the provenance data was embedded (ISO 8601)
498
+ * @format date-time
499
+ */
500
+ embedded_at?: string;
501
+ }[];
502
+ /**
503
+ * 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`).
504
+ */
505
+ watermarks?: {
506
+ media_type: WatermarkMediaType;
507
+ /**
508
+ * Organization that applied the watermark (e.g., 'Imatag', 'Steg.AI', 'Encypher'). Display label and audit context — not a wire identifier.
509
+ */
510
+ provider: string;
511
+ /**
512
+ * 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).
513
+ */
514
+ verify_agent?: {
515
+ /**
516
+ * 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.
517
+ * @pattern ^https:\/\/
518
+ */
519
+ agent_url: string;
520
+ /**
521
+ * 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.
522
+ */
523
+ feature_id?: string;
524
+ };
525
+ c2pa_action?: C2PAWatermarkAction;
526
+ /**
527
+ * When the watermark was applied (ISO 8601)
528
+ * @format date-time
529
+ */
530
+ embedded_at?: string;
531
+ }[];
532
+ /**
533
+ * Regulatory disclosure requirements for this content. Indicates whether AI disclosure is required and under which jurisdictions.
534
+ */
535
+ disclosure?: {
536
+ /**
537
+ * 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.
538
+ */
539
+ required: boolean;
540
+ /**
541
+ * Jurisdictions where disclosure obligations apply
542
+ */
543
+ jurisdictions?: {
544
+ /**
545
+ * ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'CN')
546
+ */
547
+ country: string;
548
+ /**
549
+ * Sub-national region code (e.g., 'CA' for California, 'BY' for Bavaria)
550
+ */
551
+ region?: string;
552
+ /**
553
+ * Regulation identifier (e.g., 'eu_ai_act_article_50', 'ca_sb_942', 'cn_deep_synthesis')
554
+ */
555
+ regulation: string;
556
+ /**
557
+ * Required disclosure label text for this jurisdiction, in the local language
558
+ */
559
+ label_text?: string;
560
+ /**
561
+ * 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.
562
+ */
563
+ render_guidance?: {
564
+ persistence?: DisclosurePersistence;
565
+ /**
566
+ * 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.
567
+ * @minimum 1
568
+ */
569
+ min_duration_ms?: number;
570
+ /**
571
+ * Preferred disclosure positions in priority order. The first position a format supports should be used.
572
+ */
573
+ positions?: DisclosurePosition[];
574
+ ext?: ExtensionObject;
575
+ };
576
+ }[];
577
+ };
578
+ /**
579
+ * 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.
580
+ */
581
+ verification?: {
582
+ /**
583
+ * Name of the verification service (e.g., 'DoubleVerify', 'Hive Moderation', 'Reality Defender')
584
+ */
585
+ verified_by: string;
586
+ /**
587
+ * When the verification was performed (ISO 8601)
588
+ * @format date-time
589
+ */
590
+ verified_time?: string;
591
+ /**
592
+ * Verification outcome
593
+ */
594
+ result: 'authentic' | 'ai_generated' | 'ai_modified' | 'inconclusive';
595
+ /**
596
+ * Confidence score of the verification result (0.0 to 1.0)
597
+ * @minimum 0
598
+ * @maximum 1
599
+ */
600
+ confidence?: number;
601
+ /**
602
+ * URL to the full verification report
603
+ */
604
+ details_url?: string;
605
+ }[];
606
+ ext?: ExtensionObject;
607
+ }
608
+
609
+ /**
610
+ * Select specific collections within a publisher's adagents.json by collection ID
611
+ */
612
+ export interface PublisherCollectionsSource {
613
+ /**
614
+ * Discriminator indicating selection by specific collection IDs within a publisher
615
+ */
616
+ selection_type: 'publisher_collections';
617
+ /**
618
+ * Domain where publisher's adagents.json is hosted
619
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
620
+ */
621
+ publisher_domain: string;
622
+ /**
623
+ * Specific collection IDs from the publisher's adagents.json
624
+ */
625
+ collection_ids: string[];
626
+ }
627
+
628
+ /**
629
+ * Select all collections from a publisher matching genre criteria. Use when excluding entire content categories from a specific publisher.
630
+ */
631
+ export interface PublisherGenresSource {
632
+ /**
633
+ * Discriminator indicating selection by genre within a publisher
634
+ */
635
+ selection_type: 'publisher_genres';
636
+ /**
637
+ * Domain where publisher's adagents.json is hosted
638
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
639
+ */
640
+ publisher_domain: string;
641
+ /**
642
+ * Genre values to match against the publisher's collections
643
+ */
644
+ genres: string[];
645
+ genre_taxonomy: GenreTaxonomy;
646
+ }
647
+
648
+ /**
649
+ * 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.
650
+ */
651
+ export interface PushNotificationConfig {
652
+ /**
653
+ * 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).
654
+ */
655
+ url: string;
656
+ /**
657
+ * 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`.
658
+ * @minLength 1
659
+ * @maxLength 255
660
+ * @pattern ^[A-Za-z0-9_.:-]{1,255}$
661
+ */
662
+ operation_id?: string;
663
+ /**
664
+ * 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.
665
+ * @minLength 16
666
+ * @maxLength 4096
667
+ */
668
+ token?: string;
669
+ /**
670
+ * 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).
671
+ */
672
+ authentication?: {
673
+ /**
674
+ * 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.
675
+ */
676
+ schemes: AuthenticationScheme[];
677
+ /**
678
+ * 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.
679
+ * @minLength 32
680
+ */
681
+ credentials: string;
682
+ };
683
+ }
684
+
685
+ /**
686
+ * 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.
687
+ */
688
+ export type TaskStatus = 'submitted' | 'working' | 'input-required' | 'completed' | 'canceled' | 'failed' | 'rejected' | 'auth-required' | 'unknown';
689
+
690
+ /**
691
+ * Media category of the watermarked content
692
+ */
693
+ export type WatermarkMediaType = 'audio' | 'image' | 'video' | 'text';