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