@debugbundle/shared-types 1.0.2 → 1.2.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.
@@ -0,0 +1,2763 @@
1
+ import { z } from "zod";
2
+ export declare const CaptureRuleActionValues: readonly ["demote", "sample", "drop"];
3
+ export declare const CaptureRuleActionSchema: z.ZodEnum<["demote", "sample", "drop"]>;
4
+ export type CaptureRuleAction = z.infer<typeof CaptureRuleActionSchema>;
5
+ export declare const CaptureRuleSampleEventClassValues: readonly ["preserve", "context"];
6
+ export declare const CaptureRuleSampleEventClassSchema: z.ZodEnum<["preserve", "context"]>;
7
+ export type CaptureRuleSampleEventClass = z.infer<typeof CaptureRuleSampleEventClassSchema>;
8
+ export declare const CaptureRuleRuntimeSchema: z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>;
9
+ export type CaptureRuleRuntime = z.infer<typeof CaptureRuleRuntimeSchema>;
10
+ export declare const CaptureRuleEventTypeSchema: z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>;
11
+ export type CaptureRuleEventType = z.infer<typeof CaptureRuleEventTypeSchema>;
12
+ export declare const BrowserEventKindSchema: z.ZodEnum<["window_error", "resource_error"]>;
13
+ export type BrowserEventKind = z.infer<typeof BrowserEventKindSchema>;
14
+ export declare const CaptureRuleClientKindSchema: z.ZodEnum<["human", "bot", "unknown"]>;
15
+ export type CaptureRuleClientKind = z.infer<typeof CaptureRuleClientKindSchema>;
16
+ export interface CaptureRuleUrlMatcher {
17
+ host?: string;
18
+ host_suffix?: string;
19
+ path_prefix?: string;
20
+ path_equals?: string;
21
+ }
22
+ export declare const CaptureRuleFingerprintSchema: z.ZodObject<{
23
+ version: z.ZodString;
24
+ value: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ value: string;
27
+ version: string;
28
+ }, {
29
+ value: string;
30
+ version: string;
31
+ }>;
32
+ export type CaptureRuleFingerprint = z.infer<typeof CaptureRuleFingerprintSchema>;
33
+ export interface CaptureRuleMatcher {
34
+ event_types?: readonly CaptureRuleEventType[];
35
+ services?: readonly string[];
36
+ environments?: readonly string[];
37
+ runtime?: readonly CaptureRuleRuntime[];
38
+ first_party?: boolean;
39
+ error_name?: string;
40
+ message_contains?: string;
41
+ message_equals?: string;
42
+ browser_event_kind?: BrowserEventKind;
43
+ browser_event_opaque?: boolean;
44
+ client_kind?: CaptureRuleClientKind;
45
+ bot_family?: string;
46
+ resource_url?: CaptureRuleUrlMatcher;
47
+ request_url?: CaptureRuleUrlMatcher;
48
+ status_codes?: readonly number[];
49
+ status_ranges?: readonly {
50
+ start: number;
51
+ end: number;
52
+ }[];
53
+ fingerprint?: CaptureRuleFingerprint;
54
+ }
55
+ export declare const CaptureRuleMatcherSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
56
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
57
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
60
+ first_party: z.ZodOptional<z.ZodBoolean>;
61
+ error_name: z.ZodOptional<z.ZodString>;
62
+ message_contains: z.ZodOptional<z.ZodString>;
63
+ message_equals: z.ZodOptional<z.ZodString>;
64
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
65
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
66
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
67
+ bot_family: z.ZodOptional<z.ZodString>;
68
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
69
+ host: z.ZodOptional<z.ZodString>;
70
+ host_suffix: z.ZodOptional<z.ZodString>;
71
+ path_prefix: z.ZodOptional<z.ZodString>;
72
+ path_equals: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ host?: string | undefined;
75
+ host_suffix?: string | undefined;
76
+ path_prefix?: string | undefined;
77
+ path_equals?: string | undefined;
78
+ }, {
79
+ host?: string | undefined;
80
+ host_suffix?: string | undefined;
81
+ path_prefix?: string | undefined;
82
+ path_equals?: string | undefined;
83
+ }>, CaptureRuleUrlMatcher, {
84
+ host?: string | undefined;
85
+ host_suffix?: string | undefined;
86
+ path_prefix?: string | undefined;
87
+ path_equals?: string | undefined;
88
+ }>, CaptureRuleUrlMatcher, {
89
+ host?: string | undefined;
90
+ host_suffix?: string | undefined;
91
+ path_prefix?: string | undefined;
92
+ path_equals?: string | undefined;
93
+ }>>;
94
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
95
+ host: z.ZodOptional<z.ZodString>;
96
+ host_suffix: z.ZodOptional<z.ZodString>;
97
+ path_prefix: z.ZodOptional<z.ZodString>;
98
+ path_equals: z.ZodOptional<z.ZodString>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ host?: string | undefined;
101
+ host_suffix?: string | undefined;
102
+ path_prefix?: string | undefined;
103
+ path_equals?: string | undefined;
104
+ }, {
105
+ host?: string | undefined;
106
+ host_suffix?: string | undefined;
107
+ path_prefix?: string | undefined;
108
+ path_equals?: string | undefined;
109
+ }>, CaptureRuleUrlMatcher, {
110
+ host?: string | undefined;
111
+ host_suffix?: string | undefined;
112
+ path_prefix?: string | undefined;
113
+ path_equals?: string | undefined;
114
+ }>, CaptureRuleUrlMatcher, {
115
+ host?: string | undefined;
116
+ host_suffix?: string | undefined;
117
+ path_prefix?: string | undefined;
118
+ path_equals?: string | undefined;
119
+ }>>;
120
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
121
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
122
+ start: z.ZodNumber;
123
+ end: z.ZodNumber;
124
+ }, "strip", z.ZodTypeAny, {
125
+ start: number;
126
+ end: number;
127
+ }, {
128
+ start: number;
129
+ end: number;
130
+ }>, {
131
+ start: number;
132
+ end: number;
133
+ }, {
134
+ start: number;
135
+ end: number;
136
+ }>, "many">>;
137
+ fingerprint: z.ZodOptional<z.ZodObject<{
138
+ version: z.ZodString;
139
+ value: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ value: string;
142
+ version: string;
143
+ }, {
144
+ value: string;
145
+ version: string;
146
+ }>>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
149
+ services?: string[] | undefined;
150
+ environments?: string[] | undefined;
151
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
152
+ first_party?: boolean | undefined;
153
+ error_name?: string | undefined;
154
+ message_contains?: string | undefined;
155
+ message_equals?: string | undefined;
156
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
157
+ browser_event_opaque?: boolean | undefined;
158
+ client_kind?: "unknown" | "human" | "bot" | undefined;
159
+ bot_family?: string | undefined;
160
+ resource_url?: CaptureRuleUrlMatcher | undefined;
161
+ request_url?: CaptureRuleUrlMatcher | undefined;
162
+ status_codes?: number[] | undefined;
163
+ status_ranges?: {
164
+ start: number;
165
+ end: number;
166
+ }[] | undefined;
167
+ fingerprint?: {
168
+ value: string;
169
+ version: string;
170
+ } | undefined;
171
+ }, {
172
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
173
+ services?: string[] | undefined;
174
+ environments?: string[] | undefined;
175
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
176
+ first_party?: boolean | undefined;
177
+ error_name?: string | undefined;
178
+ message_contains?: string | undefined;
179
+ message_equals?: string | undefined;
180
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
181
+ browser_event_opaque?: boolean | undefined;
182
+ client_kind?: "unknown" | "human" | "bot" | undefined;
183
+ bot_family?: string | undefined;
184
+ resource_url?: {
185
+ host?: string | undefined;
186
+ host_suffix?: string | undefined;
187
+ path_prefix?: string | undefined;
188
+ path_equals?: string | undefined;
189
+ } | undefined;
190
+ request_url?: {
191
+ host?: string | undefined;
192
+ host_suffix?: string | undefined;
193
+ path_prefix?: string | undefined;
194
+ path_equals?: string | undefined;
195
+ } | undefined;
196
+ status_codes?: number[] | undefined;
197
+ status_ranges?: {
198
+ start: number;
199
+ end: number;
200
+ }[] | undefined;
201
+ fingerprint?: {
202
+ value: string;
203
+ version: string;
204
+ } | undefined;
205
+ }>, CaptureRuleMatcher, {
206
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
207
+ services?: string[] | undefined;
208
+ environments?: string[] | undefined;
209
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
210
+ first_party?: boolean | undefined;
211
+ error_name?: string | undefined;
212
+ message_contains?: string | undefined;
213
+ message_equals?: string | undefined;
214
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
215
+ browser_event_opaque?: boolean | undefined;
216
+ client_kind?: "unknown" | "human" | "bot" | undefined;
217
+ bot_family?: string | undefined;
218
+ resource_url?: {
219
+ host?: string | undefined;
220
+ host_suffix?: string | undefined;
221
+ path_prefix?: string | undefined;
222
+ path_equals?: string | undefined;
223
+ } | undefined;
224
+ request_url?: {
225
+ host?: string | undefined;
226
+ host_suffix?: string | undefined;
227
+ path_prefix?: string | undefined;
228
+ path_equals?: string | undefined;
229
+ } | undefined;
230
+ status_codes?: number[] | undefined;
231
+ status_ranges?: {
232
+ start: number;
233
+ end: number;
234
+ }[] | undefined;
235
+ fingerprint?: {
236
+ value: string;
237
+ version: string;
238
+ } | undefined;
239
+ }>, CaptureRuleMatcher, {
240
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
241
+ services?: string[] | undefined;
242
+ environments?: string[] | undefined;
243
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
244
+ first_party?: boolean | undefined;
245
+ error_name?: string | undefined;
246
+ message_contains?: string | undefined;
247
+ message_equals?: string | undefined;
248
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
249
+ browser_event_opaque?: boolean | undefined;
250
+ client_kind?: "unknown" | "human" | "bot" | undefined;
251
+ bot_family?: string | undefined;
252
+ resource_url?: {
253
+ host?: string | undefined;
254
+ host_suffix?: string | undefined;
255
+ path_prefix?: string | undefined;
256
+ path_equals?: string | undefined;
257
+ } | undefined;
258
+ request_url?: {
259
+ host?: string | undefined;
260
+ host_suffix?: string | undefined;
261
+ path_prefix?: string | undefined;
262
+ path_equals?: string | undefined;
263
+ } | undefined;
264
+ status_codes?: number[] | undefined;
265
+ status_ranges?: {
266
+ start: number;
267
+ end: number;
268
+ }[] | undefined;
269
+ fingerprint?: {
270
+ value: string;
271
+ version: string;
272
+ } | undefined;
273
+ }>;
274
+ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
275
+ name: z.ZodString;
276
+ description: z.ZodNullable<z.ZodString>;
277
+ enabled: z.ZodBoolean;
278
+ action: z.ZodEnum<["demote", "sample", "drop"]>;
279
+ matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
280
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
281
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
284
+ first_party: z.ZodOptional<z.ZodBoolean>;
285
+ error_name: z.ZodOptional<z.ZodString>;
286
+ message_contains: z.ZodOptional<z.ZodString>;
287
+ message_equals: z.ZodOptional<z.ZodString>;
288
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
289
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
290
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
291
+ bot_family: z.ZodOptional<z.ZodString>;
292
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
293
+ host: z.ZodOptional<z.ZodString>;
294
+ host_suffix: z.ZodOptional<z.ZodString>;
295
+ path_prefix: z.ZodOptional<z.ZodString>;
296
+ path_equals: z.ZodOptional<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ host?: string | undefined;
299
+ host_suffix?: string | undefined;
300
+ path_prefix?: string | undefined;
301
+ path_equals?: string | undefined;
302
+ }, {
303
+ host?: string | undefined;
304
+ host_suffix?: string | undefined;
305
+ path_prefix?: string | undefined;
306
+ path_equals?: string | undefined;
307
+ }>, CaptureRuleUrlMatcher, {
308
+ host?: string | undefined;
309
+ host_suffix?: string | undefined;
310
+ path_prefix?: string | undefined;
311
+ path_equals?: string | undefined;
312
+ }>, CaptureRuleUrlMatcher, {
313
+ host?: string | undefined;
314
+ host_suffix?: string | undefined;
315
+ path_prefix?: string | undefined;
316
+ path_equals?: string | undefined;
317
+ }>>;
318
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
319
+ host: z.ZodOptional<z.ZodString>;
320
+ host_suffix: z.ZodOptional<z.ZodString>;
321
+ path_prefix: z.ZodOptional<z.ZodString>;
322
+ path_equals: z.ZodOptional<z.ZodString>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ host?: string | undefined;
325
+ host_suffix?: string | undefined;
326
+ path_prefix?: string | undefined;
327
+ path_equals?: string | undefined;
328
+ }, {
329
+ host?: string | undefined;
330
+ host_suffix?: string | undefined;
331
+ path_prefix?: string | undefined;
332
+ path_equals?: string | undefined;
333
+ }>, CaptureRuleUrlMatcher, {
334
+ host?: string | undefined;
335
+ host_suffix?: string | undefined;
336
+ path_prefix?: string | undefined;
337
+ path_equals?: string | undefined;
338
+ }>, CaptureRuleUrlMatcher, {
339
+ host?: string | undefined;
340
+ host_suffix?: string | undefined;
341
+ path_prefix?: string | undefined;
342
+ path_equals?: string | undefined;
343
+ }>>;
344
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
345
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
346
+ start: z.ZodNumber;
347
+ end: z.ZodNumber;
348
+ }, "strip", z.ZodTypeAny, {
349
+ start: number;
350
+ end: number;
351
+ }, {
352
+ start: number;
353
+ end: number;
354
+ }>, {
355
+ start: number;
356
+ end: number;
357
+ }, {
358
+ start: number;
359
+ end: number;
360
+ }>, "many">>;
361
+ fingerprint: z.ZodOptional<z.ZodObject<{
362
+ version: z.ZodString;
363
+ value: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ value: string;
366
+ version: string;
367
+ }, {
368
+ value: string;
369
+ version: string;
370
+ }>>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
373
+ services?: string[] | undefined;
374
+ environments?: string[] | undefined;
375
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
376
+ first_party?: boolean | undefined;
377
+ error_name?: string | undefined;
378
+ message_contains?: string | undefined;
379
+ message_equals?: string | undefined;
380
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
381
+ browser_event_opaque?: boolean | undefined;
382
+ client_kind?: "unknown" | "human" | "bot" | undefined;
383
+ bot_family?: string | undefined;
384
+ resource_url?: CaptureRuleUrlMatcher | undefined;
385
+ request_url?: CaptureRuleUrlMatcher | undefined;
386
+ status_codes?: number[] | undefined;
387
+ status_ranges?: {
388
+ start: number;
389
+ end: number;
390
+ }[] | undefined;
391
+ fingerprint?: {
392
+ value: string;
393
+ version: string;
394
+ } | undefined;
395
+ }, {
396
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
397
+ services?: string[] | undefined;
398
+ environments?: string[] | undefined;
399
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
400
+ first_party?: boolean | undefined;
401
+ error_name?: string | undefined;
402
+ message_contains?: string | undefined;
403
+ message_equals?: string | undefined;
404
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
405
+ browser_event_opaque?: boolean | undefined;
406
+ client_kind?: "unknown" | "human" | "bot" | undefined;
407
+ bot_family?: string | undefined;
408
+ resource_url?: {
409
+ host?: string | undefined;
410
+ host_suffix?: string | undefined;
411
+ path_prefix?: string | undefined;
412
+ path_equals?: string | undefined;
413
+ } | undefined;
414
+ request_url?: {
415
+ host?: string | undefined;
416
+ host_suffix?: string | undefined;
417
+ path_prefix?: string | undefined;
418
+ path_equals?: string | undefined;
419
+ } | undefined;
420
+ status_codes?: number[] | undefined;
421
+ status_ranges?: {
422
+ start: number;
423
+ end: number;
424
+ }[] | undefined;
425
+ fingerprint?: {
426
+ value: string;
427
+ version: string;
428
+ } | undefined;
429
+ }>, CaptureRuleMatcher, {
430
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
431
+ services?: string[] | undefined;
432
+ environments?: string[] | undefined;
433
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
434
+ first_party?: boolean | undefined;
435
+ error_name?: string | undefined;
436
+ message_contains?: string | undefined;
437
+ message_equals?: string | undefined;
438
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
439
+ browser_event_opaque?: boolean | undefined;
440
+ client_kind?: "unknown" | "human" | "bot" | undefined;
441
+ bot_family?: string | undefined;
442
+ resource_url?: {
443
+ host?: string | undefined;
444
+ host_suffix?: string | undefined;
445
+ path_prefix?: string | undefined;
446
+ path_equals?: string | undefined;
447
+ } | undefined;
448
+ request_url?: {
449
+ host?: string | undefined;
450
+ host_suffix?: string | undefined;
451
+ path_prefix?: string | undefined;
452
+ path_equals?: string | undefined;
453
+ } | undefined;
454
+ status_codes?: number[] | undefined;
455
+ status_ranges?: {
456
+ start: number;
457
+ end: number;
458
+ }[] | undefined;
459
+ fingerprint?: {
460
+ value: string;
461
+ version: string;
462
+ } | undefined;
463
+ }>, CaptureRuleMatcher, {
464
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
465
+ services?: string[] | undefined;
466
+ environments?: string[] | undefined;
467
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
468
+ first_party?: boolean | undefined;
469
+ error_name?: string | undefined;
470
+ message_contains?: string | undefined;
471
+ message_equals?: string | undefined;
472
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
473
+ browser_event_opaque?: boolean | undefined;
474
+ client_kind?: "unknown" | "human" | "bot" | undefined;
475
+ bot_family?: string | undefined;
476
+ resource_url?: {
477
+ host?: string | undefined;
478
+ host_suffix?: string | undefined;
479
+ path_prefix?: string | undefined;
480
+ path_equals?: string | undefined;
481
+ } | undefined;
482
+ request_url?: {
483
+ host?: string | undefined;
484
+ host_suffix?: string | undefined;
485
+ path_prefix?: string | undefined;
486
+ path_equals?: string | undefined;
487
+ } | undefined;
488
+ status_codes?: number[] | undefined;
489
+ status_ranges?: {
490
+ start: number;
491
+ end: number;
492
+ }[] | undefined;
493
+ fingerprint?: {
494
+ value: string;
495
+ version: string;
496
+ } | undefined;
497
+ }>;
498
+ sample_rate: z.ZodNullable<z.ZodNumber>;
499
+ sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
500
+ created_by_user_id: z.ZodNullable<z.ZodString>;
501
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
502
+ created_from_event_id: z.ZodNullable<z.ZodString>;
503
+ expires_at: z.ZodNullable<z.ZodString>;
504
+ } & {
505
+ id: z.ZodString;
506
+ project_id: z.ZodString;
507
+ hit_count: z.ZodNumber;
508
+ last_matched_at: z.ZodNullable<z.ZodString>;
509
+ created_at: z.ZodString;
510
+ updated_at: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ project_id: string;
513
+ updated_at: string;
514
+ name: string;
515
+ description: string | null;
516
+ enabled: boolean;
517
+ action: "demote" | "sample" | "drop";
518
+ matcher: CaptureRuleMatcher;
519
+ sample_rate: number | null;
520
+ sample_event_class: "preserve" | "context" | null;
521
+ created_by_user_id: string | null;
522
+ created_from_incident_id: string | null;
523
+ created_from_event_id: string | null;
524
+ expires_at: string | null;
525
+ id: string;
526
+ hit_count: number;
527
+ last_matched_at: string | null;
528
+ created_at: string;
529
+ }, {
530
+ project_id: string;
531
+ updated_at: string;
532
+ name: string;
533
+ description: string | null;
534
+ enabled: boolean;
535
+ action: "demote" | "sample" | "drop";
536
+ matcher: {
537
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
538
+ services?: string[] | undefined;
539
+ environments?: string[] | undefined;
540
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
541
+ first_party?: boolean | undefined;
542
+ error_name?: string | undefined;
543
+ message_contains?: string | undefined;
544
+ message_equals?: string | undefined;
545
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
546
+ browser_event_opaque?: boolean | undefined;
547
+ client_kind?: "unknown" | "human" | "bot" | undefined;
548
+ bot_family?: string | undefined;
549
+ resource_url?: {
550
+ host?: string | undefined;
551
+ host_suffix?: string | undefined;
552
+ path_prefix?: string | undefined;
553
+ path_equals?: string | undefined;
554
+ } | undefined;
555
+ request_url?: {
556
+ host?: string | undefined;
557
+ host_suffix?: string | undefined;
558
+ path_prefix?: string | undefined;
559
+ path_equals?: string | undefined;
560
+ } | undefined;
561
+ status_codes?: number[] | undefined;
562
+ status_ranges?: {
563
+ start: number;
564
+ end: number;
565
+ }[] | undefined;
566
+ fingerprint?: {
567
+ value: string;
568
+ version: string;
569
+ } | undefined;
570
+ };
571
+ sample_rate: number | null;
572
+ sample_event_class: "preserve" | "context" | null;
573
+ created_by_user_id: string | null;
574
+ created_from_incident_id: string | null;
575
+ created_from_event_id: string | null;
576
+ expires_at: string | null;
577
+ id: string;
578
+ hit_count: number;
579
+ last_matched_at: string | null;
580
+ created_at: string;
581
+ }>, {
582
+ project_id: string;
583
+ updated_at: string;
584
+ name: string;
585
+ description: string | null;
586
+ enabled: boolean;
587
+ action: "demote" | "sample" | "drop";
588
+ matcher: CaptureRuleMatcher;
589
+ sample_rate: number | null;
590
+ sample_event_class: "preserve" | "context" | null;
591
+ created_by_user_id: string | null;
592
+ created_from_incident_id: string | null;
593
+ created_from_event_id: string | null;
594
+ expires_at: string | null;
595
+ id: string;
596
+ hit_count: number;
597
+ last_matched_at: string | null;
598
+ created_at: string;
599
+ }, {
600
+ project_id: string;
601
+ updated_at: string;
602
+ name: string;
603
+ description: string | null;
604
+ enabled: boolean;
605
+ action: "demote" | "sample" | "drop";
606
+ matcher: {
607
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
608
+ services?: string[] | undefined;
609
+ environments?: string[] | undefined;
610
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
611
+ first_party?: boolean | undefined;
612
+ error_name?: string | undefined;
613
+ message_contains?: string | undefined;
614
+ message_equals?: string | undefined;
615
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
616
+ browser_event_opaque?: boolean | undefined;
617
+ client_kind?: "unknown" | "human" | "bot" | undefined;
618
+ bot_family?: string | undefined;
619
+ resource_url?: {
620
+ host?: string | undefined;
621
+ host_suffix?: string | undefined;
622
+ path_prefix?: string | undefined;
623
+ path_equals?: string | undefined;
624
+ } | undefined;
625
+ request_url?: {
626
+ host?: string | undefined;
627
+ host_suffix?: string | undefined;
628
+ path_prefix?: string | undefined;
629
+ path_equals?: string | undefined;
630
+ } | undefined;
631
+ status_codes?: number[] | undefined;
632
+ status_ranges?: {
633
+ start: number;
634
+ end: number;
635
+ }[] | undefined;
636
+ fingerprint?: {
637
+ value: string;
638
+ version: string;
639
+ } | undefined;
640
+ };
641
+ sample_rate: number | null;
642
+ sample_event_class: "preserve" | "context" | null;
643
+ created_by_user_id: string | null;
644
+ created_from_incident_id: string | null;
645
+ created_from_event_id: string | null;
646
+ expires_at: string | null;
647
+ id: string;
648
+ hit_count: number;
649
+ last_matched_at: string | null;
650
+ created_at: string;
651
+ }>;
652
+ export type CaptureRule = z.infer<typeof CaptureRuleSchema>;
653
+ export declare const CaptureRuleCreateSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
654
+ name: z.ZodString;
655
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
656
+ enabled: z.ZodDefault<z.ZodBoolean>;
657
+ action: z.ZodEnum<["demote", "sample", "drop"]>;
658
+ matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
659
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
660
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
661
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
662
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
663
+ first_party: z.ZodOptional<z.ZodBoolean>;
664
+ error_name: z.ZodOptional<z.ZodString>;
665
+ message_contains: z.ZodOptional<z.ZodString>;
666
+ message_equals: z.ZodOptional<z.ZodString>;
667
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
668
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
669
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
670
+ bot_family: z.ZodOptional<z.ZodString>;
671
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
672
+ host: z.ZodOptional<z.ZodString>;
673
+ host_suffix: z.ZodOptional<z.ZodString>;
674
+ path_prefix: z.ZodOptional<z.ZodString>;
675
+ path_equals: z.ZodOptional<z.ZodString>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ host?: string | undefined;
678
+ host_suffix?: string | undefined;
679
+ path_prefix?: string | undefined;
680
+ path_equals?: string | undefined;
681
+ }, {
682
+ host?: string | undefined;
683
+ host_suffix?: string | undefined;
684
+ path_prefix?: string | undefined;
685
+ path_equals?: string | undefined;
686
+ }>, CaptureRuleUrlMatcher, {
687
+ host?: string | undefined;
688
+ host_suffix?: string | undefined;
689
+ path_prefix?: string | undefined;
690
+ path_equals?: string | undefined;
691
+ }>, CaptureRuleUrlMatcher, {
692
+ host?: string | undefined;
693
+ host_suffix?: string | undefined;
694
+ path_prefix?: string | undefined;
695
+ path_equals?: string | undefined;
696
+ }>>;
697
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
698
+ host: z.ZodOptional<z.ZodString>;
699
+ host_suffix: z.ZodOptional<z.ZodString>;
700
+ path_prefix: z.ZodOptional<z.ZodString>;
701
+ path_equals: z.ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ host?: string | undefined;
704
+ host_suffix?: string | undefined;
705
+ path_prefix?: string | undefined;
706
+ path_equals?: string | undefined;
707
+ }, {
708
+ host?: string | undefined;
709
+ host_suffix?: string | undefined;
710
+ path_prefix?: string | undefined;
711
+ path_equals?: string | undefined;
712
+ }>, CaptureRuleUrlMatcher, {
713
+ host?: string | undefined;
714
+ host_suffix?: string | undefined;
715
+ path_prefix?: string | undefined;
716
+ path_equals?: string | undefined;
717
+ }>, CaptureRuleUrlMatcher, {
718
+ host?: string | undefined;
719
+ host_suffix?: string | undefined;
720
+ path_prefix?: string | undefined;
721
+ path_equals?: string | undefined;
722
+ }>>;
723
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
724
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
725
+ start: z.ZodNumber;
726
+ end: z.ZodNumber;
727
+ }, "strip", z.ZodTypeAny, {
728
+ start: number;
729
+ end: number;
730
+ }, {
731
+ start: number;
732
+ end: number;
733
+ }>, {
734
+ start: number;
735
+ end: number;
736
+ }, {
737
+ start: number;
738
+ end: number;
739
+ }>, "many">>;
740
+ fingerprint: z.ZodOptional<z.ZodObject<{
741
+ version: z.ZodString;
742
+ value: z.ZodString;
743
+ }, "strip", z.ZodTypeAny, {
744
+ value: string;
745
+ version: string;
746
+ }, {
747
+ value: string;
748
+ version: string;
749
+ }>>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
752
+ services?: string[] | undefined;
753
+ environments?: string[] | undefined;
754
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
755
+ first_party?: boolean | undefined;
756
+ error_name?: string | undefined;
757
+ message_contains?: string | undefined;
758
+ message_equals?: string | undefined;
759
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
760
+ browser_event_opaque?: boolean | undefined;
761
+ client_kind?: "unknown" | "human" | "bot" | undefined;
762
+ bot_family?: string | undefined;
763
+ resource_url?: CaptureRuleUrlMatcher | undefined;
764
+ request_url?: CaptureRuleUrlMatcher | undefined;
765
+ status_codes?: number[] | undefined;
766
+ status_ranges?: {
767
+ start: number;
768
+ end: number;
769
+ }[] | undefined;
770
+ fingerprint?: {
771
+ value: string;
772
+ version: string;
773
+ } | undefined;
774
+ }, {
775
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
776
+ services?: string[] | undefined;
777
+ environments?: string[] | undefined;
778
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
779
+ first_party?: boolean | undefined;
780
+ error_name?: string | undefined;
781
+ message_contains?: string | undefined;
782
+ message_equals?: string | undefined;
783
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
784
+ browser_event_opaque?: boolean | undefined;
785
+ client_kind?: "unknown" | "human" | "bot" | undefined;
786
+ bot_family?: string | undefined;
787
+ resource_url?: {
788
+ host?: string | undefined;
789
+ host_suffix?: string | undefined;
790
+ path_prefix?: string | undefined;
791
+ path_equals?: string | undefined;
792
+ } | undefined;
793
+ request_url?: {
794
+ host?: string | undefined;
795
+ host_suffix?: string | undefined;
796
+ path_prefix?: string | undefined;
797
+ path_equals?: string | undefined;
798
+ } | undefined;
799
+ status_codes?: number[] | undefined;
800
+ status_ranges?: {
801
+ start: number;
802
+ end: number;
803
+ }[] | undefined;
804
+ fingerprint?: {
805
+ value: string;
806
+ version: string;
807
+ } | undefined;
808
+ }>, CaptureRuleMatcher, {
809
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
810
+ services?: string[] | undefined;
811
+ environments?: string[] | undefined;
812
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
813
+ first_party?: boolean | undefined;
814
+ error_name?: string | undefined;
815
+ message_contains?: string | undefined;
816
+ message_equals?: string | undefined;
817
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
818
+ browser_event_opaque?: boolean | undefined;
819
+ client_kind?: "unknown" | "human" | "bot" | undefined;
820
+ bot_family?: string | undefined;
821
+ resource_url?: {
822
+ host?: string | undefined;
823
+ host_suffix?: string | undefined;
824
+ path_prefix?: string | undefined;
825
+ path_equals?: string | undefined;
826
+ } | undefined;
827
+ request_url?: {
828
+ host?: string | undefined;
829
+ host_suffix?: string | undefined;
830
+ path_prefix?: string | undefined;
831
+ path_equals?: string | undefined;
832
+ } | undefined;
833
+ status_codes?: number[] | undefined;
834
+ status_ranges?: {
835
+ start: number;
836
+ end: number;
837
+ }[] | undefined;
838
+ fingerprint?: {
839
+ value: string;
840
+ version: string;
841
+ } | undefined;
842
+ }>, CaptureRuleMatcher, {
843
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
844
+ services?: string[] | undefined;
845
+ environments?: string[] | undefined;
846
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
847
+ first_party?: boolean | undefined;
848
+ error_name?: string | undefined;
849
+ message_contains?: string | undefined;
850
+ message_equals?: string | undefined;
851
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
852
+ browser_event_opaque?: boolean | undefined;
853
+ client_kind?: "unknown" | "human" | "bot" | undefined;
854
+ bot_family?: string | undefined;
855
+ resource_url?: {
856
+ host?: string | undefined;
857
+ host_suffix?: string | undefined;
858
+ path_prefix?: string | undefined;
859
+ path_equals?: string | undefined;
860
+ } | undefined;
861
+ request_url?: {
862
+ host?: string | undefined;
863
+ host_suffix?: string | undefined;
864
+ path_prefix?: string | undefined;
865
+ path_equals?: string | undefined;
866
+ } | undefined;
867
+ status_codes?: number[] | undefined;
868
+ status_ranges?: {
869
+ start: number;
870
+ end: number;
871
+ }[] | undefined;
872
+ fingerprint?: {
873
+ value: string;
874
+ version: string;
875
+ } | undefined;
876
+ }>;
877
+ sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
878
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
879
+ created_by_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
880
+ created_from_incident_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
881
+ created_from_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
882
+ expires_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ name: string;
885
+ description: string | null;
886
+ enabled: boolean;
887
+ action: "demote" | "sample" | "drop";
888
+ matcher: CaptureRuleMatcher;
889
+ created_by_user_id: string | null;
890
+ created_from_incident_id: string | null;
891
+ created_from_event_id: string | null;
892
+ expires_at: string | null;
893
+ sample_rate?: number | null | undefined;
894
+ sample_event_class?: "preserve" | "context" | null | undefined;
895
+ }, {
896
+ name: string;
897
+ action: "demote" | "sample" | "drop";
898
+ matcher: {
899
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
900
+ services?: string[] | undefined;
901
+ environments?: string[] | undefined;
902
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
903
+ first_party?: boolean | undefined;
904
+ error_name?: string | undefined;
905
+ message_contains?: string | undefined;
906
+ message_equals?: string | undefined;
907
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
908
+ browser_event_opaque?: boolean | undefined;
909
+ client_kind?: "unknown" | "human" | "bot" | undefined;
910
+ bot_family?: string | undefined;
911
+ resource_url?: {
912
+ host?: string | undefined;
913
+ host_suffix?: string | undefined;
914
+ path_prefix?: string | undefined;
915
+ path_equals?: string | undefined;
916
+ } | undefined;
917
+ request_url?: {
918
+ host?: string | undefined;
919
+ host_suffix?: string | undefined;
920
+ path_prefix?: string | undefined;
921
+ path_equals?: string | undefined;
922
+ } | undefined;
923
+ status_codes?: number[] | undefined;
924
+ status_ranges?: {
925
+ start: number;
926
+ end: number;
927
+ }[] | undefined;
928
+ fingerprint?: {
929
+ value: string;
930
+ version: string;
931
+ } | undefined;
932
+ };
933
+ description?: string | null | undefined;
934
+ enabled?: boolean | undefined;
935
+ sample_rate?: number | null | undefined;
936
+ sample_event_class?: "preserve" | "context" | null | undefined;
937
+ created_by_user_id?: string | null | undefined;
938
+ created_from_incident_id?: string | null | undefined;
939
+ created_from_event_id?: string | null | undefined;
940
+ expires_at?: string | null | undefined;
941
+ }>, {
942
+ name: string;
943
+ description: string | null;
944
+ enabled: boolean;
945
+ action: "demote" | "sample" | "drop";
946
+ matcher: CaptureRuleMatcher;
947
+ created_by_user_id: string | null;
948
+ created_from_incident_id: string | null;
949
+ created_from_event_id: string | null;
950
+ expires_at: string | null;
951
+ sample_rate?: number | null | undefined;
952
+ sample_event_class?: "preserve" | "context" | null | undefined;
953
+ }, {
954
+ name: string;
955
+ action: "demote" | "sample" | "drop";
956
+ matcher: {
957
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
958
+ services?: string[] | undefined;
959
+ environments?: string[] | undefined;
960
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
961
+ first_party?: boolean | undefined;
962
+ error_name?: string | undefined;
963
+ message_contains?: string | undefined;
964
+ message_equals?: string | undefined;
965
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
966
+ browser_event_opaque?: boolean | undefined;
967
+ client_kind?: "unknown" | "human" | "bot" | undefined;
968
+ bot_family?: string | undefined;
969
+ resource_url?: {
970
+ host?: string | undefined;
971
+ host_suffix?: string | undefined;
972
+ path_prefix?: string | undefined;
973
+ path_equals?: string | undefined;
974
+ } | undefined;
975
+ request_url?: {
976
+ host?: string | undefined;
977
+ host_suffix?: string | undefined;
978
+ path_prefix?: string | undefined;
979
+ path_equals?: string | undefined;
980
+ } | undefined;
981
+ status_codes?: number[] | undefined;
982
+ status_ranges?: {
983
+ start: number;
984
+ end: number;
985
+ }[] | undefined;
986
+ fingerprint?: {
987
+ value: string;
988
+ version: string;
989
+ } | undefined;
990
+ };
991
+ description?: string | null | undefined;
992
+ enabled?: boolean | undefined;
993
+ sample_rate?: number | null | undefined;
994
+ sample_event_class?: "preserve" | "context" | null | undefined;
995
+ created_by_user_id?: string | null | undefined;
996
+ created_from_incident_id?: string | null | undefined;
997
+ created_from_event_id?: string | null | undefined;
998
+ expires_at?: string | null | undefined;
999
+ }>, {
1000
+ sample_rate: number | null;
1001
+ sample_event_class: "preserve" | "context" | null;
1002
+ name: string;
1003
+ description: string | null;
1004
+ enabled: boolean;
1005
+ action: "demote" | "sample" | "drop";
1006
+ matcher: CaptureRuleMatcher;
1007
+ created_by_user_id: string | null;
1008
+ created_from_incident_id: string | null;
1009
+ created_from_event_id: string | null;
1010
+ expires_at: string | null;
1011
+ }, {
1012
+ name: string;
1013
+ action: "demote" | "sample" | "drop";
1014
+ matcher: {
1015
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1016
+ services?: string[] | undefined;
1017
+ environments?: string[] | undefined;
1018
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1019
+ first_party?: boolean | undefined;
1020
+ error_name?: string | undefined;
1021
+ message_contains?: string | undefined;
1022
+ message_equals?: string | undefined;
1023
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1024
+ browser_event_opaque?: boolean | undefined;
1025
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1026
+ bot_family?: string | undefined;
1027
+ resource_url?: {
1028
+ host?: string | undefined;
1029
+ host_suffix?: string | undefined;
1030
+ path_prefix?: string | undefined;
1031
+ path_equals?: string | undefined;
1032
+ } | undefined;
1033
+ request_url?: {
1034
+ host?: string | undefined;
1035
+ host_suffix?: string | undefined;
1036
+ path_prefix?: string | undefined;
1037
+ path_equals?: string | undefined;
1038
+ } | undefined;
1039
+ status_codes?: number[] | undefined;
1040
+ status_ranges?: {
1041
+ start: number;
1042
+ end: number;
1043
+ }[] | undefined;
1044
+ fingerprint?: {
1045
+ value: string;
1046
+ version: string;
1047
+ } | undefined;
1048
+ };
1049
+ description?: string | null | undefined;
1050
+ enabled?: boolean | undefined;
1051
+ sample_rate?: number | null | undefined;
1052
+ sample_event_class?: "preserve" | "context" | null | undefined;
1053
+ created_by_user_id?: string | null | undefined;
1054
+ created_from_incident_id?: string | null | undefined;
1055
+ created_from_event_id?: string | null | undefined;
1056
+ expires_at?: string | null | undefined;
1057
+ }>;
1058
+ export type CaptureRuleCreate = z.infer<typeof CaptureRuleCreateSchema>;
1059
+ export declare const CaptureRuleUpdateSchema: z.ZodEffects<z.ZodObject<{
1060
+ name: z.ZodOptional<z.ZodString>;
1061
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
+ enabled: z.ZodOptional<z.ZodBoolean>;
1063
+ action: z.ZodOptional<z.ZodEnum<["demote", "sample", "drop"]>>;
1064
+ matcher: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1065
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
1066
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1067
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1068
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
1069
+ first_party: z.ZodOptional<z.ZodBoolean>;
1070
+ error_name: z.ZodOptional<z.ZodString>;
1071
+ message_contains: z.ZodOptional<z.ZodString>;
1072
+ message_equals: z.ZodOptional<z.ZodString>;
1073
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
1074
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1075
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
1076
+ bot_family: z.ZodOptional<z.ZodString>;
1077
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1078
+ host: z.ZodOptional<z.ZodString>;
1079
+ host_suffix: z.ZodOptional<z.ZodString>;
1080
+ path_prefix: z.ZodOptional<z.ZodString>;
1081
+ path_equals: z.ZodOptional<z.ZodString>;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ host?: string | undefined;
1084
+ host_suffix?: string | undefined;
1085
+ path_prefix?: string | undefined;
1086
+ path_equals?: string | undefined;
1087
+ }, {
1088
+ host?: string | undefined;
1089
+ host_suffix?: string | undefined;
1090
+ path_prefix?: string | undefined;
1091
+ path_equals?: string | undefined;
1092
+ }>, CaptureRuleUrlMatcher, {
1093
+ host?: string | undefined;
1094
+ host_suffix?: string | undefined;
1095
+ path_prefix?: string | undefined;
1096
+ path_equals?: string | undefined;
1097
+ }>, CaptureRuleUrlMatcher, {
1098
+ host?: string | undefined;
1099
+ host_suffix?: string | undefined;
1100
+ path_prefix?: string | undefined;
1101
+ path_equals?: string | undefined;
1102
+ }>>;
1103
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1104
+ host: z.ZodOptional<z.ZodString>;
1105
+ host_suffix: z.ZodOptional<z.ZodString>;
1106
+ path_prefix: z.ZodOptional<z.ZodString>;
1107
+ path_equals: z.ZodOptional<z.ZodString>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ host?: string | undefined;
1110
+ host_suffix?: string | undefined;
1111
+ path_prefix?: string | undefined;
1112
+ path_equals?: string | undefined;
1113
+ }, {
1114
+ host?: string | undefined;
1115
+ host_suffix?: string | undefined;
1116
+ path_prefix?: string | undefined;
1117
+ path_equals?: string | undefined;
1118
+ }>, CaptureRuleUrlMatcher, {
1119
+ host?: string | undefined;
1120
+ host_suffix?: string | undefined;
1121
+ path_prefix?: string | undefined;
1122
+ path_equals?: string | undefined;
1123
+ }>, CaptureRuleUrlMatcher, {
1124
+ host?: string | undefined;
1125
+ host_suffix?: string | undefined;
1126
+ path_prefix?: string | undefined;
1127
+ path_equals?: string | undefined;
1128
+ }>>;
1129
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1130
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1131
+ start: z.ZodNumber;
1132
+ end: z.ZodNumber;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ start: number;
1135
+ end: number;
1136
+ }, {
1137
+ start: number;
1138
+ end: number;
1139
+ }>, {
1140
+ start: number;
1141
+ end: number;
1142
+ }, {
1143
+ start: number;
1144
+ end: number;
1145
+ }>, "many">>;
1146
+ fingerprint: z.ZodOptional<z.ZodObject<{
1147
+ version: z.ZodString;
1148
+ value: z.ZodString;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ value: string;
1151
+ version: string;
1152
+ }, {
1153
+ value: string;
1154
+ version: string;
1155
+ }>>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1158
+ services?: string[] | undefined;
1159
+ environments?: string[] | undefined;
1160
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1161
+ first_party?: boolean | undefined;
1162
+ error_name?: string | undefined;
1163
+ message_contains?: string | undefined;
1164
+ message_equals?: string | undefined;
1165
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1166
+ browser_event_opaque?: boolean | undefined;
1167
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1168
+ bot_family?: string | undefined;
1169
+ resource_url?: CaptureRuleUrlMatcher | undefined;
1170
+ request_url?: CaptureRuleUrlMatcher | undefined;
1171
+ status_codes?: number[] | undefined;
1172
+ status_ranges?: {
1173
+ start: number;
1174
+ end: number;
1175
+ }[] | undefined;
1176
+ fingerprint?: {
1177
+ value: string;
1178
+ version: string;
1179
+ } | undefined;
1180
+ }, {
1181
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1182
+ services?: string[] | undefined;
1183
+ environments?: string[] | undefined;
1184
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1185
+ first_party?: boolean | undefined;
1186
+ error_name?: string | undefined;
1187
+ message_contains?: string | undefined;
1188
+ message_equals?: string | undefined;
1189
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1190
+ browser_event_opaque?: boolean | undefined;
1191
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1192
+ bot_family?: string | undefined;
1193
+ resource_url?: {
1194
+ host?: string | undefined;
1195
+ host_suffix?: string | undefined;
1196
+ path_prefix?: string | undefined;
1197
+ path_equals?: string | undefined;
1198
+ } | undefined;
1199
+ request_url?: {
1200
+ host?: string | undefined;
1201
+ host_suffix?: string | undefined;
1202
+ path_prefix?: string | undefined;
1203
+ path_equals?: string | undefined;
1204
+ } | undefined;
1205
+ status_codes?: number[] | undefined;
1206
+ status_ranges?: {
1207
+ start: number;
1208
+ end: number;
1209
+ }[] | undefined;
1210
+ fingerprint?: {
1211
+ value: string;
1212
+ version: string;
1213
+ } | undefined;
1214
+ }>, CaptureRuleMatcher, {
1215
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1216
+ services?: string[] | undefined;
1217
+ environments?: string[] | undefined;
1218
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1219
+ first_party?: boolean | undefined;
1220
+ error_name?: string | undefined;
1221
+ message_contains?: string | undefined;
1222
+ message_equals?: string | undefined;
1223
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1224
+ browser_event_opaque?: boolean | undefined;
1225
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1226
+ bot_family?: string | undefined;
1227
+ resource_url?: {
1228
+ host?: string | undefined;
1229
+ host_suffix?: string | undefined;
1230
+ path_prefix?: string | undefined;
1231
+ path_equals?: string | undefined;
1232
+ } | undefined;
1233
+ request_url?: {
1234
+ host?: string | undefined;
1235
+ host_suffix?: string | undefined;
1236
+ path_prefix?: string | undefined;
1237
+ path_equals?: string | undefined;
1238
+ } | undefined;
1239
+ status_codes?: number[] | undefined;
1240
+ status_ranges?: {
1241
+ start: number;
1242
+ end: number;
1243
+ }[] | undefined;
1244
+ fingerprint?: {
1245
+ value: string;
1246
+ version: string;
1247
+ } | undefined;
1248
+ }>, CaptureRuleMatcher, {
1249
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1250
+ services?: string[] | undefined;
1251
+ environments?: string[] | undefined;
1252
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1253
+ first_party?: boolean | undefined;
1254
+ error_name?: string | undefined;
1255
+ message_contains?: string | undefined;
1256
+ message_equals?: string | undefined;
1257
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1258
+ browser_event_opaque?: boolean | undefined;
1259
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1260
+ bot_family?: string | undefined;
1261
+ resource_url?: {
1262
+ host?: string | undefined;
1263
+ host_suffix?: string | undefined;
1264
+ path_prefix?: string | undefined;
1265
+ path_equals?: string | undefined;
1266
+ } | undefined;
1267
+ request_url?: {
1268
+ host?: string | undefined;
1269
+ host_suffix?: string | undefined;
1270
+ path_prefix?: string | undefined;
1271
+ path_equals?: string | undefined;
1272
+ } | undefined;
1273
+ status_codes?: number[] | undefined;
1274
+ status_ranges?: {
1275
+ start: number;
1276
+ end: number;
1277
+ }[] | undefined;
1278
+ fingerprint?: {
1279
+ value: string;
1280
+ version: string;
1281
+ } | undefined;
1282
+ }>>;
1283
+ sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1284
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
1285
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ name?: string | undefined;
1288
+ description?: string | null | undefined;
1289
+ enabled?: boolean | undefined;
1290
+ action?: "demote" | "sample" | "drop" | undefined;
1291
+ matcher?: CaptureRuleMatcher | undefined;
1292
+ sample_rate?: number | null | undefined;
1293
+ sample_event_class?: "preserve" | "context" | null | undefined;
1294
+ expires_at?: string | null | undefined;
1295
+ }, {
1296
+ name?: string | undefined;
1297
+ description?: string | null | undefined;
1298
+ enabled?: boolean | undefined;
1299
+ action?: "demote" | "sample" | "drop" | undefined;
1300
+ matcher?: {
1301
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1302
+ services?: string[] | undefined;
1303
+ environments?: string[] | undefined;
1304
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1305
+ first_party?: boolean | undefined;
1306
+ error_name?: string | undefined;
1307
+ message_contains?: string | undefined;
1308
+ message_equals?: string | undefined;
1309
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1310
+ browser_event_opaque?: boolean | undefined;
1311
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1312
+ bot_family?: string | undefined;
1313
+ resource_url?: {
1314
+ host?: string | undefined;
1315
+ host_suffix?: string | undefined;
1316
+ path_prefix?: string | undefined;
1317
+ path_equals?: string | undefined;
1318
+ } | undefined;
1319
+ request_url?: {
1320
+ host?: string | undefined;
1321
+ host_suffix?: string | undefined;
1322
+ path_prefix?: string | undefined;
1323
+ path_equals?: string | undefined;
1324
+ } | undefined;
1325
+ status_codes?: number[] | undefined;
1326
+ status_ranges?: {
1327
+ start: number;
1328
+ end: number;
1329
+ }[] | undefined;
1330
+ fingerprint?: {
1331
+ value: string;
1332
+ version: string;
1333
+ } | undefined;
1334
+ } | undefined;
1335
+ sample_rate?: number | null | undefined;
1336
+ sample_event_class?: "preserve" | "context" | null | undefined;
1337
+ expires_at?: string | null | undefined;
1338
+ }>, {
1339
+ name?: string | undefined;
1340
+ description?: string | null | undefined;
1341
+ enabled?: boolean | undefined;
1342
+ action?: "demote" | "sample" | "drop" | undefined;
1343
+ matcher?: CaptureRuleMatcher | undefined;
1344
+ sample_rate?: number | null | undefined;
1345
+ sample_event_class?: "preserve" | "context" | null | undefined;
1346
+ expires_at?: string | null | undefined;
1347
+ }, {
1348
+ name?: string | undefined;
1349
+ description?: string | null | undefined;
1350
+ enabled?: boolean | undefined;
1351
+ action?: "demote" | "sample" | "drop" | undefined;
1352
+ matcher?: {
1353
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1354
+ services?: string[] | undefined;
1355
+ environments?: string[] | undefined;
1356
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1357
+ first_party?: boolean | undefined;
1358
+ error_name?: string | undefined;
1359
+ message_contains?: string | undefined;
1360
+ message_equals?: string | undefined;
1361
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1362
+ browser_event_opaque?: boolean | undefined;
1363
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1364
+ bot_family?: string | undefined;
1365
+ resource_url?: {
1366
+ host?: string | undefined;
1367
+ host_suffix?: string | undefined;
1368
+ path_prefix?: string | undefined;
1369
+ path_equals?: string | undefined;
1370
+ } | undefined;
1371
+ request_url?: {
1372
+ host?: string | undefined;
1373
+ host_suffix?: string | undefined;
1374
+ path_prefix?: string | undefined;
1375
+ path_equals?: string | undefined;
1376
+ } | undefined;
1377
+ status_codes?: number[] | undefined;
1378
+ status_ranges?: {
1379
+ start: number;
1380
+ end: number;
1381
+ }[] | undefined;
1382
+ fingerprint?: {
1383
+ value: string;
1384
+ version: string;
1385
+ } | undefined;
1386
+ } | undefined;
1387
+ sample_rate?: number | null | undefined;
1388
+ sample_event_class?: "preserve" | "context" | null | undefined;
1389
+ expires_at?: string | null | undefined;
1390
+ }>;
1391
+ export type CaptureRuleUpdate = z.infer<typeof CaptureRuleUpdateSchema>;
1392
+ export declare const CaptureRuleResponseSchema: z.ZodObject<{
1393
+ rule: z.ZodEffects<z.ZodObject<{
1394
+ name: z.ZodString;
1395
+ description: z.ZodNullable<z.ZodString>;
1396
+ enabled: z.ZodBoolean;
1397
+ action: z.ZodEnum<["demote", "sample", "drop"]>;
1398
+ matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1399
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
1400
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1401
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1402
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
1403
+ first_party: z.ZodOptional<z.ZodBoolean>;
1404
+ error_name: z.ZodOptional<z.ZodString>;
1405
+ message_contains: z.ZodOptional<z.ZodString>;
1406
+ message_equals: z.ZodOptional<z.ZodString>;
1407
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
1408
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1409
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
1410
+ bot_family: z.ZodOptional<z.ZodString>;
1411
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1412
+ host: z.ZodOptional<z.ZodString>;
1413
+ host_suffix: z.ZodOptional<z.ZodString>;
1414
+ path_prefix: z.ZodOptional<z.ZodString>;
1415
+ path_equals: z.ZodOptional<z.ZodString>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ host?: string | undefined;
1418
+ host_suffix?: string | undefined;
1419
+ path_prefix?: string | undefined;
1420
+ path_equals?: string | undefined;
1421
+ }, {
1422
+ host?: string | undefined;
1423
+ host_suffix?: string | undefined;
1424
+ path_prefix?: string | undefined;
1425
+ path_equals?: string | undefined;
1426
+ }>, CaptureRuleUrlMatcher, {
1427
+ host?: string | undefined;
1428
+ host_suffix?: string | undefined;
1429
+ path_prefix?: string | undefined;
1430
+ path_equals?: string | undefined;
1431
+ }>, CaptureRuleUrlMatcher, {
1432
+ host?: string | undefined;
1433
+ host_suffix?: string | undefined;
1434
+ path_prefix?: string | undefined;
1435
+ path_equals?: string | undefined;
1436
+ }>>;
1437
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1438
+ host: z.ZodOptional<z.ZodString>;
1439
+ host_suffix: z.ZodOptional<z.ZodString>;
1440
+ path_prefix: z.ZodOptional<z.ZodString>;
1441
+ path_equals: z.ZodOptional<z.ZodString>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ host?: string | undefined;
1444
+ host_suffix?: string | undefined;
1445
+ path_prefix?: string | undefined;
1446
+ path_equals?: string | undefined;
1447
+ }, {
1448
+ host?: string | undefined;
1449
+ host_suffix?: string | undefined;
1450
+ path_prefix?: string | undefined;
1451
+ path_equals?: string | undefined;
1452
+ }>, CaptureRuleUrlMatcher, {
1453
+ host?: string | undefined;
1454
+ host_suffix?: string | undefined;
1455
+ path_prefix?: string | undefined;
1456
+ path_equals?: string | undefined;
1457
+ }>, CaptureRuleUrlMatcher, {
1458
+ host?: string | undefined;
1459
+ host_suffix?: string | undefined;
1460
+ path_prefix?: string | undefined;
1461
+ path_equals?: string | undefined;
1462
+ }>>;
1463
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1464
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1465
+ start: z.ZodNumber;
1466
+ end: z.ZodNumber;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ start: number;
1469
+ end: number;
1470
+ }, {
1471
+ start: number;
1472
+ end: number;
1473
+ }>, {
1474
+ start: number;
1475
+ end: number;
1476
+ }, {
1477
+ start: number;
1478
+ end: number;
1479
+ }>, "many">>;
1480
+ fingerprint: z.ZodOptional<z.ZodObject<{
1481
+ version: z.ZodString;
1482
+ value: z.ZodString;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ value: string;
1485
+ version: string;
1486
+ }, {
1487
+ value: string;
1488
+ version: string;
1489
+ }>>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1492
+ services?: string[] | undefined;
1493
+ environments?: string[] | undefined;
1494
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1495
+ first_party?: boolean | undefined;
1496
+ error_name?: string | undefined;
1497
+ message_contains?: string | undefined;
1498
+ message_equals?: string | undefined;
1499
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1500
+ browser_event_opaque?: boolean | undefined;
1501
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1502
+ bot_family?: string | undefined;
1503
+ resource_url?: CaptureRuleUrlMatcher | undefined;
1504
+ request_url?: CaptureRuleUrlMatcher | undefined;
1505
+ status_codes?: number[] | undefined;
1506
+ status_ranges?: {
1507
+ start: number;
1508
+ end: number;
1509
+ }[] | undefined;
1510
+ fingerprint?: {
1511
+ value: string;
1512
+ version: string;
1513
+ } | undefined;
1514
+ }, {
1515
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1516
+ services?: string[] | undefined;
1517
+ environments?: string[] | undefined;
1518
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1519
+ first_party?: boolean | undefined;
1520
+ error_name?: string | undefined;
1521
+ message_contains?: string | undefined;
1522
+ message_equals?: string | undefined;
1523
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1524
+ browser_event_opaque?: boolean | undefined;
1525
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1526
+ bot_family?: string | undefined;
1527
+ resource_url?: {
1528
+ host?: string | undefined;
1529
+ host_suffix?: string | undefined;
1530
+ path_prefix?: string | undefined;
1531
+ path_equals?: string | undefined;
1532
+ } | undefined;
1533
+ request_url?: {
1534
+ host?: string | undefined;
1535
+ host_suffix?: string | undefined;
1536
+ path_prefix?: string | undefined;
1537
+ path_equals?: string | undefined;
1538
+ } | undefined;
1539
+ status_codes?: number[] | undefined;
1540
+ status_ranges?: {
1541
+ start: number;
1542
+ end: number;
1543
+ }[] | undefined;
1544
+ fingerprint?: {
1545
+ value: string;
1546
+ version: string;
1547
+ } | undefined;
1548
+ }>, CaptureRuleMatcher, {
1549
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1550
+ services?: string[] | undefined;
1551
+ environments?: string[] | undefined;
1552
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1553
+ first_party?: boolean | undefined;
1554
+ error_name?: string | undefined;
1555
+ message_contains?: string | undefined;
1556
+ message_equals?: string | undefined;
1557
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1558
+ browser_event_opaque?: boolean | undefined;
1559
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1560
+ bot_family?: string | undefined;
1561
+ resource_url?: {
1562
+ host?: string | undefined;
1563
+ host_suffix?: string | undefined;
1564
+ path_prefix?: string | undefined;
1565
+ path_equals?: string | undefined;
1566
+ } | undefined;
1567
+ request_url?: {
1568
+ host?: string | undefined;
1569
+ host_suffix?: string | undefined;
1570
+ path_prefix?: string | undefined;
1571
+ path_equals?: string | undefined;
1572
+ } | undefined;
1573
+ status_codes?: number[] | undefined;
1574
+ status_ranges?: {
1575
+ start: number;
1576
+ end: number;
1577
+ }[] | undefined;
1578
+ fingerprint?: {
1579
+ value: string;
1580
+ version: string;
1581
+ } | undefined;
1582
+ }>, CaptureRuleMatcher, {
1583
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1584
+ services?: string[] | undefined;
1585
+ environments?: string[] | undefined;
1586
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1587
+ first_party?: boolean | undefined;
1588
+ error_name?: string | undefined;
1589
+ message_contains?: string | undefined;
1590
+ message_equals?: string | undefined;
1591
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1592
+ browser_event_opaque?: boolean | undefined;
1593
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1594
+ bot_family?: string | undefined;
1595
+ resource_url?: {
1596
+ host?: string | undefined;
1597
+ host_suffix?: string | undefined;
1598
+ path_prefix?: string | undefined;
1599
+ path_equals?: string | undefined;
1600
+ } | undefined;
1601
+ request_url?: {
1602
+ host?: string | undefined;
1603
+ host_suffix?: string | undefined;
1604
+ path_prefix?: string | undefined;
1605
+ path_equals?: string | undefined;
1606
+ } | undefined;
1607
+ status_codes?: number[] | undefined;
1608
+ status_ranges?: {
1609
+ start: number;
1610
+ end: number;
1611
+ }[] | undefined;
1612
+ fingerprint?: {
1613
+ value: string;
1614
+ version: string;
1615
+ } | undefined;
1616
+ }>;
1617
+ sample_rate: z.ZodNullable<z.ZodNumber>;
1618
+ sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
1619
+ created_by_user_id: z.ZodNullable<z.ZodString>;
1620
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
1621
+ created_from_event_id: z.ZodNullable<z.ZodString>;
1622
+ expires_at: z.ZodNullable<z.ZodString>;
1623
+ } & {
1624
+ id: z.ZodString;
1625
+ project_id: z.ZodString;
1626
+ hit_count: z.ZodNumber;
1627
+ last_matched_at: z.ZodNullable<z.ZodString>;
1628
+ created_at: z.ZodString;
1629
+ updated_at: z.ZodString;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ project_id: string;
1632
+ updated_at: string;
1633
+ name: string;
1634
+ description: string | null;
1635
+ enabled: boolean;
1636
+ action: "demote" | "sample" | "drop";
1637
+ matcher: CaptureRuleMatcher;
1638
+ sample_rate: number | null;
1639
+ sample_event_class: "preserve" | "context" | null;
1640
+ created_by_user_id: string | null;
1641
+ created_from_incident_id: string | null;
1642
+ created_from_event_id: string | null;
1643
+ expires_at: string | null;
1644
+ id: string;
1645
+ hit_count: number;
1646
+ last_matched_at: string | null;
1647
+ created_at: string;
1648
+ }, {
1649
+ project_id: string;
1650
+ updated_at: string;
1651
+ name: string;
1652
+ description: string | null;
1653
+ enabled: boolean;
1654
+ action: "demote" | "sample" | "drop";
1655
+ matcher: {
1656
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1657
+ services?: string[] | undefined;
1658
+ environments?: string[] | undefined;
1659
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1660
+ first_party?: boolean | undefined;
1661
+ error_name?: string | undefined;
1662
+ message_contains?: string | undefined;
1663
+ message_equals?: string | undefined;
1664
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1665
+ browser_event_opaque?: boolean | undefined;
1666
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1667
+ bot_family?: string | undefined;
1668
+ resource_url?: {
1669
+ host?: string | undefined;
1670
+ host_suffix?: string | undefined;
1671
+ path_prefix?: string | undefined;
1672
+ path_equals?: string | undefined;
1673
+ } | undefined;
1674
+ request_url?: {
1675
+ host?: string | undefined;
1676
+ host_suffix?: string | undefined;
1677
+ path_prefix?: string | undefined;
1678
+ path_equals?: string | undefined;
1679
+ } | undefined;
1680
+ status_codes?: number[] | undefined;
1681
+ status_ranges?: {
1682
+ start: number;
1683
+ end: number;
1684
+ }[] | undefined;
1685
+ fingerprint?: {
1686
+ value: string;
1687
+ version: string;
1688
+ } | undefined;
1689
+ };
1690
+ sample_rate: number | null;
1691
+ sample_event_class: "preserve" | "context" | null;
1692
+ created_by_user_id: string | null;
1693
+ created_from_incident_id: string | null;
1694
+ created_from_event_id: string | null;
1695
+ expires_at: string | null;
1696
+ id: string;
1697
+ hit_count: number;
1698
+ last_matched_at: string | null;
1699
+ created_at: string;
1700
+ }>, {
1701
+ project_id: string;
1702
+ updated_at: string;
1703
+ name: string;
1704
+ description: string | null;
1705
+ enabled: boolean;
1706
+ action: "demote" | "sample" | "drop";
1707
+ matcher: CaptureRuleMatcher;
1708
+ sample_rate: number | null;
1709
+ sample_event_class: "preserve" | "context" | null;
1710
+ created_by_user_id: string | null;
1711
+ created_from_incident_id: string | null;
1712
+ created_from_event_id: string | null;
1713
+ expires_at: string | null;
1714
+ id: string;
1715
+ hit_count: number;
1716
+ last_matched_at: string | null;
1717
+ created_at: string;
1718
+ }, {
1719
+ project_id: string;
1720
+ updated_at: string;
1721
+ name: string;
1722
+ description: string | null;
1723
+ enabled: boolean;
1724
+ action: "demote" | "sample" | "drop";
1725
+ matcher: {
1726
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1727
+ services?: string[] | undefined;
1728
+ environments?: string[] | undefined;
1729
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1730
+ first_party?: boolean | undefined;
1731
+ error_name?: string | undefined;
1732
+ message_contains?: string | undefined;
1733
+ message_equals?: string | undefined;
1734
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1735
+ browser_event_opaque?: boolean | undefined;
1736
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1737
+ bot_family?: string | undefined;
1738
+ resource_url?: {
1739
+ host?: string | undefined;
1740
+ host_suffix?: string | undefined;
1741
+ path_prefix?: string | undefined;
1742
+ path_equals?: string | undefined;
1743
+ } | undefined;
1744
+ request_url?: {
1745
+ host?: string | undefined;
1746
+ host_suffix?: string | undefined;
1747
+ path_prefix?: string | undefined;
1748
+ path_equals?: string | undefined;
1749
+ } | undefined;
1750
+ status_codes?: number[] | undefined;
1751
+ status_ranges?: {
1752
+ start: number;
1753
+ end: number;
1754
+ }[] | undefined;
1755
+ fingerprint?: {
1756
+ value: string;
1757
+ version: string;
1758
+ } | undefined;
1759
+ };
1760
+ sample_rate: number | null;
1761
+ sample_event_class: "preserve" | "context" | null;
1762
+ created_by_user_id: string | null;
1763
+ created_from_incident_id: string | null;
1764
+ created_from_event_id: string | null;
1765
+ expires_at: string | null;
1766
+ id: string;
1767
+ hit_count: number;
1768
+ last_matched_at: string | null;
1769
+ created_at: string;
1770
+ }>;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ rule: {
1773
+ project_id: string;
1774
+ updated_at: string;
1775
+ name: string;
1776
+ description: string | null;
1777
+ enabled: boolean;
1778
+ action: "demote" | "sample" | "drop";
1779
+ matcher: CaptureRuleMatcher;
1780
+ sample_rate: number | null;
1781
+ sample_event_class: "preserve" | "context" | null;
1782
+ created_by_user_id: string | null;
1783
+ created_from_incident_id: string | null;
1784
+ created_from_event_id: string | null;
1785
+ expires_at: string | null;
1786
+ id: string;
1787
+ hit_count: number;
1788
+ last_matched_at: string | null;
1789
+ created_at: string;
1790
+ };
1791
+ }, {
1792
+ rule: {
1793
+ project_id: string;
1794
+ updated_at: string;
1795
+ name: string;
1796
+ description: string | null;
1797
+ enabled: boolean;
1798
+ action: "demote" | "sample" | "drop";
1799
+ matcher: {
1800
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1801
+ services?: string[] | undefined;
1802
+ environments?: string[] | undefined;
1803
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1804
+ first_party?: boolean | undefined;
1805
+ error_name?: string | undefined;
1806
+ message_contains?: string | undefined;
1807
+ message_equals?: string | undefined;
1808
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1809
+ browser_event_opaque?: boolean | undefined;
1810
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1811
+ bot_family?: string | undefined;
1812
+ resource_url?: {
1813
+ host?: string | undefined;
1814
+ host_suffix?: string | undefined;
1815
+ path_prefix?: string | undefined;
1816
+ path_equals?: string | undefined;
1817
+ } | undefined;
1818
+ request_url?: {
1819
+ host?: string | undefined;
1820
+ host_suffix?: string | undefined;
1821
+ path_prefix?: string | undefined;
1822
+ path_equals?: string | undefined;
1823
+ } | undefined;
1824
+ status_codes?: number[] | undefined;
1825
+ status_ranges?: {
1826
+ start: number;
1827
+ end: number;
1828
+ }[] | undefined;
1829
+ fingerprint?: {
1830
+ value: string;
1831
+ version: string;
1832
+ } | undefined;
1833
+ };
1834
+ sample_rate: number | null;
1835
+ sample_event_class: "preserve" | "context" | null;
1836
+ created_by_user_id: string | null;
1837
+ created_from_incident_id: string | null;
1838
+ created_from_event_id: string | null;
1839
+ expires_at: string | null;
1840
+ id: string;
1841
+ hit_count: number;
1842
+ last_matched_at: string | null;
1843
+ created_at: string;
1844
+ };
1845
+ }>;
1846
+ export type CaptureRuleResponse = z.infer<typeof CaptureRuleResponseSchema>;
1847
+ export declare const CaptureRulesResponseSchema: z.ZodObject<{
1848
+ access_mode: z.ZodEnum<["manage", "preview"]>;
1849
+ rules: z.ZodArray<z.ZodEffects<z.ZodObject<{
1850
+ name: z.ZodString;
1851
+ description: z.ZodNullable<z.ZodString>;
1852
+ enabled: z.ZodBoolean;
1853
+ action: z.ZodEnum<["demote", "sample", "drop"]>;
1854
+ matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1855
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
1856
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1857
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1858
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
1859
+ first_party: z.ZodOptional<z.ZodBoolean>;
1860
+ error_name: z.ZodOptional<z.ZodString>;
1861
+ message_contains: z.ZodOptional<z.ZodString>;
1862
+ message_equals: z.ZodOptional<z.ZodString>;
1863
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
1864
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1865
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
1866
+ bot_family: z.ZodOptional<z.ZodString>;
1867
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1868
+ host: z.ZodOptional<z.ZodString>;
1869
+ host_suffix: z.ZodOptional<z.ZodString>;
1870
+ path_prefix: z.ZodOptional<z.ZodString>;
1871
+ path_equals: z.ZodOptional<z.ZodString>;
1872
+ }, "strip", z.ZodTypeAny, {
1873
+ host?: string | undefined;
1874
+ host_suffix?: string | undefined;
1875
+ path_prefix?: string | undefined;
1876
+ path_equals?: string | undefined;
1877
+ }, {
1878
+ host?: string | undefined;
1879
+ host_suffix?: string | undefined;
1880
+ path_prefix?: string | undefined;
1881
+ path_equals?: string | undefined;
1882
+ }>, CaptureRuleUrlMatcher, {
1883
+ host?: string | undefined;
1884
+ host_suffix?: string | undefined;
1885
+ path_prefix?: string | undefined;
1886
+ path_equals?: string | undefined;
1887
+ }>, CaptureRuleUrlMatcher, {
1888
+ host?: string | undefined;
1889
+ host_suffix?: string | undefined;
1890
+ path_prefix?: string | undefined;
1891
+ path_equals?: string | undefined;
1892
+ }>>;
1893
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1894
+ host: z.ZodOptional<z.ZodString>;
1895
+ host_suffix: z.ZodOptional<z.ZodString>;
1896
+ path_prefix: z.ZodOptional<z.ZodString>;
1897
+ path_equals: z.ZodOptional<z.ZodString>;
1898
+ }, "strip", z.ZodTypeAny, {
1899
+ host?: string | undefined;
1900
+ host_suffix?: string | undefined;
1901
+ path_prefix?: string | undefined;
1902
+ path_equals?: string | undefined;
1903
+ }, {
1904
+ host?: string | undefined;
1905
+ host_suffix?: string | undefined;
1906
+ path_prefix?: string | undefined;
1907
+ path_equals?: string | undefined;
1908
+ }>, CaptureRuleUrlMatcher, {
1909
+ host?: string | undefined;
1910
+ host_suffix?: string | undefined;
1911
+ path_prefix?: string | undefined;
1912
+ path_equals?: string | undefined;
1913
+ }>, CaptureRuleUrlMatcher, {
1914
+ host?: string | undefined;
1915
+ host_suffix?: string | undefined;
1916
+ path_prefix?: string | undefined;
1917
+ path_equals?: string | undefined;
1918
+ }>>;
1919
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1920
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1921
+ start: z.ZodNumber;
1922
+ end: z.ZodNumber;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ start: number;
1925
+ end: number;
1926
+ }, {
1927
+ start: number;
1928
+ end: number;
1929
+ }>, {
1930
+ start: number;
1931
+ end: number;
1932
+ }, {
1933
+ start: number;
1934
+ end: number;
1935
+ }>, "many">>;
1936
+ fingerprint: z.ZodOptional<z.ZodObject<{
1937
+ version: z.ZodString;
1938
+ value: z.ZodString;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ value: string;
1941
+ version: string;
1942
+ }, {
1943
+ value: string;
1944
+ version: string;
1945
+ }>>;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1948
+ services?: string[] | undefined;
1949
+ environments?: string[] | undefined;
1950
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1951
+ first_party?: boolean | undefined;
1952
+ error_name?: string | undefined;
1953
+ message_contains?: string | undefined;
1954
+ message_equals?: string | undefined;
1955
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1956
+ browser_event_opaque?: boolean | undefined;
1957
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1958
+ bot_family?: string | undefined;
1959
+ resource_url?: CaptureRuleUrlMatcher | undefined;
1960
+ request_url?: CaptureRuleUrlMatcher | undefined;
1961
+ status_codes?: number[] | undefined;
1962
+ status_ranges?: {
1963
+ start: number;
1964
+ end: number;
1965
+ }[] | undefined;
1966
+ fingerprint?: {
1967
+ value: string;
1968
+ version: string;
1969
+ } | undefined;
1970
+ }, {
1971
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
1972
+ services?: string[] | undefined;
1973
+ environments?: string[] | undefined;
1974
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1975
+ first_party?: boolean | undefined;
1976
+ error_name?: string | undefined;
1977
+ message_contains?: string | undefined;
1978
+ message_equals?: string | undefined;
1979
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
1980
+ browser_event_opaque?: boolean | undefined;
1981
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1982
+ bot_family?: string | undefined;
1983
+ resource_url?: {
1984
+ host?: string | undefined;
1985
+ host_suffix?: string | undefined;
1986
+ path_prefix?: string | undefined;
1987
+ path_equals?: string | undefined;
1988
+ } | undefined;
1989
+ request_url?: {
1990
+ host?: string | undefined;
1991
+ host_suffix?: string | undefined;
1992
+ path_prefix?: string | undefined;
1993
+ path_equals?: string | undefined;
1994
+ } | undefined;
1995
+ status_codes?: number[] | undefined;
1996
+ status_ranges?: {
1997
+ start: number;
1998
+ end: number;
1999
+ }[] | undefined;
2000
+ fingerprint?: {
2001
+ value: string;
2002
+ version: string;
2003
+ } | undefined;
2004
+ }>, CaptureRuleMatcher, {
2005
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2006
+ services?: string[] | undefined;
2007
+ environments?: string[] | undefined;
2008
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2009
+ first_party?: boolean | undefined;
2010
+ error_name?: string | undefined;
2011
+ message_contains?: string | undefined;
2012
+ message_equals?: string | undefined;
2013
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2014
+ browser_event_opaque?: boolean | undefined;
2015
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2016
+ bot_family?: string | undefined;
2017
+ resource_url?: {
2018
+ host?: string | undefined;
2019
+ host_suffix?: string | undefined;
2020
+ path_prefix?: string | undefined;
2021
+ path_equals?: string | undefined;
2022
+ } | undefined;
2023
+ request_url?: {
2024
+ host?: string | undefined;
2025
+ host_suffix?: string | undefined;
2026
+ path_prefix?: string | undefined;
2027
+ path_equals?: string | undefined;
2028
+ } | undefined;
2029
+ status_codes?: number[] | undefined;
2030
+ status_ranges?: {
2031
+ start: number;
2032
+ end: number;
2033
+ }[] | undefined;
2034
+ fingerprint?: {
2035
+ value: string;
2036
+ version: string;
2037
+ } | undefined;
2038
+ }>, CaptureRuleMatcher, {
2039
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2040
+ services?: string[] | undefined;
2041
+ environments?: string[] | undefined;
2042
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2043
+ first_party?: boolean | undefined;
2044
+ error_name?: string | undefined;
2045
+ message_contains?: string | undefined;
2046
+ message_equals?: string | undefined;
2047
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2048
+ browser_event_opaque?: boolean | undefined;
2049
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2050
+ bot_family?: string | undefined;
2051
+ resource_url?: {
2052
+ host?: string | undefined;
2053
+ host_suffix?: string | undefined;
2054
+ path_prefix?: string | undefined;
2055
+ path_equals?: string | undefined;
2056
+ } | undefined;
2057
+ request_url?: {
2058
+ host?: string | undefined;
2059
+ host_suffix?: string | undefined;
2060
+ path_prefix?: string | undefined;
2061
+ path_equals?: string | undefined;
2062
+ } | undefined;
2063
+ status_codes?: number[] | undefined;
2064
+ status_ranges?: {
2065
+ start: number;
2066
+ end: number;
2067
+ }[] | undefined;
2068
+ fingerprint?: {
2069
+ value: string;
2070
+ version: string;
2071
+ } | undefined;
2072
+ }>;
2073
+ sample_rate: z.ZodNullable<z.ZodNumber>;
2074
+ sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
2075
+ created_by_user_id: z.ZodNullable<z.ZodString>;
2076
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
2077
+ created_from_event_id: z.ZodNullable<z.ZodString>;
2078
+ expires_at: z.ZodNullable<z.ZodString>;
2079
+ } & {
2080
+ id: z.ZodString;
2081
+ project_id: z.ZodString;
2082
+ hit_count: z.ZodNumber;
2083
+ last_matched_at: z.ZodNullable<z.ZodString>;
2084
+ created_at: z.ZodString;
2085
+ updated_at: z.ZodString;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ project_id: string;
2088
+ updated_at: string;
2089
+ name: string;
2090
+ description: string | null;
2091
+ enabled: boolean;
2092
+ action: "demote" | "sample" | "drop";
2093
+ matcher: CaptureRuleMatcher;
2094
+ sample_rate: number | null;
2095
+ sample_event_class: "preserve" | "context" | null;
2096
+ created_by_user_id: string | null;
2097
+ created_from_incident_id: string | null;
2098
+ created_from_event_id: string | null;
2099
+ expires_at: string | null;
2100
+ id: string;
2101
+ hit_count: number;
2102
+ last_matched_at: string | null;
2103
+ created_at: string;
2104
+ }, {
2105
+ project_id: string;
2106
+ updated_at: string;
2107
+ name: string;
2108
+ description: string | null;
2109
+ enabled: boolean;
2110
+ action: "demote" | "sample" | "drop";
2111
+ matcher: {
2112
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2113
+ services?: string[] | undefined;
2114
+ environments?: string[] | undefined;
2115
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2116
+ first_party?: boolean | undefined;
2117
+ error_name?: string | undefined;
2118
+ message_contains?: string | undefined;
2119
+ message_equals?: string | undefined;
2120
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2121
+ browser_event_opaque?: boolean | undefined;
2122
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2123
+ bot_family?: string | undefined;
2124
+ resource_url?: {
2125
+ host?: string | undefined;
2126
+ host_suffix?: string | undefined;
2127
+ path_prefix?: string | undefined;
2128
+ path_equals?: string | undefined;
2129
+ } | undefined;
2130
+ request_url?: {
2131
+ host?: string | undefined;
2132
+ host_suffix?: string | undefined;
2133
+ path_prefix?: string | undefined;
2134
+ path_equals?: string | undefined;
2135
+ } | undefined;
2136
+ status_codes?: number[] | undefined;
2137
+ status_ranges?: {
2138
+ start: number;
2139
+ end: number;
2140
+ }[] | undefined;
2141
+ fingerprint?: {
2142
+ value: string;
2143
+ version: string;
2144
+ } | undefined;
2145
+ };
2146
+ sample_rate: number | null;
2147
+ sample_event_class: "preserve" | "context" | null;
2148
+ created_by_user_id: string | null;
2149
+ created_from_incident_id: string | null;
2150
+ created_from_event_id: string | null;
2151
+ expires_at: string | null;
2152
+ id: string;
2153
+ hit_count: number;
2154
+ last_matched_at: string | null;
2155
+ created_at: string;
2156
+ }>, {
2157
+ project_id: string;
2158
+ updated_at: string;
2159
+ name: string;
2160
+ description: string | null;
2161
+ enabled: boolean;
2162
+ action: "demote" | "sample" | "drop";
2163
+ matcher: CaptureRuleMatcher;
2164
+ sample_rate: number | null;
2165
+ sample_event_class: "preserve" | "context" | null;
2166
+ created_by_user_id: string | null;
2167
+ created_from_incident_id: string | null;
2168
+ created_from_event_id: string | null;
2169
+ expires_at: string | null;
2170
+ id: string;
2171
+ hit_count: number;
2172
+ last_matched_at: string | null;
2173
+ created_at: string;
2174
+ }, {
2175
+ project_id: string;
2176
+ updated_at: string;
2177
+ name: string;
2178
+ description: string | null;
2179
+ enabled: boolean;
2180
+ action: "demote" | "sample" | "drop";
2181
+ matcher: {
2182
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2183
+ services?: string[] | undefined;
2184
+ environments?: string[] | undefined;
2185
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2186
+ first_party?: boolean | undefined;
2187
+ error_name?: string | undefined;
2188
+ message_contains?: string | undefined;
2189
+ message_equals?: string | undefined;
2190
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2191
+ browser_event_opaque?: boolean | undefined;
2192
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2193
+ bot_family?: string | undefined;
2194
+ resource_url?: {
2195
+ host?: string | undefined;
2196
+ host_suffix?: string | undefined;
2197
+ path_prefix?: string | undefined;
2198
+ path_equals?: string | undefined;
2199
+ } | undefined;
2200
+ request_url?: {
2201
+ host?: string | undefined;
2202
+ host_suffix?: string | undefined;
2203
+ path_prefix?: string | undefined;
2204
+ path_equals?: string | undefined;
2205
+ } | undefined;
2206
+ status_codes?: number[] | undefined;
2207
+ status_ranges?: {
2208
+ start: number;
2209
+ end: number;
2210
+ }[] | undefined;
2211
+ fingerprint?: {
2212
+ value: string;
2213
+ version: string;
2214
+ } | undefined;
2215
+ };
2216
+ sample_rate: number | null;
2217
+ sample_event_class: "preserve" | "context" | null;
2218
+ created_by_user_id: string | null;
2219
+ created_from_incident_id: string | null;
2220
+ created_from_event_id: string | null;
2221
+ expires_at: string | null;
2222
+ id: string;
2223
+ hit_count: number;
2224
+ last_matched_at: string | null;
2225
+ created_at: string;
2226
+ }>, "many">;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ access_mode: "manage" | "preview";
2229
+ rules: {
2230
+ project_id: string;
2231
+ updated_at: string;
2232
+ name: string;
2233
+ description: string | null;
2234
+ enabled: boolean;
2235
+ action: "demote" | "sample" | "drop";
2236
+ matcher: CaptureRuleMatcher;
2237
+ sample_rate: number | null;
2238
+ sample_event_class: "preserve" | "context" | null;
2239
+ created_by_user_id: string | null;
2240
+ created_from_incident_id: string | null;
2241
+ created_from_event_id: string | null;
2242
+ expires_at: string | null;
2243
+ id: string;
2244
+ hit_count: number;
2245
+ last_matched_at: string | null;
2246
+ created_at: string;
2247
+ }[];
2248
+ }, {
2249
+ access_mode: "manage" | "preview";
2250
+ rules: {
2251
+ project_id: string;
2252
+ updated_at: string;
2253
+ name: string;
2254
+ description: string | null;
2255
+ enabled: boolean;
2256
+ action: "demote" | "sample" | "drop";
2257
+ matcher: {
2258
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2259
+ services?: string[] | undefined;
2260
+ environments?: string[] | undefined;
2261
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2262
+ first_party?: boolean | undefined;
2263
+ error_name?: string | undefined;
2264
+ message_contains?: string | undefined;
2265
+ message_equals?: string | undefined;
2266
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2267
+ browser_event_opaque?: boolean | undefined;
2268
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2269
+ bot_family?: string | undefined;
2270
+ resource_url?: {
2271
+ host?: string | undefined;
2272
+ host_suffix?: string | undefined;
2273
+ path_prefix?: string | undefined;
2274
+ path_equals?: string | undefined;
2275
+ } | undefined;
2276
+ request_url?: {
2277
+ host?: string | undefined;
2278
+ host_suffix?: string | undefined;
2279
+ path_prefix?: string | undefined;
2280
+ path_equals?: string | undefined;
2281
+ } | undefined;
2282
+ status_codes?: number[] | undefined;
2283
+ status_ranges?: {
2284
+ start: number;
2285
+ end: number;
2286
+ }[] | undefined;
2287
+ fingerprint?: {
2288
+ value: string;
2289
+ version: string;
2290
+ } | undefined;
2291
+ };
2292
+ sample_rate: number | null;
2293
+ sample_event_class: "preserve" | "context" | null;
2294
+ created_by_user_id: string | null;
2295
+ created_from_incident_id: string | null;
2296
+ created_from_event_id: string | null;
2297
+ expires_at: string | null;
2298
+ id: string;
2299
+ hit_count: number;
2300
+ last_matched_at: string | null;
2301
+ created_at: string;
2302
+ }[];
2303
+ }>;
2304
+ export type CaptureRulesResponse = z.infer<typeof CaptureRulesResponseSchema>;
2305
+ export declare const CaptureRulesFileSchema: z.ZodObject<{
2306
+ version: z.ZodLiteral<1>;
2307
+ rules: z.ZodArray<z.ZodEffects<z.ZodObject<{
2308
+ name: z.ZodString;
2309
+ description: z.ZodNullable<z.ZodString>;
2310
+ enabled: z.ZodBoolean;
2311
+ action: z.ZodEnum<["demote", "sample", "drop"]>;
2312
+ matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2313
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>, "many">>;
2314
+ services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2315
+ environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2316
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
2317
+ first_party: z.ZodOptional<z.ZodBoolean>;
2318
+ error_name: z.ZodOptional<z.ZodString>;
2319
+ message_contains: z.ZodOptional<z.ZodString>;
2320
+ message_equals: z.ZodOptional<z.ZodString>;
2321
+ browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
2322
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
2323
+ client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
2324
+ bot_family: z.ZodOptional<z.ZodString>;
2325
+ resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2326
+ host: z.ZodOptional<z.ZodString>;
2327
+ host_suffix: z.ZodOptional<z.ZodString>;
2328
+ path_prefix: z.ZodOptional<z.ZodString>;
2329
+ path_equals: z.ZodOptional<z.ZodString>;
2330
+ }, "strip", z.ZodTypeAny, {
2331
+ host?: string | undefined;
2332
+ host_suffix?: string | undefined;
2333
+ path_prefix?: string | undefined;
2334
+ path_equals?: string | undefined;
2335
+ }, {
2336
+ host?: string | undefined;
2337
+ host_suffix?: string | undefined;
2338
+ path_prefix?: string | undefined;
2339
+ path_equals?: string | undefined;
2340
+ }>, CaptureRuleUrlMatcher, {
2341
+ host?: string | undefined;
2342
+ host_suffix?: string | undefined;
2343
+ path_prefix?: string | undefined;
2344
+ path_equals?: string | undefined;
2345
+ }>, CaptureRuleUrlMatcher, {
2346
+ host?: string | undefined;
2347
+ host_suffix?: string | undefined;
2348
+ path_prefix?: string | undefined;
2349
+ path_equals?: string | undefined;
2350
+ }>>;
2351
+ request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2352
+ host: z.ZodOptional<z.ZodString>;
2353
+ host_suffix: z.ZodOptional<z.ZodString>;
2354
+ path_prefix: z.ZodOptional<z.ZodString>;
2355
+ path_equals: z.ZodOptional<z.ZodString>;
2356
+ }, "strip", z.ZodTypeAny, {
2357
+ host?: string | undefined;
2358
+ host_suffix?: string | undefined;
2359
+ path_prefix?: string | undefined;
2360
+ path_equals?: string | undefined;
2361
+ }, {
2362
+ host?: string | undefined;
2363
+ host_suffix?: string | undefined;
2364
+ path_prefix?: string | undefined;
2365
+ path_equals?: string | undefined;
2366
+ }>, CaptureRuleUrlMatcher, {
2367
+ host?: string | undefined;
2368
+ host_suffix?: string | undefined;
2369
+ path_prefix?: string | undefined;
2370
+ path_equals?: string | undefined;
2371
+ }>, CaptureRuleUrlMatcher, {
2372
+ host?: string | undefined;
2373
+ host_suffix?: string | undefined;
2374
+ path_prefix?: string | undefined;
2375
+ path_equals?: string | undefined;
2376
+ }>>;
2377
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2378
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2379
+ start: z.ZodNumber;
2380
+ end: z.ZodNumber;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ start: number;
2383
+ end: number;
2384
+ }, {
2385
+ start: number;
2386
+ end: number;
2387
+ }>, {
2388
+ start: number;
2389
+ end: number;
2390
+ }, {
2391
+ start: number;
2392
+ end: number;
2393
+ }>, "many">>;
2394
+ fingerprint: z.ZodOptional<z.ZodObject<{
2395
+ version: z.ZodString;
2396
+ value: z.ZodString;
2397
+ }, "strip", z.ZodTypeAny, {
2398
+ value: string;
2399
+ version: string;
2400
+ }, {
2401
+ value: string;
2402
+ version: string;
2403
+ }>>;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2406
+ services?: string[] | undefined;
2407
+ environments?: string[] | undefined;
2408
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2409
+ first_party?: boolean | undefined;
2410
+ error_name?: string | undefined;
2411
+ message_contains?: string | undefined;
2412
+ message_equals?: string | undefined;
2413
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2414
+ browser_event_opaque?: boolean | undefined;
2415
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2416
+ bot_family?: string | undefined;
2417
+ resource_url?: CaptureRuleUrlMatcher | undefined;
2418
+ request_url?: CaptureRuleUrlMatcher | undefined;
2419
+ status_codes?: number[] | undefined;
2420
+ status_ranges?: {
2421
+ start: number;
2422
+ end: number;
2423
+ }[] | undefined;
2424
+ fingerprint?: {
2425
+ value: string;
2426
+ version: string;
2427
+ } | undefined;
2428
+ }, {
2429
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2430
+ services?: string[] | undefined;
2431
+ environments?: string[] | undefined;
2432
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2433
+ first_party?: boolean | undefined;
2434
+ error_name?: string | undefined;
2435
+ message_contains?: string | undefined;
2436
+ message_equals?: string | undefined;
2437
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2438
+ browser_event_opaque?: boolean | undefined;
2439
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2440
+ bot_family?: string | undefined;
2441
+ resource_url?: {
2442
+ host?: string | undefined;
2443
+ host_suffix?: string | undefined;
2444
+ path_prefix?: string | undefined;
2445
+ path_equals?: string | undefined;
2446
+ } | undefined;
2447
+ request_url?: {
2448
+ host?: string | undefined;
2449
+ host_suffix?: string | undefined;
2450
+ path_prefix?: string | undefined;
2451
+ path_equals?: string | undefined;
2452
+ } | undefined;
2453
+ status_codes?: number[] | undefined;
2454
+ status_ranges?: {
2455
+ start: number;
2456
+ end: number;
2457
+ }[] | undefined;
2458
+ fingerprint?: {
2459
+ value: string;
2460
+ version: string;
2461
+ } | undefined;
2462
+ }>, CaptureRuleMatcher, {
2463
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2464
+ services?: string[] | undefined;
2465
+ environments?: string[] | undefined;
2466
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2467
+ first_party?: boolean | undefined;
2468
+ error_name?: string | undefined;
2469
+ message_contains?: string | undefined;
2470
+ message_equals?: string | undefined;
2471
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2472
+ browser_event_opaque?: boolean | undefined;
2473
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2474
+ bot_family?: string | undefined;
2475
+ resource_url?: {
2476
+ host?: string | undefined;
2477
+ host_suffix?: string | undefined;
2478
+ path_prefix?: string | undefined;
2479
+ path_equals?: string | undefined;
2480
+ } | undefined;
2481
+ request_url?: {
2482
+ host?: string | undefined;
2483
+ host_suffix?: string | undefined;
2484
+ path_prefix?: string | undefined;
2485
+ path_equals?: string | undefined;
2486
+ } | undefined;
2487
+ status_codes?: number[] | undefined;
2488
+ status_ranges?: {
2489
+ start: number;
2490
+ end: number;
2491
+ }[] | undefined;
2492
+ fingerprint?: {
2493
+ value: string;
2494
+ version: string;
2495
+ } | undefined;
2496
+ }>, CaptureRuleMatcher, {
2497
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2498
+ services?: string[] | undefined;
2499
+ environments?: string[] | undefined;
2500
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2501
+ first_party?: boolean | undefined;
2502
+ error_name?: string | undefined;
2503
+ message_contains?: string | undefined;
2504
+ message_equals?: string | undefined;
2505
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2506
+ browser_event_opaque?: boolean | undefined;
2507
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2508
+ bot_family?: string | undefined;
2509
+ resource_url?: {
2510
+ host?: string | undefined;
2511
+ host_suffix?: string | undefined;
2512
+ path_prefix?: string | undefined;
2513
+ path_equals?: string | undefined;
2514
+ } | undefined;
2515
+ request_url?: {
2516
+ host?: string | undefined;
2517
+ host_suffix?: string | undefined;
2518
+ path_prefix?: string | undefined;
2519
+ path_equals?: string | undefined;
2520
+ } | undefined;
2521
+ status_codes?: number[] | undefined;
2522
+ status_ranges?: {
2523
+ start: number;
2524
+ end: number;
2525
+ }[] | undefined;
2526
+ fingerprint?: {
2527
+ value: string;
2528
+ version: string;
2529
+ } | undefined;
2530
+ }>;
2531
+ sample_rate: z.ZodNullable<z.ZodNumber>;
2532
+ sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
2533
+ created_by_user_id: z.ZodNullable<z.ZodString>;
2534
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
2535
+ created_from_event_id: z.ZodNullable<z.ZodString>;
2536
+ expires_at: z.ZodNullable<z.ZodString>;
2537
+ } & {
2538
+ id: z.ZodString;
2539
+ project_id: z.ZodString;
2540
+ hit_count: z.ZodNumber;
2541
+ last_matched_at: z.ZodNullable<z.ZodString>;
2542
+ created_at: z.ZodString;
2543
+ updated_at: z.ZodString;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ project_id: string;
2546
+ updated_at: string;
2547
+ name: string;
2548
+ description: string | null;
2549
+ enabled: boolean;
2550
+ action: "demote" | "sample" | "drop";
2551
+ matcher: CaptureRuleMatcher;
2552
+ sample_rate: number | null;
2553
+ sample_event_class: "preserve" | "context" | null;
2554
+ created_by_user_id: string | null;
2555
+ created_from_incident_id: string | null;
2556
+ created_from_event_id: string | null;
2557
+ expires_at: string | null;
2558
+ id: string;
2559
+ hit_count: number;
2560
+ last_matched_at: string | null;
2561
+ created_at: string;
2562
+ }, {
2563
+ project_id: string;
2564
+ updated_at: string;
2565
+ name: string;
2566
+ description: string | null;
2567
+ enabled: boolean;
2568
+ action: "demote" | "sample" | "drop";
2569
+ matcher: {
2570
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2571
+ services?: string[] | undefined;
2572
+ environments?: string[] | undefined;
2573
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2574
+ first_party?: boolean | undefined;
2575
+ error_name?: string | undefined;
2576
+ message_contains?: string | undefined;
2577
+ message_equals?: string | undefined;
2578
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2579
+ browser_event_opaque?: boolean | undefined;
2580
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2581
+ bot_family?: string | undefined;
2582
+ resource_url?: {
2583
+ host?: string | undefined;
2584
+ host_suffix?: string | undefined;
2585
+ path_prefix?: string | undefined;
2586
+ path_equals?: string | undefined;
2587
+ } | undefined;
2588
+ request_url?: {
2589
+ host?: string | undefined;
2590
+ host_suffix?: string | undefined;
2591
+ path_prefix?: string | undefined;
2592
+ path_equals?: string | undefined;
2593
+ } | undefined;
2594
+ status_codes?: number[] | undefined;
2595
+ status_ranges?: {
2596
+ start: number;
2597
+ end: number;
2598
+ }[] | undefined;
2599
+ fingerprint?: {
2600
+ value: string;
2601
+ version: string;
2602
+ } | undefined;
2603
+ };
2604
+ sample_rate: number | null;
2605
+ sample_event_class: "preserve" | "context" | null;
2606
+ created_by_user_id: string | null;
2607
+ created_from_incident_id: string | null;
2608
+ created_from_event_id: string | null;
2609
+ expires_at: string | null;
2610
+ id: string;
2611
+ hit_count: number;
2612
+ last_matched_at: string | null;
2613
+ created_at: string;
2614
+ }>, {
2615
+ project_id: string;
2616
+ updated_at: string;
2617
+ name: string;
2618
+ description: string | null;
2619
+ enabled: boolean;
2620
+ action: "demote" | "sample" | "drop";
2621
+ matcher: CaptureRuleMatcher;
2622
+ sample_rate: number | null;
2623
+ sample_event_class: "preserve" | "context" | null;
2624
+ created_by_user_id: string | null;
2625
+ created_from_incident_id: string | null;
2626
+ created_from_event_id: string | null;
2627
+ expires_at: string | null;
2628
+ id: string;
2629
+ hit_count: number;
2630
+ last_matched_at: string | null;
2631
+ created_at: string;
2632
+ }, {
2633
+ project_id: string;
2634
+ updated_at: string;
2635
+ name: string;
2636
+ description: string | null;
2637
+ enabled: boolean;
2638
+ action: "demote" | "sample" | "drop";
2639
+ matcher: {
2640
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2641
+ services?: string[] | undefined;
2642
+ environments?: string[] | undefined;
2643
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2644
+ first_party?: boolean | undefined;
2645
+ error_name?: string | undefined;
2646
+ message_contains?: string | undefined;
2647
+ message_equals?: string | undefined;
2648
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2649
+ browser_event_opaque?: boolean | undefined;
2650
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2651
+ bot_family?: string | undefined;
2652
+ resource_url?: {
2653
+ host?: string | undefined;
2654
+ host_suffix?: string | undefined;
2655
+ path_prefix?: string | undefined;
2656
+ path_equals?: string | undefined;
2657
+ } | undefined;
2658
+ request_url?: {
2659
+ host?: string | undefined;
2660
+ host_suffix?: string | undefined;
2661
+ path_prefix?: string | undefined;
2662
+ path_equals?: string | undefined;
2663
+ } | undefined;
2664
+ status_codes?: number[] | undefined;
2665
+ status_ranges?: {
2666
+ start: number;
2667
+ end: number;
2668
+ }[] | undefined;
2669
+ fingerprint?: {
2670
+ value: string;
2671
+ version: string;
2672
+ } | undefined;
2673
+ };
2674
+ sample_rate: number | null;
2675
+ sample_event_class: "preserve" | "context" | null;
2676
+ created_by_user_id: string | null;
2677
+ created_from_incident_id: string | null;
2678
+ created_from_event_id: string | null;
2679
+ expires_at: string | null;
2680
+ id: string;
2681
+ hit_count: number;
2682
+ last_matched_at: string | null;
2683
+ created_at: string;
2684
+ }>, "many">;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ version: 1;
2687
+ rules: {
2688
+ project_id: string;
2689
+ updated_at: string;
2690
+ name: string;
2691
+ description: string | null;
2692
+ enabled: boolean;
2693
+ action: "demote" | "sample" | "drop";
2694
+ matcher: CaptureRuleMatcher;
2695
+ sample_rate: number | null;
2696
+ sample_event_class: "preserve" | "context" | null;
2697
+ created_by_user_id: string | null;
2698
+ created_from_incident_id: string | null;
2699
+ created_from_event_id: string | null;
2700
+ expires_at: string | null;
2701
+ id: string;
2702
+ hit_count: number;
2703
+ last_matched_at: string | null;
2704
+ created_at: string;
2705
+ }[];
2706
+ }, {
2707
+ version: 1;
2708
+ rules: {
2709
+ project_id: string;
2710
+ updated_at: string;
2711
+ name: string;
2712
+ description: string | null;
2713
+ enabled: boolean;
2714
+ action: "demote" | "sample" | "drop";
2715
+ matcher: {
2716
+ event_types?: ("backend_exception" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "log_event" | "request_event" | "frontend_breadcrumb" | "probe_event")[] | undefined;
2717
+ services?: string[] | undefined;
2718
+ environments?: string[] | undefined;
2719
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2720
+ first_party?: boolean | undefined;
2721
+ error_name?: string | undefined;
2722
+ message_contains?: string | undefined;
2723
+ message_equals?: string | undefined;
2724
+ browser_event_kind?: "window_error" | "resource_error" | undefined;
2725
+ browser_event_opaque?: boolean | undefined;
2726
+ client_kind?: "unknown" | "human" | "bot" | undefined;
2727
+ bot_family?: string | undefined;
2728
+ resource_url?: {
2729
+ host?: string | undefined;
2730
+ host_suffix?: string | undefined;
2731
+ path_prefix?: string | undefined;
2732
+ path_equals?: string | undefined;
2733
+ } | undefined;
2734
+ request_url?: {
2735
+ host?: string | undefined;
2736
+ host_suffix?: string | undefined;
2737
+ path_prefix?: string | undefined;
2738
+ path_equals?: string | undefined;
2739
+ } | undefined;
2740
+ status_codes?: number[] | undefined;
2741
+ status_ranges?: {
2742
+ start: number;
2743
+ end: number;
2744
+ }[] | undefined;
2745
+ fingerprint?: {
2746
+ value: string;
2747
+ version: string;
2748
+ } | undefined;
2749
+ };
2750
+ sample_rate: number | null;
2751
+ sample_event_class: "preserve" | "context" | null;
2752
+ created_by_user_id: string | null;
2753
+ created_from_incident_id: string | null;
2754
+ created_from_event_id: string | null;
2755
+ expires_at: string | null;
2756
+ id: string;
2757
+ hit_count: number;
2758
+ last_matched_at: string | null;
2759
+ created_at: string;
2760
+ }[];
2761
+ }>;
2762
+ export type CaptureRulesFile = z.infer<typeof CaptureRulesFileSchema>;
2763
+ //# sourceMappingURL=capture-rule-schemas.d.ts.map