@debugbundle/shared-types 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,1957 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const EventTypeValues: readonly ["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"];
3
- export declare const EventTypeSchema: z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>;
4
- export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
5
- schema_version: z.ZodString;
6
- event_id: z.ZodString;
7
- project_token: z.ZodOptional<z.ZodString>;
8
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- sdk_name: z.ZodString;
10
- sdk_version: z.ZodString;
11
- service: z.ZodObject<{
12
- name: z.ZodString;
13
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- environment: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- environment: string;
18
- name: string;
19
- runtime?: string | null | undefined;
20
- framework?: string | null | undefined;
21
- }, {
22
- environment: string;
23
- name: string;
24
- runtime?: string | null | undefined;
25
- framework?: string | null | undefined;
26
- }>;
27
- occurred_at: z.ZodString;
28
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
29
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- }, "strict", z.ZodTypeAny, {
34
- trace_id?: string | null | undefined;
35
- session_id?: string | null | undefined;
36
- user_id_hash?: string | null | undefined;
37
- request_id?: string | null | undefined;
38
- }, {
39
- trace_id?: string | null | undefined;
40
- session_id?: string | null | undefined;
41
- user_id_hash?: string | null | undefined;
42
- request_id?: string | null | undefined;
43
- }>, {
44
- request_id: string | null;
45
- trace_id: string | null;
46
- session_id: string | null;
47
- user_id_hash: string | null;
48
- }, {
49
- trace_id?: string | null | undefined;
50
- session_id?: string | null | undefined;
51
- user_id_hash?: string | null | undefined;
52
- request_id?: string | null | undefined;
53
- }>>;
54
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
- } & {
56
- event_type: z.ZodLiteral<"backend_exception">;
57
- payload: z.ZodObject<{
58
- name: z.ZodString;
59
- message: z.ZodString;
60
- stack: z.ZodString;
61
- handled: z.ZodBoolean;
62
- request: z.ZodObject<{
63
- method: z.ZodString;
64
- path: z.ZodString;
65
- query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
66
- headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
67
- body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
68
- }, "strip", z.ZodTypeAny, {
69
- path: string;
70
- query: Record<string, unknown>;
71
- method: string;
72
- headers: Record<string, unknown>;
73
- body?: unknown;
74
- }, {
75
- path: string;
76
- query: Record<string, unknown>;
77
- method: string;
78
- headers: Record<string, unknown>;
79
- body?: unknown;
80
- }>;
81
- response: z.ZodObject<{
82
- status_code: z.ZodNumber;
83
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
84
- body: z.ZodOptional<z.ZodUnknown>;
85
- }, "strip", z.ZodTypeAny, {
86
- status_code: number;
87
- body?: unknown;
88
- headers?: Record<string, unknown> | undefined;
89
- }, {
90
- status_code: number;
91
- body?: unknown;
92
- headers?: Record<string, unknown> | undefined;
93
- }>;
94
- runtime: z.ZodObject<{
95
- version: z.ZodString;
96
- platform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
- arch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
- pid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
99
- cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
- uptime_sec: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
- hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- thread_id: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
103
- framework_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
- rss: z.ZodNullable<z.ZodNumber>;
106
- heap_total: z.ZodNullable<z.ZodNumber>;
107
- heap_used: z.ZodNullable<z.ZodNumber>;
108
- external: z.ZodNullable<z.ZodNumber>;
109
- peak: z.ZodNullable<z.ZodNumber>;
110
- }, "strict", z.ZodTypeAny, {
111
- rss: number | null;
112
- heap_total: number | null;
113
- heap_used: number | null;
114
- external: number | null;
115
- peak: number | null;
116
- }, {
117
- rss: number | null;
118
- heap_total: number | null;
119
- heap_used: number | null;
120
- external: number | null;
121
- peak: number | null;
122
- }>>>;
123
- framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
124
- }, "strict", z.ZodTypeAny, {
125
- version: string;
126
- platform?: string | null | undefined;
127
- arch?: string | null | undefined;
128
- pid?: number | null | undefined;
129
- cwd?: string | null | undefined;
130
- uptime_sec?: number | null | undefined;
131
- hostname?: string | null | undefined;
132
- thread_id?: string | number | null | undefined;
133
- framework_version?: string | null | undefined;
134
- memory?: {
135
- rss: number | null;
136
- heap_total: number | null;
137
- heap_used: number | null;
138
- external: number | null;
139
- peak: number | null;
140
- } | null | undefined;
141
- framework_extras?: Record<string, unknown> | null | undefined;
142
- }, {
143
- version: string;
144
- platform?: string | null | undefined;
145
- arch?: string | null | undefined;
146
- pid?: number | null | undefined;
147
- cwd?: string | null | undefined;
148
- uptime_sec?: number | null | undefined;
149
- hostname?: string | null | undefined;
150
- thread_id?: string | number | null | undefined;
151
- framework_version?: string | null | undefined;
152
- memory?: {
153
- rss: number | null;
154
- heap_total: number | null;
155
- heap_used: number | null;
156
- external: number | null;
157
- peak: number | null;
158
- } | null | undefined;
159
- framework_extras?: Record<string, unknown> | null | undefined;
160
- }>;
161
- probe_data: z.ZodOptional<z.ZodObject<{
162
- version: z.ZodLiteral<1>;
163
- items: z.ZodArray<z.ZodObject<{
164
- label: z.ZodString;
165
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
166
- timestamp: z.ZodString;
167
- activation_id: z.ZodNullable<z.ZodString>;
168
- }, "strict", z.ZodTypeAny, {
169
- data: Record<string, unknown>;
170
- label: string;
171
- timestamp: string;
172
- activation_id: string | null;
173
- }, {
174
- data: Record<string, unknown>;
175
- label: string;
176
- timestamp: string;
177
- activation_id: string | null;
178
- }>, "many">;
179
- }, "strict", z.ZodTypeAny, {
180
- version: 1;
181
- items: {
182
- data: Record<string, unknown>;
183
- label: string;
184
- timestamp: string;
185
- activation_id: string | null;
186
- }[];
187
- }, {
188
- version: 1;
189
- items: {
190
- data: Record<string, unknown>;
191
- label: string;
192
- timestamp: string;
193
- activation_id: string | null;
194
- }[];
195
- }>>;
196
- }, "strict", z.ZodTypeAny, {
197
- message: string;
198
- name: string;
199
- runtime: {
200
- version: string;
201
- platform?: string | null | undefined;
202
- arch?: string | null | undefined;
203
- pid?: number | null | undefined;
204
- cwd?: string | null | undefined;
205
- uptime_sec?: number | null | undefined;
206
- hostname?: string | null | undefined;
207
- thread_id?: string | number | null | undefined;
208
- framework_version?: string | null | undefined;
209
- memory?: {
210
- rss: number | null;
211
- heap_total: number | null;
212
- heap_used: number | null;
213
- external: number | null;
214
- peak: number | null;
215
- } | null | undefined;
216
- framework_extras?: Record<string, unknown> | null | undefined;
217
- };
218
- request: {
219
- path: string;
220
- query: Record<string, unknown>;
221
- method: string;
222
- headers: Record<string, unknown>;
223
- body?: unknown;
224
- };
225
- response: {
226
- status_code: number;
227
- body?: unknown;
228
- headers?: Record<string, unknown> | undefined;
229
- };
230
- stack: string;
231
- handled: boolean;
232
- probe_data?: {
233
- version: 1;
234
- items: {
235
- data: Record<string, unknown>;
236
- label: string;
237
- timestamp: string;
238
- activation_id: string | null;
239
- }[];
240
- } | undefined;
241
- }, {
242
- message: string;
243
- name: string;
244
- runtime: {
245
- version: string;
246
- platform?: string | null | undefined;
247
- arch?: string | null | undefined;
248
- pid?: number | null | undefined;
249
- cwd?: string | null | undefined;
250
- uptime_sec?: number | null | undefined;
251
- hostname?: string | null | undefined;
252
- thread_id?: string | number | null | undefined;
253
- framework_version?: string | null | undefined;
254
- memory?: {
255
- rss: number | null;
256
- heap_total: number | null;
257
- heap_used: number | null;
258
- external: number | null;
259
- peak: number | null;
260
- } | null | undefined;
261
- framework_extras?: Record<string, unknown> | null | undefined;
262
- };
263
- request: {
264
- path: string;
265
- query: Record<string, unknown>;
266
- method: string;
267
- headers: Record<string, unknown>;
268
- body?: unknown;
269
- };
270
- response: {
271
- status_code: number;
272
- body?: unknown;
273
- headers?: Record<string, unknown> | undefined;
274
- };
275
- stack: string;
276
- handled: boolean;
277
- probe_data?: {
278
- version: 1;
279
- items: {
280
- data: Record<string, unknown>;
281
- label: string;
282
- timestamp: string;
283
- activation_id: string | null;
284
- }[];
285
- } | undefined;
286
- }>;
287
- }, "strict", z.ZodTypeAny, {
288
- event_id: string;
289
- occurred_at: string;
290
- service: {
291
- environment: string;
292
- name: string;
293
- runtime?: string | null | undefined;
294
- framework?: string | null | undefined;
295
- };
296
- schema_version: string;
297
- event_type: "backend_exception";
298
- sdk_name: string;
299
- sdk_version: string;
300
- payload: {
301
- message: string;
302
- name: string;
303
- runtime: {
304
- version: string;
305
- platform?: string | null | undefined;
306
- arch?: string | null | undefined;
307
- pid?: number | null | undefined;
308
- cwd?: string | null | undefined;
309
- uptime_sec?: number | null | undefined;
310
- hostname?: string | null | undefined;
311
- thread_id?: string | number | null | undefined;
312
- framework_version?: string | null | undefined;
313
- memory?: {
314
- rss: number | null;
315
- heap_total: number | null;
316
- heap_used: number | null;
317
- external: number | null;
318
- peak: number | null;
319
- } | null | undefined;
320
- framework_extras?: Record<string, unknown> | null | undefined;
321
- };
322
- request: {
323
- path: string;
324
- query: Record<string, unknown>;
325
- method: string;
326
- headers: Record<string, unknown>;
327
- body?: unknown;
328
- };
329
- response: {
330
- status_code: number;
331
- body?: unknown;
332
- headers?: Record<string, unknown> | undefined;
333
- };
334
- stack: string;
335
- handled: boolean;
336
- probe_data?: {
337
- version: 1;
338
- items: {
339
- data: Record<string, unknown>;
340
- label: string;
341
- timestamp: string;
342
- activation_id: string | null;
343
- }[];
344
- } | undefined;
345
- };
346
- project_id?: string | null | undefined;
347
- project_token?: string | undefined;
348
- correlation?: {
349
- request_id: string | null;
350
- trace_id: string | null;
351
- session_id: string | null;
352
- user_id_hash: string | null;
353
- } | undefined;
354
- context?: Record<string, unknown> | undefined;
355
- }, {
356
- event_id: string;
357
- occurred_at: string;
358
- service: {
359
- environment: string;
360
- name: string;
361
- runtime?: string | null | undefined;
362
- framework?: string | null | undefined;
363
- };
364
- schema_version: string;
365
- event_type: "backend_exception";
366
- sdk_name: string;
367
- sdk_version: string;
368
- payload: {
369
- message: string;
370
- name: string;
371
- runtime: {
372
- version: string;
373
- platform?: string | null | undefined;
374
- arch?: string | null | undefined;
375
- pid?: number | null | undefined;
376
- cwd?: string | null | undefined;
377
- uptime_sec?: number | null | undefined;
378
- hostname?: string | null | undefined;
379
- thread_id?: string | number | null | undefined;
380
- framework_version?: string | null | undefined;
381
- memory?: {
382
- rss: number | null;
383
- heap_total: number | null;
384
- heap_used: number | null;
385
- external: number | null;
386
- peak: number | null;
387
- } | null | undefined;
388
- framework_extras?: Record<string, unknown> | null | undefined;
389
- };
390
- request: {
391
- path: string;
392
- query: Record<string, unknown>;
393
- method: string;
394
- headers: Record<string, unknown>;
395
- body?: unknown;
396
- };
397
- response: {
398
- status_code: number;
399
- body?: unknown;
400
- headers?: Record<string, unknown> | undefined;
401
- };
402
- stack: string;
403
- handled: boolean;
404
- probe_data?: {
405
- version: 1;
406
- items: {
407
- data: Record<string, unknown>;
408
- label: string;
409
- timestamp: string;
410
- activation_id: string | null;
411
- }[];
412
- } | undefined;
413
- };
414
- project_id?: string | null | undefined;
415
- project_token?: string | undefined;
416
- correlation?: {
417
- trace_id?: string | null | undefined;
418
- session_id?: string | null | undefined;
419
- user_id_hash?: string | null | undefined;
420
- request_id?: string | null | undefined;
421
- } | undefined;
422
- context?: Record<string, unknown> | undefined;
423
- }>, z.ZodObject<{
424
- schema_version: z.ZodString;
425
- event_id: z.ZodString;
426
- project_token: z.ZodOptional<z.ZodString>;
427
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
- sdk_name: z.ZodString;
429
- sdk_version: z.ZodString;
430
- service: z.ZodObject<{
431
- name: z.ZodString;
432
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
- environment: z.ZodString;
435
- }, "strip", z.ZodTypeAny, {
436
- environment: string;
437
- name: string;
438
- runtime?: string | null | undefined;
439
- framework?: string | null | undefined;
440
- }, {
441
- environment: string;
442
- name: string;
443
- runtime?: string | null | undefined;
444
- framework?: string | null | undefined;
445
- }>;
446
- occurred_at: z.ZodString;
447
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
448
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
- }, "strict", z.ZodTypeAny, {
453
- trace_id?: string | null | undefined;
454
- session_id?: string | null | undefined;
455
- user_id_hash?: string | null | undefined;
456
- request_id?: string | null | undefined;
457
- }, {
458
- trace_id?: string | null | undefined;
459
- session_id?: string | null | undefined;
460
- user_id_hash?: string | null | undefined;
461
- request_id?: string | null | undefined;
462
- }>, {
463
- request_id: string | null;
464
- trace_id: string | null;
465
- session_id: string | null;
466
- user_id_hash: string | null;
467
- }, {
468
- trace_id?: string | null | undefined;
469
- session_id?: string | null | undefined;
470
- user_id_hash?: string | null | undefined;
471
- request_id?: string | null | undefined;
472
- }>>;
473
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
474
- } & {
475
- event_type: z.ZodLiteral<"request_event">;
476
- payload: z.ZodObject<{
477
- method: z.ZodString;
478
- path: z.ZodString;
479
- query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
480
- headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
481
- body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
482
- response_status: z.ZodNumber;
483
- duration_ms: z.ZodNumber;
484
- route_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
- response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
486
- response_body: z.ZodOptional<z.ZodUnknown>;
487
- }, "strict", z.ZodTypeAny, {
488
- path: string;
489
- duration_ms: number;
490
- query: Record<string, unknown>;
491
- response_status: number;
492
- method: string;
493
- headers: Record<string, unknown>;
494
- body?: unknown;
495
- route_template?: string | null | undefined;
496
- response_headers?: Record<string, unknown> | undefined;
497
- response_body?: unknown;
498
- }, {
499
- path: string;
500
- duration_ms: number;
501
- query: Record<string, unknown>;
502
- response_status: number;
503
- method: string;
504
- headers: Record<string, unknown>;
505
- body?: unknown;
506
- route_template?: string | null | undefined;
507
- response_headers?: Record<string, unknown> | undefined;
508
- response_body?: unknown;
509
- }>;
510
- }, "strict", z.ZodTypeAny, {
511
- event_id: string;
512
- occurred_at: string;
513
- service: {
514
- environment: string;
515
- name: string;
516
- runtime?: string | null | undefined;
517
- framework?: string | null | undefined;
518
- };
519
- schema_version: string;
520
- event_type: "request_event";
521
- sdk_name: string;
522
- sdk_version: string;
523
- payload: {
524
- path: string;
525
- duration_ms: number;
526
- query: Record<string, unknown>;
527
- response_status: number;
528
- method: string;
529
- headers: Record<string, unknown>;
530
- body?: unknown;
531
- route_template?: string | null | undefined;
532
- response_headers?: Record<string, unknown> | undefined;
533
- response_body?: unknown;
534
- };
535
- project_id?: string | null | undefined;
536
- project_token?: string | undefined;
537
- correlation?: {
538
- request_id: string | null;
539
- trace_id: string | null;
540
- session_id: string | null;
541
- user_id_hash: string | null;
542
- } | undefined;
543
- context?: Record<string, unknown> | undefined;
544
- }, {
545
- event_id: string;
546
- occurred_at: string;
547
- service: {
548
- environment: string;
549
- name: string;
550
- runtime?: string | null | undefined;
551
- framework?: string | null | undefined;
552
- };
553
- schema_version: string;
554
- event_type: "request_event";
555
- sdk_name: string;
556
- sdk_version: string;
557
- payload: {
558
- path: string;
559
- duration_ms: number;
560
- query: Record<string, unknown>;
561
- response_status: number;
562
- method: string;
563
- headers: Record<string, unknown>;
564
- body?: unknown;
565
- route_template?: string | null | undefined;
566
- response_headers?: Record<string, unknown> | undefined;
567
- response_body?: unknown;
568
- };
569
- project_id?: string | null | undefined;
570
- project_token?: string | undefined;
571
- correlation?: {
572
- trace_id?: string | null | undefined;
573
- session_id?: string | null | undefined;
574
- user_id_hash?: string | null | undefined;
575
- request_id?: string | null | undefined;
576
- } | undefined;
577
- context?: Record<string, unknown> | undefined;
578
- }>, z.ZodObject<{
579
- schema_version: z.ZodString;
580
- event_id: z.ZodString;
581
- project_token: z.ZodOptional<z.ZodString>;
582
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
583
- sdk_name: z.ZodString;
584
- sdk_version: z.ZodString;
585
- service: z.ZodObject<{
586
- name: z.ZodString;
587
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
- environment: z.ZodString;
590
- }, "strip", z.ZodTypeAny, {
591
- environment: string;
592
- name: string;
593
- runtime?: string | null | undefined;
594
- framework?: string | null | undefined;
595
- }, {
596
- environment: string;
597
- name: string;
598
- runtime?: string | null | undefined;
599
- framework?: string | null | undefined;
600
- }>;
601
- occurred_at: z.ZodString;
602
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
603
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
- }, "strict", z.ZodTypeAny, {
608
- trace_id?: string | null | undefined;
609
- session_id?: string | null | undefined;
610
- user_id_hash?: string | null | undefined;
611
- request_id?: string | null | undefined;
612
- }, {
613
- trace_id?: string | null | undefined;
614
- session_id?: string | null | undefined;
615
- user_id_hash?: string | null | undefined;
616
- request_id?: string | null | undefined;
617
- }>, {
618
- request_id: string | null;
619
- trace_id: string | null;
620
- session_id: string | null;
621
- user_id_hash: string | null;
622
- }, {
623
- trace_id?: string | null | undefined;
624
- session_id?: string | null | undefined;
625
- user_id_hash?: string | null | undefined;
626
- request_id?: string | null | undefined;
627
- }>>;
628
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
629
- } & {
630
- event_type: z.ZodLiteral<"log_event">;
631
- payload: z.ZodObject<{
632
- level: z.ZodString;
633
- message: z.ZodString;
634
- attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
635
- }, "strict", z.ZodTypeAny, {
636
- message: string;
637
- level: string;
638
- attributes: Record<string, unknown>;
639
- }, {
640
- message: string;
641
- level: string;
642
- attributes: Record<string, unknown>;
643
- }>;
644
- }, "strict", z.ZodTypeAny, {
645
- event_id: string;
646
- occurred_at: string;
647
- service: {
648
- environment: string;
649
- name: string;
650
- runtime?: string | null | undefined;
651
- framework?: string | null | undefined;
652
- };
653
- schema_version: string;
654
- event_type: "log_event";
655
- sdk_name: string;
656
- sdk_version: string;
657
- payload: {
658
- message: string;
659
- level: string;
660
- attributes: Record<string, unknown>;
661
- };
662
- project_id?: string | null | undefined;
663
- project_token?: string | undefined;
664
- correlation?: {
665
- request_id: string | null;
666
- trace_id: string | null;
667
- session_id: string | null;
668
- user_id_hash: string | null;
669
- } | undefined;
670
- context?: Record<string, unknown> | undefined;
671
- }, {
672
- event_id: string;
673
- occurred_at: string;
674
- service: {
675
- environment: string;
676
- name: string;
677
- runtime?: string | null | undefined;
678
- framework?: string | null | undefined;
679
- };
680
- schema_version: string;
681
- event_type: "log_event";
682
- sdk_name: string;
683
- sdk_version: string;
684
- payload: {
685
- message: string;
686
- level: string;
687
- attributes: Record<string, unknown>;
688
- };
689
- project_id?: string | null | undefined;
690
- project_token?: string | undefined;
691
- correlation?: {
692
- trace_id?: string | null | undefined;
693
- session_id?: string | null | undefined;
694
- user_id_hash?: string | null | undefined;
695
- request_id?: string | null | undefined;
696
- } | undefined;
697
- context?: Record<string, unknown> | undefined;
698
- }>, z.ZodObject<{
699
- schema_version: z.ZodString;
700
- event_id: z.ZodString;
701
- project_token: z.ZodOptional<z.ZodString>;
702
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
- sdk_name: z.ZodString;
704
- sdk_version: z.ZodString;
705
- service: z.ZodObject<{
706
- name: z.ZodString;
707
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
708
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
- environment: z.ZodString;
710
- }, "strip", z.ZodTypeAny, {
711
- environment: string;
712
- name: string;
713
- runtime?: string | null | undefined;
714
- framework?: string | null | undefined;
715
- }, {
716
- environment: string;
717
- name: string;
718
- runtime?: string | null | undefined;
719
- framework?: string | null | undefined;
720
- }>;
721
- occurred_at: z.ZodString;
722
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
723
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
724
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
725
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
727
- }, "strict", z.ZodTypeAny, {
728
- trace_id?: string | null | undefined;
729
- session_id?: string | null | undefined;
730
- user_id_hash?: string | null | undefined;
731
- request_id?: string | null | undefined;
732
- }, {
733
- trace_id?: string | null | undefined;
734
- session_id?: string | null | undefined;
735
- user_id_hash?: string | null | undefined;
736
- request_id?: string | null | undefined;
737
- }>, {
738
- request_id: string | null;
739
- trace_id: string | null;
740
- session_id: string | null;
741
- user_id_hash: string | null;
742
- }, {
743
- trace_id?: string | null | undefined;
744
- session_id?: string | null | undefined;
745
- user_id_hash?: string | null | undefined;
746
- request_id?: string | null | undefined;
747
- }>>;
748
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
749
- } & {
750
- event_type: z.ZodLiteral<"frontend_breadcrumb">;
751
- payload: z.ZodObject<{
752
- breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
753
- route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
755
- }, "strict", z.ZodTypeAny, {
756
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
757
- data: Record<string, unknown>;
758
- route?: string | null | undefined;
759
- }, {
760
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
761
- data: Record<string, unknown>;
762
- route?: string | null | undefined;
763
- }>;
764
- }, "strict", z.ZodTypeAny, {
765
- event_id: string;
766
- occurred_at: string;
767
- service: {
768
- environment: string;
769
- name: string;
770
- runtime?: string | null | undefined;
771
- framework?: string | null | undefined;
772
- };
773
- schema_version: string;
774
- event_type: "frontend_breadcrumb";
775
- sdk_name: string;
776
- sdk_version: string;
777
- payload: {
778
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
779
- data: Record<string, unknown>;
780
- route?: string | null | undefined;
781
- };
782
- project_id?: string | null | undefined;
783
- project_token?: string | undefined;
784
- correlation?: {
785
- request_id: string | null;
786
- trace_id: string | null;
787
- session_id: string | null;
788
- user_id_hash: string | null;
789
- } | undefined;
790
- context?: Record<string, unknown> | undefined;
791
- }, {
792
- event_id: string;
793
- occurred_at: string;
794
- service: {
795
- environment: string;
796
- name: string;
797
- runtime?: string | null | undefined;
798
- framework?: string | null | undefined;
799
- };
800
- schema_version: string;
801
- event_type: "frontend_breadcrumb";
802
- sdk_name: string;
803
- sdk_version: string;
804
- payload: {
805
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
806
- data: Record<string, unknown>;
807
- route?: string | null | undefined;
808
- };
809
- project_id?: string | null | undefined;
810
- project_token?: string | undefined;
811
- correlation?: {
812
- trace_id?: string | null | undefined;
813
- session_id?: string | null | undefined;
814
- user_id_hash?: string | null | undefined;
815
- request_id?: string | null | undefined;
816
- } | undefined;
817
- context?: Record<string, unknown> | undefined;
818
- }>, z.ZodObject<{
819
- schema_version: z.ZodString;
820
- event_id: z.ZodString;
821
- project_token: z.ZodOptional<z.ZodString>;
822
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
823
- sdk_name: z.ZodString;
824
- sdk_version: z.ZodString;
825
- service: z.ZodObject<{
826
- name: z.ZodString;
827
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
- environment: z.ZodString;
830
- }, "strip", z.ZodTypeAny, {
831
- environment: string;
832
- name: string;
833
- runtime?: string | null | undefined;
834
- framework?: string | null | undefined;
835
- }, {
836
- environment: string;
837
- name: string;
838
- runtime?: string | null | undefined;
839
- framework?: string | null | undefined;
840
- }>;
841
- occurred_at: z.ZodString;
842
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
843
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
846
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
- }, "strict", z.ZodTypeAny, {
848
- trace_id?: string | null | undefined;
849
- session_id?: string | null | undefined;
850
- user_id_hash?: string | null | undefined;
851
- request_id?: string | null | undefined;
852
- }, {
853
- trace_id?: string | null | undefined;
854
- session_id?: string | null | undefined;
855
- user_id_hash?: string | null | undefined;
856
- request_id?: string | null | undefined;
857
- }>, {
858
- request_id: string | null;
859
- trace_id: string | null;
860
- session_id: string | null;
861
- user_id_hash: string | null;
862
- }, {
863
- trace_id?: string | null | undefined;
864
- session_id?: string | null | undefined;
865
- user_id_hash?: string | null | undefined;
866
- request_id?: string | null | undefined;
867
- }>>;
868
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
869
- } & {
870
- event_type: z.ZodLiteral<"frontend_exception">;
871
- payload: z.ZodObject<{
872
- name: z.ZodString;
873
- message: z.ZodString;
874
- stack: z.ZodString;
875
- route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
- browser: z.ZodObject<{
877
- name: z.ZodString;
878
- version: z.ZodString;
879
- }, "strip", z.ZodTypeAny, {
880
- name: string;
881
- version: string;
882
- }, {
883
- name: string;
884
- version: string;
885
- }>;
886
- breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
887
- breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
888
- route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
890
- } & {
891
- ts: z.ZodString;
892
- }, "strict", z.ZodTypeAny, {
893
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
894
- data: Record<string, unknown>;
895
- ts: string;
896
- route?: string | null | undefined;
897
- }, {
898
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
899
- data: Record<string, unknown>;
900
- ts: string;
901
- route?: string | null | undefined;
902
- }>, "many">>;
903
- device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
904
- user_agent: z.ZodNullable<z.ZodString>;
905
- os: z.ZodObject<{
906
- name: z.ZodNullable<z.ZodString>;
907
- version: z.ZodNullable<z.ZodString>;
908
- }, "strip", z.ZodTypeAny, {
909
- name: string | null;
910
- version: string | null;
911
- }, {
912
- name: string | null;
913
- version: string | null;
914
- }>;
915
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
916
- screen: z.ZodObject<{
917
- width: z.ZodNumber;
918
- height: z.ZodNumber;
919
- }, "strip", z.ZodTypeAny, {
920
- width: number;
921
- height: number;
922
- }, {
923
- width: number;
924
- height: number;
925
- }>;
926
- viewport: z.ZodObject<{
927
- width: z.ZodNumber;
928
- height: z.ZodNumber;
929
- }, "strip", z.ZodTypeAny, {
930
- width: number;
931
- height: number;
932
- }, {
933
- width: number;
934
- height: number;
935
- }>;
936
- device_pixel_ratio: z.ZodNullable<z.ZodNumber>;
937
- touch_capable: z.ZodNullable<z.ZodBoolean>;
938
- language: z.ZodNullable<z.ZodString>;
939
- connection_type: z.ZodNullable<z.ZodString>;
940
- color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
941
- }, "strict", z.ZodTypeAny, {
942
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
943
- language: string | null;
944
- os: {
945
- name: string | null;
946
- version: string | null;
947
- };
948
- user_agent: string | null;
949
- screen: {
950
- width: number;
951
- height: number;
952
- };
953
- viewport: {
954
- width: number;
955
- height: number;
956
- };
957
- device_pixel_ratio: number | null;
958
- touch_capable: boolean | null;
959
- connection_type: string | null;
960
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
961
- }, {
962
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
963
- language: string | null;
964
- os: {
965
- name: string | null;
966
- version: string | null;
967
- };
968
- user_agent: string | null;
969
- screen: {
970
- width: number;
971
- height: number;
972
- };
973
- viewport: {
974
- width: number;
975
- height: number;
976
- };
977
- device_pixel_ratio: number | null;
978
- touch_capable: boolean | null;
979
- connection_type: string | null;
980
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
981
- }>>>;
982
- browser_event: z.ZodOptional<z.ZodObject<{
983
- kind: z.ZodEnum<["window_error", "resource_error"]>;
984
- message: z.ZodNullable<z.ZodString>;
985
- file_name: z.ZodNullable<z.ZodString>;
986
- line_number: z.ZodNullable<z.ZodNumber>;
987
- column_number: z.ZodNullable<z.ZodNumber>;
988
- target: z.ZodNullable<z.ZodObject<{
989
- tag_name: z.ZodNullable<z.ZodString>;
990
- source_url: z.ZodNullable<z.ZodString>;
991
- attributes: z.ZodOptional<z.ZodObject<{
992
- rel: z.ZodOptional<z.ZodString>;
993
- as: z.ZodOptional<z.ZodString>;
994
- type: z.ZodOptional<z.ZodString>;
995
- media: z.ZodOptional<z.ZodString>;
996
- cross_origin: z.ZodOptional<z.ZodString>;
997
- async: z.ZodOptional<z.ZodBoolean>;
998
- defer: z.ZodOptional<z.ZodBoolean>;
999
- integrity_present: z.ZodOptional<z.ZodBoolean>;
1000
- }, "strict", z.ZodTypeAny, {
1001
- type?: string | undefined;
1002
- rel?: string | undefined;
1003
- as?: string | undefined;
1004
- media?: string | undefined;
1005
- cross_origin?: string | undefined;
1006
- async?: boolean | undefined;
1007
- defer?: boolean | undefined;
1008
- integrity_present?: boolean | undefined;
1009
- }, {
1010
- type?: string | undefined;
1011
- rel?: string | undefined;
1012
- as?: string | undefined;
1013
- media?: string | undefined;
1014
- cross_origin?: string | undefined;
1015
- async?: boolean | undefined;
1016
- defer?: boolean | undefined;
1017
- integrity_present?: boolean | undefined;
1018
- }>>;
1019
- }, "strict", z.ZodTypeAny, {
1020
- source_url: string | null;
1021
- tag_name: string | null;
1022
- attributes?: {
1023
- type?: string | undefined;
1024
- rel?: string | undefined;
1025
- as?: string | undefined;
1026
- media?: string | undefined;
1027
- cross_origin?: string | undefined;
1028
- async?: boolean | undefined;
1029
- defer?: boolean | undefined;
1030
- integrity_present?: boolean | undefined;
1031
- } | undefined;
1032
- }, {
1033
- source_url: string | null;
1034
- tag_name: string | null;
1035
- attributes?: {
1036
- type?: string | undefined;
1037
- rel?: string | undefined;
1038
- as?: string | undefined;
1039
- media?: string | undefined;
1040
- cross_origin?: string | undefined;
1041
- async?: boolean | undefined;
1042
- defer?: boolean | undefined;
1043
- integrity_present?: boolean | undefined;
1044
- } | undefined;
1045
- }>>;
1046
- page: z.ZodOptional<z.ZodObject<{
1047
- url: z.ZodNullable<z.ZodString>;
1048
- referrer: z.ZodNullable<z.ZodString>;
1049
- ready_state: z.ZodNullable<z.ZodEnum<["loading", "interactive", "complete"]>>;
1050
- visibility_state: z.ZodNullable<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
1051
- }, "strict", z.ZodTypeAny, {
1052
- url: string | null;
1053
- referrer: string | null;
1054
- ready_state: "loading" | "interactive" | "complete" | null;
1055
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1056
- }, {
1057
- url: string | null;
1058
- referrer: string | null;
1059
- ready_state: "loading" | "interactive" | "complete" | null;
1060
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1061
- }>>;
1062
- opaque: z.ZodBoolean;
1063
- }, "strict", z.ZodTypeAny, {
1064
- message: string | null;
1065
- kind: "window_error" | "resource_error";
1066
- target: {
1067
- source_url: string | null;
1068
- tag_name: string | null;
1069
- attributes?: {
1070
- type?: string | undefined;
1071
- rel?: string | undefined;
1072
- as?: string | undefined;
1073
- media?: string | undefined;
1074
- cross_origin?: string | undefined;
1075
- async?: boolean | undefined;
1076
- defer?: boolean | undefined;
1077
- integrity_present?: boolean | undefined;
1078
- } | undefined;
1079
- } | null;
1080
- file_name: string | null;
1081
- opaque: boolean;
1082
- line_number: number | null;
1083
- column_number: number | null;
1084
- page?: {
1085
- url: string | null;
1086
- referrer: string | null;
1087
- ready_state: "loading" | "interactive" | "complete" | null;
1088
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1089
- } | undefined;
1090
- }, {
1091
- message: string | null;
1092
- kind: "window_error" | "resource_error";
1093
- target: {
1094
- source_url: string | null;
1095
- tag_name: string | null;
1096
- attributes?: {
1097
- type?: string | undefined;
1098
- rel?: string | undefined;
1099
- as?: string | undefined;
1100
- media?: string | undefined;
1101
- cross_origin?: string | undefined;
1102
- async?: boolean | undefined;
1103
- defer?: boolean | undefined;
1104
- integrity_present?: boolean | undefined;
1105
- } | undefined;
1106
- } | null;
1107
- file_name: string | null;
1108
- opaque: boolean;
1109
- line_number: number | null;
1110
- column_number: number | null;
1111
- page?: {
1112
- url: string | null;
1113
- referrer: string | null;
1114
- ready_state: "loading" | "interactive" | "complete" | null;
1115
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1116
- } | undefined;
1117
- }>>;
1118
- rejection_reason: z.ZodOptional<z.ZodObject<{
1119
- kind: z.ZodEnum<["error", "string", "object", "null", "undefined", "unknown"]>;
1120
- name: z.ZodOptional<z.ZodString>;
1121
- message: z.ZodOptional<z.ZodString>;
1122
- preview: z.ZodOptional<z.ZodString>;
1123
- }, "strict", z.ZodTypeAny, {
1124
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1125
- message?: string | undefined;
1126
- name?: string | undefined;
1127
- preview?: string | undefined;
1128
- }, {
1129
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1130
- message?: string | undefined;
1131
- name?: string | undefined;
1132
- preview?: string | undefined;
1133
- }>>;
1134
- dom_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1135
- mode: z.ZodLiteral<"lightweight">;
1136
- html_excerpt: z.ZodString;
1137
- }, "strip", z.ZodTypeAny, {
1138
- mode: "lightweight";
1139
- html_excerpt: string;
1140
- }, {
1141
- mode: "lightweight";
1142
- html_excerpt: string;
1143
- }>>>;
1144
- probe_data: z.ZodOptional<z.ZodObject<{
1145
- version: z.ZodLiteral<1>;
1146
- items: z.ZodArray<z.ZodObject<{
1147
- label: z.ZodString;
1148
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1149
- timestamp: z.ZodString;
1150
- activation_id: z.ZodNullable<z.ZodString>;
1151
- }, "strict", z.ZodTypeAny, {
1152
- data: Record<string, unknown>;
1153
- label: string;
1154
- timestamp: string;
1155
- activation_id: string | null;
1156
- }, {
1157
- data: Record<string, unknown>;
1158
- label: string;
1159
- timestamp: string;
1160
- activation_id: string | null;
1161
- }>, "many">;
1162
- }, "strict", z.ZodTypeAny, {
1163
- version: 1;
1164
- items: {
1165
- data: Record<string, unknown>;
1166
- label: string;
1167
- timestamp: string;
1168
- activation_id: string | null;
1169
- }[];
1170
- }, {
1171
- version: 1;
1172
- items: {
1173
- data: Record<string, unknown>;
1174
- label: string;
1175
- timestamp: string;
1176
- activation_id: string | null;
1177
- }[];
1178
- }>>;
1179
- }, "strict", z.ZodTypeAny, {
1180
- message: string;
1181
- name: string;
1182
- browser: {
1183
- name: string;
1184
- version: string;
1185
- };
1186
- stack: string;
1187
- route?: string | null | undefined;
1188
- device?: {
1189
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1190
- language: string | null;
1191
- os: {
1192
- name: string | null;
1193
- version: string | null;
1194
- };
1195
- user_agent: string | null;
1196
- screen: {
1197
- width: number;
1198
- height: number;
1199
- };
1200
- viewport: {
1201
- width: number;
1202
- height: number;
1203
- };
1204
- device_pixel_ratio: number | null;
1205
- touch_capable: boolean | null;
1206
- connection_type: string | null;
1207
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1208
- } | null | undefined;
1209
- browser_event?: {
1210
- message: string | null;
1211
- kind: "window_error" | "resource_error";
1212
- target: {
1213
- source_url: string | null;
1214
- tag_name: string | null;
1215
- attributes?: {
1216
- type?: string | undefined;
1217
- rel?: string | undefined;
1218
- as?: string | undefined;
1219
- media?: string | undefined;
1220
- cross_origin?: string | undefined;
1221
- async?: boolean | undefined;
1222
- defer?: boolean | undefined;
1223
- integrity_present?: boolean | undefined;
1224
- } | undefined;
1225
- } | null;
1226
- file_name: string | null;
1227
- opaque: boolean;
1228
- line_number: number | null;
1229
- column_number: number | null;
1230
- page?: {
1231
- url: string | null;
1232
- referrer: string | null;
1233
- ready_state: "loading" | "interactive" | "complete" | null;
1234
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1235
- } | undefined;
1236
- } | undefined;
1237
- probe_data?: {
1238
- version: 1;
1239
- items: {
1240
- data: Record<string, unknown>;
1241
- label: string;
1242
- timestamp: string;
1243
- activation_id: string | null;
1244
- }[];
1245
- } | undefined;
1246
- breadcrumbs?: {
1247
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1248
- data: Record<string, unknown>;
1249
- ts: string;
1250
- route?: string | null | undefined;
1251
- }[] | undefined;
1252
- rejection_reason?: {
1253
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1254
- message?: string | undefined;
1255
- name?: string | undefined;
1256
- preview?: string | undefined;
1257
- } | undefined;
1258
- dom_context?: {
1259
- mode: "lightweight";
1260
- html_excerpt: string;
1261
- } | null | undefined;
1262
- }, {
1263
- message: string;
1264
- name: string;
1265
- browser: {
1266
- name: string;
1267
- version: string;
1268
- };
1269
- stack: string;
1270
- route?: string | null | undefined;
1271
- device?: {
1272
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1273
- language: string | null;
1274
- os: {
1275
- name: string | null;
1276
- version: string | null;
1277
- };
1278
- user_agent: string | null;
1279
- screen: {
1280
- width: number;
1281
- height: number;
1282
- };
1283
- viewport: {
1284
- width: number;
1285
- height: number;
1286
- };
1287
- device_pixel_ratio: number | null;
1288
- touch_capable: boolean | null;
1289
- connection_type: string | null;
1290
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1291
- } | null | undefined;
1292
- browser_event?: {
1293
- message: string | null;
1294
- kind: "window_error" | "resource_error";
1295
- target: {
1296
- source_url: string | null;
1297
- tag_name: string | null;
1298
- attributes?: {
1299
- type?: string | undefined;
1300
- rel?: string | undefined;
1301
- as?: string | undefined;
1302
- media?: string | undefined;
1303
- cross_origin?: string | undefined;
1304
- async?: boolean | undefined;
1305
- defer?: boolean | undefined;
1306
- integrity_present?: boolean | undefined;
1307
- } | undefined;
1308
- } | null;
1309
- file_name: string | null;
1310
- opaque: boolean;
1311
- line_number: number | null;
1312
- column_number: number | null;
1313
- page?: {
1314
- url: string | null;
1315
- referrer: string | null;
1316
- ready_state: "loading" | "interactive" | "complete" | null;
1317
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1318
- } | undefined;
1319
- } | undefined;
1320
- probe_data?: {
1321
- version: 1;
1322
- items: {
1323
- data: Record<string, unknown>;
1324
- label: string;
1325
- timestamp: string;
1326
- activation_id: string | null;
1327
- }[];
1328
- } | undefined;
1329
- breadcrumbs?: {
1330
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1331
- data: Record<string, unknown>;
1332
- ts: string;
1333
- route?: string | null | undefined;
1334
- }[] | undefined;
1335
- rejection_reason?: {
1336
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1337
- message?: string | undefined;
1338
- name?: string | undefined;
1339
- preview?: string | undefined;
1340
- } | undefined;
1341
- dom_context?: {
1342
- mode: "lightweight";
1343
- html_excerpt: string;
1344
- } | null | undefined;
1345
- }>;
1346
- }, "strict", z.ZodTypeAny, {
1347
- event_id: string;
1348
- occurred_at: string;
1349
- service: {
1350
- environment: string;
1351
- name: string;
1352
- runtime?: string | null | undefined;
1353
- framework?: string | null | undefined;
1354
- };
1355
- schema_version: string;
1356
- event_type: "frontend_exception";
1357
- sdk_name: string;
1358
- sdk_version: string;
1359
- payload: {
1360
- message: string;
1361
- name: string;
1362
- browser: {
1363
- name: string;
1364
- version: string;
1365
- };
1366
- stack: string;
1367
- route?: string | null | undefined;
1368
- device?: {
1369
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1370
- language: string | null;
1371
- os: {
1372
- name: string | null;
1373
- version: string | null;
1374
- };
1375
- user_agent: string | null;
1376
- screen: {
1377
- width: number;
1378
- height: number;
1379
- };
1380
- viewport: {
1381
- width: number;
1382
- height: number;
1383
- };
1384
- device_pixel_ratio: number | null;
1385
- touch_capable: boolean | null;
1386
- connection_type: string | null;
1387
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1388
- } | null | undefined;
1389
- browser_event?: {
1390
- message: string | null;
1391
- kind: "window_error" | "resource_error";
1392
- target: {
1393
- source_url: string | null;
1394
- tag_name: string | null;
1395
- attributes?: {
1396
- type?: string | undefined;
1397
- rel?: string | undefined;
1398
- as?: string | undefined;
1399
- media?: string | undefined;
1400
- cross_origin?: string | undefined;
1401
- async?: boolean | undefined;
1402
- defer?: boolean | undefined;
1403
- integrity_present?: boolean | undefined;
1404
- } | undefined;
1405
- } | null;
1406
- file_name: string | null;
1407
- opaque: boolean;
1408
- line_number: number | null;
1409
- column_number: number | null;
1410
- page?: {
1411
- url: string | null;
1412
- referrer: string | null;
1413
- ready_state: "loading" | "interactive" | "complete" | null;
1414
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1415
- } | undefined;
1416
- } | undefined;
1417
- probe_data?: {
1418
- version: 1;
1419
- items: {
1420
- data: Record<string, unknown>;
1421
- label: string;
1422
- timestamp: string;
1423
- activation_id: string | null;
1424
- }[];
1425
- } | undefined;
1426
- breadcrumbs?: {
1427
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1428
- data: Record<string, unknown>;
1429
- ts: string;
1430
- route?: string | null | undefined;
1431
- }[] | undefined;
1432
- rejection_reason?: {
1433
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1434
- message?: string | undefined;
1435
- name?: string | undefined;
1436
- preview?: string | undefined;
1437
- } | undefined;
1438
- dom_context?: {
1439
- mode: "lightweight";
1440
- html_excerpt: string;
1441
- } | null | undefined;
1442
- };
1443
- project_id?: string | null | undefined;
1444
- project_token?: string | undefined;
1445
- correlation?: {
1446
- request_id: string | null;
1447
- trace_id: string | null;
1448
- session_id: string | null;
1449
- user_id_hash: string | null;
1450
- } | undefined;
1451
- context?: Record<string, unknown> | undefined;
1452
- }, {
1453
- event_id: string;
1454
- occurred_at: string;
1455
- service: {
1456
- environment: string;
1457
- name: string;
1458
- runtime?: string | null | undefined;
1459
- framework?: string | null | undefined;
1460
- };
1461
- schema_version: string;
1462
- event_type: "frontend_exception";
1463
- sdk_name: string;
1464
- sdk_version: string;
1465
- payload: {
1466
- message: string;
1467
- name: string;
1468
- browser: {
1469
- name: string;
1470
- version: string;
1471
- };
1472
- stack: string;
1473
- route?: string | null | undefined;
1474
- device?: {
1475
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1476
- language: string | null;
1477
- os: {
1478
- name: string | null;
1479
- version: string | null;
1480
- };
1481
- user_agent: string | null;
1482
- screen: {
1483
- width: number;
1484
- height: number;
1485
- };
1486
- viewport: {
1487
- width: number;
1488
- height: number;
1489
- };
1490
- device_pixel_ratio: number | null;
1491
- touch_capable: boolean | null;
1492
- connection_type: string | null;
1493
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1494
- } | null | undefined;
1495
- browser_event?: {
1496
- message: string | null;
1497
- kind: "window_error" | "resource_error";
1498
- target: {
1499
- source_url: string | null;
1500
- tag_name: string | null;
1501
- attributes?: {
1502
- type?: string | undefined;
1503
- rel?: string | undefined;
1504
- as?: string | undefined;
1505
- media?: string | undefined;
1506
- cross_origin?: string | undefined;
1507
- async?: boolean | undefined;
1508
- defer?: boolean | undefined;
1509
- integrity_present?: boolean | undefined;
1510
- } | undefined;
1511
- } | null;
1512
- file_name: string | null;
1513
- opaque: boolean;
1514
- line_number: number | null;
1515
- column_number: number | null;
1516
- page?: {
1517
- url: string | null;
1518
- referrer: string | null;
1519
- ready_state: "loading" | "interactive" | "complete" | null;
1520
- visibility_state: "visible" | "hidden" | "prerender" | "unloaded" | null;
1521
- } | undefined;
1522
- } | undefined;
1523
- probe_data?: {
1524
- version: 1;
1525
- items: {
1526
- data: Record<string, unknown>;
1527
- label: string;
1528
- timestamp: string;
1529
- activation_id: string | null;
1530
- }[];
1531
- } | undefined;
1532
- breadcrumbs?: {
1533
- breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1534
- data: Record<string, unknown>;
1535
- ts: string;
1536
- route?: string | null | undefined;
1537
- }[] | undefined;
1538
- rejection_reason?: {
1539
- kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1540
- message?: string | undefined;
1541
- name?: string | undefined;
1542
- preview?: string | undefined;
1543
- } | undefined;
1544
- dom_context?: {
1545
- mode: "lightweight";
1546
- html_excerpt: string;
1547
- } | null | undefined;
1548
- };
1549
- project_id?: string | null | undefined;
1550
- project_token?: string | undefined;
1551
- correlation?: {
1552
- trace_id?: string | null | undefined;
1553
- session_id?: string | null | undefined;
1554
- user_id_hash?: string | null | undefined;
1555
- request_id?: string | null | undefined;
1556
- } | undefined;
1557
- context?: Record<string, unknown> | undefined;
1558
- }>, z.ZodObject<{
1559
- schema_version: z.ZodString;
1560
- event_id: z.ZodString;
1561
- project_token: z.ZodOptional<z.ZodString>;
1562
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
- sdk_name: z.ZodString;
1564
- sdk_version: z.ZodString;
1565
- service: z.ZodObject<{
1566
- name: z.ZodString;
1567
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1569
- environment: z.ZodString;
1570
- }, "strip", z.ZodTypeAny, {
1571
- environment: string;
1572
- name: string;
1573
- runtime?: string | null | undefined;
1574
- framework?: string | null | undefined;
1575
- }, {
1576
- environment: string;
1577
- name: string;
1578
- runtime?: string | null | undefined;
1579
- framework?: string | null | undefined;
1580
- }>;
1581
- occurred_at: z.ZodString;
1582
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1583
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1584
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1585
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1586
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
- }, "strict", z.ZodTypeAny, {
1588
- trace_id?: string | null | undefined;
1589
- session_id?: string | null | undefined;
1590
- user_id_hash?: string | null | undefined;
1591
- request_id?: string | null | undefined;
1592
- }, {
1593
- trace_id?: string | null | undefined;
1594
- session_id?: string | null | undefined;
1595
- user_id_hash?: string | null | undefined;
1596
- request_id?: string | null | undefined;
1597
- }>, {
1598
- request_id: string | null;
1599
- trace_id: string | null;
1600
- session_id: string | null;
1601
- user_id_hash: string | null;
1602
- }, {
1603
- trace_id?: string | null | undefined;
1604
- session_id?: string | null | undefined;
1605
- user_id_hash?: string | null | undefined;
1606
- request_id?: string | null | undefined;
1607
- }>>;
1608
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1609
- } & {
1610
- event_type: z.ZodLiteral<"deploy_metadata">;
1611
- payload: z.ZodObject<{
1612
- commit_sha: z.ZodString;
1613
- version: z.ZodString;
1614
- branch: z.ZodString;
1615
- environment: z.ZodString;
1616
- deployed_at: z.ZodString;
1617
- }, "strict", z.ZodTypeAny, {
1618
- environment: string;
1619
- version: string;
1620
- commit_sha: string;
1621
- branch: string;
1622
- deployed_at: string;
1623
- }, {
1624
- environment: string;
1625
- version: string;
1626
- commit_sha: string;
1627
- branch: string;
1628
- deployed_at: string;
1629
- }>;
1630
- }, "strict", z.ZodTypeAny, {
1631
- event_id: string;
1632
- occurred_at: string;
1633
- service: {
1634
- environment: string;
1635
- name: string;
1636
- runtime?: string | null | undefined;
1637
- framework?: string | null | undefined;
1638
- };
1639
- schema_version: string;
1640
- event_type: "deploy_metadata";
1641
- sdk_name: string;
1642
- sdk_version: string;
1643
- payload: {
1644
- environment: string;
1645
- version: string;
1646
- commit_sha: string;
1647
- branch: string;
1648
- deployed_at: string;
1649
- };
1650
- project_id?: string | null | undefined;
1651
- project_token?: string | undefined;
1652
- correlation?: {
1653
- request_id: string | null;
1654
- trace_id: string | null;
1655
- session_id: string | null;
1656
- user_id_hash: string | null;
1657
- } | undefined;
1658
- context?: Record<string, unknown> | undefined;
1659
- }, {
1660
- event_id: string;
1661
- occurred_at: string;
1662
- service: {
1663
- environment: string;
1664
- name: string;
1665
- runtime?: string | null | undefined;
1666
- framework?: string | null | undefined;
1667
- };
1668
- schema_version: string;
1669
- event_type: "deploy_metadata";
1670
- sdk_name: string;
1671
- sdk_version: string;
1672
- payload: {
1673
- environment: string;
1674
- version: string;
1675
- commit_sha: string;
1676
- branch: string;
1677
- deployed_at: string;
1678
- };
1679
- project_id?: string | null | undefined;
1680
- project_token?: string | undefined;
1681
- correlation?: {
1682
- trace_id?: string | null | undefined;
1683
- session_id?: string | null | undefined;
1684
- user_id_hash?: string | null | undefined;
1685
- request_id?: string | null | undefined;
1686
- } | undefined;
1687
- context?: Record<string, unknown> | undefined;
1688
- }>, z.ZodObject<{
1689
- schema_version: z.ZodString;
1690
- event_id: z.ZodString;
1691
- project_token: z.ZodOptional<z.ZodString>;
1692
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1693
- sdk_name: z.ZodString;
1694
- sdk_version: z.ZodString;
1695
- service: z.ZodObject<{
1696
- name: z.ZodString;
1697
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1698
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1699
- environment: z.ZodString;
1700
- }, "strip", z.ZodTypeAny, {
1701
- environment: string;
1702
- name: string;
1703
- runtime?: string | null | undefined;
1704
- framework?: string | null | undefined;
1705
- }, {
1706
- environment: string;
1707
- name: string;
1708
- runtime?: string | null | undefined;
1709
- framework?: string | null | undefined;
1710
- }>;
1711
- occurred_at: z.ZodString;
1712
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1713
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1714
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1715
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
- }, "strict", z.ZodTypeAny, {
1718
- trace_id?: string | null | undefined;
1719
- session_id?: string | null | undefined;
1720
- user_id_hash?: string | null | undefined;
1721
- request_id?: string | null | undefined;
1722
- }, {
1723
- trace_id?: string | null | undefined;
1724
- session_id?: string | null | undefined;
1725
- user_id_hash?: string | null | undefined;
1726
- request_id?: string | null | undefined;
1727
- }>, {
1728
- request_id: string | null;
1729
- trace_id: string | null;
1730
- session_id: string | null;
1731
- user_id_hash: string | null;
1732
- }, {
1733
- trace_id?: string | null | undefined;
1734
- session_id?: string | null | undefined;
1735
- user_id_hash?: string | null | undefined;
1736
- request_id?: string | null | undefined;
1737
- }>>;
1738
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1739
- } & {
1740
- event_type: z.ZodLiteral<"error_suppressed">;
1741
- payload: z.ZodObject<{
1742
- fingerprint: z.ZodString;
1743
- suppressed_count: z.ZodNumber;
1744
- window_seconds: z.ZodNumber;
1745
- first_seen: z.ZodString;
1746
- last_seen: z.ZodString;
1747
- }, "strict", z.ZodTypeAny, {
1748
- fingerprint: string;
1749
- suppressed_count: number;
1750
- window_seconds: number;
1751
- first_seen: string;
1752
- last_seen: string;
1753
- }, {
1754
- fingerprint: string;
1755
- suppressed_count: number;
1756
- window_seconds: number;
1757
- first_seen: string;
1758
- last_seen: string;
1759
- }>;
1760
- }, "strict", z.ZodTypeAny, {
1761
- event_id: string;
1762
- occurred_at: string;
1763
- service: {
1764
- environment: string;
1765
- name: string;
1766
- runtime?: string | null | undefined;
1767
- framework?: string | null | undefined;
1768
- };
1769
- schema_version: string;
1770
- event_type: "error_suppressed";
1771
- sdk_name: string;
1772
- sdk_version: string;
1773
- payload: {
1774
- fingerprint: string;
1775
- suppressed_count: number;
1776
- window_seconds: number;
1777
- first_seen: string;
1778
- last_seen: string;
1779
- };
1780
- project_id?: string | null | undefined;
1781
- project_token?: string | undefined;
1782
- correlation?: {
1783
- request_id: string | null;
1784
- trace_id: string | null;
1785
- session_id: string | null;
1786
- user_id_hash: string | null;
1787
- } | undefined;
1788
- context?: Record<string, unknown> | undefined;
1789
- }, {
1790
- event_id: string;
1791
- occurred_at: string;
1792
- service: {
1793
- environment: string;
1794
- name: string;
1795
- runtime?: string | null | undefined;
1796
- framework?: string | null | undefined;
1797
- };
1798
- schema_version: string;
1799
- event_type: "error_suppressed";
1800
- sdk_name: string;
1801
- sdk_version: string;
1802
- payload: {
1803
- fingerprint: string;
1804
- suppressed_count: number;
1805
- window_seconds: number;
1806
- first_seen: string;
1807
- last_seen: string;
1808
- };
1809
- project_id?: string | null | undefined;
1810
- project_token?: string | undefined;
1811
- correlation?: {
1812
- trace_id?: string | null | undefined;
1813
- session_id?: string | null | undefined;
1814
- user_id_hash?: string | null | undefined;
1815
- request_id?: string | null | undefined;
1816
- } | undefined;
1817
- context?: Record<string, unknown> | undefined;
1818
- }>, z.ZodObject<{
1819
- schema_version: z.ZodString;
1820
- event_id: z.ZodString;
1821
- project_token: z.ZodOptional<z.ZodString>;
1822
- project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1823
- sdk_name: z.ZodString;
1824
- sdk_version: z.ZodString;
1825
- service: z.ZodObject<{
1826
- name: z.ZodString;
1827
- runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
- framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1829
- environment: z.ZodString;
1830
- }, "strip", z.ZodTypeAny, {
1831
- environment: string;
1832
- name: string;
1833
- runtime?: string | null | undefined;
1834
- framework?: string | null | undefined;
1835
- }, {
1836
- environment: string;
1837
- name: string;
1838
- runtime?: string | null | undefined;
1839
- framework?: string | null | undefined;
1840
- }>;
1841
- occurred_at: z.ZodString;
1842
- correlation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1843
- request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
- trace_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1845
- session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
- user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1847
- }, "strict", z.ZodTypeAny, {
1848
- trace_id?: string | null | undefined;
1849
- session_id?: string | null | undefined;
1850
- user_id_hash?: string | null | undefined;
1851
- request_id?: string | null | undefined;
1852
- }, {
1853
- trace_id?: string | null | undefined;
1854
- session_id?: string | null | undefined;
1855
- user_id_hash?: string | null | undefined;
1856
- request_id?: string | null | undefined;
1857
- }>, {
1858
- request_id: string | null;
1859
- trace_id: string | null;
1860
- session_id: string | null;
1861
- user_id_hash: string | null;
1862
- }, {
1863
- trace_id?: string | null | undefined;
1864
- session_id?: string | null | undefined;
1865
- user_id_hash?: string | null | undefined;
1866
- request_id?: string | null | undefined;
1867
- }>>;
1868
- context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1869
- } & {
1870
- event_type: z.ZodLiteral<"probe_event">;
1871
- payload: z.ZodObject<{
1872
- label: z.ZodString;
1873
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1874
- activation_id: z.ZodNullable<z.ZodString>;
1875
- probe_label_pattern: z.ZodString;
1876
- }, "strict", z.ZodTypeAny, {
1877
- data: Record<string, unknown>;
1878
- label: string;
1879
- activation_id: string | null;
1880
- probe_label_pattern: string;
1881
- }, {
1882
- data: Record<string, unknown>;
1883
- label: string;
1884
- activation_id: string | null;
1885
- probe_label_pattern: string;
1886
- }>;
1887
- }, "strict", z.ZodTypeAny, {
1888
- event_id: string;
1889
- occurred_at: string;
1890
- service: {
1891
- environment: string;
1892
- name: string;
1893
- runtime?: string | null | undefined;
1894
- framework?: string | null | undefined;
1895
- };
1896
- schema_version: string;
1897
- event_type: "probe_event";
1898
- sdk_name: string;
1899
- sdk_version: string;
1900
- payload: {
1901
- data: Record<string, unknown>;
1902
- label: string;
1903
- activation_id: string | null;
1904
- probe_label_pattern: string;
1905
- };
1906
- project_id?: string | null | undefined;
1907
- project_token?: string | undefined;
1908
- correlation?: {
1909
- request_id: string | null;
1910
- trace_id: string | null;
1911
- session_id: string | null;
1912
- user_id_hash: string | null;
1913
- } | undefined;
1914
- context?: Record<string, unknown> | undefined;
1915
- }, {
1916
- event_id: string;
1917
- occurred_at: string;
1918
- service: {
1919
- environment: string;
1920
- name: string;
1921
- runtime?: string | null | undefined;
1922
- framework?: string | null | undefined;
1923
- };
1924
- schema_version: string;
1925
- event_type: "probe_event";
1926
- sdk_name: string;
1927
- sdk_version: string;
1928
- payload: {
1929
- data: Record<string, unknown>;
1930
- label: string;
1931
- activation_id: string | null;
1932
- probe_label_pattern: string;
1933
- };
1934
- project_id?: string | null | undefined;
1935
- project_token?: string | undefined;
1936
- correlation?: {
1937
- trace_id?: string | null | undefined;
1938
- session_id?: string | null | undefined;
1939
- user_id_hash?: string | null | undefined;
1940
- request_id?: string | null | undefined;
1941
- } | undefined;
1942
- context?: Record<string, unknown> | undefined;
1943
- }>]>;
1944
- export type EventEnvelope = z.infer<typeof EventEnvelopeSchema>;
1945
- type CorrelationInput = {
1946
- request_id?: string | null;
1947
- trace_id?: string | null;
1948
- session_id?: string | null;
1949
- user_id_hash?: string | null;
1950
- };
1951
- type CreateEnvelopeInput = Omit<EventEnvelope, "schema_version" | "event_id" | "occurred_at" | "correlation" | "sdk_name" | "sdk_version"> & Partial<Pick<EventEnvelope, "schema_version" | "event_id" | "occurred_at" | "sdk_name" | "sdk_version">> & {
1952
- correlation?: CorrelationInput | undefined;
1953
- };
1954
- export declare function createEventEnvelope(input: CreateEnvelopeInput): EventEnvelope;
2
+ export { EventTypeValues, EventTypeSchema, MobileDeviceInfoSchema, RuntimeMemoryStatsSchema, EventEnvelopeSchema, type EventEnvelope, createEventEnvelope } from "./event-envelope.js";
1955
3
  export declare const BundleV1Schema: z.ZodObject<{
1956
4
  bundle_version: z.ZodLiteral<1>;
1957
5
  bundle_id: z.ZodString;
@@ -3724,9 +1772,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3724
1772
  }>;
