@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,373 @@
1
+ // AUTO-GENERATED — DO NOT EDIT.
2
+ // Per-tool .d.ts slice for `log_event`. 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 logging marketing events
13
+ */
14
+ export interface LogEventRequest {
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
+ * Event source configured on the account via sync_event_sources
25
+ */
26
+ event_source_id: string;
27
+ /**
28
+ * Test event code for validation without affecting production data. Events with this code appear in the platform's test events UI.
29
+ */
30
+ test_event_code?: string;
31
+ /**
32
+ * Events to log
33
+ */
34
+ events: Event[];
35
+ /**
36
+ * Client-generated unique key for this request. Prevents duplicate event logging on retries. MUST be unique per (seller, request) pair to prevent cross-seller correlation. Use a fresh UUID v4 for each request.
37
+ * @minLength 16
38
+ * @maxLength 255
39
+ * @pattern ^[A-Za-z0-9_.:-]{16,255}$
40
+ */
41
+ idempotency_key: string;
42
+ context?: ContextObject;
43
+ ext?: ExtensionObject;
44
+ }
45
+
46
+ /**
47
+ * Response from event logging operation. Returns either event processing results OR operation-level errors.
48
+ */
49
+ export type LogEventResponse = {
50
+ /**
51
+ * 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).
52
+ */
53
+ context_id?: string;
54
+ context?: ContextObject;
55
+ /**
56
+ * Unique identifier for tracking asynchronous operations. Present when a task requires extended processing time. Used to query task status and retrieve results when complete.
57
+ */
58
+ task_id?: string;
59
+ status: TaskStatus;
60
+ /**
61
+ * 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.
62
+ */
63
+ message?: string;
64
+ /**
65
+ * ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.
66
+ */
67
+ timestamp?: string;
68
+ /**
69
+ * 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.
70
+ */
71
+ replayed?: boolean;
72
+ adcp_error?: Error;
73
+ push_notification_config?: PushNotificationConfig;
74
+ /**
75
+ * 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.
76
+ *
77
+ * 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.
78
+ *
79
+ * This is the primary correlation key for audit and reporting across the governance lifecycle.
80
+ */
81
+ governance_context?: string;
82
+ /**
83
+ * 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.
84
+ */
85
+ payload?: {};
86
+ /**
87
+ * 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.
88
+ */
89
+ adcp_version?: string;
90
+ /**
91
+ * 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.
92
+ */
93
+ adcp_major_version?: number;
94
+ } & (LogEventSuccess | LogEventError);
95
+
96
+ /**
97
+ * Success response - events received and queued for processing
98
+ */
99
+ export interface LogEventSuccess {
100
+ /**
101
+ * Number of events received
102
+ * @minimum 0
103
+ */
104
+ events_received: number;
105
+ /**
106
+ * Number of events successfully queued for processing
107
+ * @minimum 0
108
+ */
109
+ events_processed: number;
110
+ /**
111
+ * Events that failed validation
112
+ */
113
+ partial_failures?: {
114
+ /**
115
+ * ID of the failed event
116
+ */
117
+ event_id: string;
118
+ /**
119
+ * Error code
120
+ */
121
+ code: string;
122
+ /**
123
+ * Human-readable error message
124
+ */
125
+ message: string;
126
+ }[];
127
+ /**
128
+ * Non-fatal issues (low match quality, missing recommended fields, deprecation notices)
129
+ */
130
+ warnings?: string[];
131
+ /**
132
+ * Overall match quality score for the batch (0.0 = no matches, 1.0 = all matched)
133
+ * @minimum 0
134
+ * @maximum 1
135
+ */
136
+ match_quality?: number;
137
+ /**
138
+ * When true, this response contains simulated data from sandbox mode.
139
+ */
140
+ sandbox?: boolean;
141
+ context?: ContextObject;
142
+ ext?: ExtensionObject;
143
+ }
144
+
145
+ /**
146
+ * Error response - request failed entirely
147
+ */
148
+ export interface LogEventError {
149
+ /**
150
+ * Operation-level errors
151
+ */
152
+ errors: Error[];
153
+ context?: ContextObject;
154
+ ext?: ExtensionObject;
155
+ }
156
+
157
+ /**
158
+ * Where the conversion event originated
159
+ */
160
+ export type ActionSource = 'website' | 'app' | 'offline' | 'phone_call' | 'chat' | 'email' | 'in_store' | 'system_generated' | 'other';
161
+
162
+ /**
163
+ * 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.
164
+ */
165
+ export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
166
+
167
+ /**
168
+ * 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.
169
+ */
170
+ export interface ContextObject {
171
+ }
172
+
173
+ /**
174
+ * A marketing event (conversion, engagement, or custom) for attribution and optimization
175
+ */
176
+ export interface Event {
177
+ /**
178
+ * Unique identifier for deduplication (scoped to event_type + event_source_id)
179
+ * @minLength 1
180
+ * @maxLength 256
181
+ */
182
+ event_id: string;
183
+ event_type: EventType;
184
+ /**
185
+ * ISO 8601 timestamp when the event occurred
186
+ * @format date-time
187
+ */
188
+ event_time: string;
189
+ user_match?: UserMatch;
190
+ custom_data?: EventCustomData;
191
+ action_source?: ActionSource;
192
+ /**
193
+ * URL where the event occurred (required when action_source is 'website')
194
+ */
195
+ event_source_url?: string;
196
+ /**
197
+ * Name for custom events (used when event_type is 'custom')
198
+ */
199
+ custom_event_name?: string;
200
+ ext?: ExtensionObject;
201
+ }
202
+
203
+ /**
204
+ * Event-specific data (value, currency, items, etc.)
205
+ */
206
+ export interface EventCustomData {
207
+ /**
208
+ * Monetary value of the event (should be accompanied by currency)
209
+ * @minimum 0
210
+ */
211
+ value?: number;
212
+ /**
213
+ * ISO 4217 currency code
214
+ * @pattern ^[A-Z]{3}$
215
+ */
216
+ currency?: string;
217
+ /**
218
+ * Unique order or transaction identifier
219
+ */
220
+ order_id?: string;
221
+ /**
222
+ * Item identifiers for catalog attribution. Values are matched against catalog items using the identifier type declared by the catalog's content_id_type field (e.g., SKUs, GTINs, or vertical-specific IDs like job_id).
223
+ */
224
+ content_ids?: string[];
225
+ /**
226
+ * Category of content associated with the event (e.g., 'product', 'job', 'hotel'). Corresponds to the catalog type when used for catalog attribution.
227
+ */
228
+ content_type?: string;
229
+ /**
230
+ * Name of the product or content
231
+ */
232
+ content_name?: string;
233
+ /**
234
+ * Category of the product or content
235
+ */
236
+ content_category?: string;
237
+ /**
238
+ * Number of items in the event
239
+ * @minimum 0
240
+ */
241
+ num_items?: number;
242
+ /**
243
+ * Search query for search events
244
+ */
245
+ search_string?: string;
246
+ /**
247
+ * Per-item details for e-commerce events
248
+ */
249
+ contents?: {
250
+ /**
251
+ * Product or content identifier
252
+ */
253
+ id: string;
254
+ /**
255
+ * Quantity of this item
256
+ * @minimum 1
257
+ */
258
+ quantity?: number;
259
+ /**
260
+ * Price per unit of this item
261
+ * @minimum 0
262
+ */
263
+ price?: number;
264
+ /**
265
+ * Brand name of this item
266
+ */
267
+ brand?: string;
268
+ }[];
269
+ ext?: ExtensionObject;
270
+ }
271
+
272
+ /**
273
+ * Standard marketing event types for event logging, aligned with IAB ECAPI
274
+ */
275
+ export type EventType = 'page_view' | 'view_content' | 'select_content' | 'select_item' | 'search' | 'share' | 'add_to_cart' | 'remove_from_cart' | 'viewed_cart' | 'add_to_wishlist' | 'initiate_checkout' | 'add_payment_info' | 'purchase' | 'refund' | 'lead' | 'qualify_lead' | 'close_convert_lead' | 'disqualify_lead' | 'complete_registration' | 'subscribe' | 'start_trial' | 'app_install' | 'app_launch' | 'contact' | 'schedule' | 'donate' | 'submit_application' | 'custom';
276
+
277
+ /**
278
+ * 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.
279
+ */
280
+ export interface ExtensionObject {
281
+ }
282
+
283
+ /**
284
+ * 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.
285
+ */
286
+ export interface PushNotificationConfig {
287
+ /**
288
+ * 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).
289
+ */
290
+ url: string;
291
+ /**
292
+ * 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`.
293
+ * @minLength 1
294
+ * @maxLength 255
295
+ * @pattern ^[A-Za-z0-9_.:-]{1,255}$
296
+ */
297
+ operation_id?: string;
298
+ /**
299
+ * 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.
300
+ * @minLength 16
301
+ * @maxLength 4096
302
+ */
303
+ token?: string;
304
+ /**
305
+ * 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).
306
+ */
307
+ authentication?: {
308
+ /**
309
+ * 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.
310
+ */
311
+ schemes: AuthenticationScheme[];
312
+ /**
313
+ * 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.
314
+ * @minLength 32
315
+ */
316
+ credentials: string;
317
+ };
318
+ }
319
+
320
+ /**
321
+ * 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.
322
+ */
323
+ export type TaskStatus = 'submitted' | 'working' | 'input-required' | 'completed' | 'canceled' | 'failed' | 'rejected' | 'auth-required' | 'unknown';
324
+
325
+ /**
326
+ * Type of user identifier. Used in audience sync, event logging, and TMP identity match requests to tell the receiver which identity graph to resolve against.
327
+ */
328
+ export type UIDType = 'rampid' | 'rampid_derived' | 'id5' | 'uid2' | 'euid' | 'pairid' | 'maid' | 'hashed_email' | 'publisher_first_party' | 'other';
329
+
330
+ /**
331
+ * User identifiers for attribution matching
332
+ */
333
+ export type UserMatch = {
334
+ [k: string]: unknown | undefined;
335
+ } & {
336
+ /**
337
+ * Universal ID values for user matching
338
+ */
339
+ uids?: {
340
+ type: UIDType;
341
+ /**
342
+ * Universal ID value
343
+ */
344
+ value: string;
345
+ }[];
346
+ /**
347
+ * SHA-256 hash of lowercase, trimmed email address. Buyer must normalize before hashing: lowercase, trim whitespace. Pseudonymous PII, not anonymous — the email namespace is small enough that an unsalted SHA-256 is recoverable via precomputed dictionaries. Treat as PII for retention, consent, and access-control purposes. See docs/reference/privacy-considerations#unsalted-hashed-identifiers-are-pseudonymous-not-anonymous.
348
+ * @pattern ^[a-f0-9]{64}$
349
+ */
350
+ hashed_email?: string;
351
+ /**
352
+ * SHA-256 hash of E.164-formatted phone number (e.g. +12065551234). Buyer must normalize to E.164 before hashing. Pseudonymous PII, not anonymous — the E.164 namespace is small enough that an unsalted SHA-256 is recoverable via precomputed dictionaries. Treat as PII for retention, consent, and access-control purposes. See docs/reference/privacy-considerations#unsalted-hashed-identifiers-are-pseudonymous-not-anonymous.
353
+ * @pattern ^[a-f0-9]{64}$
354
+ */
355
+ hashed_phone?: string;
356
+ /**
357
+ * Platform click identifier (fbclid, gclid, ttclid, ScCid, etc.)
358
+ */
359
+ click_id?: string;
360
+ /**
361
+ * Type of click identifier (e.g. fbclid, gclid, ttclid, msclkid, ScCid)
362
+ */
363
+ click_id_type?: string;
364
+ /**
365
+ * Client IP address for probabilistic matching
366
+ */
367
+ client_ip?: string;
368
+ /**
369
+ * Client user agent string for probabilistic matching
370
+ */
371
+ client_user_agent?: string;
372
+ ext?: ExtensionObject;
373
+ };