@debugbundle/shared-types 2.5.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 (116) 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 +505 -0
  96. package/dist/notification-preferences.d.ts.map +1 -0
  97. package/dist/notification-preferences.js +206 -0
  98. package/dist/notification-preferences.js.map +1 -0
  99. package/dist/notification-schedule.d.ts +4 -0
  100. package/dist/notification-schedule.d.ts.map +1 -0
  101. package/dist/notification-schedule.js +36 -0
  102. package/dist/notification-schedule.js.map +1 -0
  103. package/dist/project-color-tags.d.ts +20 -1
  104. package/dist/project-color-tags.d.ts.map +1 -1
  105. package/dist/public-status.d.ts +122 -568
  106. package/dist/public-status.d.ts.map +1 -1
  107. package/dist/public-status.js +8 -8
  108. package/dist/stack-frames.d.ts +11 -0
  109. package/dist/stack-frames.d.ts.map +1 -0
  110. package/dist/stack-frames.js +107 -0
  111. package/dist/stack-frames.js.map +1 -0
  112. package/dist/weekly-notification-groups.d.ts +8 -0
  113. package/dist/weekly-notification-groups.d.ts.map +1 -0
  114. package/dist/weekly-notification-groups.js +23 -0
  115. package/dist/weekly-notification-groups.js.map +1 -0
  116. package/package.json +2 -2
@@ -1,24 +1,52 @@
1
1
  import { z } from "zod";
2
2
  export declare const EventClassValues: readonly ["incident_signal", "context_signal", "operational_signal"];
3
- export declare const EventClassSchema: z.ZodEnum<["incident_signal", "context_signal", "operational_signal"]>;
3
+ export declare const EventClassSchema: z.ZodEnum<{
4
+ incident_signal: "incident_signal";
5
+ context_signal: "context_signal";
6
+ operational_signal: "operational_signal";
7
+ }>;
4
8
  export type EventClass = z.infer<typeof EventClassSchema>;
5
9
  export declare const CapturePresetValues: readonly ["minimal", "balanced", "investigative"];
6
- export declare const CapturePresetSchema: z.ZodEnum<["minimal", "balanced", "investigative"]>;
10
+ export declare const CapturePresetSchema: z.ZodEnum<{
11
+ minimal: "minimal";
12
+ balanced: "balanced";
13
+ investigative: "investigative";
14
+ }>;
7
15
  export type CapturePreset = z.infer<typeof CapturePresetSchema>;
8
16
  export declare const CaptureLogsValues: readonly ["off", "error", "warning", "info"];
9
- export declare const CaptureLogsSchema: z.ZodEnum<["off", "error", "warning", "info"]>;
17
+ export declare const CaptureLogsSchema: z.ZodEnum<{
18
+ error: "error";
19
+ off: "off";
20
+ warning: "warning";
21
+ info: "info";
22
+ }>;
10
23
  export type CaptureLogs = z.infer<typeof CaptureLogsSchema>;
11
24
  export declare const CaptureRequestEventsValues: readonly ["off", "failures_only", "filtered", "all"];
12
- export declare const CaptureRequestEventsSchema: z.ZodEnum<["off", "failures_only", "filtered", "all"]>;
25
+ export declare const CaptureRequestEventsSchema: z.ZodEnum<{
26
+ off: "off";
27
+ failures_only: "failures_only";
28
+ filtered: "filtered";
29
+ all: "all";
30
+ }>;
13
31
  export type CaptureRequestEvents = z.infer<typeof CaptureRequestEventsSchema>;
14
32
  export declare const CaptureBreadcrumbsValues: readonly ["local_only", "exception_only", "standalone"];
15
- export declare const CaptureBreadcrumbsSchema: z.ZodEnum<["local_only", "exception_only", "standalone"]>;
33
+ export declare const CaptureBreadcrumbsSchema: z.ZodEnum<{
34
+ local_only: "local_only";
35
+ exception_only: "exception_only";
36
+ standalone: "standalone";
37
+ }>;
16
38
  export type CaptureBreadcrumbs = z.infer<typeof CaptureBreadcrumbsSchema>;
