@apollo-deploy/schemas 0.9.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/definitions/apps/index.d.ts +3 -3
  2. package/dist/definitions/apps/index.d.ts.map +1 -1
  3. package/dist/definitions/apps/index.js +3 -3
  4. package/dist/definitions/apps/index.js.map +1 -1
  5. package/dist/definitions/apps/request.schema.d.ts +0 -21
  6. package/dist/definitions/apps/request.schema.d.ts.map +1 -1
  7. package/dist/definitions/apps/request.schema.js +0 -19
  8. package/dist/definitions/apps/request.schema.js.map +1 -1
  9. package/dist/definitions/apps/response.schema.d.ts +0 -44
  10. package/dist/definitions/apps/response.schema.d.ts.map +1 -1
  11. package/dist/definitions/apps/response.schema.js +0 -24
  12. package/dist/definitions/apps/response.schema.js.map +1 -1
  13. package/dist/definitions/artifacts/domain.schema.d.ts +2 -2
  14. package/dist/definitions/artifacts/request.schema.d.ts +46 -4
  15. package/dist/definitions/artifacts/request.schema.d.ts.map +1 -1
  16. package/dist/definitions/artifacts/request.schema.js +14 -0
  17. package/dist/definitions/artifacts/request.schema.js.map +1 -1
  18. package/dist/definitions/artifacts/response.schema.d.ts +9 -9
  19. package/dist/definitions/audit-log/domain.schema.d.ts +14 -14
  20. package/dist/definitions/audit-log/request.schema.d.ts +25 -25
  21. package/dist/definitions/audit-log/response.schema.d.ts +6 -6
  22. package/dist/definitions/auth/domain.schema.d.ts +2 -2
  23. package/dist/definitions/billing/domain.schema.d.ts +5 -5
  24. package/dist/definitions/billing/request.schema.d.ts +3 -3
  25. package/dist/definitions/billing/response.schema.d.ts +4 -4
  26. package/dist/definitions/index.d.ts +19 -5
  27. package/dist/definitions/index.d.ts.map +1 -1
  28. package/dist/definitions/index.js +35 -7
  29. package/dist/definitions/index.js.map +1 -1
  30. package/dist/definitions/integrations/api.schema.d.ts +3 -3
  31. package/dist/definitions/integrations/domain.schema.d.ts +88 -111
  32. package/dist/definitions/integrations/domain.schema.d.ts.map +1 -1
  33. package/dist/definitions/integrations/domain.schema.js +55 -78
  34. package/dist/definitions/integrations/domain.schema.js.map +1 -1
  35. package/dist/definitions/integrations/index.d.ts +5 -8
  36. package/dist/definitions/integrations/index.d.ts.map +1 -1
  37. package/dist/definitions/integrations/index.js +5 -31
  38. package/dist/definitions/integrations/index.js.map +1 -1
  39. package/dist/definitions/integrations/integrations-request.schema.d.ts +86 -0
  40. package/dist/definitions/integrations/integrations-request.schema.d.ts.map +1 -0
  41. package/dist/definitions/integrations/integrations-request.schema.js +82 -0
  42. package/dist/definitions/integrations/integrations-request.schema.js.map +1 -0
  43. package/dist/definitions/integrations/integrations-response.schema.d.ts +212 -0
  44. package/dist/definitions/integrations/integrations-response.schema.d.ts.map +1 -0
  45. package/dist/definitions/integrations/integrations-response.schema.js +139 -0
  46. package/dist/definitions/integrations/integrations-response.schema.js.map +1 -0
  47. package/dist/definitions/integrations/integrations.schema.d.ts +99 -0
  48. package/dist/definitions/integrations/integrations.schema.d.ts.map +1 -0
  49. package/dist/definitions/integrations/integrations.schema.js +62 -0
  50. package/dist/definitions/integrations/integrations.schema.js.map +1 -0
  51. package/dist/definitions/integrations/marketplace-request.schema.d.ts +2 -2
  52. package/dist/definitions/integrations/marketplace-response.schema.d.ts +6 -6
  53. package/dist/definitions/integrations/marketplace.schema.d.ts +8 -8
  54. package/dist/definitions/integrations/request.schema.d.ts +74 -129
  55. package/dist/definitions/integrations/request.schema.d.ts.map +1 -1
  56. package/dist/definitions/integrations/request.schema.js +71 -125
  57. package/dist/definitions/integrations/request.schema.js.map +1 -1
  58. package/dist/definitions/integrations/response.schema.d.ts +191 -121
  59. package/dist/definitions/integrations/response.schema.d.ts.map +1 -1
  60. package/dist/definitions/integrations/response.schema.js +132 -48
  61. package/dist/definitions/integrations/response.schema.js.map +1 -1
  62. package/dist/definitions/marketplace/domain.schema.d.ts +285 -0
  63. package/dist/definitions/marketplace/domain.schema.d.ts.map +1 -0
  64. package/dist/definitions/marketplace/domain.schema.js +123 -0
  65. package/dist/definitions/marketplace/domain.schema.js.map +1 -0
  66. package/dist/definitions/marketplace/index.d.ts +9 -0
  67. package/dist/definitions/marketplace/index.d.ts.map +1 -0
  68. package/dist/definitions/marketplace/index.js +9 -0
  69. package/dist/definitions/marketplace/index.js.map +1 -0
  70. package/dist/definitions/marketplace/marketplace-request.schema.d.ts +107 -0
  71. package/dist/definitions/marketplace/marketplace-request.schema.d.ts.map +1 -0
  72. package/dist/definitions/marketplace/marketplace-request.schema.js +86 -0
  73. package/dist/definitions/marketplace/marketplace-request.schema.js.map +1 -0
  74. package/dist/definitions/marketplace/marketplace-response.schema.d.ts +378 -0
  75. package/dist/definitions/marketplace/marketplace-response.schema.d.ts.map +1 -0
  76. package/dist/definitions/marketplace/marketplace-response.schema.js +81 -0
  77. package/dist/definitions/marketplace/marketplace-response.schema.js.map +1 -0
  78. package/dist/definitions/marketplace/marketplace.schema.d.ts +285 -0
  79. package/dist/definitions/marketplace/marketplace.schema.d.ts.map +1 -0
  80. package/dist/definitions/marketplace/marketplace.schema.js +123 -0
  81. package/dist/definitions/marketplace/marketplace.schema.js.map +1 -0
  82. package/dist/definitions/marketplace/request.schema.d.ts +107 -0
  83. package/dist/definitions/marketplace/request.schema.d.ts.map +1 -0
  84. package/dist/definitions/marketplace/request.schema.js +86 -0
  85. package/dist/definitions/marketplace/request.schema.js.map +1 -0
  86. package/dist/definitions/marketplace/response.schema.d.ts +378 -0
  87. package/dist/definitions/marketplace/response.schema.d.ts.map +1 -0
  88. package/dist/definitions/marketplace/response.schema.js +81 -0
  89. package/dist/definitions/marketplace/response.schema.js.map +1 -0
  90. package/dist/definitions/orgs/domain.schema.d.ts +2 -2
  91. package/dist/definitions/service-accounts/domain.schema.d.ts +2 -2
  92. package/dist/definitions/service-accounts/response.schema.d.ts +2 -2
  93. package/dist/definitions/share-links/request.schema.d.ts +1 -1
  94. package/dist/definitions/signals/domain.schema.d.ts +626 -0
  95. package/dist/definitions/signals/domain.schema.d.ts.map +1 -0
  96. package/dist/definitions/signals/domain.schema.js +248 -0
  97. package/dist/definitions/signals/domain.schema.js.map +1 -0
  98. package/dist/definitions/signals/index.d.ts +9 -0
  99. package/dist/definitions/signals/index.d.ts.map +1 -0
  100. package/dist/definitions/signals/index.js +12 -0
  101. package/dist/definitions/signals/index.js.map +1 -0
  102. package/dist/definitions/signals/request.schema.d.ts +118 -0
  103. package/dist/definitions/signals/request.schema.d.ts.map +1 -0
  104. package/dist/definitions/signals/request.schema.js +80 -0
  105. package/dist/definitions/signals/request.schema.js.map +1 -0
  106. package/dist/definitions/signals/response.schema.d.ts +1073 -0
  107. package/dist/definitions/signals/response.schema.d.ts.map +1 -0
  108. package/dist/definitions/signals/response.schema.js +85 -0
  109. package/dist/definitions/signals/response.schema.js.map +1 -0
  110. package/dist/definitions/teams/request.schema.d.ts +1 -1
  111. package/package.json +5 -1
