@oursprivacy/platform-sdk 1.51.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/resources/test-events.d.mts +345 -8
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +345 -8
- package/resources/test-events.d.ts.map +1 -1
- package/resources/test-events.js +5 -4
- package/resources/test-events.js.map +1 -1
- package/resources/test-events.mjs +5 -4
- package/resources/test-events.mjs.map +1 -1
- package/src/resources/test-events.ts +423 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -9,8 +9,8 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class TestEvents extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* List browser, server, and synthetic events captured with debug mode during the
|
|
12
|
-
* last 48 hours, newest received first. Includes live-token
|
|
13
|
-
*
|
|
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
14
|
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
15
15
|
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
16
16
|
* scope: report:list-events
|
|
@@ -35,8 +35,9 @@ export class TestEvents extends APIResource {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Send a test event through the same processing your production events go through,
|
|
38
|
-
*
|
|
39
|
-
*
|
|
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
|
|
40
41
|
* Recent Events. Use the returned `id` with
|
|
41
42
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
42
43
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
@@ -186,7 +187,8 @@ export interface TestEventDispatchesResponse {
|
|
|
186
187
|
|
|
187
188
|
/**
|
|
188
189
|
* Dispatches recorded so far. Empty until dispatches arrive; no predicted
|
|
189
|
-
* destinations or completion signal.
|
|
190
|
+
* destinations or completion signal. Events created through this API can be
|
|
191
|
+
* delivered to live destinations.
|
|
190
192
|
*/
|
|
191
193
|
entities: Array<TestEventDispatchesResponse.Entity>;
|
|
192
194
|
}
|
|
@@ -239,10 +241,10 @@ export interface TestEventCreateParams {
|
|
|
239
241
|
eventName: string;
|
|
240
242
|
|
|
241
243
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
+
* Known context properties used by ingest and destination mappings. Use
|
|
245
|
+
* current_url for the page URL. Unknown properties are ignored.
|
|
244
246
|
*/
|
|
245
|
-
defaultProperties?:
|
|
247
|
+
defaultProperties?: TestEventCreateParams.DefaultProperties | null;
|
|
246
248
|
|
|
247
249
|
/**
|
|
248
250
|
* Event identity for this specific event. Generated when omitted. Letters,
|
|
@@ -273,6 +275,419 @@ export interface TestEventCreateParams {
|
|
|
273
275
|
visitorId?: string | null;
|
|
274
276
|
}
|
|
275
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
|
+
|
|
276
691
|
export declare namespace TestEvents {
|
|
277
692
|
export {
|
|
278
693
|
type TestEventListResponse as TestEventListResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.52.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.52.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.52.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.52.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|