@debugbundle/shared-types 2.6.0 → 3.0.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.
Files changed (108) hide show
  1. package/README.md +17 -0
  2. package/dist/alert-notification-policy.d.ts +22 -40
  3. package/dist/alert-notification-policy.d.ts.map +1 -1
  4. package/dist/alert-notification-policy.js +1 -1
  5. package/dist/analytics-flows.d.ts +53 -588
  6. package/dist/analytics-flows.d.ts.map +1 -1
  7. package/dist/analytics-flows.js +4 -6
  8. package/dist/analytics-flows.js.map +1 -1
  9. package/dist/analytics-journey-samples.d.ts +70 -857
  10. package/dist/analytics-journey-samples.d.ts.map +1 -1
  11. package/dist/analytics-journey-samples.js +4 -4
  12. package/dist/analytics-product.d.ts +222 -853
  13. package/dist/analytics-product.d.ts.map +1 -1
  14. package/dist/analytics-product.js +9 -9
  15. package/dist/analytics-query.d.ts +13 -48
  16. package/dist/analytics-query.d.ts.map +1 -1
  17. package/dist/analytics-query.js +1 -1
  18. package/dist/analytics-saved-funnels.d.ts +21 -258
  19. package/dist/analytics-saved-funnels.d.ts.map +1 -1
  20. package/dist/analytics-saved-funnels.js +1 -1
  21. package/dist/analytics.d.ts +342 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +9 -9
  24. package/dist/browser-resource-context.d.ts +35 -129
  25. package/dist/browser-resource-context.d.ts.map +1 -1
  26. package/dist/browser-resource-routes.d.ts +6 -27
  27. package/dist/browser-resource-routes.d.ts.map +1 -1
  28. package/dist/bundle-evidence.d.ts +101 -0
  29. package/dist/bundle-evidence.d.ts.map +1 -0
  30. package/dist/bundle-evidence.js +69 -0
  31. package/dist/bundle-evidence.js.map +1 -0
  32. package/dist/capture-policy.d.ts +311 -319
  33. package/dist/capture-policy.d.ts.map +1 -1
  34. package/dist/capture-policy.js +70 -29
  35. package/dist/capture-policy.js.map +1 -1
  36. package/dist/capture-rule-evaluation.d.ts +53 -154
  37. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  38. package/dist/capture-rule-evaluation.js +1 -1
  39. package/dist/capture-rule-schemas.d.ts +788 -3226
  40. package/dist/capture-rule-schemas.d.ts.map +1 -1
  41. package/dist/capture-rule-schemas.js +37 -34
  42. package/dist/capture-rule-schemas.js.map +1 -1
  43. package/dist/capture-rule-suggestions.d.ts +195 -1189
  44. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  45. package/dist/diagnostic-capture-budget.d.ts +22 -0
  46. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  47. package/dist/diagnostic-capture-budget.js +195 -0
  48. package/dist/diagnostic-capture-budget.js.map +1 -0
  49. package/dist/diagnostic-context.d.ts +163 -0
  50. package/dist/diagnostic-context.d.ts.map +1 -0
  51. package/dist/diagnostic-context.js +117 -0
  52. package/dist/diagnostic-context.js.map +1 -0
  53. package/dist/event-envelope.d.ts +524 -4326
  54. package/dist/event-envelope.d.ts.map +1 -1
  55. package/dist/event-envelope.js +63 -8
  56. package/dist/event-envelope.js.map +1 -1
  57. package/dist/evidence-bounds.d.ts +9 -0
  58. package/dist/evidence-bounds.d.ts.map +1 -0
  59. package/dist/evidence-bounds.js +51 -0
  60. package/dist/evidence-bounds.js.map +1 -0
  61. package/dist/evidence-capabilities.d.ts +15 -0
  62. package/dist/evidence-capabilities.d.ts.map +1 -0
  63. package/dist/evidence-capabilities.js +29 -0
  64. package/dist/evidence-capabilities.js.map +1 -0
  65. package/dist/evidence-emission.d.ts +18 -0
  66. package/dist/evidence-emission.d.ts.map +1 -0
  67. package/dist/evidence-emission.js +83 -0
  68. package/dist/evidence-emission.js.map +1 -0
  69. package/dist/evidence-interpretation.d.ts +68 -0
  70. package/dist/evidence-interpretation.d.ts.map +1 -0
  71. package/dist/evidence-interpretation.js +177 -0
  72. package/dist/evidence-interpretation.js.map +1 -0
  73. package/dist/exception-evidence.d.ts +96 -0
  74. package/dist/exception-evidence.d.ts.map +1 -0
  75. package/dist/exception-evidence.js +145 -0
  76. package/dist/exception-evidence.js.map +1 -0
  77. package/dist/first-purchase-eligibility.d.ts +9 -0
  78. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  79. package/dist/first-purchase-eligibility.js +16 -0
  80. package/dist/first-purchase-eligibility.js.map +1 -0
  81. package/dist/improvement-settings.d.ts +29 -48
  82. package/dist/improvement-settings.d.ts.map +1 -1
  83. package/dist/index.d.ts +323 -1834
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +22 -3
  86. package/dist/index.js.map +1 -1
  87. package/dist/ingestion-wire.d.ts +9 -0
  88. package/dist/ingestion-wire.d.ts.map +1 -0
  89. package/dist/ingestion-wire.js +56 -0
  90. package/dist/ingestion-wire.js.map +1 -0
  91. package/dist/json-schema.d.ts +4 -0
  92. package/dist/json-schema.d.ts.map +1 -0
  93. package/dist/json-schema.js +49 -0
  94. package/dist/json-schema.js.map +1 -0
  95. package/dist/notification-preferences.d.ts +398 -1152
  96. package/dist/notification-preferences.d.ts.map +1 -1
  97. package/dist/notification-preferences.js +3 -3
  98. package/dist/notification-preferences.js.map +1 -1
  99. package/dist/project-color-tags.d.ts +20 -1
  100. package/dist/project-color-tags.d.ts.map +1 -1
  101. package/dist/public-status.d.ts +122 -568
  102. package/dist/public-status.d.ts.map +1 -1
  103. package/dist/public-status.js +8 -8
  104. package/dist/stack-frames.d.ts +11 -0
  105. package/dist/stack-frames.d.ts.map +1 -0
  106. package/dist/stack-frames.js +107 -0
  107. package/dist/stack-frames.js.map +1 -0
  108. package/package.json +2 -2
@@ -1,21 +1,63 @@
1
1
  import { z } from "zod";
2
2
  export declare const CaptureRuleActionValues: readonly ["demote", "sample", "drop"];
3
- export declare const CaptureRuleActionSchema: z.ZodEnum<["demote", "sample", "drop"]>;
3
+ export declare const CaptureRuleActionSchema: z.ZodEnum<{
4
+ sample: "sample";
5
+ demote: "demote";
6
+ drop: "drop";
7
+ }>;
4
8
  export type CaptureRuleAction = z.infer<typeof CaptureRuleActionSchema>;
5
9
  export declare const CaptureRuleSampleEventClassValues: readonly ["preserve", "context"];
6
- export declare const CaptureRuleSampleEventClassSchema: z.ZodEnum<["preserve", "context"]>;
10
+ export declare const CaptureRuleSampleEventClassSchema: z.ZodEnum<{
11
+ context: "context";
12
+ preserve: "preserve";
13
+ }>;
7
14
  export type CaptureRuleSampleEventClass = z.infer<typeof CaptureRuleSampleEventClassSchema>;
8
- export declare const CaptureRuleRuntimeSchema: z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>;
15
+ export declare const CaptureRuleRuntimeSchema: z.ZodEnum<{
16
+ unknown: "unknown";
17
+ browser: "browser";
18
+ node: "node";
19
+ python: "python";
20
+ php: "php";
21
+ go: "go";
22
+ ruby: "ruby";
23
+ java: "java";
24
+ }>;
9
25
  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"]>;
26
+ export declare const CaptureRuleEventTypeSchema: z.ZodEnum<{
27
+ backend_exception: "backend_exception";
28
+ request_event: "request_event";
29
+ log_event: "log_event";
30
+ frontend_breadcrumb: "frontend_breadcrumb";
31
+ frontend_exception: "frontend_exception";
32
+ deploy_metadata: "deploy_metadata";
33
+ error_suppressed: "error_suppressed";
34
+ probe_event: "probe_event";
35
+ diagnostic_context: "diagnostic_context";
36
+ }>;
11
37
  export type CaptureRuleEventType = z.infer<typeof CaptureRuleEventTypeSchema>;
12
- export declare const BrowserEventKindSchema: z.ZodEnum<["window_error", "resource_error"]>;
38
+ export declare const BrowserEventKindSchema: z.ZodEnum<{
39
+ window_error: "window_error";
40
+ resource_error: "resource_error";
41
+ }>;
13
42
  export type BrowserEventKind = z.infer<typeof BrowserEventKindSchema>;
14
- export declare const BrowserPageVisibilityStateSchema: z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>;
43
+ export declare const BrowserPageVisibilityStateSchema: z.ZodEnum<{
44
+ visible: "visible";
45
+ hidden: "hidden";
46
+ prerender: "prerender";
47
+ unloaded: "unloaded";
48
+ }>;
15
49
  export type BrowserPageVisibilityState = z.infer<typeof BrowserPageVisibilityStateSchema>;
16
- export declare const BrowserPageReadyStateSchema: z.ZodEnum<["loading", "interactive", "complete"]>;
50
+ export declare const BrowserPageReadyStateSchema: z.ZodEnum<{
51
+ loading: "loading";
52
+ interactive: "interactive";
53
+ complete: "complete";
54
+ }>;
17
55
  export type BrowserPageReadyState = z.infer<typeof BrowserPageReadyStateSchema>;
18
- export declare const CaptureRuleClientKindSchema: z.ZodEnum<["human", "bot", "unknown"]>;
56
+ export declare const CaptureRuleClientKindSchema: z.ZodEnum<{
57
+ unknown: "unknown";
58
+ human: "human";
59
+ bot: "bot";
60
+ }>;
19
61
  export type CaptureRuleClientKind = z.infer<typeof CaptureRuleClientKindSchema>;
20
62
  export interface CaptureRuleUrlMatcher {
21
63
  host?: string;
@@ -36,13 +78,7 @@ export interface CaptureRuleBrowserTargetAttributes {
36
78
  export declare const CaptureRuleFingerprintSchema: z.ZodObject<{
37
79
  version: z.ZodString;
38
80
  value: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- value: string;
41
- version: string;
42
- }, {
43
- value: string;
44
- version: string;
45
- }>;
81
+ }, z.core.$strip>;
46
82
  export type CaptureRuleFingerprint = z.infer<typeof CaptureRuleFingerprintSchema>;
47
83
  export interface CaptureRuleMatcher {
48
84
  event_types?: readonly CaptureRuleEventType[];
@@ -70,21 +106,52 @@ export interface CaptureRuleMatcher {
70
106
  }[];
71
107
  fingerprint?: CaptureRuleFingerprint;
72
108
  }
73
- export declare const CaptureRuleMatcherSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
74
- 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">>;
75
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
109
+ export declare const CaptureRuleMatcherSchema: z.ZodPipe<z.ZodObject<{
110
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
111
+ backend_exception: "backend_exception";
112
+ request_event: "request_event";
113
+ log_event: "log_event";
114
+ frontend_breadcrumb: "frontend_breadcrumb";
115
+ frontend_exception: "frontend_exception";
116
+ deploy_metadata: "deploy_metadata";
117
+ error_suppressed: "error_suppressed";
118
+ probe_event: "probe_event";
119
+ diagnostic_context: "diagnostic_context";
120
+ }>>>;
121
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
124
+ unknown: "unknown";
125
+ browser: "browser";
126
+ node: "node";
127
+ python: "python";
128
+ php: "php";
129
+ go: "go";
130
+ ruby: "ruby";
131
+ java: "java";
132
+ }>>>;
78
133
  first_party: z.ZodOptional<z.ZodBoolean>;
79
134
  error_name: z.ZodOptional<z.ZodString>;
80
135
  message_contains: z.ZodOptional<z.ZodString>;
81
136
  message_equals: z.ZodOptional<z.ZodString>;
82
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
137
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
138
+ window_error: "window_error";
139
+ resource_error: "resource_error";
140
+ }>>;
83
141
  browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
84
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
85
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
142
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
143
+ visible: "visible";
144
+ hidden: "hidden";
145
+ prerender: "prerender";
146
+ unloaded: "unloaded";
147
+ }>>;
148
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
149
+ loading: "loading";
150
+ interactive: "interactive";
151
+ complete: "complete";
152
+ }>>;
86
153
  browser_target_tag_name: z.ZodOptional<z.ZodString>;
87
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
154
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
88
155
  rel: z.ZodOptional<z.ZodString>;
89
156
  as: z.ZodOptional<z.ZodString>;
90
157
  type: z.ZodOptional<z.ZodString>;
@@ -93,134 +160,59 @@ export declare const CaptureRuleMatcherSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
93
160
  async: z.ZodOptional<z.ZodBoolean>;
94
161
  defer: z.ZodOptional<z.ZodBoolean>;
95
162
  integrity_present: z.ZodOptional<z.ZodBoolean>;
96
- }, "strict", z.ZodTypeAny, {
97
- type?: string | undefined;
98
- rel?: string | undefined;
99
- as?: string | undefined;
100
- media?: string | undefined;
101
- cross_origin?: string | undefined;
102
- async?: boolean | undefined;
103
- defer?: boolean | undefined;
104
- integrity_present?: boolean | undefined;
105
- }, {
106
- type?: string | undefined;
107
- rel?: string | undefined;
108
- as?: string | undefined;
109
- media?: string | undefined;
110
- cross_origin?: string | undefined;
111
- async?: boolean | undefined;
112
- defer?: boolean | undefined;
113
- integrity_present?: boolean | undefined;
114
- }>, CaptureRuleBrowserTargetAttributes, {
115
- type?: string | undefined;
163
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
116
164
  rel?: string | undefined;
117
165
  as?: string | undefined;
118
- media?: string | undefined;
119
- cross_origin?: string | undefined;
120
- async?: boolean | undefined;
121
- defer?: boolean | undefined;
122
- integrity_present?: boolean | undefined;
123
- }>, CaptureRuleBrowserTargetAttributes, {
124
166
  type?: string | undefined;
125
- rel?: string | undefined;
126
- as?: string | undefined;
127
167
  media?: string | undefined;
128
168
  cross_origin?: string | undefined;
129
169
  async?: boolean | undefined;
130
170
  defer?: boolean | undefined;
131
171
  integrity_present?: boolean | undefined;
172
+ }>>>;
173
+ client_kind: z.ZodOptional<z.ZodEnum<{
174
+ unknown: "unknown";
175
+ human: "human";
176
+ bot: "bot";
132
177
  }>>;
133
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
134
178
  bot_family: z.ZodOptional<z.ZodString>;
135
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
179
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
136
180
  host: z.ZodOptional<z.ZodString>;
137
181
  host_suffix: z.ZodOptional<z.ZodString>;
138
182
  path_prefix: z.ZodOptional<z.ZodString>;
139
183
  path_equals: z.ZodOptional<z.ZodString>;
140
- }, "strip", z.ZodTypeAny, {
141
- host?: string | undefined;
142
- host_suffix?: string | undefined;
143
- path_prefix?: string | undefined;
144
- path_equals?: string | undefined;
145
- }, {
146
- host?: string | undefined;
147
- host_suffix?: string | undefined;
148
- path_prefix?: string | undefined;
149
- path_equals?: string | undefined;
150
- }>, CaptureRuleUrlMatcher, {
151
- host?: string | undefined;
152
- host_suffix?: string | undefined;
153
- path_prefix?: string | undefined;
154
- path_equals?: string | undefined;
155
- }>, CaptureRuleUrlMatcher, {
184
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
156
185
  host?: string | undefined;
157
186
  host_suffix?: string | undefined;
158
187
  path_prefix?: string | undefined;
159
188
  path_equals?: string | undefined;
160
- }>>;
161
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
189
+ }>>>;
190
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
162
191
  host: z.ZodOptional<z.ZodString>;
163
192
  host_suffix: z.ZodOptional<z.ZodString>;
164
193
  path_prefix: z.ZodOptional<z.ZodString>;
165
194
  path_equals: z.ZodOptional<z.ZodString>;
166
- }, "strip", z.ZodTypeAny, {
167
- host?: string | undefined;
168
- host_suffix?: string | undefined;
169
- path_prefix?: string | undefined;
170
- path_equals?: string | undefined;
171
- }, {
172
- host?: string | undefined;
173
- host_suffix?: string | undefined;
174
- path_prefix?: string | undefined;
175
- path_equals?: string | undefined;
176
- }>, CaptureRuleUrlMatcher, {
177
- host?: string | undefined;
178
- host_suffix?: string | undefined;
179
- path_prefix?: string | undefined;
180
- path_equals?: string | undefined;
181
- }>, CaptureRuleUrlMatcher, {
195
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
182
196
  host?: string | undefined;
183
197
  host_suffix?: string | undefined;
184
198
  path_prefix?: string | undefined;
185
199
  path_equals?: string | undefined;
186
- }>>;
187
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
188
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
200
+ }>>>;
201
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
202
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
203
  start: z.ZodNumber;
190
204
  end: z.ZodNumber;
191
- }, "strip", z.ZodTypeAny, {
192
- start: number;
193
- end: number;
194
- }, {
195
- start: number;
196
- end: number;
197
- }>, {
198
- start: number;
199
- end: number;
200
- }, {
201
- start: number;
202
- end: number;
203
- }>, "many">>;
205
+ }, z.core.$strip>>>;
204
206
  fingerprint: z.ZodOptional<z.ZodObject<{
205
207
  version: z.ZodString;
206
208
  value: z.ZodString;
207
- }, "strip", z.ZodTypeAny, {
208
- value: string;
209
- version: string;
210
- }, {
211
- value: string;
212
- version: string;
213
- }>>;
214
- }, "strip", z.ZodTypeAny, {
215
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
216
- fingerprint?: {
217
- value: string;
218
- version: string;
219
- } | undefined;
220
- first_party?: boolean | undefined;
221
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
211
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
222
212
  services?: string[] | undefined;
223
213
  environments?: string[] | undefined;
214
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
215
+ first_party?: boolean | undefined;
224
216
  error_name?: string | undefined;
225
217
  message_contains?: string | undefined;
226
218
  message_equals?: string | undefined;
@@ -239,168 +231,66 @@ export declare const CaptureRuleMatcherSchema: z.ZodEffects<z.ZodEffects<z.ZodOb
239
231
  start: number;
240
232
  end: number;
241
233
  }[] | undefined;
