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