@debugbundle/shared-types 2.6.0 → 3.1.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 (134) 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 +382 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +19 -11
  24. package/dist/analytics.js.map +1 -1
  25. package/dist/browser-resource-context.d.ts +35 -129
  26. package/dist/browser-resource-context.d.ts.map +1 -1
  27. package/dist/browser-resource-routes.d.ts +6 -27
  28. package/dist/browser-resource-routes.d.ts.map +1 -1
  29. package/dist/bundle-evidence.d.ts +101 -0
  30. package/dist/bundle-evidence.d.ts.map +1 -0
  31. package/dist/bundle-evidence.js +69 -0
  32. package/dist/bundle-evidence.js.map +1 -0
  33. package/dist/canonical-text-order.d.ts +3 -0
  34. package/dist/canonical-text-order.d.ts.map +1 -0
  35. package/dist/canonical-text-order.js +5 -0
  36. package/dist/canonical-text-order.js.map +1 -0
  37. package/dist/capture-policy.d.ts +311 -319
  38. package/dist/capture-policy.d.ts.map +1 -1
  39. package/dist/capture-policy.js +70 -29
  40. package/dist/capture-policy.js.map +1 -1
  41. package/dist/capture-rule-evaluation.d.ts +55 -154
  42. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  43. package/dist/capture-rule-evaluation.js +79 -42
  44. package/dist/capture-rule-evaluation.js.map +1 -1
  45. package/dist/capture-rule-schemas.d.ts +797 -3226
  46. package/dist/capture-rule-schemas.d.ts.map +1 -1
  47. package/dist/capture-rule-schemas.js +40 -34
  48. package/dist/capture-rule-schemas.js.map +1 -1
  49. package/dist/capture-rule-suggestions.d.ts +195 -1189
  50. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  51. package/dist/diagnostic-capture-budget.d.ts +22 -0
  52. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  53. package/dist/diagnostic-capture-budget.js +195 -0
  54. package/dist/diagnostic-capture-budget.js.map +1 -0
  55. package/dist/diagnostic-context.d.ts +163 -0
  56. package/dist/diagnostic-context.d.ts.map +1 -0
  57. package/dist/diagnostic-context.js +117 -0
  58. package/dist/diagnostic-context.js.map +1 -0
  59. package/dist/event-envelope.d.ts +524 -4326
  60. package/dist/event-envelope.d.ts.map +1 -1
  61. package/dist/event-envelope.js +63 -8
  62. package/dist/event-envelope.js.map +1 -1
  63. package/dist/evidence-bounds.d.ts +9 -0
  64. package/dist/evidence-bounds.d.ts.map +1 -0
  65. package/dist/evidence-bounds.js +51 -0
  66. package/dist/evidence-bounds.js.map +1 -0
  67. package/dist/evidence-capabilities.d.ts +15 -0
  68. package/dist/evidence-capabilities.d.ts.map +1 -0
  69. package/dist/evidence-capabilities.js +29 -0
  70. package/dist/evidence-capabilities.js.map +1 -0
  71. package/dist/evidence-emission.d.ts +18 -0
  72. package/dist/evidence-emission.d.ts.map +1 -0
  73. package/dist/evidence-emission.js +83 -0
  74. package/dist/evidence-emission.js.map +1 -0
  75. package/dist/evidence-interpretation.d.ts +68 -0
  76. package/dist/evidence-interpretation.d.ts.map +1 -0
  77. package/dist/evidence-interpretation.js +177 -0
  78. package/dist/evidence-interpretation.js.map +1 -0
  79. package/dist/exception-evidence.d.ts +96 -0
  80. package/dist/exception-evidence.d.ts.map +1 -0
  81. package/dist/exception-evidence.js +145 -0
  82. package/dist/exception-evidence.js.map +1 -0
  83. package/dist/first-purchase-eligibility.d.ts +9 -0
  84. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  85. package/dist/first-purchase-eligibility.js +16 -0
  86. package/dist/first-purchase-eligibility.js.map +1 -0
  87. package/dist/improvement-settings.d.ts +29 -48
  88. package/dist/improvement-settings.d.ts.map +1 -1
  89. package/dist/index.d.ts +325 -1834
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +24 -3
  92. package/dist/index.js.map +1 -1
  93. package/dist/ingestion-wire.d.ts +9 -0
  94. package/dist/ingestion-wire.d.ts.map +1 -0
  95. package/dist/ingestion-wire.js +56 -0
  96. package/dist/ingestion-wire.js.map +1 -0
  97. package/dist/json-schema.d.ts +4 -0
  98. package/dist/json-schema.d.ts.map +1 -0
  99. package/dist/json-schema.js +49 -0
  100. package/dist/json-schema.js.map +1 -0
  101. package/dist/notification-preferences.d.ts +398 -1152
  102. package/dist/notification-preferences.d.ts.map +1 -1
  103. package/dist/notification-preferences.js +3 -3
  104. package/dist/notification-preferences.js.map +1 -1
  105. package/dist/project-color-tags.d.ts +20 -1
  106. package/dist/project-color-tags.d.ts.map +1 -1
  107. package/dist/project-connection.d.ts +36 -0
  108. package/dist/project-connection.d.ts.map +1 -0
  109. package/dist/project-connection.js +17 -0
  110. package/dist/project-connection.js.map +1 -0
  111. package/dist/project-consolidation.d.ts +305 -0
  112. package/dist/project-consolidation.d.ts.map +1 -0
  113. package/dist/project-consolidation.js +138 -0
  114. package/dist/project-consolidation.js.map +1 -0
  115. package/dist/project-profile.d.ts +57 -0
  116. package/dist/project-profile.d.ts.map +1 -0
  117. package/dist/project-profile.js +51 -0
  118. package/dist/project-profile.js.map +1 -0
  119. package/dist/project-services.d.ts +84 -0
  120. package/dist/project-services.d.ts.map +1 -0
  121. package/dist/project-services.js +76 -0
  122. package/dist/project-services.js.map +1 -0
  123. package/dist/public-status.d.ts +122 -568
  124. package/dist/public-status.d.ts.map +1 -1
  125. package/dist/public-status.js +8 -8
  126. package/dist/sdk-config-limits.d.ts +5 -0
  127. package/dist/sdk-config-limits.d.ts.map +1 -0
  128. package/dist/sdk-config-limits.js +5 -0
  129. package/dist/sdk-config-limits.js.map +1 -0
  130. package/dist/stack-frames.d.ts +11 -0
  131. package/dist/stack-frames.d.ts.map +1 -0
  132. package/dist/stack-frames.js +107 -0
  133. package/dist/stack-frames.js.map +1 -0
  134. package/package.json +2 -2
@@ -1,36 +1,83 @@
1
1
  import { z } from "zod";
2
2
  import { type BrowserResource } from "./browser-resource.js";
3
- export declare const CaptureRuleSuggestionConfidenceSchema: z.ZodEnum<["high", "medium", "low"]>;
3
+ export declare const CaptureRuleSuggestionConfidenceSchema: z.ZodEnum<{
4
+ medium: "medium";
5
+ low: "low";
6
+ high: "high";
7
+ }>;
4
8
  export type CaptureRuleSuggestionConfidence = z.infer<typeof CaptureRuleSuggestionConfidenceSchema>;
