@interfere/types 8.1.1 → 8.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/data/frame.d.mts.map +1 -1
  2. package/dist/data/frame.mjs +4 -0
  3. package/dist/data/frame.mjs.map +1 -1
  4. package/dist/data/session.d.mts.map +1 -1
  5. package/dist/data/session.mjs +5 -1
  6. package/dist/data/session.mjs.map +1 -1
  7. package/dist/integrations/index.d.mts +16 -1
  8. package/dist/integrations/index.d.mts.map +1 -1
  9. package/dist/integrations/index.mjs +29 -7
  10. package/dist/integrations/index.mjs.map +1 -1
  11. package/dist/integrations/platforms/github.mjs.map +1 -1
  12. package/dist/integrations/platforms/vercel.mjs.map +1 -1
  13. package/dist/releases/definition.d.mts +5 -4
  14. package/dist/releases/definition.d.mts.map +1 -1
  15. package/dist/releases/definition.mjs +41 -13
  16. package/dist/releases/definition.mjs.map +1 -1
  17. package/dist/sdk/envelope.d.mts +1144 -35
  18. package/dist/sdk/envelope.d.mts.map +1 -1
  19. package/dist/sdk/envelope.mjs +75 -32
  20. package/dist/sdk/envelope.mjs.map +1 -1
  21. package/dist/sdk/errors.d.mts +86 -6
  22. package/dist/sdk/errors.d.mts.map +1 -1
  23. package/dist/sdk/errors.mjs +174 -12
  24. package/dist/sdk/errors.mjs.map +1 -1
  25. package/dist/sdk/identify.d.mts.map +1 -1
  26. package/dist/sdk/identify.mjs +18 -1
  27. package/dist/sdk/identify.mjs.map +1 -1
  28. package/dist/sdk/plugins/context/browser.d.mts.map +1 -1
  29. package/dist/sdk/plugins/context/browser.mjs +65 -25
  30. package/dist/sdk/plugins/context/browser.mjs.map +1 -1
  31. package/dist/sdk/plugins/context/edge.d.mts.map +1 -1
  32. package/dist/sdk/plugins/context/edge.mjs +5 -1
  33. package/dist/sdk/plugins/context/edge.mjs.map +1 -1
  34. package/dist/sdk/plugins/context/next.d.mts +25 -1
  35. package/dist/sdk/plugins/context/next.d.mts.map +1 -1
  36. package/dist/sdk/plugins/context/next.mjs +40 -16
  37. package/dist/sdk/plugins/context/next.mjs.map +1 -1
  38. package/dist/sdk/plugins/payload/errors.d.mts.map +1 -1
  39. package/dist/sdk/plugins/payload/errors.mjs +17 -2
  40. package/dist/sdk/plugins/payload/errors.mjs.map +1 -1
  41. package/dist/sdk/plugins/payload/page-events.d.mts.map +1 -1
  42. package/dist/sdk/plugins/payload/page-events.mjs +13 -1
  43. package/dist/sdk/plugins/payload/page-events.mjs.map +1 -1
  44. package/dist/sdk/plugins/payload/rage-click.d.mts.map +1 -1
  45. package/dist/sdk/plugins/payload/rage-click.mjs +4 -0
  46. package/dist/sdk/plugins/payload/rage-click.mjs.map +1 -1
  47. package/dist/sdk/plugins/payload/replay.d.mts.map +1 -1
  48. package/dist/sdk/plugins/payload/replay.mjs +6 -0
  49. package/dist/sdk/plugins/payload/replay.mjs.map +1 -1
  50. package/dist/sdk/runtime.d.mts.map +1 -1
  51. package/dist/sdk/runtime.mjs +10 -2
  52. package/dist/sdk/runtime.mjs.map +1 -1
  53. package/package.json +8 -14
  54. package/dist/util/omit-undefined.d.mts +0 -5
  55. package/dist/util/omit-undefined.d.mts.map +0 -1
  56. package/dist/util/omit-undefined.mjs +0 -8
  57. package/dist/util/omit-undefined.mjs.map +0 -1
@@ -88,7 +88,7 @@ declare const envelopeContextSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
88
88
  runtime: z.ZodLiteral<"edge">;
89
89
  }, z.core.$strip>], "runtime">;
90
90
  type EnvelopeContext = z.infer<typeof envelopeContextSchema>;
91
- declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
91
+ declare const errorEnvelopeSchema: z.ZodObject<{
92
92
  buildId: z.ZodString;
93
93
  clientTs: z.ZodInt;
94
94
  context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -174,6 +174,7 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
174
174
  edge: "edge";
175
175
  node: "node";
176
176
  }>>;
177
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
178
  sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
178
179
  sessionSource: z.ZodOptional<z.ZodEnum<{
179
180
  async_context: "async_context";
@@ -182,8 +183,8 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
182
183
  header: "header";
183
184
  }>>;
184
185
  uuid: z.ZodUUID;
185
- v: z.ZodUnion<readonly [z.ZodLiteral<0>]>;
186
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
186
+ v: z.ZodLiteral<0>;
187
+ type: z.ZodLiteral<"error">;
187
188
  payload: z.ZodObject<{
188
189
  exceptions: z.ZodArray<z.ZodObject<{
189
190
  type: z.ZodString;
@@ -203,45 +204,1153 @@ declare const envelopeSchema: z.ZodIntersection<z.ZodObject<{
203
204
  }, z.core.$strip>>;
204
205
  }, z.core.$strip>>;
205
206
  }, z.core.$strip>;