17
39
  export declare const CaptureProbeEventsValues: readonly ["buffer_only", "standalone_when_activated"];
18
- export declare const CaptureProbeEventsSchema: z.ZodEnum<["buffer_only", "standalone_when_activated"]>;
40
+ export declare const CaptureProbeEventsSchema: z.ZodEnum<{
41
+ buffer_only: "buffer_only";
42
+ standalone_when_activated: "standalone_when_activated";
43
+ }>;
19
44
  export type CaptureProbeEvents = z.infer<typeof CaptureProbeEventsSchema>;
20
45
  export declare const RequestSignalClassificationValues: readonly ["incident_signal", "context_signal"];
21
- export declare const RequestSignalClassificationSchema: z.ZodEnum<["incident_signal", "context_signal"]>;
46
+ export declare const RequestSignalClassificationSchema: z.ZodEnum<{
47
+ incident_signal: "incident_signal";
48
+ context_signal: "context_signal";
49
+ }>;
22
50
  export type RequestSignalClassification = z.infer<typeof RequestSignalClassificationSchema>;
23
51
  export interface RequestAnomalyThreshold {
24
52
  minimum_occurrences_5m: number;
@@ -28,7 +56,7 @@ export declare const RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES: readonly [401,
28
56
  export declare const HTTP_METHOD_VALUES: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"];
29
57
  export type HttpMethod = (typeof HTTP_METHOD_VALUES)[number];
30
58
  export declare function normalizeImmediateClientErrorStatuses(statuses: readonly number[]): number[];
31
- export declare const ImmediateClientErrorStatusesSchema: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
59
+ export declare const ImmediateClientErrorStatusesSchema: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
32
60
  export interface ImmediateClientErrorPathRule {
33
61
  status_code: number;
34
62
  path_pattern: string;
@@ -37,382 +65,346 @@ export interface ImmediateClientErrorPathRule {
37
65
  export declare function normalizeImmediateClientErrorPathRules(rules: readonly ImmediateClientErrorPathRule[]): ImmediateClientErrorPathRule[];
38
66
  export declare const ImmediateClientErrorPathRuleSchema: z.ZodObject<{
39
67
  status_code: z.ZodNumber;
40
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
41
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
42
- }, "strip", z.ZodTypeAny, {
43
- status_code: number;
44
- path_pattern: string;
45
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
46
- }, {
47
- status_code: number;
48
- path_pattern: string;
49
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
50
- }>;
51
- export declare const ImmediateClientErrorPathRulesSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
68
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
69
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
70
+ GET: "GET";
71
+ POST: "POST";
72
+ PUT: "PUT";
73
+ PATCH: "PATCH";
74
+ DELETE: "DELETE";
75
+ HEAD: "HEAD";
76
+ OPTIONS: "OPTIONS";
77
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
78
+ }, z.core.$strip>;
79
+ export declare const ImmediateClientErrorPathRulesSchema: z.ZodPipe<z.ZodArray<z.ZodObject<{
52
80
  status_code: z.ZodNumber;
53
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
54
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
55
- }, "strip", z.ZodTypeAny, {
81
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
82
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
83
+ GET: "GET";
84
+ POST: "POST";
85
+ PUT: "PUT";
86
+ PATCH: "PATCH";
87
+ DELETE: "DELETE";
88
+ HEAD: "HEAD";
89
+ OPTIONS: "OPTIONS";
90
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
91
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
56
92
  status_code: number;
57
93
  path_pattern: string;
58
94
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
59
- }, {
60
- status_code: number;
61
- path_pattern: string;
62
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
63
- }>, "many">, ImmediateClientErrorPathRule[], {
64
- status_code: number;
65
- path_pattern: string;
66
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
67
- }[]>;
95
+ }[]>>;
68
96
  export interface ResolvedCapturePolicy {
69
97
  preset: CapturePreset;
70
98
  capture_logs: CaptureLogs;
71
99
  capture_request_events: CaptureRequestEvents;
72
100
  capture_breadcrumbs: CaptureBreadcrumbs;
73
101
  capture_probe_events: CaptureProbeEvents;
102
+ capture_diagnostic_context?: boolean | undefined;
74
103
  immediate_client_error_statuses: number[];
75
104
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
76
105
  }
77
106
  export declare const ResolvedCapturePolicySchema: z.ZodObject<{
78
- preset: z.ZodEnum<["minimal", "balanced", "investigative"]>;
79
- capture_logs: z.ZodEnum<["off", "error", "warning", "info"]>;
80
- capture_request_events: z.ZodEnum<["off", "failures_only", "filtered", "all"]>;
81
- capture_breadcrumbs: z.ZodEnum<["local_only", "exception_only", "standalone"]>;
82
- capture_probe_events: z.ZodEnum<["buffer_only", "standalone_when_activated"]>;
83
- immediate_client_error_statuses: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
84
- immediate_client_error_path_rules: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
107
+ preset: z.ZodEnum<{
108
+ minimal: "minimal";
109
+ balanced: "balanced";
110
+ investigative: "investigative";
111
+ }>;
112
+ capture_logs: z.ZodEnum<{
113
+ error: "error";
114
+ off: "off";
115
+ warning: "warning";
116
+ info: "info";
117
+ }>;
118
+ capture_request_events: z.ZodEnum<{
119
+ off: "off";
120
+ failures_only: "failures_only";
121
+ filtered: "filtered";
122
+ all: "all";
123
+ }>;
124
+ capture_breadcrumbs: z.ZodEnum<{
125
+ local_only: "local_only";
126
+ exception_only: "exception_only";
127
+ standalone: "standalone";
128
+ }>;
129
+ capture_probe_events: z.ZodEnum<{
130
+ buffer_only: "buffer_only";
131
+ standalone_when_activated: "standalone_when_activated";
132
+ }>;
133
+ capture_diagnostic_context: z.ZodOptional<z.ZodBoolean>;
134
+ immediate_client_error_statuses: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
135
+ immediate_client_error_path_rules: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodObject<{
85
136
  status_code: z.ZodNumber;
86
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
87
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
88
- }, "strip", z.ZodTypeAny, {
137
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
138
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
139
+ GET: "GET";
140
+ POST: "POST";
141
+ PUT: "PUT";
142
+ PATCH: "PATCH";
143
+ DELETE: "DELETE";
144
+ HEAD: "HEAD";
145
+ OPTIONS: "OPTIONS";
146
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
147
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
89
148
  status_code: number;
90
149
  path_pattern: string;
91
150
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
92
- }, {
93
- status_code: number;
94
- path_pattern: string;
95
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
96
- }>, "many">, ImmediateClientErrorPathRule[], {
97
- status_code: number;
98
- path_pattern: string;
99
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
100
- }[]>>;
101
- }, "strip", z.ZodTypeAny, {
102
- preset: "minimal" | "balanced" | "investigative";
103
- capture_logs: "error" | "off" | "warning" | "info";
104
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
105
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
106
- capture_probe_events: "buffer_only" | "standalone_when_activated";
107
- immediate_client_error_statuses: number[];
108
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
109
- }, {
110
- preset: "minimal" | "balanced" | "investigative";
111
- capture_logs: "error" | "off" | "warning" | "info";
112
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
113
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
114
- capture_probe_events: "buffer_only" | "standalone_when_activated";
115
- immediate_client_error_statuses: number[];
116
- immediate_client_error_path_rules?: {
117
- status_code: number;
118
- path_pattern: string;
119
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
120
- }[] | undefined;
121
- }>;
151
+ }[]>>>;
152
+ }, z.core.$strip>;
122
153
  export interface CapturePolicyOverrides {
123
154
  capture_logs: CaptureLogs | null;
124
155
  capture_request_events: CaptureRequestEvents | null;
125
156
  capture_breadcrumbs: CaptureBreadcrumbs | null;
126
157
  capture_probe_events: CaptureProbeEvents | null;
158
+ capture_diagnostic_context?: boolean | null | undefined;
127
159
  immediate_client_error_statuses: number[] | null;
128
160
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
129
161
  }