5
9
  export declare const CaptureRuleSuggestionSchema: z.ZodObject<{
6
10
  suggestion_id: z.ZodString;
7
11
  label: z.ZodString;
8
- recommended_action: z.ZodEnum<["demote", "sample", "drop"]>;
9
- confidence: z.ZodEnum<["high", "medium", "low"]>;
12
+ recommended_action: z.ZodEnum<{
13
+ sample: "sample";
14
+ demote: "demote";
15
+ drop: "drop";
16
+ }>;
17
+ confidence: z.ZodEnum<{
18
+ medium: "medium";
19
+ low: "low";
20
+ high: "high";
21
+ }>;
10
22
  reason: z.ZodString;
11
23
  requires_confirmation: z.ZodBoolean;
12
24
  created_rule_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
25
  created_rule_enabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
14
- rule: z.ZodEffects<z.ZodEffects<z.ZodObject<{
26
+ rule: z.ZodPipe<z.ZodObject<{
15
27
  name: z.ZodString;
16
28
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17
29
  enabled: z.ZodDefault<z.ZodBoolean>;
18
- action: z.ZodEnum<["demote", "sample", "drop"]>;
19
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
20
- 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">>;
21
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
30
+ action: z.ZodEnum<{
31
+ sample: "sample";
32
+ demote: "demote";
33
+ drop: "drop";
34
+ }>;
35
+ matcher: z.ZodPipe<z.ZodObject<{
36
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
37
+ backend_exception: "backend_exception";
38
+ request_event: "request_event";
39
+ log_event: "log_event";
40
+ frontend_breadcrumb: "frontend_breadcrumb";
41
+ frontend_exception: "frontend_exception";
42
+ deploy_metadata: "deploy_metadata";
43
+ error_suppressed: "error_suppressed";
44
+ probe_event: "probe_event";
45
+ diagnostic_context: "diagnostic_context";
46
+ }>>>;
47
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50
+ unknown: "unknown";
51
+ browser: "browser";
52
+ node: "node";
53
+ python: "python";
54
+ php: "php";
55
+ go: "go";
56
+ ruby: "ruby";
57
+ java: "java";
58
+ }>>>;
24
59
  first_party: z.ZodOptional<z.ZodBoolean>;
25
60
  error_name: z.ZodOptional<z.ZodString>;
26
61
  message_contains: z.ZodOptional<z.ZodString>;
27
62
  message_equals: z.ZodOptional<z.ZodString>;
28
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
63
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
64
+ window_error: "window_error";
65
+ resource_error: "resource_error";
66
+ }>>;
29
67
  browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
30
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
31
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
68
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
69
+ visible: "visible";
70
+ hidden: "hidden";
71
+ prerender: "prerender";
72
+ unloaded: "unloaded";
73
+ }>>;
74
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
75
+ loading: "loading";
76
+ interactive: "interactive";
77
+ complete: "complete";
78
+ }>>;
32
79
  browser_target_tag_name: z.ZodOptional<z.ZodString>;
33
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
80
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
34
81
  rel: z.ZodOptional<z.ZodString>;
35
82
  as: z.ZodOptional<z.ZodString>;
36
83
  type: z.ZodOptional<z.ZodString>;
@@ -39,134 +86,59 @@ export declare const CaptureRuleSuggestionSchema: z.ZodObject<{
39
86
  async: z.ZodOptional<z.ZodBoolean>;
40
87
  defer: z.ZodOptional<z.ZodBoolean>;
41
88
  integrity_present: z.ZodOptional<z.ZodBoolean>;
42
- }, "strict", z.ZodTypeAny, {
43
- type?: string | undefined;
44
- rel?: string | undefined;
45
- as?: string | undefined;
46
- media?: string | undefined;
47
- cross_origin?: string | undefined;
48
- async?: boolean | undefined;
49
- defer?: boolean | undefined;
50
- integrity_present?: boolean | undefined;
51
- }, {
52
- type?: string | undefined;
89
+ }, z.core.$strict>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
53
90
  rel?: string | undefined;
54
91
  as?: string | undefined;
55
- media?: string | undefined;
56
- cross_origin?: string | undefined;
57
- async?: boolean | undefined;
58
- defer?: boolean | undefined;
59
- integrity_present?: boolean | undefined;
60
- }>, import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
61
- type?: string | undefined;
62
- rel?: string | undefined;
63
- as?: string | undefined;
64
- media?: string | undefined;
65
- cross_origin?: string | undefined;
66
- async?: boolean | undefined;
67
- defer?: boolean | undefined;
68
- integrity_present?: boolean | undefined;
69
- }>, import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
70
92
  type?: string | undefined;
71
- rel?: string | undefined;
72
- as?: string | undefined;
73
93
  media?: string | undefined;
74
94
  cross_origin?: string | undefined;
75
95
  async?: boolean | undefined;
76
96
  defer?: boolean | undefined;
77
97
  integrity_present?: boolean | undefined;
98
+ }>>>;
99
+ client_kind: z.ZodOptional<z.ZodEnum<{
100
+ unknown: "unknown";
101
+ human: "human";
102
+ bot: "bot";
78
103
  }>>;
79
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
80
104
  bot_family: z.ZodOptional<z.ZodString>;
81
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
105
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
82
106
  host: z.ZodOptional<z.ZodString>;
83
107
  host_suffix: z.ZodOptional<z.ZodString>;
84
108
  path_prefix: z.ZodOptional<z.ZodString>;
85
109
  path_equals: z.ZodOptional<z.ZodString>;
86
- }, "strip", z.ZodTypeAny, {
87
- host?: string | undefined;
88
- host_suffix?: string | undefined;
89
- path_prefix?: string | undefined;
90
- path_equals?: string | undefined;
91
- }, {
92
- host?: string | undefined;
93
- host_suffix?: string | undefined;
94
- path_prefix?: string | undefined;
95
- path_equals?: string | undefined;
96
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
97
- host?: string | undefined;
98
- host_suffix?: string | undefined;
99
- path_prefix?: string | undefined;
100
- path_equals?: string | undefined;
101
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
110
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
102
111
  host?: string | undefined;
103
112
  host_suffix?: string | undefined;
104
113
  path_prefix?: string | undefined;
105
114
  path_equals?: string | undefined;
106
- }>>;
107
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
115
+ }>>>;
116
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
108
117
  host: z.ZodOptional<z.ZodString>;
109
118
  host_suffix: z.ZodOptional<z.ZodString>;
110
119
  path_prefix: z.ZodOptional<z.ZodString>;
111
120
  path_equals: z.ZodOptional<z.ZodString>;
112
- }, "strip", z.ZodTypeAny, {
113
- host?: string | undefined;
114
- host_suffix?: string | undefined;
115
- path_prefix?: string | undefined;
116
- path_equals?: string | undefined;
117
- }, {
121
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
118
122
  host?: string | undefined;
119
123
  host_suffix?: string | undefined;
120
124
  path_prefix?: string | undefined;
121
125
  path_equals?: string | undefined;
122
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
123
- host?: string | undefined;
124
- host_suffix?: string | undefined;
125
- path_prefix?: string | undefined;
126
- path_equals?: string | undefined;
127
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
128
- host?: string | undefined;
129
- host_suffix?: string | undefined;
130
- path_prefix?: string | undefined;
131
- path_equals?: string | undefined;
132
- }>>;
133
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
134
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
126
+ }>>>;
127
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
128
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
129
  start: z.ZodNumber;
136
130
  end: z.ZodNumber;
