@oursprivacy/platform-sdk 1.50.0 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +10 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/analytics.d.mts +2 -2
  12. package/resources/analytics.d.ts +2 -2
  13. package/resources/analytics.js +2 -2
  14. package/resources/analytics.mjs +2 -2
  15. package/resources/destinations.d.mts +7 -7
  16. package/resources/destinations.d.mts.map +1 -1
  17. package/resources/destinations.d.ts +7 -7
  18. package/resources/destinations.d.ts.map +1 -1
  19. package/resources/experiments.d.mts +661 -35
  20. package/resources/experiments.d.mts.map +1 -1
  21. package/resources/experiments.d.ts +661 -35
  22. package/resources/experiments.d.ts.map +1 -1
  23. package/resources/experiments.js +27 -19
  24. package/resources/experiments.js.map +1 -1
  25. package/resources/experiments.mjs +27 -19
  26. package/resources/experiments.mjs.map +1 -1
  27. package/resources/index.d.mts +4 -2
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +4 -2
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/journey-flows.d.mts +4155 -0
  36. package/resources/journey-flows.d.mts.map +1 -0
  37. package/resources/journey-flows.d.ts +4155 -0
  38. package/resources/journey-flows.d.ts.map +1 -0
  39. package/resources/journey-flows.js +90 -0
  40. package/resources/journey-flows.js.map +1 -0
  41. package/resources/journey-flows.mjs +86 -0
  42. package/resources/journey-flows.mjs.map +1 -0
  43. package/resources/short-links.d.mts +40 -0
  44. package/resources/short-links.d.mts.map +1 -1
  45. package/resources/short-links.d.ts +40 -0
  46. package/resources/short-links.d.ts.map +1 -1
  47. package/resources/sources.d.mts +20 -0
  48. package/resources/sources.d.mts.map +1 -1
  49. package/resources/sources.d.ts +20 -0
  50. package/resources/sources.d.ts.map +1 -1
  51. package/resources/test-events.d.mts +540 -0
  52. package/resources/test-events.d.mts.map +1 -0
  53. package/resources/test-events.d.ts +540 -0
  54. package/resources/test-events.d.ts.map +1 -0
  55. package/resources/test-events.js +88 -0
  56. package/resources/test-events.js.map +1 -0
  57. package/resources/test-events.mjs +84 -0
  58. package/resources/test-events.mjs.map +1 -0
  59. package/resources/video-channels.d.mts +13 -0
  60. package/resources/video-channels.d.mts.map +1 -1
  61. package/resources/video-channels.d.ts +13 -0
  62. package/resources/video-channels.d.ts.map +1 -1
  63. package/resources/videos.d.mts +160 -2
  64. package/resources/videos.d.mts.map +1 -1
  65. package/resources/videos.d.ts +160 -2
  66. package/resources/videos.d.ts.map +1 -1
  67. package/resources/videos.js +32 -2
  68. package/resources/videos.js.map +1 -1
  69. package/resources/videos.mjs +32 -2
  70. package/resources/videos.mjs.map +1 -1
  71. package/resources/web-analytics.d.mts +9 -9
  72. package/resources/web-analytics.d.mts.map +1 -1
  73. package/resources/web-analytics.d.ts +9 -9
  74. package/resources/web-analytics.d.ts.map +1 -1
  75. package/resources/web-analytics.js +2 -2
  76. package/resources/web-analytics.js.map +1 -1
  77. package/resources/web-analytics.mjs +2 -2
  78. package/resources/web-analytics.mjs.map +1 -1
  79. package/resources/web-scanners.d.mts +28 -17
  80. package/resources/web-scanners.d.mts.map +1 -1
  81. package/resources/web-scanners.d.ts +28 -17
  82. package/resources/web-scanners.d.ts.map +1 -1
  83. package/resources/web-scanners.js +19 -14
  84. package/resources/web-scanners.js.map +1 -1
  85. package/resources/web-scanners.mjs +19 -14
  86. package/resources/web-scanners.mjs.map +1 -1
  87. package/src/client.ts +80 -4
  88. package/src/resources/analytics.ts +2 -2
  89. package/src/resources/destinations.ts +7 -0
  90. package/src/resources/experiments.ts +808 -35
  91. package/src/resources/index.ts +37 -2
  92. package/src/resources/journey-flows.ts +8244 -0
  93. package/src/resources/short-links.ts +47 -0
  94. package/src/resources/sources.ts +24 -0
  95. package/src/resources/test-events.ts +701 -0
  96. package/src/resources/video-channels.ts +22 -0
  97. package/src/resources/videos.ts +279 -2
  98. package/src/resources/web-analytics.ts +13 -13
  99. package/src/resources/web-scanners.ts +28 -17
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
@@ -0,0 +1,701 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class TestEvents extends APIResource {
10
+ /**
11
+ * List browser, server, and synthetic events captured with debug mode during the
12
+ * last 48 hours, newest received first. Includes live-token and test-token events;
13
+ * `isTestEvent` indicates whether a test token was used. Returns full event
14
+ * properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
15
+ * `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
16
+ * scope: report:list-events
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * // Automatically fetches more pages as needed.
21
+ * for await (const testEventListResponse of client.testEvents.list()) {
22
+ * // ...
23
+ * }
24
+ * ```
25
+ */
26
+ list(
27
+ query: TestEventListParams | null | undefined = {},
28
+ options?: RequestOptions,
29
+ ): PagePromise<TestEventListResponsesCursor, TestEventListResponse> {
30
+ return this._client.getAPIList('/rest/v1/test-events', Cursor<TestEventListResponse>, {
31
+ query,
32
+ ...options,
33
+ });
34
+ }
35
+
36
+ /**
37
+ * Send a test event through the same processing your production events go through,
38
+ * using the source’s live token with debug capture enabled. This can deliver real
39
+ * data to configured destinations. The response acknowledges acceptance for
40
+ * processing; it does not contain processing results. The event is captured in
41
+ * Recent Events. Use the returned `id` with
42
+ * `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
43
+ * Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
44
+ * they are generated and returned. Requires scope: test-event:create
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const testEvent = await client.testEvents.create({
49
+ * eventName: 'Purchase',
50
+ * });
51
+ * ```
52
+ */
53
+ create(body: TestEventCreateParams, options?: RequestOptions): APIPromise<TestEventCreateResponse> {
54
+ return this._client.post('/rest/v1/test-events', { body, ...options });
55
+ }
56
+
57
+ /**
58
+ * Retrieve one browser, server, or synthetic event captured in debug mode within
59
+ * the last 48 hours. Use an id returned by the create or list endpoint. Events
60
+ * that have not arrived, expired events, and events outside your account
61
+ * return 404. Requires scope: report:view-event
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const testEvent = await client.testEvents.retrieve(
66
+ * 'a1b2c3d4:ck9x8y7z6w5v4u3t',
67
+ * );
68
+ * ```
69
+ */
70
+ retrieve(id: string, options?: RequestOptions): APIPromise<TestEventRetrieveResponse> {
71
+ return this._client.get(path`/rest/v1/test-events/${id}`, options);
72
+ }
73
+
74
+ /**
75
+ * Retrieve dispatches recorded for a debug-captured browser, server, or synthetic
76
+ * event. Use an id returned by the create or list endpoint. The entities array
77
+ * contains mapped payloads and recorded success or failure details. It is empty
78
+ * until dispatch records arrive, and may remain empty when no dispatch occurs.
79
+ * Results can grow as processing continues; this endpoint does not predict
80
+ * destinations or signal completion. Requires the report:view-dispatch scope.
81
+ * Requires scope: report:view-dispatch
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const response = await client.testEvents.dispatches(
86
+ * 'a1b2c3d4:ck9x8y7z6w5v4u3t',
87
+ * );
88
+ * ```
89
+ */
90
+ dispatches(id: string, options?: RequestOptions): APIPromise<TestEventDispatchesResponse> {
91
+ return this._client.get(path`/rest/v1/test-events/${id}/dispatches`, options);
92
+ }
93
+ }
94
+
95
+ export type TestEventListResponsesCursor = Cursor<TestEventListResponse>;
96
+
97
+ export interface TestEventListResponse {
98
+ id: string;
99
+
100
+ distinctId: string;
101
+
102
+ eventName: string;
103
+
104
+ /**
105
+ * Whether the event used a test token. Debug-captured live-token events have false
106
+ * here.
107
+ */
108
+ isTestEvent: boolean;
109
+
110
+ time: string;
111
+
112
+ visitorId: string;
113
+
114
+ defaultProperties?: unknown | null;
115
+
116
+ eventProperties?: unknown | null;
117
+
118
+ rawData?: string | null;
119
+
120
+ requestContext?: unknown | null;
121
+
122
+ sourceId?: string | null;
123
+
124
+ sourceName?: string | null;
125
+
126
+ sourceType?: string | null;
127
+
128
+ userProperties?: unknown | null;
129
+ }
130
+
131
+ export interface TestEventCreateResponse {
132
+ /**
133
+ * Identifier to pass to the event detail or dispatch endpoint.
134
+ */
135
+ id: string;
136
+
137
+ /**
138
+ * When the event was accepted for processing, as an ISO 8601 timestamp.
139
+ */
140
+ acceptedAt: string;
141
+
142
+ distinctId: string;
143
+
144
+ eventName: string;
145
+
146
+ sourceId: string;
147
+
148
+ visitorId: string;
149
+ }
150
+
151
+ export interface TestEventRetrieveResponse {
152
+ id: string;
153
+
154
+ distinctId: string;
155
+
156
+ eventName: string;
157
+
158
+ /**
159
+ * Whether the event used a test token. Debug-captured live-token events have false
160
+ * here.
161
+ */
162
+ isTestEvent: boolean;
163
+
164
+ time: string;
165
+
166
+ visitorId: string;
167
+
168
+ defaultProperties?: unknown | null;
169
+
170
+ eventProperties?: unknown | null;
171
+
172
+ rawData?: string | null;
173
+
174
+ requestContext?: unknown | null;
175
+
176
+ sourceId?: string | null;
177
+
178
+ sourceName?: string | null;
179
+
180
+ sourceType?: string | null;
181
+
182
+ userProperties?: unknown | null;
183
+ }
184
+
185
+ export interface TestEventDispatchesResponse {
186
+ id: string;
187
+
188
+ /**
189
+ * Dispatches recorded so far. Empty until dispatches arrive; no predicted
190
+ * destinations or completion signal. Events created through this API can be
191
+ * delivered to live destinations.
192
+ */
193
+ entities: Array<TestEventDispatchesResponse.Entity>;
194
+ }
195
+
196
+ export namespace TestEventDispatchesResponse {
197
+ export interface Entity {
198
+ destinationId: string;
199
+
200
+ allowedEventId?: string | null;
201
+
202
+ allowedEventName?: string | null;
203
+
204
+ destinationName?: string | null;
205
+
206
+ destinationType?: string | null;
207
+
208
+ /**
209
+ * When the send was attempted, as an ISO 8601 timestamp.
210
+ */
211
+ dispatchedAt?: string | null;
212
+
213
+ /**
214
+ * When the destination accepted the send, as an ISO 8601 timestamp.
215
+ */
216
+ dispatchedSuccessAt?: string | null;
217
+
218
+ /**
219
+ * Failure detail when `success` is false.
220
+ */
221
+ message?: string | null;
222
+
223
+ /**
224
+ * The mapped payload recorded for this dispatch.
225
+ */
226
+ payload?: unknown | null;
227
+
228
+ /**
229
+ * Whether this send succeeded. Null while the attempt is still in flight.
230
+ */
231
+ success?: boolean | null;
232
+ }
233
+ }
234
+
235
+ export interface TestEventListParams extends CursorParams {}
236
+
237
+ export interface TestEventCreateParams {
238
+ /**
239
+ * Name of the event to send, matching an event name configured on this account.
240
+ */
241
+ eventName: string;
242
+
243
+ /**
244
+ * Known context properties used by ingest and destination mappings. Use
245
+ * current_url for the page URL. Unknown properties are ignored.
246
+ */
247
+ defaultProperties?: TestEventCreateParams.DefaultProperties | null;
248
+
249
+ /**
250
+ * Event identity for this specific event. Generated when omitted. Letters,
251
+ * numbers, hyphens, and underscores only.
252
+ */
253
+ distinctId?: string | null;
254
+
255
+ /**
256
+ * Event-level properties available to destination mappings.
257
+ */
258
+ eventProperties?: unknown | null;
259
+
260
+ /**
261
+ * Source to attribute the event to. Defaults to the account's first enabled source
262
+ * that accepts events over the API.
263
+ */
264
+ sourceId?: string | null;
265
+
266
+ /**
267
+ * Person-level properties available to destination mappings.
268
+ */
269
+ userProperties?: unknown | null;
270
+
271
+ /**
272
+ * Visitor identity to send the event as. Generated when omitted. Letters, numbers,
273
+ * hyphens, and underscores only.
274
+ */
275
+ visitorId?: string | null;
276
+ }
277
+
278
+ export namespace TestEventCreateParams {
279
+ /**
280
+ * Known context properties used by ingest and destination mappings. Use
281
+ * current_url for the page URL. Unknown properties are ignored.
282
+ */
283
+ export interface DefaultProperties {
284
+ /**
285
+ * The Everflow affiliate Click (Transaction) ID, captured from the
286
+ * `_ef_transaction_id` URL parameter. Ex: ef_click_abc123
287
+ */
288
+ _ef_transaction_id?: string | null;
289
+
290
+ /**
291
+ * The active time in milliseconds that the user had this tab active
292
+ */
293
+ activeDuration?: number | null;
294
+
295
+ /**
296
+ * The ad id for detected in the session. This is set by the web sdk automatically.
297
+ */
298
+ ad_id?: string | null;
299
+
300
+ /**
301
+ * The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123
302
+ */
303
+ admitad_uid?: string | null;
304
+
305
+ /**
306
+ * The adset id for detected in the session. This is set by the web sdk
307
+ * automatically.
308
+ */
309
+ adset_id?: string | null;
310
+
311
+ /**
312
+ * The AppLovin alart query parameter. Ex: alart123
313
+ */
314
+ alart?: string | null;
315
+
316
+ /**
317
+ * The AppLovin aleid query parameter. Ex: aleid123
318
+ */
319
+ aleid?: string | null;
320
+
321
+ /**
322
+ * The AppLovin pixel cookie value (\_axwrt). Web-only.
323
+ */
324
+ axwrt?: string | null;
325
+
326
+ /**
327
+ * The Basis DSP Click ID. Ex: basis_cid123
328
+ */
329
+ basis_cid?: string | null;
330
+
331
+ /**
332
+ * The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the
333
+ * `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123
334
+ */
335
+ beeswax_auction_id?: string | null;
336
+
337
+ /**
338
+ * The language of the browser. Ex: en-US
339
+ */
340
+ browser_language?: string | null;
341
+
342
+ /**
343
+ * The name of the browser. Ex: Chrome
344
+ */
345
+ browser_name?: string | null;
346
+
347
+ /**
348
+ * The version of the browser. Ex: 114.0
349
+ */
350
+ browser_version?: string | null;
351
+
352
+ /**
353
+ * The campaign id for detected in the session. This is set by the web sdk
354
+ * automatically.
355
+ */
356
+ campaign_id?: string | null;
357
+
358
+ /**
359
+ * The Click ID. Ex: clickid123
360
+ */
361
+ clickid?: string | null;
362
+
363
+ /**
364
+ * The Generic Click ID. Ex: clid123
365
+ */
366
+ clid?: string | null;
367
+
368
+ /**
369
+ * The architecture of the CPU. Ex: x64
370
+ */
371
+ cpu_architecture?: string | null;
372
+
373
+ /**
374
+ * The full url (including query params) of the current page
375
+ */
376
+ current_url?: string | null;
377
+
378
+ /**
379
+ * The DoubleClick Click ID. Ex: dclid123
380
+ */
381
+ dclid?: string | null;
382
+
383
+ /**
384
+ * The model of the device. Ex: iPhone 13
385
+ */
386
+ device_model?: string | null;
387
+
388
+ /**
389
+ * The type of device the user is using. Ex: mobile
390
+ */
391
+ device_type?: string | null;
392
+
393
+ /**
394
+ * The vendor of the device. Ex: Apple
395
+ */
396
+ device_vendor?: string | null;
397
+
398
+ /**
399
+ * The time in milliseconds since the page was loaded // script was loaded
400
+ */
401
+ duration?: number | null;
402
+
403
+ /**
404
+ * The browsers encoding. Ex: UTF-8
405
+ */
406
+ encoding?: string | null;
407
+
408
+ /**
409
+ * The name of the browser engine. Ex: Blink
410
+ */
411
+ engine_name?: string | null;
412
+
413
+ /**
414
+ * The version of the browser engine. Ex: 114.0
415
+ */
416
+ engine_version?: string | null;
417
+
418
+ /**
419
+ * The Pinterest Click ID. Ex: epik456
420
+ */
421
+ epik?: string | null;
422
+
423
+ /**
424
+ * Facebook Click ID with prefix format for Conversions API tracking. Ex:
425
+ * fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
426
+ */
427
+ fbc?: string | null;
428
+
429
+ /**
430
+ * Raw Facebook Click ID query parameter without prefix from ad clicks. Ex:
431
+ * AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
432
+ */
433
+ fbclid?: string | null;
434
+
435
+ /**
436
+ * Facebook Browser ID parameter for identifying browsers and attributing events.
437
+ * Ex: fb.1.1554763741205.1098115397
438
+ */
439
+ fbp?: string | null;
440
+
441
+ /**
442
+ * Deprecated
443
+ */
444
+ fv?: boolean | null;
445
+
446
+ /**
447
+ * The Google Ad Source. Ex: google
448
+ */
449
+ gad_source?: string | null;
450
+
451
+ /**
452
+ * The Google Braid ID. Ex: gbraid123
453
+ */
454
+ gbraid?: string | null;
455
+
456
+ /**
457
+ * The Google Click ID. Ex: gclid123
458
+ */
459
+ gclid?: string | null;
460
+
461
+ /**
462
+ * The host of the current page. Ex: example.com
463
+ */
464
+ host?: string | null;
465
+
466
+ /**
467
+ * Whether the user is in an iframe. Ex: true
468
+ */
469
+ iframe?: boolean | null;
470
+
471
+ /**
472
+ * The Impact Click ID reference. Ex: im_ref123
473
+ */
474
+ im_ref?: string | null;
475
+
476
+ /**
477
+ * The IP address of the user. Ex: 127.0.0.1
478
+ */
479
+ ip?: string | null;
480
+
481
+ /**
482
+ * The Impact Click ID. Ex: irclickid123
483
+ */
484
+ irclickid?: string | null;
485
+
486
+ /**
487
+ * Whether we have detected that the user is a bot. This is set automatically by
488
+ * the Ours server primarily for events tracked through the web SDK.
489
+ */
490
+ is_bot?: boolean | null;
491
+
492
+ /**
493
+ * The LinkedIn Click ID. Ex: li_fat_id123
494
+ */
495
+ li_fat_id?: string | null;
496
+
497
+ /**
498
+ * The Microsoft Click ID. Ex: msclkid123
499
+ */
500
+ msclkid?: string | null;
501
+
502
+ /**
503
+ * The NextDoor Click ID. Ex: ndclid123
504
+ */
505
+ ndclid?: string | null;
506
+
507
+ /**
508
+ * Deprecated
509
+ */
510
+ new_s?: boolean | null;
511
+
512
+ /**
513
+ * The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain
514
+ * `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123
515
+ */
516
+ ob_click_id?: string | null;
517
+
518
+ /**
519
+ * The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL
520
+ * parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref`
521
+ * cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex:
522
+ * oppref_abc
523
+ */
524
+ oppref?: string | null;
525
+
526
+ /**
527
+ * The name of the operating system. Ex: Windows
528
+ */
529
+ os_name?: string | null;
530
+
531
+ /**
532
+ * The version of the operating system. Ex: 10.0
533
+ */
534
+ os_version?: string | null;
535
+
536
+ /**
537
+ * A random set of numbers for the page load
538
+ */
539
+ page_hash?: number | null;
540
+
541
+ /**
542
+ * The pathname of the current page. Ex: /home
543
+ */
544
+ pathname?: string | null;
545
+
546
+ /**
547
+ * The Quora Click ID. Ex: qclid123
548
+ */
549
+ qclid?: string | null;
550
+
551
+ /**
552
+ * The Reddit Click ID. Ex: rdt_cid123
553
+ */
554
+ rdt_cid?: string | null;
555
+
556
+ /**
557
+ * The time the event was received by an Ours server in ISO format
558
+ */
559
+ received_at?: string | null;
560
+
561
+ /**
562
+ * The referrer URL of the current page
563
+ */
564
+ referrer?: string | null;
565
+
566
+ /**
567
+ * The referring domain of the current page
568
+ */
569
+ referring_domain?: string | null;
570
+
571
+ /**
572
+ * The StackAdapt Tracking ID. Ex: sacid123
573
+ */
574
+ sacid?: string | null;
575
+
576
+ /**
577
+ * The SnapChat Click ID. Ex: sccid123
578
+ */
579
+ sccid?: string | null;
580
+
581
+ /**
582
+ * The height of the screen. Ex: 1080
583
+ */
584
+ screen_height?: number | null;
585
+
586
+ /**
587
+ * The width of the screen. Ex: 1920
588
+ */
589
+ screen_width?: number | null;
590
+
591
+ /**
592
+ * The number of sessions the user has had. Ex: 3
593
+ */
594
+ sessionCount?: number | null;
595
+
596
+ /**
597
+ * The session ID as assigned automatically by the web SDK. This is required for
598
+ * session replay
599
+ */
600
+ sid?: string | null;
601
+
602
+ sr?: string | null;
603
+
604
+ /**
605
+ * The title of the current page
606
+ */
607
+ title?: string | null;
608
+
609
+ /**
610
+ * The TikTok Click ID. Ex: ttclid123
611
+ */
612
+ ttclid?: string | null;
613
+
614
+ /**
615
+ * The Twitter Click ID. Ex: twclid123
616
+ */
617
+ twclid?: string | null;
618
+
619
+ /**
620
+ * User agent as a full list of strings.
621
+ */
622
+ uafvl?: string | null;
623
+
624
+ /**
625
+ * The user agent of the browser
626
+ */
627
+ user_agent?: string | null;
628
+
629
+ /**
630
+ * The UTM Campaign. The web SDK automatically captures this from the query params.
631
+ */
632
+ utm_campaign?: string | null;
633
+
634
+ /**
635
+ * The UTM Content. The web SDK automatically captures this from the query params.
636
+ */
637
+ utm_content?: string | null;
638
+
639
+ /**
640
+ * The UTM Medium. The web SDK automatically captures this from the query params.
641
+ */
642
+ utm_medium?: string | null;
643
+
644
+ /**
645
+ * The UTM Name. The web SDK automatically captures this from the query params.
646
+ */
647
+ utm_name?: string | null;
648
+
649
+ /**
650
+ * The UTM Source. The web SDK automatically captures this from the query params.
651
+ */
652
+ utm_source?: string | null;
653
+
654
+ /**
655
+ * The UTM Term. The web SDK automatically captures this from the query params.
656
+ */
657
+ utm_term?: string | null;
658
+
659
+ /**
660
+ * The SDK version (e.g., web SDK or ingest-sdk-\* via generated SDK headers)
661
+ */
662
+ version?: string | null;
663
+
664
+ /**
665
+ * The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter
666
+ * (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex:
667
+ * viant_click_abc123
668
+ */
669
+ viant_click_id?: string | null;
670
+
671
+ /**
672
+ * The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL
673
+ * parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant
674
+ * postbacks for post-view attribution. Ex: viant_imp_abc123
675
+ */
676
+ viant_impression_id?: string | null;
677
+
678
+ /**
679
+ * The WBRAID Identifier. The web SDK automatically captures this from the query
680
+ * params.
681
+ */
682
+ wbraid?: string | null;
683
+
684
+ /**
685
+ * Whether the user is in a webview. Ex: true
686
+ */
687
+ webview?: boolean | null;
688
+ }
689
+ }
690
+
691
+ export declare namespace TestEvents {
692
+ export {
693
+ type TestEventListResponse as TestEventListResponse,
694
+ type TestEventCreateResponse as TestEventCreateResponse,
695
+ type TestEventRetrieveResponse as TestEventRetrieveResponse,
696
+ type TestEventDispatchesResponse as TestEventDispatchesResponse,
697
+ type TestEventListResponsesCursor as TestEventListResponsesCursor,
698
+ type TestEventListParams as TestEventListParams,
699
+ type TestEventCreateParams as TestEventCreateParams,
700
+ };
701
+ }