@scoutflo/alert-correlation 0.4.13 → 0.4.15

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 (109) hide show
  1. package/package.json +2 -2
  2. package/dist/src/contracts/alertEvidence.d.ts +0 -161
  3. package/dist/src/contracts/alertEvidence.js +0 -44
  4. package/dist/src/contracts/alertEvidence.js.map +0 -1
  5. package/dist/src/contracts/alertRef.d.ts +0 -15
  6. package/dist/src/contracts/alertRef.js +0 -10
  7. package/dist/src/contracts/alertRef.js.map +0 -1
  8. package/dist/src/contracts/context.d.ts +0 -1545
  9. package/dist/src/contracts/context.js +0 -99
  10. package/dist/src/contracts/context.js.map +0 -1
  11. package/dist/src/contracts/decision.d.ts +0 -250
  12. package/dist/src/contracts/decision.js +0 -36
  13. package/dist/src/contracts/decision.js.map +0 -1
  14. package/dist/src/contracts/facts.d.ts +0 -531
  15. package/dist/src/contracts/facts.js +0 -45
  16. package/dist/src/contracts/facts.js.map +0 -1
  17. package/dist/src/contracts/index.d.ts +0 -6
  18. package/dist/src/contracts/index.js +0 -23
  19. package/dist/src/contracts/index.js.map +0 -1
  20. package/dist/src/contracts/topology.d.ts +0 -44
  21. package/dist/src/contracts/topology.js +0 -3
  22. package/dist/src/contracts/topology.js.map +0 -1
  23. package/dist/src/decision/coreCompatibility.d.ts +0 -5
  24. package/dist/src/decision/coreCompatibility.js +0 -54
  25. package/dist/src/decision/coreCompatibility.js.map +0 -1
  26. package/dist/src/decision/decideTarget.d.ts +0 -3
  27. package/dist/src/decision/decideTarget.js +0 -55
  28. package/dist/src/decision/decideTarget.js.map +0 -1
  29. package/dist/src/decision/reasonCodes.d.ts +0 -16
  30. package/dist/src/decision/reasonCodes.js +0 -19
  31. package/dist/src/decision/reasonCodes.js.map +0 -1
  32. package/dist/src/extractors/genericExtractor.d.ts +0 -23
  33. package/dist/src/extractors/genericExtractor.js +0 -180
  34. package/dist/src/extractors/genericExtractor.js.map +0 -1
  35. package/dist/src/extractors/mimirExtractor.d.ts +0 -2
  36. package/dist/src/extractors/mimirExtractor.js +0 -12
  37. package/dist/src/extractors/mimirExtractor.js.map +0 -1
  38. package/dist/src/extractors/prometheusExtractor.d.ts +0 -4
  39. package/dist/src/extractors/prometheusExtractor.js +0 -196
  40. package/dist/src/extractors/prometheusExtractor.js.map +0 -1
  41. package/dist/src/extractors/registry.d.ts +0 -101
  42. package/dist/src/extractors/registry.js +0 -25
  43. package/dist/src/extractors/registry.js.map +0 -1
  44. package/dist/src/extractors/sentryExtractor.d.ts +0 -2
  45. package/dist/src/extractors/sentryExtractor.js +0 -254
  46. package/dist/src/extractors/sentryExtractor.js.map +0 -1
  47. package/dist/src/extractors/types.d.ts +0 -11
  48. package/dist/src/extractors/types.js +0 -3
  49. package/dist/src/extractors/types.js.map +0 -1
  50. package/dist/src/extractors/victoriaMetricsExtractor.d.ts +0 -2
  51. package/dist/src/extractors/victoriaMetricsExtractor.js +0 -12
  52. package/dist/src/extractors/victoriaMetricsExtractor.js.map +0 -1
  53. package/dist/src/index.d.ts +0 -26
  54. package/dist/src/index.js +0 -74
  55. package/dist/src/index.js.map +0 -1
  56. package/dist/src/matchers/providerRelationshipMatcher.d.ts +0 -4
  57. package/dist/src/matchers/providerRelationshipMatcher.js +0 -278
  58. package/dist/src/matchers/providerRelationshipMatcher.js.map +0 -1
  59. package/dist/src/matchers/types.d.ts +0 -10
  60. package/dist/src/matchers/types.js +0 -3
  61. package/dist/src/matchers/types.js.map +0 -1
  62. package/dist/src/resolveAlertCorrelation.d.ts +0 -12
  63. package/dist/src/resolveAlertCorrelation.js +0 -16
  64. package/dist/src/resolveAlertCorrelation.js.map +0 -1
  65. package/dist/src/time/normalizeAlertTime.d.ts +0 -9
  66. package/dist/src/time/normalizeAlertTime.js +0 -26
  67. package/dist/src/time/normalizeAlertTime.js.map +0 -1
  68. package/dist/test/contract-aware-matcher.test.d.ts +0 -1
  69. package/dist/test/contract-aware-matcher.test.js +0 -401
  70. package/dist/test/contract-aware-matcher.test.js.map +0 -1
  71. package/dist/test/contracts.test.d.ts +0 -1
  72. package/dist/test/contracts.test.js +0 -213
  73. package/dist/test/contracts.test.js.map +0 -1
  74. package/dist/test/core-compatibility.test.d.ts +0 -1
  75. package/dist/test/core-compatibility.test.js +0 -146
  76. package/dist/test/core-compatibility.test.js.map +0 -1
  77. package/dist/test/decision.test.d.ts +0 -1
  78. package/dist/test/decision.test.js +0 -50
  79. package/dist/test/decision.test.js.map +0 -1
  80. package/dist/test/fixtures.d.ts +0 -48
  81. package/dist/test/fixtures.js +0 -51
  82. package/dist/test/fixtures.js.map +0 -1
  83. package/dist/test/generic-extractor.test.d.ts +0 -1
  84. package/dist/test/generic-extractor.test.js +0 -48
  85. package/dist/test/generic-extractor.test.js.map +0 -1
  86. package/dist/test/mimir-extractor.test.d.ts +0 -1
  87. package/dist/test/mimir-extractor.test.js +0 -28
  88. package/dist/test/mimir-extractor.test.js.map +0 -1
  89. package/dist/test/prometheus-extractor.test.d.ts +0 -1
  90. package/dist/test/prometheus-extractor.test.js +0 -55
  91. package/dist/test/prometheus-extractor.test.js.map +0 -1
  92. package/dist/test/provider-hardening.test.d.ts +0 -1
  93. package/dist/test/provider-hardening.test.js +0 -279
  94. package/dist/test/provider-hardening.test.js.map +0 -1
  95. package/dist/test/resolve-alert-correlation.test.d.ts +0 -1
  96. package/dist/test/resolve-alert-correlation.test.js +0 -43
  97. package/dist/test/resolve-alert-correlation.test.js.map +0 -1
  98. package/dist/test/sentry-extractor.test.d.ts +0 -1
  99. package/dist/test/sentry-extractor.test.js +0 -30
  100. package/dist/test/sentry-extractor.test.js.map +0 -1
  101. package/dist/test/smoke.test.d.ts +0 -1
  102. package/dist/test/smoke.test.js +0 -12
  103. package/dist/test/smoke.test.js.map +0 -1
  104. package/dist/test/time.test.d.ts +0 -1
  105. package/dist/test/time.test.js +0 -36
  106. package/dist/test/time.test.js.map +0 -1
  107. package/dist/test/victoriametrics-extractor.test.d.ts +0 -1
  108. package/dist/test/victoriametrics-extractor.test.js +0 -27
  109. package/dist/test/victoriametrics-extractor.test.js.map +0 -1