242
- }, {
243
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
244
- fingerprint?: {
245
- value: string;
246
- version: string;
247
- } | undefined;
248
- first_party?: boolean | undefined;
249
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
250
- services?: string[] | undefined;
251
- environments?: string[] | undefined;
252
- error_name?: string | undefined;
253
- message_contains?: string | undefined;
254
- message_equals?: string | undefined;
255
- browser_event_kind?: "window_error" | "resource_error" | undefined;
256
- browser_event_opaque?: boolean | undefined;
257
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
258
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
259
- browser_target_tag_name?: string | undefined;
260
- browser_target_attributes?: {
261
- type?: string | undefined;
262
- rel?: string | undefined;
263
- as?: string | undefined;
264
- media?: string | undefined;
265
- cross_origin?: string | undefined;
266
- async?: boolean | undefined;
267
- defer?: boolean | undefined;
268
- integrity_present?: boolean | undefined;
269
- } | undefined;
270
- client_kind?: "unknown" | "human" | "bot" | undefined;
271
- bot_family?: string | undefined;
272
- resource_url?: {
273
- host?: string | undefined;
274
- host_suffix?: string | undefined;
275
- path_prefix?: string | undefined;
276
- path_equals?: string | undefined;
277
- } | undefined;
278
- request_url?: {
279
- host?: string | undefined;
280
- host_suffix?: string | undefined;
281
- path_prefix?: string | undefined;
282
- path_equals?: string | undefined;
283
- } | undefined;
284
- status_codes?: number[] | undefined;
285
- status_ranges?: {
286
- start: number;
287
- end: number;
288
- }[] | undefined;
289
- }>, CaptureRuleMatcher, {
290
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
291
234
  fingerprint?: {
292
- value: string;
293
235
  version: string;
294
- } | undefined;
295
- first_party?: boolean | undefined;
296
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
297
- services?: string[] | undefined;
298
- environments?: string[] | undefined;
299
- error_name?: string | undefined;
300
- message_contains?: string | undefined;
301
- message_equals?: string | undefined;
302
- browser_event_kind?: "window_error" | "resource_error" | undefined;
303
- browser_event_opaque?: boolean | undefined;
304
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
305
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
306
- browser_target_tag_name?: string | undefined;
307
- browser_target_attributes?: {
308
- type?: string | undefined;
309
- rel?: string | undefined;
310
- as?: string | undefined;
311
- media?: string | undefined;
312
- cross_origin?: string | undefined;
313
- async?: boolean | undefined;
314
- defer?: boolean | undefined;
315
- integrity_present?: boolean | undefined;
316
- } | undefined;
317
- client_kind?: "unknown" | "human" | "bot" | undefined;
318
- bot_family?: string | undefined;
319
- resource_url?: {
320
- host?: string | undefined;
321
- host_suffix?: string | undefined;
322
- path_prefix?: string | undefined;
323
- path_equals?: string | undefined;
324
- } | undefined;
325
- request_url?: {
326
- host?: string | undefined;
327
- host_suffix?: string | undefined;
328
- path_prefix?: string | undefined;
329
- path_equals?: string | undefined;
330
- } | undefined;
331
- status_codes?: number[] | undefined;
332
- status_ranges?: {
333
- start: number;
334
- end: number;
335
- }[] | undefined;
336
- }>, CaptureRuleMatcher, {
337
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
338
- fingerprint?: {
339
236
  value: string;
340
- version: string;
341
- } | undefined;
342
- first_party?: boolean | undefined;
343
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
344
- services?: string[] | undefined;
345
- environments?: string[] | undefined;
346
- error_name?: string | undefined;
347
- message_contains?: string | undefined;
348
- message_equals?: string | undefined;
349
- browser_event_kind?: "window_error" | "resource_error" | undefined;
350
- browser_event_opaque?: boolean | undefined;
351
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
352
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
353
- browser_target_tag_name?: string | undefined;
354
- browser_target_attributes?: {
355
- type?: string | undefined;
356
- rel?: string | undefined;
357
- as?: string | undefined;
358
- media?: string | undefined;
359
- cross_origin?: string | undefined;
360
- async?: boolean | undefined;
361
- defer?: boolean | undefined;
362
- integrity_present?: boolean | undefined;
363
- } | undefined;
364
- client_kind?: "unknown" | "human" | "bot" | undefined;
365
- bot_family?: string | undefined;
366
- resource_url?: {
367
- host?: string | undefined;
368
- host_suffix?: string | undefined;
369
- path_prefix?: string | undefined;
370
- path_equals?: string | undefined;
371
237
  } | undefined;
372
- request_url?: {
373
- host?: string | undefined;
374
- host_suffix?: string | undefined;
375
- path_prefix?: string | undefined;
376
- path_equals?: string | undefined;
377
- } | undefined;
378
- status_codes?: number[] | undefined;
379
- status_ranges?: {
380
- start: number;
381
- end: number;
382
- }[] | undefined;
383
- }>;
384
- export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
238
+ }>>;
239
+ export declare const CaptureRuleSchema: z.ZodObject<{
385
240
  name: z.ZodString;
386
241
  description: z.ZodNullable<z.ZodString>;
387
242
  enabled: z.ZodBoolean;
388
- action: z.ZodEnum<["demote", "sample", "drop"]>;
389
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
390
- 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">>;
391
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
243
+ action: z.ZodEnum<{
244
+ sample: "sample";
245
+ demote: "demote";
246
+ drop: "drop";
247
+ }>;
248
+ matcher: z.ZodPipe<z.ZodObject<{
249
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
250
+ backend_exception: "backend_exception";
251
+ request_event: "request_event";
252
+ log_event: "log_event";
253
+ frontend_breadcrumb: "frontend_breadcrumb";
254
+ frontend_exception: "frontend_exception";
255
+ deploy_metadata: "deploy_metadata";
256
+ error_suppressed: "error_suppressed";
257
+ probe_event: "probe_event";
258
+ diagnostic_context: "diagnostic_context";
259
+ }>>>;
260
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
261
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
263
+ unknown: "unknown";
264
+ browser: "browser";
265
+ node: "node";
266
+ python: "python";
267
+ php: "php";
268
+ go: "go";
269
+ ruby: "ruby";
270
+ java: "java";
271
+ }>>>;
394
272
  first_party: z.ZodOptional<z.ZodBoolean>;
395
273
  error_name: z.ZodOptional<z.ZodString>;
396
274
  message_contains: z.ZodOptional<z.ZodString>;
397
275
  message_equals: z.ZodOptional<z.ZodString>;
398
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
276
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
277
+ window_error: "window_error";
278
+ resource_error: "resource_error";
279
+ }>>;
399
280
  browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
400
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
401
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
281
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
282
+ visible: "visible";
283
+ hidden: "hidden";
284
+ prerender: "prerender";
285
+ unloaded: "unloaded";
286
+ }>>;
287
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
288
+ loading: "loading";
289
+ interactive: "interactive";
290
+ complete: "complete";
291
+ }>>;
402
292
  browser_target_tag_name: z.ZodOptional<z.ZodString>;
403
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
293
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
404
294
  rel: z.ZodOptional<z.ZodString>;
405
295
  as: z.ZodOptional<z.ZodString>;
406
296
  type: z.ZodOptional<z.ZodString>;
@@ -409,134 +299,59 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
409
299
  async: z.ZodOptional<z.ZodBoolean>;
410
300
  defer: z.ZodOptional<z.ZodBoolean>;
411
301
  integrity_present: z.ZodOptional<z.ZodBoolean>;
412
- }, "strict", z.ZodTypeAny, {
413
- type?: string | undefined;
414
- rel?: string | undefined;
415
- as?: string | undefined;
416
- media?: string | undefined;
417
- cross_origin?: string | undefined;
418
- async?: boolean | undefined;
419
- defer?: boolean | undefined;
420
- integrity_present?: boolean | undefined;
421
- }, {
422
- type?: string | undefined;
423
- rel?: string | undefined;
424
- as?: string | undefined;
425
- media?: string | undefined;
426
- cross_origin?: string | undefined;
427
- async?: boolean | undefined;
428
- defer?: boolean | undefined;
429
- integrity_present?: boolean | undefined;
430
- }>, CaptureRuleBrowserTargetAttributes, {
431
- type?: string | undefined;
302
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
432
303
  rel?: string | undefined;
433
304
  as?: string | undefined;
434
- media?: string | undefined;
435
- cross_origin?: string | undefined;
436
- async?: boolean | undefined;
437
- defer?: boolean | undefined;
438
- integrity_present?: boolean | undefined;
439
- }>, CaptureRuleBrowserTargetAttributes, {
440
305
  type?: string | undefined;
441
- rel?: string | undefined;
442
- as?: string | undefined;
443
306
  media?: string | undefined;
444
307
  cross_origin?: string | undefined;
445
308
  async?: boolean | undefined;
446
309
  defer?: boolean | undefined;
447
310
  integrity_present?: boolean | undefined;
311
+ }>>>;
312
+ client_kind: z.ZodOptional<z.ZodEnum<{
313
+ unknown: "unknown";
314
+ human: "human";
315
+ bot: "bot";
448
316
  }>>;
449
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
450
317
  bot_family: z.ZodOptional<z.ZodString>;
451
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
318
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
452
319
  host: z.ZodOptional<z.ZodString>;
453
320
  host_suffix: z.ZodOptional<z.ZodString>;
454
321
  path_prefix: z.ZodOptional<z.ZodString>;
455
322
  path_equals: z.ZodOptional<z.ZodString>;
456
- }, "strip", z.ZodTypeAny, {
457
- host?: string | undefined;
458
- host_suffix?: string | undefined;
459
- path_prefix?: string | undefined;
460
- path_equals?: string | undefined;
461
- }, {
462
- host?: string | undefined;
463
- host_suffix?: string | undefined;
464
- path_prefix?: string | undefined;
465
- path_equals?: string | undefined;
466
- }>, CaptureRuleUrlMatcher, {
467
- host?: string | undefined;
468
- host_suffix?: string | undefined;
469
- path_prefix?: string | undefined;
470
- path_equals?: string | undefined;
471
- }>, CaptureRuleUrlMatcher, {
323
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
472
324
  host?: string | undefined;
473
325
  host_suffix?: string | undefined;
474
326
  path_prefix?: string | undefined;
475
327
  path_equals?: string | undefined;
476
- }>>;
477
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
328
+ }>>>;
329
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
478
330
  host: z.ZodOptional<z.ZodString>;
479
331
  host_suffix: z.ZodOptional<z.ZodString>;
480
332
  path_prefix: z.ZodOptional<z.ZodString>;
481
333
  path_equals: z.ZodOptional<z.ZodString>;
482
- }, "strip", z.ZodTypeAny, {
483
- host?: string | undefined;
484
- host_suffix?: string | undefined;
485
- path_prefix?: string | undefined;
486
- path_equals?: string | undefined;
487
- }, {
488
- host?: string | undefined;
489
- host_suffix?: string | undefined;
490
- path_prefix?: string | undefined;
491
- path_equals?: string | undefined;
492
- }>, CaptureRuleUrlMatcher, {
493
- host?: string | undefined;
494
- host_suffix?: string | undefined;
495
- path_prefix?: string | undefined;
496
- path_equals?: string | undefined;
497
- }>, CaptureRuleUrlMatcher, {
334
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
498
335
  host?: string | undefined;
499
336
  host_suffix?: string | undefined;
500
337
  path_prefix?: string | undefined;
501
338
  path_equals?: string | undefined;
502
- }>>;
503
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
504
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
339
+ }>>>;
340
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
341
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
505
342
  start: z.ZodNumber;
506
343
  end: z.ZodNumber;
507
- }, "strip", z.ZodTypeAny, {
508
- start: number;
509
- end: number;
510
- }, {
511
- start: number;
512
- end: number;
513
- }>, {
514
- start: number;
515
- end: number;
516
- }, {
517
- start: number;
518
- end: number;
519
- }>, "many">>;
344
+ }, z.core.$strip>>>;
520
345
  fingerprint: z.ZodOptional<z.ZodObject<{
521
346
  version: z.ZodString;
522
347
  value: z.ZodString;
523
- }, "strip", z.ZodTypeAny, {
524
- value: string;
525
- version: string;
526
- }, {
527
- value: string;
528
- version: string;
529
- }>>;
530
- }, "strip", z.ZodTypeAny, {
531
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
532
- fingerprint?: {
533
- value: string;
534
- version: string;
535
- } | undefined;
536
- first_party?: boolean | undefined;
537
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
350
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
538
351
  services?: string[] | undefined;
539
352
  environments?: string[] | undefined;
353
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
354
+ first_party?: boolean | undefined;
540
355
  error_name?: string | undefined;
541
356
  message_contains?: string | undefined;
542
357
  message_equals?: string | undefined;
@@ -555,63 +370,144 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
555
370
  start: number;
556
371
  end: number;
557
372
  }[] | undefined;
558
- }, {
559
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
560
373
  fingerprint?: {
561
- value: string;
562
374
  version: string;
375
+ value: string;
563
376
  } | undefined;
564
- first_party?: boolean | undefined;
565
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
566
- services?: string[] | undefined;
567
- environments?: string[] | undefined;
568
- error_name?: string | undefined;
569
- message_contains?: string | undefined;
570
- message_equals?: string | undefined;
571
- browser_event_kind?: "window_error" | "resource_error" | undefined;
572
- browser_event_opaque?: boolean | undefined;
573
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
574
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
575
- browser_target_tag_name?: string | undefined;
576
- browser_target_attributes?: {
577
- type?: string | undefined;
377
+ }>>;
378
+ sample_rate: z.ZodNullable<z.ZodNumber>;
379
+ sample_event_class: z.ZodNullable<z.ZodEnum<{
380
+ context: "context";
381
+ preserve: "preserve";
382
+ }>>;
383
+ created_by_user_id: z.ZodNullable<z.ZodString>;
384
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
385
+ created_from_event_id: z.ZodNullable<z.ZodString>;
386
+ expires_at: z.ZodNullable<z.ZodString>;
387
+ id: z.ZodString;
388
+ project_id: z.ZodString;
389
+ hit_count: z.ZodNumber;
390
+ last_matched_at: z.ZodNullable<z.ZodString>;
391
+ created_at: z.ZodString;
392
+ updated_at: z.ZodString;
393
+ }, z.core.$strip>;
394
+ export type CaptureRule = z.infer<typeof CaptureRuleSchema>;
395
+ export declare const CaptureRuleCreateSchema: z.ZodPipe<z.ZodObject<{
396
+ name: z.ZodString;
397
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
398
+ enabled: z.ZodDefault<z.ZodBoolean>;
399
+ action: z.ZodEnum<{
400
+ sample: "sample";
401
+ demote: "demote";
402
+ drop: "drop";
403
+ }>;
404
+ matcher: z.ZodPipe<z.ZodObject<{
405
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
406
+ backend_exception: "backend_exception";
407
+ request_event: "request_event";
408
+ log_event: "log_event";
409
+ frontend_breadcrumb: "frontend_breadcrumb";
410
+ frontend_exception: "frontend_exception";
411
+ deploy_metadata: "deploy_metadata";
412
+ error_suppressed: "error_suppressed";
413
+ probe_event: "probe_event";
414
+ diagnostic_context: "diagnostic_context";
415
+ }>>>;
416
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
419
+ unknown: "unknown";
420
+ browser: "browser";
421
+ node: "node";
422
+ python: "python";
423
+ php: "php";
424
+ go: "go";
425
+ ruby: "ruby";
426
+ java: "java";
427
+ }>>>;
428
+ first_party: z.ZodOptional<z.ZodBoolean>;
429
+ error_name: z.ZodOptional<z.ZodString>;
430
+ message_contains: z.ZodOptional<z.ZodString>;
431
+ message_equals: z.ZodOptional<z.ZodString>;
432
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
433
+ window_error: "window_error";
434
+ resource_error: "resource_error";
435
+ }>>;
436
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
437
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
438
+ visible: "visible";
439
+ hidden: "hidden";
440
+ prerender: "prerender";
441
+ unloaded: "unloaded";
442
+ }>>;
443
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
444
+ loading: "loading";
445
+ interactive: "interactive";
446
+ complete: "complete";
447
+ }>>;
448
+ browser_target_tag_name: z.ZodOptional<z.ZodString>;
449
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
450
+ rel: z.ZodOptional<z.ZodString>;
451
+ as: z.ZodOptional<z.ZodString>;
452
+ type: z.ZodOptional<z.ZodString>;
453
+ media: z.ZodOptional<z.ZodString>;
454
+ cross_origin: z.ZodOptional<z.ZodString>;
455
+ async: z.ZodOptional<z.ZodBoolean>;
456
+ defer: z.ZodOptional<z.ZodBoolean>;
457
+ integrity_present: z.ZodOptional<z.ZodBoolean>;
458
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
578
459
  rel?: string | undefined;
579
460
  as?: string | undefined;
461
+ type?: string | undefined;
580
462
  media?: string | undefined;
581
463
  cross_origin?: string | undefined;
582
464
  async?: boolean | undefined;
583
465
  defer?: boolean | undefined;
584
466
  integrity_present?: boolean | undefined;
585
- } | undefined;
586
- client_kind?: "unknown" | "human" | "bot" | undefined;
587
- bot_family?: string | undefined;
588
- resource_url?: {
467
+ }>>>;
468
+ client_kind: z.ZodOptional<z.ZodEnum<{
469
+ unknown: "unknown";
470
+ human: "human";
471
+ bot: "bot";
472
+ }>>;
473
+ bot_family: z.ZodOptional<z.ZodString>;
474
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
475
+ host: z.ZodOptional<z.ZodString>;
476
+ host_suffix: z.ZodOptional<z.ZodString>;
477
+ path_prefix: z.ZodOptional<z.ZodString>;
478
+ path_equals: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
589
480
  host?: string | undefined;
590
481
  host_suffix?: string | undefined;
591
482
  path_prefix?: string | undefined;
592
483
  path_equals?: string | undefined;
593
- } | undefined;
594
- request_url?: {
484
+ }>>>;
485
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
486
+ host: z.ZodOptional<z.ZodString>;
487
+ host_suffix: z.ZodOptional<z.ZodString>;
488
+ path_prefix: z.ZodOptional<z.ZodString>;
489
+ path_equals: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
595
491
  host?: string | undefined;
596
492
  host_suffix?: string | undefined;
597
493
  path_prefix?: string | undefined;
598
494
  path_equals?: string | undefined;
599
- } | undefined;
600
- status_codes?: number[] | undefined;
601
- status_ranges?: {
602
- start: number;
603
- end: number;
604
- }[] | undefined;
605
- }>, CaptureRuleMatcher, {
606
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
607
- fingerprint?: {
608
- value: string;
609
- version: string;
610
- } | undefined;
611
- first_party?: boolean | undefined;
612
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
495
+ }>>>;
496
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
497
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
498
+ start: z.ZodNumber;
499
+ end: z.ZodNumber;
500
+ }, z.core.$strip>>>;
501
+ fingerprint: z.ZodOptional<z.ZodObject<{
502
+ version: z.ZodString;
503
+ value: z.ZodString;
504
+ }, z.core.$strip>>;
505
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
506
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
613
507
  services?: string[] | undefined;
614
508
  environments?: string[] | undefined;
509
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
510
+ first_party?: boolean | undefined;
615
511
  error_name?: string | undefined;
616
512
  message_contains?: string | undefined;
617
513
  message_equals?: string | undefined;
@@ -620,420 +516,172 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
620
516
  browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
621
517
  browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
622
518
  browser_target_tag_name?: string | undefined;
623
- browser_target_attributes?: {
624
- type?: string | undefined;
625
- rel?: string | undefined;
626
- as?: string | undefined;
627
- media?: string | undefined;
628
- cross_origin?: string | undefined;
629
- async?: boolean | undefined;
630
- defer?: boolean | undefined;
631
- integrity_present?: boolean | undefined;
632
- } | undefined;
519
+ browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
633
520
  client_kind?: "unknown" | "human" | "bot" | undefined;
634
521
  bot_family?: string | undefined;
635
- resource_url?: {
636
- host?: string | undefined;
637
- host_suffix?: string | undefined;
638
- path_prefix?: string | undefined;
639
- path_equals?: string | undefined;
640
- } | undefined;
641
- request_url?: {
642
- host?: string | undefined;
643
- host_suffix?: string | undefined;
644
- path_prefix?: string | undefined;
645
- path_equals?: string | undefined;
646
- } | undefined;
522
+ resource_url?: CaptureRuleUrlMatcher | undefined;
523
+ request_url?: CaptureRuleUrlMatcher | undefined;
647
524
  status_codes?: number[] | undefined;
648
525
  status_ranges?: {
649
526
  start: number;
650
527
  end: number;
651
528
  }[] | undefined;