3725
1773
  export type BundleV1 = z.infer<typeof BundleV1Schema>;
3726
1774
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
3727
- export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, ImmediateClientErrorStatusesSchema, ImmediateClientErrorPathRuleSchema, ImmediateClientErrorPathRulesSchema, HTTP_METHOD_VALUES, RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, type HttpMethod, type ImmediateClientErrorPathRule, ResolvedCapturePolicySchema, type ResolvedCapturePolicy, CapturePolicyOverridesSchema, type CapturePolicyOverrides, CapturePolicyResponseSchema, type CapturePolicyResponse, CapturePolicySchema, type CapturePolicyRecord, CapturePolicyUpdateSchema, type CapturePolicyUpdate, PRESET_DEFAULTS, DEFAULT_PRESET_BY_TIER, RequestSignalClassificationValues, RequestSignalClassificationSchema, type RequestSignalClassification, normalizeImmediateClientErrorStatuses, normalizeImmediateClientErrorPathRules, getCapturePolicyOverrides, resolvePolicy, getDefaultPreset, classifyRequestStatus, isImmediateRequestIncident, matchesImmediateClientErrorPathRule, getRequestAnomalyThreshold, shouldCaptureEvent, } from "./capture-policy.js";
1775
+ export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, ImmediateClientErrorStatusesSchema, ImmediateClientErrorPathRuleSchema, ImmediateClientErrorPathRulesSchema, HTTP_METHOD_VALUES, RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, type HttpMethod, type ImmediateClientErrorPathRule, ResolvedCapturePolicySchema, type ResolvedCapturePolicy, CapturePolicyOverridesSchema, type CapturePolicyOverrides, CapturePolicyResponseSchema, type CapturePolicyResponse, CapturePolicySchema, type CapturePolicyRecord, CapturePolicyUpdateSchema, type CapturePolicyUpdate, PRESET_DEFAULTS, DEFAULT_PRESET_BY_TIER, RequestSignalClassificationValues, RequestSignalClassificationSchema, type RequestSignalClassification, normalizeImmediateClientErrorStatuses, normalizeImmediateClientErrorPathRules, getCapturePolicyOverrides, resolvePolicy, getDefaultPreset, classifyRequestStatus, isImmediateRequestIncident, matchesImmediateClientErrorPathRule, getRequestAnomalyThreshold, shouldCaptureEvent } from "./capture-policy.js";
3728
1776
  export { isLowValueExternalProbeRequestFailure404 } from "./request-failure-noise.js";
