@contentful/optimization-api-client 2.2.2 → 2.2.3
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/README.md +11 -7
- package/dist/api-schemas.cjs +31 -22
- package/dist/api-schemas.cjs.map +1 -1
- package/dist/api-schemas.d.cts +779 -633
- package/dist/api-schemas.d.mts +779 -633
- package/dist/api-schemas.d.ts +779 -633
- package/dist/api-schemas.mjs +29 -20
- package/dist/api-schemas.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +212 -157
- package/dist/index.d.mts +212 -157
- package/dist/index.d.ts +212 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -238,14 +238,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
238
238
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
239
239
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
240
240
|
}, z.core.$strip>;
|
|
241
|
-
gdpr: z.ZodMiniObject<{
|
|
241
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
242
242
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
243
|
-
}, z.core.$strip
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
244
|
library: z.ZodMiniObject<{
|
|
245
245
|
name: z.ZodMiniString<string>;
|
|
246
246
|
version: z.ZodMiniString<string>;
|
|
247
247
|
}, z.core.$strip>;
|
|
248
|
-
locale: z.ZodMiniString<string
|
|
248
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
249
249
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
250
250
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
251
251
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -263,7 +263,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
263
263
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
264
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
265
265
|
path: z.ZodMiniString<string>;
|
|
266
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
266
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
267
267
|
referrer: z.ZodMiniString<string>;
|
|
268
268
|
search: z.ZodMiniString<string>;
|
|
269
269
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -274,14 +274,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
274
274
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
messageId: z.ZodMiniString<string>;
|
|
277
|
-
originalTimestamp: z.
|
|
278
|
-
sentAt: z.
|
|
279
|
-
timestamp: z.
|
|
277
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
278
|
+
sentAt: z.ZodMiniString<string>;
|
|
279
|
+
timestamp: z.ZodMiniString<string>;
|
|
280
280
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
281
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
281
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
282
282
|
componentId: z.ZodMiniString<string>;
|
|
283
283
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
284
|
-
variantIndex: z.ZodMiniNumber<number
|
|
284
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
285
285
|
type: z.ZodMiniLiteral<"component">;
|
|
286
286
|
viewDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
287
287
|
viewId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -300,14 +300,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
300
300
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
301
301
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
302
302
|
}, z.core.$strip>;
|
|
303
|
-
gdpr: z.ZodMiniObject<{
|
|
303
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
304
304
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
305
|
-
}, z.core.$strip
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
306
|
library: z.ZodMiniObject<{
|
|
307
307
|
name: z.ZodMiniString<string>;
|
|
308
308
|
version: z.ZodMiniString<string>;
|
|
309
309
|
}, z.core.$strip>;
|
|
310
|
-
locale: z.ZodMiniString<string
|
|
310
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
311
311
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
312
312
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
313
313
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -325,7 +325,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
325
325
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
326
326
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
327
327
|
path: z.ZodMiniString<string>;
|
|
328
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
328
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
329
329
|
referrer: z.ZodMiniString<string>;
|
|
330
330
|
search: z.ZodMiniString<string>;
|
|
331
331
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -336,9 +336,9 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
336
336
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
337
337
|
}, z.core.$strip>;
|
|
338
338
|
messageId: z.ZodMiniString<string>;
|
|
339
|
-
originalTimestamp: z.
|
|
340
|
-
sentAt: z.
|
|
341
|
-
timestamp: z.
|
|
339
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
340
|
+
sentAt: z.ZodMiniString<string>;
|
|
341
|
+
timestamp: z.ZodMiniString<string>;
|
|
342
342
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
343
343
|
entityId: z.ZodMiniString<string>;
|
|
344
344
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -371,14 +371,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
371
371
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
372
372
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
373
373
|
}, z.core.$strip>;
|
|
374
|
-
gdpr: z.ZodMiniObject<{
|
|
374
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
375
375
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
376
|
-
}, z.core.$strip
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
377
|
library: z.ZodMiniObject<{
|
|
378
378
|
name: z.ZodMiniString<string>;
|
|
379
379
|
version: z.ZodMiniString<string>;
|
|
380
380
|
}, z.core.$strip>;
|
|
381
|
-
locale: z.ZodMiniString<string
|
|
381
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
382
382
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
383
383
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
384
384
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -396,7 +396,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
396
396
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
397
397
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
398
398
|
path: z.ZodMiniString<string>;
|
|
399
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
399
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
400
400
|
referrer: z.ZodMiniString<string>;
|
|
401
401
|
search: z.ZodMiniString<string>;
|
|
402
402
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -407,29 +407,29 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
407
407
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
408
408
|
}, z.core.$strip>;
|
|
409
409
|
messageId: z.ZodMiniString<string>;
|
|
410
|
-
originalTimestamp: z.
|
|
411
|
-
sentAt: z.
|
|
412
|
-
timestamp: z.
|
|
413
|
-
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
410
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
411
|
+
sentAt: z.ZodMiniString<string>;
|
|
412
|
+
timestamp: z.ZodMiniString<string>;
|
|
414
413
|
type: z.ZodMiniLiteral<"identify">;
|
|
415
414
|
traits: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniJSONSchema>;
|
|
415
|
+
userId: z.ZodMiniString<string>;
|
|
416
416
|
anonymousId: z.ZodMiniString<string>;
|
|
417
417
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
418
418
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
419
419
|
messageId: z.ZodMiniString<string>;
|
|
420
|
-
originalTimestamp: z.
|
|
421
|
-
sentAt: z.
|
|
422
|
-
timestamp: z.
|
|
420
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
421
|
+
sentAt: z.ZodMiniString<string>;
|
|
422
|
+
timestamp: z.ZodMiniString<string>;
|
|
423
423
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
424
424
|
type: z.ZodMiniLiteral<"page">;
|
|
425
425
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
426
426
|
properties: z.ZodMiniObject<{
|
|
427
427
|
path: z.ZodMiniString<string>;
|
|
428
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
428
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
429
429
|
referrer: z.ZodMiniString<string>;
|
|
430
430
|
search: z.ZodMiniString<string>;
|
|
431
|
-
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
432
431
|
url: z.ZodMiniString<string>;
|
|
432
|
+
title: z.ZodMiniString<string>;
|
|
433
433
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
434
434
|
context: z.ZodMiniObject<{
|
|
435
435
|
app: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -443,14 +443,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
443
443
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
444
444
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
445
445
|
}, z.core.$strip>;
|
|
446
|
-
gdpr: z.ZodMiniObject<{
|
|
446
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
447
447
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
448
|
-
}, z.core.$strip
|
|
448
|
+
}, z.core.$strip>>;
|
|
449
449
|
library: z.ZodMiniObject<{
|
|
450
450
|
name: z.ZodMiniString<string>;
|
|
451
451
|
version: z.ZodMiniString<string>;
|
|
452
452
|
}, z.core.$strip>;
|
|
453
|
-
locale: z.ZodMiniString<string
|
|
453
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
454
454
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
455
455
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
456
456
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -466,22 +466,22 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
466
466
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
467
467
|
}, z.core.$strip>>;
|
|
468
468
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
469
|
-
page: z.ZodMiniObject<{
|
|
469
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
470
470
|
path: z.ZodMiniString<string>;
|
|
471
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
471
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
472
472
|
referrer: z.ZodMiniString<string>;
|
|
473
473
|
search: z.ZodMiniString<string>;
|
|
474
474
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
475
475
|
url: z.ZodMiniString<string>;
|
|
476
|
-
}, z.core.$catchall<z.ZodMiniJSONSchema
|
|
476
|
+
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
477
477
|
}, z.core.$strip>;
|
|
478
478
|
anonymousId: z.ZodMiniString<string>;
|
|
479
479
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
480
480
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
481
481
|
messageId: z.ZodMiniString<string>;
|
|
482
|
-
originalTimestamp: z.
|
|
483
|
-
sentAt: z.
|
|
484
|
-
timestamp: z.
|
|
482
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
483
|
+
sentAt: z.ZodMiniString<string>;
|
|
484
|
+
timestamp: z.ZodMiniString<string>;
|
|
485
485
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
486
486
|
type: z.ZodMiniLiteral<"screen">;
|
|
487
487
|
name: z.ZodMiniString<string>;
|
|
@@ -498,14 +498,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
498
498
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
499
499
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
500
500
|
}, z.core.$strip>;
|
|
501
|
-
gdpr: z.ZodMiniObject<{
|
|
501
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
502
502
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
503
|
-
}, z.core.$strip
|
|
503
|
+
}, z.core.$strip>>;
|
|
504
504
|
library: z.ZodMiniObject<{
|
|
505
505
|
name: z.ZodMiniString<string>;
|
|
506
506
|
version: z.ZodMiniString<string>;
|
|
507
507
|
}, z.core.$strip>;
|
|
508
|
-
locale: z.ZodMiniString<string
|
|
508
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
509
509
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
510
510
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
511
511
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -540,14 +540,14 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
540
540
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
541
541
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
542
542
|
}, z.core.$strip>;
|
|
543
|
-
gdpr: z.ZodMiniObject<{
|
|
543
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
544
544
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
545
|
-
}, z.core.$strip
|
|
545
|
+
}, z.core.$strip>>;
|
|
546
546
|
library: z.ZodMiniObject<{
|
|
547
547
|
name: z.ZodMiniString<string>;
|
|
548
548
|
version: z.ZodMiniString<string>;
|
|
549
549
|
}, z.core.$strip>;
|
|
550
|
-
locale: z.ZodMiniString<string
|
|
550
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
551
551
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
552
552
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
553
553
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -565,7 +565,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
565
565
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
566
566
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
567
567
|
path: z.ZodMiniString<string>;
|
|
568
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
568
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
569
569
|
referrer: z.ZodMiniString<string>;
|
|
570
570
|
search: z.ZodMiniString<string>;
|
|
571
571
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -576,9 +576,9 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
576
576
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
577
577
|
}, z.core.$strip>;
|
|
578
578
|
messageId: z.ZodMiniString<string>;
|
|
579
|
-
originalTimestamp: z.
|
|
580
|
-
sentAt: z.
|
|
581
|
-
timestamp: z.
|
|
579
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
580
|
+
sentAt: z.ZodMiniString<string>;
|
|
581
|
+
timestamp: z.ZodMiniString<string>;
|
|
582
582
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
583
583
|
type: z.ZodMiniLiteral<"track">;
|
|
584
584
|
event: z.ZodMiniString<string>;
|
|
@@ -624,11 +624,11 @@ declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
|
624
624
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
625
625
|
}, z.core.$strip>;
|
|
626
626
|
session: z.ZodMiniObject<{
|
|
627
|
-
id: z.ZodMiniString<string
|
|
627
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
628
628
|
isReturningVisitor: z.ZodMiniBoolean<boolean>;
|
|
629
629
|
landingPage: z.ZodMiniObject<{
|
|
630
630
|
path: z.ZodMiniString<string>;
|
|
631
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
631
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
632
632
|
referrer: z.ZodMiniString<string>;
|
|
633
633
|
search: z.ZodMiniString<string>;
|
|
634
634
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -638,6 +638,10 @@ declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
|
638
638
|
activeSessionLength: z.ZodMiniNumber<number>;
|
|
639
639
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
640
640
|
}, z.core.$strip>;
|
|
641
|
+
jurisdiction: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
642
|
+
US: "US";
|
|
643
|
+
EU: "EU";
|
|
644
|
+
}>>;
|
|
641
645
|
}, z.core.$strip>>>;
|
|
642
646
|
}, z.core.$strip>;
|
|
643
647
|
|
|
@@ -659,7 +663,44 @@ declare type BatchExperienceResponseData = z.infer<typeof BatchExperienceRespons
|
|
|
659
663
|
declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
660
664
|
profile: z.ZodMiniObject<{
|
|
661
665
|
id: z.ZodMiniString<string>;
|
|
662
|
-
|
|
666
|
+
stableId: z.ZodMiniString<string>;
|
|
667
|
+
random: z.ZodMiniNumber<number>;
|
|
668
|
+
audiences: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
669
|
+
traits: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniJSONSchema>;
|
|
670
|
+
location: z.ZodMiniObject<{
|
|
671
|
+
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
672
|
+
latitude: z.ZodMiniNumber<number>;
|
|
673
|
+
longitude: z.ZodMiniNumber<number>;
|
|
674
|
+
}, z.core.$strip>>;
|
|
675
|
+
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
676
|
+
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
677
|
+
region: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
678
|
+
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
679
|
+
country: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
680
|
+
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
681
|
+
continent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
682
|
+
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
683
|
+
}, z.core.$strip>;
|
|
684
|
+
session: z.ZodMiniObject<{
|
|
685
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
686
|
+
isReturningVisitor: z.ZodMiniBoolean<boolean>;
|
|
687
|
+
landingPage: z.ZodMiniObject<{
|
|
688
|
+
path: z.ZodMiniString<string>;
|
|
689
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
690
|
+
referrer: z.ZodMiniString<string>;
|
|
691
|
+
search: z.ZodMiniString<string>;
|
|
692
|
+
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
693
|
+
url: z.ZodMiniString<string>;
|
|
694
|
+
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
695
|
+
count: z.ZodMiniNumber<number>;
|
|
696
|
+
activeSessionLength: z.ZodMiniNumber<number>;
|
|
697
|
+
averageSessionLength: z.ZodMiniNumber<number>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
jurisdiction: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
700
|
+
US: "US";
|
|
701
|
+
EU: "EU";
|
|
702
|
+
}>>;
|
|
703
|
+
}, z.core.$strip>;
|
|
663
704
|
events: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
664
705
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
665
706
|
context: z.ZodMiniObject<{
|
|
@@ -674,14 +715,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
674
715
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
675
716
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
676
717
|
}, z.core.$strip>;
|
|
677
|
-
gdpr: z.ZodMiniObject<{
|
|
718
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
678
719
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
679
|
-
}, z.core.$strip
|
|
720
|
+
}, z.core.$strip>>;
|
|
680
721
|
library: z.ZodMiniObject<{
|
|
681
722
|
name: z.ZodMiniString<string>;
|
|
682
723
|
version: z.ZodMiniString<string>;
|
|
683
724
|
}, z.core.$strip>;
|
|
684
|
-
locale: z.ZodMiniString<string
|
|
725
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
685
726
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
686
727
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
687
728
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -699,7 +740,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
699
740
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
700
741
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
701
742
|
path: z.ZodMiniString<string>;
|
|
702
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
743
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
703
744
|
referrer: z.ZodMiniString<string>;
|
|
704
745
|
search: z.ZodMiniString<string>;
|
|
705
746
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -709,15 +750,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
709
750
|
name: z.ZodMiniString<string>;
|
|
710
751
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
711
752
|
}, z.core.$strip>;
|
|
753
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
712
754
|
messageId: z.ZodMiniString<string>;
|
|
713
|
-
originalTimestamp: z.
|
|
714
|
-
sentAt: z.
|
|
715
|
-
timestamp: z.
|
|
755
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
756
|
+
sentAt: z.ZodMiniString<string>;
|
|
757
|
+
timestamp: z.ZodMiniString<string>;
|
|
716
758
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
717
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
759
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
718
760
|
componentId: z.ZodMiniString<string>;
|
|
719
761
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
720
|
-
variantIndex: z.ZodMiniNumber<number
|
|
762
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
721
763
|
type: z.ZodMiniLiteral<"component">;
|
|
722
764
|
viewDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
723
765
|
viewId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -735,14 +777,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
735
777
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
736
778
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
737
779
|
}, z.core.$strip>;
|
|
738
|
-
gdpr: z.ZodMiniObject<{
|
|
780
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
739
781
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
740
|
-
}, z.core.$strip
|
|
782
|
+
}, z.core.$strip>>;
|
|
741
783
|
library: z.ZodMiniObject<{
|
|
742
784
|
name: z.ZodMiniString<string>;
|
|
743
785
|
version: z.ZodMiniString<string>;
|
|
744
786
|
}, z.core.$strip>;
|
|
745
|
-
locale: z.ZodMiniString<string
|
|
787
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
746
788
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
747
789
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
748
790
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -760,7 +802,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
760
802
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
761
803
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
762
804
|
path: z.ZodMiniString<string>;
|
|
763
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
805
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
764
806
|
referrer: z.ZodMiniString<string>;
|
|
765
807
|
search: z.ZodMiniString<string>;
|
|
766
808
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -770,15 +812,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
770
812
|
name: z.ZodMiniString<string>;
|
|
771
813
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
772
814
|
}, z.core.$strip>;
|
|
815
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
773
816
|
messageId: z.ZodMiniString<string>;
|
|
774
|
-
originalTimestamp: z.
|
|
775
|
-
sentAt: z.
|
|
776
|
-
timestamp: z.
|
|
817
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
818
|
+
sentAt: z.ZodMiniString<string>;
|
|
819
|
+
timestamp: z.ZodMiniString<string>;
|
|
777
820
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
778
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
821
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
779
822
|
componentId: z.ZodMiniString<string>;
|
|
780
823
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
781
|
-
variantIndex: z.ZodMiniNumber<number
|
|
824
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
782
825
|
type: z.ZodMiniLiteral<"component_click">;
|
|
783
826
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
784
827
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -794,14 +837,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
794
837
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
795
838
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
796
839
|
}, z.core.$strip>;
|
|
797
|
-
gdpr: z.ZodMiniObject<{
|
|
840
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
798
841
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
799
|
-
}, z.core.$strip
|
|
842
|
+
}, z.core.$strip>>;
|
|
800
843
|
library: z.ZodMiniObject<{
|
|
801
844
|
name: z.ZodMiniString<string>;
|
|
802
845
|
version: z.ZodMiniString<string>;
|
|
803
846
|
}, z.core.$strip>;
|
|
804
|
-
locale: z.ZodMiniString<string
|
|
847
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
805
848
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
806
849
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
807
850
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -819,7 +862,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
819
862
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
820
863
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
821
864
|
path: z.ZodMiniString<string>;
|
|
822
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
865
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
823
866
|
referrer: z.ZodMiniString<string>;
|
|
824
867
|
search: z.ZodMiniString<string>;
|
|
825
868
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -829,15 +872,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
829
872
|
name: z.ZodMiniString<string>;
|
|
830
873
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
831
874
|
}, z.core.$strip>;
|
|
875
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
832
876
|
messageId: z.ZodMiniString<string>;
|
|
833
|
-
originalTimestamp: z.
|
|
834
|
-
sentAt: z.
|
|
835
|
-
timestamp: z.
|
|
877
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
878
|
+
sentAt: z.ZodMiniString<string>;
|
|
879
|
+
timestamp: z.ZodMiniString<string>;
|
|
836
880
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
837
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
881
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
838
882
|
componentId: z.ZodMiniString<string>;
|
|
839
883
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
840
|
-
variantIndex: z.ZodMiniNumber<number
|
|
884
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
841
885
|
type: z.ZodMiniLiteral<"component_hover">;
|
|
842
886
|
hoverDurationMs: z.ZodMiniNumber<number>;
|
|
843
887
|
hoverId: z.ZodMiniString<string>;
|
|
@@ -855,14 +899,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
855
899
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
856
900
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
857
901
|
}, z.core.$strip>;
|
|
858
|
-
gdpr: z.ZodMiniObject<{
|
|
902
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
859
903
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
860
|
-
}, z.core.$strip
|
|
904
|
+
}, z.core.$strip>>;
|
|
861
905
|
library: z.ZodMiniObject<{
|
|
862
906
|
name: z.ZodMiniString<string>;
|
|
863
907
|
version: z.ZodMiniString<string>;
|
|
864
908
|
}, z.core.$strip>;
|
|
865
|
-
locale: z.ZodMiniString<string
|
|
909
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
866
910
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
867
911
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
868
912
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -880,7 +924,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
880
924
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
881
925
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
882
926
|
path: z.ZodMiniString<string>;
|
|
883
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
927
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
884
928
|
referrer: z.ZodMiniString<string>;
|
|
885
929
|
search: z.ZodMiniString<string>;
|
|
886
930
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -890,10 +934,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
890
934
|
name: z.ZodMiniString<string>;
|
|
891
935
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
892
936
|
}, z.core.$strip>;
|
|
937
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
893
938
|
messageId: z.ZodMiniString<string>;
|
|
894
|
-
originalTimestamp: z.
|
|
895
|
-
sentAt: z.
|
|
896
|
-
timestamp: z.
|
|
939
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
940
|
+
sentAt: z.ZodMiniString<string>;
|
|
941
|
+
timestamp: z.ZodMiniString<string>;
|
|
897
942
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
898
943
|
entityId: z.ZodMiniString<string>;
|
|
899
944
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -925,14 +970,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
925
970
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
926
971
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
927
972
|
}, z.core.$strip>;
|
|
928
|
-
gdpr: z.ZodMiniObject<{
|
|
973
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
929
974
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
930
|
-
}, z.core.$strip
|
|
975
|
+
}, z.core.$strip>>;
|
|
931
976
|
library: z.ZodMiniObject<{
|
|
932
977
|
name: z.ZodMiniString<string>;
|
|
933
978
|
version: z.ZodMiniString<string>;
|
|
934
979
|
}, z.core.$strip>;
|
|
935
|
-
locale: z.ZodMiniString<string
|
|
980
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
936
981
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
937
982
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
938
983
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -950,7 +995,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
950
995
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
951
996
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
952
997
|
path: z.ZodMiniString<string>;
|
|
953
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
998
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
954
999
|
referrer: z.ZodMiniString<string>;
|
|
955
1000
|
search: z.ZodMiniString<string>;
|
|
956
1001
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -960,10 +1005,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
960
1005
|
name: z.ZodMiniString<string>;
|
|
961
1006
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
962
1007
|
}, z.core.$strip>;
|
|
1008
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
963
1009
|
messageId: z.ZodMiniString<string>;
|
|
964
|
-
originalTimestamp: z.
|
|
965
|
-
sentAt: z.
|
|
966
|
-
timestamp: z.
|
|
1010
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1011
|
+
sentAt: z.ZodMiniString<string>;
|
|
1012
|
+
timestamp: z.ZodMiniString<string>;
|
|
967
1013
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
968
1014
|
entityId: z.ZodMiniString<string>;
|
|
969
1015
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -993,14 +1039,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
993
1039
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
994
1040
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
995
1041
|
}, z.core.$strip>;
|
|
996
|
-
gdpr: z.ZodMiniObject<{
|
|
1042
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
997
1043
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
998
|
-
}, z.core.$strip
|
|
1044
|
+
}, z.core.$strip>>;
|
|
999
1045
|
library: z.ZodMiniObject<{
|
|
1000
1046
|
name: z.ZodMiniString<string>;
|
|
1001
1047
|
version: z.ZodMiniString<string>;
|
|
1002
1048
|
}, z.core.$strip>;
|
|
1003
|
-
locale: z.ZodMiniString<string
|
|
1049
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1004
1050
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1005
1051
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1006
1052
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1018,7 +1064,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1018
1064
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1019
1065
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1020
1066
|
path: z.ZodMiniString<string>;
|
|
1021
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1067
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1022
1068
|
referrer: z.ZodMiniString<string>;
|
|
1023
1069
|
search: z.ZodMiniString<string>;
|
|
1024
1070
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1028,10 +1074,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1028
1074
|
name: z.ZodMiniString<string>;
|
|
1029
1075
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1030
1076
|
}, z.core.$strip>;
|
|
1077
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1031
1078
|
messageId: z.ZodMiniString<string>;
|
|
1032
|
-
originalTimestamp: z.
|
|
1033
|
-
sentAt: z.
|
|
1034
|
-
timestamp: z.
|
|
1079
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1080
|
+
sentAt: z.ZodMiniString<string>;
|
|
1081
|
+
timestamp: z.ZodMiniString<string>;
|
|
1035
1082
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1036
1083
|
entityId: z.ZodMiniString<string>;
|
|
1037
1084
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -1514,11 +1561,11 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1514
1561
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1515
1562
|
}, z.core.$strip>;
|
|
1516
1563
|
session: z.ZodMiniObject<{
|
|
1517
|
-
id: z.ZodMiniString<string
|
|
1564
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1518
1565
|
isReturningVisitor: z.ZodMiniBoolean<boolean>;
|
|
1519
1566
|
landingPage: z.ZodMiniObject<{
|
|
1520
1567
|
path: z.ZodMiniString<string>;
|
|
1521
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1568
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1522
1569
|
referrer: z.ZodMiniString<string>;
|
|
1523
1570
|
search: z.ZodMiniString<string>;
|
|
1524
1571
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1528,6 +1575,10 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1528
1575
|
activeSessionLength: z.ZodMiniNumber<number>;
|
|
1529
1576
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
1530
1577
|
}, z.core.$strip>;
|
|
1578
|
+
jurisdiction: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1579
|
+
US: "US";
|
|
1580
|
+
EU: "EU";
|
|
1581
|
+
}>>;
|
|
1531
1582
|
}, z.core.$strip>;
|
|
1532
1583
|
experiences: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1533
1584
|
experienceId: z.ZodMiniString<string>;
|
|
@@ -1588,14 +1639,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1588
1639
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1589
1640
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1590
1641
|
}, z.core.$strip>;
|
|
1591
|
-
gdpr: z.ZodMiniObject<{
|
|
1642
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1592
1643
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1593
|
-
}, z.core.$strip
|
|
1644
|
+
}, z.core.$strip>>;
|
|
1594
1645
|
library: z.ZodMiniObject<{
|
|
1595
1646
|
name: z.ZodMiniString<string>;
|
|
1596
1647
|
version: z.ZodMiniString<string>;
|
|
1597
1648
|
}, z.core.$strip>;
|
|
1598
|
-
locale: z.ZodMiniString<string
|
|
1649
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1599
1650
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1600
1651
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1601
1652
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1613,7 +1664,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1613
1664
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1614
1665
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1615
1666
|
path: z.ZodMiniString<string>;
|
|
1616
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1667
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1617
1668
|
referrer: z.ZodMiniString<string>;
|
|
1618
1669
|
search: z.ZodMiniString<string>;
|
|
1619
1670
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1623,15 +1674,16 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1623
1674
|
name: z.ZodMiniString<string>;
|
|
1624
1675
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1625
1676
|
}, z.core.$strip>;
|
|
1677
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1626
1678
|
messageId: z.ZodMiniString<string>;
|
|
1627
|
-
originalTimestamp: z.
|
|
1628
|
-
sentAt: z.
|
|
1629
|
-
timestamp: z.
|
|
1679
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1680
|
+
sentAt: z.ZodMiniString<string>;
|
|
1681
|
+
timestamp: z.ZodMiniString<string>;
|
|
1630
1682
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1631
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
1683
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
1632
1684
|
componentId: z.ZodMiniString<string>;
|
|
1633
1685
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1634
|
-
variantIndex: z.ZodMiniNumber<number
|
|
1686
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1635
1687
|
type: z.ZodMiniLiteral<"component">;
|
|
1636
1688
|
viewDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1637
1689
|
viewId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1649,14 +1701,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1649
1701
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1650
1702
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1651
1703
|
}, z.core.$strip>;
|
|
1652
|
-
gdpr: z.ZodMiniObject<{
|
|
1704
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1653
1705
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1654
|
-
}, z.core.$strip
|
|
1706
|
+
}, z.core.$strip>>;
|
|
1655
1707
|
library: z.ZodMiniObject<{
|
|
1656
1708
|
name: z.ZodMiniString<string>;
|
|
1657
1709
|
version: z.ZodMiniString<string>;
|
|
1658
1710
|
}, z.core.$strip>;
|
|
1659
|
-
locale: z.ZodMiniString<string
|
|
1711
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1660
1712
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1661
1713
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1662
1714
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1674,7 +1726,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1674
1726
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1675
1727
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1676
1728
|
path: z.ZodMiniString<string>;
|
|
1677
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1729
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1678
1730
|
referrer: z.ZodMiniString<string>;
|
|
1679
1731
|
search: z.ZodMiniString<string>;
|
|
1680
1732
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1684,10 +1736,11 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1684
1736
|
name: z.ZodMiniString<string>;
|
|
1685
1737
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1686
1738
|
}, z.core.$strip>;
|
|
1739
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1687
1740
|
messageId: z.ZodMiniString<string>;
|
|
1688
|
-
originalTimestamp: z.
|
|
1689
|
-
sentAt: z.
|
|
1690
|
-
timestamp: z.
|
|
1741
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1742
|
+
sentAt: z.ZodMiniString<string>;
|
|
1743
|
+
timestamp: z.ZodMiniString<string>;
|
|
1691
1744
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1692
1745
|
entityId: z.ZodMiniString<string>;
|
|
1693
1746
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -1719,14 +1772,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1719
1772
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1720
1773
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1721
1774
|
}, z.core.$strip>;
|
|
1722
|
-
gdpr: z.ZodMiniObject<{
|
|
1775
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1723
1776
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1724
|
-
}, z.core.$strip
|
|
1777
|
+
}, z.core.$strip>>;
|
|
1725
1778
|
library: z.ZodMiniObject<{
|
|
1726
1779
|
name: z.ZodMiniString<string>;
|
|
1727
1780
|
version: z.ZodMiniString<string>;
|
|
1728
1781
|
}, z.core.$strip>;
|
|
1729
|
-
locale: z.ZodMiniString<string
|
|
1782
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1730
1783
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1731
1784
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1732
1785
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1744,7 +1797,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1744
1797
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1745
1798
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1746
1799
|
path: z.ZodMiniString<string>;
|
|
1747
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1800
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1748
1801
|
referrer: z.ZodMiniString<string>;
|
|
1749
1802
|
search: z.ZodMiniString<string>;
|
|
1750
1803
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1754,29 +1807,31 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1754
1807
|
name: z.ZodMiniString<string>;
|
|
1755
1808
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1756
1809
|
}, z.core.$strip>;
|
|
1810
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1757
1811
|
messageId: z.ZodMiniString<string>;
|
|
1758
|
-
originalTimestamp: z.
|
|
1759
|
-
sentAt: z.
|
|
1760
|
-
timestamp: z.
|
|
1761
|
-
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1812
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1813
|
+
sentAt: z.ZodMiniString<string>;
|
|
1814
|
+
timestamp: z.ZodMiniString<string>;
|
|
1762
1815
|
type: z.ZodMiniLiteral<"identify">;
|
|
1763
1816
|
traits: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniJSONSchema>;
|
|
1817
|
+
userId: z.ZodMiniString<string>;
|
|
1764
1818
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1765
1819
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
1820
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1766
1821
|
messageId: z.ZodMiniString<string>;
|
|
1767
|
-
originalTimestamp: z.
|
|
1768
|
-
sentAt: z.
|
|
1769
|
-
timestamp: z.
|
|
1822
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1823
|
+
sentAt: z.ZodMiniString<string>;
|
|
1824
|
+
timestamp: z.ZodMiniString<string>;
|
|
1770
1825
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1771
1826
|
type: z.ZodMiniLiteral<"page">;
|
|
1772
1827
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1773
1828
|
properties: z.ZodMiniObject<{
|
|
1774
1829
|
path: z.ZodMiniString<string>;
|
|
1775
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1830
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1776
1831
|
referrer: z.ZodMiniString<string>;
|
|
1777
1832
|
search: z.ZodMiniString<string>;
|
|
1778
|
-
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1779
1833
|
url: z.ZodMiniString<string>;
|
|
1834
|
+
title: z.ZodMiniString<string>;
|
|
1780
1835
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
1781
1836
|
context: z.ZodMiniObject<{
|
|
1782
1837
|
app: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -1790,14 +1845,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1790
1845
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1791
1846
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1792
1847
|
}, z.core.$strip>;
|
|
1793
|
-
gdpr: z.ZodMiniObject<{
|
|
1848
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1794
1849
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1795
|
-
}, z.core.$strip
|
|
1850
|
+
}, z.core.$strip>>;
|
|
1796
1851
|
library: z.ZodMiniObject<{
|
|
1797
1852
|
name: z.ZodMiniString<string>;
|
|
1798
1853
|
version: z.ZodMiniString<string>;
|
|
1799
1854
|
}, z.core.$strip>;
|
|
1800
|
-
locale: z.ZodMiniString<string
|
|
1855
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1801
1856
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1802
1857
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1803
1858
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1813,21 +1868,22 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1813
1868
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1814
1869
|
}, z.core.$strip>>;
|
|
1815
1870
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1816
|
-
page: z.ZodMiniObject<{
|
|
1871
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1817
1872
|
path: z.ZodMiniString<string>;
|
|
1818
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1873
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1819
1874
|
referrer: z.ZodMiniString<string>;
|
|
1820
1875
|
search: z.ZodMiniString<string>;
|
|
1821
1876
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1822
1877
|
url: z.ZodMiniString<string>;
|
|
1823
|
-
}, z.core.$catchall<z.ZodMiniJSONSchema
|
|
1878
|
+
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1824
1879
|
}, z.core.$strip>;
|
|
1825
1880
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1826
1881
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
1882
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1827
1883
|
messageId: z.ZodMiniString<string>;
|
|
1828
|
-
originalTimestamp: z.
|
|
1829
|
-
sentAt: z.
|
|
1830
|
-
timestamp: z.
|
|
1884
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1885
|
+
sentAt: z.ZodMiniString<string>;
|
|
1886
|
+
timestamp: z.ZodMiniString<string>;
|
|
1831
1887
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1832
1888
|
type: z.ZodMiniLiteral<"screen">;
|
|
1833
1889
|
name: z.ZodMiniString<string>;
|
|
@@ -1844,14 +1900,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1844
1900
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1845
1901
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1846
1902
|
}, z.core.$strip>;
|
|
1847
|
-
gdpr: z.ZodMiniObject<{
|
|
1903
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1848
1904
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1849
|
-
}, z.core.$strip
|
|
1905
|
+
}, z.core.$strip>>;
|
|
1850
1906
|
library: z.ZodMiniObject<{
|
|
1851
1907
|
name: z.ZodMiniString<string>;
|
|
1852
1908
|
version: z.ZodMiniString<string>;
|
|
1853
1909
|
}, z.core.$strip>;
|
|
1854
|
-
locale: z.ZodMiniString<string
|
|
1910
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1855
1911
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1856
1912
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1857
1913
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1885,14 +1941,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1885
1941
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1886
1942
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1887
1943
|
}, z.core.$strip>;
|
|
1888
|
-
gdpr: z.ZodMiniObject<{
|
|
1944
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1889
1945
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1890
|
-
}, z.core.$strip
|
|
1946
|
+
}, z.core.$strip>>;
|
|
1891
1947
|
library: z.ZodMiniObject<{
|
|
1892
1948
|
name: z.ZodMiniString<string>;
|
|
1893
1949
|
version: z.ZodMiniString<string>;
|
|
1894
1950
|
}, z.core.$strip>;
|
|
1895
|
-
locale: z.ZodMiniString<string
|
|
1951
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1896
1952
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1897
1953
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1898
1954
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1910,7 +1966,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1910
1966
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1911
1967
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1912
1968
|
path: z.ZodMiniString<string>;
|
|
1913
|
-
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1969
|
+
query: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
1914
1970
|
referrer: z.ZodMiniString<string>;
|
|
1915
1971
|
search: z.ZodMiniString<string>;
|
|
1916
1972
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1920,10 +1976,11 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1920
1976
|
name: z.ZodMiniString<string>;
|
|
1921
1977
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1922
1978
|
}, z.core.$strip>;
|
|
1979
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1923
1980
|
messageId: z.ZodMiniString<string>;
|
|
1924
|
-
originalTimestamp: z.
|
|
1925
|
-
sentAt: z.
|
|
1926
|
-
timestamp: z.
|
|
1981
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1982
|
+
sentAt: z.ZodMiniString<string>;
|
|
1983
|
+
timestamp: z.ZodMiniString<string>;
|
|
1927
1984
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1928
1985
|
type: z.ZodMiniLiteral<"track">;
|
|
1929
1986
|
event: z.ZodMiniString<string>;
|
|
@@ -2055,14 +2112,8 @@ export declare const INSIGHTS_BASE_URL = "https://ingest.insights.ninetailed.co/
|
|
|
2055
2112
|
*
|
|
2056
2113
|
* await insightsClient.sendBatchEvents([
|
|
2057
2114
|
* {
|
|
2058
|
-
* profile
|
|
2059
|
-
* events: [
|
|
2060
|
-
* {
|
|
2061
|
-
* type: 'track',
|
|
2062
|
-
* event: 'button_clicked',
|
|
2063
|
-
* properties: { id: 'primary-cta' },
|
|
2064
|
-
* },
|
|
2065
|
-
* ],
|
|
2115
|
+
* profile, // Complete profile snapshot returned by the Experience API
|
|
2116
|
+
* events: [viewEvent],
|
|
2066
2117
|
* }
|
|
2067
2118
|
* ])
|
|
2068
2119
|
* ```
|
|
@@ -2099,6 +2150,10 @@ export declare class InsightsApiClient extends ApiClientBase {
|
|
|
2099
2150
|
* sender or a direct request is successfully sent, `false` otherwise.
|
|
2100
2151
|
*
|
|
2101
2152
|
* @remarks
|
|
2153
|
+
* Each batch requires a complete `Profile` snapshot.
|
|
2154
|
+
* An ID-only profile fails validation before either sender is invoked.
|
|
2155
|
+
* Beacon acceptance does not confirm a successful Insights service response.
|
|
2156
|
+
*
|
|
2102
2157
|
* If a `beacon` sender is provided, it will be invoked first with the
|
|
2103
2158
|
* serialized request body. When the sender returns `true`, the events are
|
|
2104
2159
|
* considered successfully queued and no network request is made by this
|