652
- }>, CaptureRuleMatcher, {
653
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
654
529
  fingerprint?: {
655
- value: string;
656
530
  version: string;
531
+ value: string;
657
532
  } | undefined;
658
- first_party?: boolean | undefined;
659
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
660
- services?: string[] | undefined;
661
- environments?: string[] | undefined;
662
- error_name?: string | undefined;
663
- message_contains?: string | undefined;
664
- message_equals?: string | undefined;
665
- browser_event_kind?: "window_error" | "resource_error" | undefined;
666
- browser_event_opaque?: boolean | undefined;
667
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
668
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
669
- browser_target_tag_name?: string | undefined;
670
- browser_target_attributes?: {
671
- type?: string | undefined;
672
- rel?: string | undefined;
673
- as?: string | undefined;
674
- media?: string | undefined;
675
- cross_origin?: string | undefined;
676
- async?: boolean | undefined;
677
- defer?: boolean | undefined;
678
- integrity_present?: boolean | undefined;
679
- } | undefined;
680
- client_kind?: "unknown" | "human" | "bot" | undefined;
681
- bot_family?: string | undefined;
682
- resource_url?: {
683
- host?: string | undefined;
684
- host_suffix?: string | undefined;
685
- path_prefix?: string | undefined;
686
- path_equals?: string | undefined;
687
- } | undefined;
688
- request_url?: {
689
- host?: string | undefined;
690
- host_suffix?: string | undefined;
691
- path_prefix?: string | undefined;
692
- path_equals?: string | undefined;
693
- } | undefined;
694
- status_codes?: number[] | undefined;
695
- status_ranges?: {
696
- start: number;
697
- end: number;
698
- }[] | undefined;
699
- }>;
700
- sample_rate: z.ZodNullable<z.ZodNumber>;
701
- sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
702
- created_by_user_id: z.ZodNullable<z.ZodString>;
703
- created_from_incident_id: z.ZodNullable<z.ZodString>;
704
- created_from_event_id: z.ZodNullable<z.ZodString>;
705
- expires_at: z.ZodNullable<z.ZodString>;
706
- } & {
707
- id: z.ZodString;
708
- project_id: z.ZodString;
709
- hit_count: z.ZodNumber;
710
- last_matched_at: z.ZodNullable<z.ZodString>;
711
- created_at: z.ZodString;
712
- updated_at: z.ZodString;
713
- }, "strip", z.ZodTypeAny, {
714
- id: string;
715
- project_id: string;
716
- action: "sample" | "demote" | "drop";
717
- expires_at: string | null;
718
- created_at: string;
533
+ }>>;
534
+ sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
535
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
536
+ context: "context";
537
+ preserve: "preserve";
538
+ }>>>;
539
+ created_by_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
540
+ created_from_incident_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
541
+ created_from_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
542
+ expires_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
543
+ }, z.core.$strip>, z.ZodTransform<{
544
+ sample_rate: number | null;
545
+ sample_event_class: "context" | "preserve" | null;
719
546
  name: string;
720
- updated_at: string;
721
547
  description: string | null;
722
548
  enabled: boolean;
549
+ action: "sample" | "demote" | "drop";
723
550
  matcher: CaptureRuleMatcher;
724
- sample_rate: number | null;
725
- sample_event_class: "context" | "preserve" | null;
726
551
  created_by_user_id: string | null;
727
552
  created_from_incident_id: string | null;
728
553
  created_from_event_id: string | null;
729
- hit_count: number;
730
- last_matched_at: string | null;
731
- }, {
732
- id: string;
733
- project_id: string;
734
- action: "sample" | "demote" | "drop";
735
554
  expires_at: string | null;
736
- created_at: string;
555
+ }, {
737
556
  name: string;
738
- updated_at: string;
739
557
  description: string | null;
740
558
  enabled: boolean;
741
- matcher: {
742
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
743
- fingerprint?: {
744
- value: string;
745
- version: string;
746
- } | undefined;
747
- first_party?: boolean | undefined;
748
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
749
- services?: string[] | undefined;
750
- environments?: string[] | undefined;
751
- error_name?: string | undefined;
752
- message_contains?: string | undefined;
753
- message_equals?: string | undefined;
754
- browser_event_kind?: "window_error" | "resource_error" | undefined;
755
- browser_event_opaque?: boolean | undefined;
756
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
757
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
758
- browser_target_tag_name?: string | undefined;
759
- browser_target_attributes?: {
760
- type?: string | undefined;
559
+ action: "sample" | "demote" | "drop";
560
+ matcher: CaptureRuleMatcher;
561
+ created_by_user_id: string | null;
562
+ created_from_incident_id: string | null;
563
+ created_from_event_id: string | null;
564
+ expires_at: string | null;
565
+ sample_rate?: number | null | undefined;
566
+ sample_event_class?: "context" | "preserve" | null | undefined;
567
+ }>>;
568
+ export type CaptureRuleCreate = z.infer<typeof CaptureRuleCreateSchema>;
569
+ export declare const CaptureRuleUpdateSchema: z.ZodObject<{
570
+ name: z.ZodOptional<z.ZodString>;
571
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ enabled: z.ZodOptional<z.ZodBoolean>;
573
+ action: z.ZodOptional<z.ZodEnum<{
574
+ sample: "sample";
575
+ demote: "demote";
576
+ drop: "drop";
577
+ }>>;
578
+ matcher: z.ZodOptional<z.ZodPipe<z.ZodObject<{
579
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
580
+ backend_exception: "backend_exception";
581
+ request_event: "request_event";
582
+ log_event: "log_event";
583
+ frontend_breadcrumb: "frontend_breadcrumb";
584
+ frontend_exception: "frontend_exception";
585
+ deploy_metadata: "deploy_metadata";
586
+ error_suppressed: "error_suppressed";
587
+ probe_event: "probe_event";
588
+ diagnostic_context: "diagnostic_context";
589
+ }>>>;
590
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
591
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
592
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
593
+ unknown: "unknown";
594
+ browser: "browser";
595
+ node: "node";
596
+ python: "python";
597
+ php: "php";
598
+ go: "go";
599
+ ruby: "ruby";
600
+ java: "java";
601
+ }>>>;
602
+ first_party: z.ZodOptional<z.ZodBoolean>;
603
+ error_name: z.ZodOptional<z.ZodString>;
604
+ message_contains: z.ZodOptional<z.ZodString>;
605
+ message_equals: z.ZodOptional<z.ZodString>;
606
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
607
+ window_error: "window_error";
608
+ resource_error: "resource_error";
609
+ }>>;
610
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
611
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
612
+ visible: "visible";
613
+ hidden: "hidden";
614
+ prerender: "prerender";
615
+ unloaded: "unloaded";
616
+ }>>;
617
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
618
+ loading: "loading";
619
+ interactive: "interactive";
620
+ complete: "complete";
621
+ }>>;
622
+ browser_target_tag_name: z.ZodOptional<z.ZodString>;
623
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
624
+ rel: z.ZodOptional<z.ZodString>;
625
+ as: z.ZodOptional<z.ZodString>;
626
+ type: z.ZodOptional<z.ZodString>;
627
+ media: z.ZodOptional<z.ZodString>;
628
+ cross_origin: z.ZodOptional<z.ZodString>;
629
+ async: z.ZodOptional<z.ZodBoolean>;
630
+ defer: z.ZodOptional<z.ZodBoolean>;
631
+ integrity_present: z.ZodOptional<z.ZodBoolean>;
632
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
761
633
  rel?: string | undefined;
762
634
  as?: string | undefined;
635
+ type?: string | undefined;
763
636
  media?: string | undefined;
764
637
  cross_origin?: string | undefined;
765
638
  async?: boolean | undefined;
766
639
  defer?: boolean | undefined;
767
640
  integrity_present?: boolean | undefined;
768
- } | undefined;
769
- client_kind?: "unknown" | "human" | "bot" | undefined;
770
- bot_family?: string | undefined;
771
- resource_url?: {
641
+ }>>>;
642
+ client_kind: z.ZodOptional<z.ZodEnum<{
643
+ unknown: "unknown";
644
+ human: "human";
645
+ bot: "bot";
646
+ }>>;
647
+ bot_family: z.ZodOptional<z.ZodString>;
648
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
649
+ host: z.ZodOptional<z.ZodString>;
650
+ host_suffix: z.ZodOptional<z.ZodString>;
651
+ path_prefix: z.ZodOptional<z.ZodString>;
652
+ path_equals: z.ZodOptional<z.ZodString>;
653
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
772
654
  host?: string | undefined;
773
655
  host_suffix?: string | undefined;
774
656
  path_prefix?: string | undefined;
775
657
  path_equals?: string | undefined;
776
- } | undefined;
777
- request_url?: {
658
+ }>>>;
659
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
660
+ host: z.ZodOptional<z.ZodString>;
661
+ host_suffix: z.ZodOptional<z.ZodString>;
662
+ path_prefix: z.ZodOptional<z.ZodString>;
663
+ path_equals: z.ZodOptional<z.ZodString>;
664
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
778
665
  host?: string | undefined;
779
666
  host_suffix?: string | undefined;
780
667
  path_prefix?: string | undefined;
781
668
  path_equals?: string | undefined;
782
- } | undefined;
783
- status_codes?: number[] | undefined;
784
- status_ranges?: {
785
- start: number;
786
- end: number;
787
- }[] | undefined;
788
- };
789
- sample_rate: number | null;
790
- sample_event_class: "context" | "preserve" | null;
791
- created_by_user_id: string | null;
792
- created_from_incident_id: string | null;
793
- created_from_event_id: string | null;
794
- hit_count: number;
795
- last_matched_at: string | null;
796
- }>, {
797
- id: string;
798
- project_id: string;
799
- action: "sample" | "demote" | "drop";
800
- expires_at: string | null;
801
- created_at: string;
802
- name: string;
803
- updated_at: string;
804
- description: string | null;
805
- enabled: boolean;
806
- matcher: CaptureRuleMatcher;
807
- sample_rate: number | null;
808
- sample_event_class: "context" | "preserve" | null;
809
- created_by_user_id: string | null;
810
- created_from_incident_id: string | null;
811
- created_from_event_id: string | null;
812
- hit_count: number;
813
- last_matched_at: string | null;
814
- }, {
815
- id: string;
816
- project_id: string;
817
- action: "sample" | "demote" | "drop";
818
- expires_at: string | null;
819
- created_at: string;
820
- name: string;
821
- updated_at: string;
822
- description: string | null;
823
- enabled: boolean;
824
- matcher: {
825
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
826
- fingerprint?: {
827
- value: string;
828
- version: string;
829
- } | undefined;
830
- first_party?: boolean | undefined;
831
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
832
- services?: string[] | undefined;
833
- environments?: string[] | undefined;
834
- error_name?: string | undefined;
835
- message_contains?: string | undefined;
836
- message_equals?: string | undefined;
837
- browser_event_kind?: "window_error" | "resource_error" | undefined;
838
- browser_event_opaque?: boolean | undefined;
839
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
840
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
841
- browser_target_tag_name?: string | undefined;
842
- browser_target_attributes?: {
843
- type?: string | undefined;
844
- rel?: string | undefined;
845
- as?: string | undefined;
846
- media?: string | undefined;
847
- cross_origin?: string | undefined;
848
- async?: boolean | undefined;
849
- defer?: boolean | undefined;
850
- integrity_present?: boolean | undefined;
851
- } | undefined;
852
- client_kind?: "unknown" | "human" | "bot" | undefined;
853
- bot_family?: string | undefined;
854
- resource_url?: {
855
- host?: string | undefined;
856
- host_suffix?: string | undefined;
857
- path_prefix?: string | undefined;
858
- path_equals?: string | undefined;
859
- } | undefined;
860
- request_url?: {
861
- host?: string | undefined;
862
- host_suffix?: string | undefined;
863
- path_prefix?: string | undefined;
864
- path_equals?: string | undefined;
865
- } | undefined;
866
- status_codes?: number[] | undefined;
867
- status_ranges?: {
868
- start: number;
869
- end: number;
870
- }[] | undefined;
871
- };
872
- sample_rate: number | null;
873
- sample_event_class: "context" | "preserve" | null;
874
- created_by_user_id: string | null;
875
- created_from_incident_id: string | null;
876
- created_from_event_id: string | null;
877
- hit_count: number;
878
- last_matched_at: string | null;
879
- }>;
880
- export type CaptureRule = z.infer<typeof CaptureRuleSchema>;
881
- export declare const CaptureRuleCreateSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
882
- name: z.ZodString;
883
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
884
- enabled: z.ZodDefault<z.ZodBoolean>;
885
- action: z.ZodEnum<["demote", "sample", "drop"]>;
886
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
887
- 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">>;
888
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
889
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
890
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
891
- first_party: z.ZodOptional<z.ZodBoolean>;
892
- error_name: z.ZodOptional<z.ZodString>;
893
- message_contains: z.ZodOptional<z.ZodString>;
894
- message_equals: z.ZodOptional<z.ZodString>;
895
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
896
- browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
897
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
898
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
899
- browser_target_tag_name: z.ZodOptional<z.ZodString>;
900
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
901
- rel: z.ZodOptional<z.ZodString>;
902
- as: z.ZodOptional<z.ZodString>;
903
- type: z.ZodOptional<z.ZodString>;
904
- media: z.ZodOptional<z.ZodString>;
905
- cross_origin: z.ZodOptional<z.ZodString>;
906
- async: z.ZodOptional<z.ZodBoolean>;
907
- defer: z.ZodOptional<z.ZodBoolean>;
908
- integrity_present: z.ZodOptional<z.ZodBoolean>;
909
- }, "strict", z.ZodTypeAny, {
910
- type?: string | undefined;
911
- rel?: string | undefined;
912
- as?: string | undefined;
913
- media?: string | undefined;
914
- cross_origin?: string | undefined;
915
- async?: boolean | undefined;
916
- defer?: boolean | undefined;
917
- integrity_present?: boolean | undefined;
918
- }, {
919
- type?: string | undefined;
920
- rel?: string | undefined;
921
- as?: string | undefined;
922
- media?: string | undefined;
923
- cross_origin?: string | undefined;
924
- async?: boolean | undefined;
925
- defer?: boolean | undefined;
926
- integrity_present?: boolean | undefined;
927
- }>, CaptureRuleBrowserTargetAttributes, {
928
- type?: string | undefined;
929
- rel?: string | undefined;
930
- as?: string | undefined;
931
- media?: string | undefined;
932
- cross_origin?: string | undefined;
933
- async?: boolean | undefined;
934
- defer?: boolean | undefined;
935
- integrity_present?: boolean | undefined;
936
- }>, CaptureRuleBrowserTargetAttributes, {
937
- type?: string | undefined;
938
- rel?: string | undefined;
939
- as?: string | undefined;
940
- media?: string | undefined;
941
- cross_origin?: string | undefined;
942
- async?: boolean | undefined;
943
- defer?: boolean | undefined;
944
- integrity_present?: boolean | undefined;
945
- }>>;
946
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
947
- bot_family: z.ZodOptional<z.ZodString>;
948
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
949
- host: z.ZodOptional<z.ZodString>;
950
- host_suffix: z.ZodOptional<z.ZodString>;
951
- path_prefix: z.ZodOptional<z.ZodString>;
952
- path_equals: z.ZodOptional<z.ZodString>;
953
- }, "strip", z.ZodTypeAny, {
954
- host?: string | undefined;
955
- host_suffix?: string | undefined;
956
- path_prefix?: string | undefined;
957
- path_equals?: string | undefined;
958
- }, {
959
- host?: string | undefined;
960
- host_suffix?: string | undefined;
961
- path_prefix?: string | undefined;
962
- path_equals?: string | undefined;
963
- }>, CaptureRuleUrlMatcher, {
964
- host?: string | undefined;
965
- host_suffix?: string | undefined;
966
- path_prefix?: string | undefined;
967
- path_equals?: string | undefined;
968
- }>, CaptureRuleUrlMatcher, {
969
- host?: string | undefined;
970
- host_suffix?: string | undefined;
971
- path_prefix?: string | undefined;
972
- path_equals?: string | undefined;
973
- }>>;
974
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
975
- host: z.ZodOptional<z.ZodString>;
976
- host_suffix: z.ZodOptional<z.ZodString>;
977
- path_prefix: z.ZodOptional<z.ZodString>;
978
- path_equals: z.ZodOptional<z.ZodString>;
979
- }, "strip", z.ZodTypeAny, {
980
- host?: string | undefined;
981
- host_suffix?: string | undefined;
982
- path_prefix?: string | undefined;
983
- path_equals?: string | undefined;
984
- }, {
985
- host?: string | undefined;
986
- host_suffix?: string | undefined;
987
- path_prefix?: string | undefined;
988
- path_equals?: string | undefined;
989
- }>, CaptureRuleUrlMatcher, {
990
- host?: string | undefined;
991
- host_suffix?: string | undefined;
992
- path_prefix?: string | undefined;
993
- path_equals?: string | undefined;
994
- }>, CaptureRuleUrlMatcher, {
995
- host?: string | undefined;
996
- host_suffix?: string | undefined;
997
- path_prefix?: string | undefined;
998
- path_equals?: string | undefined;
999
- }>>;
1000
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1001
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
669
+ }>>>;
670
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
671
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1002
672
  start: z.ZodNumber;
1003
673
  end: z.ZodNumber;
1004
- }, "strip", z.ZodTypeAny, {
1005
- start: number;
1006
- end: number;
1007
- }, {
1008
- start: number;
1009
- end: number;
1010
- }>, {
1011
- start: number;
1012
- end: number;
1013
- }, {
1014
- start: number;
1015
- end: number;
1016
- }>, "many">>;
674
+ }, z.core.$strip>>>;
1017
675
  fingerprint: z.ZodOptional<z.ZodObject<{
1018
676
  version: z.ZodString;
1019
677
  value: z.ZodString;
1020
- }, "strip", z.ZodTypeAny, {
1021
- value: string;
1022
- version: string;
1023
- }, {
1024
- value: string;
1025
- version: string;
1026
- }>>;
1027
- }, "strip", z.ZodTypeAny, {
1028
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1029
- fingerprint?: {
1030
- value: string;
1031
- version: string;
1032
- } | undefined;
1033
- first_party?: boolean | undefined;
1034
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
678
+ }, z.core.$strip>>;
679
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
680
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
1035
681
  services?: string[] | undefined;
1036
682
  environments?: string[] | undefined;
683
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
684
+ first_party?: boolean | undefined;
1037
685
  error_name?: string | undefined;
1038
686
  message_contains?: string | undefined;
1039
687
  message_equals?: string | undefined;
@@ -1052,2017 +700,75 @@ export declare const CaptureRuleCreateSchema: z.ZodEffects<z.ZodEffects<z.ZodObj
1052
700
  start: number;
1053
701
  end: number;
1054
702
  }[] | undefined;