@@ -1,1545 +0,0 @@
1
- import { z } from 'zod';
2
- import { type GatewayTopologyContext, type TopologyBindingHints } from '@scoutflo/topology-contracts';
3
- import type { AlertEvidencePresentation, AlertEvidenceSnapshot, AlertOccurrenceRef } from './alertEvidence';
4
- import type { AlertRef } from './alertRef';
5
- import type { AlertCorrelationDecision } from './decision';
6
- import type { AlertCorrelationFacts, AlertTimeWindow } from './facts';
7
- export declare const alertCorrelationDiagnosticsSchema: z.ZodObject<{
8
- providerDetailFetched: z.ZodBoolean;
9
- evidenceSource: z.ZodString;
10
- evidenceRef: z.ZodString;
11
- occurrenceId: z.ZodString;
12
- rawTruncated: z.ZodBoolean;
13
- extractorName: z.ZodString;
14
- extractorVersion: z.ZodString;
15
- matcherName: z.ZodOptional<z.ZodString>;
16
- matcherVersion: z.ZodOptional<z.ZodString>;
17
- sourceResourceFound: z.ZodBoolean;
18
- relationshipCount: z.ZodNumber;
19
- candidateCount: z.ZodNumber;
20
- selectedTarget: z.ZodOptional<z.ZodObject<{
21
- type: z.ZodEnum<["service", "resource"]>;
22
- id: z.ZodString;
23
- }, "strict", z.ZodTypeAny, {
24
- type: "service" | "resource";
25
- id: string;
26
- }, {
27
- type: "service" | "resource";
28
- id: string;
29
- }>>;
30
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
31
- providerDetailFetched: z.ZodBoolean;
32
- evidenceSource: z.ZodString;
33
- evidenceRef: z.ZodString;
34
- occurrenceId: z.ZodString;
35
- rawTruncated: z.ZodBoolean;
36
- extractorName: z.ZodString;
37
- extractorVersion: z.ZodString;
38
- matcherName: z.ZodOptional<z.ZodString>;
39
- matcherVersion: z.ZodOptional<z.ZodString>;
40
- sourceResourceFound: z.ZodBoolean;
41
- relationshipCount: z.ZodNumber;
42
- candidateCount: z.ZodNumber;
43
- selectedTarget: z.ZodOptional<z.ZodObject<{
44
- type: z.ZodEnum<["service", "resource"]>;
45
- id: z.ZodString;
46
- }, "strict", z.ZodTypeAny, {
47
- type: "service" | "resource";
48
- id: string;
49
- }, {
50
- type: "service" | "resource";
51
- id: string;
52
- }>>;
53
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
54
- providerDetailFetched: z.ZodBoolean;
55
- evidenceSource: z.ZodString;
56
- evidenceRef: z.ZodString;
57
- occurrenceId: z.ZodString;
58
- rawTruncated: z.ZodBoolean;
59
- extractorName: z.ZodString;
60
- extractorVersion: z.ZodString;
61
- matcherName: z.ZodOptional<z.ZodString>;
62
- matcherVersion: z.ZodOptional<z.ZodString>;
63
- sourceResourceFound: z.ZodBoolean;
64
- relationshipCount: z.ZodNumber;
65
- candidateCount: z.ZodNumber;
66
- selectedTarget: z.ZodOptional<z.ZodObject<{
67
- type: z.ZodEnum<["service", "resource"]>;
68
- id: z.ZodString;
69
- }, "strict", z.ZodTypeAny, {
70
- type: "service" | "resource";
71
- id: string;
72
- }, {
73
- type: "service" | "resource";
74
- id: string;
75
- }>>;
76
- }, z.ZodTypeAny, "passthrough">>;
77
- export interface AlertCorrelationDiagnostics {
78
- providerDetailFetched: boolean;
79
- evidenceSource: AlertEvidenceSnapshot['evidenceSource'];
80
- evidenceRef: string;
81
- occurrenceId: string;
82
- rawTruncated: boolean;
83
- extractorName: string;
84
- extractorVersion: string;
85
- matcherName?: string;
86
- matcherVersion?: string;
87
- sourceResourceFound: boolean;
88
- relationshipCount: number;
89
- candidateCount: number;
90
- selectedTarget?: {
91
- type: 'service' | 'resource';
92
- id: string;
93
- };
94
- }
95
- export declare const alertInvestigationContextSchema: z.ZodObject<{
96
- request: z.ZodObject<{
97
- occurrenceId: z.ZodString;
98
- alertRef: z.ZodObject<{
99
- integrationId: z.ZodString;
100
- provider: z.ZodString;
101
- alertKey: z.ZodString;
102
- }, "strict", z.ZodTypeAny, {
103
- integrationId: string;
104
- provider: string;
105
- alertKey: string;
106
- }, {
107
- integrationId: string;
108
- provider: string;
109
- alertKey: string;
110
- }>;
111
- evidenceRef: z.ZodString;
112
- }, "strict", z.ZodTypeAny, {
113
- occurrenceId: string;
114
- alertRef: {
115
- integrationId: string;
116
- provider: string;
117
- alertKey: string;
118
- };
119
- evidenceRef: string;
120
- }, {
121
- occurrenceId: string;
122
- alertRef: {
123
- integrationId: string;
124
- provider: string;
125
- alertKey: string;
126
- };
127
- evidenceRef: string;
128
- }>;
129
- evidence: z.ZodObject<{
130
- evidenceRef: z.ZodString;
131
- occurrenceId: z.ZodString;
132
- alertRef: z.ZodObject<{
133
- integrationId: z.ZodString;
134
- provider: z.ZodString;
135
- alertKey: z.ZodString;
136
- }, "strict", z.ZodTypeAny, {
137
- integrationId: string;
138
- provider: string;
139
- alertKey: string;
140
- }, {
141
- integrationId: string;
142
- provider: string;
143
- alertKey: string;
144
- }>;
145
- evidenceSource: z.ZodEnum<["provider_list", "provider_detail", "provider_webhook", "slack_notification"]>;
146
- capturedAt: z.ZodString;
147
- observedAt: z.ZodOptional<z.ZodString>;
148
- startsAt: z.ZodOptional<z.ZodString>;
149
- endsAt: z.ZodOptional<z.ZodString>;
150
- state: z.ZodOptional<z.ZodString>;
151
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
152
- annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
153
- tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
154
- providerIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
155
- sourceUrls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
156
- presentation: z.ZodObject<{
157
- title: z.ZodOptional<z.ZodString>;
158
- severity: z.ZodOptional<z.ZodString>;
159
- status: z.ZodOptional<z.ZodString>;
160
- description: z.ZodOptional<z.ZodString>;
161
- }, "strict", z.ZodTypeAny, {
162
- status?: string | undefined;
163
- title?: string | undefined;
164
- severity?: string | undefined;
165
- description?: string | undefined;
166
- }, {
167
- status?: string | undefined;
168
- title?: string | undefined;
169
- severity?: string | undefined;
170
- description?: string | undefined;
171
- }>;
172
- rawPreview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
173
- rawHash: z.ZodOptional<z.ZodString>;
174
- schemaVersion: z.ZodString;
175
- redactionVersion: z.ZodString;
176
- }, "strict", z.ZodTypeAny, {
177
- occurrenceId: string;
178
- alertRef: {
179
- integrationId: string;
180
- provider: string;
181
- alertKey: string;
182
- };
183
- evidenceRef: string;
184
- evidenceSource: "provider_list" | "provider_detail" | "provider_webhook" | "slack_notification";
185
- capturedAt: string;
186
- presentation: {
187
- status?: string | undefined;
188
- title?: string | undefined;
189
- severity?: string | undefined;
190
- description?: string | undefined;
191
- };
192
- schemaVersion: string;
193
- redactionVersion: string;
194
- observedAt?: string | undefined;
195
- startsAt?: string | undefined;
196
- endsAt?: string | undefined;
197
- state?: string | undefined;
198
- labels?: Record<string, string> | undefined;
199
- annotations?: Record<string, string> | undefined;
200
- tags?: Record<string, string> | undefined;
201
- providerIds?: Record<string, string> | undefined;
202
- sourceUrls?: Record<string, string> | undefined;
203
- rawPreview?: Record<string, unknown> | undefined;
204
- rawHash?: string | undefined;
205
- }, {
206
- occurrenceId: string;
207
- alertRef: {
208
- integrationId: string;
209
- provider: string;
210
- alertKey: string;
211
- };
212
- evidenceRef: string;
213
- evidenceSource: "provider_list" | "provider_detail" | "provider_webhook" | "slack_notification";
214
- capturedAt: string;
215
- presentation: {
216
- status?: string | undefined;
217
- title?: string | undefined;
218
- severity?: string | undefined;
219
- description?: string | undefined;
220
- };
221
- schemaVersion: string;
222
- redactionVersion: string;
223
- observedAt?: string | undefined;
224
- startsAt?: string | undefined;
225
- endsAt?: string | undefined;
226
- state?: string | undefined;
227
- labels?: Record<string, string> | undefined;
228
- annotations?: Record<string, string> | undefined;
229
- tags?: Record<string, string> | undefined;
230
- providerIds?: Record<string, string> | undefined;
231
- sourceUrls?: Record<string, string> | undefined;
232
- rawPreview?: Record<string, unknown> | undefined;
233
- rawHash?: string | undefined;
234
- }>;
235
- time: z.ZodObject<{
236
- capturedAt: z.ZodString;
237
- observedAt: z.ZodOptional<z.ZodString>;
238
- startsAt: z.ZodString;
239
- endsAt: z.ZodOptional<z.ZodString>;
240
- lastSeen: z.ZodOptional<z.ZodString>;
241
- isOpenEnded: z.ZodBoolean;
242
- }, "strict", z.ZodTypeAny, {
243
- capturedAt: string;
244
- startsAt: string;
245
- isOpenEnded: boolean;
246
- observedAt?: string | undefined;
247
- endsAt?: string | undefined;
248
- lastSeen?: string | undefined;
249
- }, {
250
- capturedAt: string;
251
- startsAt: string;
252
- isOpenEnded: boolean;
253
- observedAt?: string | undefined;
254
- endsAt?: string | undefined;
255
- lastSeen?: string | undefined;
256
- }>;
257
- presentation: z.ZodObject<{
258
- title: z.ZodOptional<z.ZodString>;
259
- severity: z.ZodOptional<z.ZodString>;
260
- status: z.ZodOptional<z.ZodString>;
261
- description: z.ZodOptional<z.ZodString>;
262
- }, "strict", z.ZodTypeAny, {
263
- status?: string | undefined;
264
- title?: string | undefined;
265
- severity?: string | undefined;
266
- description?: string | undefined;
267
- }, {
268
- status?: string | undefined;
269
- title?: string | undefined;
270
- severity?: string | undefined;
271
- description?: string | undefined;
272
- }>;
273
- facts: z.ZodObject<{
274
- provider: z.ZodString;
275
- integrationId: z.ZodString;
276
- alertKey: z.ZodString;
277
- occurrenceId: z.ZodString;
278
- evidenceRef: z.ZodString;
279
- evidenceSource: z.ZodString;
280
- extractor: z.ZodObject<{
281
- name: z.ZodString;
282
- version: z.ZodString;
283
- }, "strict", z.ZodTypeAny, {
284
- name: string;
285
- version: string;
286
- }, {
287
- name: string;
288
- version: string;
289
- }>;
290
- time: z.ZodObject<{
291
- capturedAt: z.ZodString;
292
- observedAt: z.ZodOptional<z.ZodString>;
293
- startsAt: z.ZodString;
294
- endsAt: z.ZodOptional<z.ZodString>;
295
- lastSeen: z.ZodOptional<z.ZodString>;
296
- isOpenEnded: z.ZodBoolean;
297
- }, "strict", z.ZodTypeAny, {
298
- capturedAt: string;
299
- startsAt: string;
300
- isOpenEnded: boolean;
301
- observedAt?: string | undefined;
302
- endsAt?: string | undefined;
303
- lastSeen?: string | undefined;
304
- }, {
305
- capturedAt: string;
306
- startsAt: string;
307
- isOpenEnded: boolean;
308
- observedAt?: string | undefined;
309
- endsAt?: string | undefined;
310
- lastSeen?: string | undefined;
311
- }>;
312
- labels: z.ZodArray<z.ZodObject<{
313
- key: z.ZodString;
314
- value: z.ZodString;
315
- sourcePath: z.ZodString;
316
- confidence: z.ZodNumber;
317
- rawValue: z.ZodOptional<z.ZodUnknown>;
318
- normalizedValue: z.ZodOptional<z.ZodString>;
319
- namespace: z.ZodOptional<z.ZodString>;
320
- provider: z.ZodOptional<z.ZodString>;
321
- observedAt: z.ZodOptional<z.ZodString>;
322
- schemaVersion: z.ZodOptional<z.ZodString>;
323
- } & {
324
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
325
- }, "strip", z.ZodTypeAny, {
326
- value: string;
327
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
328
- key: string;
329
- sourcePath: string;
330
- confidence: number;
331
- provider?: string | undefined;
332
- observedAt?: string | undefined;
333
- schemaVersion?: string | undefined;
334
- rawValue?: unknown;
335
- normalizedValue?: string | undefined;
336
- namespace?: string | undefined;
337
- }, {
338
- value: string;
339
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
340
- key: string;
341
- sourcePath: string;
342
- confidence: number;
343
- provider?: string | undefined;
344
- observedAt?: string | undefined;
345
- schemaVersion?: string | undefined;
346
- rawValue?: unknown;
347
- normalizedValue?: string | undefined;
348
- namespace?: string | undefined;
349
- }>, "many">;
350
- identifiers: z.ZodArray<z.ZodObject<{
351
- key: z.ZodString;
352
- value: z.ZodString;
353
- sourcePath: z.ZodString;
354
- confidence: z.ZodNumber;
355
- rawValue: z.ZodOptional<z.ZodUnknown>;
356
- normalizedValue: z.ZodOptional<z.ZodString>;
357
- namespace: z.ZodOptional<z.ZodString>;
358
- provider: z.ZodOptional<z.ZodString>;
359
- observedAt: z.ZodOptional<z.ZodString>;
360
- schemaVersion: z.ZodOptional<z.ZodString>;
361
- } & {
362
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
363
- }, "strip", z.ZodTypeAny, {
364
- value: string;
365
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
366
- key: string;
367
- sourcePath: string;
368
- confidence: number;
369
- provider?: string | undefined;
370
- observedAt?: string | undefined;
371
- schemaVersion?: string | undefined;
372
- rawValue?: unknown;
373
- normalizedValue?: string | undefined;
374
- namespace?: string | undefined;
375
- }, {
376
- value: string;
377
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
378
- key: string;
379
- sourcePath: string;
380
- confidence: number;
381
- provider?: string | undefined;
382
- observedAt?: string | undefined;
383
- schemaVersion?: string | undefined;
384
- rawValue?: unknown;
385
- normalizedValue?: string | undefined;
386
- namespace?: string | undefined;
387
- }>, "many">;
388
- resourceHints: z.ZodArray<z.ZodObject<{
389
- key: z.ZodString;
390
- value: z.ZodString;
391
- sourcePath: z.ZodString;
392
- confidence: z.ZodNumber;
393
- rawValue: z.ZodOptional<z.ZodUnknown>;
394
- normalizedValue: z.ZodOptional<z.ZodString>;
395
- namespace: z.ZodOptional<z.ZodString>;
396
- provider: z.ZodOptional<z.ZodString>;
397
- observedAt: z.ZodOptional<z.ZodString>;
398
- schemaVersion: z.ZodOptional<z.ZodString>;
399
- } & {
400
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
401
- }, "strip", z.ZodTypeAny, {
402
- value: string;
403
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
404
- key: string;
405
- sourcePath: string;
406
- confidence: number;
407
- provider?: string | undefined;
408
- observedAt?: string | undefined;
409
- schemaVersion?: string | undefined;
410
- rawValue?: unknown;
411
- normalizedValue?: string | undefined;
412
- namespace?: string | undefined;
413
- }, {
414
- value: string;
415
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
416
- key: string;
417
- sourcePath: string;
418
- confidence: number;
419
- provider?: string | undefined;
420
- observedAt?: string | undefined;
421
- schemaVersion?: string | undefined;
422
- rawValue?: unknown;
423
- normalizedValue?: string | undefined;
424
- namespace?: string | undefined;
425
- }>, "many">;
426
- textHints: z.ZodArray<z.ZodObject<{
427
- key: z.ZodString;
428
- value: z.ZodString;
429
- sourcePath: z.ZodString;
430
- confidence: z.ZodNumber;
431
- rawValue: z.ZodOptional<z.ZodUnknown>;
432
- normalizedValue: z.ZodOptional<z.ZodString>;
433
- namespace: z.ZodOptional<z.ZodString>;
434
- provider: z.ZodOptional<z.ZodString>;
435
- observedAt: z.ZodOptional<z.ZodString>;
436
- schemaVersion: z.ZodOptional<z.ZodString>;
437
- } & {
438
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
439
- }, "strip", z.ZodTypeAny, {
440
- value: string;
441
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
442
- key: string;
443
- sourcePath: string;
444
- confidence: number;
445
- provider?: string | undefined;
446
- observedAt?: string | undefined;
447
- schemaVersion?: string | undefined;
448
- rawValue?: unknown;
449
- normalizedValue?: string | undefined;
450
- namespace?: string | undefined;
451
- }, {
452
- value: string;
453
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
454
- key: string;
455
- sourcePath: string;
456
- confidence: number;
457
- provider?: string | undefined;
458
- observedAt?: string | undefined;
459
- schemaVersion?: string | undefined;
460
- rawValue?: unknown;
461
- normalizedValue?: string | undefined;
462
- namespace?: string | undefined;
463
- }>, "many">;
464
- severity: z.ZodOptional<z.ZodObject<{
465
- key: z.ZodString;
466
- value: z.ZodString;
467
- sourcePath: z.ZodString;
468
- confidence: z.ZodNumber;
469
- rawValue: z.ZodOptional<z.ZodUnknown>;
470
- normalizedValue: z.ZodOptional<z.ZodString>;
471
- namespace: z.ZodOptional<z.ZodString>;
472
- provider: z.ZodOptional<z.ZodString>;
473
- observedAt: z.ZodOptional<z.ZodString>;
474
- schemaVersion: z.ZodOptional<z.ZodString>;
475
- } & {
476
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
477
- }, "strip", z.ZodTypeAny, {
478
- value: string;
479
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
480
- key: string;
481
- sourcePath: string;
482
- confidence: number;
483
- provider?: string | undefined;
484
- observedAt?: string | undefined;
485
- schemaVersion?: string | undefined;
486
- rawValue?: unknown;
487
- normalizedValue?: string | undefined;
488
- namespace?: string | undefined;
489
- }, {
490
- value: string;
491
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
492
- key: string;
493
- sourcePath: string;
494
- confidence: number;
495
- provider?: string | undefined;
496
- observedAt?: string | undefined;
497
- schemaVersion?: string | undefined;
498
- rawValue?: unknown;
499
- normalizedValue?: string | undefined;
500
- namespace?: string | undefined;
501
- }>>;
502
- title: z.ZodOptional<z.ZodObject<{
503
- key: z.ZodString;
504
- value: z.ZodString;
505
- sourcePath: z.ZodString;
506
- confidence: z.ZodNumber;
507
- rawValue: z.ZodOptional<z.ZodUnknown>;
508
- normalizedValue: z.ZodOptional<z.ZodString>;
509
- namespace: z.ZodOptional<z.ZodString>;
510
- provider: z.ZodOptional<z.ZodString>;
511
- observedAt: z.ZodOptional<z.ZodString>;
512
- schemaVersion: z.ZodOptional<z.ZodString>;
513
- } & {
514
- kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time"]>;
515
- }, "strip", z.ZodTypeAny, {
516
- value: string;
517
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
518
- key: string;
519
- sourcePath: string;
520
- confidence: number;
521
- provider?: string | undefined;
522
- observedAt?: string | undefined;
523
- schemaVersion?: string | undefined;
524
- rawValue?: unknown;
525
- normalizedValue?: string | undefined;
526
- namespace?: string | undefined;
527
- }, {
528
- value: string;
529
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
530
- key: string;
531
- sourcePath: string;
532
- confidence: number;
533
- provider?: string | undefined;
534
- observedAt?: string | undefined;
535
- schemaVersion?: string | undefined;
536
- rawValue?: unknown;
537
- normalizedValue?: string | undefined;
538
- namespace?: string | undefined;
539
- }>>;
540
- }, "strict", z.ZodTypeAny, {
541
- integrationId: string;
542
- provider: string;
543
- alertKey: string;
544
- occurrenceId: string;
545
- evidenceRef: string;
546
- evidenceSource: string;
547
- labels: {
548
- value: string;
549
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
550
- key: string;
551
- sourcePath: string;
552
- confidence: number;
553
- provider?: string | undefined;
554
- observedAt?: string | undefined;
555
- schemaVersion?: string | undefined;
556
- rawValue?: unknown;
557
- normalizedValue?: string | undefined;
558
- namespace?: string | undefined;
559
- }[];
560
- time: {
561
- capturedAt: string;
562
- startsAt: string;
563
- isOpenEnded: boolean;
564
- observedAt?: string | undefined;
565
- endsAt?: string | undefined;
566
- lastSeen?: string | undefined;
567
- };
568
- extractor: {
569
- name: string;
570
- version: string;
571
- };
572
- identifiers: {
573
- value: string;
574
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
575
- key: string;
576
- sourcePath: string;
577
- confidence: number;
578
- provider?: string | undefined;
579
- observedAt?: string | undefined;
580
- schemaVersion?: string | undefined;
581
- rawValue?: unknown;
582
- normalizedValue?: string | undefined;
583
- namespace?: string | undefined;
584
- }[];
585
- resourceHints: {
586
- value: string;
587
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
588
- key: string;
589
- sourcePath: string;
590
- confidence: number;
591
- provider?: string | undefined;
592
- observedAt?: string | undefined;
593
- schemaVersion?: string | undefined;
594
- rawValue?: unknown;
595
- normalizedValue?: string | undefined;
596
- namespace?: string | undefined;
597
- }[];
598
- textHints: {
599
- value: string;
600
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
601
- key: string;
602
- sourcePath: string;
603
- confidence: number;
604
- provider?: string | undefined;
605
- observedAt?: string | undefined;
606
- schemaVersion?: string | undefined;
607
- rawValue?: unknown;
608
- normalizedValue?: string | undefined;
609
- namespace?: string | undefined;
610
- }[];
611
- title?: {
612
- value: string;
613
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
614
- key: string;
615
- sourcePath: string;
616
- confidence: number;
617
- provider?: string | undefined;
618
- observedAt?: string | undefined;
619
- schemaVersion?: string | undefined;
620
- rawValue?: unknown;
621
- normalizedValue?: string | undefined;
622
- namespace?: string | undefined;
623
- } | undefined;
624
- severity?: {
625
- value: string;
626
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
627
- key: string;
628
- sourcePath: string;
629
- confidence: number;
630
- provider?: string | undefined;
631
- observedAt?: string | undefined;
632
- schemaVersion?: string | undefined;
633
- rawValue?: unknown;
634
- normalizedValue?: string | undefined;
635
- namespace?: string | undefined;
636
- } | undefined;
637
- }, {
638
- integrationId: string;
639
- provider: string;
640
- alertKey: string;
641
- occurrenceId: string;
642
- evidenceRef: string;
643
- evidenceSource: string;
644
- labels: {
645
- value: string;
646
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
647
- key: string;
648
- sourcePath: string;
649
- confidence: number;
650
- provider?: string | undefined;
651
- observedAt?: string | undefined;
652
- schemaVersion?: string | undefined;
653
- rawValue?: unknown;
654
- normalizedValue?: string | undefined;
655
- namespace?: string | undefined;
656
- }[];
657
- time: {
658
- capturedAt: string;
659
- startsAt: string;
660
- isOpenEnded: boolean;
661
- observedAt?: string | undefined;
662
- endsAt?: string | undefined;
663
- lastSeen?: string | undefined;
664
- };
665
- extractor: {
666
- name: string;
667
- version: string;
668
- };
669
- identifiers: {
670
- value: string;
671
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
672
- key: string;
673
- sourcePath: string;
674
- confidence: number;
675
- provider?: string | undefined;
676
- observedAt?: string | undefined;
677
- schemaVersion?: string | undefined;
678
- rawValue?: unknown;
679
- normalizedValue?: string | undefined;
680
- namespace?: string | undefined;
681
- }[];
682
- resourceHints: {
683
- value: string;
684
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
685
- key: string;
686
- sourcePath: string;
687
- confidence: number;
688
- provider?: string | undefined;
689
- observedAt?: string | undefined;
690
- schemaVersion?: string | undefined;
691
- rawValue?: unknown;
692
- normalizedValue?: string | undefined;
693
- namespace?: string | undefined;
694
- }[];
695
- textHints: {
696
- value: string;
697
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
698
- key: string;
699
- sourcePath: string;
700
- confidence: number;
701
- provider?: string | undefined;
702
- observedAt?: string | undefined;
703
- schemaVersion?: string | undefined;
704
- rawValue?: unknown;
705
- normalizedValue?: string | undefined;
706
- namespace?: string | undefined;
707
- }[];
708
- title?: {
709
- value: string;
710
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
711
- key: string;
712
- sourcePath: string;
713
- confidence: number;
714
- provider?: string | undefined;
715
- observedAt?: string | undefined;
716
- schemaVersion?: string | undefined;
717
- rawValue?: unknown;
718
- normalizedValue?: string | undefined;
719
- namespace?: string | undefined;
720
- } | undefined;
721
- severity?: {
722
- value: string;
723
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
724
- key: string;
725
- sourcePath: string;
726
- confidence: number;
727
- provider?: string | undefined;
728
- observedAt?: string | undefined;
729
- schemaVersion?: string | undefined;
730
- rawValue?: unknown;
731
- normalizedValue?: string | undefined;
732
- namespace?: string | undefined;
733
- } | undefined;
734
- }>;
735
- resolution: z.ZodObject<{
736
- status: z.ZodEnum<["resolved", "ambiguous", "degraded", "unresolved", "evidence_available_topology_missing", "insufficient_evidence"]>;
737
- target: z.ZodNullable<z.ZodObject<{
738
- type: z.ZodEnum<["service", "resource"]>;
739
- id: z.ZodString;
740
- }, "strip", z.ZodTypeAny, {
741
- type: "service" | "resource";
742
- id: string;
743
- }, {
744
- type: "service" | "resource";
745
- id: string;
746
- }>>;
747
- candidates: z.ZodArray<z.ZodObject<{
748
- target: z.ZodObject<{
749
- type: z.ZodEnum<["service", "resource"]>;
750
- id: z.ZodString;
751
- }, "strip", z.ZodTypeAny, {
752
- type: "service" | "resource";
753
- id: string;
754
- }, {
755
- type: "service" | "resource";
756
- id: string;
757
- }>;
758
- name: z.ZodOptional<z.ZodString>;
759
- confidence: z.ZodNumber;
760
- evidence: z.ZodArray<z.ZodObject<{
761
- kind: z.ZodEnum<["relationship_attribute", "raw_alert_field", "resource_inference", "fallback"]>;
762
- factKey: z.ZodOptional<z.ZodString>;
763
- factValue: z.ZodOptional<z.ZodString>;
764
- relationshipId: z.ZodOptional<z.ZodString>;
765
- reason: z.ZodString;
766
- }, "strict", z.ZodTypeAny, {
767
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
768
- reason: string;
769
- factKey?: string | undefined;
770
- factValue?: string | undefined;
771
- relationshipId?: string | undefined;
772
- }, {
773
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
774
- reason: string;
775
- factKey?: string | undefined;
776
- factValue?: string | undefined;
777
- relationshipId?: string | undefined;
778
- }>, "many">;
779
- reasonCodes: z.ZodArray<z.ZodString, "many">;
780
- }, "strict", z.ZodTypeAny, {
781
- confidence: number;
782
- target: {
783
- type: "service" | "resource";
784
- id: string;
785
- };
786
- evidence: {
787
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
788
- reason: string;
789
- factKey?: string | undefined;
790
- factValue?: string | undefined;
791
- relationshipId?: string | undefined;
792
- }[];
793
- reasonCodes: string[];
794
- name?: string | undefined;
795
- }, {
796
- confidence: number;
797
- target: {
798
- type: "service" | "resource";
799
- id: string;
800
- };
801
- evidence: {
802
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
803
- reason: string;
804
- factKey?: string | undefined;
805
- factValue?: string | undefined;
806
- relationshipId?: string | undefined;
807
- }[];
808
- reasonCodes: string[];
809
- name?: string | undefined;
810
- }>, "many">;
811
- evidence: z.ZodArray<z.ZodObject<{
812
- kind: z.ZodEnum<["relationship_attribute", "raw_alert_field", "resource_inference", "fallback"]>;
813
- factKey: z.ZodOptional<z.ZodString>;
814
- factValue: z.ZodOptional<z.ZodString>;
815
- relationshipId: z.ZodOptional<z.ZodString>;
816
- reason: z.ZodString;
817
- }, "strict", z.ZodTypeAny, {
818
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
819
- reason: string;
820
- factKey?: string | undefined;
821
- factValue?: string | undefined;
822
- relationshipId?: string | undefined;
823
- }, {
824
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
825
- reason: string;
826
- factKey?: string | undefined;
827
- factValue?: string | undefined;
828
- relationshipId?: string | undefined;
829
- }>, "many">;
830
- confidence: z.ZodNumber;
831
- reasonCodes: z.ZodArray<z.ZodString, "many">;
832
- }, "strict", z.ZodTypeAny, {
833
- status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
834
- confidence: number;
835
- target: {
836
- type: "service" | "resource";
837
- id: string;
838
- } | null;
839
- evidence: {
840
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
841
- reason: string;
842
- factKey?: string | undefined;
843
- factValue?: string | undefined;
844
- relationshipId?: string | undefined;
845
- }[];
846
- reasonCodes: string[];
847
- candidates: {
848
- confidence: number;
849
- target: {
850
- type: "service" | "resource";
851
- id: string;
852
- };
853
- evidence: {
854
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
855
- reason: string;
856
- factKey?: string | undefined;
857
- factValue?: string | undefined;
858
- relationshipId?: string | undefined;
859
- }[];
860
- reasonCodes: string[];
861
- name?: string | undefined;
862
- }[];
863
- }, {
864
- status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
865
- confidence: number;
866
- target: {
867
- type: "service" | "resource";
868
- id: string;
869
- } | null;
870
- evidence: {
871
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
872
- reason: string;
873
- factKey?: string | undefined;
874
- factValue?: string | undefined;
875
- relationshipId?: string | undefined;
876
- }[];
877
- reasonCodes: string[];
878
- candidates: {
879
- confidence: number;
880
- target: {
881
- type: "service" | "resource";
882
- id: string;
883
- };
884
- evidence: {
885
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
886
- reason: string;
887
- factKey?: string | undefined;
888
- factValue?: string | undefined;
889
- relationshipId?: string | undefined;
890
- }[];
891
- reasonCodes: string[];
892
- name?: string | undefined;
893
- }[];
894
- }>;
895
- topologySlice: z.ZodNullable<z.ZodUnknown>;
896
- bindingHints: z.ZodArray<z.ZodUnknown, "many">;
897
- diagnostics: z.ZodObject<{
898
- providerDetailFetched: z.ZodBoolean;
899
- evidenceSource: z.ZodString;
900
- evidenceRef: z.ZodString;
901
- occurrenceId: z.ZodString;
902
- rawTruncated: z.ZodBoolean;
903
- extractorName: z.ZodString;
904
- extractorVersion: z.ZodString;
905
- matcherName: z.ZodOptional<z.ZodString>;
906
- matcherVersion: z.ZodOptional<z.ZodString>;
907
- sourceResourceFound: z.ZodBoolean;
908
- relationshipCount: z.ZodNumber;
909
- candidateCount: z.ZodNumber;
910
- selectedTarget: z.ZodOptional<z.ZodObject<{
911
- type: z.ZodEnum<["service", "resource"]>;
912
- id: z.ZodString;
913
- }, "strict", z.ZodTypeAny, {
914
- type: "service" | "resource";
915
- id: string;
916
- }, {
917
- type: "service" | "resource";
918
- id: string;
919
- }>>;
920
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
921
- providerDetailFetched: z.ZodBoolean;
922
- evidenceSource: z.ZodString;
923
- evidenceRef: z.ZodString;
924
- occurrenceId: z.ZodString;
925
- rawTruncated: z.ZodBoolean;
926
- extractorName: z.ZodString;
927
- extractorVersion: z.ZodString;
928
- matcherName: z.ZodOptional<z.ZodString>;
929
- matcherVersion: z.ZodOptional<z.ZodString>;
930
- sourceResourceFound: z.ZodBoolean;
931
- relationshipCount: z.ZodNumber;
932
- candidateCount: z.ZodNumber;
933
- selectedTarget: z.ZodOptional<z.ZodObject<{
934
- type: z.ZodEnum<["service", "resource"]>;
935
- id: z.ZodString;
936
- }, "strict", z.ZodTypeAny, {
937
- type: "service" | "resource";
938
- id: string;
939
- }, {
940
- type: "service" | "resource";
941
- id: string;
942
- }>>;
943
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
944
- providerDetailFetched: z.ZodBoolean;
945
- evidenceSource: z.ZodString;
946
- evidenceRef: z.ZodString;
947
- occurrenceId: z.ZodString;
948
- rawTruncated: z.ZodBoolean;
949
- extractorName: z.ZodString;
950
- extractorVersion: z.ZodString;
951
- matcherName: z.ZodOptional<z.ZodString>;
952
- matcherVersion: z.ZodOptional<z.ZodString>;
953
- sourceResourceFound: z.ZodBoolean;
954
- relationshipCount: z.ZodNumber;
955
- candidateCount: z.ZodNumber;
956
- selectedTarget: z.ZodOptional<z.ZodObject<{
957
- type: z.ZodEnum<["service", "resource"]>;
958
- id: z.ZodString;
959
- }, "strict", z.ZodTypeAny, {
960
- type: "service" | "resource";
961
- id: string;
962
- }, {
963
- type: "service" | "resource";
964
- id: string;
965
- }>>;
966
- }, z.ZodTypeAny, "passthrough">>;
967
- reasonCodes: z.ZodArray<z.ZodString, "many">;
968
- }, "strict", z.ZodTypeAny, {
969
- presentation: {
970
- status?: string | undefined;
971
- title?: string | undefined;
972
- severity?: string | undefined;
973
- description?: string | undefined;
974
- };
975
- time: {
976
- capturedAt: string;
977
- startsAt: string;
978
- isOpenEnded: boolean;
979
- observedAt?: string | undefined;
980
- endsAt?: string | undefined;
981
- lastSeen?: string | undefined;
982
- };
983
- evidence: {
984
- occurrenceId: string;
985
- alertRef: {
986
- integrationId: string;
987
- provider: string;
988
- alertKey: string;
989
- };
990
- evidenceRef: string;
991
- evidenceSource: "provider_list" | "provider_detail" | "provider_webhook" | "slack_notification";
992
- capturedAt: string;
993
- presentation: {
994
- status?: string | undefined;
995
- title?: string | undefined;
996
- severity?: string | undefined;
997
- description?: string | undefined;
998
- };
999
- schemaVersion: string;
1000
- redactionVersion: string;
1001
- observedAt?: string | undefined;
1002
- startsAt?: string | undefined;
1003
- endsAt?: string | undefined;
1004
- state?: string | undefined;
1005
- labels?: Record<string, string> | undefined;
1006
- annotations?: Record<string, string> | undefined;
1007
- tags?: Record<string, string> | undefined;
1008
- providerIds?: Record<string, string> | undefined;
1009
- sourceUrls?: Record<string, string> | undefined;
1010
- rawPreview?: Record<string, unknown> | undefined;
1011
- rawHash?: string | undefined;
1012
- };
1013
- reasonCodes: string[];
1014
- request: {
1015
- occurrenceId: string;
1016
- alertRef: {
1017
- integrationId: string;
1018
- provider: string;
1019
- alertKey: string;
1020
- };
1021
- evidenceRef: string;
1022
- };
1023
- facts: {
1024
- integrationId: string;
1025
- provider: string;
1026
- alertKey: string;
1027
- occurrenceId: string;
1028
- evidenceRef: string;
1029
- evidenceSource: string;
1030
- labels: {
1031
- value: string;
1032
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1033
- key: string;
1034
- sourcePath: string;
1035
- confidence: number;
1036
- provider?: string | undefined;
1037
- observedAt?: string | undefined;
1038
- schemaVersion?: string | undefined;
1039
- rawValue?: unknown;
1040
- normalizedValue?: string | undefined;
1041
- namespace?: string | undefined;
1042
- }[];
1043
- time: {
1044
- capturedAt: string;
1045
- startsAt: string;
1046
- isOpenEnded: boolean;
1047
- observedAt?: string | undefined;
1048
- endsAt?: string | undefined;
1049
- lastSeen?: string | undefined;
1050
- };
1051
- extractor: {
1052
- name: string;
1053
- version: string;
1054
- };
1055
- identifiers: {
1056
- value: string;
1057
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1058
- key: string;
1059
- sourcePath: string;
1060
- confidence: number;
1061
- provider?: string | undefined;
1062
- observedAt?: string | undefined;
1063
- schemaVersion?: string | undefined;
1064
- rawValue?: unknown;
1065
- normalizedValue?: string | undefined;
1066
- namespace?: string | undefined;
1067
- }[];
1068
- resourceHints: {
1069
- value: string;
1070
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1071
- key: string;
1072
- sourcePath: string;
1073
- confidence: number;
1074
- provider?: string | undefined;
1075
- observedAt?: string | undefined;
1076
- schemaVersion?: string | undefined;
1077
- rawValue?: unknown;
1078
- normalizedValue?: string | undefined;
1079
- namespace?: string | undefined;
1080
- }[];
1081
- textHints: {
1082
- value: string;
1083
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1084
- key: string;
1085
- sourcePath: string;
1086
- confidence: number;
1087
- provider?: string | undefined;
1088
- observedAt?: string | undefined;
1089
- schemaVersion?: string | undefined;
1090
- rawValue?: unknown;
1091
- normalizedValue?: string | undefined;
1092
- namespace?: string | undefined;
1093
- }[];
1094
- title?: {
1095
- value: string;
1096
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1097
- key: string;
1098
- sourcePath: string;
1099
- confidence: number;
1100
- provider?: string | undefined;
1101
- observedAt?: string | undefined;
1102
- schemaVersion?: string | undefined;
1103
- rawValue?: unknown;
1104
- normalizedValue?: string | undefined;
1105
- namespace?: string | undefined;
1106
- } | undefined;
1107
- severity?: {
1108
- value: string;
1109
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1110
- key: string;
1111
- sourcePath: string;
1112
- confidence: number;
1113
- provider?: string | undefined;
1114
- observedAt?: string | undefined;
1115
- schemaVersion?: string | undefined;
1116
- rawValue?: unknown;
1117
- normalizedValue?: string | undefined;
1118
- namespace?: string | undefined;
1119
- } | undefined;
1120
- };
1121
- resolution: {
1122
- status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
1123
- confidence: number;
1124
- target: {
1125
- type: "service" | "resource";
1126
- id: string;
1127
- } | null;
1128
- evidence: {
1129
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
1130
- reason: string;
1131
- factKey?: string | undefined;
1132
- factValue?: string | undefined;
1133
- relationshipId?: string | undefined;
1134
- }[];
1135
- reasonCodes: string[];
1136
- candidates: {
1137
- confidence: number;
1138
- target: {
1139
- type: "service" | "resource";
1140
- id: string;
1141
- };
1142
- evidence: {
1143
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
1144
- reason: string;
1145
- factKey?: string | undefined;
1146
- factValue?: string | undefined;
1147
- relationshipId?: string | undefined;
1148
- }[];
1149
- reasonCodes: string[];
1150
- name?: string | undefined;
1151
- }[];
1152
- };
1153
- bindingHints: unknown[];
1154
- diagnostics: {
1155
- occurrenceId: string;
1156
- evidenceRef: string;
1157
- evidenceSource: string;
1158
- providerDetailFetched: boolean;
1159
- rawTruncated: boolean;
1160
- extractorName: string;
1161
- extractorVersion: string;
1162
- sourceResourceFound: boolean;
1163
- relationshipCount: number;
1164
- candidateCount: number;
1165
- matcherName?: string | undefined;
1166
- matcherVersion?: string | undefined;
1167
- selectedTarget?: {
1168
- type: "service" | "resource";
1169
- id: string;
1170
- } | undefined;
1171
- } & {
1172
- [k: string]: unknown;
1173
- };
1174
- topologySlice?: unknown;
1175
- }, {
1176
- presentation: {
1177
- status?: string | undefined;
1178
- title?: string | undefined;
1179
- severity?: string | undefined;
1180
- description?: string | undefined;
1181
- };
1182
- time: {
1183
- capturedAt: string;
1184
- startsAt: string;
1185
- isOpenEnded: boolean;
1186
- observedAt?: string | undefined;
1187
- endsAt?: string | undefined;
1188
- lastSeen?: string | undefined;
1189
- };
1190
- evidence: {
1191
- occurrenceId: string;
1192
- alertRef: {
1193
- integrationId: string;
1194
- provider: string;
1195
- alertKey: string;
1196
- };
1197
- evidenceRef: string;
1198
- evidenceSource: "provider_list" | "provider_detail" | "provider_webhook" | "slack_notification";
1199
- capturedAt: string;
1200
- presentation: {
1201
- status?: string | undefined;
1202
- title?: string | undefined;
1203
- severity?: string | undefined;
1204
- description?: string | undefined;
1205
- };
1206
- schemaVersion: string;
1207
- redactionVersion: string;
1208
- observedAt?: string | undefined;
1209
- startsAt?: string | undefined;
1210
- endsAt?: string | undefined;
1211
- state?: string | undefined;
1212
- labels?: Record<string, string> | undefined;
1213
- annotations?: Record<string, string> | undefined;
1214
- tags?: Record<string, string> | undefined;
1215
- providerIds?: Record<string, string> | undefined;
1216
- sourceUrls?: Record<string, string> | undefined;
1217
- rawPreview?: Record<string, unknown> | undefined;
1218
- rawHash?: string | undefined;
1219
- };
1220
- reasonCodes: string[];
1221
- request: {
1222
- occurrenceId: string;
1223
- alertRef: {
1224
- integrationId: string;
1225
- provider: string;
1226
- alertKey: string;
1227
- };
1228
- evidenceRef: string;
1229
- };
1230
- facts: {
1231
- integrationId: string;
1232
- provider: string;
1233
- alertKey: string;
1234
- occurrenceId: string;
1235
- evidenceRef: string;
1236
- evidenceSource: string;
1237
- labels: {
1238
- value: string;
1239
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1240
- key: string;
1241
- sourcePath: string;
1242
- confidence: number;
1243
- provider?: string | undefined;
1244
- observedAt?: string | undefined;
1245
- schemaVersion?: string | undefined;
1246
- rawValue?: unknown;
1247
- normalizedValue?: string | undefined;
1248
- namespace?: string | undefined;
1249
- }[];
1250
- time: {
1251
- capturedAt: string;
1252
- startsAt: string;
1253
- isOpenEnded: boolean;
1254
- observedAt?: string | undefined;
1255
- endsAt?: string | undefined;
1256
- lastSeen?: string | undefined;
1257
- };
1258
- extractor: {
1259
- name: string;
1260
- version: string;
1261
- };
1262
- identifiers: {
1263
- value: string;
1264
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1265
- key: string;
1266
- sourcePath: string;
1267
- confidence: number;
1268
- provider?: string | undefined;
1269
- observedAt?: string | undefined;
1270
- schemaVersion?: string | undefined;
1271
- rawValue?: unknown;
1272
- normalizedValue?: string | undefined;
1273
- namespace?: string | undefined;
1274
- }[];
1275
- resourceHints: {
1276
- value: string;
1277
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1278
- key: string;
1279
- sourcePath: string;
1280
- confidence: number;
1281
- provider?: string | undefined;
1282
- observedAt?: string | undefined;
1283
- schemaVersion?: string | undefined;
1284
- rawValue?: unknown;
1285
- normalizedValue?: string | undefined;
1286
- namespace?: string | undefined;
1287
- }[];
1288
- textHints: {
1289
- value: string;
1290
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1291
- key: string;
1292
- sourcePath: string;
1293
- confidence: number;
1294
- provider?: string | undefined;
1295
- observedAt?: string | undefined;
1296
- schemaVersion?: string | undefined;
1297
- rawValue?: unknown;
1298
- normalizedValue?: string | undefined;
1299
- namespace?: string | undefined;
1300
- }[];
1301
- title?: {
1302
- value: string;
1303
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1304
- key: string;
1305
- sourcePath: string;
1306
- confidence: number;
1307
- provider?: string | undefined;
1308
- observedAt?: string | undefined;
1309
- schemaVersion?: string | undefined;
1310
- rawValue?: unknown;
1311
- normalizedValue?: string | undefined;
1312
- namespace?: string | undefined;
1313
- } | undefined;
1314
- severity?: {
1315
- value: string;
1316
- kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time";
1317
- key: string;
1318
- sourcePath: string;
1319
- confidence: number;
1320
- provider?: string | undefined;
1321
- observedAt?: string | undefined;
1322
- schemaVersion?: string | undefined;
1323
- rawValue?: unknown;
1324
- normalizedValue?: string | undefined;
1325
- namespace?: string | undefined;
1326
- } | undefined;
1327
- };
1328
- resolution: {
1329
- status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
1330
- confidence: number;
1331
- target: {
1332
- type: "service" | "resource";
1333
- id: string;
1334
- } | null;
1335
- evidence: {
1336
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
1337
- reason: string;
1338
- factKey?: string | undefined;
1339
- factValue?: string | undefined;
1340
- relationshipId?: string | undefined;
1341
- }[];
1342
- reasonCodes: string[];
1343
- candidates: {
1344
- confidence: number;
1345
- target: {
1346
- type: "service" | "resource";
1347
- id: string;
1348
- };
1349
- evidence: {
1350
- kind: "relationship_attribute" | "raw_alert_field" | "resource_inference" | "fallback";
1351
- reason: string;
1352
- factKey?: string | undefined;
1353
- factValue?: string | undefined;
1354
- relationshipId?: string | undefined;
1355
- }[];
1356
- reasonCodes: string[];
1357
- name?: string | undefined;
1358
- }[];
1359
- };
1360
- bindingHints: unknown[];
1361
- diagnostics: {
1362
- occurrenceId: string;
1363
- evidenceRef: string;
1364
- evidenceSource: string;
1365
- providerDetailFetched: boolean;
1366
- rawTruncated: boolean;
1367
- extractorName: string;
1368
- extractorVersion: string;
1369
- sourceResourceFound: boolean;
1370
- relationshipCount: number;
1371
- candidateCount: number;
1372
- matcherName?: string | undefined;
1373
- matcherVersion?: string | undefined;
1374
- selectedTarget?: {
1375
- type: "service" | "resource";
1376
- id: string;
1377
- } | undefined;
1378
- } & {
1379
- [k: string]: unknown;
1380
- };
1381
- topologySlice?: unknown;
1382
- }>;
1383
- export interface AlertInvestigationContext {
1384
- request: AlertOccurrenceRef;
1385
- evidence: AlertEvidenceSnapshot;
1386
- time: AlertTimeWindow;
1387
- presentation: AlertEvidencePresentation;
1388
- facts: AlertCorrelationFacts;
1389
- resolution: AlertCorrelationDecision;
1390
- topologySlice: unknown | null;
1391
- bindingHints: unknown[];
1392
- diagnostics: AlertCorrelationDiagnostics;
1393
- reasonCodes: string[];
1394
- }
1395
- export declare const gatewayAlertCorrelationDiagnosticsSchema: z.ZodObject<{
1396
- providerDetailFetched: z.ZodOptional<z.ZodBoolean>;
1397
- evidenceSource: z.ZodOptional<z.ZodString>;
1398
- evidenceRef: z.ZodOptional<z.ZodString>;
1399
- occurrenceId: z.ZodOptional<z.ZodString>;
1400
- rawTruncated: z.ZodOptional<z.ZodBoolean>;
1401
- extractorName: z.ZodOptional<z.ZodString>;
1402
- extractorVersion: z.ZodOptional<z.ZodString>;
1403
- matcherName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1404
- matcherVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1405
- sourceResourceFound: z.ZodOptional<z.ZodBoolean>;
1406
- relationshipCount: z.ZodOptional<z.ZodNumber>;
1407
- candidateCount: z.ZodOptional<z.ZodNumber>;
1408
- selectedTarget: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1409
- type: z.ZodEnum<["service", "resource"]>;
1410
- id: z.ZodString;
1411
- }, "strict", z.ZodTypeAny, {
1412
- type: "service" | "resource";
1413
- id: string;
1414
- }, {
1415
- type: "service" | "resource";
1416
- id: string;
1417
- }>>>;
1418
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1419
- providerDetailFetched: z.ZodOptional<z.ZodBoolean>;
1420
- evidenceSource: z.ZodOptional<z.ZodString>;
1421
- evidenceRef: z.ZodOptional<z.ZodString>;
1422
- occurrenceId: z.ZodOptional<z.ZodString>;
1423
- rawTruncated: z.ZodOptional<z.ZodBoolean>;
1424
- extractorName: z.ZodOptional<z.ZodString>;
1425
- extractorVersion: z.ZodOptional<z.ZodString>;
1426
- matcherName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1427
- matcherVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1428
- sourceResourceFound: z.ZodOptional<z.ZodBoolean>;
1429
- relationshipCount: z.ZodOptional<z.ZodNumber>;
1430
- candidateCount: z.ZodOptional<z.ZodNumber>;
1431
- selectedTarget: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1432
- type: z.ZodEnum<["service", "resource"]>;
1433
- id: z.ZodString;
1434
- }, "strict", z.ZodTypeAny, {
1435
- type: "service" | "resource";
1436
- id: string;
1437
- }, {
1438
- type: "service" | "resource";
1439
- id: string;
1440
- }>>>;
1441
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1442
- providerDetailFetched: z.ZodOptional<z.ZodBoolean>;
1443
- evidenceSource: z.ZodOptional<z.ZodString>;
1444
- evidenceRef: z.ZodOptional<z.ZodString>;
1445
- occurrenceId: z.ZodOptional<z.ZodString>;
1446
- rawTruncated: z.ZodOptional<z.ZodBoolean>;
1447
- extractorName: z.ZodOptional<z.ZodString>;
1448
- extractorVersion: z.ZodOptional<z.ZodString>;
1449
- matcherName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1450
- matcherVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1451
- sourceResourceFound: z.ZodOptional<z.ZodBoolean>;
1452
- relationshipCount: z.ZodOptional<z.ZodNumber>;
1453
- candidateCount: z.ZodOptional<z.ZodNumber>;
1454
- selectedTarget: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1455
- type: z.ZodEnum<["service", "resource"]>;
1456
- id: z.ZodString;
1457
- }, "strict", z.ZodTypeAny, {
1458
- type: "service" | "resource";
1459
- id: string;
1460
- }, {
1461
- type: "service" | "resource";
1462
- id: string;
1463
- }>>>;
1464
- }, z.ZodTypeAny, "passthrough">>;
1465
- export type GatewayAlertCorrelationDiagnostics = {
1466
- providerDetailFetched?: boolean;
1467
- evidenceSource?: string;
1468
- evidenceRef?: string;
1469
- occurrenceId?: string;
1470
- rawTruncated?: boolean;
1471
- extractorName?: string;
1472
- extractorVersion?: string;
1473
- matcherName?: string;
1474
- matcherVersion?: string;
1475
- sourceResourceFound?: boolean;
1476
- relationshipCount?: number;
1477
- candidateCount?: number;
1478
- selectedTarget?: {
1479
- type: 'service' | 'resource';
1480
- id: string;
1481
- };
1482
- } & Record<string, unknown>;
1483
- export type GatewayAlertInvestigationTime = Partial<AlertTimeWindow> & {
1484
- alertTimestamp?: string;
1485
- timestamp?: string;
1486
- } & Record<string, unknown>;
1487
- export type GatewayAlertInvestigationResolution = Partial<Omit<AlertCorrelationDecision, 'target' | 'candidates' | 'evidence' | 'reasonCodes'>> & {
1488
- target?: unknown;
1489
- candidates?: unknown[];
1490
- evidence?: unknown[];
1491
- reasonCodes?: string[];
1492
- facts?: unknown;
1493
- bindingHints?: unknown[] | TopologyBindingHints;
1494
- diagnostics?: Record<string, unknown>;
1495
- } & Record<string, unknown>;
1496
- export type GatewayAlertInvestigationContextResponse = {
1497
- alertOccurrenceRef?: AlertOccurrenceRef;
1498
- request?: AlertOccurrenceRef;
1499
- alertRef?: AlertRef;
1500
- evidence?: AlertEvidenceSnapshot | null;
1501
- source?: {
1502
- integrationId?: string;
1503
- provider?: string;
1504
- } & Record<string, unknown>;
1505
- alert?: Record<string, unknown>;
1506
- time?: GatewayAlertInvestigationTime;
1507
- presentation?: AlertEvidencePresentation;
1508
- summary?: AlertEvidencePresentation;
1509
- facts?: unknown;
1510
- resolution: GatewayAlertInvestigationResolution;
1511
- topologySlice?: unknown | null;
1512
- bindingHints?: unknown[] | TopologyBindingHints;
1513
- diagnostics?: GatewayAlertCorrelationDiagnostics;
1514
- reasonCodes?: string[];
1515
- topologyContext?: GatewayTopologyContext;
1516
- } & Record<string, unknown>;
1517
- export type GatewayAlertInvestigationContextEnvelope = {
1518
- alertContext: GatewayAlertInvestigationContextResponse;
1519
- } & Record<string, unknown>;
1520
- export type GatewayAlertObservationEvidence = {
1521
- observedAt?: string;
1522
- startsAt?: string;
1523
- endsAt?: string;
1524
- state?: string;
1525
- labels?: Record<string, string>;
1526
- annotations?: Record<string, string>;
1527
- tags?: Record<string, string>;
1528
- providerIds?: Record<string, string>;
1529
- sourceUrls?: Record<string, string>;
1530
- presentation?: Partial<AlertEvidencePresentation>;
1531
- rawPreview?: Record<string, unknown>;
1532
- } & Record<string, unknown>;
1533
- export type GatewayAlertObservationResolveRequest = {
1534
- alertRef: AlertRef;
1535
- evidence: GatewayAlertObservationEvidence;
1536
- };
1537
- export type GatewayAlertObservationResolveResponse = {
1538
- alertOccurrenceRef: AlertOccurrenceRef;
1539
- evidence: AlertEvidenceSnapshot;
1540
- };
1541
- export declare const gatewayAlertInvestigationContextResponseSchema: z.ZodType<GatewayAlertInvestigationContextResponse>;
1542
- export declare const gatewayAlertInvestigationContextEnvelopeSchema: z.ZodType<GatewayAlertInvestigationContextEnvelope>;
1543
- export declare const gatewayAlertObservationEvidenceSchema: z.ZodType<GatewayAlertObservationEvidence>;
1544
- export declare const gatewayAlertObservationResolveRequestSchema: z.ZodType<GatewayAlertObservationResolveRequest>;
1545
- export declare const gatewayAlertObservationResolveResponseSchema: z.ZodType<GatewayAlertObservationResolveResponse>;