@contentful/optimization-api-client 2.2.1 → 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/THIRD_PARTY_NOTICES.txt +1 -1
- package/dist/api-schemas.cjs +35 -24
- package/dist/api-schemas.cjs.map +1 -1
- package/dist/api-schemas.d.cts +796 -1125
- package/dist/api-schemas.d.mts +796 -1125
- package/dist/api-schemas.d.ts +796 -1125
- package/dist/api-schemas.mjs +33 -22
- package/dist/api-schemas.mjs.map +1 -1
- package/dist/guards.d.cts +0 -30
- package/dist/guards.d.mts +0 -30
- package/dist/guards.d.ts +0 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +216 -282
- package/dist/index.d.mts +216 -282
- package/dist/index.d.ts +216 -282
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
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<{
|
|
@@ -354,7 +354,7 @@ declare const BatchExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUn
|
|
|
354
354
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
355
355
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
356
356
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
357
|
-
viewDurationMs: z.
|
|
357
|
+
viewDurationMs: z.ZodMiniInt;
|
|
358
358
|
viewId: z.ZodMiniString<string>;
|
|
359
359
|
anonymousId: z.ZodMiniString<string>;
|
|
360
360
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -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>;
|
|
@@ -603,9 +603,6 @@ declare type BatchExperienceEventArray = z.infer<typeof BatchExperienceEventArra
|
|
|
603
603
|
* @public
|
|
604
604
|
*/
|
|
605
605
|
declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
606
|
-
/**
|
|
607
|
-
* Profiles evaluated or affected by the batch experience request.
|
|
608
|
-
*/
|
|
609
606
|
profiles: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
610
607
|
id: z.ZodMiniString<string>;
|
|
611
608
|
stableId: z.ZodMiniString<string>;
|
|
@@ -627,11 +624,11 @@ declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
|
627
624
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
628
625
|
}, z.core.$strip>;
|
|
629
626
|
session: z.ZodMiniObject<{
|
|
630
|
-
id: z.ZodMiniString<string
|
|
627
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
631
628
|
isReturningVisitor: z.ZodMiniBoolean<boolean>;
|
|
632
629
|
landingPage: z.ZodMiniObject<{
|
|
633
630
|
path: z.ZodMiniString<string>;
|
|
634
|
-
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>>]>>;
|
|
635
632
|
referrer: z.ZodMiniString<string>;
|
|
636
633
|
search: z.ZodMiniString<string>;
|
|
637
634
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -641,6 +638,10 @@ declare const BatchExperienceResponseData: z.ZodMiniObject<{
|
|
|
641
638
|
activeSessionLength: z.ZodMiniNumber<number>;
|
|
642
639
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
643
640
|
}, z.core.$strip>;
|
|
641
|
+
jurisdiction: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
642
|
+
US: "US";
|
|
643
|
+
EU: "EU";
|
|
644
|
+
}>>;
|
|
644
645
|
}, z.core.$strip>>>;
|
|
645
646
|
}, z.core.$strip>;
|
|
646
647
|
|
|
@@ -660,19 +661,46 @@ declare type BatchExperienceResponseData = z.infer<typeof BatchExperienceRespons
|
|
|
660
661
|
* @public
|
|
661
662
|
*/
|
|
662
663
|
declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
663
|
-
/**
|
|
664
|
-
* Partial profile information used to associate events with a user.
|
|
665
|
-
*
|
|
666
|
-
* @see {@link PartialProfile}
|
|
667
|
-
*/
|
|
668
664
|
profile: z.ZodMiniObject<{
|
|
669
665
|
id: z.ZodMiniString<string>;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
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>;
|
|
676
704
|
events: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
677
705
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
678
706
|
context: z.ZodMiniObject<{
|
|
@@ -687,14 +715,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
687
715
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
688
716
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
689
717
|
}, z.core.$strip>;
|
|
690
|
-
gdpr: z.ZodMiniObject<{
|
|
718
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
691
719
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
692
|
-
}, z.core.$strip
|
|
720
|
+
}, z.core.$strip>>;
|
|
693
721
|
library: z.ZodMiniObject<{
|
|
694
722
|
name: z.ZodMiniString<string>;
|
|
695
723
|
version: z.ZodMiniString<string>;
|
|
696
724
|
}, z.core.$strip>;
|
|
697
|
-
locale: z.ZodMiniString<string
|
|
725
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
698
726
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
699
727
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
700
728
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -712,7 +740,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
712
740
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
713
741
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
714
742
|
path: z.ZodMiniString<string>;
|
|
715
|
-
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>>]>>;
|
|
716
744
|
referrer: z.ZodMiniString<string>;
|
|
717
745
|
search: z.ZodMiniString<string>;
|
|
718
746
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -722,15 +750,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
722
750
|
name: z.ZodMiniString<string>;
|
|
723
751
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
724
752
|
}, z.core.$strip>;
|
|
753
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
725
754
|
messageId: z.ZodMiniString<string>;
|
|
726
|
-
originalTimestamp: z.
|
|
727
|
-
sentAt: z.
|
|
728
|
-
timestamp: z.
|
|
755
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
756
|
+
sentAt: z.ZodMiniString<string>;
|
|
757
|
+
timestamp: z.ZodMiniString<string>;
|
|
729
758
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
730
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
759
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
731
760
|
componentId: z.ZodMiniString<string>;
|
|
732
761
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
733
|
-
variantIndex: z.ZodMiniNumber<number
|
|
762
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
734
763
|
type: z.ZodMiniLiteral<"component">;
|
|
735
764
|
viewDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
736
765
|
viewId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -748,14 +777,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
748
777
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
749
778
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
750
779
|
}, z.core.$strip>;
|
|
751
|
-
gdpr: z.ZodMiniObject<{
|
|
780
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
752
781
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
753
|
-
}, z.core.$strip
|
|
782
|
+
}, z.core.$strip>>;
|
|
754
783
|
library: z.ZodMiniObject<{
|
|
755
784
|
name: z.ZodMiniString<string>;
|
|
756
785
|
version: z.ZodMiniString<string>;
|
|
757
786
|
}, z.core.$strip>;
|
|
758
|
-
locale: z.ZodMiniString<string
|
|
787
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
759
788
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
760
789
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
761
790
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -773,7 +802,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
773
802
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
774
803
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
775
804
|
path: z.ZodMiniString<string>;
|
|
776
|
-
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>>]>>;
|
|
777
806
|
referrer: z.ZodMiniString<string>;
|
|
778
807
|
search: z.ZodMiniString<string>;
|
|
779
808
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -783,15 +812,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
783
812
|
name: z.ZodMiniString<string>;
|
|
784
813
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
785
814
|
}, z.core.$strip>;
|
|
815
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
786
816
|
messageId: z.ZodMiniString<string>;
|
|
787
|
-
originalTimestamp: z.
|
|
788
|
-
sentAt: z.
|
|
789
|
-
timestamp: z.
|
|
817
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
818
|
+
sentAt: z.ZodMiniString<string>;
|
|
819
|
+
timestamp: z.ZodMiniString<string>;
|
|
790
820
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
791
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
821
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
792
822
|
componentId: z.ZodMiniString<string>;
|
|
793
823
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
794
|
-
variantIndex: z.ZodMiniNumber<number
|
|
824
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
795
825
|
type: z.ZodMiniLiteral<"component_click">;
|
|
796
826
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
797
827
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -807,14 +837,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
807
837
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
808
838
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
809
839
|
}, z.core.$strip>;
|
|
810
|
-
gdpr: z.ZodMiniObject<{
|
|
840
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
811
841
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
812
|
-
}, z.core.$strip
|
|
842
|
+
}, z.core.$strip>>;
|
|
813
843
|
library: z.ZodMiniObject<{
|
|
814
844
|
name: z.ZodMiniString<string>;
|
|
815
845
|
version: z.ZodMiniString<string>;
|
|
816
846
|
}, z.core.$strip>;
|
|
817
|
-
locale: z.ZodMiniString<string
|
|
847
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
818
848
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
819
849
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
820
850
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -832,7 +862,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
832
862
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
833
863
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
834
864
|
path: z.ZodMiniString<string>;
|
|
835
|
-
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>>]>>;
|
|
836
866
|
referrer: z.ZodMiniString<string>;
|
|
837
867
|
search: z.ZodMiniString<string>;
|
|
838
868
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -842,15 +872,16 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
842
872
|
name: z.ZodMiniString<string>;
|
|
843
873
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
844
874
|
}, z.core.$strip>;
|
|
875
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
845
876
|
messageId: z.ZodMiniString<string>;
|
|
846
|
-
originalTimestamp: z.
|
|
847
|
-
sentAt: z.
|
|
848
|
-
timestamp: z.
|
|
877
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
878
|
+
sentAt: z.ZodMiniString<string>;
|
|
879
|
+
timestamp: z.ZodMiniString<string>;
|
|
849
880
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
850
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
881
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
851
882
|
componentId: z.ZodMiniString<string>;
|
|
852
883
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
853
|
-
variantIndex: z.ZodMiniNumber<number
|
|
884
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
854
885
|
type: z.ZodMiniLiteral<"component_hover">;
|
|
855
886
|
hoverDurationMs: z.ZodMiniNumber<number>;
|
|
856
887
|
hoverId: z.ZodMiniString<string>;
|
|
@@ -868,14 +899,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
868
899
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
869
900
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
870
901
|
}, z.core.$strip>;
|
|
871
|
-
gdpr: z.ZodMiniObject<{
|
|
902
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
872
903
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
873
|
-
}, z.core.$strip
|
|
904
|
+
}, z.core.$strip>>;
|
|
874
905
|
library: z.ZodMiniObject<{
|
|
875
906
|
name: z.ZodMiniString<string>;
|
|
876
907
|
version: z.ZodMiniString<string>;
|
|
877
908
|
}, z.core.$strip>;
|
|
878
|
-
locale: z.ZodMiniString<string
|
|
909
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
879
910
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
880
911
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
881
912
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -893,7 +924,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
893
924
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
894
925
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
895
926
|
path: z.ZodMiniString<string>;
|
|
896
|
-
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>>]>>;
|
|
897
928
|
referrer: z.ZodMiniString<string>;
|
|
898
929
|
search: z.ZodMiniString<string>;
|
|
899
930
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -903,10 +934,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
903
934
|
name: z.ZodMiniString<string>;
|
|
904
935
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
905
936
|
}, z.core.$strip>;
|
|
937
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
906
938
|
messageId: z.ZodMiniString<string>;
|
|
907
|
-
originalTimestamp: z.
|
|
908
|
-
sentAt: z.
|
|
909
|
-
timestamp: z.
|
|
939
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
940
|
+
sentAt: z.ZodMiniString<string>;
|
|
941
|
+
timestamp: z.ZodMiniString<string>;
|
|
910
942
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
911
943
|
entityId: z.ZodMiniString<string>;
|
|
912
944
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -922,7 +954,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
922
954
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
923
955
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
924
956
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
925
|
-
viewDurationMs: z.
|
|
957
|
+
viewDurationMs: z.ZodMiniInt;
|
|
926
958
|
viewId: z.ZodMiniString<string>;
|
|
927
959
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
928
960
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -938,14 +970,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
938
970
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
939
971
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
940
972
|
}, z.core.$strip>;
|
|
941
|
-
gdpr: z.ZodMiniObject<{
|
|
973
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
942
974
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
943
|
-
}, z.core.$strip
|
|
975
|
+
}, z.core.$strip>>;
|
|
944
976
|
library: z.ZodMiniObject<{
|
|
945
977
|
name: z.ZodMiniString<string>;
|
|
946
978
|
version: z.ZodMiniString<string>;
|
|
947
979
|
}, z.core.$strip>;
|
|
948
|
-
locale: z.ZodMiniString<string
|
|
980
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
949
981
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
950
982
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
951
983
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -963,7 +995,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
963
995
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
964
996
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
965
997
|
path: z.ZodMiniString<string>;
|
|
966
|
-
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>>]>>;
|
|
967
999
|
referrer: z.ZodMiniString<string>;
|
|
968
1000
|
search: z.ZodMiniString<string>;
|
|
969
1001
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -973,10 +1005,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
973
1005
|
name: z.ZodMiniString<string>;
|
|
974
1006
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
975
1007
|
}, z.core.$strip>;
|
|
1008
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
976
1009
|
messageId: z.ZodMiniString<string>;
|
|
977
|
-
originalTimestamp: z.
|
|
978
|
-
sentAt: z.
|
|
979
|
-
timestamp: z.
|
|
1010
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1011
|
+
sentAt: z.ZodMiniString<string>;
|
|
1012
|
+
timestamp: z.ZodMiniString<string>;
|
|
980
1013
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
981
1014
|
entityId: z.ZodMiniString<string>;
|
|
982
1015
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -1006,14 +1039,14 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1006
1039
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1007
1040
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1008
1041
|
}, z.core.$strip>;
|
|
1009
|
-
gdpr: z.ZodMiniObject<{
|
|
1042
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1010
1043
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1011
|
-
}, z.core.$strip
|
|
1044
|
+
}, z.core.$strip>>;
|
|
1012
1045
|
library: z.ZodMiniObject<{
|
|
1013
1046
|
name: z.ZodMiniString<string>;
|
|
1014
1047
|
version: z.ZodMiniString<string>;
|
|
1015
1048
|
}, z.core.$strip>;
|
|
1016
|
-
locale: z.ZodMiniString<string
|
|
1049
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1017
1050
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1018
1051
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1019
1052
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1031,7 +1064,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1031
1064
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1032
1065
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1033
1066
|
path: z.ZodMiniString<string>;
|
|
1034
|
-
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>>]>>;
|
|
1035
1068
|
referrer: z.ZodMiniString<string>;
|
|
1036
1069
|
search: z.ZodMiniString<string>;
|
|
1037
1070
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1041,10 +1074,11 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1041
1074
|
name: z.ZodMiniString<string>;
|
|
1042
1075
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1043
1076
|
}, z.core.$strip>;
|
|
1077
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1044
1078
|
messageId: z.ZodMiniString<string>;
|
|
1045
|
-
originalTimestamp: z.
|
|
1046
|
-
sentAt: z.
|
|
1047
|
-
timestamp: z.
|
|
1079
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1080
|
+
sentAt: z.ZodMiniString<string>;
|
|
1081
|
+
timestamp: z.ZodMiniString<string>;
|
|
1048
1082
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1049
1083
|
entityId: z.ZodMiniString<string>;
|
|
1050
1084
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -1060,7 +1094,7 @@ declare const BatchInsightsEventArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
|
1060
1094
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1061
1095
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1062
1096
|
type: z.ZodMiniLiteral<"exo_node_hover">;
|
|
1063
|
-
hoverDurationMs: z.
|
|
1097
|
+
hoverDurationMs: z.ZodMiniInt;
|
|
1064
1098
|
hoverId: z.ZodMiniString<string>;
|
|
1065
1099
|
}, z.core.$strip>], "type">>;
|
|
1066
1100
|
}, z.core.$strip>>;
|
|
@@ -1092,16 +1126,7 @@ export declare interface BatchUpdateProfileParams {
|
|
|
1092
1126
|
declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1093
1127
|
key: z.ZodMiniString<string>;
|
|
1094
1128
|
meta: z.ZodMiniObject<{
|
|
1095
|
-
/**
|
|
1096
|
-
* Identifier of the personalization or experiment experience.
|
|
1097
|
-
*/
|
|
1098
1129
|
experienceId: z.ZodMiniString<string>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Index of the variant within the experience configuration.
|
|
1101
|
-
*
|
|
1102
|
-
* @remarks
|
|
1103
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
1104
|
-
*/
|
|
1105
1130
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1106
1131
|
}, z.core.$strip>;
|
|
1107
1132
|
type: z.ZodMiniLiteral<"Variable">;
|
|
@@ -1110,13 +1135,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1110
1135
|
id: z.ZodMiniString<string>;
|
|
1111
1136
|
variantId: z.ZodMiniString<string>;
|
|
1112
1137
|
meta: z.ZodMiniObject<{
|
|
1113
|
-
/**
|
|
1114
|
-
* Identifier of the optimization that produced this change.
|
|
1115
|
-
*/
|
|
1116
1138
|
optimizationId: z.ZodMiniString<string>;
|
|
1117
|
-
/**
|
|
1118
|
-
* Index of the variant within the optimization's distribution.
|
|
1119
|
-
*/
|
|
1120
1139
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1121
1140
|
}, z.core.$strip>;
|
|
1122
1141
|
type: z.ZodMiniLiteral<"Experience">;
|
|
@@ -1124,13 +1143,7 @@ declare const Change: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
|
1124
1143
|
id: z.ZodMiniString<string>;
|
|
1125
1144
|
variantId: z.ZodMiniString<string>;
|
|
1126
1145
|
meta: z.ZodMiniObject<{
|
|
1127
|
-
/**
|
|
1128
|
-
* Identifier of the optimization that produced this change.
|
|
1129
|
-
*/
|
|
1130
1146
|
optimizationId: z.ZodMiniString<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* Index of the variant within the optimization's distribution.
|
|
1133
|
-
*/
|
|
1134
1147
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1135
1148
|
}, z.core.$strip>;
|
|
1136
1149
|
type: z.ZodMiniLiteral<"Fragment">;
|
|
@@ -1527,9 +1540,6 @@ export declare interface ExperienceApiClientRequestOptions {
|
|
|
1527
1540
|
* @public
|
|
1528
1541
|
*/
|
|
1529
1542
|
declare const ExperienceData: z.ZodMiniObject<{
|
|
1530
|
-
/**
|
|
1531
|
-
* Profile associated with the evaluated events.
|
|
1532
|
-
*/
|
|
1533
1543
|
profile: z.ZodMiniObject<{
|
|
1534
1544
|
id: z.ZodMiniString<string>;
|
|
1535
1545
|
stableId: z.ZodMiniString<string>;
|
|
@@ -1551,11 +1561,11 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1551
1561
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1552
1562
|
}, z.core.$strip>;
|
|
1553
1563
|
session: z.ZodMiniObject<{
|
|
1554
|
-
id: z.ZodMiniString<string
|
|
1564
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1555
1565
|
isReturningVisitor: z.ZodMiniBoolean<boolean>;
|
|
1556
1566
|
landingPage: z.ZodMiniObject<{
|
|
1557
1567
|
path: z.ZodMiniString<string>;
|
|
1558
|
-
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>>]>>;
|
|
1559
1569
|
referrer: z.ZodMiniString<string>;
|
|
1560
1570
|
search: z.ZodMiniString<string>;
|
|
1561
1571
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1565,23 +1575,17 @@ declare const ExperienceData: z.ZodMiniObject<{
|
|
|
1565
1575
|
activeSessionLength: z.ZodMiniNumber<number>;
|
|
1566
1576
|
averageSessionLength: z.ZodMiniNumber<number>;
|
|
1567
1577
|
}, z.core.$strip>;
|
|
1578
|
+
jurisdiction: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
1579
|
+
US: "US";
|
|
1580
|
+
EU: "EU";
|
|
1581
|
+
}>>;
|
|
1568
1582
|
}, z.core.$strip>;
|
|
1569
|
-
/**
|
|
1570
|
-
* Selected experiences and variants for the profile.
|
|
1571
|
-
*
|
|
1572
|
-
* @see {@link SelectedOptimizationArray}
|
|
1573
|
-
*/
|
|
1574
1583
|
experiences: z.ZodMiniArray<z.ZodMiniObject<{
|
|
1575
1584
|
experienceId: z.ZodMiniString<string>;
|
|
1576
1585
|
variantIndex: z.ZodMiniNumber<number>;
|
|
1577
1586
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
1578
1587
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
1579
1588
|
}, z.core.$strip>>;
|
|
1580
|
-
/**
|
|
1581
|
-
* Used for Custom Flags.
|
|
1582
|
-
*
|
|
1583
|
-
* @see {@link ChangeArray}
|
|
1584
|
-
*/
|
|
1585
1589
|
changes: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1586
1590
|
key: z.ZodMiniString<string>;
|
|
1587
1591
|
meta: z.ZodMiniObject<{
|
|
@@ -1635,14 +1639,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1635
1639
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1636
1640
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1637
1641
|
}, z.core.$strip>;
|
|
1638
|
-
gdpr: z.ZodMiniObject<{
|
|
1642
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1639
1643
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1640
|
-
}, z.core.$strip
|
|
1644
|
+
}, z.core.$strip>>;
|
|
1641
1645
|
library: z.ZodMiniObject<{
|
|
1642
1646
|
name: z.ZodMiniString<string>;
|
|
1643
1647
|
version: z.ZodMiniString<string>;
|
|
1644
1648
|
}, z.core.$strip>;
|
|
1645
|
-
locale: z.ZodMiniString<string
|
|
1649
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1646
1650
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1647
1651
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1648
1652
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1660,7 +1664,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1660
1664
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1661
1665
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1662
1666
|
path: z.ZodMiniString<string>;
|
|
1663
|
-
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>>]>>;
|
|
1664
1668
|
referrer: z.ZodMiniString<string>;
|
|
1665
1669
|
search: z.ZodMiniString<string>;
|
|
1666
1670
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1670,15 +1674,16 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1670
1674
|
name: z.ZodMiniString<string>;
|
|
1671
1675
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1672
1676
|
}, z.core.$strip>;
|
|
1677
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1673
1678
|
messageId: z.ZodMiniString<string>;
|
|
1674
|
-
originalTimestamp: z.
|
|
1675
|
-
sentAt: z.
|
|
1676
|
-
timestamp: z.
|
|
1679
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1680
|
+
sentAt: z.ZodMiniString<string>;
|
|
1681
|
+
timestamp: z.ZodMiniString<string>;
|
|
1677
1682
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1678
|
-
componentType: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]
|
|
1683
|
+
componentType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Entry">, z.ZodMiniLiteral<"Variable">]>>;
|
|
1679
1684
|
componentId: z.ZodMiniString<string>;
|
|
1680
1685
|
experienceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1681
|
-
variantIndex: z.ZodMiniNumber<number
|
|
1686
|
+
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1682
1687
|
type: z.ZodMiniLiteral<"component">;
|
|
1683
1688
|
viewDurationMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1684
1689
|
viewId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1696,14 +1701,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1696
1701
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1697
1702
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1698
1703
|
}, z.core.$strip>;
|
|
1699
|
-
gdpr: z.ZodMiniObject<{
|
|
1704
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1700
1705
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1701
|
-
}, z.core.$strip
|
|
1706
|
+
}, z.core.$strip>>;
|
|
1702
1707
|
library: z.ZodMiniObject<{
|
|
1703
1708
|
name: z.ZodMiniString<string>;
|
|
1704
1709
|
version: z.ZodMiniString<string>;
|
|
1705
1710
|
}, z.core.$strip>;
|
|
1706
|
-
locale: z.ZodMiniString<string
|
|
1711
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1707
1712
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1708
1713
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1709
1714
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1721,7 +1726,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1721
1726
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1722
1727
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1723
1728
|
path: z.ZodMiniString<string>;
|
|
1724
|
-
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>>]>>;
|
|
1725
1730
|
referrer: z.ZodMiniString<string>;
|
|
1726
1731
|
search: z.ZodMiniString<string>;
|
|
1727
1732
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1731,10 +1736,11 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1731
1736
|
name: z.ZodMiniString<string>;
|
|
1732
1737
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1733
1738
|
}, z.core.$strip>;
|
|
1739
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1734
1740
|
messageId: z.ZodMiniString<string>;
|
|
1735
|
-
originalTimestamp: z.
|
|
1736
|
-
sentAt: z.
|
|
1737
|
-
timestamp: z.
|
|
1741
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1742
|
+
sentAt: z.ZodMiniString<string>;
|
|
1743
|
+
timestamp: z.ZodMiniString<string>;
|
|
1738
1744
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1739
1745
|
entityId: z.ZodMiniString<string>;
|
|
1740
1746
|
entityKind: z.ZodMiniEnum<{
|
|
@@ -1750,7 +1756,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1750
1756
|
variantId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1751
1757
|
variantIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1752
1758
|
type: z.ZodMiniLiteral<"exo_node_view">;
|
|
1753
|
-
viewDurationMs: z.
|
|
1759
|
+
viewDurationMs: z.ZodMiniInt;
|
|
1754
1760
|
viewId: z.ZodMiniString<string>;
|
|
1755
1761
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1756
1762
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
@@ -1766,14 +1772,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1766
1772
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1767
1773
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1768
1774
|
}, z.core.$strip>;
|
|
1769
|
-
gdpr: z.ZodMiniObject<{
|
|
1775
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1770
1776
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1771
|
-
}, z.core.$strip
|
|
1777
|
+
}, z.core.$strip>>;
|
|
1772
1778
|
library: z.ZodMiniObject<{
|
|
1773
1779
|
name: z.ZodMiniString<string>;
|
|
1774
1780
|
version: z.ZodMiniString<string>;
|
|
1775
1781
|
}, z.core.$strip>;
|
|
1776
|
-
locale: z.ZodMiniString<string
|
|
1782
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1777
1783
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1778
1784
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1779
1785
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1791,7 +1797,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1791
1797
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1792
1798
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1793
1799
|
path: z.ZodMiniString<string>;
|
|
1794
|
-
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>>]>>;
|
|
1795
1801
|
referrer: z.ZodMiniString<string>;
|
|
1796
1802
|
search: z.ZodMiniString<string>;
|
|
1797
1803
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1801,29 +1807,31 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1801
1807
|
name: z.ZodMiniString<string>;
|
|
1802
1808
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1803
1809
|
}, z.core.$strip>;
|
|
1810
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1804
1811
|
messageId: z.ZodMiniString<string>;
|
|
1805
|
-
originalTimestamp: z.
|
|
1806
|
-
sentAt: z.
|
|
1807
|
-
timestamp: z.
|
|
1808
|
-
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1812
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1813
|
+
sentAt: z.ZodMiniString<string>;
|
|
1814
|
+
timestamp: z.ZodMiniString<string>;
|
|
1809
1815
|
type: z.ZodMiniLiteral<"identify">;
|
|
1810
1816
|
traits: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniJSONSchema>;
|
|
1817
|
+
userId: z.ZodMiniString<string>;
|
|
1811
1818
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1812
1819
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
1820
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1813
1821
|
messageId: z.ZodMiniString<string>;
|
|
1814
|
-
originalTimestamp: z.
|
|
1815
|
-
sentAt: z.
|
|
1816
|
-
timestamp: z.
|
|
1822
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1823
|
+
sentAt: z.ZodMiniString<string>;
|
|
1824
|
+
timestamp: z.ZodMiniString<string>;
|
|
1817
1825
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1818
1826
|
type: z.ZodMiniLiteral<"page">;
|
|
1819
1827
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1820
1828
|
properties: z.ZodMiniObject<{
|
|
1821
1829
|
path: z.ZodMiniString<string>;
|
|
1822
|
-
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>>]>>;
|
|
1823
1831
|
referrer: z.ZodMiniString<string>;
|
|
1824
1832
|
search: z.ZodMiniString<string>;
|
|
1825
|
-
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1826
1833
|
url: z.ZodMiniString<string>;
|
|
1834
|
+
title: z.ZodMiniString<string>;
|
|
1827
1835
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>;
|
|
1828
1836
|
context: z.ZodMiniObject<{
|
|
1829
1837
|
app: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -1837,14 +1845,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1837
1845
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1838
1846
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1839
1847
|
}, z.core.$strip>;
|
|
1840
|
-
gdpr: z.ZodMiniObject<{
|
|
1848
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1841
1849
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1842
|
-
}, z.core.$strip
|
|
1850
|
+
}, z.core.$strip>>;
|
|
1843
1851
|
library: z.ZodMiniObject<{
|
|
1844
1852
|
name: z.ZodMiniString<string>;
|
|
1845
1853
|
version: z.ZodMiniString<string>;
|
|
1846
1854
|
}, z.core.$strip>;
|
|
1847
|
-
locale: z.ZodMiniString<string
|
|
1855
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1848
1856
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1849
1857
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1850
1858
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1860,21 +1868,22 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1860
1868
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1861
1869
|
}, z.core.$strip>>;
|
|
1862
1870
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1863
|
-
page: z.ZodMiniObject<{
|
|
1871
|
+
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1864
1872
|
path: z.ZodMiniString<string>;
|
|
1865
|
-
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>>]>>;
|
|
1866
1874
|
referrer: z.ZodMiniString<string>;
|
|
1867
1875
|
search: z.ZodMiniString<string>;
|
|
1868
1876
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1869
1877
|
url: z.ZodMiniString<string>;
|
|
1870
|
-
}, z.core.$catchall<z.ZodMiniJSONSchema
|
|
1878
|
+
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1871
1879
|
}, z.core.$strip>;
|
|
1872
1880
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1873
1881
|
channel: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"mobile">, z.ZodMiniLiteral<"server">, z.ZodMiniLiteral<"web">]>;
|
|
1882
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1874
1883
|
messageId: z.ZodMiniString<string>;
|
|
1875
|
-
originalTimestamp: z.
|
|
1876
|
-
sentAt: z.
|
|
1877
|
-
timestamp: z.
|
|
1884
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1885
|
+
sentAt: z.ZodMiniString<string>;
|
|
1886
|
+
timestamp: z.ZodMiniString<string>;
|
|
1878
1887
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1879
1888
|
type: z.ZodMiniLiteral<"screen">;
|
|
1880
1889
|
name: z.ZodMiniString<string>;
|
|
@@ -1891,14 +1900,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1891
1900
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1892
1901
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1893
1902
|
}, z.core.$strip>;
|
|
1894
|
-
gdpr: z.ZodMiniObject<{
|
|
1903
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1895
1904
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1896
|
-
}, z.core.$strip
|
|
1905
|
+
}, z.core.$strip>>;
|
|
1897
1906
|
library: z.ZodMiniObject<{
|
|
1898
1907
|
name: z.ZodMiniString<string>;
|
|
1899
1908
|
version: z.ZodMiniString<string>;
|
|
1900
1909
|
}, z.core.$strip>;
|
|
1901
|
-
locale: z.ZodMiniString<string
|
|
1910
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1902
1911
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1903
1912
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1904
1913
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1932,14 +1941,14 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1932
1941
|
term: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1933
1942
|
content: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1934
1943
|
}, z.core.$strip>;
|
|
1935
|
-
gdpr: z.ZodMiniObject<{
|
|
1944
|
+
gdpr: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1936
1945
|
isConsentGiven: z.ZodMiniBoolean<boolean>;
|
|
1937
|
-
}, z.core.$strip
|
|
1946
|
+
}, z.core.$strip>>;
|
|
1938
1947
|
library: z.ZodMiniObject<{
|
|
1939
1948
|
name: z.ZodMiniString<string>;
|
|
1940
1949
|
version: z.ZodMiniString<string>;
|
|
1941
1950
|
}, z.core.$strip>;
|
|
1942
|
-
locale: z.ZodMiniString<string
|
|
1951
|
+
locale: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniString<string>>>;
|
|
1943
1952
|
location: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1944
1953
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1945
1954
|
latitude: z.ZodMiniNumber<number>;
|
|
@@ -1957,7 +1966,7 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1957
1966
|
userAgent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1958
1967
|
page: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1959
1968
|
path: z.ZodMiniString<string>;
|
|
1960
|
-
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>>]>>;
|
|
1961
1970
|
referrer: z.ZodMiniString<string>;
|
|
1962
1971
|
search: z.ZodMiniString<string>;
|
|
1963
1972
|
title: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1967,10 +1976,11 @@ declare const ExperienceEventArray: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[
|
|
|
1967
1976
|
name: z.ZodMiniString<string>;
|
|
1968
1977
|
}, z.core.$catchall<z.ZodMiniJSONSchema>>>;
|
|
1969
1978
|
}, z.core.$strip>;
|
|
1979
|
+
anonymousId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1970
1980
|
messageId: z.ZodMiniString<string>;
|
|
1971
|
-
originalTimestamp: z.
|
|
1972
|
-
sentAt: z.
|
|
1973
|
-
timestamp: z.
|
|
1981
|
+
originalTimestamp: z.ZodMiniString<string>;
|
|
1982
|
+
sentAt: z.ZodMiniString<string>;
|
|
1983
|
+
timestamp: z.ZodMiniString<string>;
|
|
1974
1984
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1975
1985
|
type: z.ZodMiniLiteral<"track">;
|
|
1976
1986
|
event: z.ZodMiniString<string>;
|
|
@@ -2051,57 +2061,17 @@ export declare interface FetchMethodCallbackOptions {
|
|
|
2051
2061
|
* @public
|
|
2052
2062
|
*/
|
|
2053
2063
|
declare const GeoLocation: z.ZodMiniObject<{
|
|
2054
|
-
/**
|
|
2055
|
-
* Geographical coordinates for the location.
|
|
2056
|
-
*/
|
|
2057
2064
|
coordinates: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2058
|
-
/**
|
|
2059
|
-
* Latitude component of the coordinates.
|
|
2060
|
-
*/
|
|
2061
2065
|
latitude: z.ZodMiniNumber<number>;
|
|
2062
|
-
/**
|
|
2063
|
-
* Longitude component of the coordinates.
|
|
2064
|
-
*/
|
|
2065
2066
|
longitude: z.ZodMiniNumber<number>;
|
|
2066
2067
|
}, z.core.$strip>>;
|
|
2067
|
-
/**
|
|
2068
|
-
* City name associated with the location.
|
|
2069
|
-
*/
|
|
2070
2068
|
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2071
|
-
/**
|
|
2072
|
-
* Postal or ZIP code associated with the location.
|
|
2073
|
-
*/
|
|
2074
2069
|
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2075
|
-
/**
|
|
2076
|
-
* Region or state name associated with the location.
|
|
2077
|
-
*/
|
|
2078
2070
|
region: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2079
|
-
/**
|
|
2080
|
-
* Region or state code associated with the location.
|
|
2081
|
-
*/
|
|
2082
2071
|
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2083
|
-
/**
|
|
2084
|
-
* Country name associated with the location.
|
|
2085
|
-
*/
|
|
2086
2072
|
country: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2087
|
-
/**
|
|
2088
|
-
* Country code associated with the location.
|
|
2089
|
-
*
|
|
2090
|
-
* @remarks
|
|
2091
|
-
* Validated to exactly COUNTRY_CODE_LENGTH characters, typically
|
|
2092
|
-
* an ISO 3166-1 alpha-2 code.
|
|
2093
|
-
*/
|
|
2094
2073
|
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2095
|
-
/**
|
|
2096
|
-
* Continent name associated with the location.
|
|
2097
|
-
*/
|
|
2098
2074
|
continent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2099
|
-
/**
|
|
2100
|
-
* Time zone identifier associated with the location.
|
|
2101
|
-
*
|
|
2102
|
-
* @remarks
|
|
2103
|
-
* Typically an IANA time zone string (e.g., `"Europe/Berlin"`).
|
|
2104
|
-
*/
|
|
2105
2075
|
timezone: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2106
2076
|
}, z.core.$strip>;
|
|
2107
2077
|
|
|
@@ -2142,14 +2112,8 @@ export declare const INSIGHTS_BASE_URL = "https://ingest.insights.ninetailed.co/
|
|
|
2142
2112
|
*
|
|
2143
2113
|
* await insightsClient.sendBatchEvents([
|
|
2144
2114
|
* {
|
|
2145
|
-
* profile
|
|
2146
|
-
* events: [
|
|
2147
|
-
* {
|
|
2148
|
-
* type: 'track',
|
|
2149
|
-
* event: 'button_clicked',
|
|
2150
|
-
* properties: { id: 'primary-cta' },
|
|
2151
|
-
* },
|
|
2152
|
-
* ],
|
|
2115
|
+
* profile, // Complete profile snapshot returned by the Experience API
|
|
2116
|
+
* events: [viewEvent],
|
|
2153
2117
|
* }
|
|
2154
2118
|
* ])
|
|
2155
2119
|
* ```
|
|
@@ -2186,6 +2150,10 @@ export declare class InsightsApiClient extends ApiClientBase {
|
|
|
2186
2150
|
* sender or a direct request is successfully sent, `false` otherwise.
|
|
2187
2151
|
*
|
|
2188
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
|
+
*
|
|
2189
2157
|
* If a `beacon` sender is provided, it will be invoked first with the
|
|
2190
2158
|
* serialized request body. When the sender returns `true`, the events are
|
|
2191
2159
|
* considered successfully queued and no network request is made by this
|
|
@@ -2312,34 +2280,9 @@ export declare interface RetryFetchMethodOptions extends BaseFetchMethodOptions
|
|
|
2312
2280
|
* @public
|
|
2313
2281
|
*/
|
|
2314
2282
|
declare const SelectedOptimizationArray: z.ZodMiniArray<z.ZodMiniObject<{
|
|
2315
|
-
/**
|
|
2316
|
-
* Identifier of the personalization or experiment experience.
|
|
2317
|
-
*/
|
|
2318
2283
|
experienceId: z.ZodMiniString<string>;
|
|
2319
|
-
/**
|
|
2320
|
-
* Index of the selected variant within the experience configuration.
|
|
2321
|
-
*
|
|
2322
|
-
* @remarks
|
|
2323
|
-
* Typically corresponds to the index of the selected `OptimizationConfig` entry.
|
|
2324
|
-
*/
|
|
2325
2284
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2326
|
-
/**
|
|
2327
|
-
* Mapping of baseline entry IDs to their selected variant entry IDs.
|
|
2328
|
-
*
|
|
2329
|
-
* @remarks
|
|
2330
|
-
* The keys are component identifiers and the values are the
|
|
2331
|
-
* identifiers of the selected variant for that component.
|
|
2332
|
-
*/
|
|
2333
2285
|
variants: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
2334
|
-
/**
|
|
2335
|
-
* Indicates whether this optimization selection is sticky for the user.
|
|
2336
|
-
*
|
|
2337
|
-
* @defaultValue false
|
|
2338
|
-
*
|
|
2339
|
-
* @remarks
|
|
2340
|
-
* Reuse sticky selections on subsequent requests for the same user rather
|
|
2341
|
-
* than re-allocating a new variant.
|
|
2342
|
-
*/
|
|
2343
2286
|
sticky: z.ZodMiniOptional<z.ZodMiniPrefault<z.ZodMiniBoolean<boolean>>>;
|
|
2344
2287
|
}, z.core.$strip>>;
|
|
2345
2288
|
|
|
@@ -2410,16 +2353,7 @@ export declare interface UpsertProfileParams extends CreateProfileParams {
|
|
|
2410
2353
|
declare const VariableChange: z.ZodMiniObject<{
|
|
2411
2354
|
key: z.ZodMiniString<string>;
|
|
2412
2355
|
meta: z.ZodMiniObject<{
|
|
2413
|
-
/**
|
|
2414
|
-
* Identifier of the personalization or experiment experience.
|
|
2415
|
-
*/
|
|
2416
2356
|
experienceId: z.ZodMiniString<string>;
|
|
2417
|
-
/**
|
|
2418
|
-
* Index of the variant within the experience configuration.
|
|
2419
|
-
*
|
|
2420
|
-
* @remarks
|
|
2421
|
-
* Typically corresponds to the array index in the experience's distribution.
|
|
2422
|
-
*/
|
|
2423
2357
|
variantIndex: z.ZodMiniNumber<number>;
|
|
2424
2358
|
}, z.core.$strip>;
|
|
2425
2359
|
type: z.ZodMiniLiteral<"Variable">;
|