1055
- }, {
1056
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1057
703
  fingerprint?: {
1058
- value: string;
1059
704
  version: string;
1060
- } | undefined;
1061
- first_party?: boolean | undefined;
1062
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1063
- services?: string[] | undefined;
1064
- environments?: string[] | undefined;
1065
- error_name?: string | undefined;
1066
- message_contains?: string | undefined;
1067
- message_equals?: string | undefined;
1068
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1069
- browser_event_opaque?: boolean | undefined;
1070
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1071
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1072
- browser_target_tag_name?: string | undefined;
1073
- browser_target_attributes?: {
1074
- type?: string | undefined;
1075
- rel?: string | undefined;
1076
- as?: string | undefined;
1077
- media?: string | undefined;
1078
- cross_origin?: string | undefined;
1079
- async?: boolean | undefined;
1080
- defer?: boolean | undefined;
1081
- integrity_present?: boolean | undefined;
1082
- } | undefined;
1083
- client_kind?: "unknown" | "human" | "bot" | undefined;
1084
- bot_family?: string | undefined;
1085
- resource_url?: {
1086
- host?: string | undefined;
1087
- host_suffix?: string | undefined;
1088
- path_prefix?: string | undefined;
1089
- path_equals?: string | undefined;
1090
- } | undefined;
1091
- request_url?: {
1092
- host?: string | undefined;
1093
- host_suffix?: string | undefined;
1094
- path_prefix?: string | undefined;
1095
- path_equals?: string | undefined;
1096
- } | undefined;
1097
- status_codes?: number[] | undefined;
1098
- status_ranges?: {
1099
- start: number;
1100
- end: number;
1101
- }[] | undefined;
1102
- }>, CaptureRuleMatcher, {
1103
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1104
- fingerprint?: {
1105
705
  value: string;
1106
- version: string;
1107
- } | undefined;
1108
- first_party?: boolean | undefined;
1109
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1110
- services?: string[] | undefined;
1111
- environments?: string[] | undefined;
1112
- error_name?: string | undefined;
1113
- message_contains?: string | undefined;
1114
- message_equals?: string | undefined;
1115
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1116
- browser_event_opaque?: boolean | undefined;
1117
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1118
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1119
- browser_target_tag_name?: string | undefined;
1120
- browser_target_attributes?: {
1121
- type?: string | undefined;
1122
- rel?: string | undefined;
1123
- as?: string | undefined;
1124
- media?: string | undefined;
1125
- cross_origin?: string | undefined;
1126
- async?: boolean | undefined;
1127
- defer?: boolean | undefined;
1128
- integrity_present?: boolean | undefined;
1129
- } | undefined;
1130
- client_kind?: "unknown" | "human" | "bot" | undefined;
1131
- bot_family?: string | undefined;
1132
- resource_url?: {
1133
- host?: string | undefined;
1134
- host_suffix?: string | undefined;
1135
- path_prefix?: string | undefined;
1136
- path_equals?: string | undefined;
1137
- } | undefined;
1138
- request_url?: {
1139
- host?: string | undefined;
1140
- host_suffix?: string | undefined;
1141
- path_prefix?: string | undefined;
1142
- path_equals?: string | undefined;
1143
706
  } | undefined;
1144
- status_codes?: number[] | undefined;
1145
- status_ranges?: {
1146
- start: number;
1147
- end: number;
1148
- }[] | undefined;
1149
- }>, CaptureRuleMatcher, {
1150
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1151
- fingerprint?: {
1152
- value: string;
1153
- version: string;
1154
- } | undefined;
1155
- first_party?: boolean | undefined;
1156
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1157
- services?: string[] | undefined;
1158
- environments?: string[] | undefined;
1159
- error_name?: string | undefined;
1160
- message_contains?: string | undefined;
1161
- message_equals?: string | undefined;
1162
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1163
- browser_event_opaque?: boolean | undefined;
1164
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1165
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1166
- browser_target_tag_name?: string | undefined;
1167
- browser_target_attributes?: {
1168
- type?: string | undefined;
1169
- rel?: string | undefined;
1170
- as?: string | undefined;
1171
- media?: string | undefined;
1172
- cross_origin?: string | undefined;
1173
- async?: boolean | undefined;
1174
- defer?: boolean | undefined;
1175
- integrity_present?: boolean | undefined;
1176
- } | undefined;
1177
- client_kind?: "unknown" | "human" | "bot" | undefined;
1178
- bot_family?: string | undefined;
1179
- resource_url?: {
1180
- host?: string | undefined;
1181
- host_suffix?: string | undefined;
1182
- path_prefix?: string | undefined;
1183
- path_equals?: string | undefined;
1184
- } | undefined;
1185
- request_url?: {
1186
- host?: string | undefined;
1187
- host_suffix?: string | undefined;
1188
- path_prefix?: string | undefined;
1189
- path_equals?: string | undefined;
1190
- } | undefined;
1191
- status_codes?: number[] | undefined;
1192
- status_ranges?: {
1193
- start: number;
1194
- end: number;
1195
- }[] | undefined;
1196
- }>;
1197
- sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1198
- sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
1199
- created_by_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1200
- created_from_incident_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1201
- created_from_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1202
- expires_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1203
- }, "strip", z.ZodTypeAny, {
1204
- action: "sample" | "demote" | "drop";
1205
- expires_at: string | null;
1206
- name: string;
1207
- description: string | null;
1208
- enabled: boolean;
1209
- matcher: CaptureRuleMatcher;
1210
- created_by_user_id: string | null;
1211
- created_from_incident_id: string | null;
1212
- created_from_event_id: string | null;
1213
- sample_rate?: number | null | undefined;
1214
- sample_event_class?: "context" | "preserve" | null | undefined;
1215
- }, {
1216
- action: "sample" | "demote" | "drop";
1217
- name: string;
1218
- matcher: {
1219
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1220
- fingerprint?: {
1221
- value: string;
1222
- version: string;
1223
- } | undefined;
1224
- first_party?: boolean | undefined;
1225
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1226
- services?: string[] | undefined;
1227
- environments?: string[] | undefined;
1228
- error_name?: string | undefined;
1229
- message_contains?: string | undefined;
1230
- message_equals?: string | undefined;
1231
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1232
- browser_event_opaque?: boolean | undefined;
1233
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1234
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1235
- browser_target_tag_name?: string | undefined;
1236
- browser_target_attributes?: {
1237
- type?: string | undefined;
1238
- rel?: string | undefined;
1239
- as?: string | undefined;
1240
- media?: string | undefined;
1241
- cross_origin?: string | undefined;
1242
- async?: boolean | undefined;
1243
- defer?: boolean | undefined;
1244
- integrity_present?: boolean | undefined;
1245
- } | undefined;
1246
- client_kind?: "unknown" | "human" | "bot" | undefined;
1247
- bot_family?: string | undefined;
1248
- resource_url?: {
1249
- host?: string | undefined;
1250
- host_suffix?: string | undefined;
1251
- path_prefix?: string | undefined;
1252
- path_equals?: string | undefined;
1253
- } | undefined;
1254
- request_url?: {
1255
- host?: string | undefined;
1256
- host_suffix?: string | undefined;
1257
- path_prefix?: string | undefined;
1258
- path_equals?: string | undefined;
1259
- } | undefined;
1260
- status_codes?: number[] | undefined;
1261
- status_ranges?: {
1262
- start: number;
1263
- end: number;
1264
- }[] | undefined;
1265
- };
1266
- expires_at?: string | null | undefined;
1267
- description?: string | null | undefined;
1268
- enabled?: boolean | undefined;
1269
- sample_rate?: number | null | undefined;
1270
- sample_event_class?: "context" | "preserve" | null | undefined;
1271
- created_by_user_id?: string | null | undefined;
1272
- created_from_incident_id?: string | null | undefined;
1273
- created_from_event_id?: string | null | undefined;
1274
- }>, {
1275
- action: "sample" | "demote" | "drop";
1276
- expires_at: string | null;
1277
- name: string;
1278
- description: string | null;
1279
- enabled: boolean;
1280
- matcher: CaptureRuleMatcher;
1281
- created_by_user_id: string | null;
1282
- created_from_incident_id: string | null;
1283
- created_from_event_id: string | null;
1284
- sample_rate?: number | null | undefined;
1285
- sample_event_class?: "context" | "preserve" | null | undefined;
1286
- }, {
1287
- action: "sample" | "demote" | "drop";
1288
- name: string;
1289
- matcher: {
1290
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1291
- fingerprint?: {
1292
- value: string;
1293
- version: string;
1294
- } | undefined;
1295
- first_party?: boolean | undefined;
1296
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1297
- services?: string[] | undefined;
1298
- environments?: string[] | undefined;
1299
- error_name?: string | undefined;
1300
- message_contains?: string | undefined;
1301
- message_equals?: string | undefined;
1302
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1303
- browser_event_opaque?: boolean | undefined;
1304
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1305
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1306
- browser_target_tag_name?: string | undefined;
1307
- browser_target_attributes?: {
1308
- type?: string | undefined;
1309
- rel?: string | undefined;
1310
- as?: string | undefined;
1311
- media?: string | undefined;
1312
- cross_origin?: string | undefined;
1313
- async?: boolean | undefined;
1314
- defer?: boolean | undefined;
1315
- integrity_present?: boolean | undefined;
1316
- } | undefined;
1317
- client_kind?: "unknown" | "human" | "bot" | undefined;
1318
- bot_family?: string | undefined;
1319
- resource_url?: {
1320
- host?: string | undefined;
1321
- host_suffix?: string | undefined;
1322
- path_prefix?: string | undefined;
1323
- path_equals?: string | undefined;
1324
- } | undefined;
1325
- request_url?: {
1326
- host?: string | undefined;
1327
- host_suffix?: string | undefined;
1328
- path_prefix?: string | undefined;
1329
- path_equals?: string | undefined;
1330
- } | undefined;
1331
- status_codes?: number[] | undefined;
1332
- status_ranges?: {
1333
- start: number;
1334
- end: number;
1335
- }[] | undefined;
1336
- };
1337
- expires_at?: string | null | undefined;
1338
- description?: string | null | undefined;
1339
- enabled?: boolean | undefined;
1340
- sample_rate?: number | null | undefined;
1341
- sample_event_class?: "context" | "preserve" | null | undefined;
1342
- created_by_user_id?: string | null | undefined;
1343
- created_from_incident_id?: string | null | undefined;
1344
- created_from_event_id?: string | null | undefined;
1345
- }>, {
1346
- sample_rate: number | null;
1347
- sample_event_class: "context" | "preserve" | null;
1348
- action: "sample" | "demote" | "drop";
1349
- expires_at: string | null;
1350
- name: string;
1351
- description: string | null;
1352
- enabled: boolean;
1353
- matcher: CaptureRuleMatcher;
1354
- created_by_user_id: string | null;
1355
- created_from_incident_id: string | null;
1356
- created_from_event_id: string | null;
1357
- }, {
1358
- action: "sample" | "demote" | "drop";
1359
- name: string;
1360
- matcher: {
1361
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1362
- fingerprint?: {
1363
- value: string;
1364
- version: string;
1365
- } | undefined;
1366
- first_party?: boolean | undefined;
1367
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1368
- services?: string[] | undefined;
1369
- environments?: string[] | undefined;
1370
- error_name?: string | undefined;
1371
- message_contains?: string | undefined;
1372
- message_equals?: string | undefined;
1373
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1374
- browser_event_opaque?: boolean | undefined;
1375
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1376
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1377
- browser_target_tag_name?: string | undefined;
1378
- browser_target_attributes?: {
1379
- type?: string | undefined;
1380
- rel?: string | undefined;
1381
- as?: string | undefined;
1382
- media?: string | undefined;
1383
- cross_origin?: string | undefined;
1384
- async?: boolean | undefined;
1385
- defer?: boolean | undefined;
1386
- integrity_present?: boolean | undefined;
1387
- } | undefined;
1388
- client_kind?: "unknown" | "human" | "bot" | undefined;
1389
- bot_family?: string | undefined;
1390
- resource_url?: {
1391
- host?: string | undefined;
1392
- host_suffix?: string | undefined;
1393
- path_prefix?: string | undefined;
1394
- path_equals?: string | undefined;
1395
- } | undefined;
1396
- request_url?: {
1397
- host?: string | undefined;
1398
- host_suffix?: string | undefined;
1399
- path_prefix?: string | undefined;
1400
- path_equals?: string | undefined;
1401
- } | undefined;
1402
- status_codes?: number[] | undefined;
1403
- status_ranges?: {
1404
- start: number;
1405
- end: number;
1406
- }[] | undefined;
1407
- };
1408
- expires_at?: string | null | undefined;
1409
- description?: string | null | undefined;
1410
- enabled?: boolean | undefined;
1411
- sample_rate?: number | null | undefined;
1412
- sample_event_class?: "context" | "preserve" | null | undefined;
1413
- created_by_user_id?: string | null | undefined;
1414
- created_from_incident_id?: string | null | undefined;
1415
- created_from_event_id?: string | null | undefined;
1416
- }>;
1417
- export type CaptureRuleCreate = z.infer<typeof CaptureRuleCreateSchema>;
1418
- export declare const CaptureRuleUpdateSchema: z.ZodEffects<z.ZodObject<{
1419
- name: z.ZodOptional<z.ZodString>;
1420
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1421
- enabled: z.ZodOptional<z.ZodBoolean>;
1422
- action: z.ZodOptional<z.ZodEnum<["demote", "sample", "drop"]>>;
1423
- matcher: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1424
- 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">>;
1425
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1426
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1427
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
1428
- first_party: z.ZodOptional<z.ZodBoolean>;
1429
- error_name: z.ZodOptional<z.ZodString>;
1430
- message_contains: z.ZodOptional<z.ZodString>;
1431
- message_equals: z.ZodOptional<z.ZodString>;
1432
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
1433
- browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1434
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
1435
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
1436
- browser_target_tag_name: z.ZodOptional<z.ZodString>;
1437
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1438
- rel: z.ZodOptional<z.ZodString>;
1439
- as: z.ZodOptional<z.ZodString>;
1440
- type: z.ZodOptional<z.ZodString>;
1441
- media: z.ZodOptional<z.ZodString>;
1442
- cross_origin: z.ZodOptional<z.ZodString>;
1443
- async: z.ZodOptional<z.ZodBoolean>;
1444
- defer: z.ZodOptional<z.ZodBoolean>;
1445
- integrity_present: z.ZodOptional<z.ZodBoolean>;
1446
- }, "strict", z.ZodTypeAny, {
1447
- type?: string | undefined;
1448
- rel?: string | undefined;
1449
- as?: string | undefined;
1450
- media?: string | undefined;
1451
- cross_origin?: string | undefined;
1452
- async?: boolean | undefined;
1453
- defer?: boolean | undefined;
1454
- integrity_present?: boolean | undefined;
1455
- }, {
1456
- type?: string | undefined;
1457
- rel?: string | undefined;
1458
- as?: string | undefined;
1459
- media?: string | undefined;
1460
- cross_origin?: string | undefined;
1461
- async?: boolean | undefined;
1462
- defer?: boolean | undefined;
1463
- integrity_present?: boolean | undefined;
1464
- }>, CaptureRuleBrowserTargetAttributes, {
1465
- type?: string | undefined;
1466
- rel?: string | undefined;
1467
- as?: string | undefined;
1468
- media?: string | undefined;
1469
- cross_origin?: string | undefined;
1470
- async?: boolean | undefined;
1471
- defer?: boolean | undefined;
1472
- integrity_present?: boolean | undefined;
1473
- }>, CaptureRuleBrowserTargetAttributes, {
1474
- type?: string | undefined;
1475
- rel?: string | undefined;
1476
- as?: string | undefined;
1477
- media?: string | undefined;
1478
- cross_origin?: string | undefined;
1479
- async?: boolean | undefined;
1480
- defer?: boolean | undefined;
1481
- integrity_present?: boolean | undefined;
1482
- }>>;
1483
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
1484
- bot_family: z.ZodOptional<z.ZodString>;
1485
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1486
- host: z.ZodOptional<z.ZodString>;
1487
- host_suffix: z.ZodOptional<z.ZodString>;
1488
- path_prefix: z.ZodOptional<z.ZodString>;
1489
- path_equals: z.ZodOptional<z.ZodString>;
1490
- }, "strip", z.ZodTypeAny, {
1491
- host?: string | undefined;
1492
- host_suffix?: string | undefined;
1493
- path_prefix?: string | undefined;
1494
- path_equals?: string | undefined;
1495
- }, {
1496
- host?: string | undefined;
1497
- host_suffix?: string | undefined;
1498
- path_prefix?: string | undefined;
1499
- path_equals?: string | undefined;
1500
- }>, CaptureRuleUrlMatcher, {
1501
- host?: string | undefined;
1502
- host_suffix?: string | undefined;
1503
- path_prefix?: string | undefined;
1504
- path_equals?: string | undefined;
1505
- }>, CaptureRuleUrlMatcher, {
1506
- host?: string | undefined;
1507
- host_suffix?: string | undefined;
1508
- path_prefix?: string | undefined;
1509
- path_equals?: string | undefined;
1510
- }>>;
1511
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1512
- host: z.ZodOptional<z.ZodString>;
1513
- host_suffix: z.ZodOptional<z.ZodString>;
1514
- path_prefix: z.ZodOptional<z.ZodString>;
1515
- path_equals: z.ZodOptional<z.ZodString>;
1516
- }, "strip", z.ZodTypeAny, {
1517
- host?: string | undefined;
1518
- host_suffix?: string | undefined;
1519
- path_prefix?: string | undefined;
1520
- path_equals?: string | undefined;
1521
- }, {
1522
- host?: string | undefined;
1523
- host_suffix?: string | undefined;
1524
- path_prefix?: string | undefined;
1525
- path_equals?: string | undefined;
1526
- }>, CaptureRuleUrlMatcher, {
1527
- host?: string | undefined;
1528
- host_suffix?: string | undefined;
1529
- path_prefix?: string | undefined;
1530
- path_equals?: string | undefined;
1531
- }>, CaptureRuleUrlMatcher, {
1532
- host?: string | undefined;
1533
- host_suffix?: string | undefined;
1534
- path_prefix?: string | undefined;
1535
- path_equals?: string | undefined;
1536
- }>>;
1537
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1538
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1539
- start: z.ZodNumber;
1540
- end: z.ZodNumber;
1541
- }, "strip", z.ZodTypeAny, {
1542
- start: number;
1543
- end: number;
1544
- }, {
1545
- start: number;
1546
- end: number;
1547
- }>, {
1548
- start: number;
1549
- end: number;
1550
- }, {
1551
- start: number;
1552
- end: number;
1553
- }>, "many">>;
1554
- fingerprint: z.ZodOptional<z.ZodObject<{
1555
- version: z.ZodString;
1556
- value: z.ZodString;
1557
- }, "strip", z.ZodTypeAny, {
1558
- value: string;
1559
- version: string;
1560
- }, {
1561
- value: string;
1562
- version: string;
1563
- }>>;
1564
- }, "strip", z.ZodTypeAny, {
1565
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1566
- fingerprint?: {
1567
- value: string;
1568
- version: string;
1569
- } | undefined;
1570
- first_party?: boolean | undefined;
1571
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1572
- services?: string[] | undefined;
1573
- environments?: string[] | undefined;
1574
- error_name?: string | undefined;
1575
- message_contains?: string | undefined;
1576
- message_equals?: string | undefined;
1577
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1578
- browser_event_opaque?: boolean | undefined;
1579
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1580
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1581
- browser_target_tag_name?: string | undefined;
1582
- browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
1583
- client_kind?: "unknown" | "human" | "bot" | undefined;
1584
- bot_family?: string | undefined;
1585
- resource_url?: CaptureRuleUrlMatcher | undefined;
1586
- request_url?: CaptureRuleUrlMatcher | undefined;
1587
- status_codes?: number[] | undefined;
1588
- status_ranges?: {
1589
- start: number;
1590
- end: number;
1591
- }[] | undefined;
1592
- }, {
1593
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1594
- fingerprint?: {
1595
- value: string;
1596
- version: string;
1597
- } | undefined;
1598
- first_party?: boolean | undefined;
1599
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1600
- services?: string[] | undefined;
1601
- environments?: string[] | undefined;
1602
- error_name?: string | undefined;
1603
- message_contains?: string | undefined;
1604
- message_equals?: string | undefined;
1605
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1606
- browser_event_opaque?: boolean | undefined;
1607
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1608
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1609
- browser_target_tag_name?: string | undefined;
1610
- browser_target_attributes?: {
1611
- type?: string | undefined;
1612
- rel?: string | undefined;
1613
- as?: string | undefined;
1614
- media?: string | undefined;
1615
- cross_origin?: string | undefined;
1616
- async?: boolean | undefined;
1617
- defer?: boolean | undefined;
1618
- integrity_present?: boolean | undefined;
1619
- } | undefined;
1620
- client_kind?: "unknown" | "human" | "bot" | undefined;
1621
- bot_family?: string | undefined;
1622
- resource_url?: {
1623
- host?: string | undefined;
1624
- host_suffix?: string | undefined;
1625
- path_prefix?: string | undefined;
1626
- path_equals?: string | undefined;
1627
- } | undefined;
1628
- request_url?: {
1629
- host?: string | undefined;
1630
- host_suffix?: string | undefined;
1631
- path_prefix?: string | undefined;
1632
- path_equals?: string | undefined;
1633
- } | undefined;
1634
- status_codes?: number[] | undefined;
1635
- status_ranges?: {
1636
- start: number;
1637
- end: number;
1638
- }[] | undefined;
1639
- }>, CaptureRuleMatcher, {
1640
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1641
- fingerprint?: {
1642
- value: string;
1643
- version: string;
1644
- } | undefined;
1645
- first_party?: boolean | undefined;
1646
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1647
- services?: string[] | undefined;
1648
- environments?: string[] | undefined;
1649
- error_name?: string | undefined;
1650
- message_contains?: string | undefined;
1651
- message_equals?: string | undefined;
1652
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1653
- browser_event_opaque?: boolean | undefined;
1654
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1655
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1656
- browser_target_tag_name?: string | undefined;
1657
- browser_target_attributes?: {
1658
- type?: string | undefined;
1659
- rel?: string | undefined;
1660
- as?: string | undefined;
1661
- media?: string | undefined;
1662
- cross_origin?: string | undefined;
1663
- async?: boolean | undefined;
1664
- defer?: boolean | undefined;
1665
- integrity_present?: boolean | undefined;
1666
- } | undefined;
1667
- client_kind?: "unknown" | "human" | "bot" | undefined;
1668
- bot_family?: string | undefined;
1669
- resource_url?: {
1670
- host?: string | undefined;
1671
- host_suffix?: string | undefined;
1672
- path_prefix?: string | undefined;
1673
- path_equals?: string | undefined;
1674
- } | undefined;
1675
- request_url?: {
1676
- host?: string | undefined;
1677
- host_suffix?: string | undefined;
1678
- path_prefix?: string | undefined;
1679
- path_equals?: string | undefined;
1680
- } | undefined;
1681
- status_codes?: number[] | undefined;
1682
- status_ranges?: {
1683
- start: number;
1684
- end: number;
1685
- }[] | undefined;
1686
- }>, CaptureRuleMatcher, {
1687
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1688
- fingerprint?: {
1689
- value: string;
1690
- version: string;
1691
- } | undefined;
1692
- first_party?: boolean | undefined;
1693
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1694
- services?: string[] | undefined;
1695
- environments?: string[] | undefined;
1696
- error_name?: string | undefined;
1697
- message_contains?: string | undefined;
1698
- message_equals?: string | undefined;
1699
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1700
- browser_event_opaque?: boolean | undefined;
1701
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1702
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1703
- browser_target_tag_name?: string | undefined;
1704
- browser_target_attributes?: {
1705
- type?: string | undefined;
1706
- rel?: string | undefined;
1707
- as?: string | undefined;
1708
- media?: string | undefined;
1709
- cross_origin?: string | undefined;
1710
- async?: boolean | undefined;
1711
- defer?: boolean | undefined;
1712
- integrity_present?: boolean | undefined;
1713
- } | undefined;
1714
- client_kind?: "unknown" | "human" | "bot" | undefined;
1715
- bot_family?: string | undefined;
1716
- resource_url?: {
1717
- host?: string | undefined;
1718
- host_suffix?: string | undefined;
1719
- path_prefix?: string | undefined;
1720
- path_equals?: string | undefined;
1721
- } | undefined;
1722
- request_url?: {
1723
- host?: string | undefined;
1724
- host_suffix?: string | undefined;
1725
- path_prefix?: string | undefined;
1726
- path_equals?: string | undefined;
1727
- } | undefined;
1728
- status_codes?: number[] | undefined;
1729
- status_ranges?: {
1730
- start: number;
1731
- end: number;
1732
- }[] | undefined;
1733
- }>>;
1734
- sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1735
- sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
1736
- expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1737
- }, "strip", z.ZodTypeAny, {
1738
- action?: "sample" | "demote" | "drop" | undefined;
1739
- expires_at?: string | null | undefined;
1740
- name?: string | undefined;
1741
- description?: string | null | undefined;
1742
- enabled?: boolean | undefined;
1743
- matcher?: CaptureRuleMatcher | undefined;
1744
- sample_rate?: number | null | undefined;
1745
- sample_event_class?: "context" | "preserve" | null | undefined;
1746
- }, {
1747
- action?: "sample" | "demote" | "drop" | undefined;
1748
- expires_at?: string | null | undefined;
1749
- name?: string | undefined;
1750
- description?: string | null | undefined;
1751
- enabled?: boolean | undefined;
1752
- matcher?: {
1753
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1754
- fingerprint?: {
1755
- value: string;
1756
- version: string;
1757
- } | undefined;
1758
- first_party?: boolean | undefined;
1759
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1760
- services?: string[] | undefined;
1761
- environments?: string[] | undefined;
1762
- error_name?: string | undefined;
1763
- message_contains?: string | undefined;
1764
- message_equals?: string | undefined;
1765
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1766
- browser_event_opaque?: boolean | undefined;
1767
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1768
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1769
- browser_target_tag_name?: string | undefined;
1770
- browser_target_attributes?: {
1771
- type?: string | undefined;
1772
- rel?: string | undefined;
1773
- as?: string | undefined;
1774
- media?: string | undefined;
1775
- cross_origin?: string | undefined;
1776
- async?: boolean | undefined;
1777
- defer?: boolean | undefined;
1778
- integrity_present?: boolean | undefined;
1779
- } | undefined;
1780
- client_kind?: "unknown" | "human" | "bot" | undefined;
1781
- bot_family?: string | undefined;
1782
- resource_url?: {
1783
- host?: string | undefined;
1784
- host_suffix?: string | undefined;
1785
- path_prefix?: string | undefined;
1786
- path_equals?: string | undefined;
1787
- } | undefined;
1788
- request_url?: {
1789
- host?: string | undefined;
1790
- host_suffix?: string | undefined;
1791
- path_prefix?: string | undefined;
1792
- path_equals?: string | undefined;
1793
- } | undefined;
1794
- status_codes?: number[] | undefined;
1795
- status_ranges?: {
1796
- start: number;
1797
- end: number;
1798
- }[] | undefined;
1799
- } | undefined;
1800
- sample_rate?: number | null | undefined;
1801
- sample_event_class?: "context" | "preserve" | null | undefined;
1802
- }>, {
1803
- action?: "sample" | "demote" | "drop" | undefined;
1804
- expires_at?: string | null | undefined;
1805
- name?: string | undefined;
1806
- description?: string | null | undefined;
1807
- enabled?: boolean | undefined;
1808
- matcher?: CaptureRuleMatcher | undefined;
1809
- sample_rate?: number | null | undefined;
1810
- sample_event_class?: "context" | "preserve" | null | undefined;
1811
- }, {
1812
- action?: "sample" | "demote" | "drop" | undefined;
1813
- expires_at?: string | null | undefined;
1814
- name?: string | undefined;
1815
- description?: string | null | undefined;
1816
- enabled?: boolean | undefined;
1817
- matcher?: {
1818
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1819
- fingerprint?: {
1820
- value: string;
1821
- version: string;
1822
- } | undefined;
1823
- first_party?: boolean | undefined;
1824
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1825
- services?: string[] | undefined;
1826
- environments?: string[] | undefined;
1827
- error_name?: string | undefined;
1828
- message_contains?: string | undefined;
1829
- message_equals?: string | undefined;
1830
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1831
- browser_event_opaque?: boolean | undefined;
1832
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1833
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1834
- browser_target_tag_name?: string | undefined;
1835
- browser_target_attributes?: {
1836
- type?: string | undefined;
1837
- rel?: string | undefined;
1838
- as?: string | undefined;
1839
- media?: string | undefined;
1840
- cross_origin?: string | undefined;
1841
- async?: boolean | undefined;
1842
- defer?: boolean | undefined;
1843
- integrity_present?: boolean | undefined;
1844
- } | undefined;
1845
- client_kind?: "unknown" | "human" | "bot" | undefined;
1846
- bot_family?: string | undefined;
1847
- resource_url?: {
1848
- host?: string | undefined;
1849
- host_suffix?: string | undefined;
1850
- path_prefix?: string | undefined;
1851
- path_equals?: string | undefined;
1852
- } | undefined;
1853
- request_url?: {
1854
- host?: string | undefined;
1855
- host_suffix?: string | undefined;
1856
- path_prefix?: string | undefined;
1857
- path_equals?: string | undefined;
1858
- } | undefined;
1859
- status_codes?: number[] | undefined;
1860
- status_ranges?: {
1861
- start: number;
1862
- end: number;
1863
- }[] | undefined;
1864
- } | undefined;
1865
- sample_rate?: number | null | undefined;
1866
- sample_event_class?: "context" | "preserve" | null | undefined;
1867
- }>;
1868
- export type CaptureRuleUpdate = z.infer<typeof CaptureRuleUpdateSchema>;
1869
- export declare const CaptureRuleResponseSchema: z.ZodObject<{
1870
- rule: z.ZodEffects<z.ZodObject<{
1871
- name: z.ZodString;
1872
- description: z.ZodNullable<z.ZodString>;
1873
- enabled: z.ZodBoolean;
1874
- action: z.ZodEnum<["demote", "sample", "drop"]>;
1875
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1876
- 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">>;
1877
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1878
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1879
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
1880
- first_party: z.ZodOptional<z.ZodBoolean>;
1881
- error_name: z.ZodOptional<z.ZodString>;
1882
- message_contains: z.ZodOptional<z.ZodString>;
1883
- message_equals: z.ZodOptional<z.ZodString>;
1884
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
1885
- browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1886
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
1887
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
1888
- browser_target_tag_name: z.ZodOptional<z.ZodString>;
1889
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1890
- rel: z.ZodOptional<z.ZodString>;
1891
- as: z.ZodOptional<z.ZodString>;
1892
- type: z.ZodOptional<z.ZodString>;
1893
- media: z.ZodOptional<z.ZodString>;
1894
- cross_origin: z.ZodOptional<z.ZodString>;
1895
- async: z.ZodOptional<z.ZodBoolean>;
1896
- defer: z.ZodOptional<z.ZodBoolean>;
1897
- integrity_present: z.ZodOptional<z.ZodBoolean>;
1898
- }, "strict", z.ZodTypeAny, {
1899
- type?: string | undefined;
1900
- rel?: string | undefined;
1901
- as?: string | undefined;
1902
- media?: string | undefined;
1903
- cross_origin?: string | undefined;
1904
- async?: boolean | undefined;
1905
- defer?: boolean | undefined;
1906
- integrity_present?: boolean | undefined;
1907
- }, {
1908
- type?: string | undefined;
1909
- rel?: string | undefined;
1910
- as?: string | undefined;
1911
- media?: string | undefined;
1912
- cross_origin?: string | undefined;
1913
- async?: boolean | undefined;
1914
- defer?: boolean | undefined;
1915
- integrity_present?: boolean | undefined;
1916
- }>, CaptureRuleBrowserTargetAttributes, {
1917
- type?: string | undefined;
1918
- rel?: string | undefined;
1919
- as?: string | undefined;
1920
- media?: string | undefined;
1921
- cross_origin?: string | undefined;
1922
- async?: boolean | undefined;
1923
- defer?: boolean | undefined;
1924
- integrity_present?: boolean | undefined;
1925
- }>, CaptureRuleBrowserTargetAttributes, {
1926
- type?: string | undefined;
1927
- rel?: string | undefined;
1928
- as?: string | undefined;
1929
- media?: string | undefined;
1930
- cross_origin?: string | undefined;
1931
- async?: boolean | undefined;
1932
- defer?: boolean | undefined;
1933
- integrity_present?: boolean | undefined;
1934
- }>>;
1935
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
1936
- bot_family: z.ZodOptional<z.ZodString>;
1937
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1938
- host: z.ZodOptional<z.ZodString>;
1939
- host_suffix: z.ZodOptional<z.ZodString>;
1940
- path_prefix: z.ZodOptional<z.ZodString>;
1941
- path_equals: z.ZodOptional<z.ZodString>;
1942
- }, "strip", z.ZodTypeAny, {
1943
- host?: string | undefined;
1944
- host_suffix?: string | undefined;
1945
- path_prefix?: string | undefined;
1946
- path_equals?: string | undefined;
1947
- }, {
1948
- host?: string | undefined;
1949
- host_suffix?: string | undefined;
1950
- path_prefix?: string | undefined;
1951
- path_equals?: string | undefined;
1952
- }>, CaptureRuleUrlMatcher, {
1953
- host?: string | undefined;
1954
- host_suffix?: string | undefined;
1955
- path_prefix?: string | undefined;
1956
- path_equals?: string | undefined;
1957
- }>, CaptureRuleUrlMatcher, {
1958
- host?: string | undefined;
1959
- host_suffix?: string | undefined;
1960
- path_prefix?: string | undefined;
1961
- path_equals?: string | undefined;
1962
- }>>;
1963
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1964
- host: z.ZodOptional<z.ZodString>;
1965
- host_suffix: z.ZodOptional<z.ZodString>;
1966
- path_prefix: z.ZodOptional<z.ZodString>;
1967
- path_equals: z.ZodOptional<z.ZodString>;
1968
- }, "strip", z.ZodTypeAny, {
1969
- host?: string | undefined;
1970
- host_suffix?: string | undefined;
1971
- path_prefix?: string | undefined;
1972
- path_equals?: string | undefined;
1973
- }, {
1974
- host?: string | undefined;
1975
- host_suffix?: string | undefined;
1976
- path_prefix?: string | undefined;
1977
- path_equals?: string | undefined;
1978
- }>, CaptureRuleUrlMatcher, {
1979
- host?: string | undefined;
1980
- host_suffix?: string | undefined;
1981
- path_prefix?: string | undefined;
1982
- path_equals?: string | undefined;
1983
- }>, CaptureRuleUrlMatcher, {
1984
- host?: string | undefined;
1985
- host_suffix?: string | undefined;
1986
- path_prefix?: string | undefined;
1987
- path_equals?: string | undefined;
1988
- }>>;
1989
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1990
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1991
- start: z.ZodNumber;
1992
- end: z.ZodNumber;
1993
- }, "strip", z.ZodTypeAny, {
1994
- start: number;
1995
- end: number;
1996
- }, {
1997
- start: number;
1998
- end: number;
1999
- }>, {
2000
- start: number;
2001
- end: number;
2002
- }, {
2003
- start: number;
2004
- end: number;
2005
- }>, "many">>;
2006
- fingerprint: z.ZodOptional<z.ZodObject<{
2007
- version: z.ZodString;
2008
- value: z.ZodString;
2009
- }, "strip", z.ZodTypeAny, {
2010
- value: string;
2011
- version: string;
2012
- }, {
2013
- value: string;
2014
- version: string;
2015
- }>>;
2016
- }, "strip", z.ZodTypeAny, {
2017
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2018
- fingerprint?: {
2019
- value: string;
2020
- version: string;
2021
- } | undefined;
2022
- first_party?: boolean | undefined;
2023
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2024
- services?: string[] | undefined;
2025
- environments?: string[] | undefined;
2026
- error_name?: string | undefined;
2027
- message_contains?: string | undefined;
2028
- message_equals?: string | undefined;
2029
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2030
- browser_event_opaque?: boolean | undefined;
2031
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2032
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2033
- browser_target_tag_name?: string | undefined;
2034
- browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
2035
- client_kind?: "unknown" | "human" | "bot" | undefined;
2036
- bot_family?: string | undefined;
2037
- resource_url?: CaptureRuleUrlMatcher | undefined;
2038
- request_url?: CaptureRuleUrlMatcher | undefined;
2039
- status_codes?: number[] | undefined;
2040
- status_ranges?: {
2041
- start: number;
2042
- end: number;
2043
- }[] | undefined;
2044
- }, {
2045
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2046
- fingerprint?: {
2047
- value: string;
2048
- version: string;
2049
- } | undefined;
2050
- first_party?: boolean | undefined;
2051
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2052
- services?: string[] | undefined;
2053
- environments?: string[] | undefined;
2054
- error_name?: string | undefined;
2055
- message_contains?: string | undefined;
2056
- message_equals?: string | undefined;
2057
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2058
- browser_event_opaque?: boolean | undefined;
2059
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2060
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2061
- browser_target_tag_name?: string | undefined;
2062
- browser_target_attributes?: {
2063
- type?: string | undefined;
2064
- rel?: string | undefined;
2065
- as?: string | undefined;
2066
- media?: string | undefined;
2067
- cross_origin?: string | undefined;
2068
- async?: boolean | undefined;
2069
- defer?: boolean | undefined;
2070
- integrity_present?: boolean | undefined;
2071
- } | undefined;
2072
- client_kind?: "unknown" | "human" | "bot" | undefined;
2073
- bot_family?: string | undefined;
2074
- resource_url?: {
2075
- host?: string | undefined;
2076
- host_suffix?: string | undefined;
2077
- path_prefix?: string | undefined;
2078
- path_equals?: string | undefined;
2079
- } | undefined;
2080
- request_url?: {
2081
- host?: string | undefined;
2082
- host_suffix?: string | undefined;
2083
- path_prefix?: string | undefined;
2084
- path_equals?: string | undefined;
2085
- } | undefined;
2086
- status_codes?: number[] | undefined;
2087
- status_ranges?: {
2088
- start: number;
2089
- end: number;
2090
- }[] | undefined;
2091
- }>, CaptureRuleMatcher, {
2092
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2093
- fingerprint?: {
2094
- value: string;
2095
- version: string;
2096
- } | undefined;
2097
- first_party?: boolean | undefined;
2098
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2099
- services?: string[] | undefined;
2100
- environments?: string[] | undefined;
2101
- error_name?: string | undefined;
2102
- message_contains?: string | undefined;
2103
- message_equals?: string | undefined;
2104
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2105
- browser_event_opaque?: boolean | undefined;
2106
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2107
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2108
- browser_target_tag_name?: string | undefined;
2109
- browser_target_attributes?: {
2110
- type?: string | undefined;
2111
- rel?: string | undefined;
2112
- as?: string | undefined;
2113
- media?: string | undefined;
2114
- cross_origin?: string | undefined;
2115
- async?: boolean | undefined;
2116
- defer?: boolean | undefined;
2117
- integrity_present?: boolean | undefined;
2118
- } | undefined;
2119
- client_kind?: "unknown" | "human" | "bot" | undefined;
2120
- bot_family?: string | undefined;
2121
- resource_url?: {
2122
- host?: string | undefined;
2123
- host_suffix?: string | undefined;
2124
- path_prefix?: string | undefined;
2125
- path_equals?: string | undefined;
2126
- } | undefined;
2127
- request_url?: {
2128
- host?: string | undefined;
2129
- host_suffix?: string | undefined;
2130
- path_prefix?: string | undefined;
2131
- path_equals?: string | undefined;
2132
- } | undefined;
2133
- status_codes?: number[] | undefined;
2134
- status_ranges?: {
2135
- start: number;
2136
- end: number;
2137
- }[] | undefined;
2138
- }>, CaptureRuleMatcher, {
2139
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2140
- fingerprint?: {
2141
- value: string;
2142
- version: string;
2143
- } | undefined;
2144
- first_party?: boolean | undefined;
2145
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2146
- services?: string[] | undefined;
2147
- environments?: string[] | undefined;
2148
- error_name?: string | undefined;
2149
- message_contains?: string | undefined;
2150
- message_equals?: string | undefined;
2151
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2152
- browser_event_opaque?: boolean | undefined;
2153
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2154
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2155
- browser_target_tag_name?: string | undefined;
2156
- browser_target_attributes?: {
2157
- type?: string | undefined;
2158
- rel?: string | undefined;
2159
- as?: string | undefined;
2160
- media?: string | undefined;
2161
- cross_origin?: string | undefined;
2162
- async?: boolean | undefined;
2163
- defer?: boolean | undefined;
2164
- integrity_present?: boolean | undefined;
2165
- } | undefined;
2166
- client_kind?: "unknown" | "human" | "bot" | undefined;
2167
- bot_family?: string | undefined;
2168
- resource_url?: {
2169
- host?: string | undefined;
2170
- host_suffix?: string | undefined;
2171
- path_prefix?: string | undefined;
2172
- path_equals?: string | undefined;
2173
- } | undefined;
2174
- request_url?: {
2175
- host?: string | undefined;
2176
- host_suffix?: string | undefined;
2177
- path_prefix?: string | undefined;
2178
- path_equals?: string | undefined;
2179
- } | undefined;
2180
- status_codes?: number[] | undefined;
2181
- status_ranges?: {
2182
- start: number;
2183
- end: number;
2184
- }[] | undefined;
2185
- }>;
2186
- sample_rate: z.ZodNullable<z.ZodNumber>;
2187
- sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
2188
- created_by_user_id: z.ZodNullable<z.ZodString>;
2189
- created_from_incident_id: z.ZodNullable<z.ZodString>;
2190
- created_from_event_id: z.ZodNullable<z.ZodString>;
2191
- expires_at: z.ZodNullable<z.ZodString>;
2192
- } & {
2193
- id: z.ZodString;
2194
- project_id: z.ZodString;
2195
- hit_count: z.ZodNumber;
2196
- last_matched_at: z.ZodNullable<z.ZodString>;
2197
- created_at: z.ZodString;
2198
- updated_at: z.ZodString;
2199
- }, "strip", z.ZodTypeAny, {
2200
- id: string;
2201
- project_id: string;
2202
- action: "sample" | "demote" | "drop";
2203
- expires_at: string | null;
2204
- created_at: string;
2205
- name: string;
2206
- updated_at: string;
2207
- description: string | null;
2208
- enabled: boolean;
2209
- matcher: CaptureRuleMatcher;
2210
- sample_rate: number | null;
2211
- sample_event_class: "context" | "preserve" | null;
2212
- created_by_user_id: string | null;
2213
- created_from_incident_id: string | null;
2214
- created_from_event_id: string | null;
2215
- hit_count: number;
2216
- last_matched_at: string | null;
2217
- }, {
2218
- id: string;
2219
- project_id: string;
2220
- action: "sample" | "demote" | "drop";
2221
- expires_at: string | null;
2222
- created_at: string;
2223
- name: string;
2224
- updated_at: string;
2225
- description: string | null;
2226
- enabled: boolean;
2227
- matcher: {
2228
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2229
- fingerprint?: {
2230
- value: string;
2231
- version: string;
2232
- } | undefined;
2233
- first_party?: boolean | undefined;
2234
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2235
- services?: string[] | undefined;
2236
- environments?: string[] | undefined;
2237
- error_name?: string | undefined;
2238
- message_contains?: string | undefined;
2239
- message_equals?: string | undefined;
2240
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2241
- browser_event_opaque?: boolean | undefined;
2242
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2243
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2244
- browser_target_tag_name?: string | undefined;
2245
- browser_target_attributes?: {
2246
- type?: string | undefined;
2247
- rel?: string | undefined;
2248
- as?: string | undefined;
2249
- media?: string | undefined;
2250
- cross_origin?: string | undefined;
2251
- async?: boolean | undefined;
2252
- defer?: boolean | undefined;
2253
- integrity_present?: boolean | undefined;
2254
- } | undefined;
2255
- client_kind?: "unknown" | "human" | "bot" | undefined;
2256
- bot_family?: string | undefined;
2257
- resource_url?: {
2258
- host?: string | undefined;
2259
- host_suffix?: string | undefined;
2260
- path_prefix?: string | undefined;
2261
- path_equals?: string | undefined;
2262
- } | undefined;
2263
- request_url?: {
2264
- host?: string | undefined;
2265
- host_suffix?: string | undefined;
2266
- path_prefix?: string | undefined;
2267
- path_equals?: string | undefined;
2268
- } | undefined;
2269
- status_codes?: number[] | undefined;
2270
- status_ranges?: {
2271
- start: number;
2272
- end: number;
2273
- }[] | undefined;
2274
- };
2275
- sample_rate: number | null;
2276
- sample_event_class: "context" | "preserve" | null;
2277
- created_by_user_id: string | null;
2278
- created_from_incident_id: string | null;
2279
- created_from_event_id: string | null;
2280
- hit_count: number;
2281
- last_matched_at: string | null;
2282
- }>, {
2283
- id: string;
2284
- project_id: string;
2285
- action: "sample" | "demote" | "drop";
2286
- expires_at: string | null;
2287
- created_at: string;
2288
- name: string;
2289
- updated_at: string;
2290
- description: string | null;
2291
- enabled: boolean;
2292
- matcher: CaptureRuleMatcher;
2293
- sample_rate: number | null;
2294
- sample_event_class: "context" | "preserve" | null;
2295
- created_by_user_id: string | null;
2296
- created_from_incident_id: string | null;
2297
- created_from_event_id: string | null;
2298
- hit_count: number;
2299
- last_matched_at: string | null;
2300
- }, {
2301
- id: string;
2302
- project_id: string;
2303
- action: "sample" | "demote" | "drop";
2304
- expires_at: string | null;
2305
- created_at: string;
2306
- name: string;
2307
- updated_at: string;
2308
- description: string | null;
2309
- enabled: boolean;
2310
- matcher: {
2311
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2312
- fingerprint?: {
2313
- value: string;
2314
- version: string;
2315
- } | undefined;
2316
- first_party?: boolean | undefined;
2317
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2318
- services?: string[] | undefined;
2319
- environments?: string[] | undefined;
2320
- error_name?: string | undefined;
2321
- message_contains?: string | undefined;
2322
- message_equals?: string | undefined;
2323
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2324
- browser_event_opaque?: boolean | undefined;
2325
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2326
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2327
- browser_target_tag_name?: string | undefined;
2328
- browser_target_attributes?: {
2329
- type?: string | undefined;
2330
- rel?: string | undefined;
2331
- as?: string | undefined;
2332
- media?: string | undefined;
2333
- cross_origin?: string | undefined;
2334
- async?: boolean | undefined;
2335
- defer?: boolean | undefined;
2336
- integrity_present?: boolean | undefined;
2337
- } | undefined;
2338
- client_kind?: "unknown" | "human" | "bot" | undefined;
2339
- bot_family?: string | undefined;
2340
- resource_url?: {
2341
- host?: string | undefined;
2342
- host_suffix?: string | undefined;
2343
- path_prefix?: string | undefined;
2344
- path_equals?: string | undefined;
2345
- } | undefined;
2346
- request_url?: {
2347
- host?: string | undefined;
2348
- host_suffix?: string | undefined;
2349
- path_prefix?: string | undefined;
2350
- path_equals?: string | undefined;
2351
- } | undefined;
2352
- status_codes?: number[] | undefined;
2353
- status_ranges?: {
2354
- start: number;
2355
- end: number;
2356
- }[] | undefined;
2357
- };
2358
- sample_rate: number | null;
2359
- sample_event_class: "context" | "preserve" | null;
2360
- created_by_user_id: string | null;
2361
- created_from_incident_id: string | null;
2362
- created_from_event_id: string | null;
2363
- hit_count: number;
2364
- last_matched_at: string | null;
2365
- }>;
2366
- }, "strip", z.ZodTypeAny, {
2367
- rule: {
2368
- id: string;
2369
- project_id: string;
2370
- action: "sample" | "demote" | "drop";
2371
- expires_at: string | null;
2372
- created_at: string;
2373
- name: string;
2374
- updated_at: string;
2375
- description: string | null;
2376
- enabled: boolean;
2377
- matcher: CaptureRuleMatcher;
2378
- sample_rate: number | null;
2379
- sample_event_class: "context" | "preserve" | null;
2380
- created_by_user_id: string | null;
2381
- created_from_incident_id: string | null;
2382
- created_from_event_id: string | null;
2383
- hit_count: number;
2384
- last_matched_at: string | null;
2385
- };
2386
- }, {
2387
- rule: {
2388
- id: string;
2389
- project_id: string;
2390
- action: "sample" | "demote" | "drop";
2391
- expires_at: string | null;
2392
- created_at: string;
2393
- name: string;
2394
- updated_at: string;
2395
- description: string | null;
2396
- enabled: boolean;
2397
- matcher: {
2398
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2399
- fingerprint?: {
2400
- value: string;
2401
- version: string;
2402
- } | undefined;
2403
- first_party?: boolean | undefined;
2404
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2405
- services?: string[] | undefined;
2406
- environments?: string[] | undefined;
2407
- error_name?: string | undefined;
2408
- message_contains?: string | undefined;
2409
- message_equals?: string | undefined;
2410
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2411
- browser_event_opaque?: boolean | undefined;
2412
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2413
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2414
- browser_target_tag_name?: string | undefined;
2415
- browser_target_attributes?: {
2416
- type?: string | undefined;
2417
- rel?: string | undefined;
2418
- as?: string | undefined;
2419
- media?: string | undefined;
2420
- cross_origin?: string | undefined;
2421
- async?: boolean | undefined;
2422
- defer?: boolean | undefined;
2423
- integrity_present?: boolean | undefined;
2424
- } | undefined;
2425
- client_kind?: "unknown" | "human" | "bot" | undefined;
2426
- bot_family?: string | undefined;
2427
- resource_url?: {
2428
- host?: string | undefined;
2429
- host_suffix?: string | undefined;
2430
- path_prefix?: string | undefined;
2431
- path_equals?: string | undefined;
2432
- } | undefined;
2433
- request_url?: {
2434
- host?: string | undefined;
2435
- host_suffix?: string | undefined;
2436
- path_prefix?: string | undefined;
2437
- path_equals?: string | undefined;
2438
- } | undefined;
2439
- status_codes?: number[] | undefined;
2440
- status_ranges?: {
2441
- start: number;
2442
- end: number;
2443
- }[] | undefined;
2444
- };
2445
- sample_rate: number | null;
2446
- sample_event_class: "context" | "preserve" | null;
2447
- created_by_user_id: string | null;
2448
- created_from_incident_id: string | null;
2449
- created_from_event_id: string | null;
2450
- hit_count: number;
2451
- last_matched_at: string | null;
2452
- };
2453
- }>;
2454
- export type CaptureRuleResponse = z.infer<typeof CaptureRuleResponseSchema>;
2455
- export declare const CaptureRulesResponseSchema: z.ZodObject<{
2456
- access_mode: z.ZodEnum<["manage", "preview"]>;
2457
- rules: z.ZodArray<z.ZodEffects<z.ZodObject<{
2458
- name: z.ZodString;
2459
- description: z.ZodNullable<z.ZodString>;
2460
- enabled: z.ZodBoolean;
2461
- action: z.ZodEnum<["demote", "sample", "drop"]>;
2462
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2463
- 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">>;
2464
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2465
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2466
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
2467
- first_party: z.ZodOptional<z.ZodBoolean>;
2468
- error_name: z.ZodOptional<z.ZodString>;
2469
- message_contains: z.ZodOptional<z.ZodString>;
2470
- message_equals: z.ZodOptional<z.ZodString>;
2471
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
2472
- browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
2473
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
2474
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
2475
- browser_target_tag_name: z.ZodOptional<z.ZodString>;
2476
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2477
- rel: z.ZodOptional<z.ZodString>;
2478
- as: z.ZodOptional<z.ZodString>;
2479
- type: z.ZodOptional<z.ZodString>;
2480
- media: z.ZodOptional<z.ZodString>;
2481
- cross_origin: z.ZodOptional<z.ZodString>;
2482
- async: z.ZodOptional<z.ZodBoolean>;
2483
- defer: z.ZodOptional<z.ZodBoolean>;
2484
- integrity_present: z.ZodOptional<z.ZodBoolean>;
2485
- }, "strict", z.ZodTypeAny, {
2486
- type?: string | undefined;
2487
- rel?: string | undefined;
2488
- as?: string | undefined;
2489
- media?: string | undefined;
2490
- cross_origin?: string | undefined;
2491
- async?: boolean | undefined;
2492
- defer?: boolean | undefined;
2493
- integrity_present?: boolean | undefined;
2494
- }, {
2495
- type?: string | undefined;
2496
- rel?: string | undefined;
2497
- as?: string | undefined;
2498
- media?: string | undefined;
2499
- cross_origin?: string | undefined;
2500
- async?: boolean | undefined;
2501
- defer?: boolean | undefined;
2502
- integrity_present?: boolean | undefined;
2503
- }>, CaptureRuleBrowserTargetAttributes, {
2504
- type?: string | undefined;
2505
- rel?: string | undefined;
2506
- as?: string | undefined;
2507
- media?: string | undefined;
2508
- cross_origin?: string | undefined;
2509
- async?: boolean | undefined;
2510
- defer?: boolean | undefined;
2511
- integrity_present?: boolean | undefined;
2512
- }>, CaptureRuleBrowserTargetAttributes, {
2513
- type?: string | undefined;
2514
- rel?: string | undefined;
2515
- as?: string | undefined;
2516
- media?: string | undefined;
2517
- cross_origin?: string | undefined;
2518
- async?: boolean | undefined;
2519
- defer?: boolean | undefined;
2520
- integrity_present?: boolean | undefined;
2521
- }>>;
2522
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
2523
- bot_family: z.ZodOptional<z.ZodString>;
2524
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2525
- host: z.ZodOptional<z.ZodString>;
2526
- host_suffix: z.ZodOptional<z.ZodString>;
2527
- path_prefix: z.ZodOptional<z.ZodString>;
2528
- path_equals: z.ZodOptional<z.ZodString>;
2529
- }, "strip", z.ZodTypeAny, {
2530
- host?: string | undefined;
2531
- host_suffix?: string | undefined;
2532
- path_prefix?: string | undefined;
2533
- path_equals?: string | undefined;
2534
- }, {
2535
- host?: string | undefined;
2536
- host_suffix?: string | undefined;
2537
- path_prefix?: string | undefined;
2538
- path_equals?: string | undefined;
2539
- }>, CaptureRuleUrlMatcher, {
2540
- host?: string | undefined;
2541
- host_suffix?: string | undefined;
2542
- path_prefix?: string | undefined;
2543
- path_equals?: string | undefined;
2544
- }>, CaptureRuleUrlMatcher, {
2545
- host?: string | undefined;
2546
- host_suffix?: string | undefined;
2547
- path_prefix?: string | undefined;
2548
- path_equals?: string | undefined;
2549
- }>>;
2550
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2551
- host: z.ZodOptional<z.ZodString>;
2552
- host_suffix: z.ZodOptional<z.ZodString>;
2553
- path_prefix: z.ZodOptional<z.ZodString>;
2554
- path_equals: z.ZodOptional<z.ZodString>;
2555
- }, "strip", z.ZodTypeAny, {
2556
- host?: string | undefined;
2557
- host_suffix?: string | undefined;
2558
- path_prefix?: string | undefined;
2559
- path_equals?: string | undefined;
2560
- }, {
2561
- host?: string | undefined;
2562
- host_suffix?: string | undefined;
2563
- path_prefix?: string | undefined;
2564
- path_equals?: string | undefined;
2565
- }>, CaptureRuleUrlMatcher, {
2566
- host?: string | undefined;
2567
- host_suffix?: string | undefined;
2568
- path_prefix?: string | undefined;
2569
- path_equals?: string | undefined;
2570
- }>, CaptureRuleUrlMatcher, {
2571
- host?: string | undefined;
2572
- host_suffix?: string | undefined;
2573
- path_prefix?: string | undefined;
2574
- path_equals?: string | undefined;
2575
- }>>;
2576
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2577
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2578
- start: z.ZodNumber;
2579
- end: z.ZodNumber;
2580
- }, "strip", z.ZodTypeAny, {
2581
- start: number;
2582
- end: number;
2583
- }, {
2584
- start: number;
2585
- end: number;
2586
- }>, {
2587
- start: number;
2588
- end: number;
2589
- }, {
2590
- start: number;
2591
- end: number;
2592
- }>, "many">>;
2593
- fingerprint: z.ZodOptional<z.ZodObject<{
2594
- version: z.ZodString;
2595
- value: z.ZodString;
2596
- }, "strip", z.ZodTypeAny, {
2597
- value: string;
2598
- version: string;
2599
- }, {
2600
- value: string;
2601
- version: string;
2602
- }>>;
2603
- }, "strip", z.ZodTypeAny, {
2604
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2605
- fingerprint?: {
2606
- value: string;
2607
- version: string;
2608
- } | undefined;
2609
- first_party?: boolean | undefined;
2610
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2611
- services?: string[] | undefined;
2612
- environments?: string[] | undefined;
2613
- error_name?: string | undefined;
2614
- message_contains?: string | undefined;
2615
- message_equals?: string | undefined;
2616
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2617
- browser_event_opaque?: boolean | undefined;
2618
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2619
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2620
- browser_target_tag_name?: string | undefined;
2621
- browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
2622
- client_kind?: "unknown" | "human" | "bot" | undefined;
2623
- bot_family?: string | undefined;
2624
- resource_url?: CaptureRuleUrlMatcher | undefined;
2625
- request_url?: CaptureRuleUrlMatcher | undefined;
2626
- status_codes?: number[] | undefined;
2627
- status_ranges?: {
2628
- start: number;
2629
- end: number;
2630
- }[] | undefined;
2631
- }, {
2632
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2633
- fingerprint?: {
2634
- value: string;
2635
- version: string;
2636
- } | undefined;
2637
- first_party?: boolean | undefined;
2638
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2639
- services?: string[] | undefined;
2640
- environments?: string[] | undefined;
2641
- error_name?: string | undefined;
2642
- message_contains?: string | undefined;
2643
- message_equals?: string | undefined;
2644
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2645
- browser_event_opaque?: boolean | undefined;
2646
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2647
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2648
- browser_target_tag_name?: string | undefined;
2649
- browser_target_attributes?: {
2650
- type?: string | undefined;
2651
- rel?: string | undefined;
2652
- as?: string | undefined;
2653
- media?: string | undefined;
2654
- cross_origin?: string | undefined;
2655
- async?: boolean | undefined;
2656
- defer?: boolean | undefined;
2657
- integrity_present?: boolean | undefined;
2658
- } | undefined;
2659
- client_kind?: "unknown" | "human" | "bot" | undefined;
2660
- bot_family?: string | undefined;
2661
- resource_url?: {
2662
- host?: string | undefined;
2663
- host_suffix?: string | undefined;
2664
- path_prefix?: string | undefined;
2665
- path_equals?: string | undefined;
2666
- } | undefined;
2667
- request_url?: {
2668
- host?: string | undefined;
2669
- host_suffix?: string | undefined;
2670
- path_prefix?: string | undefined;
2671
- path_equals?: string | undefined;
2672
- } | undefined;
2673
- status_codes?: number[] | undefined;
2674
- status_ranges?: {
2675
- start: number;
2676
- end: number;
2677
- }[] | undefined;
2678
- }>, CaptureRuleMatcher, {
2679
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2680
- fingerprint?: {
2681
- value: string;
2682
- version: string;
2683
- } | undefined;
2684
- first_party?: boolean | undefined;
2685
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2686
- services?: string[] | undefined;
2687
- environments?: string[] | undefined;
2688
- error_name?: string | undefined;
2689
- message_contains?: string | undefined;
2690
- message_equals?: string | undefined;
2691
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2692
- browser_event_opaque?: boolean | undefined;
2693
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2694
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2695
- browser_target_tag_name?: string | undefined;
2696
- browser_target_attributes?: {
2697
- type?: string | undefined;
2698
- rel?: string | undefined;
2699
- as?: string | undefined;
2700
- media?: string | undefined;
2701
- cross_origin?: string | undefined;
2702
- async?: boolean | undefined;
2703
- defer?: boolean | undefined;
2704
- integrity_present?: boolean | undefined;
2705
- } | undefined;
2706
- client_kind?: "unknown" | "human" | "bot" | undefined;
2707
- bot_family?: string | undefined;
2708
- resource_url?: {
2709
- host?: string | undefined;
2710
- host_suffix?: string | undefined;
2711
- path_prefix?: string | undefined;
2712
- path_equals?: string | undefined;
2713
- } | undefined;
2714
- request_url?: {
2715
- host?: string | undefined;
2716
- host_suffix?: string | undefined;
2717
- path_prefix?: string | undefined;
2718
- path_equals?: string | undefined;
2719
- } | undefined;
2720
- status_codes?: number[] | undefined;
2721
- status_ranges?: {
2722
- start: number;
2723
- end: number;
2724
- }[] | undefined;
2725
- }>, CaptureRuleMatcher, {
2726
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2727
- fingerprint?: {
2728
- value: string;
2729
- version: string;
2730
- } | undefined;
2731
- first_party?: boolean | undefined;
2732
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2733
- services?: string[] | undefined;
2734
- environments?: string[] | undefined;
2735
- error_name?: string | undefined;
2736
- message_contains?: string | undefined;
2737
- message_equals?: string | undefined;
2738
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2739
- browser_event_opaque?: boolean | undefined;
2740
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2741
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2742
- browser_target_tag_name?: string | undefined;
2743
- browser_target_attributes?: {
2744
- type?: string | undefined;
2745
- rel?: string | undefined;
2746
- as?: string | undefined;
2747
- media?: string | undefined;
2748
- cross_origin?: string | undefined;
2749
- async?: boolean | undefined;
2750
- defer?: boolean | undefined;
2751
- integrity_present?: boolean | undefined;
2752
- } | undefined;
2753
- client_kind?: "unknown" | "human" | "bot" | undefined;
2754
- bot_family?: string | undefined;
2755
- resource_url?: {
2756
- host?: string | undefined;
2757
- host_suffix?: string | undefined;
2758
- path_prefix?: string | undefined;
2759
- path_equals?: string | undefined;
2760
- } | undefined;
2761
- request_url?: {
2762
- host?: string | undefined;
2763
- host_suffix?: string | undefined;
2764
- path_prefix?: string | undefined;
2765
- path_equals?: string | undefined;
2766
- } | undefined;
2767
- status_codes?: number[] | undefined;
2768
- status_ranges?: {
2769
- start: number;
2770
- end: number;
2771
- }[] | undefined;
2772
- }>;
2773
- sample_rate: z.ZodNullable<z.ZodNumber>;
2774
- sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
2775
- created_by_user_id: z.ZodNullable<z.ZodString>;
2776
- created_from_incident_id: z.ZodNullable<z.ZodString>;
2777
- created_from_event_id: z.ZodNullable<z.ZodString>;
2778
- expires_at: z.ZodNullable<z.ZodString>;
2779
- } & {
2780
- id: z.ZodString;
2781
- project_id: z.ZodString;
2782
- hit_count: z.ZodNumber;
2783
- last_matched_at: z.ZodNullable<z.ZodString>;
2784
- created_at: z.ZodString;
2785
- updated_at: z.ZodString;
2786
- }, "strip", z.ZodTypeAny, {
2787
- id: string;
2788
- project_id: string;
2789
- action: "sample" | "demote" | "drop";
2790
- expires_at: string | null;
2791
- created_at: string;
2792
- name: string;
2793
- updated_at: string;
2794
- description: string | null;
2795
- enabled: boolean;
2796
- matcher: CaptureRuleMatcher;
2797
- sample_rate: number | null;
2798
- sample_event_class: "context" | "preserve" | null;
2799
- created_by_user_id: string | null;
2800
- created_from_incident_id: string | null;
2801
- created_from_event_id: string | null;
2802
- hit_count: number;
2803
- last_matched_at: string | null;
2804
- }, {
2805
- id: string;
2806
- project_id: string;
2807
- action: "sample" | "demote" | "drop";
2808
- expires_at: string | null;
2809
- created_at: string;
2810
- name: string;
2811
- updated_at: string;
2812
- description: string | null;
2813
- enabled: boolean;
2814
- matcher: {
2815
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2816
- fingerprint?: {
2817
- value: string;
2818
- version: string;
2819
- } | undefined;
2820
- first_party?: boolean | undefined;
2821
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2822
- services?: string[] | undefined;
2823
- environments?: string[] | undefined;
2824
- error_name?: string | undefined;
2825
- message_contains?: string | undefined;
2826
- message_equals?: string | undefined;
2827
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2828
- browser_event_opaque?: boolean | undefined;
2829
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2830
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2831
- browser_target_tag_name?: string | undefined;
2832
- browser_target_attributes?: {
2833
- type?: string | undefined;
2834
- rel?: string | undefined;
2835
- as?: string | undefined;
2836
- media?: string | undefined;
2837
- cross_origin?: string | undefined;
2838
- async?: boolean | undefined;
2839
- defer?: boolean | undefined;
2840
- integrity_present?: boolean | undefined;
2841
- } | undefined;
2842
- client_kind?: "unknown" | "human" | "bot" | undefined;
2843
- bot_family?: string | undefined;
2844
- resource_url?: {
2845
- host?: string | undefined;
2846
- host_suffix?: string | undefined;
2847
- path_prefix?: string | undefined;
2848
- path_equals?: string | undefined;
2849
- } | undefined;
2850
- request_url?: {
2851
- host?: string | undefined;
2852
- host_suffix?: string | undefined;
2853
- path_prefix?: string | undefined;
2854
- path_equals?: string | undefined;
2855
- } | undefined;
2856
- status_codes?: number[] | undefined;
2857
- status_ranges?: {
2858
- start: number;
2859
- end: number;
2860
- }[] | undefined;
2861
- };
2862
- sample_rate: number | null;
2863
- sample_event_class: "context" | "preserve" | null;
2864
- created_by_user_id: string | null;
2865
- created_from_incident_id: string | null;
2866
- created_from_event_id: string | null;
2867
- hit_count: number;
2868
- last_matched_at: string | null;
2869
- }>, {
2870
- id: string;
2871
- project_id: string;
2872
- action: "sample" | "demote" | "drop";
2873
- expires_at: string | null;
2874
- created_at: string;
2875
- name: string;
2876
- updated_at: string;
2877
- description: string | null;
2878
- enabled: boolean;
2879
- matcher: CaptureRuleMatcher;
2880
- sample_rate: number | null;
2881
- sample_event_class: "context" | "preserve" | null;
2882
- created_by_user_id: string | null;
2883
- created_from_incident_id: string | null;
2884
- created_from_event_id: string | null;
2885
- hit_count: number;
2886
- last_matched_at: string | null;
2887
- }, {
2888
- id: string;
2889
- project_id: string;
2890
- action: "sample" | "demote" | "drop";
2891
- expires_at: string | null;
2892
- created_at: string;
2893
- name: string;
2894
- updated_at: string;
2895
- description: string | null;
2896
- enabled: boolean;
2897
- matcher: {
2898
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2899
- fingerprint?: {
2900
- value: string;
2901
- version: string;
2902
- } | undefined;
2903
- first_party?: boolean | undefined;
2904
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2905
- services?: string[] | undefined;
2906
- environments?: string[] | undefined;
2907
- error_name?: string | undefined;
2908
- message_contains?: string | undefined;
2909
- message_equals?: string | undefined;
2910
- browser_event_kind?: "window_error" | "resource_error" | undefined;
2911
- browser_event_opaque?: boolean | undefined;
2912
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
2913
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
2914
- browser_target_tag_name?: string | undefined;
2915
- browser_target_attributes?: {
2916
- type?: string | undefined;
2917
- rel?: string | undefined;
2918
- as?: string | undefined;
2919
- media?: string | undefined;
2920
- cross_origin?: string | undefined;
2921
- async?: boolean | undefined;
2922
- defer?: boolean | undefined;
2923
- integrity_present?: boolean | undefined;
2924
- } | undefined;
2925
- client_kind?: "unknown" | "human" | "bot" | undefined;
2926
- bot_family?: string | undefined;
2927
- resource_url?: {
2928
- host?: string | undefined;
2929
- host_suffix?: string | undefined;
2930
- path_prefix?: string | undefined;
2931
- path_equals?: string | undefined;
2932
- } | undefined;
2933
- request_url?: {
2934
- host?: string | undefined;
2935
- host_suffix?: string | undefined;
2936
- path_prefix?: string | undefined;
2937
- path_equals?: string | undefined;
2938
- } | undefined;
2939
- status_codes?: number[] | undefined;
2940
- status_ranges?: {
2941
- start: number;
2942
- end: number;
2943
- }[] | undefined;
2944
- };
2945
- sample_rate: number | null;
2946
- sample_event_class: "context" | "preserve" | null;
2947
- created_by_user_id: string | null;
2948
- created_from_incident_id: string | null;
2949
- created_from_event_id: string | null;
2950
- hit_count: number;
2951
- last_matched_at: string | null;
2952
- }>, "many">;
2953
- }, "strip", z.ZodTypeAny, {
2954
- access_mode: "manage" | "preview";
2955
- rules: {
2956
- id: string;
2957
- project_id: string;
2958
- action: "sample" | "demote" | "drop";
2959
- expires_at: string | null;
2960
- created_at: string;
2961
- name: string;
2962
- updated_at: string;
2963
- description: string | null;
2964
- enabled: boolean;
2965
- matcher: CaptureRuleMatcher;
2966
- sample_rate: number | null;
2967
- sample_event_class: "context" | "preserve" | null;
2968
- created_by_user_id: string | null;
2969
- created_from_incident_id: string | null;
2970
- created_from_event_id: string | null;
2971
- hit_count: number;
2972
- last_matched_at: string | null;
2973
- }[];
2974
- }, {
2975
- access_mode: "manage" | "preview";
2976
- rules: {
2977
- id: string;
2978
- project_id: string;
2979
- action: "sample" | "demote" | "drop";
2980
- expires_at: string | null;
2981
- created_at: string;
2982
- name: string;
2983
- updated_at: string;
2984
- description: string | null;
2985
- enabled: boolean;
2986
- matcher: {
2987
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
2988
- fingerprint?: {
2989
- value: string;
2990
- version: string;
2991
- } | undefined;
2992
- first_party?: boolean | undefined;
2993
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
2994
- services?: string[] | undefined;
2995
- environments?: string[] | undefined;
2996
- error_name?: string | undefined;
2997
- message_contains?: string | undefined;
2998
- message_equals?: string | undefined;
2999
- browser_event_kind?: "window_error" | "resource_error" | undefined;
3000
- browser_event_opaque?: boolean | undefined;
3001
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3002
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3003
- browser_target_tag_name?: string | undefined;
3004
- browser_target_attributes?: {
3005
- type?: string | undefined;
3006
- rel?: string | undefined;
3007
- as?: string | undefined;
3008
- media?: string | undefined;
3009
- cross_origin?: string | undefined;
3010
- async?: boolean | undefined;
3011
- defer?: boolean | undefined;
3012
- integrity_present?: boolean | undefined;
3013
- } | undefined;
3014
- client_kind?: "unknown" | "human" | "bot" | undefined;
3015
- bot_family?: string | undefined;
3016
- resource_url?: {
3017
- host?: string | undefined;
3018
- host_suffix?: string | undefined;
3019
- path_prefix?: string | undefined;
3020
- path_equals?: string | undefined;
3021
- } | undefined;
3022
- request_url?: {
3023
- host?: string | undefined;
3024
- host_suffix?: string | undefined;
3025
- path_prefix?: string | undefined;
3026
- path_equals?: string | undefined;
3027
- } | undefined;
3028
- status_codes?: number[] | undefined;
3029
- status_ranges?: {
3030
- start: number;
3031
- end: number;
3032
- }[] | undefined;
3033
- };
3034
- sample_rate: number | null;
3035
- sample_event_class: "context" | "preserve" | null;
3036
- created_by_user_id: string | null;
3037
- created_from_incident_id: string | null;
3038
- created_from_event_id: string | null;
3039
- hit_count: number;
3040
- last_matched_at: string | null;
3041
- }[];
3042
- }>;
3043
- export type CaptureRulesResponse = z.infer<typeof CaptureRulesResponseSchema>;
3044
- export declare const CaptureRulesFileSchema: z.ZodObject<{
3045
- version: z.ZodLiteral<1>;
3046
- rules: z.ZodArray<z.ZodEffects<z.ZodObject<{
707
+ }>>>;
708
+ sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
709
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
710
+ context: "context";
711
+ preserve: "preserve";
712
+ }>>>;
713
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
+ }, z.core.$strip>;
715
+ export type CaptureRuleUpdate = z.infer<typeof CaptureRuleUpdateSchema>;
716
+ export declare const CaptureRuleResponseSchema: z.ZodObject<{
717
+ rule: z.ZodObject<{
3047
718
  name: z.ZodString;
3048
719
  description: z.ZodNullable<z.ZodString>;
3049
720
  enabled: z.ZodBoolean;
3050
- action: z.ZodEnum<["demote", "sample", "drop"]>;
3051
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3052
- 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">>;
3053
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3054
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3055
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
721
+ action: z.ZodEnum<{
722
+ sample: "sample";
723
+ demote: "demote";
724
+ drop: "drop";
725
+ }>;
726
+ matcher: z.ZodPipe<z.ZodObject<{
727
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
728
+ backend_exception: "backend_exception";
729
+ request_event: "request_event";
730
+ log_event: "log_event";
731
+ frontend_breadcrumb: "frontend_breadcrumb";
732
+ frontend_exception: "frontend_exception";
733
+ deploy_metadata: "deploy_metadata";
734
+ error_suppressed: "error_suppressed";
735
+ probe_event: "probe_event";
736
+ diagnostic_context: "diagnostic_context";
737
+ }>>>;
738
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
739
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
740
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
741
+ unknown: "unknown";
742
+ browser: "browser";
743
+ node: "node";
744
+ python: "python";
745
+ php: "php";
746
+ go: "go";
747
+ ruby: "ruby";
748
+ java: "java";
749
+ }>>>;
3056
750
  first_party: z.ZodOptional<z.ZodBoolean>;
3057
751
  error_name: z.ZodOptional<z.ZodString>;
3058
752
  message_contains: z.ZodOptional<z.ZodString>;
3059
753
  message_equals: z.ZodOptional<z.ZodString>;
3060
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
754
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
755
+ window_error: "window_error";
756
+ resource_error: "resource_error";
757
+ }>>;
3061
758
  browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