@@ -0,0 +1,626 @@
1
+ /**
2
+ * Signals Domain Schema Definitions
3
+ *
4
+ * Core domain types for the release health signals engine:
5
+ * signal groups, metrics, anomalies, correlations, recommendations, incidents.
6
+ */
7
+ import { z } from 'zod';
8
+ export declare const DataSourceSchema: z.ZodEnum<{
9
+ custom: "custom";
10
+ logs: "logs";
11
+ sentry: "sentry";
12
+ datadog: "datadog";
13
+ newrelic: "newrelic";
14
+ }>;
15
+ export declare const SignalGroupTypeSchema: z.ZodEnum<{
16
+ errors: "errors";
17
+ usage: "usage";
18
+ logs: "logs";
19
+ stability: "stability";
20
+ performance: "performance";
21
+ infra: "infra";
22
+ }>;
23
+ export declare const SignalStatusSchema: z.ZodEnum<{
24
+ warning: "warning";
25
+ critical: "critical";
26
+ healthy: "healthy";
27
+ }>;
28
+ export declare const ReleaseHealthStatusSchema: z.ZodEnum<{
29
+ critical: "critical";
30
+ healthy: "healthy";
31
+ degraded: "degraded";
32
+ }>;
33
+ export declare const GranularitySchema: z.ZodEnum<{
34
+ "1m": "1m";
35
+ "1h": "1h";
36
+ "1d": "1d";
37
+ "5m": "5m";
38
+ "15m": "15m";
39
+ "6h": "6h";
40
+ }>;
41
+ export declare const MetricUnitSchema: z.ZodEnum<{
42
+ score: "score";
43
+ ms: "ms";
44
+ count: "count";
45
+ "%": "%";
46
+ rps: "rps";
47
+ }>;
48
+ export declare const TimeWindowSchema: z.ZodObject<{
49
+ start: z.ZodString;
50
+ end: z.ZodString;
51
+ granularity: z.ZodEnum<{
52
+ "1m": "1m";
53
+ "1h": "1h";
54
+ "1d": "1d";
55
+ "5m": "5m";
56
+ "15m": "15m";
57
+ "6h": "6h";
58
+ }>;
59
+ }, z.core.$strip>;
60
+ export declare const SegmentSchema: z.ZodObject<{
61
+ dimension: z.ZodString;
62
+ value: z.ZodString;
63
+ metricValue: z.ZodNumber;
64
+ }, z.core.$strip>;
65
+ export declare const TimeseriesPointSchema: z.ZodObject<{
66
+ t: z.ZodString;
67
+ value: z.ZodNumber;
68
+ }, z.core.$strip>;
69
+ export declare const RolloutEventTypeSchema: z.ZodEnum<{
70
+ rollback: "rollback";
71
+ percentage_change: "percentage_change";
72
+ stage_transition: "stage_transition";
73
+ pause: "pause";
74
+ }>;
75
+ export declare const RolloutEventSchema: z.ZodObject<{
76
+ id: z.ZodString;
77
+ type: z.ZodEnum<{
78
+ rollback: "rollback";
79
+ percentage_change: "percentage_change";
80
+ stage_transition: "stage_transition";
81
+ pause: "pause";
82
+ }>;
83
+ timestamp: z.ZodString;
84
+ details: z.ZodObject<{
85
+ from: z.ZodOptional<z.ZodNumber>;
86
+ to: z.ZodOptional<z.ZodNumber>;
87
+ stage: z.ZodOptional<z.ZodString>;
88
+ reason: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$strip>;
90
+ }, z.core.$strip>;
91
+ export declare const MetricSchema: z.ZodObject<{
92
+ key: z.ZodString;
93
+ label: z.ZodString;
94
+ value: z.ZodNumber;
95
+ unit: z.ZodEnum<{
96
+ score: "score";
97
+ ms: "ms";
98
+ count: "count";
99
+ "%": "%";
100
+ rps: "rps";
101
+ }>;
102
+ baseline: z.ZodObject<{
103
+ value: z.ZodNumber;
104
+ window: z.ZodString;
105
+ }, z.core.$strip>;
106
+ trend: z.ZodObject<{
107
+ direction: z.ZodEnum<{
108
+ flat: "flat";
109
+ up: "up";
110
+ down: "down";
111
+ }>;
112
+ changePercent: z.ZodNumber;
113
+ confidence: z.ZodNumber;
114
+ }, z.core.$strip>;
115
+ threshold: z.ZodObject<{
116
+ warning: z.ZodNumber;
117
+ critical: z.ZodNumber;
118
+ }, z.core.$strip>;
119
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ dimension: z.ZodString;
121
+ value: z.ZodString;
122
+ metricValue: z.ZodNumber;
123
+ }, z.core.$strip>>>;
124
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
+ t: z.ZodString;
126
+ value: z.ZodNumber;
127
+ }, z.core.$strip>>>;
128
+ source: z.ZodEnum<{
129
+ custom: "custom";
130
+ logs: "logs";
131
+ sentry: "sentry";
132
+ datadog: "datadog";
133
+ newrelic: "newrelic";
134
+ }>;
135
+ }, z.core.$strip>;
136
+ export declare const SignalGroupSchema: z.ZodObject<{
137
+ type: z.ZodEnum<{
138
+ errors: "errors";
139
+ usage: "usage";
140
+ logs: "logs";
141
+ stability: "stability";
142
+ performance: "performance";
143
+ infra: "infra";
144
+ }>;
145
+ status: z.ZodEnum<{
146
+ warning: "warning";
147
+ critical: "critical";
148
+ healthy: "healthy";
149
+ }>;
150
+ score: z.ZodNumber;
151
+ metrics: z.ZodArray<z.ZodObject<{
152
+ key: z.ZodString;
153
+ label: z.ZodString;
154
+ value: z.ZodNumber;
155
+ unit: z.ZodEnum<{
156
+ score: "score";
157
+ ms: "ms";
158
+ count: "count";
159
+ "%": "%";
160
+ rps: "rps";
161
+ }>;
162
+ baseline: z.ZodObject<{
163
+ value: z.ZodNumber;
164
+ window: z.ZodString;
165
+ }, z.core.$strip>;
166
+ trend: z.ZodObject<{
167
+ direction: z.ZodEnum<{
168
+ flat: "flat";
169
+ up: "up";
170
+ down: "down";
171
+ }>;
172
+ changePercent: z.ZodNumber;
173
+ confidence: z.ZodNumber;
174
+ }, z.core.$strip>;
175
+ threshold: z.ZodObject<{
176
+ warning: z.ZodNumber;
177
+ critical: z.ZodNumber;
178
+ }, z.core.$strip>;
179
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
180
+ dimension: z.ZodString;
181
+ value: z.ZodString;
182
+ metricValue: z.ZodNumber;
183
+ }, z.core.$strip>>>;
184
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
185
+ t: z.ZodString;
186
+ value: z.ZodNumber;
187
+ }, z.core.$strip>>>;
188
+ source: z.ZodEnum<{
189
+ custom: "custom";
190
+ logs: "logs";
191
+ sentry: "sentry";
192
+ datadog: "datadog";
193
+ newrelic: "newrelic";
194
+ }>;
195
+ }, z.core.$strip>>;
196
+ }, z.core.$strip>;
197
+ export declare const AnomalyTypeSchema: z.ZodEnum<{
198
+ spike: "spike";
199
+ drift: "drift";
200
+ regression: "regression";
201
+ drop: "drop";
202
+ }>;
203
+ export declare const AnomalySeveritySchema: z.ZodEnum<{
204
+ low: "low";
205
+ medium: "medium";
206
+ high: "high";
207
+ }>;
208
+ export declare const AnomalyDetectionMethodSchema: z.ZodEnum<{
209
+ z_score: "z_score";
210
+ cusum: "cusum";
211
+ }>;
212
+ export declare const AnomalySchema: z.ZodObject<{
213
+ id: z.ZodString;
214
+ type: z.ZodEnum<{
215
+ spike: "spike";
216
+ drift: "drift";
217
+ regression: "regression";
218
+ drop: "drop";
219
+ }>;
220
+ signal: z.ZodString;
221
+ severity: z.ZodEnum<{
222
+ low: "low";
223
+ medium: "medium";
224
+ high: "high";
225
+ }>;
226
+ detection: z.ZodObject<{
227
+ method: z.ZodEnum<{
228
+ z_score: "z_score";
229
+ cusum: "cusum";
230
+ }>;
231
+ score: z.ZodNumber;
232
+ threshold: z.ZodNumber;
233
+ baselineWindow: z.ZodString;
234
+ }, z.core.$strip>;
235
+ description: z.ZodString;
236
+ detectedAt: z.ZodString;
237
+ relatedMetrics: z.ZodArray<z.ZodString>;
238
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strip>;
240
+ export declare const CorrelationTypeSchema: z.ZodEnum<{
241
+ rollout_impact: "rollout_impact";
242
+ cross_signal: "cross_signal";
243
+ segment_regression: "segment_regression";
244
+ }>;
245
+ export declare const CorrelationMethodSchema: z.ZodEnum<{
246
+ changepoint: "changepoint";
247
+ statistical: "statistical";
248
+ ml: "ml";
249
+ }>;
250
+ export declare const CorrelationSchema: z.ZodObject<{
251
+ id: z.ZodString;
252
+ type: z.ZodEnum<{
253
+ rollout_impact: "rollout_impact";
254
+ cross_signal: "cross_signal";
255
+ segment_regression: "segment_regression";
256
+ }>;
257
+ confidence: z.ZodNumber;
258
+ cause: z.ZodObject<{
259
+ signal: z.ZodString;
260
+ value: z.ZodNumber;
261
+ }, z.core.$strip>;
262
+ effect: z.ZodObject<{
263
+ signal: z.ZodString;
264
+ changePercent: z.ZodNumber;
265
+ }, z.core.$strip>;
266
+ detectedAt: z.ZodString;
267
+ method: z.ZodEnum<{
268
+ changepoint: "changepoint";
269
+ statistical: "statistical";
270
+ ml: "ml";
271
+ }>;
272
+ }, z.core.$strip>;
273
+ export declare const RecommendationTypeSchema: z.ZodEnum<{
274
+ rollback: "rollback";
275
+ pause_rollout: "pause_rollout";
276
+ increase_rollout: "increase_rollout";
277
+ monitor: "monitor";
278
+ }>;
279
+ export declare const RecommendationSchema: z.ZodObject<{
280
+ id: z.ZodString;
281
+ type: z.ZodEnum<{
282
+ rollback: "rollback";
283
+ pause_rollout: "pause_rollout";
284
+ increase_rollout: "increase_rollout";
285
+ monitor: "monitor";
286
+ }>;
287
+ confidence: z.ZodNumber;
288
+ reason: z.ZodString;
289
+ basedOn: z.ZodArray<z.ZodString>;
290
+ suggestedAction: z.ZodOptional<z.ZodObject<{
291
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
292
+ }, z.core.$strip>>;
293
+ }, z.core.$strip>;
294
+ export declare const IncidentStatusSchema: z.ZodEnum<{
295
+ open: "open";
296
+ resolved: "resolved";
297
+ }>;
298
+ export declare const IncidentSeveritySchema: z.ZodEnum<{
299
+ warning: "warning";
300
+ critical: "critical";
301
+ }>;
302
+ export declare const IncidentSummarySchema: z.ZodObject<{
303
+ id: z.ZodString;
304
+ status: z.ZodEnum<{
305
+ open: "open";
306
+ resolved: "resolved";
307
+ }>;
308
+ severity: z.ZodEnum<{
309
+ warning: "warning";
310
+ critical: "critical";
311
+ }>;
312
+ title: z.ZodString;
313
+ startedAt: z.ZodString;
314
+ resolvedAt: z.ZodOptional<z.ZodString>;
315
+ affectedSignals: z.ZodArray<z.ZodString>;
316
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
+ dimension: z.ZodString;
318
+ value: z.ZodString;
319
+ metricValue: z.ZodNumber;
320
+ }, z.core.$strip>>>;
321
+ source: z.ZodEnum<{
322
+ custom: "custom";
323
+ logs: "logs";
324
+ sentry: "sentry";
325
+ datadog: "datadog";
326
+ newrelic: "newrelic";
327
+ }>;
328
+ }, z.core.$strip>;
329
+ export declare const RolloutPhaseSchema: z.ZodEnum<{
330
+ canary: "canary";
331
+ scaling: "scaling";
332
+ full: "full";
333
+ }>;
334
+ export declare const RolloutStrategySchema: z.ZodEnum<{
335
+ blue_green: "blue_green";
336
+ rolling: "rolling";
337
+ canary: "canary";
338
+ }>;
339
+ export declare const RolloutContextSchema: z.ZodObject<{
340
+ currentPercentage: z.ZodNumber;
341
+ strategy: z.ZodEnum<{
342
+ blue_green: "blue_green";
343
+ rolling: "rolling";
344
+ canary: "canary";
345
+ }>;
346
+ events: z.ZodArray<z.ZodObject<{
347
+ id: z.ZodString;
348
+ type: z.ZodEnum<{
349
+ rollback: "rollback";
350
+ percentage_change: "percentage_change";
351
+ stage_transition: "stage_transition";
352
+ pause: "pause";
353
+ }>;
354
+ timestamp: z.ZodString;
355
+ details: z.ZodObject<{
356
+ from: z.ZodOptional<z.ZodNumber>;
357
+ to: z.ZodOptional<z.ZodNumber>;
358
+ stage: z.ZodOptional<z.ZodString>;
359
+ reason: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strip>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ export declare const SignalsSnapshotSchema: z.ZodObject<{
364
+ id: z.ZodString;
365
+ releaseId: z.ZodString;
366
+ appId: z.ZodString;
367
+ orgId: z.ZodString;
368
+ environment: z.ZodString;
369
+ window: z.ZodObject<{
370
+ start: z.ZodString;
371
+ end: z.ZodString;
372
+ granularity: z.ZodEnum<{
373
+ "1m": "1m";
374
+ "1h": "1h";
375
+ "1d": "1d";
376
+ "5m": "5m";
377
+ "15m": "15m";
378
+ "6h": "6h";
379
+ }>;
380
+ }, z.core.$strip>;
381
+ healthScore: z.ZodNumber;
382
+ status: z.ZodEnum<{
383
+ critical: "critical";
384
+ healthy: "healthy";
385
+ degraded: "degraded";
386
+ }>;
387
+ signals: z.ZodArray<z.ZodObject<{
388
+ type: z.ZodEnum<{
389
+ errors: "errors";
390
+ usage: "usage";
391
+ logs: "logs";
392
+ stability: "stability";
393
+ performance: "performance";
394
+ infra: "infra";
395
+ }>;
396
+ status: z.ZodEnum<{
397
+ warning: "warning";
398
+ critical: "critical";
399
+ healthy: "healthy";
400
+ }>;
401
+ score: z.ZodNumber;
402
+ metrics: z.ZodArray<z.ZodObject<{
403
+ key: z.ZodString;
404
+ label: z.ZodString;
405
+ value: z.ZodNumber;
406
+ unit: z.ZodEnum<{
407
+ score: "score";
408
+ ms: "ms";
409
+ count: "count";
410
+ "%": "%";
411
+ rps: "rps";
412
+ }>;
413
+ baseline: z.ZodObject<{
414
+ value: z.ZodNumber;
415
+ window: z.ZodString;
416
+ }, z.core.$strip>;
417
+ trend: z.ZodObject<{
418
+ direction: z.ZodEnum<{
419
+ flat: "flat";
420
+ up: "up";
421
+ down: "down";
422
+ }>;
423
+ changePercent: z.ZodNumber;
424
+ confidence: z.ZodNumber;
425
+ }, z.core.$strip>;
426
+ threshold: z.ZodObject<{
427
+ warning: z.ZodNumber;
428
+ critical: z.ZodNumber;
429
+ }, z.core.$strip>;
430
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
431
+ dimension: z.ZodString;
432
+ value: z.ZodString;
433
+ metricValue: z.ZodNumber;
434
+ }, z.core.$strip>>>;
435
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
436
+ t: z.ZodString;
437
+ value: z.ZodNumber;
438
+ }, z.core.$strip>>>;
439
+ source: z.ZodEnum<{
440
+ custom: "custom";
441
+ logs: "logs";
442
+ sentry: "sentry";
443
+ datadog: "datadog";
444
+ newrelic: "newrelic";
445
+ }>;
446
+ }, z.core.$strip>>;
447
+ }, z.core.$strip>>;
448
+ anomalies: z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ type: z.ZodEnum<{
451
+ spike: "spike";
452
+ drift: "drift";
453
+ regression: "regression";
454
+ drop: "drop";
455
+ }>;
456
+ signal: z.ZodString;
457
+ severity: z.ZodEnum<{
458
+ low: "low";
459
+ medium: "medium";
460
+ high: "high";
461
+ }>;
462
+ detection: z.ZodObject<{
463
+ method: z.ZodEnum<{
464
+ z_score: "z_score";
465
+ cusum: "cusum";
466
+ }>;
467
+ score: z.ZodNumber;
468
+ threshold: z.ZodNumber;
469
+ baselineWindow: z.ZodString;
470
+ }, z.core.$strip>;
471
+ description: z.ZodString;
472
+ detectedAt: z.ZodString;
473
+ relatedMetrics: z.ZodArray<z.ZodString>;
474
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
475
+ }, z.core.$strip>>;
476
+ correlations: z.ZodArray<z.ZodObject<{
477
+ id: z.ZodString;
478
+ type: z.ZodEnum<{
479
+ rollout_impact: "rollout_impact";
480
+ cross_signal: "cross_signal";
481
+ segment_regression: "segment_regression";
482
+ }>;
483
+ confidence: z.ZodNumber;
484
+ cause: z.ZodObject<{
485
+ signal: z.ZodString;
486
+ value: z.ZodNumber;
487
+ }, z.core.$strip>;
488
+ effect: z.ZodObject<{
489
+ signal: z.ZodString;
490
+ changePercent: z.ZodNumber;
491
+ }, z.core.$strip>;
492
+ detectedAt: z.ZodString;
493
+ method: z.ZodEnum<{
494
+ changepoint: "changepoint";
495
+ statistical: "statistical";
496
+ ml: "ml";
497
+ }>;
498
+ }, z.core.$strip>>;
499
+ incidents: z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ status: z.ZodEnum<{
502
+ open: "open";
503
+ resolved: "resolved";
504
+ }>;
505
+ severity: z.ZodEnum<{
506
+ warning: "warning";
507
+ critical: "critical";
508
+ }>;
509
+ title: z.ZodString;
510
+ startedAt: z.ZodString;
511
+ resolvedAt: z.ZodOptional<z.ZodString>;
512
+ affectedSignals: z.ZodArray<z.ZodString>;
513
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
+ dimension: z.ZodString;
515
+ value: z.ZodString;
516
+ metricValue: z.ZodNumber;
517
+ }, z.core.$strip>>>;
518
+ source: z.ZodEnum<{
519
+ custom: "custom";
520
+ logs: "logs";
521
+ sentry: "sentry";
522
+ datadog: "datadog";
523
+ newrelic: "newrelic";
524
+ }>;
525
+ }, z.core.$strip>>;
526
+ recommendations: z.ZodArray<z.ZodObject<{
527
+ id: z.ZodString;
528
+ type: z.ZodEnum<{
529
+ rollback: "rollback";
530
+ pause_rollout: "pause_rollout";
531
+ increase_rollout: "increase_rollout";
532
+ monitor: "monitor";
533
+ }>;
534
+ confidence: z.ZodNumber;
535
+ reason: z.ZodString;
536
+ basedOn: z.ZodArray<z.ZodString>;
537
+ suggestedAction: z.ZodOptional<z.ZodObject<{
538
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
539
+ }, z.core.$strip>>;
540
+ }, z.core.$strip>>;
541
+ rolloutContext: z.ZodObject<{
542
+ currentPercentage: z.ZodNumber;
543
+ strategy: z.ZodEnum<{
544
+ blue_green: "blue_green";
545
+ rolling: "rolling";
546
+ canary: "canary";
547
+ }>;
548
+ events: z.ZodArray<z.ZodObject<{
549
+ id: z.ZodString;
550
+ type: z.ZodEnum<{
551
+ rollback: "rollback";
552
+ percentage_change: "percentage_change";
553
+ stage_transition: "stage_transition";
554
+ pause: "pause";
555
+ }>;
556
+ timestamp: z.ZodString;
557
+ details: z.ZodObject<{
558
+ from: z.ZodOptional<z.ZodNumber>;
559
+ to: z.ZodOptional<z.ZodNumber>;
560
+ stage: z.ZodOptional<z.ZodString>;
561
+ reason: z.ZodOptional<z.ZodString>;
562
+ }, z.core.$strip>;
563
+ }, z.core.$strip>>;
564
+ }, z.core.$strip>;
565
+ metadata: z.ZodObject<{
566
+ snapshotId: z.ZodString;
567
+ sampleSize: z.ZodNumber;
568
+ dataSources: z.ZodArray<z.ZodEnum<{
569
+ custom: "custom";
570
+ logs: "logs";
571
+ sentry: "sentry";
572
+ datadog: "datadog";
573
+ newrelic: "newrelic";
574
+ }>>;
575
+ computedAt: z.ZodString;
576
+ staleAfter: z.ZodString;
577
+ }, z.core.$strip>;
578
+ }, z.core.$strip>;
579
+ export declare const SignalWebhookPayloadSchema: z.ZodObject<{
580
+ releaseId: z.ZodString;
581
+ status: z.ZodEnum<{
582
+ critical: "critical";
583
+ healthy: "healthy";
584
+ degraded: "degraded";
585
+ }>;
586
+ healthScore: z.ZodNumber;
587
+ action: z.ZodOptional<z.ZodEnum<{
588
+ pause_recommended: "pause_recommended";
589
+ rollback_recommended: "rollback_recommended";
590
+ }>>;
591
+ confidence: z.ZodOptional<z.ZodNumber>;
592
+ trigger: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strip>;
594
+ export declare const SIGNAL_EVENT_TYPES: readonly ["signals.critical", "signals.degraded", "signals.recovered", "signals.anomaly.high", "signals.recommendation.rollback", "signals.recommendation.pause"];
595
+ export type DataSource = z.infer<typeof DataSourceSchema>;
596
+ export type SignalGroupType = z.infer<typeof SignalGroupTypeSchema>;
597
+ export type SignalStatus = z.infer<typeof SignalStatusSchema>;
598
+ export type ReleaseHealthStatus = z.infer<typeof ReleaseHealthStatusSchema>;
599
+ export type Granularity = z.infer<typeof GranularitySchema>;
600
+ export type MetricUnit = z.infer<typeof MetricUnitSchema>;
601
+ export type TimeWindow = z.infer<typeof TimeWindowSchema>;
602
+ export type Segment = z.infer<typeof SegmentSchema>;
603
+ export type TimeseriesPoint = z.infer<typeof TimeseriesPointSchema>;
604
+ export type RolloutEventType = z.infer<typeof RolloutEventTypeSchema>;
605
+ export type RolloutEvent = z.infer<typeof RolloutEventSchema>;
606
+ export type Metric = z.infer<typeof MetricSchema>;
607
+ export type SignalGroup = z.infer<typeof SignalGroupSchema>;
608
+ export type AnomalyType = z.infer<typeof AnomalyTypeSchema>;
609
+ export type AnomalySeverity = z.infer<typeof AnomalySeveritySchema>;
610
+ export type AnomalyDetectionMethod = z.infer<typeof AnomalyDetectionMethodSchema>;
611
+ export type Anomaly = z.infer<typeof AnomalySchema>;
612
+ export type CorrelationType = z.infer<typeof CorrelationTypeSchema>;
613
+ export type CorrelationMethod = z.infer<typeof CorrelationMethodSchema>;
614
+ export type Correlation = z.infer<typeof CorrelationSchema>;
615
+ export type RecommendationType = z.infer<typeof RecommendationTypeSchema>;
616
+ export type Recommendation = z.infer<typeof RecommendationSchema>;
617
+ export type IncidentStatus = z.infer<typeof IncidentStatusSchema>;
618
+ export type IncidentSeverity = z.infer<typeof IncidentSeveritySchema>;
619
+ export type IncidentSummary = z.infer<typeof IncidentSummarySchema>;
620
+ export type RolloutPhase = z.infer<typeof RolloutPhaseSchema>;
621
+ export type RolloutStrategy = z.infer<typeof RolloutStrategySchema>;
622
+ export type RolloutContext = z.infer<typeof RolloutContextSchema>;
623
+ export type SignalsSnapshot = z.infer<typeof SignalsSnapshotSchema>;
624
+ export type SignalWebhookPayload = z.infer<typeof SignalWebhookPayloadSchema>;
625
+ export type SignalEventType = (typeof SIGNAL_EVENT_TYPES)[number];
626
+ //# sourceMappingURL=domain.schema.d.ts.map
@@ -0,0 +1 @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