130
162
  export declare const CapturePolicyOverridesSchema: z.ZodObject<{
131
- capture_logs: z.ZodNullable<z.ZodEnum<["off", "error", "warning", "info"]>>;
132
- capture_request_events: z.ZodNullable<z.ZodEnum<["off", "failures_only", "filtered", "all"]>>;
133
- capture_breadcrumbs: z.ZodNullable<z.ZodEnum<["local_only", "exception_only", "standalone"]>>;
134
- capture_probe_events: z.ZodNullable<z.ZodEnum<["buffer_only", "standalone_when_activated"]>>;
135
- immediate_client_error_statuses: z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>>;
136
- immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
163
+ capture_logs: z.ZodNullable<z.ZodEnum<{
164
+ error: "error";
165
+ off: "off";
166
+ warning: "warning";
167
+ info: "info";
168
+ }>>;
169
+ capture_request_events: z.ZodNullable<z.ZodEnum<{
170
+ off: "off";
171
+ failures_only: "failures_only";
172
+ filtered: "filtered";
173
+ all: "all";
174
+ }>>;
175
+ capture_breadcrumbs: z.ZodNullable<z.ZodEnum<{
176
+ local_only: "local_only";
177
+ exception_only: "exception_only";
178
+ standalone: "standalone";
179
+ }>>;
180
+ capture_probe_events: z.ZodNullable<z.ZodEnum<{
181
+ buffer_only: "buffer_only";
182
+ standalone_when_activated: "standalone_when_activated";
183
+ }>>;
184
+ capture_diagnostic_context: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
185
+ immediate_client_error_statuses: z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>;
186
+ immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodObject<{
137
187
  status_code: z.ZodNumber;
138
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
139
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
140
- }, "strip", z.ZodTypeAny, {
188
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
189
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
190
+ GET: "GET";
191
+ POST: "POST";
192
+ PUT: "PUT";
193
+ PATCH: "PATCH";
194
+ DELETE: "DELETE";
195
+ HEAD: "HEAD";
196
+ OPTIONS: "OPTIONS";
197
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
198
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
141
199
  status_code: number;
142
200
  path_pattern: string;
143
201
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
144
- }, {
145
- status_code: number;
146
- path_pattern: string;
147
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
148
- }>, "many">, ImmediateClientErrorPathRule[], {
149
- status_code: number;
150
- path_pattern: string;
151
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
152
- }[]>>>;
153
- }, "strip", z.ZodTypeAny, {
154
- capture_logs: "error" | "off" | "warning" | "info" | null;
155
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
156
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
157
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
158
- immediate_client_error_statuses: number[] | null;
159
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
160
- }, {
161
- capture_logs: "error" | "off" | "warning" | "info" | null;
162
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
163
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
164
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
165
- immediate_client_error_statuses: number[] | null;
166
- immediate_client_error_path_rules?: {
167
- status_code: number;
168
- path_pattern: string;
169
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
170
- }[] | null | undefined;
171
- }>;
202
+ }[]>>>>;
203
+ }, z.core.$strip>;
172
204
  export interface CapturePolicyResponse {
173
205
  access_mode: "manage" | "preview";
174
206
  policy: ResolvedCapturePolicy;
175
207
  overrides: CapturePolicyOverrides;
176
208
  }