3062
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
3063
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
759
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
760
+ visible: "visible";
761
+ hidden: "hidden";
762
+ prerender: "prerender";
763
+ unloaded: "unloaded";
764
+ }>>;
765
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
766
+ loading: "loading";
767
+ interactive: "interactive";
768
+ complete: "complete";
769
+ }>>;
3064
770
  browser_target_tag_name: z.ZodOptional<z.ZodString>;
3065
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
771
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
3066
772
  rel: z.ZodOptional<z.ZodString>;
3067
773
  as: z.ZodOptional<z.ZodString>;
3068
774
  type: z.ZodOptional<z.ZodString>;
@@ -3071,256 +777,59 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3071
777
  async: z.ZodOptional<z.ZodBoolean>;
3072
778
  defer: z.ZodOptional<z.ZodBoolean>;
3073
779
  integrity_present: z.ZodOptional<z.ZodBoolean>;
3074
- }, "strict", z.ZodTypeAny, {
3075
- type?: string | undefined;
3076
- rel?: string | undefined;
3077
- as?: string | undefined;
3078
- media?: string | undefined;
3079
- cross_origin?: string | undefined;
3080
- async?: boolean | undefined;
3081
- defer?: boolean | undefined;
3082
- integrity_present?: boolean | undefined;
3083
- }, {
3084
- type?: string | undefined;
3085
- rel?: string | undefined;
3086
- as?: string | undefined;
3087
- media?: string | undefined;
3088
- cross_origin?: string | undefined;
3089
- async?: boolean | undefined;
3090
- defer?: boolean | undefined;
3091
- integrity_present?: boolean | undefined;
3092
- }>, CaptureRuleBrowserTargetAttributes, {
3093
- type?: string | undefined;
3094
- rel?: string | undefined;
3095
- as?: string | undefined;
3096
- media?: string | undefined;
3097
- cross_origin?: string | undefined;
3098
- async?: boolean | undefined;
3099
- defer?: boolean | undefined;
3100
- integrity_present?: boolean | undefined;
3101
- }>, CaptureRuleBrowserTargetAttributes, {
3102
- type?: string | undefined;
3103
- rel?: string | undefined;
3104
- as?: string | undefined;
3105
- media?: string | undefined;
3106
- cross_origin?: string | undefined;
3107
- async?: boolean | undefined;
3108
- defer?: boolean | undefined;
3109
- integrity_present?: boolean | undefined;
3110
- }>>;
3111
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
3112
- bot_family: z.ZodOptional<z.ZodString>;
3113
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3114
- host: z.ZodOptional<z.ZodString>;
3115
- host_suffix: z.ZodOptional<z.ZodString>;
3116
- path_prefix: z.ZodOptional<z.ZodString>;
3117
- path_equals: z.ZodOptional<z.ZodString>;
3118
- }, "strip", z.ZodTypeAny, {
3119
- host?: string | undefined;
3120
- host_suffix?: string | undefined;
3121
- path_prefix?: string | undefined;
3122
- path_equals?: string | undefined;
3123
- }, {
3124
- host?: string | undefined;
3125
- host_suffix?: string | undefined;
3126
- path_prefix?: string | undefined;
3127
- path_equals?: string | undefined;
3128
- }>, CaptureRuleUrlMatcher, {
3129
- host?: string | undefined;
3130
- host_suffix?: string | undefined;
3131
- path_prefix?: string | undefined;
3132
- path_equals?: string | undefined;
3133
- }>, CaptureRuleUrlMatcher, {
3134
- host?: string | undefined;
3135
- host_suffix?: string | undefined;
3136
- path_prefix?: string | undefined;
3137
- path_equals?: string | undefined;
3138
- }>>;
3139
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3140
- host: z.ZodOptional<z.ZodString>;
3141
- host_suffix: z.ZodOptional<z.ZodString>;
3142
- path_prefix: z.ZodOptional<z.ZodString>;
3143
- path_equals: z.ZodOptional<z.ZodString>;
3144
- }, "strip", z.ZodTypeAny, {
3145
- host?: string | undefined;
3146
- host_suffix?: string | undefined;
3147
- path_prefix?: string | undefined;
3148
- path_equals?: string | undefined;
3149
- }, {
3150
- host?: string | undefined;
3151
- host_suffix?: string | undefined;
3152
- path_prefix?: string | undefined;
3153
- path_equals?: string | undefined;
3154
- }>, CaptureRuleUrlMatcher, {
3155
- host?: string | undefined;
3156
- host_suffix?: string | undefined;
3157
- path_prefix?: string | undefined;
3158
- path_equals?: string | undefined;
3159
- }>, CaptureRuleUrlMatcher, {
3160
- host?: string | undefined;
3161
- host_suffix?: string | undefined;
3162
- path_prefix?: string | undefined;
3163
- path_equals?: string | undefined;
3164
- }>>;
3165
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3166
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
3167
- start: z.ZodNumber;
3168
- end: z.ZodNumber;
3169
- }, "strip", z.ZodTypeAny, {
3170
- start: number;
3171
- end: number;
3172
- }, {
3173
- start: number;
3174
- end: number;
3175
- }>, {
3176
- start: number;
3177
- end: number;
3178
- }, {
3179
- start: number;
3180
- end: number;
3181
- }>, "many">>;
3182
- fingerprint: z.ZodOptional<z.ZodObject<{
3183
- version: z.ZodString;
3184
- value: z.ZodString;
3185
- }, "strip", z.ZodTypeAny, {
3186
- value: string;
3187
- version: string;
3188
- }, {
3189
- value: string;
3190
- version: string;
3191
- }>>;
3192
- }, "strip", z.ZodTypeAny, {
3193
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3194
- fingerprint?: {
3195
- value: string;
3196
- version: string;
3197
- } | undefined;
3198
- first_party?: boolean | undefined;
3199
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
3200
- services?: string[] | undefined;
3201
- environments?: string[] | undefined;
3202
- error_name?: string | undefined;
3203
- message_contains?: string | undefined;
3204
- message_equals?: string | undefined;
3205
- browser_event_kind?: "window_error" | "resource_error" | undefined;
3206
- browser_event_opaque?: boolean | undefined;
3207
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3208
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3209
- browser_target_tag_name?: string | undefined;
3210
- browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
3211
- client_kind?: "unknown" | "human" | "bot" | undefined;
3212
- bot_family?: string | undefined;
3213
- resource_url?: CaptureRuleUrlMatcher | undefined;
3214
- request_url?: CaptureRuleUrlMatcher | undefined;
3215
- status_codes?: number[] | undefined;
3216
- status_ranges?: {
3217
- start: number;
3218
- end: number;
3219
- }[] | undefined;
3220
- }, {
3221
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3222
- fingerprint?: {
3223
- value: string;
3224
- version: string;
3225
- } | undefined;
3226
- first_party?: boolean | undefined;
3227
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
3228
- services?: string[] | undefined;
3229
- environments?: string[] | undefined;
3230
- error_name?: string | undefined;
3231
- message_contains?: string | undefined;
3232
- message_equals?: string | undefined;
3233
- browser_event_kind?: "window_error" | "resource_error" | undefined;
3234
- browser_event_opaque?: boolean | undefined;
3235
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3236
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3237
- browser_target_tag_name?: string | undefined;
3238
- browser_target_attributes?: {
3239
- type?: string | undefined;
780
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
3240
781
  rel?: string | undefined;
3241
782
  as?: string | undefined;
3242
- media?: string | undefined;
3243
- cross_origin?: string | undefined;
3244
- async?: boolean | undefined;
3245
- defer?: boolean | undefined;
3246
- integrity_present?: boolean | undefined;
3247
- } | undefined;
3248
- client_kind?: "unknown" | "human" | "bot" | undefined;
3249
- bot_family?: string | undefined;
3250
- resource_url?: {
3251
- host?: string | undefined;
3252
- host_suffix?: string | undefined;
3253
- path_prefix?: string | undefined;
3254
- path_equals?: string | undefined;
3255
- } | undefined;
3256
- request_url?: {
3257
- host?: string | undefined;
3258
- host_suffix?: string | undefined;
3259
- path_prefix?: string | undefined;
3260
- path_equals?: string | undefined;
3261
- } | undefined;
3262
- status_codes?: number[] | undefined;
3263
- status_ranges?: {
3264
- start: number;
3265
- end: number;
3266
- }[] | undefined;
3267
- }>, CaptureRuleMatcher, {
3268
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3269
- fingerprint?: {
3270
- value: string;
3271
- version: string;
3272
- } | undefined;
3273
- first_party?: boolean | undefined;
3274
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
3275
- services?: string[] | undefined;
3276
- environments?: string[] | undefined;
3277
- error_name?: string | undefined;
3278
- message_contains?: string | undefined;
3279
- message_equals?: string | undefined;
3280
- browser_event_kind?: "window_error" | "resource_error" | undefined;
3281
- browser_event_opaque?: boolean | undefined;
3282
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3283
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3284
- browser_target_tag_name?: string | undefined;
3285
- browser_target_attributes?: {
3286
783
  type?: string | undefined;
3287
- rel?: string | undefined;
3288
- as?: string | undefined;
3289
784
  media?: string | undefined;
3290
785
  cross_origin?: string | undefined;
3291
786
  async?: boolean | undefined;
3292
787
  defer?: boolean | undefined;
3293
788
  integrity_present?: boolean | undefined;
3294
- } | undefined;
3295
- client_kind?: "unknown" | "human" | "bot" | undefined;
3296
- bot_family?: string | undefined;
3297
- resource_url?: {
789
+ }>>>;
790
+ client_kind: z.ZodOptional<z.ZodEnum<{
791
+ unknown: "unknown";
792
+ human: "human";
793
+ bot: "bot";
794
+ }>>;
795
+ bot_family: z.ZodOptional<z.ZodString>;
796
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
797
+ host: z.ZodOptional<z.ZodString>;
798
+ host_suffix: z.ZodOptional<z.ZodString>;
799
+ path_prefix: z.ZodOptional<z.ZodString>;
800
+ path_equals: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3298
802
  host?: string | undefined;
3299
803
  host_suffix?: string | undefined;
3300
804
  path_prefix?: string | undefined;
3301
805
  path_equals?: string | undefined;
3302
- } | undefined;
3303
- request_url?: {
806
+ }>>>;
807
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
808
+ host: z.ZodOptional<z.ZodString>;
809
+ host_suffix: z.ZodOptional<z.ZodString>;
810
+ path_prefix: z.ZodOptional<z.ZodString>;
811
+ path_equals: z.ZodOptional<z.ZodString>;
812
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3304
813
  host?: string | undefined;