137
- }, "strip", z.ZodTypeAny, {
138
- start: number;
139
- end: number;
140
- }, {
141
- start: number;
142
- end: number;
143
- }>, {
144
- start: number;
145
- end: number;
146
- }, {
147
- start: number;
148
- end: number;
149
- }>, "many">>;
131
+ }, z.core.$strip>>>;
150
132
  fingerprint: z.ZodOptional<z.ZodObject<{
151
133
  version: z.ZodString;
152
134
  value: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- value: string;
155
- version: string;
156
- }, {
157
- value: string;
158
- version: string;
159
- }>>;
160
- }, "strip", z.ZodTypeAny, {
161
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
162
- fingerprint?: {
163
- value: string;
164
- version: string;
165
- } | undefined;
166
- first_party?: boolean | undefined;
167
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleMatcher, {
137
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
168
138
  services?: string[] | undefined;
169
139
  environments?: string[] | undefined;
140
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
141
+ first_party?: boolean | undefined;
170
142
  error_name?: string | undefined;
171
143
  message_contains?: string | undefined;
172
144
  message_equals?: string | undefined;
@@ -185,492 +157,124 @@ export declare const CaptureRuleSuggestionSchema: z.ZodObject<{
185
157
  start: number;
186
158
  end: number;
187
159
  }[] | undefined;
188
- }, {
189
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
190
- fingerprint?: {
191
- value: string;
192
- version: string;
193
- } | undefined;
194
- first_party?: boolean | undefined;
195
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
196
- services?: string[] | undefined;
197
- environments?: string[] | undefined;
198
- error_name?: string | undefined;
199
- message_contains?: string | undefined;
200
- message_equals?: string | undefined;
201
- browser_event_kind?: "window_error" | "resource_error" | undefined;
202
- browser_event_opaque?: boolean | undefined;
203
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
204
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
205
- browser_target_tag_name?: string | undefined;
206
- browser_target_attributes?: {
207
- type?: string | undefined;
208
- rel?: string | undefined;
209
- as?: string | undefined;
210
- media?: string | undefined;
211
- cross_origin?: string | undefined;
212
- async?: boolean | undefined;
213
- defer?: boolean | undefined;
214
- integrity_present?: boolean | undefined;
215
- } | undefined;
216
- client_kind?: "unknown" | "human" | "bot" | undefined;
217
- bot_family?: string | undefined;
218
- resource_url?: {
219
- host?: string | undefined;
220
- host_suffix?: string | undefined;
221
- path_prefix?: string | undefined;
222
- path_equals?: string | undefined;
223
- } | undefined;
224
- request_url?: {
225
- host?: string | undefined;
226
- host_suffix?: string | undefined;
227
- path_prefix?: string | undefined;
228
- path_equals?: string | undefined;
229
- } | undefined;
230
- status_codes?: number[] | undefined;
231
- status_ranges?: {
232
- start: number;
233
- end: number;
234
- }[] | undefined;
235
- }>, import("./capture-rule-schemas.js").CaptureRuleMatcher, {
236
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
237
160
  fingerprint?: {
238
- value: string;
239
161
  version: string;
240
- } | undefined;
241
- first_party?: boolean | undefined;
242
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
243
- services?: string[] | undefined;
244
- environments?: string[] | undefined;
245
- error_name?: string | undefined;
246
- message_contains?: string | undefined;
247
- message_equals?: string | undefined;
248
- browser_event_kind?: "window_error" | "resource_error" | undefined;
249
- browser_event_opaque?: boolean | undefined;
250
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
251
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
252
- browser_target_tag_name?: string | undefined;
253
- browser_target_attributes?: {
254
- type?: string | undefined;
255
- rel?: string | undefined;
256
- as?: string | undefined;
257
- media?: string | undefined;
258
- cross_origin?: string | undefined;
259
- async?: boolean | undefined;
260
- defer?: boolean | undefined;
261
- integrity_present?: boolean | undefined;
262
- } | undefined;
263
- client_kind?: "unknown" | "human" | "bot" | undefined;
264
- bot_family?: string | undefined;
265
- resource_url?: {
266
- host?: string | undefined;
267
- host_suffix?: string | undefined;
268
- path_prefix?: string | undefined;
269
- path_equals?: string | undefined;
270
- } | undefined;
271
- request_url?: {
272
- host?: string | undefined;
273
- host_suffix?: string | undefined;
274
- path_prefix?: string | undefined;
275
- path_equals?: string | undefined;
276
- } | undefined;
277
- status_codes?: number[] | undefined;
278
- status_ranges?: {
279
- start: number;
280
- end: number;
281
- }[] | undefined;
282
- }>, import("./capture-rule-schemas.js").CaptureRuleMatcher, {
283
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
284
- fingerprint?: {
285
162
  value: string;
286
- version: string;
287
- } | undefined;
288
- first_party?: boolean | undefined;
289
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
290
- services?: string[] | undefined;
291
- environments?: string[] | undefined;
292
- error_name?: string | undefined;
293
- message_contains?: string | undefined;
294
- message_equals?: string | undefined;
295
- browser_event_kind?: "window_error" | "resource_error" | undefined;
296
- browser_event_opaque?: boolean | undefined;
297
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
298
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
299
- browser_target_tag_name?: string | undefined;
300
- browser_target_attributes?: {
301
- type?: string | undefined;
302
- rel?: string | undefined;
303
- as?: string | undefined;
304
- media?: string | undefined;
305
- cross_origin?: string | undefined;
306
- async?: boolean | undefined;
307
- defer?: boolean | undefined;
308
- integrity_present?: boolean | undefined;
309
- } | undefined;
310
- client_kind?: "unknown" | "human" | "bot" | undefined;
311
- bot_family?: string | undefined;
312
- resource_url?: {
313
- host?: string | undefined;
314
- host_suffix?: string | undefined;
315
- path_prefix?: string | undefined;
316
- path_equals?: string | undefined;
317
- } | undefined;
318
- request_url?: {
319
- host?: string | undefined;
320
- host_suffix?: string | undefined;
321
- path_prefix?: string | undefined;
322
- path_equals?: string | undefined;
323
163
  } | undefined;
324
- status_codes?: number[] | undefined;
325
- status_ranges?: {
326
- start: number;
327
- end: number;
328
- }[] | undefined;
329
- }>;
164
+ }>>;
330
165
  sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
- sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
166
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
167
+ context: "context";
168
+ preserve: "preserve";
169
+ }>>>;
332
170
  created_by_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
333
171
  created_from_incident_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
334
172
  created_from_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
335
173
  expires_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
