@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
|
@@ -5,8 +5,8 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
5
5
|
export declare class TestEvents extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* List browser, server, and synthetic events captured with debug mode during the
|
|
8
|
-
* last 48 hours, newest received first. Includes live-token
|
|
9
|
-
*
|
|
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
10
|
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
11
11
|
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
12
12
|
* scope: report:list-events
|
|
@@ -22,8 +22,9 @@ export declare class TestEvents extends APIResource {
|
|
|
22
22
|
list(query?: TestEventListParams | null | undefined, options?: RequestOptions): PagePromise<TestEventListResponsesCursor, TestEventListResponse>;
|
|
23
23
|
/**
|
|
24
24
|
* Send a test event through the same processing your production events go through,
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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
|
|
27
28
|
* Recent Events. Use the returned `id` with
|
|
28
29
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
29
30
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
@@ -128,7 +129,8 @@ export interface TestEventDispatchesResponse {
|
|
|
128
129
|
id: string;
|
|
129
130
|
/**
|
|
130
131
|
* Dispatches recorded so far. Empty until dispatches arrive; no predicted
|
|
131
|
-
* destinations or completion signal.
|
|
132
|
+
* destinations or completion signal. Events created through this API can be
|
|
133
|
+
* delivered to live destinations.
|
|
132
134
|
*/
|
|
133
135
|
entities: Array<TestEventDispatchesResponse.Entity>;
|
|
134
136
|
}
|
|
@@ -169,10 +171,10 @@ export interface TestEventCreateParams {
|
|
|
169
171
|
*/
|
|
170
172
|
eventName: string;
|
|
171
173
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
+
* Known context properties used by ingest and destination mappings. Use
|
|
175
|
+
* current_url for the page URL. Unknown properties are ignored.
|
|
174
176
|
*/
|
|
175
|
-
defaultProperties?:
|
|
177
|
+
defaultProperties?: TestEventCreateParams.DefaultProperties | null;
|
|
176
178
|
/**
|
|
177
179
|
* Event identity for this specific event. Generated when omitted. Letters,
|
|
178
180
|
* numbers, hyphens, and underscores only.
|
|
@@ -197,6 +199,341 @@ export interface TestEventCreateParams {
|
|
|
197
199
|
*/
|
|
198
200
|
visitorId?: string | null;
|
|
199
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
|
+
}
|
|
200
537
|
export declare namespace TestEvents {
|
|
201
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, };
|
|
202
539
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-events.d.ts","sourceRoot":"","sources":["../src/resources/test-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;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
|
|
1
|
+
{"version":3,"file":"test-events.d.ts","sourceRoot":"","s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AAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/test-events.js
CHANGED
|
@@ -8,8 +8,8 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
8
8
|
class TestEvents extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List browser, server, and synthetic events captured with debug mode during the
|
|
11
|
-
* last 48 hours, newest received first. Includes live-token
|
|
12
|
-
*
|
|
11
|
+
* last 48 hours, newest received first. Includes live-token and test-token events;
|
|
12
|
+
* `isTestEvent` indicates whether a test token was used. Returns full event
|
|
13
13
|
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
14
14
|
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
15
15
|
* scope: report:list-events
|
|
@@ -30,8 +30,9 @@ class TestEvents extends resource_1.APIResource {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Send a test event through the same processing your production events go through,
|
|
33
|
-
*
|
|
34
|
-
*
|
|
33
|
+
* using the source’s live token with debug capture enabled. This can deliver real
|
|
34
|
+
* data to configured destinations. The response acknowledges acceptance for
|
|
35
|
+
* processing; it does not contain processing results. The event is captured in
|
|
35
36
|
* Recent Events. Use the returned `id` with
|
|
36
37
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
37
38
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-events.js","sourceRoot":"","sources":["../src/resources/test-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,mBAA6B,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"test-events.js","sourceRoot":"","sources":["../src/resources/test-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,mBAA6B,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AApFD,gCAoFC"}
|
|
@@ -5,8 +5,8 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
5
5
|
export class TestEvents extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* List browser, server, and synthetic events captured with debug mode during the
|
|
8
|
-
* last 48 hours, newest received first. Includes live-token
|
|
9
|
-
*
|
|
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
10
|
* properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
|
|
11
11
|
* `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
|
|
12
12
|
* scope: report:list-events
|
|
@@ -27,8 +27,9 @@ export class TestEvents extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Send a test event through the same processing your production events go through,
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* using the source’s live token with debug capture enabled. This can deliver real
|
|
31
|
+
* data to configured destinations. The response acknowledges acceptance for
|
|
32
|
+
* processing; it does not contain processing results. The event is captured in
|
|
32
33
|
* Recent Events. Use the returned `id` with
|
|
33
34
|
* `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
|
|
34
35
|
* Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-events.mjs","sourceRoot":"","sources":["../src/resources/test-events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,MAAM,EAAkC,+BAA2B;AAE5E,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,MAA6B,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED
|
|
1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