3305
814
  host_suffix?: string | undefined;
3306
815
  path_prefix?: string | undefined;
3307
816
  path_equals?: string | undefined;
3308
- } | undefined;
3309
- status_codes?: number[] | undefined;
3310
- status_ranges?: {
3311
- start: number;
3312
- end: number;
3313
- }[] | undefined;
3314
- }>, CaptureRuleMatcher, {
3315
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3316
- fingerprint?: {
3317
- value: string;
3318
- version: string;
3319
- } | undefined;
3320
- first_party?: boolean | undefined;
3321
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
817
+ }>>>;
818
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
819
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
820
+ start: z.ZodNumber;
821
+ end: z.ZodNumber;
822
+ }, z.core.$strip>>>;
823
+ fingerprint: z.ZodOptional<z.ZodObject<{
824
+ version: z.ZodString;
825
+ value: z.ZodString;
826
+ }, z.core.$strip>>;
827
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
828
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
3322
829
  services?: string[] | undefined;
3323
830
  environments?: string[] | undefined;
831
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
832
+ first_party?: boolean | undefined;
3324
833
  error_name?: string | undefined;
3325
834
  message_contains?: string | undefined;
3326
835
  message_equals?: string | undefined;
@@ -3329,170 +838,160 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3329
838
  browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3330