336
- }, "strip", z.ZodTypeAny, {
337
- action: "sample" | "demote" | "drop";
338
- expires_at: string | null;
174
+ }, z.core.$strip>, z.ZodTransform<{
175
+ sample_rate: number | null;
176
+ sample_event_class: "context" | "preserve" | null;
339
177
  name: string;
340
178
  description: string | null;
341
179
  enabled: boolean;
180
+ action: "sample" | "demote" | "drop";
342
181
  matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
343
182
  created_by_user_id: string | null;
344
183
  created_from_incident_id: string | null;
345
184
  created_from_event_id: string | null;
346
- sample_rate?: number | null | undefined;
347
- sample_event_class?: "context" | "preserve" | null | undefined;
348
- }, {
349
- action: "sample" | "demote" | "drop";
350
- name: string;
351
- matcher: {
352
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
353
- fingerprint?: {
354
- value: string;
355
- version: string;
356
- } | undefined;
357
- first_party?: boolean | undefined;
358
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
359
- services?: string[] | undefined;
360
- environments?: string[] | undefined;
361
- error_name?: string | undefined;
362
- message_contains?: string | undefined;
363
- message_equals?: string | undefined;
364
- browser_event_kind?: "window_error" | "resource_error" | undefined;
365
- browser_event_opaque?: boolean | undefined;
366
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
367
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
368
- browser_target_tag_name?: string | undefined;
369
- browser_target_attributes?: {
370
- type?: string | undefined;
371
- rel?: string | undefined;
372
- as?: string | undefined;
373
- media?: string | undefined;
374
- cross_origin?: string | undefined;
375
- async?: boolean | undefined;
376
- defer?: boolean | undefined;
377
- integrity_present?: boolean | undefined;
378
- } | undefined;
379
- client_kind?: "unknown" | "human" | "bot" | undefined;
380
- bot_family?: string | undefined;
381
- resource_url?: {
382
- host?: string | undefined;
383
- host_suffix?: string | undefined;
384
- path_prefix?: string | undefined;
385
- path_equals?: string | undefined;
386
- } | undefined;
387
- request_url?: {
388
- host?: string | undefined;
389
- host_suffix?: string | undefined;
390
- path_prefix?: string | undefined;
391
- path_equals?: string | undefined;
392
- } | undefined;
393
- status_codes?: number[] | undefined;
394
- status_ranges?: {
395
- start: number;
396
- end: number;
397
- }[] | undefined;
398
- };
399
- expires_at?: string | null | undefined;
400
- description?: string | null | undefined;
401
- enabled?: boolean | undefined;
402
- sample_rate?: number | null | undefined;
403
- sample_event_class?: "context" | "preserve" | null | undefined;
404
- created_by_user_id?: string | null | undefined;
405
- created_from_incident_id?: string | null | undefined;
406
- created_from_event_id?: string | null | undefined;
407
- }>, {
408
- action: "sample" | "demote" | "drop";
409
185
  expires_at: string | null;
186
+ }, {
410
187
  name: string;
411
188
  description: string | null;
412
189
  enabled: boolean;
190
+ action: "sample" | "demote" | "drop";
413
191
  matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
414
192
  created_by_user_id: string | null;
415
193
  created_from_incident_id: string | null;
416
194
  created_from_event_id: string | null;
195
+ expires_at: string | null;
417
196
  sample_rate?: number | null | undefined;
418
197
  sample_event_class?: "context" | "preserve" | null | undefined;
419
- }, {
420
- action: "sample" | "demote" | "drop";
421
- name: string;
422
- matcher: {
423
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
424
- fingerprint?: {
425
- value: string;
426
- version: string;
427
- } | undefined;
428
- first_party?: boolean | undefined;
429
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
430
- services?: string[] | undefined;
431
- environments?: string[] | undefined;
432
- error_name?: string | undefined;
433
- message_contains?: string | undefined;
434
- message_equals?: string | undefined;
435
- browser_event_kind?: "window_error" | "resource_error" | undefined;
436
- browser_event_opaque?: boolean | undefined;
437
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
438
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
439
- browser_target_tag_name?: string | undefined;
440
- browser_target_attributes?: {
441
- type?: string | undefined;
442
- rel?: string | undefined;
443
- as?: string | undefined;
444
- media?: string | undefined;
445
- cross_origin?: string | undefined;
446
- async?: boolean | undefined;
447
- defer?: boolean | undefined;
448
- integrity_present?: boolean | undefined;
449
- } | undefined;
450
- client_kind?: "unknown" | "human" | "bot" | undefined;
451
- bot_family?: string | undefined;
452
- resource_url?: {
453
- host?: string | undefined;
454
- host_suffix?: string | undefined;
455
- path_prefix?: string | undefined;
456
- path_equals?: string | undefined;
457
- } | undefined;
458
- request_url?: {
459
- host?: string | undefined;
460
- host_suffix?: string | undefined;
461
- path_prefix?: string | undefined;
462
- path_equals?: string | undefined;
463
- } | undefined;
464
- status_codes?: number[] | undefined;
465
- status_ranges?: {
466
- start: number;
467
- end: number;
468
- }[] | undefined;
469
- };
470
- expires_at?: string | null | undefined;
471
- description?: string | null | undefined;
472
- enabled?: boolean | undefined;
473
- sample_rate?: number | null | undefined;
474
- sample_event_class?: "context" | "preserve" | null | undefined;
475
- created_by_user_id?: string | null | undefined;
476
- created_from_incident_id?: string | null | undefined;
477
- created_from_event_id?: string | null | undefined;
478
- }>, {
479
- sample_rate: number | null;
480
- sample_event_class: "context" | "preserve" | null;
481
- action: "sample" | "demote" | "drop";
482
- expires_at: string | null;
483
- name: string;
484
- description: string | null;
485
- enabled: boolean;
486
- matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
487
- created_by_user_id: string | null;
488
- created_from_incident_id: string | null;
489
- created_from_event_id: string | null;
490
- }, {
491
- action: "sample" | "demote" | "drop";
492
- name: string;
493
- matcher: {
494
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
495
- fingerprint?: {
496
- value: string;
497
- version: string;
498
- } | undefined;
499
- first_party?: boolean | undefined;
500
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
501
- services?: string[] | undefined;
502
- environments?: string[] | undefined;
503
- error_name?: string | undefined;
504
- message_contains?: string | undefined;
505
- message_equals?: string | undefined;
506
- browser_event_kind?: "window_error" | "resource_error" | undefined;
507
- browser_event_opaque?: boolean | undefined;
508
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
509
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
510
- browser_target_tag_name?: string | undefined;
511
- browser_target_attributes?: {
512
- type?: string | undefined;
513
- rel?: string | undefined;
514
- as?: string | undefined;
515
- media?: string | undefined;
516
- cross_origin?: string | undefined;
517
- async?: boolean | undefined;
518
- defer?: boolean | undefined;
519
- integrity_present?: boolean | undefined;
520
- } | undefined;
521
- client_kind?: "unknown" | "human" | "bot" | undefined;
522
- bot_family?: string | undefined;
523
- resource_url?: {
524
- host?: string | undefined;
525
- host_suffix?: string | undefined;
526
- path_prefix?: string | undefined;
527
- path_equals?: string | undefined;
528
- } | undefined;
529
- request_url?: {
530
- host?: string | undefined;
531
- host_suffix?: string | undefined;
532
- path_prefix?: string | undefined;
533
- path_equals?: string | undefined;
534
- } | undefined;
535
- status_codes?: number[] | undefined;
536
- status_ranges?: {
537
- start: number;
538
- end: number;
539
- }[] | undefined;
540
- };
541
- expires_at?: string | null | undefined;
542
- description?: string | null | undefined;
543
- enabled?: boolean | undefined;
544
- sample_rate?: number | null | undefined;
545
- sample_event_class?: "context" | "preserve" | null | undefined;
546
- created_by_user_id?: string | null | undefined;
547
- created_from_incident_id?: string | null | undefined;
548
- created_from_event_id?: string | null | undefined;
549
- }>;
550
- }, "strip", z.ZodTypeAny, {
551
- confidence: "medium" | "low" | "high";
552
- label: string;
553
- rule: {
554
- sample_rate: number | null;
555
- sample_event_class: "context" | "preserve" | null;
556
- action: "sample" | "demote" | "drop";
557
- expires_at: string | null;
558
- name: string;
559
- description: string | null;
560
- enabled: boolean;
561
- matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
562
- created_by_user_id: string | null;
563
- created_from_incident_id: string | null;
564
- created_from_event_id: string | null;
565
- };
566
- suggestion_id: string;
567
- recommended_action: "sample" | "demote" | "drop";
568
- reason: string;
569
- requires_confirmation: boolean;
570
- created_rule_id: string | null;
571
- created_rule_enabled: boolean | null;
572
- }, {
573
- confidence: "medium" | "low" | "high";
574
- label: string;
575
- rule: {
576
- action: "sample" | "demote" | "drop";
577
- name: string;
578
- matcher: {
579
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
580
- fingerprint?: {
581
- value: string;
582
- version: string;
583
- } | undefined;
584
- first_party?: boolean | undefined;
585
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
586
- services?: string[] | undefined;
587
- environments?: string[] | undefined;
588
- error_name?: string | undefined;
589
- message_contains?: string | undefined;
590
- message_equals?: string | undefined;
591
- browser_event_kind?: "window_error" | "resource_error" | undefined;
592
- browser_event_opaque?: boolean | undefined;
593
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
594
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
595
- browser_target_tag_name?: string | undefined;
596
- browser_target_attributes?: {
597
- type?: string | undefined;
598
- rel?: string | undefined;
599
- as?: string | undefined;
600
- media?: string | undefined;
601
- cross_origin?: string | undefined;
602
- async?: boolean | undefined;
603
- defer?: boolean | undefined;
604
- integrity_present?: boolean | undefined;
605
- } | undefined;
606
- client_kind?: "unknown" | "human" | "bot" | undefined;
607
- bot_family?: string | undefined;
608
- resource_url?: {
609
- host?: string | undefined;
610
- host_suffix?: string | undefined;
611
- path_prefix?: string | undefined;
612
- path_equals?: string | undefined;
613
- } | undefined;
614
- request_url?: {
615
- host?: string | undefined;
616
- host_suffix?: string | undefined;
617
- path_prefix?: string | undefined;
618
- path_equals?: string | undefined;
619
- } | undefined;
620
- status_codes?: number[] | undefined;
621
- status_ranges?: {
622
- start: number;
623
- end: number;
624
- }[] | undefined;
625
- };
626
- expires_at?: string | null | undefined;
627
- description?: string | null | undefined;
628
- enabled?: boolean | undefined;
629
- sample_rate?: number | null | undefined;
630
- sample_event_class?: "context" | "preserve" | null | undefined;
631
- created_by_user_id?: string | null | undefined;
632
- created_from_incident_id?: string | null | undefined;
633
- created_from_event_id?: string | null | undefined;
634
- };
635
- suggestion_id: string;
636
- recommended_action: "sample" | "demote" | "drop";
637
- reason: string;
638
- requires_confirmation: boolean;
639
- created_rule_id?: string | null | undefined;
640
- created_rule_enabled?: boolean | null | undefined;
641
- }>;
198
+ }>>;
199
+ }, z.core.$strip>;
642
200
  export type CaptureRuleSuggestion = z.infer<typeof CaptureRuleSuggestionSchema>;
