@snapfail/protocol 0.0.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.
@@ -0,0 +1,311 @@
1
+ import { z } from "zod";
2
+ export declare const CollectPayloadSchema: z.ZodObject<{
3
+ projectKey: z.ZodString;
4
+ error: z.ZodObject<{
5
+ type: z.ZodString;
6
+ message: z.ZodString;
7
+ stack: z.ZodArray<z.ZodObject<{
8
+ file: z.ZodString;
9
+ line: z.ZodOptional<z.ZodNumber>;
10
+ fn: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ file: string;
13
+ line?: number | undefined;
14
+ fn?: string | undefined;
15
+ }, {
16
+ file: string;
17
+ line?: number | undefined;
18
+ fn?: string | undefined;
19
+ }>, "many">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ message: string;
22
+ type: string;
23
+ stack: {
24
+ file: string;
25
+ line?: number | undefined;
26
+ fn?: string | undefined;
27
+ }[];
28
+ }, {
29
+ message: string;
30
+ type: string;
31
+ stack: {
32
+ file: string;
33
+ line?: number | undefined;
34
+ fn?: string | undefined;
35
+ }[];
36
+ }>;
37
+ environment: z.ZodObject<{
38
+ mode: z.ZodEnum<["dev", "prod"]>;
39
+ url: z.ZodString;
40
+ route: z.ZodOptional<z.ZodString>;
41
+ buildId: z.ZodOptional<z.ZodString>;
42
+ releaseHash: z.ZodOptional<z.ZodString>;
43
+ framework: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ mode: "dev" | "prod";
46
+ url: string;
47
+ route?: string | undefined;
48
+ buildId?: string | undefined;
49
+ releaseHash?: string | undefined;
50
+ framework?: string | undefined;
51
+ }, {
52
+ mode: "dev" | "prod";
53
+ url: string;
54
+ route?: string | undefined;
55
+ buildId?: string | undefined;
56
+ releaseHash?: string | undefined;
57
+ framework?: string | undefined;
58
+ }>;
59
+ device: z.ZodObject<{
60
+ userAgent: z.ZodString;
61
+ viewport: z.ZodOptional<z.ZodObject<{
62
+ width: z.ZodNumber;
63
+ height: z.ZodNumber;
64
+ }, "strip", z.ZodTypeAny, {
65
+ width: number;
66
+ height: number;
67
+ }, {
68
+ width: number;
69
+ height: number;
70
+ }>>;
71
+ language: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ userAgent: string;
74
+ viewport?: {
75
+ width: number;
76
+ height: number;
77
+ } | undefined;
78
+ language?: string | undefined;
79
+ }, {
80
+ userAgent: string;
81
+ viewport?: {
82
+ width: number;
83
+ height: number;
84
+ } | undefined;
85
+ language?: string | undefined;
86
+ }>;
87
+ consoleEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
88
+ level: z.ZodEnum<["log", "warn", "error"]>;
89
+ args: z.ZodArray<z.ZodUnknown, "many">;
90
+ timestamp: z.ZodNumber;
91
+ }, "strip", z.ZodTypeAny, {
92
+ level: "error" | "log" | "warn";
93
+ args: unknown[];
94
+ timestamp: number;
95
+ }, {
96
+ level: "error" | "log" | "warn";
97
+ args: unknown[];
98
+ timestamp: number;
99
+ }>, "many">>;
100
+ networkEntries: z.ZodDefault<z.ZodArray<z.ZodObject<{
101
+ method: z.ZodString;
102
+ url: z.ZodString;
103
+ status: z.ZodOptional<z.ZodNumber>;
104
+ durationMs: z.ZodOptional<z.ZodNumber>;
105
+ requestBodySize: z.ZodOptional<z.ZodNumber>;
106
+ responseBodySize: z.ZodOptional<z.ZodNumber>;
107
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
108
+ responseHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ error: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ url: string;
112
+ method: string;
113
+ status?: number | undefined;
114
+ durationMs?: number | undefined;
115
+ requestBodySize?: number | undefined;
116
+ responseBodySize?: number | undefined;
117
+ requestHeaders?: Record<string, string> | undefined;
118
+ responseHeaders?: Record<string, string> | undefined;
119
+ error?: string | undefined;
120
+ }, {
121
+ url: string;
122
+ method: string;
123
+ status?: number | undefined;
124
+ durationMs?: number | undefined;
125
+ requestBodySize?: number | undefined;
126
+ responseBodySize?: number | undefined;
127
+ requestHeaders?: Record<string, string> | undefined;
128
+ responseHeaders?: Record<string, string> | undefined;
129
+ error?: string | undefined;
130
+ }>, "many">>;
131
+ storageSnapshot: z.ZodOptional<z.ZodObject<{
132
+ localStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ key: z.ZodString;
134
+ type: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: string;
137
+ key: string;
138
+ }, {
139
+ type: string;
140
+ key: string;
141
+ }>, "many">>;
142
+ sessionStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
+ key: z.ZodString;
144
+ type: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type: string;
147
+ key: string;
148
+ }, {
149
+ type: string;
150
+ key: string;
151
+ }>, "many">>;
152
+ cookies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ localStorage?: {
155
+ type: string;
156
+ key: string;
157
+ }[] | undefined;
158
+ sessionStorage?: {
159
+ type: string;
160
+ key: string;
161
+ }[] | undefined;
162
+ cookies?: string[] | undefined;
163
+ }, {
164
+ localStorage?: {
165
+ type: string;
166
+ key: string;
167
+ }[] | undefined;
168
+ sessionStorage?: {
169
+ type: string;
170
+ key: string;
171
+ }[] | undefined;
172
+ cookies?: string[] | undefined;
173
+ }>>;
174
+ timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
175
+ t: z.ZodNumber;
176
+ kind: z.ZodEnum<["click", "input", "scroll", "nav", "mutation", "error"]>;
177
+ target: z.ZodOptional<z.ZodString>;
178
+ summary: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ t: number;
181
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
182
+ summary: string;
183
+ target?: string | undefined;
184
+ }, {
185
+ t: number;
186
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
187
+ summary: string;
188
+ target?: string | undefined;
189
+ }>, "many">>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ error: {
192
+ message: string;
193
+ type: string;
194
+ stack: {
195
+ file: string;
196
+ line?: number | undefined;
197
+ fn?: string | undefined;
198
+ }[];
199
+ };
200
+ projectKey: string;
201
+ consoleEntries: {
202
+ level: "error" | "log" | "warn";
203
+ args: unknown[];
204
+ timestamp: number;
205
+ }[];
206
+ networkEntries: {
207
+ url: string;
208
+ method: string;
209
+ status?: number | undefined;
210
+ durationMs?: number | undefined;
211
+ requestBodySize?: number | undefined;
212
+ responseBodySize?: number | undefined;
213
+ requestHeaders?: Record<string, string> | undefined;
214
+ responseHeaders?: Record<string, string> | undefined;
215
+ error?: string | undefined;
216
+ }[];
217
+ timeline: {
218
+ t: number;
219
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
220
+ summary: string;
221
+ target?: string | undefined;
222
+ }[];
223
+ device: {
224
+ userAgent: string;
225
+ viewport?: {
226
+ width: number;
227
+ height: number;
228
+ } | undefined;
229
+ language?: string | undefined;
230
+ };
231
+ environment: {
232
+ mode: "dev" | "prod";
233
+ url: string;
234
+ route?: string | undefined;
235
+ buildId?: string | undefined;
236
+ releaseHash?: string | undefined;
237
+ framework?: string | undefined;
238
+ };
239
+ storageSnapshot?: {
240
+ localStorage?: {
241
+ type: string;
242
+ key: string;
243
+ }[] | undefined;
244
+ sessionStorage?: {
245
+ type: string;
246
+ key: string;
247
+ }[] | undefined;
248
+ cookies?: string[] | undefined;
249
+ } | undefined;
250
+ }, {
251
+ error: {
252
+ message: string;
253
+ type: string;
254
+ stack: {
255
+ file: string;
256
+ line?: number | undefined;
257
+ fn?: string | undefined;
258
+ }[];
259
+ };
260
+ projectKey: string;
261
+ device: {
262
+ userAgent: string;
263
+ viewport?: {
264
+ width: number;
265
+ height: number;
266
+ } | undefined;
267
+ language?: string | undefined;
268
+ };
269
+ environment: {
270
+ mode: "dev" | "prod";
271
+ url: string;
272
+ route?: string | undefined;
273
+ buildId?: string | undefined;
274
+ releaseHash?: string | undefined;
275
+ framework?: string | undefined;
276
+ };
277
+ consoleEntries?: {
278
+ level: "error" | "log" | "warn";
279
+ args: unknown[];
280
+ timestamp: number;
281
+ }[] | undefined;
282
+ networkEntries?: {
283
+ url: string;
284
+ method: string;
285
+ status?: number | undefined;
286
+ durationMs?: number | undefined;
287
+ requestBodySize?: number | undefined;
288
+ responseBodySize?: number | undefined;
289
+ requestHeaders?: Record<string, string> | undefined;
290
+ responseHeaders?: Record<string, string> | undefined;
291
+ error?: string | undefined;
292
+ }[] | undefined;
293
+ storageSnapshot?: {
294
+ localStorage?: {
295
+ type: string;
296
+ key: string;
297
+ }[] | undefined;
298
+ sessionStorage?: {
299
+ type: string;
300
+ key: string;
301
+ }[] | undefined;
302
+ cookies?: string[] | undefined;
303
+ } | undefined;
304
+ timeline?: {
305
+ t: number;
306
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
307
+ summary: string;
308
+ target?: string | undefined;
309
+ }[] | undefined;
310
+ }>;
311
+ export type CollectPayload = z.infer<typeof CollectPayloadSchema>;
@@ -0,0 +1,357 @@
1
+ import { z } from "zod";
2
+ export declare const SeveritySchema: z.ZodEnum<["critical", "error", "warning"]>;
3
+ export declare const StatusSchema: z.ZodEnum<["unresolved", "resolved", "ignored"]>;
4
+ export declare const ConfidenceSchema: z.ZodEnum<["high", "medium", "low"]>;
5
+ export declare const IncidentGroupSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ fingerprint: z.ZodString;
8
+ title: z.ZodString;
9
+ errorType: z.ZodString;
10
+ severity: z.ZodEnum<["critical", "error", "warning"]>;
11
+ status: z.ZodEnum<["unresolved", "resolved", "ignored"]>;
12
+ count: z.ZodNumber;
13
+ firstSeen: z.ZodNumber;
14
+ lastSeen: z.ZodNumber;
15
+ environments: z.ZodArray<z.ZodEnum<["dev", "prod"]>, "many">;
16
+ sampleIds: z.ZodArray<z.ZodString, "many">;
17
+ diagnosisId: z.ZodOptional<z.ZodString>;
18
+ projectKey: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: "unresolved" | "resolved" | "ignored";
21
+ id: string;
22
+ fingerprint: string;
23
+ title: string;
24
+ errorType: string;
25
+ severity: "error" | "critical" | "warning";
26
+ count: number;
27
+ firstSeen: number;
28
+ lastSeen: number;
29
+ environments: ("dev" | "prod")[];
30
+ sampleIds: string[];
31
+ projectKey: string;
32
+ diagnosisId?: string | undefined;
33
+ }, {
34
+ status: "unresolved" | "resolved" | "ignored";
35
+ id: string;
36
+ fingerprint: string;
37
+ title: string;
38
+ errorType: string;
39
+ severity: "error" | "critical" | "warning";
40
+ count: number;
41
+ firstSeen: number;
42
+ lastSeen: number;
43
+ environments: ("dev" | "prod")[];
44
+ sampleIds: string[];
45
+ projectKey: string;
46
+ diagnosisId?: string | undefined;
47
+ }>;
48
+ export declare const IncidentSampleSchema: z.ZodObject<{
49
+ id: z.ZodString;
50
+ groupId: z.ZodString;
51
+ projectKey: z.ZodString;
52
+ environmentMode: z.ZodEnum<["dev", "prod"]>;
53
+ createdAt: z.ZodNumber;
54
+ errorType: z.ZodString;
55
+ errorMessage: z.ZodString;
56
+ normalizedMessage: z.ZodString;
57
+ stackFrames: z.ZodArray<z.ZodObject<{
58
+ file: z.ZodString;
59
+ line: z.ZodOptional<z.ZodNumber>;
60
+ fn: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ file: string;
63
+ line?: number | undefined;
64
+ fn?: string | undefined;
65
+ }, {
66
+ file: string;
67
+ line?: number | undefined;
68
+ fn?: string | undefined;
69
+ }>, "many">;
70
+ consoleEntries: z.ZodArray<z.ZodObject<{
71
+ level: z.ZodEnum<["log", "warn", "error"]>;
72
+ args: z.ZodArray<z.ZodUnknown, "many">;
73
+ timestamp: z.ZodNumber;
74
+ }, "strip", z.ZodTypeAny, {
75
+ level: "error" | "log" | "warn";
76
+ args: unknown[];
77
+ timestamp: number;
78
+ }, {
79
+ level: "error" | "log" | "warn";
80
+ args: unknown[];
81
+ timestamp: number;
82
+ }>, "many">;
83
+ networkEntries: z.ZodArray<z.ZodObject<{
84
+ method: z.ZodString;
85
+ url: z.ZodString;
86
+ status: z.ZodOptional<z.ZodNumber>;
87
+ durationMs: z.ZodOptional<z.ZodNumber>;
88
+ requestBodySize: z.ZodOptional<z.ZodNumber>;
89
+ responseBodySize: z.ZodOptional<z.ZodNumber>;
90
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
91
+ responseHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
+ error: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ url: string;
95
+ method: string;
96
+ status?: number | undefined;
97
+ durationMs?: number | undefined;
98
+ requestBodySize?: number | undefined;
99
+ responseBodySize?: number | undefined;
100
+ requestHeaders?: Record<string, string> | undefined;
101
+ responseHeaders?: Record<string, string> | undefined;
102
+ error?: string | undefined;
103
+ }, {
104
+ url: string;
105
+ method: string;
106
+ status?: number | undefined;
107
+ durationMs?: number | undefined;
108
+ requestBodySize?: number | undefined;
109
+ responseBodySize?: number | undefined;
110
+ requestHeaders?: Record<string, string> | undefined;
111
+ responseHeaders?: Record<string, string> | undefined;
112
+ error?: string | undefined;
113
+ }>, "many">;
114
+ storageSnapshot: z.ZodOptional<z.ZodObject<{
115
+ localStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
116
+ key: z.ZodString;
117
+ type: z.ZodString;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: string;
120
+ key: string;
121
+ }, {
122
+ type: string;
123
+ key: string;
124
+ }>, "many">>;
125
+ sessionStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ key: z.ZodString;
127
+ type: z.ZodString;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: string;
130
+ key: string;
131
+ }, {
132
+ type: string;
133
+ key: string;
134
+ }>, "many">>;
135
+ cookies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ localStorage?: {
138
+ type: string;
139
+ key: string;
140
+ }[] | undefined;
141
+ sessionStorage?: {
142
+ type: string;
143
+ key: string;
144
+ }[] | undefined;
145
+ cookies?: string[] | undefined;
146
+ }, {
147
+ localStorage?: {
148
+ type: string;
149
+ key: string;
150
+ }[] | undefined;
151
+ sessionStorage?: {
152
+ type: string;
153
+ key: string;
154
+ }[] | undefined;
155
+ cookies?: string[] | undefined;
156
+ }>>;
157
+ timeline: z.ZodArray<z.ZodObject<{
158
+ t: z.ZodNumber;
159
+ kind: z.ZodEnum<["click", "input", "scroll", "nav", "mutation", "error"]>;
160
+ target: z.ZodOptional<z.ZodString>;
161
+ summary: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ t: number;
164
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
165
+ summary: string;
166
+ target?: string | undefined;
167
+ }, {
168
+ t: number;
169
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
170
+ summary: string;
171
+ target?: string | undefined;
172
+ }>, "many">;
173
+ replayRef: z.ZodOptional<z.ZodString>;
174
+ device: z.ZodObject<{
175
+ userAgent: z.ZodString;
176
+ viewport: z.ZodOptional<z.ZodObject<{
177
+ width: z.ZodNumber;
178
+ height: z.ZodNumber;
179
+ }, "strip", z.ZodTypeAny, {
180
+ width: number;
181
+ height: number;
182
+ }, {
183
+ width: number;
184
+ height: number;
185
+ }>>;
186
+ language: z.ZodOptional<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ userAgent: string;
189
+ viewport?: {
190
+ width: number;
191
+ height: number;
192
+ } | undefined;
193
+ language?: string | undefined;
194
+ }, {
195
+ userAgent: string;
196
+ viewport?: {
197
+ width: number;
198
+ height: number;
199
+ } | undefined;
200
+ language?: string | undefined;
201
+ }>;
202
+ url: z.ZodString;
203
+ route: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ url: string;
206
+ id: string;
207
+ errorType: string;
208
+ projectKey: string;
209
+ groupId: string;
210
+ environmentMode: "dev" | "prod";
211
+ createdAt: number;
212
+ errorMessage: string;
213
+ normalizedMessage: string;
214
+ stackFrames: {
215
+ file: string;
216
+ line?: number | undefined;
217
+ fn?: string | undefined;
218
+ }[];
219
+ consoleEntries: {
220
+ level: "error" | "log" | "warn";
221
+ args: unknown[];
222
+ timestamp: number;
223
+ }[];
224
+ networkEntries: {
225
+ url: string;
226
+ method: string;
227
+ status?: number | undefined;
228
+ durationMs?: number | undefined;
229
+ requestBodySize?: number | undefined;
230
+ responseBodySize?: number | undefined;
231
+ requestHeaders?: Record<string, string> | undefined;
232
+ responseHeaders?: Record<string, string> | undefined;
233
+ error?: string | undefined;
234
+ }[];
235
+ timeline: {
236
+ t: number;
237
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
238
+ summary: string;
239
+ target?: string | undefined;
240
+ }[];
241
+ device: {
242
+ userAgent: string;
243
+ viewport?: {
244
+ width: number;
245
+ height: number;
246
+ } | undefined;
247
+ language?: string | undefined;
248
+ };
249
+ route?: string | undefined;
250
+ storageSnapshot?: {
251
+ localStorage?: {
252
+ type: string;
253
+ key: string;
254
+ }[] | undefined;
255
+ sessionStorage?: {
256
+ type: string;
257
+ key: string;
258
+ }[] | undefined;
259
+ cookies?: string[] | undefined;
260
+ } | undefined;
261
+ replayRef?: string | undefined;
262
+ }, {
263
+ url: string;
264
+ id: string;
265
+ errorType: string;
266
+ projectKey: string;
267
+ groupId: string;
268
+ environmentMode: "dev" | "prod";
269
+ createdAt: number;
270
+ errorMessage: string;
271
+ normalizedMessage: string;
272
+ stackFrames: {
273
+ file: string;
274
+ line?: number | undefined;
275
+ fn?: string | undefined;
276
+ }[];
277
+ consoleEntries: {
278
+ level: "error" | "log" | "warn";
279
+ args: unknown[];
280
+ timestamp: number;
281
+ }[];
282
+ networkEntries: {
283
+ url: string;
284
+ method: string;
285
+ status?: number | undefined;
286
+ durationMs?: number | undefined;
287
+ requestBodySize?: number | undefined;
288
+ responseBodySize?: number | undefined;
289
+ requestHeaders?: Record<string, string> | undefined;
290
+ responseHeaders?: Record<string, string> | undefined;
291
+ error?: string | undefined;
292
+ }[];
293
+ timeline: {
294
+ t: number;
295
+ kind: "error" | "click" | "input" | "scroll" | "nav" | "mutation";
296
+ summary: string;
297
+ target?: string | undefined;
298
+ }[];
299
+ device: {
300
+ userAgent: string;
301
+ viewport?: {
302
+ width: number;
303
+ height: number;
304
+ } | undefined;
305
+ language?: string | undefined;
306
+ };
307
+ route?: string | undefined;
308
+ storageSnapshot?: {
309
+ localStorage?: {
310
+ type: string;
311
+ key: string;
312
+ }[] | undefined;
313
+ sessionStorage?: {
314
+ type: string;
315
+ key: string;
316
+ }[] | undefined;
317
+ cookies?: string[] | undefined;
318
+ } | undefined;
319
+ replayRef?: string | undefined;
320
+ }>;
321
+ export declare const DiagnosisSchema: z.ZodObject<{
322
+ id: z.ZodString;
323
+ groupId: z.ZodString;
324
+ createdAt: z.ZodNumber;
325
+ model: z.ZodString;
326
+ rootCause: z.ZodString;
327
+ plainSummary: z.ZodString;
328
+ fixPrompt: z.ZodString;
329
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
330
+ analyzedSampleIds: z.ZodArray<z.ZodString, "many">;
331
+ }, "strip", z.ZodTypeAny, {
332
+ id: string;
333
+ groupId: string;
334
+ createdAt: number;
335
+ model: string;
336
+ rootCause: string;
337
+ plainSummary: string;
338
+ fixPrompt: string;
339
+ confidence: "high" | "medium" | "low";
340
+ analyzedSampleIds: string[];
341
+ }, {
342
+ id: string;
343
+ groupId: string;
344
+ createdAt: number;
345
+ model: string;
346
+ rootCause: string;
347
+ plainSummary: string;
348
+ fixPrompt: string;
349
+ confidence: "high" | "medium" | "low";
350
+ analyzedSampleIds: string[];
351
+ }>;
352
+ export type Severity = z.infer<typeof SeveritySchema>;
353
+ export type Status = z.infer<typeof StatusSchema>;
354
+ export type Confidence = z.infer<typeof ConfidenceSchema>;
355
+ export type IncidentGroup = z.infer<typeof IncidentGroupSchema>;
356
+ export type IncidentSample = z.infer<typeof IncidentSampleSchema>;
357
+ export type Diagnosis = z.infer<typeof DiagnosisSchema>;