177
209
  export declare const CapturePolicyResponseSchema: z.ZodObject<{
178
- access_mode: z.ZodEnum<["manage", "preview"]>;
210
+ access_mode: z.ZodEnum<{
211
+ manage: "manage";
212
+ preview: "preview";
213
+ }>;
179
214
  policy: z.ZodObject<{
180
- preset: z.ZodEnum<["minimal", "balanced", "investigative"]>;
181
- capture_logs: z.ZodEnum<["off", "error", "warning", "info"]>;
182
- capture_request_events: z.ZodEnum<["off", "failures_only", "filtered", "all"]>;
183
- capture_breadcrumbs: z.ZodEnum<["local_only", "exception_only", "standalone"]>;
184
- capture_probe_events: z.ZodEnum<["buffer_only", "standalone_when_activated"]>;
185
- immediate_client_error_statuses: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
186
- immediate_client_error_path_rules: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodObject<{
215
+ preset: z.ZodEnum<{
216
+ minimal: "minimal";
217
+ balanced: "balanced";
218
+ investigative: "investigative";
219
+ }>;
220
+ capture_logs: z.ZodEnum<{
221
+ error: "error";
222
+ off: "off";
223
+ warning: "warning";
224
+ info: "info";
225
+ }>;
226
+ capture_request_events: z.ZodEnum<{
227
+ off: "off";
228
+ failures_only: "failures_only";
229
+ filtered: "filtered";
230
+ all: "all";
231
+ }>;
232
+ capture_breadcrumbs: z.ZodEnum<{
233
+ local_only: "local_only";
234
+ exception_only: "exception_only";
235
+ standalone: "standalone";
236
+ }>;
237
+ capture_probe_events: z.ZodEnum<{
238
+ buffer_only: "buffer_only";
239
+ standalone_when_activated: "standalone_when_activated";
240
+ }>;
241
+ capture_diagnostic_context: z.ZodOptional<z.ZodBoolean>;
242
+ immediate_client_error_statuses: z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>;
243
+ immediate_client_error_path_rules: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodObject<{
187
244
  status_code: z.ZodNumber;
188
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
189
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
190
- }, "strip", z.ZodTypeAny, {
245
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
246
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
247
+ GET: "GET";
248
+ POST: "POST";
249
+ PUT: "PUT";
250
+ PATCH: "PATCH";
251
+ DELETE: "DELETE";
252
+ HEAD: "HEAD";
253
+ OPTIONS: "OPTIONS";
254
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
255
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
191
256
  status_code: number;
192
257
  path_pattern: string;
193
258
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
194
- }, {
195
- status_code: number;
196
- path_pattern: string;
197
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
198
- }>, "many">, ImmediateClientErrorPathRule[], {
199
- status_code: number;
200
- path_pattern: string;
201
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
202
- }[]>>;
203
- }, "strip", z.ZodTypeAny, {
204
- preset: "minimal" | "balanced" | "investigative";
205
- capture_logs: "error" | "off" | "warning" | "info";
206
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
207
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
208
- capture_probe_events: "buffer_only" | "standalone_when_activated";
209
- immediate_client_error_statuses: number[];
210
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
211
- }, {
212
- preset: "minimal" | "balanced" | "investigative";
213
- capture_logs: "error" | "off" | "warning" | "info";
214
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
215
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
216
- capture_probe_events: "buffer_only" | "standalone_when_activated";
217
- immediate_client_error_statuses: number[];
218
- immediate_client_error_path_rules?: {
219
- status_code: number;
220
- path_pattern: string;
221
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
222
- }[] | undefined;
223
- }>;
259
+ }[]>>>;
260
+ }, z.core.$strip>;
224
261
  overrides: z.ZodObject<{
225
- capture_logs: z.ZodNullable<z.ZodEnum<["off", "error", "warning", "info"]>>;
226
- capture_request_events: z.ZodNullable<z.ZodEnum<["off", "failures_only", "filtered", "all"]>>;
227
- capture_breadcrumbs: z.ZodNullable<z.ZodEnum<["local_only", "exception_only", "standalone"]>>;
228
- capture_probe_events: z.ZodNullable<z.ZodEnum<["buffer_only", "standalone_when_activated"]>>;
229
- immediate_client_error_statuses: z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>>;
230
- immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
262
+ capture_logs: z.ZodNullable<z.ZodEnum<{
263
+ error: "error";
264
+ off: "off";
265
+ warning: "warning";
266
+ info: "info";
267
+ }>>;
268
+ capture_request_events: z.ZodNullable<z.ZodEnum<{
269
+ off: "off";
270
+ failures_only: "failures_only";
271
+ filtered: "filtered";
272
+ all: "all";
273
+ }>>;
274
+ capture_breadcrumbs: z.ZodNullable<z.ZodEnum<{
275
+ local_only: "local_only";
276
+ exception_only: "exception_only";
277
+ standalone: "standalone";
278
+ }>>;
279
+ capture_probe_events: z.ZodNullable<z.ZodEnum<{
280
+ buffer_only: "buffer_only";
281
+ standalone_when_activated: "standalone_when_activated";
282
+ }>>;
283
+ capture_diagnostic_context: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
284
+ immediate_client_error_statuses: z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>;
285
+ immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodObject<{
231
286
  status_code: z.ZodNumber;
232
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
233
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
234
- }, "strip", z.ZodTypeAny, {
287
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
288
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
289
+ GET: "GET";
290
+ POST: "POST";
291
+ PUT: "PUT";
292
+ PATCH: "PATCH";
293
+ DELETE: "DELETE";
294
+ HEAD: "HEAD";
295
+ OPTIONS: "OPTIONS";
296
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
297
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
235
298
  status_code: number;
236
299
  path_pattern: string;
237
300
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
238
- }, {
239
- status_code: number;
240
- path_pattern: string;
241
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
242
- }>, "many">, ImmediateClientErrorPathRule[], {
243
- status_code: number;
244
- path_pattern: string;
245
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
246
- }[]>>>;
247
- }, "strip", z.ZodTypeAny, {
248
- capture_logs: "error" | "off" | "warning" | "info" | null;
249
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
250
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
251
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
252
- immediate_client_error_statuses: number[] | null;
253
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
254
- }, {
255
- capture_logs: "error" | "off" | "warning" | "info" | null;
256
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
257
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
258
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
259
- immediate_client_error_statuses: number[] | null;
260
- immediate_client_error_path_rules?: {
261
- status_code: number;
262
- path_pattern: string;
263
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
264
- }[] | null | undefined;
265
- }>;
266
- }, "strip", z.ZodTypeAny, {
267
- access_mode: "manage" | "preview";
268
- policy: {
269
- preset: "minimal" | "balanced" | "investigative";
270
- capture_logs: "error" | "off" | "warning" | "info";
271
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
272
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
273
- capture_probe_events: "buffer_only" | "standalone_when_activated";
274
- immediate_client_error_statuses: number[];
275
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
276
- };
277
- overrides: {
278
- capture_logs: "error" | "off" | "warning" | "info" | null;
279
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
280
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
281
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
282
- immediate_client_error_statuses: number[] | null;
283
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
284
- };
285
- }, {
286
- access_mode: "manage" | "preview";
287
- policy: {
288
- preset: "minimal" | "balanced" | "investigative";
289
- capture_logs: "error" | "off" | "warning" | "info";
290
- capture_request_events: "off" | "failures_only" | "filtered" | "all";
291
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
292
- capture_probe_events: "buffer_only" | "standalone_when_activated";
293
- immediate_client_error_statuses: number[];
294
- immediate_client_error_path_rules?: {
295
- status_code: number;
296
- path_pattern: string;
297
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
298
- }[] | undefined;
299
- };
300
- overrides: {
301
- capture_logs: "error" | "off" | "warning" | "info" | null;
302
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
303
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
304
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
305
- immediate_client_error_statuses: number[] | null;
306
- immediate_client_error_path_rules?: {
307
- status_code: number;
308
- path_pattern: string;
309
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
310
- }[] | null | undefined;
311
- };
312
- }>;
301
+ }[]>>>>;
302
+ }, z.core.$strip>;
303
+ }, z.core.$strip>;
313
304
  export declare const CapturePolicySchema: z.ZodObject<{
314
305
  project_id: z.ZodString;
315
- preset: z.ZodEnum<["minimal", "balanced", "investigative"]>;
316
- capture_logs: z.ZodNullable<z.ZodEnum<["off", "error", "warning", "info"]>>;
317
- capture_request_events: z.ZodNullable<z.ZodEnum<["off", "failures_only", "filtered", "all"]>>;
318
- capture_breadcrumbs: z.ZodNullable<z.ZodEnum<["local_only", "exception_only", "standalone"]>>;
319
- capture_probe_events: z.ZodNullable<z.ZodEnum<["buffer_only", "standalone_when_activated"]>>;
320
- immediate_client_error_statuses: z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>>;
321
- immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
306
+ preset: z.ZodEnum<{
307
+ minimal: "minimal";
308
+ balanced: "balanced";
309
+ investigative: "investigative";
310
+ }>;
311
+ capture_logs: z.ZodNullable<z.ZodEnum<{
312
+ error: "error";
313
+ off: "off";
314
+ warning: "warning";
315
+ info: "info";
316
+ }>>;
317
+ capture_request_events: z.ZodNullable<z.ZodEnum<{
318
+ off: "off";
319
+ failures_only: "failures_only";
320
+ filtered: "filtered";
321
+ all: "all";
322
+ }>>;
323
+ capture_breadcrumbs: z.ZodNullable<z.ZodEnum<{
324
+ local_only: "local_only";
325
+ exception_only: "exception_only";
326
+ standalone: "standalone";
327
+ }>>;
328
+ capture_probe_events: z.ZodNullable<z.ZodEnum<{
329
+ buffer_only: "buffer_only";
330
+ standalone_when_activated: "standalone_when_activated";
331
+ }>>;
332
+ capture_diagnostic_context: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
333
+ immediate_client_error_statuses: z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>;
334
+ immediate_client_error_path_rules: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodObject<{
322
335
  status_code: z.ZodNumber;
323
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
324
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
325
- }, "strip", z.ZodTypeAny, {
336
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
337
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
338
+ GET: "GET";
339
+ POST: "POST";
340
+ PUT: "PUT";
341
+ PATCH: "PATCH";
342
+ DELETE: "DELETE";
343
+ HEAD: "HEAD";
344
+ OPTIONS: "OPTIONS";
345
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
346
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
326
347
  status_code: number;
327
348
  path_pattern: string;
328
349
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
329
- }, {
330
- status_code: number;
331
- path_pattern: string;
332
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
333
- }>, "many">, ImmediateClientErrorPathRule[], {
334
- status_code: number;
335
- path_pattern: string;
336
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
337
- }[]>>>;
350
+ }[]>>>>;
338
351
  updated_at: z.ZodString;