839
  browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3331
840
  browser_target_tag_name?: string | undefined;
3332
- browser_target_attributes?: {
3333
- type?: string | undefined;
3334
- rel?: string | undefined;
3335
- as?: string | undefined;
3336
- media?: string | undefined;
3337
- cross_origin?: string | undefined;
3338
- async?: boolean | undefined;
3339
- defer?: boolean | undefined;
3340
- integrity_present?: boolean | undefined;
3341
- } | undefined;
841
+ browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
3342
842
  client_kind?: "unknown" | "human" | "bot" | undefined;
3343
843
  bot_family?: string | undefined;
3344
- resource_url?: {
3345
- host?: string | undefined;
3346
- host_suffix?: string | undefined;
3347
- path_prefix?: string | undefined;
3348
- path_equals?: string | undefined;
3349
- } | undefined;
3350
- request_url?: {
3351
- host?: string | undefined;
3352
- host_suffix?: string | undefined;
3353
- path_prefix?: string | undefined;
3354
- path_equals?: string | undefined;
3355
- } | undefined;
844
+ resource_url?: CaptureRuleUrlMatcher | undefined;
845
+ request_url?: CaptureRuleUrlMatcher | undefined;
3356
846
  status_codes?: number[] | undefined;
3357
847
  status_ranges?: {
3358
848
  start: number;
3359
849
  end: number;
3360
850
  }[] | undefined;
3361
- }>;
851
+ fingerprint?: {
852
+ version: string;
853
+ value: string;
854
+ } | undefined;
855
+ }>>;
3362
856
  sample_rate: z.ZodNullable<z.ZodNumber>;
3363
- sample_event_class: z.ZodNullable<z.ZodEnum<["preserve", "context"]>>;
857
+ sample_event_class: z.ZodNullable<z.ZodEnum<{
858
+ context: "context";
859
+ preserve: "preserve";
860
+ }>>;
3364
861
  created_by_user_id: z.ZodNullable<z.ZodString>;
3365
862
  created_from_incident_id: z.ZodNullable<z.ZodString>;
3366
863
  created_from_event_id: z.ZodNullable<z.ZodString>;
