@debugbundle/shared-types 2.1.0 → 2.2.1

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.
@@ -26,6 +26,7 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
26
26
  omitted_routes: z.ZodNumber;
27
27
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
28
28
  }, "strip", z.ZodTypeAny, {
29
+ coverage: "occurrence_metadata" | "retained_samples";
29
30
  items: {
30
31
  route: string;
31
32
  occurrences: number;
@@ -33,8 +34,8 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
33
34
  recorded_occurrences: number;
34
35
  unattributed_occurrences: number;
35
36
  omitted_routes: number;
36
- coverage: "occurrence_metadata" | "retained_samples";
37
37
  }, {
38
+ coverage: "occurrence_metadata" | "retained_samples";
38
39
  items: {
39
40
  route: string;
40
41
  occurrences: number;
@@ -42,7 +43,6 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
42
43
  recorded_occurrences: number;
43
44
  unattributed_occurrences: number;
44
45
  omitted_routes: number;
45
- coverage: "occurrence_metadata" | "retained_samples";
46
46
  }>;
47
47
  interruption: z.ZodOptional<z.ZodObject<{
48
48
  visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
@@ -69,24 +69,26 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
69
69
  delay_ms: z.ZodNumber;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  path: string;
72
+ source: "request_event" | "frontend_breadcrumb";
72
73
  occurred_at: string;
73
74
  method: string;
74
75
  status_code: number;
75
- source: "request_event" | "frontend_breadcrumb";
76
76
  delay_ms: number;
77
77
  }, {
78
78
  path: string;
79
+ source: "request_event" | "frontend_breadcrumb";
79
80
  occurred_at: string;
80
81
  method: string;
81
82
  status_code: number;
82
- source: "request_event" | "frontend_breadcrumb";
83
83
  delay_ms: number;
84
84
  }>, "many">>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  path: string;
87
87
  type: string | null;
88
+ version: 1;
88
89
  title: string;
89
90
  routes: {
91
+ coverage: "occurrence_metadata" | "retained_samples";
90
92
  items: {
91
93
  route: string;
92
94
  occurrences: number;
@@ -94,9 +96,7 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
94
96
  recorded_occurrences: number;
95
97
  unattributed_occurrences: number;
96
98
  omitted_routes: number;
97
- coverage: "occurrence_metadata" | "retained_samples";
98
99
  };
99
- version: 1;
100
100
  host: string | null;
101
101
  first_party: boolean | null;
102
102
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -111,17 +111,19 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
111
111
  } | undefined;
112
112
  recovery_failures?: {
113
113
  path: string;
114
+ source: "request_event" | "frontend_breadcrumb";
114
115
  occurred_at: string;
115
116
  method: string;
116
117
  status_code: number;
117
- source: "request_event" | "frontend_breadcrumb";
118
118
  delay_ms: number;
119
119
  }[] | undefined;
120
120
  }, {
121
121
  path: string;
122
122
  type: string | null;
123
+ version: 1;
123
124
  title: string;
124
125
  routes: {
126
+ coverage: "occurrence_metadata" | "retained_samples";
125
127
  items: {
126
128
  route: string;
127
129
  occurrences: number;
@@ -129,9 +131,7 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
129
131
  recorded_occurrences: number;
130
132
  unattributed_occurrences: number;
131
133
  omitted_routes: number;
132
- coverage: "occurrence_metadata" | "retained_samples";
133
134
  };
134
- version: 1;
135
135
  host: string | null;
136
136
  first_party: boolean | null;
137
137
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -146,10 +146,10 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
146
146
  } | undefined;
147
147
  recovery_failures?: {
148
148
  path: string;
149
+ source: "request_event" | "frontend_breadcrumb";
149
150
  occurred_at: string;
150
151
  method: string;
151
152
  status_code: number;
152
- source: "request_event" | "frontend_breadcrumb";
153
153
  delay_ms: number;
154
154
  }[] | undefined;
155
155
  }>;
@@ -15,6 +15,7 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
15
15
  omitted_routes: z.ZodNumber;
16
16
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
17
17
  }, "strip", z.ZodTypeAny, {
18
+ coverage: "occurrence_metadata" | "retained_samples";
18
19
  items: {
19
20
  route: string;
20
21
  occurrences: number;
@@ -22,8 +23,8 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
22
23
  recorded_occurrences: number;
23
24
  unattributed_occurrences: number;
24
25
  omitted_routes: number;
25
- coverage: "occurrence_metadata" | "retained_samples";
26
26
  }, {
27
+ coverage: "occurrence_metadata" | "retained_samples";
27
28
  items: {
28
29
  route: string;
29
30
  occurrences: number;
@@ -31,7 +32,6 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
31
32
  recorded_occurrences: number;
32
33
  unattributed_occurrences: number;
33
34
  omitted_routes: number;
34
- coverage: "occurrence_metadata" | "retained_samples";
35
35
  }>;
36
36
  export type BrowserResourceRoutes = z.infer<typeof BrowserResourceRoutesSchema>;
37
37
  /** Strip query/fragment and normalize recognizable dynamic segments before retaining route context. */
@@ -98,8 +98,8 @@ export declare const CaptureRuleEvaluationContextSchema: z.ZodObject<{
98
98
  version: string;
99
99
  }>, "many">>;
100
100
  }, "strip", z.ZodTypeAny, {
101
- event_id: string;
102
101
  project_id: string;
102
+ event_id: string;
103
103
  runtime: "unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby";
104
104
  event_type: "backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event";
105
105
  message?: string | undefined;
@@ -142,8 +142,8 @@ export declare const CaptureRuleEvaluationContextSchema: z.ZodObject<{
142
142
  version: string;
143
143
  }[] | undefined;
144
144
  }, {
145
- event_id: string;
146
145
  project_id: string;
146
+ event_id: string;
147
147
  runtime: "unknown" | "browser" | "node" | "python" | "php" | "java" | "go" | "ruby";
148
148
  event_type: "backend_exception" | "request_event" | "log_event" | "frontend_breadcrumb" | "frontend_exception" | "deploy_metadata" | "error_suppressed" | "probe_event";
149
149
  message?: string | undefined;
@@ -711,8 +711,9 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
711
711
  created_at: z.ZodString;
712
712
  updated_at: z.ZodString;
713
713
  }, "strip", z.ZodTypeAny, {
714
- action: "sample" | "demote" | "drop";
714
+ id: string;
715
715
  project_id: string;
716
+ action: "sample" | "demote" | "drop";
716
717
  expires_at: string | null;
717
718
  created_at: string;
718
719
  name: string;
@@ -725,12 +726,12 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
725
726
  created_by_user_id: string | null;
726
727
  created_from_incident_id: string | null;
727
728
  created_from_event_id: string | null;
728
- id: string;
729
729
  hit_count: number;
730
730
  last_matched_at: string | null;
731
731
  }, {
732
- action: "sample" | "demote" | "drop";
732
+ id: string;
733
733
  project_id: string;
734
+ action: "sample" | "demote" | "drop";
734
735
  expires_at: string | null;
735
736
  created_at: string;
736
737
  name: string;
@@ -790,12 +791,12 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
790
791
  created_by_user_id: string | null;
791
792
  created_from_incident_id: string | null;
792
793
  created_from_event_id: string | null;
793
- id: string;
794
794
  hit_count: number;
795
795
  last_matched_at: string | null;
796
796
  }>, {
797
- action: "sample" | "demote" | "drop";
797
+ id: string;
798
798
  project_id: string;
799
+ action: "sample" | "demote" | "drop";
799
800
  expires_at: string | null;
800
801
  created_at: string;
801
802
  name: string;
@@ -808,12 +809,12 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
808
809
  created_by_user_id: string | null;
809
810
  created_from_incident_id: string | null;
810
811
  created_from_event_id: string | null;
811
- id: string;
812
812
  hit_count: number;
813
813
  last_matched_at: string | null;
814
814
  }, {
815
- action: "sample" | "demote" | "drop";
815
+ id: string;
816
816
  project_id: string;
817
+ action: "sample" | "demote" | "drop";
817
818
  expires_at: string | null;
818
819
  created_at: string;
819
820
  name: string;
@@ -873,7 +874,6 @@ export declare const CaptureRuleSchema: z.ZodEffects<z.ZodObject<{
873
874
  created_by_user_id: string | null;
874
875
  created_from_incident_id: string | null;
875
876
  created_from_event_id: string | null;
876
- id: string;
877
877
  hit_count: number;
878
878
  last_matched_at: string | null;
879
879
  }>;
@@ -2197,8 +2197,9 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2197
2197
  created_at: z.ZodString;
2198
2198
  updated_at: z.ZodString;
2199
2199
  }, "strip", z.ZodTypeAny, {
2200
- action: "sample" | "demote" | "drop";
2200
+ id: string;
2201
2201
  project_id: string;
2202
+ action: "sample" | "demote" | "drop";
2202
2203
  expires_at: string | null;
2203
2204
  created_at: string;
2204
2205
  name: string;
@@ -2211,12 +2212,12 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2211
2212
  created_by_user_id: string | null;
2212
2213
  created_from_incident_id: string | null;
2213
2214
  created_from_event_id: string | null;
2214
- id: string;
2215
2215
  hit_count: number;
2216
2216
  last_matched_at: string | null;
2217
2217
  }, {
2218
- action: "sample" | "demote" | "drop";
2218
+ id: string;
2219
2219
  project_id: string;
2220
+ action: "sample" | "demote" | "drop";
2220
2221
  expires_at: string | null;
2221
2222
  created_at: string;
2222
2223
  name: string;
@@ -2276,12 +2277,12 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2276
2277
  created_by_user_id: string | null;
2277
2278
  created_from_incident_id: string | null;
2278
2279
  created_from_event_id: string | null;
2279
- id: string;
2280
2280
  hit_count: number;
2281
2281
  last_matched_at: string | null;
2282
2282
  }>, {
2283
- action: "sample" | "demote" | "drop";
2283
+ id: string;
2284
2284
  project_id: string;
2285
+ action: "sample" | "demote" | "drop";
2285
2286
  expires_at: string | null;
2286
2287
  created_at: string;
2287
2288
  name: string;
@@ -2294,12 +2295,12 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2294
2295
  created_by_user_id: string | null;
2295
2296
  created_from_incident_id: string | null;
2296
2297
  created_from_event_id: string | null;
2297
- id: string;
2298
2298
  hit_count: number;
2299
2299
  last_matched_at: string | null;
2300
2300
  }, {
2301
- action: "sample" | "demote" | "drop";
2301
+ id: string;
2302
2302
  project_id: string;
2303
+ action: "sample" | "demote" | "drop";
2303
2304
  expires_at: string | null;
2304
2305
  created_at: string;
2305
2306
  name: string;
@@ -2359,14 +2360,14 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2359
2360
  created_by_user_id: string | null;
2360
2361
  created_from_incident_id: string | null;
2361
2362
  created_from_event_id: string | null;
2362
- id: string;
2363
2363
  hit_count: number;
2364
2364
  last_matched_at: string | null;
2365
2365
  }>;
2366
2366
  }, "strip", z.ZodTypeAny, {
2367
2367
  rule: {
2368
- action: "sample" | "demote" | "drop";
2368
+ id: string;
2369
2369
  project_id: string;
2370
+ action: "sample" | "demote" | "drop";
2370
2371
  expires_at: string | null;
2371
2372
  created_at: string;
2372
2373
  name: string;
@@ -2379,14 +2380,14 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2379
2380
  created_by_user_id: string | null;
2380
2381
  created_from_incident_id: string | null;
2381
2382
  created_from_event_id: string | null;
2382
- id: string;
2383
2383
  hit_count: number;
2384
2384
  last_matched_at: string | null;
2385
2385
  };
2386
2386
  }, {
2387
2387
  rule: {
2388
- action: "sample" | "demote" | "drop";
2388
+ id: string;
2389
2389
  project_id: string;
2390
+ action: "sample" | "demote" | "drop";
2390
2391
  expires_at: string | null;
2391
2392
  created_at: string;
2392
2393
  name: string;
@@ -2446,7 +2447,6 @@ export declare const CaptureRuleResponseSchema: z.ZodObject<{
2446
2447
  created_by_user_id: string | null;
2447
2448
  created_from_incident_id: string | null;
2448
2449
  created_from_event_id: string | null;
2449
- id: string;
2450
2450
  hit_count: number;
2451
2451
  last_matched_at: string | null;
2452
2452
  };
@@ -2784,8 +2784,9 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2784
2784
  created_at: z.ZodString;
2785
2785
  updated_at: z.ZodString;
2786
2786
  }, "strip", z.ZodTypeAny, {
2787
- action: "sample" | "demote" | "drop";
2787
+ id: string;
2788
2788
  project_id: string;
2789
+ action: "sample" | "demote" | "drop";
2789
2790
  expires_at: string | null;
2790
2791
  created_at: string;
2791
2792
  name: string;
@@ -2798,12 +2799,12 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2798
2799
  created_by_user_id: string | null;
2799
2800
  created_from_incident_id: string | null;
2800
2801
  created_from_event_id: string | null;
2801
- id: string;
2802
2802
  hit_count: number;
2803
2803
  last_matched_at: string | null;
2804
2804
  }, {
2805
- action: "sample" | "demote" | "drop";
2805
+ id: string;
2806
2806
  project_id: string;
2807
+ action: "sample" | "demote" | "drop";
2807
2808
  expires_at: string | null;
2808
2809
  created_at: string;
2809
2810
  name: string;
@@ -2863,12 +2864,12 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2863
2864
  created_by_user_id: string | null;
2864
2865
  created_from_incident_id: string | null;
2865
2866
  created_from_event_id: string | null;
2866
- id: string;
2867
2867
  hit_count: number;
2868
2868
  last_matched_at: string | null;
2869
2869
  }>, {
2870
- action: "sample" | "demote" | "drop";
2870
+ id: string;
2871
2871
  project_id: string;
2872
+ action: "sample" | "demote" | "drop";
2872
2873
  expires_at: string | null;
2873
2874
  created_at: string;
2874
2875
  name: string;
@@ -2881,12 +2882,12 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2881
2882
  created_by_user_id: string | null;
2882
2883
  created_from_incident_id: string | null;
2883
2884
  created_from_event_id: string | null;
2884
- id: string;
2885
2885
  hit_count: number;
2886
2886
  last_matched_at: string | null;
2887
2887
  }, {
2888
- action: "sample" | "demote" | "drop";
2888
+ id: string;
2889
2889
  project_id: string;
2890
+ action: "sample" | "demote" | "drop";
2890
2891
  expires_at: string | null;
2891
2892
  created_at: string;
2892
2893
  name: string;
@@ -2946,15 +2947,15 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2946
2947
  created_by_user_id: string | null;
2947
2948
  created_from_incident_id: string | null;
2948
2949
  created_from_event_id: string | null;
2949
- id: string;
2950
2950
  hit_count: number;
2951
2951
  last_matched_at: string | null;
2952
2952
  }>, "many">;
2953
2953
  }, "strip", z.ZodTypeAny, {
2954
2954
  access_mode: "manage" | "preview";
2955
2955
  rules: {
2956
- action: "sample" | "demote" | "drop";
2956
+ id: string;
2957
2957
  project_id: string;
2958
+ action: "sample" | "demote" | "drop";
2958
2959
  expires_at: string | null;
2959
2960
  created_at: string;
2960
2961
  name: string;
@@ -2967,15 +2968,15 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
2967
2968
  created_by_user_id: string | null;
2968
2969
  created_from_incident_id: string | null;
2969
2970
  created_from_event_id: string | null;
2970
- id: string;
2971
2971
  hit_count: number;
2972
2972
  last_matched_at: string | null;
2973
2973
  }[];
2974
2974
  }, {
2975
2975
  access_mode: "manage" | "preview";
2976
2976
  rules: {
2977
- action: "sample" | "demote" | "drop";
2977
+ id: string;
2978
2978
  project_id: string;
2979
+ action: "sample" | "demote" | "drop";
2979
2980
  expires_at: string | null;
2980
2981
  created_at: string;
2981
2982
  name: string;
@@ -3035,7 +3036,6 @@ export declare const CaptureRulesResponseSchema: z.ZodObject<{
3035
3036
  created_by_user_id: string | null;
3036
3037
  created_from_incident_id: string | null;
3037
3038
  created_from_event_id: string | null;
3038
- id: string;
3039
3039
  hit_count: number;
3040
3040
  last_matched_at: string | null;
3041
3041
  }[];
@@ -3373,8 +3373,9 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3373
3373
  created_at: z.ZodString;
3374
3374
  updated_at: z.ZodString;
3375
3375
  }, "strip", z.ZodTypeAny, {
3376
- action: "sample" | "demote" | "drop";
3376
+ id: string;
3377
3377
  project_id: string;
3378
+ action: "sample" | "demote" | "drop";
3378
3379
  expires_at: string | null;
3379
3380
  created_at: string;
3380
3381
  name: string;
@@ -3387,12 +3388,12 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3387
3388
  created_by_user_id: string | null;
3388
3389
  created_from_incident_id: string | null;
3389
3390
  created_from_event_id: string | null;
3390
- id: string;
3391
3391
  hit_count: number;
3392
3392
  last_matched_at: string | null;
3393
3393
  }, {
3394
- action: "sample" | "demote" | "drop";
3394
+ id: string;
3395
3395
  project_id: string;
3396
+ action: "sample" | "demote" | "drop";
3396
3397
  expires_at: string | null;
3397
3398
  created_at: string;
3398
3399
  name: string;
@@ -3452,12 +3453,12 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3452
3453
  created_by_user_id: string | null;
3453
3454
  created_from_incident_id: string | null;
3454
3455
  created_from_event_id: string | null;
3455
- id: string;
3456
3456
  hit_count: number;
3457
3457
  last_matched_at: string | null;
3458
3458
  }>, {
3459
- action: "sample" | "demote" | "drop";
3459
+ id: string;
3460
3460
  project_id: string;
3461
+ action: "sample" | "demote" | "drop";
3461
3462
  expires_at: string | null;
3462
3463
  created_at: string;
3463
3464
  name: string;
@@ -3470,12 +3471,12 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3470
3471
  created_by_user_id: string | null;
3471
3472
  created_from_incident_id: string | null;
3472
3473
  created_from_event_id: string | null;
3473
- id: string;
3474
3474
  hit_count: number;
3475
3475
  last_matched_at: string | null;
3476
3476
  }, {
3477
- action: "sample" | "demote" | "drop";
3477
+ id: string;
3478
3478
  project_id: string;
3479
+ action: "sample" | "demote" | "drop";
3479
3480
  expires_at: string | null;
3480
3481
  created_at: string;
3481
3482
  name: string;
@@ -3535,15 +3536,15 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3535
3536
  created_by_user_id: string | null;
3536
3537
  created_from_incident_id: string | null;
3537
3538
  created_from_event_id: string | null;
3538
- id: string;
3539
3539
  hit_count: number;
3540
3540
  last_matched_at: string | null;
3541
3541
  }>, "many">;
3542
3542
  }, "strip", z.ZodTypeAny, {
3543
3543
  version: 1;
3544
3544
  rules: {
3545
- action: "sample" | "demote" | "drop";
3545
+ id: string;
3546
3546
  project_id: string;
3547
+ action: "sample" | "demote" | "drop";
3547
3548
  expires_at: string | null;
3548
3549
  created_at: string;
3549
3550
  name: string;
@@ -3556,15 +3557,15 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3556
3557
  created_by_user_id: string | null;
3557
3558
  created_from_incident_id: string | null;
3558
3559
  created_from_event_id: string | null;
3559
- id: string;
3560
3560
  hit_count: number;
3561
3561
  last_matched_at: string | null;
3562
3562
  }[];
3563
3563
  }, {
3564
3564
  version: 1;
3565
3565
  rules: {
3566
- action: "sample" | "demote" | "drop";
3566
+ id: string;
3567
3567
  project_id: string;
3568
+ action: "sample" | "demote" | "drop";
3568
3569
  expires_at: string | null;
3569
3570
  created_at: string;
3570
3571
  name: string;
@@ -3624,7 +3625,6 @@ export declare const CaptureRulesFileSchema: z.ZodObject<{
3624
3625
  created_by_user_id: string | null;
3625
3626
  created_from_incident_id: string | null;
3626
3627
  created_from_event_id: string | null;
3627
- id: string;
3628
3628
  hit_count: number;
3629
3629
  last_matched_at: string | null;
3630
3630
  }[];