643
201
  export declare const CaptureRuleSuggestionsResponseSchema: z.ZodObject<{
644
- access_mode: z.ZodOptional<z.ZodEnum<["manage", "preview"]>>;
202
+ access_mode: z.ZodOptional<z.ZodEnum<{
203
+ manage: "manage";
204
+ preview: "preview";
205
+ }>>;
645
206
  suggestions: z.ZodArray<z.ZodObject<{
646
207
  suggestion_id: z.ZodString;
647
208
  label: z.ZodString;
648
- recommended_action: z.ZodEnum<["demote", "sample", "drop"]>;
649
- confidence: z.ZodEnum<["high", "medium", "low"]>;
209
+ recommended_action: z.ZodEnum<{
210
+ sample: "sample";
211
+ demote: "demote";
212
+ drop: "drop";
213
+ }>;
214
+ confidence: z.ZodEnum<{
215
+ medium: "medium";
216
+ low: "low";
217
+ high: "high";
218
+ }>;
650
219
  reason: z.ZodString;
651
220
  requires_confirmation: z.ZodBoolean;
652
221
  created_rule_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
653
222
  created_rule_enabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
654
- rule: z.ZodEffects<z.ZodEffects<z.ZodObject<{
223
+ rule: z.ZodPipe<z.ZodObject<{
655
224
  name: z.ZodString;
656
225
  description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
657
226
  enabled: z.ZodDefault<z.ZodBoolean>;
658
- action: z.ZodEnum<["demote", "sample", "drop"]>;
659
- matcher: z.ZodEffects<z.ZodEffects<z.ZodObject<{
660
- 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">>;
661
- services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
662
- environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
- runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<["browser", "node", "python", "php", "java", "go", "ruby", "unknown"]>, "many">>;
227
+ action: z.ZodEnum<{
228
+ sample: "sample";
229
+ demote: "demote";
230
+ drop: "drop";
231
+ }>;
232
+ matcher: z.ZodPipe<z.ZodObject<{
233
+ event_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
234
+ backend_exception: "backend_exception";
235
+ request_event: "request_event";
236
+ log_event: "log_event";
237
+ frontend_breadcrumb: "frontend_breadcrumb";
238
+ frontend_exception: "frontend_exception";
239
+ deploy_metadata: "deploy_metadata";
240
+ error_suppressed: "error_suppressed";
241
+ probe_event: "probe_event";
242
+ diagnostic_context: "diagnostic_context";
243
+ }>>>;
244
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
245
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
246
+ runtime: z.ZodOptional<z.ZodArray<z.ZodEnum<{
247
+ unknown: "unknown";
248
+ browser: "browser";
249
+ node: "node";
250
+ python: "python";
251
+ php: "php";
252
+ go: "go";
253
+ ruby: "ruby";
254
+ java: "java";
255
+ }>>>;
664
256
  first_party: z.ZodOptional<z.ZodBoolean>;
665
257
  error_name: z.ZodOptional<z.ZodString>;
666
258
  message_contains: z.ZodOptional<z.ZodString>;
667
259
  message_equals: z.ZodOptional<z.ZodString>;
668
- browser_event_kind: z.ZodOptional<z.ZodEnum<["window_error", "resource_error"]>>;
260
+ browser_event_kind: z.ZodOptional<z.ZodEnum<{
261
+ window_error: "window_error";
262
+ resource_error: "resource_error";
263
+ }>>;
669
264
  browser_event_opaque: z.ZodOptional<z.ZodBoolean>;
670
- browser_page_visibility_state: z.ZodOptional<z.ZodEnum<["visible", "hidden", "prerender", "unloaded"]>>;
671
- browser_page_ready_state: z.ZodOptional<z.ZodEnum<["loading", "interactive", "complete"]>>;
265
+ browser_page_visibility_state: z.ZodOptional<z.ZodEnum<{
266
+ visible: "visible";
267
+ hidden: "hidden";
268
+ prerender: "prerender";
269
+ unloaded: "unloaded";
270
+ }>>;
271
+ browser_page_ready_state: z.ZodOptional<z.ZodEnum<{
272
+ loading: "loading";
273
+ interactive: "interactive";
274
+ complete: "complete";
275
+ }>>;
672
276
  browser_target_tag_name: z.ZodOptional<z.ZodString>;
673
- browser_target_attributes: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
277
+ browser_target_attributes: z.ZodOptional<z.ZodPipe<z.ZodObject<{
674
278
  rel: z.ZodOptional<z.ZodString>;
675
279
  as: z.ZodOptional<z.ZodString>;
676
280
  type: z.ZodOptional<z.ZodString>;
@@ -679,134 +283,59 @@ export declare const CaptureRuleSuggestionsResponseSchema: z.ZodObject<{
679
283
  async: z.ZodOptional<z.ZodBoolean>;
680
284
  defer: z.ZodOptional<z.ZodBoolean>;
681
285
  integrity_present: z.ZodOptional<z.ZodBoolean>;
682
- }, "strict", z.ZodTypeAny, {
683
- type?: string | undefined;
684
- rel?: string | undefined;
685
- as?: string | undefined;
686
- media?: string | undefined;
687
- cross_origin?: string | undefined;
688
- async?: boolean | undefined;
689
- defer?: boolean | undefined;
690
- integrity_present?: boolean | undefined;
691
- }, {
692
- type?: string | undefined;
286
+ }, z.core.$strict>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
693
287
  rel?: string | undefined;
694
288
  as?: string | undefined;
695
- media?: string | undefined;
696
- cross_origin?: string | undefined;
697
- async?: boolean | undefined;
698
- defer?: boolean | undefined;
699
- integrity_present?: boolean | undefined;
700
- }>, import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
701
- type?: string | undefined;
702
- rel?: string | undefined;
703
- as?: string | undefined;
704
- media?: string | undefined;
705
- cross_origin?: string | undefined;
706
- async?: boolean | undefined;
707
- defer?: boolean | undefined;
708
- integrity_present?: boolean | undefined;
709
- }>, import("./capture-rule-schemas.js").CaptureRuleBrowserTargetAttributes, {
710
289
  type?: string | undefined;
711
- rel?: string | undefined;
712
- as?: string | undefined;
713
290
  media?: string | undefined;
714
291
  cross_origin?: string | undefined;
715
292
  async?: boolean | undefined;
716
293
  defer?: boolean | undefined;
717
294
  integrity_present?: boolean | undefined;
295
+ }>>>;
296
+ client_kind: z.ZodOptional<z.ZodEnum<{
297
+ unknown: "unknown";
298
+ human: "human";
299
+ bot: "bot";
718
300
  }>>;
719
- client_kind: z.ZodOptional<z.ZodEnum<["human", "bot", "unknown"]>>;
720
301
  bot_family: z.ZodOptional<z.ZodString>;
721
- resource_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
302
+ resource_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
722
303
  host: z.ZodOptional<z.ZodString>;
723
304
  host_suffix: z.ZodOptional<z.ZodString>;
724
305
  path_prefix: z.ZodOptional<z.ZodString>;
725
306
  path_equals: z.ZodOptional<z.ZodString>;
726
- }, "strip", z.ZodTypeAny, {
727
- host?: string | undefined;
728
- host_suffix?: string | undefined;
729
- path_prefix?: string | undefined;
730
- path_equals?: string | undefined;
731
- }, {
732
- host?: string | undefined;
733
- host_suffix?: string | undefined;
734
- path_prefix?: string | undefined;
735
- path_equals?: string | undefined;
736
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
737
- host?: string | undefined;
738
- host_suffix?: string | undefined;
739
- path_prefix?: string | undefined;
740
- path_equals?: string | undefined;
741
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
307
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
742
308
  host?: string | undefined;
743
309
  host_suffix?: string | undefined;
744
310
  path_prefix?: string | undefined;
745
311
  path_equals?: string | undefined;
746
- }>>;
747
- request_url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
312
+ }>>>;
313
+ request_url: z.ZodOptional<z.ZodPipe<z.ZodObject<{
748
314
  host: z.ZodOptional<z.ZodString>;
749
315
  host_suffix: z.ZodOptional<z.ZodString>;
750
316
  path_prefix: z.ZodOptional<z.ZodString>;
751
317
  path_equals: z.ZodOptional<z.ZodString>;
752
- }, "strip", z.ZodTypeAny, {
753
- host?: string | undefined;
754
- host_suffix?: string | undefined;
755
- path_prefix?: string | undefined;
756
- path_equals?: string | undefined;
757
- }, {
318
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
758
319
  host?: string | undefined;
759
320
  host_suffix?: string | undefined;
760
321
  path_prefix?: string | undefined;
761
322
  path_equals?: string | undefined;
762
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
763
- host?: string | undefined;
764
- host_suffix?: string | undefined;
765
- path_prefix?: string | undefined;
766
- path_equals?: string | undefined;
767
- }>, import("./capture-rule-schemas.js").CaptureRuleUrlMatcher, {
768
- host?: string | undefined;
769
- host_suffix?: string | undefined;
770
- path_prefix?: string | undefined;
771
- path_equals?: string | undefined;
772
- }>>;
773
- status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
774
- status_ranges: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
323
+ }>>>;
324
+ status_codes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
325
+ status_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
326
  start: z.ZodNumber;
776
327
  end: z.ZodNumber;
777
- }, "strip", z.ZodTypeAny, {
778
- start: number;
779
- end: number;
780
- }, {
781
- start: number;
782
- end: number;
783
- }>, {
784
- start: number;
785
- end: number;
786
- }, {
787
- start: number;
788
- end: number;
789
- }>, "many">>;
328
+ }, z.core.$strip>>>;
790
329
  fingerprint: z.ZodOptional<z.ZodObject<{
791
330
  version: z.ZodString;
792
331
  value: z.ZodString;
793
- }, "strip", z.ZodTypeAny, {
794
- value: string;
795
- version: string;
796
- }, {
797
- value: string;
798
- version: string;
799
- }>>;
800
- }, "strip", z.ZodTypeAny, {
801
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
802
- fingerprint?: {
803
- value: string;
804
- version: string;
805
- } | undefined;
806
- first_party?: boolean | undefined;
807
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
332
+ }, z.core.$strip>>;
333
+ }, z.core.$strip>, z.ZodTransform<import("./capture-rule-schemas.js").CaptureRuleMatcher, {
334
+ event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event" | "diagnostic_context")[] | undefined;
808
335
  services?: string[] | undefined;
809
336
  environments?: string[] | undefined;
337
+ runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "go" | "ruby" | "java")[] | undefined;
338
+ first_party?: boolean | undefined;
810
339
  error_name?: string | undefined;