206
- type: z.ZodLiteral<"error">;
207
- }, z.core.$strip>, z.ZodObject<{
207
+ }, z.core.$strip>;
208
+ declare const pageviewEnvelopeSchema: z.ZodObject<{
209
+ buildId: z.ZodString;
210
+ clientTs: z.ZodInt;
211
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ runtime: z.ZodLiteral<"browser">;
213
+ browser: z.ZodNullable<z.ZodObject<{
214
+ language: z.ZodOptional<z.ZodString>;
215
+ timezone: z.ZodOptional<z.ZodString>;
216
+ display: z.ZodObject<{
217
+ screen: z.ZodObject<{
218
+ height: z.ZodNumber;
219
+ width: z.ZodNumber;
220
+ orientation: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>;
222
+ }, z.core.$strip>;
223
+ }, z.core.$strip>>;
224
+ device: z.ZodNullable<z.ZodObject<{
225
+ browser: z.ZodObject<{
226
+ major: z.ZodOptional<z.ZodString>;
227
+ name: z.ZodOptional<z.ZodString>;
228
+ type: z.ZodOptional<z.ZodString>;
229
+ version: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strip>;
231
+ cpu: z.ZodObject<{
232
+ architecture: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strip>;
234
+ device: z.ZodObject<{
235
+ model: z.ZodOptional<z.ZodString>;
236
+ type: z.ZodOptional<z.ZodString>;
237
+ vendor: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ engine: z.ZodObject<{
240
+ name: z.ZodOptional<z.ZodString>;
241
+ version: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strip>;
243
+ os: z.ZodObject<{
244
+ name: z.ZodOptional<z.ZodString>;
245
+ version: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strip>;
247
+ ua: z.ZodString;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ errorDigest: z.ZodOptional<z.ZodString>;
251
+ renderSource: z.ZodOptional<z.ZodEnum<{
252
+ "react-server-components": "react-server-components";
253
+ "react-server-components-payload": "react-server-components-payload";
254
+ "server-rendering": "server-rendering";
255
+ }>>;
256
+ renderType: z.ZodOptional<z.ZodEnum<{
257
+ dynamic: "dynamic";
258
+ "dynamic-resume": "dynamic-resume";
259
+ }>>;
260
+ requestMethod: z.ZodOptional<z.ZodString>;
261
+ requestPath: z.ZodOptional<z.ZodString>;
262
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
263
+ "on-demand": "on-demand";
264
+ stale: "stale";
265
+ }>>;
266
+ routePath: z.ZodOptional<z.ZodString>;
267
+ routeType: z.ZodOptional<z.ZodEnum<{
268
+ action: "action";
269
+ middleware: "middleware";
270
+ proxy: "proxy";
271
+ render: "render";
272
+ route: "route";
273
+ }>>;
274
+ routerKind: z.ZodOptional<z.ZodEnum<{
275
+ "App Router": "App Router";
276
+ "Pages Router": "Pages Router";
277
+ }>>;
278
+ runtime: z.ZodLiteral<"nextjs">;
279
+ }, z.core.$strip>, z.ZodObject<{
280
+ runtime: z.ZodLiteral<"edge">;
281
+ }, z.core.$strip>], "runtime">>;
282
+ environment: z.ZodNullable<z.ZodEnum<{
283
+ development: "development";
284
+ preview: "preview";
285
+ production: "production";
286
+ }>>;
287
+ producerVersion: z.ZodOptional<z.ZodString>;
288
+ releaseId: z.ZodNullable<z.ZodString>;
289
+ runtime: z.ZodNullable<z.ZodEnum<{
290
+ browser: "browser";
291
+ edge: "edge";
292
+ node: "node";
293
+ }>>;
294
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
295
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
296
+ sessionSource: z.ZodOptional<z.ZodEnum<{
297
+ async_context: "async_context";
298
+ client: "client";
299
+ fallback: "fallback";
300
+ header: "header";
301
+ }>>;
302
+ uuid: z.ZodUUID;
303
+ v: z.ZodLiteral<0>;
304
+ type: z.ZodLiteral<"pageview">;
208
305
  payload: z.ZodObject<{
209
306
  url: z.ZodString;
210
307
  title: z.ZodOptional<z.ZodString>;
211
308
  }, z.core.$strip>;
212
- type: z.ZodLiteral<"pageview">;
213
- }, z.core.$strip>, z.ZodObject<{
309
+ }, z.core.$strip>;
310
+ declare const pageleaveEnvelopeSchema: z.ZodObject<{
311
+ buildId: z.ZodString;
312
+ clientTs: z.ZodInt;
313
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
314
+ runtime: z.ZodLiteral<"browser">;
315
+ browser: z.ZodNullable<z.ZodObject<{
316
+ language: z.ZodOptional<z.ZodString>;
317
+ timezone: z.ZodOptional<z.ZodString>;
318
+ display: z.ZodObject<{
319
+ screen: z.ZodObject<{
320
+ height: z.ZodNumber;
321
+ width: z.ZodNumber;
322
+ orientation: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>;
325
+ }, z.core.$strip>>;
326
+ device: z.ZodNullable<z.ZodObject<{
327
+ browser: z.ZodObject<{
328
+ major: z.ZodOptional<z.ZodString>;
329
+ name: z.ZodOptional<z.ZodString>;
330
+ type: z.ZodOptional<z.ZodString>;
331
+ version: z.ZodOptional<z.ZodString>;
332
+ }, z.core.$strip>;
333
+ cpu: z.ZodObject<{
334
+ architecture: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strip>;
336
+ device: z.ZodObject<{
337
+ model: z.ZodOptional<z.ZodString>;
338
+ type: z.ZodOptional<z.ZodString>;
339
+ vendor: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>;
341
+ engine: z.ZodObject<{
342
+ name: z.ZodOptional<z.ZodString>;
343
+ version: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strip>;
345
+ os: z.ZodObject<{
346
+ name: z.ZodOptional<z.ZodString>;
347
+ version: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$strip>;
349
+ ua: z.ZodString;
350
+ }, z.core.$strip>>;
351
+ }, z.core.$strip>, z.ZodObject<{
352
+ errorDigest: z.ZodOptional<z.ZodString>;
353
+ renderSource: z.ZodOptional<z.ZodEnum<{
354
+ "react-server-components": "react-server-components";
355
+ "react-server-components-payload": "react-server-components-payload";
356
+ "server-rendering": "server-rendering";
357
+ }>>;
358
+ renderType: z.ZodOptional<z.ZodEnum<{
359
+ dynamic: "dynamic";
360
+ "dynamic-resume": "dynamic-resume";
361
+ }>>;
362
+ requestMethod: z.ZodOptional<z.ZodString>;
363
+ requestPath: z.ZodOptional<z.ZodString>;
364
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
365
+ "on-demand": "on-demand";
366
+ stale: "stale";
367
+ }>>;
368
+ routePath: z.ZodOptional<z.ZodString>;
369
+ routeType: z.ZodOptional<z.ZodEnum<{
370
+ action: "action";
371
+ middleware: "middleware";
372
+ proxy: "proxy";
373
+ render: "render";
374
+ route: "route";
375
+ }>>;
376
+ routerKind: z.ZodOptional<z.ZodEnum<{
377
+ "App Router": "App Router";
378
+ "Pages Router": "Pages Router";
379
+ }>>;
380
+ runtime: z.ZodLiteral<"nextjs">;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ runtime: z.ZodLiteral<"edge">;
383
+ }, z.core.$strip>], "runtime">>;
384
+ environment: z.ZodNullable<z.ZodEnum<{
385
+ development: "development";
386
+ preview: "preview";
387
+ production: "production";
388
+ }>>;
389
+ producerVersion: z.ZodOptional<z.ZodString>;
390
+ releaseId: z.ZodNullable<z.ZodString>;
391
+ runtime: z.ZodNullable<z.ZodEnum<{
392
+ browser: "browser";
393
+ edge: "edge";
394
+ node: "node";
395
+ }>>;
396
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
397
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
398
+ sessionSource: z.ZodOptional<z.ZodEnum<{
399
+ async_context: "async_context";
400
+ client: "client";
401
+ fallback: "fallback";
402
+ header: "header";
403
+ }>>;
404
+ uuid: z.ZodUUID;
405
+ v: z.ZodLiteral<0>;
406
+ type: z.ZodLiteral<"pageleave">;
214
407
  payload: z.ZodObject<{
215
408
  url: z.ZodString;
216
409
  durationMs: z.ZodOptional<z.ZodNumber>;
217
410
  }, z.core.$strip>;
218
- type: z.ZodLiteral<"pageleave">;
219
- }, z.core.$strip>, z.ZodObject<{
220
- payload: z.ZodObject<{
221
- event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
222
- }, z.core.$strip>;
223
- type: z.ZodLiteral<"ui_event">;
224
- }, z.core.$strip>, z.ZodObject<{
225
- payload: z.ZodObject<{
226
- ts: z.ZodNumber;
227
- count: z.ZodNumber;
228
- events: z.ZodArray<z.ZodString>;
229
- first_event_ts: z.ZodOptional<z.ZodNumber>;
230
- last_event_ts: z.ZodOptional<z.ZodNumber>;
231
- }, z.core.$strip>;
232
- type: z.ZodLiteral<"replay_chunk">;
233
- }, z.core.$strip>, z.ZodObject<{
234
- payload: z.ZodObject<{
235
- count: z.ZodNumber;
236
- timeWindow: z.ZodNumber;
237
- selector: z.ZodString;
238
- text: z.ZodString;
239
- x: z.ZodNumber;
240
- y: z.ZodNumber;
241
- timestamp: z.ZodNumber;
242
- }, z.core.$strip>;
243
- type: z.ZodLiteral<"rage_click">;
244
- }, z.core.$strip>], "type">>;
411
+ }, z.core.$strip>;
412
+ declare const uiEventEnvelopeSchema: z.ZodObject<{
413
+ buildId: z.ZodString;
414
+ clientTs: z.ZodInt;
415
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
416
+ runtime: z.ZodLiteral<"browser">;
417
+ browser: z.ZodNullable<z.ZodObject<{
418
+ language: z.ZodOptional<z.ZodString>;
419
+ timezone: z.ZodOptional<z.ZodString>;
420
+ display: z.ZodObject<{
421
+ screen: z.ZodObject<{
422
+ height: z.ZodNumber;
423
+ width: z.ZodNumber;
424
+ orientation: z.ZodOptional<z.ZodString>;
425
+ }, z.core.$strip>;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>>;
428
+ device: z.ZodNullable<z.ZodObject<{
429
+ browser: z.ZodObject<{
430
+ major: z.ZodOptional<z.ZodString>;
431
+ name: z.ZodOptional<z.ZodString>;
432
+ type: z.ZodOptional<z.ZodString>;
433
+ version: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strip>;
435
+ cpu: z.ZodObject<{
436
+ architecture: z.ZodOptional<z.ZodString>;
437
+ }, z.core.$strip>;
438
+ device: z.ZodObject<{
439
+ model: z.ZodOptional<z.ZodString>;
440
+ type: z.ZodOptional<z.ZodString>;
441
+ vendor: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>;
443
+ engine: z.ZodObject<{
444
+ name: z.ZodOptional<z.ZodString>;
445
+ version: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strip>;
447
+ os: z.ZodObject<{
448
+ name: z.ZodOptional<z.ZodString>;
449
+ version: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>;
451
+ ua: z.ZodString;
452
+ }, z.core.$strip>>;
453
+ }, z.core.$strip>, z.ZodObject<{
454
+ errorDigest: z.ZodOptional<z.ZodString>;
455
+ renderSource: z.ZodOptional<z.ZodEnum<{
456
+ "react-server-components": "react-server-components";
457
+ "react-server-components-payload": "react-server-components-payload";
458
+ "server-rendering": "server-rendering";
459
+ }>>;
460
+ renderType: z.ZodOptional<z.ZodEnum<{
461
+ dynamic: "dynamic";
462
+ "dynamic-resume": "dynamic-resume";
463
+ }>>;
464
+ requestMethod: z.ZodOptional<z.ZodString>;
465
+ requestPath: z.ZodOptional<z.ZodString>;
466
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
467
+ "on-demand": "on-demand";
468
+ stale: "stale";
469
+ }>>;
470
+ routePath: z.ZodOptional<z.ZodString>;
471
+ routeType: z.ZodOptional<z.ZodEnum<{
472
+ action: "action";
473
+ middleware: "middleware";
474
+ proxy: "proxy";
475
+ render: "render";
476
+ route: "route";
477
+ }>>;
478
+ routerKind: z.ZodOptional<z.ZodEnum<{
479
+ "App Router": "App Router";
480
+ "Pages Router": "Pages Router";
481
+ }>>;
482
+ runtime: z.ZodLiteral<"nextjs">;
483
+ }, z.core.$strip>, z.ZodObject<{
484
+ runtime: z.ZodLiteral<"edge">;
485
+ }, z.core.$strip>], "runtime">>;
486
+ environment: z.ZodNullable<z.ZodEnum<{
487
+ development: "development";
488
+ preview: "preview";
489
+ production: "production";
490
+ }>>;
491
+ producerVersion: z.ZodOptional<z.ZodString>;
492
+ releaseId: z.ZodNullable<z.ZodString>;
493
+ runtime: z.ZodNullable<z.ZodEnum<{
494
+ browser: "browser";
495
+ edge: "edge";
496
+ node: "node";
497
+ }>>;
498
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
499
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
500
+ sessionSource: z.ZodOptional<z.ZodEnum<{
501
+ async_context: "async_context";
502
+ client: "client";
503
+ fallback: "fallback";
504
+ header: "header";
505
+ }>>;
506
+ uuid: z.ZodUUID;
507
+ v: z.ZodLiteral<0>;
508
+ type: z.ZodLiteral<"ui_event">;
509
+ payload: z.ZodObject<{
510
+ event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
511
+ }, z.core.$strip>;
512
+ }, z.core.$strip>;
513
+ declare const replayChunkEnvelopeSchema: z.ZodObject<{
514
+ buildId: z.ZodString;
515
+ clientTs: z.ZodInt;
516
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ runtime: z.ZodLiteral<"browser">;
518
+ browser: z.ZodNullable<z.ZodObject<{
519
+ language: z.ZodOptional<z.ZodString>;
520
+ timezone: z.ZodOptional<z.ZodString>;
521
+ display: z.ZodObject<{
522
+ screen: z.ZodObject<{
523
+ height: z.ZodNumber;
524
+ width: z.ZodNumber;
525
+ orientation: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strip>;
527
+ }, z.core.$strip>;
528
+ }, z.core.$strip>>;
529
+ device: z.ZodNullable<z.ZodObject<{
530
+ browser: z.ZodObject<{
531
+ major: z.ZodOptional<z.ZodString>;
532
+ name: z.ZodOptional<z.ZodString>;
533
+ type: z.ZodOptional<z.ZodString>;
534
+ version: z.ZodOptional<z.ZodString>;
535
+ }, z.core.$strip>;
536
+ cpu: z.ZodObject<{
537
+ architecture: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ device: z.ZodObject<{
540
+ model: z.ZodOptional<z.ZodString>;
541
+ type: z.ZodOptional<z.ZodString>;
542
+ vendor: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>;
544
+ engine: z.ZodObject<{
545
+ name: z.ZodOptional<z.ZodString>;
546
+ version: z.ZodOptional<z.ZodString>;
547
+ }, z.core.$strip>;
548
+ os: z.ZodObject<{
549
+ name: z.ZodOptional<z.ZodString>;
550
+ version: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strip>;
552
+ ua: z.ZodString;
553
+ }, z.core.$strip>>;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ errorDigest: z.ZodOptional<z.ZodString>;
556
+ renderSource: z.ZodOptional<z.ZodEnum<{
557
+ "react-server-components": "react-server-components";
558
+ "react-server-components-payload": "react-server-components-payload";
559
+ "server-rendering": "server-rendering";
560
+ }>>;
561
+ renderType: z.ZodOptional<z.ZodEnum<{
562
+ dynamic: "dynamic";
563
+ "dynamic-resume": "dynamic-resume";
564
+ }>>;
565
+ requestMethod: z.ZodOptional<z.ZodString>;
566
+ requestPath: z.ZodOptional<z.ZodString>;
567
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
568
+ "on-demand": "on-demand";
569
+ stale: "stale";
570
+ }>>;
571
+ routePath: z.ZodOptional<z.ZodString>;
572
+ routeType: z.ZodOptional<z.ZodEnum<{
573
+ action: "action";
574
+ middleware: "middleware";
575
+ proxy: "proxy";
576
+ render: "render";
577
+ route: "route";
578
+ }>>;
579
+ routerKind: z.ZodOptional<z.ZodEnum<{
580
+ "App Router": "App Router";
581
+ "Pages Router": "Pages Router";
582
+ }>>;
583
+ runtime: z.ZodLiteral<"nextjs">;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ runtime: z.ZodLiteral<"edge">;
586
+ }, z.core.$strip>], "runtime">>;
587
+ environment: z.ZodNullable<z.ZodEnum<{
588
+ development: "development";
589
+ preview: "preview";
590
+ production: "production";
591
+ }>>;
592
+ producerVersion: z.ZodOptional<z.ZodString>;
593
+ releaseId: z.ZodNullable<z.ZodString>;
594
+ runtime: z.ZodNullable<z.ZodEnum<{
595
+ browser: "browser";
596
+ edge: "edge";
597
+ node: "node";
598
+ }>>;
599
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
600
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
601
+ sessionSource: z.ZodOptional<z.ZodEnum<{
602
+ async_context: "async_context";
603
+ client: "client";
604
+ fallback: "fallback";
605
+ header: "header";
606
+ }>>;
607
+ uuid: z.ZodUUID;
608
+ v: z.ZodLiteral<0>;
609
+ type: z.ZodLiteral<"replay_chunk">;
610
+ payload: z.ZodObject<{
611
+ ts: z.ZodNumber;
612
+ count: z.ZodNumber;
613
+ events: z.ZodArray<z.ZodString>;
614
+ first_event_ts: z.ZodOptional<z.ZodNumber>;
615
+ last_event_ts: z.ZodOptional<z.ZodNumber>;
616
+ }, z.core.$strip>;
617
+ }, z.core.$strip>;
618
+ declare const rageClickEnvelopeSchema: z.ZodObject<{
619
+ buildId: z.ZodString;
620
+ clientTs: z.ZodInt;
621
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
622
+ runtime: z.ZodLiteral<"browser">;
623
+ browser: z.ZodNullable<z.ZodObject<{
624
+ language: z.ZodOptional<z.ZodString>;
625
+ timezone: z.ZodOptional<z.ZodString>;
626
+ display: z.ZodObject<{
627
+ screen: z.ZodObject<{
628
+ height: z.ZodNumber;
629
+ width: z.ZodNumber;
630
+ orientation: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strip>;
632
+ }, z.core.$strip>;
633
+ }, z.core.$strip>>;
634
+ device: z.ZodNullable<z.ZodObject<{
635
+ browser: z.ZodObject<{
636
+ major: z.ZodOptional<z.ZodString>;
637
+ name: z.ZodOptional<z.ZodString>;
638
+ type: z.ZodOptional<z.ZodString>;
639
+ version: z.ZodOptional<z.ZodString>;
640
+ }, z.core.$strip>;
641
+ cpu: z.ZodObject<{
642
+ architecture: z.ZodOptional<z.ZodString>;
643
+ }, z.core.$strip>;
644
+ device: z.ZodObject<{
645
+ model: z.ZodOptional<z.ZodString>;
646
+ type: z.ZodOptional<z.ZodString>;
647
+ vendor: z.ZodOptional<z.ZodString>;
648
+ }, z.core.$strip>;
649
+ engine: z.ZodObject<{
650
+ name: z.ZodOptional<z.ZodString>;
651
+ version: z.ZodOptional<z.ZodString>;
652
+ }, z.core.$strip>;
653
+ os: z.ZodObject<{
654
+ name: z.ZodOptional<z.ZodString>;
655
+ version: z.ZodOptional<z.ZodString>;
656
+ }, z.core.$strip>;
657
+ ua: z.ZodString;
658
+ }, z.core.$strip>>;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ errorDigest: z.ZodOptional<z.ZodString>;
661
+ renderSource: z.ZodOptional<z.ZodEnum<{
662
+ "react-server-components": "react-server-components";
663
+ "react-server-components-payload": "react-server-components-payload";
664
+ "server-rendering": "server-rendering";
665
+ }>>;
666
+ renderType: z.ZodOptional<z.ZodEnum<{
667
+ dynamic: "dynamic";
668
+ "dynamic-resume": "dynamic-resume";
669
+ }>>;
670
+ requestMethod: z.ZodOptional<z.ZodString>;
671
+ requestPath: z.ZodOptional<z.ZodString>;
672
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
673
+ "on-demand": "on-demand";
674
+ stale: "stale";
675
+ }>>;
676
+ routePath: z.ZodOptional<z.ZodString>;
677
+ routeType: z.ZodOptional<z.ZodEnum<{
678
+ action: "action";
679
+ middleware: "middleware";
680
+ proxy: "proxy";
681
+ render: "render";
682
+ route: "route";
683
+ }>>;
684
+ routerKind: z.ZodOptional<z.ZodEnum<{
685
+ "App Router": "App Router";
686
+ "Pages Router": "Pages Router";
687
+ }>>;
688
+ runtime: z.ZodLiteral<"nextjs">;
689
+ }, z.core.$strip>, z.ZodObject<{
690
+ runtime: z.ZodLiteral<"edge">;
691
+ }, z.core.$strip>], "runtime">>;
692
+ environment: z.ZodNullable<z.ZodEnum<{
693
+ development: "development";
694
+ preview: "preview";
695
+ production: "production";
696
+ }>>;
697
+ producerVersion: z.ZodOptional<z.ZodString>;
698
+ releaseId: z.ZodNullable<z.ZodString>;
699
+ runtime: z.ZodNullable<z.ZodEnum<{
700
+ browser: "browser";
701
+ edge: "edge";
702
+ node: "node";
703
+ }>>;
704
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
705
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
706
+ sessionSource: z.ZodOptional<z.ZodEnum<{
707
+ async_context: "async_context";
708
+ client: "client";
709
+ fallback: "fallback";
710
+ header: "header";
711
+ }>>;
712
+ uuid: z.ZodUUID;
713
+ v: z.ZodLiteral<0>;
714
+ type: z.ZodLiteral<"rage_click">;
715
+ payload: z.ZodObject<{
716
+ count: z.ZodNumber;
717
+ timeWindow: z.ZodNumber;
718
+ selector: z.ZodString;
719
+ text: z.ZodString;
720
+ x: z.ZodNumber;
721
+ y: z.ZodNumber;
722
+ timestamp: z.ZodNumber;
723
+ }, z.core.$strip>;
724
+ }, z.core.$strip>;
725
+ declare const envelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
726
+ buildId: z.ZodString;
727
+ clientTs: z.ZodInt;
728
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
729
+ runtime: z.ZodLiteral<"browser">;
730
+ browser: z.ZodNullable<z.ZodObject<{
731
+ language: z.ZodOptional<z.ZodString>;
732
+ timezone: z.ZodOptional<z.ZodString>;
733
+ display: z.ZodObject<{
734
+ screen: z.ZodObject<{
735
+ height: z.ZodNumber;
736
+ width: z.ZodNumber;
737
+ orientation: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>;
739
+ }, z.core.$strip>;
740
+ }, z.core.$strip>>;
741
+ device: z.ZodNullable<z.ZodObject<{
742
+ browser: z.ZodObject<{
743
+ major: z.ZodOptional<z.ZodString>;
744
+ name: z.ZodOptional<z.ZodString>;
745
+ type: z.ZodOptional<z.ZodString>;
746
+ version: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$strip>;
748
+ cpu: z.ZodObject<{
749
+ architecture: z.ZodOptional<z.ZodString>;
750
+ }, z.core.$strip>;
751
+ device: z.ZodObject<{
752
+ model: z.ZodOptional<z.ZodString>;
753
+ type: z.ZodOptional<z.ZodString>;
754
+ vendor: z.ZodOptional<z.ZodString>;
755
+ }, z.core.$strip>;
756
+ engine: z.ZodObject<{
757
+ name: z.ZodOptional<z.ZodString>;
758
+ version: z.ZodOptional<z.ZodString>;
759
+ }, z.core.$strip>;
760
+ os: z.ZodObject<{
761
+ name: z.ZodOptional<z.ZodString>;
762
+ version: z.ZodOptional<z.ZodString>;
763
+ }, z.core.$strip>;
764
+ ua: z.ZodString;
765
+ }, z.core.$strip>>;
766
+ }, z.core.$strip>, z.ZodObject<{
767
+ errorDigest: z.ZodOptional<z.ZodString>;
768
+ renderSource: z.ZodOptional<z.ZodEnum<{
769
+ "react-server-components": "react-server-components";
770
+ "react-server-components-payload": "react-server-components-payload";
771
+ "server-rendering": "server-rendering";
772
+ }>>;
773
+ renderType: z.ZodOptional<z.ZodEnum<{
774
+ dynamic: "dynamic";
775
+ "dynamic-resume": "dynamic-resume";
776
+ }>>;
777
+ requestMethod: z.ZodOptional<z.ZodString>;
778
+ requestPath: z.ZodOptional<z.ZodString>;
779
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
780
+ "on-demand": "on-demand";
781
+ stale: "stale";
782
+ }>>;
783
+ routePath: z.ZodOptional<z.ZodString>;
784
+ routeType: z.ZodOptional<z.ZodEnum<{
785
+ action: "action";
786
+ middleware: "middleware";
787
+ proxy: "proxy";
788
+ render: "render";
789
+ route: "route";
790
+ }>>;
791
+ routerKind: z.ZodOptional<z.ZodEnum<{
792
+ "App Router": "App Router";
793
+ "Pages Router": "Pages Router";
794
+ }>>;
795
+ runtime: z.ZodLiteral<"nextjs">;
796
+ }, z.core.$strip>, z.ZodObject<{
797
+ runtime: z.ZodLiteral<"edge">;
798
+ }, z.core.$strip>], "runtime">>;
799
+ environment: z.ZodNullable<z.ZodEnum<{
800
+ development: "development";
801
+ preview: "preview";
802
+ production: "production";
803
+ }>>;
804
+ producerVersion: z.ZodOptional<z.ZodString>;
805
+ releaseId: z.ZodNullable<z.ZodString>;
806
+ runtime: z.ZodNullable<z.ZodEnum<{
807
+ browser: "browser";
808
+ edge: "edge";
809
+ node: "node";
810
+ }>>;
811
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
812
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
813
+ sessionSource: z.ZodOptional<z.ZodEnum<{
814
+ async_context: "async_context";
815
+ client: "client";
816
+ fallback: "fallback";
817
+ header: "header";
818
+ }>>;
819
+ uuid: z.ZodUUID;
820
+ v: z.ZodLiteral<0>;
821
+ type: z.ZodLiteral<"error">;
822
+ payload: z.ZodObject<{
823
+ exceptions: z.ZodArray<z.ZodObject<{
824
+ type: z.ZodString;
825
+ value: z.ZodString;
826
+ mechanism: z.ZodOptional<z.ZodObject<{
827
+ type: z.ZodString;
828
+ handled: z.ZodBoolean;
829
+ synthetic: z.ZodOptional<z.ZodBoolean>;
830
+ }, z.core.$strip>>;
831
+ frames: z.ZodArray<z.ZodObject<{
832
+ fileName: z.ZodOptional<z.ZodString>;
833
+ functionName: z.ZodOptional<z.ZodString>;
834
+ lineNumber: z.ZodOptional<z.ZodNumber>;
835
+ columnNumber: z.ZodOptional<z.ZodNumber>;
836
+ source: z.ZodOptional<z.ZodString>;
837
+ debugId: z.ZodOptional<z.ZodString>;
838
+ }, z.core.$strip>>;
839
+ }, z.core.$strip>>;
840
+ }, z.core.$strip>;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ buildId: z.ZodString;
843
+ clientTs: z.ZodInt;
844
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
845
+ runtime: z.ZodLiteral<"browser">;
846
+ browser: z.ZodNullable<z.ZodObject<{
847
+ language: z.ZodOptional<z.ZodString>;
848
+ timezone: z.ZodOptional<z.ZodString>;
849
+ display: z.ZodObject<{
850
+ screen: z.ZodObject<{
851
+ height: z.ZodNumber;
852
+ width: z.ZodNumber;
853
+ orientation: z.ZodOptional<z.ZodString>;
854
+ }, z.core.$strip>;
855
+ }, z.core.$strip>;
856
+ }, z.core.$strip>>;
857
+ device: z.ZodNullable<z.ZodObject<{
858
+ browser: z.ZodObject<{
859
+ major: z.ZodOptional<z.ZodString>;
860
+ name: z.ZodOptional<z.ZodString>;
861
+ type: z.ZodOptional<z.ZodString>;
862
+ version: z.ZodOptional<z.ZodString>;
863
+ }, z.core.$strip>;
864
+ cpu: z.ZodObject<{
865
+ architecture: z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strip>;
867
+ device: z.ZodObject<{
868
+ model: z.ZodOptional<z.ZodString>;
869
+ type: z.ZodOptional<z.ZodString>;
870
+ vendor: z.ZodOptional<z.ZodString>;
871
+ }, z.core.$strip>;
872
+ engine: z.ZodObject<{
873
+ name: z.ZodOptional<z.ZodString>;
874
+ version: z.ZodOptional<z.ZodString>;
875
+ }, z.core.$strip>;
876
+ os: z.ZodObject<{
877
+ name: z.ZodOptional<z.ZodString>;
878
+ version: z.ZodOptional<z.ZodString>;
879
+ }, z.core.$strip>;
880
+ ua: z.ZodString;
881
+ }, z.core.$strip>>;
882
+ }, z.core.$strip>, z.ZodObject<{
883
+ errorDigest: z.ZodOptional<z.ZodString>;
884
+ renderSource: z.ZodOptional<z.ZodEnum<{
885
+ "react-server-components": "react-server-components";
886
+ "react-server-components-payload": "react-server-components-payload";
887
+ "server-rendering": "server-rendering";
888
+ }>>;
889
+ renderType: z.ZodOptional<z.ZodEnum<{
890
+ dynamic: "dynamic";
891
+ "dynamic-resume": "dynamic-resume";
892
+ }>>;
893
+ requestMethod: z.ZodOptional<z.ZodString>;
894
+ requestPath: z.ZodOptional<z.ZodString>;
895
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
896
+ "on-demand": "on-demand";
897
+ stale: "stale";
898
+ }>>;
899
+ routePath: z.ZodOptional<z.ZodString>;
900
+ routeType: z.ZodOptional<z.ZodEnum<{
901
+ action: "action";
902
+ middleware: "middleware";
903
+ proxy: "proxy";
904
+ render: "render";
905
+ route: "route";
906
+ }>>;
907
+ routerKind: z.ZodOptional<z.ZodEnum<{
908
+ "App Router": "App Router";
909
+ "Pages Router": "Pages Router";
910
+ }>>;
911
+ runtime: z.ZodLiteral<"nextjs">;
912
+ }, z.core.$strip>, z.ZodObject<{
913
+ runtime: z.ZodLiteral<"edge">;
914
+ }, z.core.$strip>], "runtime">>;
915
+ environment: z.ZodNullable<z.ZodEnum<{
916
+ development: "development";
917
+ preview: "preview";
918
+ production: "production";
919
+ }>>;
920
+ producerVersion: z.ZodOptional<z.ZodString>;
921
+ releaseId: z.ZodNullable<z.ZodString>;
922
+ runtime: z.ZodNullable<z.ZodEnum<{
923
+ browser: "browser";
924
+ edge: "edge";
925
+ node: "node";
926
+ }>>;
927
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
928
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
929
+ sessionSource: z.ZodOptional<z.ZodEnum<{
930
+ async_context: "async_context";
931
+ client: "client";
932
+ fallback: "fallback";
933
+ header: "header";
934
+ }>>;
935
+ uuid: z.ZodUUID;
936
+ v: z.ZodLiteral<0>;
937
+ type: z.ZodLiteral<"pageview">;
938
+ payload: z.ZodObject<{
939
+ url: z.ZodString;
940
+ title: z.ZodOptional<z.ZodString>;
941
+ }, z.core.$strip>;
942
+ }, z.core.$strip>, z.ZodObject<{
943
+ buildId: z.ZodString;
944
+ clientTs: z.ZodInt;
945
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
946
+ runtime: z.ZodLiteral<"browser">;
947
+ browser: z.ZodNullable<z.ZodObject<{
948
+ language: z.ZodOptional<z.ZodString>;
949
+ timezone: z.ZodOptional<z.ZodString>;
950
+ display: z.ZodObject<{
951
+ screen: z.ZodObject<{
952
+ height: z.ZodNumber;
953
+ width: z.ZodNumber;
954
+ orientation: z.ZodOptional<z.ZodString>;
955
+ }, z.core.$strip>;
956
+ }, z.core.$strip>;
957
+ }, z.core.$strip>>;
958
+ device: z.ZodNullable<z.ZodObject<{
959
+ browser: z.ZodObject<{
960
+ major: z.ZodOptional<z.ZodString>;
961
+ name: z.ZodOptional<z.ZodString>;
962
+ type: z.ZodOptional<z.ZodString>;
963
+ version: z.ZodOptional<z.ZodString>;
964
+ }, z.core.$strip>;
965
+ cpu: z.ZodObject<{
966
+ architecture: z.ZodOptional<z.ZodString>;
967
+ }, z.core.$strip>;
968
+ device: z.ZodObject<{
969
+ model: z.ZodOptional<z.ZodString>;
970
+ type: z.ZodOptional<z.ZodString>;
971
+ vendor: z.ZodOptional<z.ZodString>;
972
+ }, z.core.$strip>;
973
+ engine: z.ZodObject<{
974
+ name: z.ZodOptional<z.ZodString>;
975
+ version: z.ZodOptional<z.ZodString>;
976
+ }, z.core.$strip>;
977
+ os: z.ZodObject<{
978
+ name: z.ZodOptional<z.ZodString>;
979
+ version: z.ZodOptional<z.ZodString>;
980
+ }, z.core.$strip>;
981
+ ua: z.ZodString;
982
+ }, z.core.$strip>>;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ errorDigest: z.ZodOptional<z.ZodString>;
985
+ renderSource: z.ZodOptional<z.ZodEnum<{
986
+ "react-server-components": "react-server-components";
987
+ "react-server-components-payload": "react-server-components-payload";
988
+ "server-rendering": "server-rendering";
989
+ }>>;
990
+ renderType: z.ZodOptional<z.ZodEnum<{
991
+ dynamic: "dynamic";
992
+ "dynamic-resume": "dynamic-resume";
993
+ }>>;
994
+ requestMethod: z.ZodOptional<z.ZodString>;
995
+ requestPath: z.ZodOptional<z.ZodString>;
996
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
997
+ "on-demand": "on-demand";
998
+ stale: "stale";
999
+ }>>;
1000
+ routePath: z.ZodOptional<z.ZodString>;
1001
+ routeType: z.ZodOptional<z.ZodEnum<{
1002
+ action: "action";
1003
+ middleware: "middleware";
1004
+ proxy: "proxy";
1005
+ render: "render";
1006
+ route: "route";
1007
+ }>>;
1008
+ routerKind: z.ZodOptional<z.ZodEnum<{
1009
+ "App Router": "App Router";
1010
+ "Pages Router": "Pages Router";
1011
+ }>>;
1012
+ runtime: z.ZodLiteral<"nextjs">;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ runtime: z.ZodLiteral<"edge">;
1015
+ }, z.core.$strip>], "runtime">>;
1016
+ environment: z.ZodNullable<z.ZodEnum<{
1017
+ development: "development";
1018
+ preview: "preview";
1019
+ production: "production";
1020
+ }>>;
1021
+ producerVersion: z.ZodOptional<z.ZodString>;
1022
+ releaseId: z.ZodNullable<z.ZodString>;
1023
+ runtime: z.ZodNullable<z.ZodEnum<{
1024
+ browser: "browser";
1025
+ edge: "edge";
1026
+ node: "node";
1027
+ }>>;
1028
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1029
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
1030
+ sessionSource: z.ZodOptional<z.ZodEnum<{
1031
+ async_context: "async_context";
1032
+ client: "client";
1033
+ fallback: "fallback";
1034
+ header: "header";
1035
+ }>>;
1036
+ uuid: z.ZodUUID;
1037
+ v: z.ZodLiteral<0>;
1038
+ type: z.ZodLiteral<"pageleave">;
1039
+ payload: z.ZodObject<{
1040
+ url: z.ZodString;
1041
+ durationMs: z.ZodOptional<z.ZodNumber>;
1042
+ }, z.core.$strip>;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ buildId: z.ZodString;
1045
+ clientTs: z.ZodInt;
1046
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1047
+ runtime: z.ZodLiteral<"browser">;
1048
+ browser: z.ZodNullable<z.ZodObject<{
1049
+ language: z.ZodOptional<z.ZodString>;
1050
+ timezone: z.ZodOptional<z.ZodString>;
1051
+ display: z.ZodObject<{
1052
+ screen: z.ZodObject<{
1053
+ height: z.ZodNumber;
1054
+ width: z.ZodNumber;
1055
+ orientation: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strip>;
1057
+ }, z.core.$strip>;
1058
+ }, z.core.$strip>>;
1059
+ device: z.ZodNullable<z.ZodObject<{
1060
+ browser: z.ZodObject<{
1061
+ major: z.ZodOptional<z.ZodString>;
1062
+ name: z.ZodOptional<z.ZodString>;
1063
+ type: z.ZodOptional<z.ZodString>;
1064
+ version: z.ZodOptional<z.ZodString>;
1065
+ }, z.core.$strip>;
1066
+ cpu: z.ZodObject<{
1067
+ architecture: z.ZodOptional<z.ZodString>;
1068
+ }, z.core.$strip>;
1069
+ device: z.ZodObject<{
1070
+ model: z.ZodOptional<z.ZodString>;
1071
+ type: z.ZodOptional<z.ZodString>;
1072
+ vendor: z.ZodOptional<z.ZodString>;
1073
+ }, z.core.$strip>;
1074
+ engine: z.ZodObject<{
1075
+ name: z.ZodOptional<z.ZodString>;
1076
+ version: z.ZodOptional<z.ZodString>;
1077
+ }, z.core.$strip>;
1078
+ os: z.ZodObject<{
1079
+ name: z.ZodOptional<z.ZodString>;
1080
+ version: z.ZodOptional<z.ZodString>;
1081
+ }, z.core.$strip>;
1082
+ ua: z.ZodString;
1083
+ }, z.core.$strip>>;
1084
+ }, z.core.$strip>, z.ZodObject<{
1085
+ errorDigest: z.ZodOptional<z.ZodString>;
1086
+ renderSource: z.ZodOptional<z.ZodEnum<{
1087
+ "react-server-components": "react-server-components";
1088
+ "react-server-components-payload": "react-server-components-payload";
1089
+ "server-rendering": "server-rendering";
1090
+ }>>;
1091
+ renderType: z.ZodOptional<z.ZodEnum<{
1092
+ dynamic: "dynamic";
1093
+ "dynamic-resume": "dynamic-resume";
1094
+ }>>;
1095
+ requestMethod: z.ZodOptional<z.ZodString>;
1096
+ requestPath: z.ZodOptional<z.ZodString>;
1097
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
1098
+ "on-demand": "on-demand";
1099
+ stale: "stale";
1100
+ }>>;
1101
+ routePath: z.ZodOptional<z.ZodString>;
1102
+ routeType: z.ZodOptional<z.ZodEnum<{
1103
+ action: "action";
1104
+ middleware: "middleware";
1105
+ proxy: "proxy";
1106
+ render: "render";
1107
+ route: "route";
1108
+ }>>;
1109
+ routerKind: z.ZodOptional<z.ZodEnum<{
1110
+ "App Router": "App Router";
1111
+ "Pages Router": "Pages Router";
1112
+ }>>;
1113
+ runtime: z.ZodLiteral<"nextjs">;
1114
+ }, z.core.$strip>, z.ZodObject<{
1115
+ runtime: z.ZodLiteral<"edge">;
1116
+ }, z.core.$strip>], "runtime">>;
1117
+ environment: z.ZodNullable<z.ZodEnum<{
1118
+ development: "development";
1119
+ preview: "preview";
1120
+ production: "production";
1121
+ }>>;
1122
+ producerVersion: z.ZodOptional<z.ZodString>;
1123
+ releaseId: z.ZodNullable<z.ZodString>;
1124
+ runtime: z.ZodNullable<z.ZodEnum<{
1125
+ browser: "browser";
1126
+ edge: "edge";
1127
+ node: "node";
1128
+ }>>;
1129
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1130
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
1131
+ sessionSource: z.ZodOptional<z.ZodEnum<{
1132
+ async_context: "async_context";
1133
+ client: "client";
1134
+ fallback: "fallback";
1135
+ header: "header";
1136
+ }>>;
1137
+ uuid: z.ZodUUID;
1138
+ v: z.ZodLiteral<0>;
1139
+ type: z.ZodLiteral<"ui_event">;
1140
+ payload: z.ZodObject<{
1141
+ event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1142
+ }, z.core.$strip>;
1143
+ }, z.core.$strip>, z.ZodObject<{
1144
+ buildId: z.ZodString;
1145
+ clientTs: z.ZodInt;
1146
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1147
+ runtime: z.ZodLiteral<"browser">;
1148
+ browser: z.ZodNullable<z.ZodObject<{
1149
+ language: z.ZodOptional<z.ZodString>;
1150
+ timezone: z.ZodOptional<z.ZodString>;
1151
+ display: z.ZodObject<{
1152
+ screen: z.ZodObject<{
1153
+ height: z.ZodNumber;
1154
+ width: z.ZodNumber;
1155
+ orientation: z.ZodOptional<z.ZodString>;
1156
+ }, z.core.$strip>;
1157
+ }, z.core.$strip>;
1158
+ }, z.core.$strip>>;
1159
+ device: z.ZodNullable<z.ZodObject<{
1160
+ browser: z.ZodObject<{
1161
+ major: z.ZodOptional<z.ZodString>;
1162
+ name: z.ZodOptional<z.ZodString>;
1163
+ type: z.ZodOptional<z.ZodString>;
1164
+ version: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strip>;
1166
+ cpu: z.ZodObject<{
1167
+ architecture: z.ZodOptional<z.ZodString>;
1168
+ }, z.core.$strip>;
1169
+ device: z.ZodObject<{
1170
+ model: z.ZodOptional<z.ZodString>;
1171
+ type: z.ZodOptional<z.ZodString>;
1172
+ vendor: z.ZodOptional<z.ZodString>;
1173
+ }, z.core.$strip>;
1174
+ engine: z.ZodObject<{
1175
+ name: z.ZodOptional<z.ZodString>;
1176
+ version: z.ZodOptional<z.ZodString>;
1177
+ }, z.core.$strip>;
1178
+ os: z.ZodObject<{
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ version: z.ZodOptional<z.ZodString>;
1181
+ }, z.core.$strip>;
1182
+ ua: z.ZodString;
1183
+ }, z.core.$strip>>;
1184
+ }, z.core.$strip>, z.ZodObject<{
1185
+ errorDigest: z.ZodOptional<z.ZodString>;
1186
+ renderSource: z.ZodOptional<z.ZodEnum<{
1187
+ "react-server-components": "react-server-components";
1188
+ "react-server-components-payload": "react-server-components-payload";
1189
+ "server-rendering": "server-rendering";
1190
+ }>>;
1191
+ renderType: z.ZodOptional<z.ZodEnum<{
1192
+ dynamic: "dynamic";
1193
+ "dynamic-resume": "dynamic-resume";
1194
+ }>>;
1195
+ requestMethod: z.ZodOptional<z.ZodString>;
1196
+ requestPath: z.ZodOptional<z.ZodString>;
1197
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
1198
+ "on-demand": "on-demand";
1199
+ stale: "stale";
1200
+ }>>;
1201
+ routePath: z.ZodOptional<z.ZodString>;
1202
+ routeType: z.ZodOptional<z.ZodEnum<{
1203
+ action: "action";
1204
+ middleware: "middleware";
1205
+ proxy: "proxy";
1206
+ render: "render";
1207
+ route: "route";
1208
+ }>>;
1209
+ routerKind: z.ZodOptional<z.ZodEnum<{
1210
+ "App Router": "App Router";
1211
+ "Pages Router": "Pages Router";
1212
+ }>>;
1213
+ runtime: z.ZodLiteral<"nextjs">;
1214
+ }, z.core.$strip>, z.ZodObject<{
1215
+ runtime: z.ZodLiteral<"edge">;
1216
+ }, z.core.$strip>], "runtime">>;
1217
+ environment: z.ZodNullable<z.ZodEnum<{
1218
+ development: "development";
1219
+ preview: "preview";
1220
+ production: "production";
1221
+ }>>;
1222
+ producerVersion: z.ZodOptional<z.ZodString>;
1223
+ releaseId: z.ZodNullable<z.ZodString>;
1224
+ runtime: z.ZodNullable<z.ZodEnum<{
1225
+ browser: "browser";
1226
+ edge: "edge";
1227
+ node: "node";
1228
+ }>>;
1229
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1230
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
1231
+ sessionSource: z.ZodOptional<z.ZodEnum<{
1232
+ async_context: "async_context";
1233
+ client: "client";
1234
+ fallback: "fallback";
1235
+ header: "header";
1236
+ }>>;
1237
+ uuid: z.ZodUUID;
1238
+ v: z.ZodLiteral<0>;
1239
+ type: z.ZodLiteral<"replay_chunk">;
1240
+ payload: z.ZodObject<{
1241
+ ts: z.ZodNumber;
1242
+ count: z.ZodNumber;
1243
+ events: z.ZodArray<z.ZodString>;
1244
+ first_event_ts: z.ZodOptional<z.ZodNumber>;
1245
+ last_event_ts: z.ZodOptional<z.ZodNumber>;
1246
+ }, z.core.$strip>;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ buildId: z.ZodString;
1249
+ clientTs: z.ZodInt;
1250
+ context: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1251
+ runtime: z.ZodLiteral<"browser">;
1252
+ browser: z.ZodNullable<z.ZodObject<{
1253
+ language: z.ZodOptional<z.ZodString>;
1254
+ timezone: z.ZodOptional<z.ZodString>;
1255
+ display: z.ZodObject<{
1256
+ screen: z.ZodObject<{
1257
+ height: z.ZodNumber;
1258
+ width: z.ZodNumber;
1259
+ orientation: z.ZodOptional<z.ZodString>;
1260
+ }, z.core.$strip>;
1261
+ }, z.core.$strip>;
1262
+ }, z.core.$strip>>;
1263
+ device: z.ZodNullable<z.ZodObject<{
1264
+ browser: z.ZodObject<{
1265
+ major: z.ZodOptional<z.ZodString>;
1266
+ name: z.ZodOptional<z.ZodString>;
1267
+ type: z.ZodOptional<z.ZodString>;
1268
+ version: z.ZodOptional<z.ZodString>;
1269
+ }, z.core.$strip>;
1270
+ cpu: z.ZodObject<{
1271
+ architecture: z.ZodOptional<z.ZodString>;
1272
+ }, z.core.$strip>;
1273
+ device: z.ZodObject<{
1274
+ model: z.ZodOptional<z.ZodString>;
1275
+ type: z.ZodOptional<z.ZodString>;
1276
+ vendor: z.ZodOptional<z.ZodString>;
1277
+ }, z.core.$strip>;
1278
+ engine: z.ZodObject<{
1279
+ name: z.ZodOptional<z.ZodString>;
1280
+ version: z.ZodOptional<z.ZodString>;
1281
+ }, z.core.$strip>;
1282
+ os: z.ZodObject<{
1283
+ name: z.ZodOptional<z.ZodString>;
1284
+ version: z.ZodOptional<z.ZodString>;
1285
+ }, z.core.$strip>;
1286
+ ua: z.ZodString;
1287
+ }, z.core.$strip>>;
1288
+ }, z.core.$strip>, z.ZodObject<{
1289
+ errorDigest: z.ZodOptional<z.ZodString>;
1290
+ renderSource: z.ZodOptional<z.ZodEnum<{
1291
+ "react-server-components": "react-server-components";
1292
+ "react-server-components-payload": "react-server-components-payload";
1293
+ "server-rendering": "server-rendering";
1294
+ }>>;
1295
+ renderType: z.ZodOptional<z.ZodEnum<{
1296
+ dynamic: "dynamic";
1297
+ "dynamic-resume": "dynamic-resume";
1298
+ }>>;
1299
+ requestMethod: z.ZodOptional<z.ZodString>;
1300
+ requestPath: z.ZodOptional<z.ZodString>;
1301
+ revalidateReason: z.ZodOptional<z.ZodEnum<{
1302
+ "on-demand": "on-demand";
1303
+ stale: "stale";
1304
+ }>>;
1305
+ routePath: z.ZodOptional<z.ZodString>;
1306
+ routeType: z.ZodOptional<z.ZodEnum<{
1307
+ action: "action";
1308
+ middleware: "middleware";
1309
+ proxy: "proxy";
1310
+ render: "render";
1311
+ route: "route";
1312
+ }>>;
1313
+ routerKind: z.ZodOptional<z.ZodEnum<{
1314
+ "App Router": "App Router";
1315
+ "Pages Router": "Pages Router";
1316
+ }>>;
1317
+ runtime: z.ZodLiteral<"nextjs">;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ runtime: z.ZodLiteral<"edge">;
1320
+ }, z.core.$strip>], "runtime">>;
1321
+ environment: z.ZodNullable<z.ZodEnum<{
1322
+ development: "development";
1323
+ preview: "preview";
1324
+ production: "production";
1325
+ }>>;
1326
+ producerVersion: z.ZodOptional<z.ZodString>;
1327
+ releaseId: z.ZodNullable<z.ZodString>;
1328
+ runtime: z.ZodNullable<z.ZodEnum<{
1329
+ browser: "browser";
1330
+ edge: "edge";
1331
+ node: "node";
1332
+ }>>;
1333
+ sdkStack: z.ZodOptional<z.ZodArray<z.ZodString>>;
1334
+ sessionId: z.ZodNullable<z.ZodUnion<readonly [z.ZodUUID, z.ZodTemplateLiteral<`server_${string}`>]>>;
1335
+ sessionSource: z.ZodOptional<z.ZodEnum<{
1336
+ async_context: "async_context";
1337
+ client: "client";
1338
+ fallback: "fallback";
1339
+ header: "header";
1340
+ }>>;
1341
+ uuid: z.ZodUUID;
1342
+ v: z.ZodLiteral<0>;
1343
+ type: z.ZodLiteral<"rage_click">;
1344
+ payload: z.ZodObject<{
1345
+ count: z.ZodNumber;
1346
+ timeWindow: z.ZodNumber;
1347
+ selector: z.ZodString;
1348
+ text: z.ZodString;
1349
+ x: z.ZodNumber;
1350
+ y: z.ZodNumber;
1351
+ timestamp: z.ZodNumber;
1352
+ }, z.core.$strip>;
1353
+ }, z.core.$strip>], "type">;
245
1354
  type EnvelopeBase = z.infer<typeof envelopeSchema>;
246
1355
  type EventType = EnvelopeBase["type"];
247
1356
  type Envelope<T extends EventType | undefined = undefined> = T extends EventType ? Extract<EnvelopeBase, {
@@ -249,4 +1358,4 @@ type Envelope<T extends EventType | undefined = undefined> = T extends EventType
249
1358
  }> : EnvelopeBase;
250
1359
  type EnvelopePayload<T extends EventType> = Envelope<T>["payload"];
251
1360
  //#endregion
252
- export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, sessionSourceSchema };
1361
+ export { Envelope, EnvelopeContext, EnvelopePayload, EventType, SessionSource, envelopeContextSchema, envelopeSchema, errorEnvelopeSchema, pageleaveEnvelopeSchema, pageviewEnvelopeSchema, rageClickEnvelopeSchema, replayChunkEnvelopeSchema, sessionSourceSchema, uiEventEnvelopeSchema };