3729
- export { CaptureRuleActionValues, CaptureRuleActionSchema, type CaptureRuleAction, CaptureRuleSampleEventClassValues, CaptureRuleSampleEventClassSchema, type CaptureRuleSampleEventClass, CaptureRuleRuntimeSchema, type CaptureRuleRuntime, CaptureRuleEventTypeSchema, type CaptureRuleEventType, BrowserEventKindSchema, type BrowserEventKind, CaptureRuleClientKindSchema, type CaptureRuleClientKind, CaptureRuleMatcherSchema, type CaptureRuleMatcher, CaptureRuleSchema, type CaptureRule, CaptureRuleResponseSchema, type CaptureRuleResponse, CaptureRulesResponseSchema, type CaptureRulesResponse, CaptureRuleCreateSchema, type CaptureRuleCreate, CaptureRuleUpdateSchema, type CaptureRuleUpdate, CaptureRulesFileSchema, type CaptureRulesFile, CaptureRuleEvaluationContextSchema, type CaptureRuleEvaluationContext, type CaptureRuleEvaluationResult, type CaptureRuleEvaluableEvent, buildCaptureRuleEvaluationContext, applyCaptureRuleEventClass, matchesCaptureRule, isCaptureRuleActive, getCaptureRuleSpecificityScore, shouldSampleCaptureRuleEvent, classifyCaptureRuleClientFromUserAgent, evaluateCaptureRules, } from "./capture-rules.js";
1777
+ export { CaptureRuleActionValues, CaptureRuleActionSchema, type CaptureRuleAction, CaptureRuleSampleEventClassValues, CaptureRuleSampleEventClassSchema, type CaptureRuleSampleEventClass, CaptureRuleRuntimeSchema, type CaptureRuleRuntime, CaptureRuleEventTypeSchema, type CaptureRuleEventType, BrowserEventKindSchema, type BrowserEventKind, CaptureRuleClientKindSchema, type CaptureRuleClientKind, CaptureRuleMatcherSchema, type CaptureRuleMatcher, CaptureRuleSchema, type CaptureRule, CaptureRuleResponseSchema, type CaptureRuleResponse, CaptureRulesResponseSchema, type CaptureRulesResponse, CaptureRuleCreateSchema, type CaptureRuleCreate, CaptureRuleUpdateSchema, type CaptureRuleUpdate, CaptureRulesFileSchema, type CaptureRulesFile, CaptureRuleEvaluationContextSchema, type CaptureRuleEvaluationContext, type CaptureRuleEvaluationResult, type CaptureRuleEvaluableEvent, buildCaptureRuleEvaluationContext, applyCaptureRuleEventClass, matchesCaptureRule, isCaptureRuleActive, getCaptureRuleSpecificityScore, shouldSampleCaptureRuleEvent, classifyCaptureRuleClientFromUserAgent, evaluateCaptureRules } from "./capture-rules.js";
3730
1778
  export { CaptureRuleSuggestionConfidenceSchema, type CaptureRuleSuggestionConfidence, CaptureRuleSuggestionSchema, type CaptureRuleSuggestion, CaptureRuleSuggestionsResponseSchema, type CaptureRuleSuggestionsResponse, CreateCaptureRuleFromSuggestionSchema, type CreateCaptureRuleFromSuggestion, type CaptureRuleSuggestionIncident, type CaptureRuleSuggestionBundle, buildCaptureRuleSuggestions } from "./capture-rule-suggestions.js";
3731
1779
  export { ImprovementBundleSensitivityValues, ImprovementBundleSensitivitySchema, type ImprovementBundleSensitivity, ImprovementSettingsSchema, type ImprovementSettings, ImprovementSettingsResponseSchema, type ImprovementSettingsResponse, ImprovementSettingsUpdateSchema, type ImprovementSettingsUpdate } from "./improvement-settings.js";
3732
1780
  export * from "./analytics.js";