811
340
  message_contains?: string | undefined;
812
341
  message_equals?: string | undefined;
@@ -825,564 +354,53 @@ export declare const CaptureRuleSuggestionsResponseSchema: z.ZodObject<{
825
354
  start: number;
826
355
  end: number;
827
356
  }[] | undefined;
828
- }, {
829
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
830
357
  fingerprint?: {
831
- value: string;
832
358
  version: string;
359
+ value: string;
833
360
  } | undefined;
834
- first_party?: boolean | undefined;
835
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
836
- services?: string[] | undefined;
837
- environments?: string[] | undefined;
838
- error_name?: string | undefined;
839
- message_contains?: string | undefined;
840
- message_equals?: string | undefined;
841
- browser_event_kind?: "window_error" | "resource_error" | undefined;
842
- browser_event_opaque?: boolean | undefined;
843
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
844
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
845
- browser_target_tag_name?: string | undefined;
846
- browser_target_attributes?: {
847
- type?: string | undefined;
848
- rel?: string | undefined;
849
- as?: string | undefined;
850
- media?: string | undefined;
851
- cross_origin?: string | undefined;
852
- async?: boolean | undefined;
853
- defer?: boolean | undefined;
854
- integrity_present?: boolean | undefined;
855
- } | undefined;
856
- client_kind?: "unknown" | "human" | "bot" | undefined;
857
- bot_family?: string | undefined;
858
- resource_url?: {
859
- host?: string | undefined;
860
- host_suffix?: string | undefined;
861
- path_prefix?: string | undefined;
862
- path_equals?: string | undefined;
863
- } | undefined;
864
- request_url?: {
865
- host?: string | undefined;
866
- host_suffix?: string | undefined;
867
- path_prefix?: string | undefined;
868
- path_equals?: string | undefined;
869
- } | undefined;
870
- status_codes?: number[] | undefined;
871
- status_ranges?: {
872
- start: number;
873
- end: number;
874
- }[] | undefined;
875
- }>, import("./capture-rule-schemas.js").CaptureRuleMatcher, {
876
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
877
- fingerprint?: {
878
- value: string;
879
- version: string;
880
- } | undefined;
881
- first_party?: boolean | undefined;
882
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
883
- services?: string[] | undefined;
884
- environments?: string[] | undefined;
885
- error_name?: string | undefined;
886
- message_contains?: string | undefined;
887
- message_equals?: string | undefined;
888
- browser_event_kind?: "window_error" | "resource_error" | undefined;
889
- browser_event_opaque?: boolean | undefined;
890
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
891
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
892
- browser_target_tag_name?: string | undefined;
893
- browser_target_attributes?: {
894
- type?: string | undefined;
895
- rel?: string | undefined;
896
- as?: string | undefined;
897
- media?: string | undefined;
898
- cross_origin?: string | undefined;
899
- async?: boolean | undefined;
900
- defer?: boolean | undefined;
901
- integrity_present?: boolean | undefined;
902
- } | undefined;
903
- client_kind?: "unknown" | "human" | "bot" | undefined;
904
- bot_family?: string | undefined;
905
- resource_url?: {
906
- host?: string | undefined;
907
- host_suffix?: string | undefined;
908
- path_prefix?: string | undefined;
909
- path_equals?: string | undefined;
910
- } | undefined;
911
- request_url?: {
912
- host?: string | undefined;
913
- host_suffix?: string | undefined;
914
- path_prefix?: string | undefined;
915
- path_equals?: string | undefined;
916
- } | undefined;
917
- status_codes?: number[] | undefined;
918
- status_ranges?: {
919
- start: number;
920
- end: number;
921
- }[] | undefined;
922
- }>, import("./capture-rule-schemas.js").CaptureRuleMatcher, {
923
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
924
- fingerprint?: {
925
- value: string;
926
- version: string;
927
- } | undefined;
928
- first_party?: boolean | undefined;
929
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
930
- services?: string[] | undefined;
931
- environments?: string[] | undefined;
932
- error_name?: string | undefined;
933
- message_contains?: string | undefined;
934
- message_equals?: string | undefined;
935
- browser_event_kind?: "window_error" | "resource_error" | undefined;
936
- browser_event_opaque?: boolean | undefined;
937
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
938
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
939
- browser_target_tag_name?: string | undefined;
940
- browser_target_attributes?: {
941
- type?: string | undefined;
942
- rel?: string | undefined;
943
- as?: string | undefined;
944
- media?: string | undefined;
945
- cross_origin?: string | undefined;
946
- async?: boolean | undefined;
947
- defer?: boolean | undefined;
948
- integrity_present?: boolean | undefined;
949
- } | undefined;
950
- client_kind?: "unknown" | "human" | "bot" | undefined;
951
- bot_family?: string | undefined;
952
- resource_url?: {
953
- host?: string | undefined;
954
- host_suffix?: string | undefined;
955
- path_prefix?: string | undefined;
956
- path_equals?: string | undefined;
957
- } | undefined;
958
- request_url?: {
959
- host?: string | undefined;
960
- host_suffix?: string | undefined;
961
- path_prefix?: string | undefined;
962
- path_equals?: string | undefined;
963
- } | undefined;
964
- status_codes?: number[] | undefined;
965
- status_ranges?: {
966
- start: number;
967
- end: number;
968
- }[] | undefined;
969
- }>;
361
+ }>>;
970
362
  sample_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