339
- }, "strip", z.ZodTypeAny, {
340
- project_id: string;
341
- updated_at: string;
342
- preset: "minimal" | "balanced" | "investigative";
343
- capture_logs: "error" | "off" | "warning" | "info" | null;
344
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
345
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
346
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
347
- immediate_client_error_statuses: number[] | null;
348
- immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
349
- }, {
350
- project_id: string;
351
- updated_at: string;
352
- preset: "minimal" | "balanced" | "investigative";
353
- capture_logs: "error" | "off" | "warning" | "info" | null;
354
- capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
355
- capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
356
- capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
357
- immediate_client_error_statuses: number[] | null;
358
- immediate_client_error_path_rules?: {
359
- status_code: number;
360
- path_pattern: string;
361
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
362
- }[] | null | undefined;
363
- }>;
352
+ }, z.core.$strip>;
364
353
  export type CapturePolicyRecord = z.infer<typeof CapturePolicySchema>;
365
354
  export declare const CapturePolicyUpdateSchema: z.ZodObject<{
366
- preset: z.ZodOptional<z.ZodEnum<["minimal", "balanced", "investigative"]>>;
367
- capture_logs: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "error", "warning", "info"]>>>;
368
- capture_request_events: z.ZodOptional<z.ZodNullable<z.ZodEnum<["off", "failures_only", "filtered", "all"]>>>;
369
- capture_breadcrumbs: z.ZodOptional<z.ZodNullable<z.ZodEnum<["local_only", "exception_only", "standalone"]>>>;
370
- capture_probe_events: z.ZodOptional<z.ZodNullable<z.ZodEnum<["buffer_only", "standalone_when_activated"]>>>;
371
- immediate_client_error_statuses: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>>>;
372
- immediate_client_error_path_rules: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodObject<{
355
+ preset: z.ZodOptional<z.ZodEnum<{
356
+ minimal: "minimal";
357
+ balanced: "balanced";
358
+ investigative: "investigative";
359
+ }>>;
360
+ capture_logs: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
361
+ error: "error";
362
+ off: "off";
363
+ warning: "warning";
364
+ info: "info";
365
+ }>>>;
366
+ capture_request_events: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
367
+ off: "off";
368
+ failures_only: "failures_only";
369
+ filtered: "filtered";
370
+ all: "all";
371
+ }>>>;
372
+ capture_breadcrumbs: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
373
+ local_only: "local_only";
374
+ exception_only: "exception_only";
375
+ standalone: "standalone";
376
+ }>>>;
377
+ capture_probe_events: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
378
+ buffer_only: "buffer_only";
379
+ standalone_when_activated: "standalone_when_activated";
380
+ }>>>;
381
+ capture_diagnostic_context: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
382
+ immediate_client_error_statuses: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodNumber>, z.ZodTransform<number[], number[]>>>>;
383
+ immediate_client_error_path_rules: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodObject<{
373
384
  status_code: z.ZodNumber;
374
- path_pattern: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
375
- methods: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>, "many">>>, ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined>;
376
- }, "strip", z.ZodTypeAny, {
385
+ path_pattern: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
386
+ methods: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
387
+ GET: "GET";
388
+ POST: "POST";
389
+ PUT: "PUT";
390
+ PATCH: "PATCH";
391
+ DELETE: "DELETE";
392
+ HEAD: "HEAD";
393
+ OPTIONS: "OPTIONS";
394
+ }>>>>, z.ZodTransform<("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[], ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[]>>;
395
+ }, z.core.$strip>>, z.ZodTransform<ImmediateClientErrorPathRule[], {
377
396
  status_code: number;
378
397
  path_pattern: string;
379
398
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[];
380
- }, {
381
- status_code: number;
382
- path_pattern: string;
383
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
384
- }>, "many">, ImmediateClientErrorPathRule[], {
385
- status_code: number;
386
- path_pattern: string;
387
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
388
- }[]>>>;
389
- }, "strip", z.ZodTypeAny, {
390
- preset?: "minimal" | "balanced" | "investigative" | undefined;
391
- capture_logs?: "error" | "off" | "warning" | "info" | null | undefined;
392
- capture_request_events?: "off" | "failures_only" | "filtered" | "all" | null | undefined;
393
- capture_breadcrumbs?: "local_only" | "exception_only" | "standalone" | null | undefined;
394
- capture_probe_events?: "buffer_only" | "standalone_when_activated" | null | undefined;
395
- immediate_client_error_statuses?: number[] | null | undefined;
396
- immediate_client_error_path_rules?: ImmediateClientErrorPathRule[] | null | undefined;
397
- }, {
398
- preset?: "minimal" | "balanced" | "investigative" | undefined;
399
- capture_logs?: "error" | "off" | "warning" | "info" | null | undefined;
400
- capture_request_events?: "off" | "failures_only" | "filtered" | "all" | null | undefined;
401
- capture_breadcrumbs?: "local_only" | "exception_only" | "standalone" | null | undefined;
402
- capture_probe_events?: "buffer_only" | "standalone_when_activated" | null | undefined;
403
- immediate_client_error_statuses?: number[] | null | undefined;
404
- immediate_client_error_path_rules?: {
405
- status_code: number;
406
- path_pattern: string;
407
- methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
408
- }[] | null | undefined;
409
- }>;
399
+ }[]>>>>;
400
+ }, z.core.$strip>;
410
401
  export type CapturePolicyUpdate = z.infer<typeof CapturePolicyUpdateSchema>;
411
402
  export declare const PRESET_DEFAULTS: Record<CapturePreset, Omit<ResolvedCapturePolicy, "preset">>;
412
403
  export declare const DEFAULT_PRESET_BY_TIER: Record<string, CapturePreset>;
413
404
  /**
414
405
  * Resolve a capture policy record into a fully-resolved policy.
415
- * Override columns win over preset defaults when non-null.
406
+ * Override columns win over preset defaults when non-null. Standalone diagnostics
407
+ * remain disabled by minimal policy even when their saved override is true.
416
408
  */
417
409
  export declare function resolvePolicy(record: CapturePolicyRecord): ResolvedCapturePolicy;
418
410
  export declare function getCapturePolicyOverrides(record: CapturePolicyRecord): CapturePolicyOverrides;