3367
864
  expires_at: z.ZodNullable<z.ZodString>;
3368
- } & {
3369
865
  id: z.ZodString;
3370
866
  project_id: z.ZodString;
3371
867
  hit_count: z.ZodNumber;
3372
868
  last_matched_at: z.ZodNullable<z.ZodString>;
3373
869
  created_at: z.ZodString;
3374
870
  updated_at: z.ZodString;
3375
- }, "strip", z.ZodTypeAny, {
3376
- id: string;
3377
- project_id: string;
3378
- action: "sample" | "demote" | "drop";
3379
- expires_at: string | null;
3380
- created_at: string;
3381
- name: string;
3382
- updated_at: string;
3383
- description: string | null;
3384
- enabled: boolean;
3385
- matcher: CaptureRuleMatcher;
3386
- sample_rate: number | null;
3387
- sample_event_class: "context" | "preserve" | null;
3388
- created_by_user_id: string | null;
3389
- created_from_incident_id: string | null;
3390
- created_from_event_id: string | null;
3391
- hit_count: number;
3392
- last_matched_at: string | null;
3393
- }, {
3394
- id: string;
3395
- project_id: string;
3396
- action: "sample" | "demote" | "drop";
3397
- expires_at: string | null;
3398
- created_at: string;
3399
- name: string;
3400
- updated_at: string;
3401
- description: string | null;
3402
- enabled: boolean;
3403
- matcher: {
3404
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3405
- fingerprint?: {
3406
- value: string;
3407
- version: string;
3408
- } | undefined;
3409
- first_party?: boolean | undefined;
3410
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
3411
- services?: string[] | undefined;
3412
- environments?: string[] | undefined;
3413
- error_name?: string | undefined;
3414
- message_contains?: string | undefined;
3415
- message_equals?: string | undefined;
3416
- browser_event_kind?: "window_error" | "resource_error" | undefined;
3417
- browser_event_opaque?: boolean | undefined;
3418
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3419
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3420
- browser_target_tag_name?: string | undefined;
3421
- browser_target_attributes?: {
3422
- type?: string | undefined;
871
+ }, z.core.$strip>;
872
+ }, z.core.$strip>;
873
+ export type CaptureRuleResponse = z.infer<typeof CaptureRuleResponseSchema>;
874
+ export declare const CaptureRulesResponseSchema: z.ZodObject<{
875
+ access_mode: z.ZodEnum<{
876
+ manage: "manage";
877
+ preview: "preview";
878
+ }>;
879
+ rules: z.ZodArray<z.ZodObject<{
880
+ name: z.ZodString;
881
+ description: z.ZodNullable<z.ZodString>;
882
+ enabled: z.ZodBoolean;
883
+ action: z.ZodEnum<{
884
+ sample: "sample";
885
+ demote: "demote";
886
+ drop: "drop";
887
+ }>;
888
+ matcher: z.ZodPipe<z.ZodObject<{
889
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
890
+ backend_exception: "backend_exception";
891
+ request_event: "request_event";
892
+ log_event: "log_event";
893
+ frontend_breadcrumb: "frontend_breadcrumb";
894
+ frontend_exception: "frontend_exception";
895
+ deploy_metadata: "deploy_metadata";
896
+ error_suppressed: "error_suppressed";
897
+ probe_event: "probe_event";
898
+ diagnostic_context: "diagnostic_context";
899
+ }>>>;
900
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
901
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
902
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
903
+ unknown: "unknown";
904
+ browser: "browser";
905
+ node: "node";
906
+ python: "python";
907
+ php: "php";
908
+ go: "go";
909
+ ruby: "ruby";
910
+ java: "java";
911
+ }>>>;
912
+ first_party: z.ZodOptional<z.ZodBoolean>;
913
+ error_name: z.ZodOptional<z.ZodString>;
914
+ message_contains: z.ZodOptional<z.ZodString>;
915
+ message_equals: z.ZodOptional<z.ZodString>;
916
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
917
+ window_error: "window_error";
918
+ resource_error: "resource_error";
919
+ }>>;
920
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
921
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
922
+ visible: "visible";
923
+ hidden: "hidden";
924
+ prerender: "prerender";
925
+ unloaded: "unloaded";
926
+ }>>;
927
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
928
+ loading: "loading";
929
+ interactive: "interactive";
930
+ complete: "complete";
931
+ }>>;
932
+ browser_target_tag_name: z.ZodOptional<z.ZodString>;
933
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
934
+ rel: z.ZodOptional<z.ZodString>;
935
+ as: z.ZodOptional<z.ZodString>;
936
+ type: z.ZodOptional<z.ZodString>;
937
+ media: z.ZodOptional<z.ZodString>;
938
+ cross_origin: z.ZodOptional<z.ZodString>;
939
+ async: z.ZodOptional<z.ZodBoolean>;
940
+ defer: z.ZodOptional<z.ZodBoolean>;
941
+ integrity_present: z.ZodOptional<z.ZodBoolean>;
942
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
3423
943
  rel?: string | undefined;
3424
944
  as?: string | undefined;
945
+ type?: string | undefined;
3425
946
  media?: string | undefined;
3426
947
  cross_origin?: string | undefined;
3427
948
  async?: boolean | undefined;
3428
949
  defer?: boolean | undefined;
3429
950
  integrity_present?: boolean | undefined;
3430
- } | undefined;
3431
- client_kind?: "unknown" | "human" | "bot" | undefined;
3432
- bot_family?: string | undefined;
3433
- resource_url?: {
951
+ }>>>;
952
+ client_kind: z.ZodOptional<z.ZodEnum<{
953
+ unknown: "unknown";
954
+ human: "human";
955
+ bot: "bot";
956
+ }>>;
957
+ bot_family: z.ZodOptional<z.ZodString>;
958
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
959
+ host: z.ZodOptional<z.ZodString>;
960
+ host_suffix: z.ZodOptional<z.ZodString>;
961
+ path_prefix: z.ZodOptional<z.ZodString>;
962
+ path_equals: z.ZodOptional<z.ZodString>;
963
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3434
964
  host?: string | undefined;
3435
965
  host_suffix?: string | undefined;
3436
966
  path_prefix?: string | undefined;
3437
967
  path_equals?: string | undefined;
3438
- } | undefined;
3439
- request_url?: {
968
+ }>>>;
969
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
970
+ host: z.ZodOptional<z.ZodString>;
971
+ host_suffix: z.ZodOptional<z.ZodString>;
972
+ path_prefix: z.ZodOptional<z.ZodString>;
973
+ path_equals: z.ZodOptional<z.ZodString>;
974
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3440
975
  host?: string | undefined;
3441
976
  host_suffix?: string | undefined;
3442
977
  path_prefix?: string | undefined;
3443
978
  path_equals?: string | undefined;
3444
- } | undefined;
3445
- status_codes?: number[] | undefined;
3446
- status_ranges?: {
3447
- start: number;
3448
- end: number;
3449
- }[] | undefined;
3450
- };
3451
- sample_rate: number | null;
3452
- sample_event_class: "context" | "preserve" | null;
3453
- created_by_user_id: string | null;
3454
- created_from_incident_id: string | null;
3455
- created_from_event_id: string | null;
3456
- hit_count: number;
3457
- last_matched_at: string | null;
3458
- }>, {
3459
- id: string;
3460
- project_id: string;
3461
- action: "sample" | "demote" | "drop";
3462
- expires_at: string | null;
3463
- created_at: string;
3464
- name: string;
3465
- updated_at: string;
3466
- description: string | null;
3467
- enabled: boolean;
3468
- matcher: CaptureRuleMatcher;
3469
- sample_rate: number | null;
3470
- sample_event_class: "context" | "preserve" | null;
3471
- created_by_user_id: string | null;
3472
- created_from_incident_id: string | null;
3473
- created_from_event_id: string | null;
3474
- hit_count: number;
3475
- last_matched_at: string | null;
3476
- }, {
3477
- id: string;
3478
- project_id: string;
3479
- action: "sample" | "demote" | "drop";
3480
- expires_at: string | null;
3481
- created_at: string;
3482
- name: string;
3483
- updated_at: string;
3484
- description: string | null;
3485
- enabled: boolean;
3486
- matcher: {
3487
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3488
- fingerprint?: {
3489
- value: string;
3490
- version: string;
3491
- } | undefined;
3492
- first_party?: boolean | undefined;
3493
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
979
+ }>>>;
980
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
981
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
982
+ start: z.ZodNumber;
983
+ end: z.ZodNumber;
984
+ }, z.core.$strip>>>;
985
+ fingerprint: z.ZodOptional<z.ZodObject<{
986
+ version: z.ZodString;
987
+ value: z.ZodString;
988
+ }, z.core.$strip>>;
989
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
990
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
3494
991
  services?: string[] | undefined;
3495
992
  environments?: string[] | undefined;
993
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
994
+ first_party?: boolean | undefined;
3496
995
  error_name?: string | undefined;
3497
996
  message_contains?: string | undefined;
3498
997
  message_equals?: string | undefined;
@@ -3501,87 +1000,157 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3501
1000
  browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3502
1001
  browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3503
1002
  browser_target_tag_name?: string | undefined;
3504
- browser_target_attributes?: {
3505
- type?: string | undefined;
1003
+ browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
1004
+ client_kind?: "unknown" | "human" | "bot" | undefined;
1005
+ bot_family?: string | undefined;
1006
+ resource_url?: CaptureRuleUrlMatcher | undefined;
1007
+ request_url?: CaptureRuleUrlMatcher | undefined;
1008
+ status_codes?: number[] | undefined;
1009
+ status_ranges?: {
1010
+ start: number;
1011
+ end: number;
1012
+ }[] | undefined;
1013
+ fingerprint?: {
1014
+ version: string;
1015
+ value: string;
1016
+ } | undefined;
1017
+ }>>;
1018
+ sample_rate: z.ZodNullable<z.ZodNumber>;
1019
+ sample_event_class: z.ZodNullable<z.ZodEnum<{
1020
+ context: "context";
1021
+ preserve: "preserve";
1022
+ }>>;
1023
+ created_by_user_id: z.ZodNullable<z.ZodString>;
1024
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
1025
+ created_from_event_id: z.ZodNullable<z.ZodString>;
1026
+ expires_at: z.ZodNullable<z.ZodString>;
1027
+ id: z.ZodString;
1028
+ project_id: z.ZodString;
1029
+ hit_count: z.ZodNumber;
1030
+ last_matched_at: z.ZodNullable<z.ZodString>;
1031
+ created_at: z.ZodString;
1032
+ updated_at: z.ZodString;
1033
+ }, z.core.$strip>>;
1034
+ }, z.core.$strip>;
1035
+ export type CaptureRulesResponse = z.infer<typeof CaptureRulesResponseSchema>;
1036
+ export declare const CaptureRulesFileSchema: z.ZodObject<{
1037
+ version: z.ZodLiteral<1>;
1038
+ rules: z.ZodArray<z.ZodObject<{
1039
+ name: z.ZodString;
1040
+ description: z.ZodNullable<z.ZodString>;
1041
+ enabled: z.ZodBoolean;
1042
+ action: z.ZodEnum<{
1043
+ sample: "sample";
1044
+ demote: "demote";
1045
+ drop: "drop";
1046
+ }>;
1047
+ matcher: z.ZodPipe<z.ZodObject<{
1048
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1049
+ backend_exception: "backend_exception";
1050
+ request_event: "request_event";
1051
+ log_event: "log_event";
1052
+ frontend_breadcrumb: "frontend_breadcrumb";
1053
+ frontend_exception: "frontend_exception";
1054
+ deploy_metadata: "deploy_metadata";
1055
+ error_suppressed: "error_suppressed";
1056
+ probe_event: "probe_event";
1057
+ diagnostic_context: "diagnostic_context";
1058
+ }>>>;
1059
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
1060
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1061
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1062
+ unknown: "unknown";
1063
+ browser: "browser";
1064
+ node: "node";
1065
+ python: "python";
1066
+ php: "php";
1067
+ go: "go";
1068
+ ruby: "ruby";
1069
+ java: "java";
1070
+ }>>>;
1071
+ first_party: z.ZodOptional<z.ZodBoolean>;
1072
+ error_name: z.ZodOptional<z.ZodString>;
1073
+ message_contains: z.ZodOptional<z.ZodString>;
1074
+ message_equals: z.ZodOptional<z.ZodString>;
1075
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
1076
+ window_error: "window_error";
1077
+ resource_error: "resource_error";
1078
+ }>>;
1079
+ browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
1080
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
1081
+ visible: "visible";
1082
+ hidden: "hidden";
1083
+ prerender: "prerender";
1084
+ unloaded: "unloaded";
1085
+ }>>;
1086
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
1087
+ loading: "loading";
1088
+ interactive: "interactive";
1089
+ complete: "complete";
1090
+ }>>;
1091
+ browser_target_tag_name: z.ZodOptional<z.ZodString>;
1092
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1093
+ rel: z.ZodOptional<z.ZodString>;
1094
+ as: z.ZodOptional<z.ZodString>;
1095
+ type: z.ZodOptional<z.ZodString>;
1096
+ media: z.ZodOptional<z.ZodString>;
1097
+ cross_origin: z.ZodOptional<z.ZodString>;
1098
+ async: z.ZodOptional<z.ZodBoolean>;
1099
+ defer: z.ZodOptional<z.ZodBoolean>;
1100
+ integrity_present: z.ZodOptional<z.ZodBoolean>;
1101
+ }, z.core.$strict>, z.ZodTransform<CaptureRuleBrowserTargetAttributes, {
3506
1102
  rel?: string | undefined;
3507
1103
  as?: string | undefined;
1104
+ type?: string | undefined;
3508
1105
  media?: string | undefined;
3509
1106
  cross_origin?: string | undefined;
3510
1107
  async?: boolean | undefined;
3511
1108
  defer?: boolean | undefined;
3512
1109
  integrity_present?: boolean | undefined;
3513
- } | undefined;
3514
- client_kind?: "unknown" | "human" | "bot" | undefined;
3515
- bot_family?: string | undefined;
3516
- resource_url?: {
1110
+ }>>>;
1111
+ client_kind: z.ZodOptional<z.ZodEnum<{
1112
+ unknown: "unknown";
1113
+ human: "human";
1114
+ bot: "bot";
1115
+ }>>;
1116
+ bot_family: z.ZodOptional<z.ZodString>;
1117
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1118
+ host: z.ZodOptional<z.ZodString>;
1119
+ host_suffix: z.ZodOptional<z.ZodString>;
1120
+ path_prefix: z.ZodOptional<z.ZodString>;
1121
+ path_equals: z.ZodOptional<z.ZodString>;
1122
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3517
1123
  host?: string | undefined;
3518
1124
  host_suffix?: string | undefined;
3519
1125
  path_prefix?: string | undefined;
3520
1126
  path_equals?: string | undefined;
3521
- } | undefined;
3522
- request_url?: {
1127
+ }>>>;
1128
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1129
+ host: z.ZodOptional<z.ZodString>;
1130
+ host_suffix: z.ZodOptional<z.ZodString>;
1131
+ path_prefix: z.ZodOptional<z.ZodString>;
1132
+ path_equals: z.ZodOptional<z.ZodString>;
1133
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleUrlMatcher, {
3523
1134
  host?: string | undefined;
3524
1135
  host_suffix?: string | undefined;
3525
1136
  path_prefix?: string | undefined;
3526
1137
  path_equals?: string | undefined;
3527
- } | undefined;
3528
- status_codes?: number[] | undefined;
3529
- status_ranges?: {
3530
- start: number;
3531
- end: number;
3532
- }[] | undefined;
3533
- };
3534
- sample_rate: number | null;
3535
- sample_event_class: "context" | "preserve" | null;
3536
- created_by_user_id: string | null;
3537
- created_from_incident_id: string | null;
3538
- created_from_event_id: string | null;
3539
- hit_count: number;
3540
- last_matched_at: string | null;
3541
- }>, "many">;
3542
- }, "strip", z.ZodTypeAny, {
3543
- version: 1;
3544
- rules: {
3545
- id: string;
3546
- project_id: string;
3547
- action: "sample" | "demote" | "drop";
3548
- expires_at: string | null;
3549
- created_at: string;
3550
- name: string;
3551
- updated_at: string;
3552
- description: string | null;
3553
- enabled: boolean;
3554
- matcher: CaptureRuleMatcher;
3555
- sample_rate: number | null;
3556
- sample_event_class: "context" | "preserve" | null;
3557
- created_by_user_id: string | null;
3558
- created_from_incident_id: string | null;
3559
- created_from_event_id: string | null;
3560
- hit_count: number;
3561
- last_matched_at: string | null;
3562
- }[];
3563
- }, {
3564
- version: 1;
3565
- rules: {
3566
- id: string;
3567
- project_id: string;
3568
- action: "sample" | "demote" | "drop";
3569
- expires_at: string | null;
3570
- created_at: string;
3571
- name: string;
3572
- updated_at: string;
3573
- description: string | null;
3574
- enabled: boolean;
3575
- matcher: {
3576
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
3577
- fingerprint?: {
3578
- value: string;
3579
- version: string;
3580
- } | undefined;
3581
- first_party?: boolean | undefined;
3582
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1138
+ }>>>;
1139
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1140
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1141
+ start: z.ZodNumber;
1142
+ end: z.ZodNumber;
1143
+ }, z.core.$strip>>>;
1144
+ fingerprint: z.ZodOptional<z.ZodObject<{
1145
+ version: z.ZodString;
1146
+ value: z.ZodString;
1147
+ }, z.core.$strip>>;
1148
+ }, z.core.$strip>, z.ZodTransform<CaptureRuleMatcher, {
1149
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
3583
1150
  services?: string[] | undefined;
3584
1151
  environments?: string[] | undefined;
1152
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
1153
+ first_party?: boolean | undefined;
3585
1154
  error_name?: string | undefined;
3586
1155
  message_contains?: string | undefined;
3587
1156
  message_equals?: string | undefined;
@@ -3590,44 +1159,37 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3590
1159
  browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
3591
1160
  browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
3592
1161
  browser_target_tag_name?: string | undefined;
3593
- browser_target_attributes?: {
3594
- type?: string | undefined;
3595
- rel?: string | undefined;
3596
- as?: string | undefined;
3597
- media?: string | undefined;
3598
- cross_origin?: string | undefined;
3599
- async?: boolean | undefined;
3600
- defer?: boolean | undefined;
3601
- integrity_present?: boolean | undefined;
3602
- } | undefined;
1162
+ browser_target_attributes?: CaptureRuleBrowserTargetAttributes | undefined;
3603
1163
  client_kind?: "unknown" | "human" | "bot" | undefined;
3604
1164
  bot_family?: string | undefined;
3605
- resource_url?: {
3606
- host?: string | undefined;
3607
- host_suffix?: string | undefined;
3608
- path_prefix?: string | undefined;
3609
- path_equals?: string | undefined;
3610
- } | undefined;
3611
- request_url?: {
3612
- host?: string | undefined;
3613
- host_suffix?: string | undefined;
3614
- path_prefix?: string | undefined;
3615
- path_equals?: string | undefined;
3616
- } | undefined;
1165
+ resource_url?: CaptureRuleUrlMatcher | undefined;
1166
+ request_url?: CaptureRuleUrlMatcher | undefined;
3617
1167
  status_codes?: number[] | undefined;
3618
1168
  status_ranges?: {
3619
1169
  start: number;
3620
1170
  end: number;
3621
1171
  }[] | undefined;
3622
- };
3623
- sample_rate: number | null;
3624
- sample_event_class: "context" | "preserve" | null;
3625
- created_by_user_id: string | null;
3626
- created_from_incident_id: string | null;
3627
- created_from_event_id: string | null;
3628
- hit_count: number;
3629
- last_matched_at: string | null;
3630
- }[];
3631
- }>;
1172
+ fingerprint?: {
1173
+ version: string;
1174
+ value: string;
1175
+ } | undefined;
1176
+ }>>;
1177
+ sample_rate: z.ZodNullable<z.ZodNumber>;
1178
+ sample_event_class: z.ZodNullable<z.ZodEnum<{
1179
+ context: "context";
1180
+ preserve: "preserve";
1181
+ }>>;
1182
+ created_by_user_id: z.ZodNullable<z.ZodString>;
1183
+ created_from_incident_id: z.ZodNullable<z.ZodString>;
1184
+ created_from_event_id: z.ZodNullable<z.ZodString>;
1185
+ expires_at: z.ZodNullable<z.ZodString>;
1186
+ id: z.ZodString;
1187
+ project_id: z.ZodString;
1188
+ hit_count: z.ZodNumber;
1189
+ last_matched_at: z.ZodNullable<z.ZodString>;
1190
+ created_at: z.ZodString;
1191
+ updated_at: z.ZodString;
1192
+ }, z.core.$strip>>;
1193
+ }, z.core.$strip>;
3632
1194
  export type CaptureRulesFile = z.infer<typeof CaptureRulesFileSchema>;
3633
1195
  //# sourceMappingURL=capture-rule-schemas.d.ts.map