971
- sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<["preserve", "context"]>>>;
363
+ sample_event_class: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
364
+ context: "context";
365
+ preserve: "preserve";
366
+ }>>>;
972
367
  created_by_user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
973
368
  created_from_incident_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
974
369
  created_from_event_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
975
370
  expires_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
976
- }, "strip", z.ZodTypeAny, {
977
- action: "sample" | "demote" | "drop";
978
- expires_at: string | null;
979
- name: string;
980
- description: string | null;
981
- enabled: boolean;
982
- matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
983
- created_by_user_id: string | null;
984
- created_from_incident_id: string | null;
985
- created_from_event_id: string | null;
986
- sample_rate?: number | null | undefined;
987
- sample_event_class?: "context" | "preserve" | null | undefined;
988
- }, {
989
- action: "sample" | "demote" | "drop";
990
- name: string;
991
- matcher: {
992
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
993
- fingerprint?: {
994
- value: string;
995
- version: string;
996
- } | undefined;
997
- first_party?: boolean | undefined;
998
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
999
- services?: string[] | undefined;
1000
- environments?: string[] | undefined;
1001
- error_name?: string | undefined;
1002
- message_contains?: string | undefined;
1003
- message_equals?: string | undefined;
1004
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1005
- browser_event_opaque?: boolean | undefined;
1006
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1007
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1008
- browser_target_tag_name?: string | undefined;
1009
- browser_target_attributes?: {
1010
- type?: string | undefined;
1011
- rel?: string | undefined;
1012
- as?: string | undefined;
1013
- media?: string | undefined;
1014
- cross_origin?: string | undefined;
1015
- async?: boolean | undefined;
1016
- defer?: boolean | undefined;
1017
- integrity_present?: boolean | undefined;
1018
- } | undefined;
1019
- client_kind?: "unknown" | "human" | "bot" | undefined;
1020
- bot_family?: string | undefined;
1021
- resource_url?: {
1022
- host?: string | undefined;
1023
- host_suffix?: string | undefined;
1024
- path_prefix?: string | undefined;
1025
- path_equals?: string | undefined;
1026
- } | undefined;
1027
- request_url?: {
1028
- host?: string | undefined;
1029
- host_suffix?: string | undefined;
1030
- path_prefix?: string | undefined;
1031
- path_equals?: string | undefined;
1032
- } | undefined;
1033
- status_codes?: number[] | undefined;
1034
- status_ranges?: {
1035
- start: number;
1036
- end: number;
1037
- }[] | undefined;
1038
- };
1039
- expires_at?: string | null | undefined;
1040
- description?: string | null | undefined;
1041
- enabled?: boolean | undefined;
1042
- sample_rate?: number | null | undefined;
1043
- sample_event_class?: "context" | "preserve" | null | undefined;
1044
- created_by_user_id?: string | null | undefined;
1045
- created_from_incident_id?: string | null | undefined;
1046
- created_from_event_id?: string | null | undefined;
1047
- }>, {
1048
- action: "sample" | "demote" | "drop";
1049
- expires_at: string | null;
1050
- name: string;
1051
- description: string | null;
1052
- enabled: boolean;
1053
- matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
1054
- created_by_user_id: string | null;
1055
- created_from_incident_id: string | null;
1056
- created_from_event_id: string | null;
1057
- sample_rate?: number | null | undefined;
1058
- sample_event_class?: "context" | "preserve" | null | undefined;
1059
- }, {
1060
- action: "sample" | "demote" | "drop";
1061
- name: string;
1062
- matcher: {
1063
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1064
- fingerprint?: {
1065
- value: string;
1066
- version: string;
1067
- } | undefined;
1068
- first_party?: boolean | undefined;
1069
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1070
- services?: string[] | undefined;
1071
- environments?: string[] | undefined;
1072
- error_name?: string | undefined;
1073
- message_contains?: string | undefined;
1074
- message_equals?: string | undefined;
1075
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1076
- browser_event_opaque?: boolean | undefined;
1077
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1078
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1079
- browser_target_tag_name?: string | undefined;
1080
- browser_target_attributes?: {
1081
- type?: string | undefined;
1082
- rel?: string | undefined;
1083
- as?: string | undefined;
1084
- media?: string | undefined;
1085
- cross_origin?: string | undefined;
1086
- async?: boolean | undefined;
1087
- defer?: boolean | undefined;
1088
- integrity_present?: boolean | undefined;
1089
- } | undefined;
1090
- client_kind?: "unknown" | "human" | "bot" | undefined;
1091
- bot_family?: string | undefined;
1092
- resource_url?: {
1093
- host?: string | undefined;
1094
- host_suffix?: string | undefined;
1095
- path_prefix?: string | undefined;
1096
- path_equals?: string | undefined;
1097
- } | undefined;
1098
- request_url?: {
1099
- host?: string | undefined;
1100
- host_suffix?: string | undefined;
1101
- path_prefix?: string | undefined;
1102
- path_equals?: string | undefined;
1103
- } | undefined;
1104
- status_codes?: number[] | undefined;
1105
- status_ranges?: {
1106
- start: number;
1107
- end: number;
1108
- }[] | undefined;
1109
- };
1110
- expires_at?: string | null | undefined;
1111
- description?: string | null | undefined;
1112
- enabled?: boolean | undefined;
1113
- sample_rate?: number | null | undefined;
1114
- sample_event_class?: "context" | "preserve" | null | undefined;
1115
- created_by_user_id?: string | null | undefined;
1116
- created_from_incident_id?: string | null | undefined;
1117
- created_from_event_id?: string | null | undefined;
1118
- }>, {
371
+ }, z.core.$strip>, z.ZodTransform<{
1119
372
  sample_rate: number | null;
1120
373
  sample_event_class: "context" | "preserve" | null;
1121
- action: "sample" | "demote" | "drop";
1122
- expires_at: string | null;
1123
374
  name: string;
1124
375
  description: string | null;
1125
376
  enabled: boolean;
1126
- matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
1127
- created_by_user_id: string | null;
1128
- created_from_incident_id: string | null;
1129
- created_from_event_id: string | null;
1130
- }, {
1131
- action: "sample" | "demote" | "drop";
1132
- name: string;
1133
- matcher: {
1134
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1135
- fingerprint?: {
1136
- value: string;
1137
- version: string;
1138
- } | undefined;
1139
- first_party?: boolean | undefined;
1140
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1141
- services?: string[] | undefined;
1142
- environments?: string[] | undefined;
1143
- error_name?: string | undefined;
1144
- message_contains?: string | undefined;
1145
- message_equals?: string | undefined;
1146
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1147
- browser_event_opaque?: boolean | undefined;
1148
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1149
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1150
- browser_target_tag_name?: string | undefined;
1151
- browser_target_attributes?: {
1152
- type?: string | undefined;
1153
- rel?: string | undefined;
1154
- as?: string | undefined;
1155
- media?: string | undefined;
1156
- cross_origin?: string | undefined;
1157
- async?: boolean | undefined;
1158
- defer?: boolean | undefined;
1159
- integrity_present?: boolean | undefined;
1160
- } | undefined;
1161
- client_kind?: "unknown" | "human" | "bot" | undefined;
1162
- bot_family?: string | undefined;
1163
- resource_url?: {
1164
- host?: string | undefined;
1165
- host_suffix?: string | undefined;
1166
- path_prefix?: string | undefined;
1167
- path_equals?: string | undefined;
1168
- } | undefined;
1169
- request_url?: {
1170
- host?: string | undefined;
1171
- host_suffix?: string | undefined;
1172
- path_prefix?: string | undefined;
1173
- path_equals?: string | undefined;
1174
- } | undefined;
1175
- status_codes?: number[] | undefined;
1176
- status_ranges?: {
1177
- start: number;
1178
- end: number;
1179
- }[] | undefined;
1180
- };
1181
- expires_at?: string | null | undefined;
1182
- description?: string | null | undefined;
1183
- enabled?: boolean | undefined;
1184
- sample_rate?: number | null | undefined;
1185
- sample_event_class?: "context" | "preserve" | null | undefined;
1186
- created_by_user_id?: string | null | undefined;
1187
- created_from_incident_id?: string | null | undefined;
1188
- created_from_event_id?: string | null | undefined;
1189
- }>;
1190
- }, "strip", z.ZodTypeAny, {
1191
- confidence: "medium" | "low" | "high";
1192
- label: string;
1193
- rule: {
1194
- sample_rate: number | null;
1195
- sample_event_class: "context" | "preserve" | null;
1196
377
  action: "sample" | "demote" | "drop";
1197
- expires_at: string | null;
1198
- name: string;
1199
- description: string | null;
1200
- enabled: boolean;
1201
378
  matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
1202
379
  created_by_user_id: string | null;
1203
380
  created_from_incident_id: string | null;
1204
381
  created_from_event_id: string | null;
1205
- };
1206
- suggestion_id: string;
1207
- recommended_action: "sample" | "demote" | "drop";
1208
- reason: string;
1209
- requires_confirmation: boolean;
1210
- created_rule_id: string | null;
1211
- created_rule_enabled: boolean | null;
1212
- }, {
1213
- confidence: "medium" | "low" | "high";
1214
- label: string;
1215
- rule: {
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
- suggestion_id: string;
1276
- recommended_action: "sample" | "demote" | "drop";
1277
- reason: string;
1278
- requires_confirmation: boolean;
1279
- created_rule_id?: string | null | undefined;
1280
- created_rule_enabled?: boolean | null | undefined;
1281
- }>, "many">;
1282
- bundle_status: z.ZodOptional<z.ZodEnum<["ready", "pending", "failed"]>>;
1283
- bundle_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
- }, "strip", z.ZodTypeAny, {
1285
- suggestions: {
1286
- confidence: "medium" | "low" | "high";
1287
- label: string;
1288
- rule: {
1289
- sample_rate: number | null;
1290
- sample_event_class: "context" | "preserve" | null;
1291
- action: "sample" | "demote" | "drop";
1292
382
  expires_at: string | null;
383
+ }, {
1293
384
  name: string;
1294
385
  description: string | null;
1295
386
  enabled: boolean;
387
+ action: "sample" | "demote" | "drop";
1296
388
  matcher: import("./capture-rule-schemas.js").CaptureRuleMatcher;
1297
389
  created_by_user_id: string | null;
1298
390
  created_from_incident_id: string | null;
1299
391
  created_from_event_id: string | null;
1300
- };
1301
- suggestion_id: string;
1302
- recommended_action: "sample" | "demote" | "drop";
1303
- reason: string;
1304
- requires_confirmation: boolean;
1305
- created_rule_id: string | null;
1306
- created_rule_enabled: boolean | null;
1307
- }[];
1308
- bundle_status?: "pending" | "failed" | "ready" | undefined;
1309
- access_mode?: "manage" | "preview" | undefined;
1310
- bundle_reason?: string | null | undefined;
1311
- }, {
1312
- suggestions: {
1313
- confidence: "medium" | "low" | "high";
1314
- label: string;
1315
- rule: {
1316
- action: "sample" | "demote" | "drop";
1317
- name: string;
1318
- matcher: {
1319
- runtime?: ("unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby")[] | undefined;
1320
- fingerprint?: {
1321
- value: string;
1322
- version: string;
1323
- } | undefined;
1324
- first_party?: boolean | undefined;
1325
- event_types?: ("backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event")[] | undefined;
1326
- services?: string[] | undefined;
1327
- environments?: string[] | undefined;
1328
- error_name?: string | undefined;
1329
- message_contains?: string | undefined;
1330
- message_equals?: string | undefined;
1331
- browser_event_kind?: "window_error" | "resource_error" | undefined;
1332
- browser_event_opaque?: boolean | undefined;
1333
- browser_page_visibility_state?: "visible" | "hidden" | "prerender" | "unloaded" | undefined;
1334
- browser_page_ready_state?: "loading" | "interactive" | "complete" | undefined;
1335
- browser_target_tag_name?: string | undefined;
1336
- browser_target_attributes?: {
1337
- type?: string | undefined;
1338
- rel?: string | undefined;
1339
- as?: string | undefined;
1340
- media?: string | undefined;
1341
- cross_origin?: string | undefined;
1342
- async?: boolean | undefined;
1343
- defer?: boolean | undefined;
1344
- integrity_present?: boolean | undefined;
1345
- } | undefined;
1346
- client_kind?: "unknown" | "human" | "bot" | undefined;
1347
- bot_family?: string | undefined;
1348
- resource_url?: {
1349
- host?: string | undefined;
1350
- host_suffix?: string | undefined;
1351
- path_prefix?: string | undefined;
1352
- path_equals?: string | undefined;
1353
- } | undefined;
1354
- request_url?: {
1355
- host?: string | undefined;
1356
- host_suffix?: string | undefined;
1357
- path_prefix?: string | undefined;
1358
- path_equals?: string | undefined;
1359
- } | undefined;
1360
- status_codes?: number[] | undefined;
1361
- status_ranges?: {
1362
- start: number;
1363
- end: number;
1364
- }[] | undefined;
1365
- };
1366
- expires_at?: string | null | undefined;
1367
- description?: string | null | undefined;
1368
- enabled?: boolean | undefined;
392
+ expires_at: string | null;
1369
393
  sample_rate?: number | null | undefined;
1370
394
  sample_event_class?: "context" | "preserve" | null | undefined;
1371
- created_by_user_id?: string | null | undefined;
1372
- created_from_incident_id?: string | null | undefined;
1373
- created_from_event_id?: string | null | undefined;
1374
- };
1375
- suggestion_id: string;
1376
- recommended_action: "sample" | "demote" | "drop";
1377
- reason: string;
1378
- requires_confirmation: boolean;
1379
- created_rule_id?: string | null | undefined;
1380
- created_rule_enabled?: boolean | null | undefined;
1381
- }[];
1382
- bundle_status?: "pending" | "failed" | "ready" | undefined;
1383
- access_mode?: "manage" | "preview" | undefined;
1384
- bundle_reason?: string | null | undefined;
1385
- }>;
395
+ }>>;
396
+ }, z.core.$strip>>;
397
+ bundle_status: z.ZodOptional<z.ZodEnum<{
398
+ pending: "pending";
399
+ failed: "failed";
400
+ ready: "ready";
401
+ }>>;
402
+ bundle_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ }, z.core.$strip>;
1386
404
  export type CaptureRuleSuggestionsResponse = z.infer<typeof CaptureRuleSuggestionsResponseSchema>;
1387
405
  export declare const CreateCaptureRuleFromSuggestionSchema: z.ZodObject<{
1388
406
  suggestion_id: z.ZodString;
@@ -1390,19 +408,7 @@ export declare const CreateCaptureRuleFromSuggestionSchema: z.ZodObject<{
1390
408
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1391
409
  enabled: z.ZodOptional<z.ZodBoolean>;
1392
410
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
- }, "strip", z.ZodTypeAny, {
1394
- suggestion_id: string;
1395
- expires_at?: string | null | undefined;
1396
- name?: string | undefined;
1397
- description?: string | null | undefined;
1398
- enabled?: boolean | undefined;
1399
- }, {
1400
- suggestion_id: string;
1401
- expires_at?: string | null | undefined;
1402
- name?: string | undefined;
1403
- description?: string | null | undefined;
1404
- enabled?: boolean | undefined;
1405
- }>;
411
+ }, z.core.$strip>;
1406
412
  export type CreateCaptureRuleFromSuggestion = z.infer<typeof CreateCaptureRuleFromSuggestionSchema>;
1407
413
  export interface CaptureRuleSuggestionIncident {
1408
414
  incident_id: string;