@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,851 @@
1
+ // AUTO-GENERATED — DO NOT EDIT.
2
+ // Per-tool .d.ts slice for `list_accounts`. 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 listing accounts accessible to the authenticated agent
13
+ */
14
+ export interface ListAccountsRequest {
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
+ /**
24
+ * Filter accounts by status. Omit to return accounts in all statuses.
25
+ */
26
+ status?: 'active' | 'pending_approval' | 'rejected' | 'payment_required' | 'suspended' | 'closed';
27
+ pagination?: PaginationRequest;
28
+ /**
29
+ * Filter by sandbox status. true returns only sandbox accounts, false returns only production accounts. Omit to return all accounts. Primarily used with explicit accounts (require_operator_auth: true) where sandbox accounts are pre-existing test accounts on the platform.
30
+ */
31
+ sandbox?: boolean;
32
+ context?: ContextObject;
33
+ ext?: ExtensionObject;
34
+ }
35
+
36
+ /**
37
+ * Response payload for list_accounts task
38
+ */
39
+ export interface ListAccountsResponse {
40
+ /**
41
+ * 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).
42
+ */
43
+ context_id?: string;
44
+ context?: ContextObject;
45
+ /**
46
+ * Unique identifier for tracking asynchronous operations. Present when a task requires extended processing time. Used to query task status and retrieve results when complete.
47
+ */
48
+ task_id?: string;
49
+ status: TaskStatus;
50
+ /**
51
+ * 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.
52
+ */
53
+ message?: string;
54
+ /**
55
+ * ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.
56
+ */
57
+ timestamp?: string;
58
+ /**
59
+ * 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.
60
+ */
61
+ replayed?: boolean;
62
+ adcp_error?: Error;
63
+ push_notification_config?: PushNotificationConfig;
64
+ /**
65
+ * 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.
66
+ *
67
+ * 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.
68
+ *
69
+ * This is the primary correlation key for audit and reporting across the governance lifecycle.
70
+ */
71
+ governance_context?: string;
72
+ /**
73
+ * 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.
74
+ */
75
+ payload?: {};
76
+ /**
77
+ * 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.
78
+ */
79
+ adcp_version?: string;
80
+ /**
81
+ * 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.
82
+ */
83
+ adcp_major_version?: number;
84
+ /**
85
+ * Array of accounts accessible to the authenticated agent. Each entry is the full Account object plus an optional `authorization` object describing what the calling agent is permitted to do on that account.
86
+ */
87
+ accounts: (Account & {
88
+ authorization?: AccountAuthorization;
89
+ })[];
90
+ /**
91
+ * Task-specific errors and warnings
92
+ */
93
+ errors?: Error[];
94
+ pagination?: PaginationResponse;
95
+ ext?: ExtensionObject;
96
+ }
97
+
98
+ /**
99
+ * Account billed for this media buy. Includes advertiser, billing proxy (if any), and rate card applied.
100
+ */
101
+ export interface Account {
102
+ /**
103
+ * Unique identifier for this account
104
+ */
105
+ account_id: string;
106
+ /**
107
+ * Human-readable account name (e.g., 'Acme', 'Acme c/o Pinnacle')
108
+ */
109
+ name: string;
110
+ /**
111
+ * The advertiser whose rates apply to this account
112
+ */
113
+ advertiser?: string;
114
+ /**
115
+ * Optional intermediary who receives invoices on behalf of the advertiser (e.g., agency)
116
+ */
117
+ billing_proxy?: string;
118
+ status: AccountStatus;
119
+ brand?: BrandReference;
120
+ /**
121
+ * Domain of the entity operating this account. When the brand operates directly, this is the brand's domain.
122
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
123
+ */
124
+ operator?: string;
125
+ billing?: BillingParty;
126
+ billing_entity?: BusinessEntity;
127
+ /**
128
+ * Identifier for the rate card applied to this account
129
+ */
130
+ rate_card?: string;
131
+ payment_terms?: PaymentTerms;
132
+ /**
133
+ * Maximum outstanding balance allowed
134
+ */
135
+ credit_limit?: {
136
+ /**
137
+ * @minimum 0
138
+ */
139
+ amount: number;
140
+ /**
141
+ * @pattern ^[A-Z]{3}$
142
+ */
143
+ currency: string;
144
+ };
145
+ /**
146
+ * Present when status is 'pending_approval'. Contains next steps for completing account activation.
147
+ */
148
+ setup?: {
149
+ /**
150
+ * URL where the human can complete the required action (credit application, legal agreement, add funds).
151
+ */
152
+ url?: string;
153
+ /**
154
+ * Human-readable description of what's needed.
155
+ */
156
+ message: string;
157
+ /**
158
+ * When this setup link expires.
159
+ * @format date-time
160
+ */
161
+ expires_at?: string;
162
+ };
163
+ account_scope?: AccountScope;
164
+ /**
165
+ * Governance agent endpoint registered on this account. Exactly one entry per sync_governance's one-agent-per-account invariant. The array shape is preserved for wire compatibility with 3.0; `maxItems: 1` is load-bearing and mirrors the singular `governance_context` on the protocol envelope. Authentication credentials are write-only and not included in responses — use sync_governance to set or update credentials.
166
+ */
167
+ governance_agents?: {
168
+ /**
169
+ * Governance agent endpoint URL. Must use HTTPS.
170
+ * @pattern ^https:\/\/
171
+ */
172
+ url: string;
173
+ }[];
174
+ /**
175
+ * Cloud storage bucket where the seller delivers offline reporting files for this account. Seller provisions a dedicated bucket or a per-account prefix within a shared bucket, and grants the buyer read access out-of-band. Access MUST be scoped at the IAM layer so each account can only read its own prefix — bucket-wide grants are non-compliant even with per-account prefixes. Seller MUST revoke access when the account's status transitions to inactive, suspended, or closed. See security considerations for offline delivery in docs/media-buy/media-buys/optimization-reporting. Only present when the seller supports offline delivery (reporting_delivery_methods includes 'offline' in capabilities).
176
+ */
177
+ reporting_bucket?: {
178
+ protocol: CloudStorageProtocol;
179
+ /**
180
+ * Bucket or container name
181
+ * @minLength 3
182
+ * @maxLength 63
183
+ * @pattern ^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$
184
+ */
185
+ bucket: string;
186
+ /**
187
+ * Path prefix within the bucket. Seller appends date-based partitioning beneath this prefix.
188
+ * @maxLength 512
189
+ * @pattern ^[a-zA-Z0-9\/_.-]+$
190
+ */
191
+ prefix?: string;
192
+ /**
193
+ * Cloud region for the bucket
194
+ * @maxLength 64
195
+ * @pattern ^[a-z0-9-]+$
196
+ */
197
+ region?: string;
198
+ /**
199
+ * File format for delivered files. Parquet, Avro, and ORC use internal compression (the top-level compression field is ignored for these formats).
200
+ */
201
+ format?: 'jsonl' | 'csv' | 'parquet' | 'avro' | 'orc';
202
+ /**
203
+ * Compression applied to delivered files
204
+ */
205
+ compression?: 'gzip' | 'none';
206
+ /**
207
+ * How long reporting files are retained in the bucket before deletion. Buyers must read files within this window. Minimum recommended: 14 days.
208
+ * @minimum 1
209
+ */
210
+ file_retention_days: number;
211
+ /**
212
+ * URL to documentation for configuring buyer read access to this bucket (IAM role, service account, etc.). Operator-facing documentation — buyer agents MUST NOT auto-fetch this URL; surface it to a human operator. If an implementation fetches it (for preview), apply webhook URL SSRF validation and do not pass the fetched content into an LLM context without indirect-prompt-injection guarding. See docs/media-buy/media-buys/optimization-reporting#security-considerations-for-offline-delivery.
213
+ * @pattern ^https:\/\/
214
+ */
215
+ setup_instructions?: string;
216
+ };
217
+ /**
218
+ * When true, this is a sandbox account — no real platform calls, no real spend. For explicit accounts (require_operator_auth: true), sandbox accounts are pre-existing test accounts on the platform discovered via list_accounts. For implicit accounts, sandbox is part of the natural key: the same brand/operator pair can have both a production and sandbox account.
219
+ */
220
+ sandbox?: boolean;
221
+ /**
222
+ * Account-level webhook subscriptions for notifications whose lifecycle outlives any single media buy (e.g., `creative.status_changed`, `creative.purged`, wholesale feed change payloads). Distinct from `push_notification_config` on individual operations, which anchors at a per-resource scope. Buyers register and update entries via `sync_accounts`; sellers echo the applied state here on `list_accounts` reads so buyers can verify what's active. `authentication.credentials` is write-only — sellers MUST NOT echo legacy auth credentials in this response. When two or more entries register the same `event_types`, each receives an independent fire — see #3009 multi-subscriber composition.
223
+ */
224
+ notification_configs?: NotificationConfig[];
225
+ ext?: ExtensionObject;
226
+ }
227
+
228
+ /**
229
+ * Optional. The caller's scope grant against this account. Vendor agents of any type (media-buy, signals, governance, creative, brand) that support scope introspection SHOULD populate this so callers can preempt SCOPE_INSUFFICIENT / FIELD_NOT_PERMITTED errors rather than discovering scope by trial and error. Media-buy sales agents claiming the `attestation_verifier` standard scope MUST populate it. Absence means the vendor agent does not advertise introspectable scope for this account — callers MUST NOT infer access from absence, and fall back to error-driven discovery via the RBAC error codes.
230
+ */
231
+ export interface AccountAuthorization {
232
+ /**
233
+ * Canonical snake_case task names the caller may invoke against this account (e.g., get_media_buys, update_media_buy, create_media_buy, sync_creatives). Absence of a task from this list MUST be interpreted as 'not permitted' — invoking an absent task MUST return SCOPE_INSUFFICIENT. This list reflects the caller's grant, not the seller's universal capability surface (for that, see get_adcp_capabilities). A seller may grant narrower subsets to different callers on the same account.
234
+ */
235
+ allowed_tasks: string[];
236
+ /**
237
+ * Optional per-task allowlist of request fields the caller may set. Keys are task names (which MUST also appear in allowed_tasks). Values are arrays of top-level request-field paths permitted for that task. When a task appears in field_scopes, requests to that task with any field outside the allowlist MUST be rejected with FIELD_NOT_PERMITTED. Implicit framing fields are always permitted and do NOT need to appear in the allowlist — they identify the resource or shape the call rather than mutating business state. The list is non-exhaustive but covers the common cases: typed entity references (`account`, `media_buy_id`, `package_id`, `creative_id`, `signal_id`, `format_id`, `proposal_id`, `plan_id`, `session_id`), concurrency/idempotency (`revision`, `idempotency_key`), buyer-side correlation (`buyer_ref`, `po_number`), mode flags (`dry_run`), pagination (`pagination`, `cursor`, `max_results`), and envelope fields (`context`, `ext`, `adcp_major_version`, `push_notification_config` — transport-level async receipt, not business state). Any other typed entity-id parameter or query-shaping field on a read task SHOULD be treated as framing and not require listing. Tasks absent from field_scopes have no field-level restriction beyond what the task schema already enforces. An entry with an empty array means 'framing fields only, no business fields' — semantically distinct from the task being absent from field_scopes.
238
+ */
239
+ field_scopes?: {
240
+ [k: string]: string[] | undefined;
241
+ };
242
+ /**
243
+ * Optional named scope identifier. When present, callers and the vendor agent can reason about the grant by name rather than by enumerating allowed_tasks and field_scopes. Modeled as a discriminated union so code generators produce a literal type for the standard scope(s) and a distinct type for agent-defined values — this prevents a typo of `attestation_verifier` from being silently accepted as a custom scope. Agent-defined scope names MUST use a `custom:` prefix to avoid collision with future standard scopes. The prefix is protocol-neutral: a signals agent, a governance agent, or a creative agent defines custom scopes the same way a media-buy sales agent does.
244
+ */
245
+ scope_name?: StandardScope | CustomScope;
246
+ /**
247
+ * Convenience flag. When true, the caller is permitted only non-mutating tasks. Sellers MUST reject any mutation from a read-only caller with READ_ONLY_SCOPE. Sellers MAY omit this field; omission is equivalent to `false`. Callers MUST NOT infer read-only from `allowed_tasks` alone — the seller MUST set this explicitly when it applies.
248
+ */
249
+ read_only?: boolean;
250
+ }
251
+
252
+ /**
253
+ * How the seller scoped a billing account relative to the operator and brand dimensions.
254
+ */
255
+ export type AccountScope = 'operator' | 'brand' | 'operator_brand' | 'agent';
256
+
257
+ /**
258
+ * Account lifecycle status. See the Accounts Protocol overview for the operations matrix showing which tasks are permitted in each state.
259
+ */
260
+ export type AccountStatus = 'active' | 'pending_approval' | 'rejected' | 'payment_required' | 'suspended' | 'closed';
261
+
262
+ /**
263
+ * 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.
264
+ */
265
+ export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
266
+
267
+ /**
268
+ * Who is invoiced on this account. See billing_entity for the invoiced party's business details.
269
+ */
270
+ export type BillingParty = 'operator' | 'agent' | 'advertiser';
271
+
272
+ /**
273
+ * Brand identifier within the house portfolio. Optional for single-brand domains.
274
+ */
275
+ export type BrandID = string;
276
+
277
+ /**
278
+ * Brand reference for product discovery context. Resolved to full brand identity at execution time.
279
+ */
280
+ export interface BrandReference {
281
+ /**
282
+ * Domain where /.well-known/brand.json is hosted, or the brand's operating domain
283
+ * @pattern ^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$
284
+ */
285
+ domain: string;
286
+ brand_id?: BrandID;
287
+ /**
288
+ * 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.
289
+ */
290
+ industries?: string[];
291
+ /**
292
+ * 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.
293
+ */
294
+ data_subject_contestation?: {
295
+ [k: string]: unknown | undefined;
296
+ };
297
+ /**
298
+ * 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.
299
+ *
300
+ * **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.
301
+ */
302
+ brand_kit_override?: {
303
+ logo?: ImageAsset;
304
+ /**
305
+ * Override brand colors (hex strings).
306
+ */
307
+ colors?: {
308
+ /**
309
+ * @pattern ^#[0-9a-fA-F]{6}$
310
+ */
311
+ primary?: string;
312
+ /**
313
+ * @pattern ^#[0-9a-fA-F]{6}$
314
+ */
315
+ secondary?: string;
316
+ /**
317
+ * @pattern ^#[0-9a-fA-F]{6}$
318
+ */
319
+ accent?: string;
320
+ };
321
+ /**
322
+ * Override brand-voice description for surface-composed text/audio output.
323
+ */
324
+ voice?: string;
325
+ /**
326
+ * Override tagline.
327
+ */
328
+ tagline?: string;
329
+ };
330
+ }
331
+
332
+ /**
333
+ * Override the account's default billing entity for this specific buy. When provided, the seller invoices this entity instead. The seller MUST validate the invoice recipient is authorized for this account. When governance_agents are configured, the seller MUST include invoice_recipient in the check_governance request.
334
+ */
335
+ export interface BusinessEntity {
336
+ /**
337
+ * Registered legal name of the business entity
338
+ * @maxLength 200
339
+ */
340
+ legal_name: string;
341
+ /**
342
+ * VAT identification number (e.g., DE123456789 for Germany, FR12345678901 for France). Required for B2B invoicing in the EU. Must be normalized: no spaces, dots, or dashes.
343
+ * @pattern ^[A-Z]{2}[A-Z0-9]{2,13}$
344
+ */
345
+ vat_id?: string;
346
+ /**
347
+ * Tax identification number for jurisdictions that do not use VAT (e.g., US EIN)
348
+ * @maxLength 30
349
+ */
350
+ tax_id?: string;
351
+ /**
352
+ * Company registration number (e.g., HRB 12345 for German Handelsregister)
353
+ * @maxLength 50
354
+ */
355
+ registration_number?: string;
356
+ /**
357
+ * Postal address for invoicing and legal correspondence
358
+ */
359
+ address?: {
360
+ /**
361
+ * Street address including building number
362
+ * @maxLength 200
363
+ */
364
+ street: string;
365
+ /**
366
+ * @maxLength 100
367
+ */
368
+ city: string;
369
+ /**
370
+ * @maxLength 20
371
+ */
372
+ postal_code: string;
373
+ /**
374
+ * State, province, or region
375
+ * @maxLength 100
376
+ */
377
+ region?: string;
378
+ /**
379
+ * ISO 3166-1 alpha-2 country code
380
+ * @pattern ^[A-Z]{2}$
381
+ */
382
+ country: string;
383
+ };
384
+ /**
385
+ * Contacts for billing, legal, and operational matters. Contains personal data subject to GDPR and equivalent regulations. Implementations MUST use this data only for invoicing and account management.
386
+ */
387
+ contacts?: {
388
+ /**
389
+ * Contact's functional role in the business relationship
390
+ */
391
+ role: 'billing' | 'legal' | 'creative' | 'general';
392
+ /**
393
+ * Full name of the contact
394
+ * @maxLength 200
395
+ */
396
+ name?: string;
397
+ /**
398
+ * @maxLength 254
399
+ * @format email
400
+ */
401
+ email?: string;
402
+ /**
403
+ * @maxLength 30
404
+ */
405
+ phone?: string;
406
+ }[];
407
+ /**
408
+ * Bank account details for payment processing. Write-only: included in requests to provide payment coordinates, but MUST NOT be echoed in responses. Sellers store these details and confirm receipt without returning them.
409
+ */
410
+ bank?: {
411
+ /**
412
+ * Name on the bank account
413
+ * @maxLength 200
414
+ */
415
+ account_holder: string;
416
+ /**
417
+ * International Bank Account Number (SEPA markets)
418
+ * @pattern ^[A-Z]{2}[0-9]{2}[A-Z0-9]{4,30}$
419
+ */
420
+ iban?: string;
421
+ /**
422
+ * Bank Identifier Code / SWIFT code (SEPA markets)
423
+ * @pattern ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$
424
+ */
425
+ bic?: string;
426
+ /**
427
+ * Bank routing number for non-SEPA markets (e.g., US ABA routing number, Canadian transit/institution number)
428
+ * @maxLength 30
429
+ */
430
+ routing_number?: string;
431
+ /**
432
+ * Bank account number for non-SEPA markets
433
+ * @maxLength 30
434
+ */
435
+ account_number?: string;
436
+ };
437
+ ext?: ExtensionObject;
438
+ }
439
+
440
+ /**
441
+ * C2PA action classification for this watermark
442
+ */
443
+ export type C2PAWatermarkAction = 'c2pa.watermarked.bound' | 'c2pa.watermarked.unbound';
444
+
445
+ /**
446
+ * Cloud storage protocol
447
+ */
448
+ export type CloudStorageProtocol = 's3' | 'gcs' | 'azure_blob';
449
+
450
+ /**
451
+ * 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.
452
+ */
453
+ export interface ContextObject {
454
+ }
455
+
456
+ /**
457
+ * Agent-defined scope name, prefixed with `custom:`. Any vendor agent (media-buy seller, signals agent, governance agent, creative agent, brand agent) MAY define custom scopes. Callers MUST NOT assume any semantics from a custom-prefixed scope name.
458
+ * @pattern ^custom:[a-z][a-z0-9_]*$
459
+ */
460
+ export type CustomScope = string;
461
+
462
+ /**
463
+ * IPTC-aligned classification of AI involvement in producing this content
464
+ */
465
+ 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';
466
+
467
+ /**
468
+ * How long the disclosure must persist during content playback or display
469
+ */
470
+ export type DisclosurePersistence = 'continuous' | 'initial' | 'flexible';
471
+
472
+ /**
473
+ * 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.
474
+ */
475
+ export type DisclosurePosition = 'prominent' | 'footer' | 'audio' | 'subtitle' | 'overlay' | 'end_card' | 'pre_roll' | 'companion';
476
+
477
+ /**
478
+ * How provenance data is carried within the content
479
+ */
480
+ export type EmbeddedProvenanceMethod = 'manifest_wrapper' | 'provenance_markers';
481
+
482
+ /**
483
+ * 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.
484
+ */
485
+ export interface ExtensionObject {
486
+ }
487
+
488
+ /**
489
+ * Override logo asset.
490
+ */
491
+ export interface ImageAsset {
492
+ /**
493
+ * Discriminator identifying this as an image asset. See /schemas/creative/asset-types for the registry.
494
+ */
495
+ asset_type: 'image';
496
+ /**
497
+ * URL to the image asset
498
+ */
499
+ url: string;
500
+ /**
501
+ * Width in pixels
502
+ * @minimum 1
503
+ */
504
+ width: number;
505
+ /**
506
+ * Height in pixels
507
+ * @minimum 1
508
+ */
509
+ height: number;
510
+ /**
511
+ * Image file format (jpg, png, gif, webp, etc.)
512
+ */
513
+ format?: string;
514
+ /**
515
+ * Alternative text for accessibility
516
+ */
517
+ alt_text?: string;
518
+ provenance?: Provenance;
519
+ }
520
+
521
+ /**
522
+ * Account-level webhook subscription for notifications whose lifecycle outlives any single media buy — creative state changes, library purges, wholesale feed change webhooks, and future account-scoped events. Distinct from `push-notification-config.json`, which anchors at a per-resource operation (a single task or media buy). An account MAY register multiple notification configs to fan a single seller's events out to multiple buyer-side endpoints; each entry filters by `event_types`. As with push-notification-config, the default signing scheme is the AdCP RFC 9421 webhook profile against the seller's brand.json `agents[]` JWKS; the optional `authentication` block opts into the deprecated Bearer / HMAC-SHA256 fallback for compatibility. Credentials and shared secrets in `authentication.credentials` are write-only — sellers MUST NOT echo them back in `list_accounts` responses. Sellers MUST verify endpoint control before activating account-level notification configs for high-volume event families such as wholesale feed changes; delivery-time SSRF validation still applies to every fire.
523
+ */
524
+ export interface NotificationConfig {
525
+ /**
526
+ * Buyer-supplied identifier for this subscription endpoint. Echoed on every webhook payload and on every `webhook_activity[]` record fired against this config so the buyer can attribute fires across multiple endpoints. MUST be unique within the account's `notification_configs[]` — uniqueness is enforced by the seller at registration time; duplicates are rejected with `errors[]`. Always required (even with a single subscriber) so the SDK contract is uniform — no conditional required-when-multiple rules to trip up implementations. Format is opaque — recommended values are short kebab-case slugs (`buyer-primary`, `audit-bus`, `dx-team`).
527
+ * @minLength 1
528
+ * @maxLength 64
529
+ * @pattern ^[A-Za-z0-9_.:-]{1,64}$
530
+ */
531
+ subscriber_id: string;
532
+ /**
533
+ * Webhook endpoint URL. Same wire contract as `push-notification-config.url` — `format: "uri"`, no destination-port allowlist enforced by the protocol, SSRF protection via the IP-range check defined in docs/building/by-layer/L1/security.mdx#webhook-url-validation-ssrf. For wholesale feed subscribers, sellers MUST complete an activation challenge or equivalent proof-of-control before treating the subscriber as active.
534
+ */
535
+ url: string;
536
+ /**
537
+ * Notification types this subscriber wishes to receive on the registered `url`. The seller MUST NOT fire other types against this endpoint, and MUST NOT silently widen the filter when new types are added to `notification-type.json`. When omitted, the seller MUST default to a no-fire policy and surface an `errors[]` entry on `sync_accounts` so the buyer notices the missing filter. Values are drawn from `notification-type.json`, but only types whose contract anchors at the account scope are valid here — creative lifecycle events and wholesale feed change payloads are valid; media-buy-anchored types (`scheduled`, `final`, `delayed`, `adjusted`, `impairment`) belong on a media buy's `push_notification_config`, not on this surface; sellers MUST reject those entries as per-account validation failures with `INVALID_REQUEST` or `VALIDATION_ERROR` and `error.field` pointing at the invalid `event_types` entry rather than silently dropping them.
538
+ */
539
+ event_types: NotificationType[];
540
+ /**
541
+ * Legacy authentication selector. Same precedence and semantics as `push-notification-config.authentication` — presence opts the seller into Bearer or HMAC-SHA256 signing; absence selects the default RFC 9421 webhook profile keyed off the seller's brand.json `agents[]` JWKS. The same signed-registration downgrade-resistance rules apply to accounts[].notification_configs[].authentication. Deprecated; removed in AdCP 4.0. Credentials are write-only and MUST NOT be echoed on `list_accounts` reads.
542
+ */
543
+ authentication?: {
544
+ schemes: AuthenticationScheme[];
545
+ /**
546
+ * Credentials for the legacy scheme. Bearer: token. HMAC-SHA256: shared secret. Minimum 32 characters. Exchanged out-of-band during onboarding. Write-only.
547
+ * @minLength 32
548
+ */
549
+ credentials: string;
550
+ };
551
+ /**
552
+ * When false, the seller persists the configuration but suppresses fires. Use to pause a noisy subscriber without losing the registration. Sellers MUST NOT skip persisting the entry when `active: false` — the buyer's next `sync_accounts` MUST observe the same array, otherwise the buyer cannot distinguish pause from drop.
553
+ */
554
+ active?: boolean;
555
+ ext?: ExtensionObject;
556
+ }
557
+
558
+ /**
559
+ * Type of push notification fired by a seller agent. Media-buy-anchored notifications (`scheduled`, `final`, `delayed`, `adjusted`, `impairment`) fire against a media buy's `push_notification_config`. Account-anchored notifications (`creative.status_changed`, `creative.purged`, `product.*`, `signal.*`, `wholesale_feed.bulk_change`) fire against an account's `notification_configs[]` entries whose `event_types` include the value — these outlive any single media buy and anchor at the account. Wholesale feed notifications carry the actual change payload in `/schemas/core/wholesale-feed-webhook.json`; receivers use `get_products` / `get_signals` with `if_wholesale_feed_version` to repair or reconcile. New notification types added to this enum MUST declare their anchor (media-buy or account) and per-type `notification_id` semantics in the enumDescription. Sellers MUST reject `notification_configs[]` entries whose `event_types` include any media-buy-anchored type, and MUST reject `push_notification_config` registrations for account-anchored types.
560
+ */
561
+ export type NotificationType = 'scheduled' | 'final' | 'delayed' | 'adjusted' | 'impairment' | 'creative.status_changed' | 'creative.purged' | 'product.created' | 'product.updated' | 'product.priced' | 'product.removed' | 'signal.created' | 'signal.updated' | 'signal.priced' | 'signal.removed' | 'wholesale_feed.bulk_change';
562
+
563
+ /**
564
+ * Standard cursor-based pagination parameters for list operations
565
+ */
566
+ export interface PaginationRequest {
567
+ /**
568
+ * Maximum number of items to return per page
569
+ * @minimum 1
570
+ * @maximum 100
571
+ */
572
+ max_results?: number;
573
+ /**
574
+ * Opaque cursor from a previous response to fetch the next page
575
+ */
576
+ cursor?: string;
577
+ }
578
+
579
+ /**
580
+ * Standard cursor-based pagination metadata for list responses
581
+ */
582
+ export interface PaginationResponse {
583
+ /**
584
+ * Whether more results are available beyond this page
585
+ */
586
+ has_more: boolean;
587
+ /**
588
+ * Opaque cursor to pass in the next request to fetch the next page. Only present when has_more is true.
589
+ */
590
+ cursor?: string;
591
+ /**
592
+ * Total number of items matching the query across all pages. Optional because not all backends can efficiently compute this.
593
+ * @minimum 0
594
+ */
595
+ total_count?: number;
596
+ }
597
+
598
+ /**
599
+ * Payment terms agreed for this account. Binding for all invoices when the account is active.
600
+ */
601
+ export type PaymentTerms = 'net_15' | 'net_30' | 'net_45' | 'net_60' | 'net_90' | 'prepay';
602
+
603
+ /**
604
+ * Provenance metadata for this asset, overrides manifest-level provenance
605
+ */
606
+ export interface Provenance {
607
+ digital_source_type?: DigitalSourceType;
608
+ /**
609
+ * AI system used to generate or modify this content. Aligns with IPTC 2025.1 AI metadata fields and C2PA claim_generator.
610
+ */
611
+ ai_tool?: {
612
+ /**
613
+ * Name of the AI tool or model (e.g., 'DALL-E 3', 'Stable Diffusion XL', 'Gemini')
614
+ */
615
+ name: string;
616
+ /**
617
+ * 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.
618
+ */
619
+ version?: string;
620
+ /**
621
+ * Organization that provides the AI tool (e.g., 'OpenAI', 'Stability AI', 'Google')
622
+ */
623
+ provider?: string;
624
+ };
625
+ /**
626
+ * 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`.
627
+ */
628
+ human_oversight?: 'none' | 'prompt_only' | 'selected' | 'edited' | 'directed';
629
+ /**
630
+ * Party declaring this provenance. Identifies who attached the provenance claim, enabling receiving parties to assess trust.
631
+ */
632
+ declared_by?: {
633
+ /**
634
+ * URL of the agent or service that declared this provenance
635
+ */
636
+ agent_url?: string;
637
+ /**
638
+ * Role of the declaring party in the supply chain
639
+ */
640
+ role: 'creator' | 'advertiser' | 'agency' | 'platform' | 'tool';
641
+ };
642
+ /**
643
+ * 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.
644
+ * @format date-time
645
+ */
646
+ declared_at?: string;
647
+ /**
648
+ * When this content was created or generated (ISO 8601)
649
+ * @format date-time
650
+ */
651
+ created_time?: string;
652
+ /**
653
+ * 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.
654
+ */
655
+ c2pa?: {
656
+ /**
657
+ * URL to the C2PA manifest store for this content
658
+ */
659
+ manifest_url: string;
660
+ };
661
+ /**
662
+ * 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`).
663
+ */
664
+ embedded_provenance?: {
665
+ method: EmbeddedProvenanceMethod;
666
+ /**
667
+ * Standard the embedding conforms to, if any (e.g., 'c2pa' for C2PA Section A.7 text manifest embedding)
668
+ */
669
+ standard?: string;
670
+ /**
671
+ * Organization that performed the embedding (e.g., 'Encypher', 'Digimarc'). Display label and audit context — not a wire identifier.
672
+ */
673
+ provider: string;
674
+ /**
675
+ * 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).
676
+ */
677
+ verify_agent?: {
678
+ /**
679
+ * 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.
680
+ * @pattern ^https:\/\/
681
+ */
682
+ agent_url: string;
683
+ /**
684
+ * 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.
685
+ */
686
+ feature_id?: string;
687
+ };
688
+ /**
689
+ * When the provenance data was embedded (ISO 8601)
690
+ * @format date-time
691
+ */
692
+ embedded_at?: string;
693
+ }[];
694
+ /**
695
+ * 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`).
696
+ */
697
+ watermarks?: {
698
+ media_type: WatermarkMediaType;
699
+ /**
700
+ * Organization that applied the watermark (e.g., 'Imatag', 'Steg.AI', 'Encypher'). Display label and audit context — not a wire identifier.
701
+ */
702
+ provider: string;
703
+ /**
704
+ * 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).
705
+ */
706
+ verify_agent?: {
707
+ /**
708
+ * 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.
709
+ * @pattern ^https:\/\/
710
+ */
711
+ agent_url: string;
712
+ /**
713
+ * 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.
714
+ */
715
+ feature_id?: string;
716
+ };
717
+ c2pa_action?: C2PAWatermarkAction;
718
+ /**
719
+ * When the watermark was applied (ISO 8601)
720
+ * @format date-time
721
+ */
722
+ embedded_at?: string;
723
+ }[];
724
+ /**
725
+ * Regulatory disclosure requirements for this content. Indicates whether AI disclosure is required and under which jurisdictions.
726
+ */
727
+ disclosure?: {
728
+ /**
729
+ * 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.
730
+ */
731
+ required: boolean;
732
+ /**
733
+ * Jurisdictions where disclosure obligations apply
734
+ */
735
+ jurisdictions?: {
736
+ /**
737
+ * ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'CN')
738
+ */
739
+ country: string;
740
+ /**
741
+ * Sub-national region code (e.g., 'CA' for California, 'BY' for Bavaria)
742
+ */
743
+ region?: string;
744
+ /**
745
+ * Regulation identifier (e.g., 'eu_ai_act_article_50', 'ca_sb_942', 'cn_deep_synthesis')
746
+ */
747
+ regulation: string;
748
+ /**
749
+ * Required disclosure label text for this jurisdiction, in the local language
750
+ */
751
+ label_text?: string;
752
+ /**
753
+ * 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.
754
+ */
755
+ render_guidance?: {
756
+ persistence?: DisclosurePersistence;
757
+ /**
758
+ * 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.
759
+ * @minimum 1
760
+ */
761
+ min_duration_ms?: number;
762
+ /**
763
+ * Preferred disclosure positions in priority order. The first position a format supports should be used.
764
+ */
765
+ positions?: DisclosurePosition[];
766
+ ext?: ExtensionObject;
767
+ };
768
+ }[];
769
+ };
770
+ /**
771
+ * 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.
772
+ */
773
+ verification?: {
774
+ /**
775
+ * Name of the verification service (e.g., 'DoubleVerify', 'Hive Moderation', 'Reality Defender')
776
+ */
777
+ verified_by: string;
778
+ /**
779
+ * When the verification was performed (ISO 8601)
780
+ * @format date-time
781
+ */
782
+ verified_time?: string;
783
+ /**
784
+ * Verification outcome
785
+ */
786
+ result: 'authentic' | 'ai_generated' | 'ai_modified' | 'inconclusive';
787
+ /**
788
+ * Confidence score of the verification result (0.0 to 1.0)
789
+ * @minimum 0
790
+ * @maximum 1
791
+ */
792
+ confidence?: number;
793
+ /**
794
+ * URL to the full verification report
795
+ */
796
+ details_url?: string;
797
+ }[];
798
+ ext?: ExtensionObject;
799
+ }
800
+
801
+ /**
802
+ * 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.
803
+ */
804
+ export interface PushNotificationConfig {
805
+ /**
806
+ * 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).
807
+ */
808
+ url: string;
809
+ /**
810
+ * 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`.
811
+ * @minLength 1
812
+ * @maxLength 255
813
+ * @pattern ^[A-Za-z0-9_.:-]{1,255}$
814
+ */
815
+ operation_id?: string;
816
+ /**
817
+ * 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.
818
+ * @minLength 16
819
+ * @maxLength 4096
820
+ */
821
+ token?: string;
822
+ /**
823
+ * 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).
824
+ */
825
+ authentication?: {
826
+ /**
827
+ * 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.
828
+ */
829
+ schemes: AuthenticationScheme[];
830
+ /**
831
+ * 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.
832
+ * @minLength 32
833
+ */
834
+ credentials: string;
835
+ };
836
+ }
837
+
838
+ /**
839
+ * Standard named scopes defined by the AdCP spec. `attestation_verifier` binds to the AAO Verified (Live) qualifier (a Media Buy Protocol flow — live observation requires real ad delivery) — the authorization mechanism itself is protocol-neutral, but this particular named scope is media-buy-specific.
840
+ */
841
+ export type StandardScope = 'attestation_verifier';
842
+
843
+ /**
844
+ * 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.
845
+ */
846
+ export type TaskStatus = 'submitted' | 'working' | 'input-required' | 'completed' | 'canceled' | 'failed' | 'rejected' | 'auth-required' | 'unknown';
847
+
848
+ /**
849
+ * Media category of the watermarked content
850
+ */
851
+ export type WatermarkMediaType = 'audio' | 'image' | 'video' | 'text';