@apollo-deploy/schemas 1.0.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 (48) 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/request.schema.d.ts +42 -0
  14. package/dist/definitions/artifacts/request.schema.d.ts.map +1 -1
  15. package/dist/definitions/artifacts/request.schema.js +14 -0
  16. package/dist/definitions/artifacts/request.schema.js.map +1 -1
  17. package/dist/definitions/audit-log/domain.schema.d.ts +3 -3
  18. package/dist/definitions/audit-log/request.schema.d.ts +6 -6
  19. package/dist/definitions/index.d.ts +9 -2
  20. package/dist/definitions/index.d.ts.map +1 -1
  21. package/dist/definitions/index.js +15 -2
  22. package/dist/definitions/index.js.map +1 -1
  23. package/dist/definitions/integrations/api.schema.d.ts +69 -69
  24. package/dist/definitions/integrations/api.schema.d.ts.map +1 -1
  25. package/dist/definitions/integrations/api.schema.js +37 -37
  26. package/dist/definitions/integrations/api.schema.js.map +1 -1
  27. package/dist/definitions/integrations/domain.schema.d.ts +6 -6
  28. package/dist/definitions/integrations/response.schema.d.ts +3 -3
  29. package/dist/definitions/marketplace/domain.schema.d.ts +13 -13
  30. package/dist/definitions/marketplace/request.schema.d.ts +3 -3
  31. package/dist/definitions/marketplace/response.schema.d.ts +21 -21
  32. package/dist/definitions/signals/domain.schema.d.ts +626 -0
  33. package/dist/definitions/signals/domain.schema.d.ts.map +1 -0
  34. package/dist/definitions/signals/domain.schema.js +248 -0
  35. package/dist/definitions/signals/domain.schema.js.map +1 -0
  36. package/dist/definitions/signals/index.d.ts +9 -0
  37. package/dist/definitions/signals/index.d.ts.map +1 -0
  38. package/dist/definitions/signals/index.js +12 -0
  39. package/dist/definitions/signals/index.js.map +1 -0
  40. package/dist/definitions/signals/request.schema.d.ts +118 -0
  41. package/dist/definitions/signals/request.schema.d.ts.map +1 -0
  42. package/dist/definitions/signals/request.schema.js +80 -0
  43. package/dist/definitions/signals/request.schema.js.map +1 -0
  44. package/dist/definitions/signals/response.schema.d.ts +1073 -0
  45. package/dist/definitions/signals/response.schema.d.ts.map +1 -0
  46. package/dist/definitions/signals/response.schema.js +85 -0
  47. package/dist/definitions/signals/response.schema.js.map +1 -0
  48. package/package.json +1 -1
@@ -0,0 +1,1073 @@
1
+ /**
2
+ * Signals Response Schemas
3
+ *
4
+ * Response envelopes for all Signals API endpoints.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * The primary top-level response for signal health snapshots.
9
+ * Mirrors SignalsSnapshot but is the canonical response envelope type.
10
+ */
11
+ export declare const SignalsResponseSchema: z.ZodObject<{
12
+ id: z.ZodString;
13
+ releaseId: z.ZodString;
14
+ appId: z.ZodString;
15
+ orgId: z.ZodString;
16
+ environment: z.ZodString;
17
+ window: z.ZodObject<{
18
+ start: z.ZodString;
19
+ end: z.ZodString;
20
+ granularity: z.ZodEnum<{
21
+ "1m": "1m";
22
+ "1h": "1h";
23
+ "1d": "1d";
24
+ "5m": "5m";
25
+ "15m": "15m";
26
+ "6h": "6h";
27
+ }>;
28
+ }, z.core.$strip>;
29
+ healthScore: z.ZodNumber;
30
+ status: z.ZodEnum<{
31
+ critical: "critical";
32
+ healthy: "healthy";
33
+ degraded: "degraded";
34
+ }>;
35
+ signals: z.ZodArray<z.ZodObject<{
36
+ type: z.ZodEnum<{
37
+ errors: "errors";
38
+ usage: "usage";
39
+ logs: "logs";
40
+ stability: "stability";
41
+ performance: "performance";
42
+ infra: "infra";
43
+ }>;
44
+ status: z.ZodEnum<{
45
+ warning: "warning";
46
+ critical: "critical";
47
+ healthy: "healthy";
48
+ }>;
49
+ score: z.ZodNumber;
50
+ metrics: z.ZodArray<z.ZodObject<{
51
+ key: z.ZodString;
52
+ label: z.ZodString;
53
+ value: z.ZodNumber;
54
+ unit: z.ZodEnum<{
55
+ score: "score";
56
+ ms: "ms";
57
+ count: "count";
58
+ "%": "%";
59
+ rps: "rps";
60
+ }>;
61
+ baseline: z.ZodObject<{
62
+ value: z.ZodNumber;
63
+ window: z.ZodString;
64
+ }, z.core.$strip>;
65
+ trend: z.ZodObject<{
66
+ direction: z.ZodEnum<{
67
+ flat: "flat";
68
+ up: "up";
69
+ down: "down";
70
+ }>;
71
+ changePercent: z.ZodNumber;
72
+ confidence: z.ZodNumber;
73
+ }, z.core.$strip>;
74
+ threshold: z.ZodObject<{
75
+ warning: z.ZodNumber;
76
+ critical: z.ZodNumber;
77
+ }, z.core.$strip>;
78
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ dimension: z.ZodString;
80
+ value: z.ZodString;
81
+ metricValue: z.ZodNumber;
82
+ }, z.core.$strip>>>;
83
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ t: z.ZodString;
85
+ value: z.ZodNumber;
86
+ }, z.core.$strip>>>;
87
+ source: z.ZodEnum<{
88
+ custom: "custom";
89
+ logs: "logs";
90
+ sentry: "sentry";
91
+ datadog: "datadog";
92
+ newrelic: "newrelic";
93
+ }>;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>>;
96
+ anomalies: z.ZodArray<z.ZodObject<{
97
+ id: z.ZodString;
98
+ type: z.ZodEnum<{
99
+ spike: "spike";
100
+ drift: "drift";
101
+ regression: "regression";
102
+ drop: "drop";
103
+ }>;
104
+ signal: z.ZodString;
105
+ severity: z.ZodEnum<{
106
+ low: "low";
107
+ medium: "medium";
108
+ high: "high";
109
+ }>;
110
+ detection: z.ZodObject<{
111
+ method: z.ZodEnum<{
112
+ z_score: "z_score";
113
+ cusum: "cusum";
114
+ }>;
115
+ score: z.ZodNumber;
116
+ threshold: z.ZodNumber;
117
+ baselineWindow: z.ZodString;
118
+ }, z.core.$strip>;
119
+ description: z.ZodString;
120
+ detectedAt: z.ZodString;
121
+ relatedMetrics: z.ZodArray<z.ZodString>;
122
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>>;
124
+ correlations: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ type: z.ZodEnum<{
127
+ rollout_impact: "rollout_impact";
128
+ cross_signal: "cross_signal";
129
+ segment_regression: "segment_regression";
130
+ }>;
131
+ confidence: z.ZodNumber;
132
+ cause: z.ZodObject<{
133
+ signal: z.ZodString;
134
+ value: z.ZodNumber;
135
+ }, z.core.$strip>;
136
+ effect: z.ZodObject<{
137
+ signal: z.ZodString;
138
+ changePercent: z.ZodNumber;
139
+ }, z.core.$strip>;
140
+ detectedAt: z.ZodString;
141
+ method: z.ZodEnum<{
142
+ changepoint: "changepoint";
143
+ statistical: "statistical";
144
+ ml: "ml";
145
+ }>;
146
+ }, z.core.$strip>>;
147
+ incidents: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodString;
149
+ status: z.ZodEnum<{
150
+ open: "open";
151
+ resolved: "resolved";
152
+ }>;
153
+ severity: z.ZodEnum<{
154
+ warning: "warning";
155
+ critical: "critical";
156
+ }>;
157
+ title: z.ZodString;
158
+ startedAt: z.ZodString;
159
+ resolvedAt: z.ZodOptional<z.ZodString>;
160
+ affectedSignals: z.ZodArray<z.ZodString>;
161
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
+ dimension: z.ZodString;
163
+ value: z.ZodString;
164
+ metricValue: z.ZodNumber;
165
+ }, z.core.$strip>>>;
166
+ source: z.ZodEnum<{
167
+ custom: "custom";
168
+ logs: "logs";
169
+ sentry: "sentry";
170
+ datadog: "datadog";
171
+ newrelic: "newrelic";
172
+ }>;
173
+ }, z.core.$strip>>;
174
+ recommendations: z.ZodArray<z.ZodObject<{
175
+ id: z.ZodString;
176
+ type: z.ZodEnum<{
177
+ rollback: "rollback";
178
+ pause_rollout: "pause_rollout";
179
+ increase_rollout: "increase_rollout";
180
+ monitor: "monitor";
181
+ }>;
182
+ confidence: z.ZodNumber;
183
+ reason: z.ZodString;
184
+ basedOn: z.ZodArray<z.ZodString>;
185
+ suggestedAction: z.ZodOptional<z.ZodObject<{
186
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
187
+ }, z.core.$strip>>;
188
+ }, z.core.$strip>>;
189
+ rolloutContext: z.ZodObject<{
190
+ currentPercentage: z.ZodNumber;
191
+ strategy: z.ZodEnum<{
192
+ blue_green: "blue_green";
193
+ rolling: "rolling";
194
+ canary: "canary";
195
+ }>;
196
+ events: z.ZodArray<z.ZodObject<{
197
+ id: z.ZodString;
198
+ type: z.ZodEnum<{
199
+ rollback: "rollback";
200
+ percentage_change: "percentage_change";
201
+ stage_transition: "stage_transition";
202
+ pause: "pause";
203
+ }>;
204
+ timestamp: z.ZodString;
205
+ details: z.ZodObject<{
206
+ from: z.ZodOptional<z.ZodNumber>;
207
+ to: z.ZodOptional<z.ZodNumber>;
208
+ stage: z.ZodOptional<z.ZodString>;
209
+ reason: z.ZodOptional<z.ZodString>;
210
+ }, z.core.$strip>;
211
+ }, z.core.$strip>>;
212
+ }, z.core.$strip>;
213
+ metadata: z.ZodObject<{
214
+ snapshotId: z.ZodString;
215
+ sampleSize: z.ZodNumber;
216
+ dataSources: z.ZodArray<z.ZodEnum<{
217
+ custom: "custom";
218
+ logs: "logs";
219
+ sentry: "sentry";
220
+ datadog: "datadog";
221
+ newrelic: "newrelic";
222
+ }>>;
223
+ computedAt: z.ZodString;
224
+ staleAfter: z.ZodString;
225
+ }, z.core.$strip>;
226
+ }, z.core.$strip>;
227
+ export declare const SignalsHistoryResponseSchema: z.ZodObject<{
228
+ snapshots: z.ZodArray<z.ZodObject<{
229
+ id: z.ZodString;
230
+ releaseId: z.ZodString;
231
+ appId: z.ZodString;
232
+ orgId: z.ZodString;
233
+ environment: z.ZodString;
234
+ window: z.ZodObject<{
235
+ start: z.ZodString;
236
+ end: z.ZodString;
237
+ granularity: z.ZodEnum<{
238
+ "1m": "1m";
239
+ "1h": "1h";
240
+ "1d": "1d";
241
+ "5m": "5m";
242
+ "15m": "15m";
243
+ "6h": "6h";
244
+ }>;
245
+ }, z.core.$strip>;
246
+ healthScore: z.ZodNumber;
247
+ status: z.ZodEnum<{
248
+ critical: "critical";
249
+ healthy: "healthy";
250
+ degraded: "degraded";
251
+ }>;
252
+ signals: z.ZodArray<z.ZodObject<{
253
+ type: z.ZodEnum<{
254
+ errors: "errors";
255
+ usage: "usage";
256
+ logs: "logs";
257
+ stability: "stability";
258
+ performance: "performance";
259
+ infra: "infra";
260
+ }>;
261
+ status: z.ZodEnum<{
262
+ warning: "warning";
263
+ critical: "critical";
264
+ healthy: "healthy";
265
+ }>;
266
+ score: z.ZodNumber;
267
+ metrics: z.ZodArray<z.ZodObject<{
268
+ key: z.ZodString;
269
+ label: z.ZodString;
270
+ value: z.ZodNumber;
271
+ unit: z.ZodEnum<{
272
+ score: "score";
273
+ ms: "ms";
274
+ count: "count";
275
+ "%": "%";
276
+ rps: "rps";
277
+ }>;
278
+ baseline: z.ZodObject<{
279
+ value: z.ZodNumber;
280
+ window: z.ZodString;
281
+ }, z.core.$strip>;
282
+ trend: z.ZodObject<{
283
+ direction: z.ZodEnum<{
284
+ flat: "flat";
285
+ up: "up";
286
+ down: "down";
287
+ }>;
288
+ changePercent: z.ZodNumber;
289
+ confidence: z.ZodNumber;
290
+ }, z.core.$strip>;
291
+ threshold: z.ZodObject<{
292
+ warning: z.ZodNumber;
293
+ critical: z.ZodNumber;
294
+ }, z.core.$strip>;
295
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
+ dimension: z.ZodString;
297
+ value: z.ZodString;
298
+ metricValue: z.ZodNumber;
299
+ }, z.core.$strip>>>;
300
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
301
+ t: z.ZodString;
302
+ value: z.ZodNumber;
303
+ }, z.core.$strip>>>;
304
+ source: z.ZodEnum<{
305
+ custom: "custom";
306
+ logs: "logs";
307
+ sentry: "sentry";
308
+ datadog: "datadog";
309
+ newrelic: "newrelic";
310
+ }>;
311
+ }, z.core.$strip>>;
312
+ }, z.core.$strip>>;
313
+ anomalies: z.ZodArray<z.ZodObject<{
314
+ id: z.ZodString;
315
+ type: z.ZodEnum<{
316
+ spike: "spike";
317
+ drift: "drift";
318
+ regression: "regression";
319
+ drop: "drop";
320
+ }>;
321
+ signal: z.ZodString;
322
+ severity: z.ZodEnum<{
323
+ low: "low";
324
+ medium: "medium";
325
+ high: "high";
326
+ }>;
327
+ detection: z.ZodObject<{
328
+ method: z.ZodEnum<{
329
+ z_score: "z_score";
330
+ cusum: "cusum";
331
+ }>;
332
+ score: z.ZodNumber;
333
+ threshold: z.ZodNumber;
334
+ baselineWindow: z.ZodString;
335
+ }, z.core.$strip>;
336
+ description: z.ZodString;
337
+ detectedAt: z.ZodString;
338
+ relatedMetrics: z.ZodArray<z.ZodString>;
339
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>>;
341
+ correlations: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ type: z.ZodEnum<{
344
+ rollout_impact: "rollout_impact";
345
+ cross_signal: "cross_signal";
346
+ segment_regression: "segment_regression";
347
+ }>;
348
+ confidence: z.ZodNumber;
349
+ cause: z.ZodObject<{
350
+ signal: z.ZodString;
351
+ value: z.ZodNumber;
352
+ }, z.core.$strip>;
353
+ effect: z.ZodObject<{
354
+ signal: z.ZodString;
355
+ changePercent: z.ZodNumber;
356
+ }, z.core.$strip>;
357
+ detectedAt: z.ZodString;
358
+ method: z.ZodEnum<{
359
+ changepoint: "changepoint";
360
+ statistical: "statistical";
361
+ ml: "ml";
362
+ }>;
363
+ }, z.core.$strip>>;
364
+ incidents: z.ZodArray<z.ZodObject<{
365
+ id: z.ZodString;
366
+ status: z.ZodEnum<{
367
+ open: "open";
368
+ resolved: "resolved";
369
+ }>;
370
+ severity: z.ZodEnum<{
371
+ warning: "warning";
372
+ critical: "critical";
373
+ }>;
374
+ title: z.ZodString;
375
+ startedAt: z.ZodString;
376
+ resolvedAt: z.ZodOptional<z.ZodString>;
377
+ affectedSignals: z.ZodArray<z.ZodString>;
378
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
+ dimension: z.ZodString;
380
+ value: z.ZodString;
381
+ metricValue: z.ZodNumber;
382
+ }, z.core.$strip>>>;
383
+ source: z.ZodEnum<{
384
+ custom: "custom";
385
+ logs: "logs";
386
+ sentry: "sentry";
387
+ datadog: "datadog";
388
+ newrelic: "newrelic";
389
+ }>;
390
+ }, z.core.$strip>>;
391
+ recommendations: z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ type: z.ZodEnum<{
394
+ rollback: "rollback";
395
+ pause_rollout: "pause_rollout";
396
+ increase_rollout: "increase_rollout";
397
+ monitor: "monitor";
398
+ }>;
399
+ confidence: z.ZodNumber;
400
+ reason: z.ZodString;
401
+ basedOn: z.ZodArray<z.ZodString>;
402
+ suggestedAction: z.ZodOptional<z.ZodObject<{
403
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
404
+ }, z.core.$strip>>;
405
+ }, z.core.$strip>>;
406
+ rolloutContext: z.ZodObject<{
407
+ currentPercentage: z.ZodNumber;
408
+ strategy: z.ZodEnum<{
409
+ blue_green: "blue_green";
410
+ rolling: "rolling";
411
+ canary: "canary";
412
+ }>;
413
+ events: z.ZodArray<z.ZodObject<{
414
+ id: z.ZodString;
415
+ type: z.ZodEnum<{
416
+ rollback: "rollback";
417
+ percentage_change: "percentage_change";
418
+ stage_transition: "stage_transition";
419
+ pause: "pause";
420
+ }>;
421
+ timestamp: z.ZodString;
422
+ details: z.ZodObject<{
423
+ from: z.ZodOptional<z.ZodNumber>;
424
+ to: z.ZodOptional<z.ZodNumber>;
425
+ stage: z.ZodOptional<z.ZodString>;
426
+ reason: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$strip>;
428
+ }, z.core.$strip>>;
429
+ }, z.core.$strip>;
430
+ metadata: z.ZodObject<{
431
+ snapshotId: z.ZodString;
432
+ sampleSize: z.ZodNumber;
433
+ dataSources: z.ZodArray<z.ZodEnum<{
434
+ custom: "custom";
435
+ logs: "logs";
436
+ sentry: "sentry";
437
+ datadog: "datadog";
438
+ newrelic: "newrelic";
439
+ }>>;
440
+ computedAt: z.ZodString;
441
+ staleAfter: z.ZodString;
442
+ }, z.core.$strip>;
443
+ }, z.core.$strip>>;
444
+ }, z.core.$strip>;
445
+ export declare const MetricDeltaSchema: z.ZodObject<{
446
+ key: z.ZodString;
447
+ baseValue: z.ZodNumber;
448
+ targetValue: z.ZodNumber;
449
+ deltaPercent: z.ZodNumber;
450
+ }, z.core.$strip>;
451
+ export declare const SignalsCompareResponseSchema: z.ZodObject<{
452
+ base: z.ZodObject<{
453
+ id: z.ZodString;
454
+ releaseId: z.ZodString;
455
+ appId: z.ZodString;
456
+ orgId: z.ZodString;
457
+ environment: z.ZodString;
458
+ window: z.ZodObject<{
459
+ start: z.ZodString;
460
+ end: z.ZodString;
461
+ granularity: z.ZodEnum<{
462
+ "1m": "1m";
463
+ "1h": "1h";
464
+ "1d": "1d";
465
+ "5m": "5m";
466
+ "15m": "15m";
467
+ "6h": "6h";
468
+ }>;
469
+ }, z.core.$strip>;
470
+ healthScore: z.ZodNumber;
471
+ status: z.ZodEnum<{
472
+ critical: "critical";
473
+ healthy: "healthy";
474
+ degraded: "degraded";
475
+ }>;
476
+ signals: z.ZodArray<z.ZodObject<{
477
+ type: z.ZodEnum<{
478
+ errors: "errors";
479
+ usage: "usage";
480
+ logs: "logs";
481
+ stability: "stability";
482
+ performance: "performance";
483
+ infra: "infra";
484
+ }>;
485
+ status: z.ZodEnum<{
486
+ warning: "warning";
487
+ critical: "critical";
488
+ healthy: "healthy";
489
+ }>;
490
+ score: z.ZodNumber;
491
+ metrics: z.ZodArray<z.ZodObject<{
492
+ key: z.ZodString;
493
+ label: z.ZodString;
494
+ value: z.ZodNumber;
495
+ unit: z.ZodEnum<{
496
+ score: "score";
497
+ ms: "ms";
498
+ count: "count";
499
+ "%": "%";
500
+ rps: "rps";
501
+ }>;
502
+ baseline: z.ZodObject<{
503
+ value: z.ZodNumber;
504
+ window: z.ZodString;
505
+ }, z.core.$strip>;
506
+ trend: z.ZodObject<{
507
+ direction: z.ZodEnum<{
508
+ flat: "flat";
509
+ up: "up";
510
+ down: "down";
511
+ }>;
512
+ changePercent: z.ZodNumber;
513
+ confidence: z.ZodNumber;
514
+ }, z.core.$strip>;
515
+ threshold: z.ZodObject<{
516
+ warning: z.ZodNumber;
517
+ critical: z.ZodNumber;
518
+ }, z.core.$strip>;
519
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
520
+ dimension: z.ZodString;
521
+ value: z.ZodString;
522
+ metricValue: z.ZodNumber;
523
+ }, z.core.$strip>>>;
524
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
525
+ t: z.ZodString;
526
+ value: z.ZodNumber;
527
+ }, z.core.$strip>>>;
528
+ source: z.ZodEnum<{
529
+ custom: "custom";
530
+ logs: "logs";
531
+ sentry: "sentry";
532
+ datadog: "datadog";
533
+ newrelic: "newrelic";
534
+ }>;
535
+ }, z.core.$strip>>;
536
+ }, z.core.$strip>>;
537
+ anomalies: z.ZodArray<z.ZodObject<{
538
+ id: z.ZodString;
539
+ type: z.ZodEnum<{
540
+ spike: "spike";
541
+ drift: "drift";
542
+ regression: "regression";
543
+ drop: "drop";
544
+ }>;
545
+ signal: z.ZodString;
546
+ severity: z.ZodEnum<{
547
+ low: "low";
548
+ medium: "medium";
549
+ high: "high";
550
+ }>;
551
+ detection: z.ZodObject<{
552
+ method: z.ZodEnum<{
553
+ z_score: "z_score";
554
+ cusum: "cusum";
555
+ }>;
556
+ score: z.ZodNumber;
557
+ threshold: z.ZodNumber;
558
+ baselineWindow: z.ZodString;
559
+ }, z.core.$strip>;
560
+ description: z.ZodString;
561
+ detectedAt: z.ZodString;
562
+ relatedMetrics: z.ZodArray<z.ZodString>;
563
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
564
+ }, z.core.$strip>>;
565
+ correlations: z.ZodArray<z.ZodObject<{
566
+ id: z.ZodString;
567
+ type: z.ZodEnum<{
568
+ rollout_impact: "rollout_impact";
569
+ cross_signal: "cross_signal";
570
+ segment_regression: "segment_regression";
571
+ }>;
572
+ confidence: z.ZodNumber;
573
+ cause: z.ZodObject<{
574
+ signal: z.ZodString;
575
+ value: z.ZodNumber;
576
+ }, z.core.$strip>;
577
+ effect: z.ZodObject<{
578
+ signal: z.ZodString;
579
+ changePercent: z.ZodNumber;
580
+ }, z.core.$strip>;
581
+ detectedAt: z.ZodString;
582
+ method: z.ZodEnum<{
583
+ changepoint: "changepoint";
584
+ statistical: "statistical";
585
+ ml: "ml";
586
+ }>;
587
+ }, z.core.$strip>>;
588
+ incidents: z.ZodArray<z.ZodObject<{
589
+ id: z.ZodString;
590
+ status: z.ZodEnum<{
591
+ open: "open";
592
+ resolved: "resolved";
593
+ }>;
594
+ severity: z.ZodEnum<{
595
+ warning: "warning";
596
+ critical: "critical";
597
+ }>;
598
+ title: z.ZodString;
599
+ startedAt: z.ZodString;
600
+ resolvedAt: z.ZodOptional<z.ZodString>;
601
+ affectedSignals: z.ZodArray<z.ZodString>;
602
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
603
+ dimension: z.ZodString;
604
+ value: z.ZodString;
605
+ metricValue: z.ZodNumber;
606
+ }, z.core.$strip>>>;
607
+ source: z.ZodEnum<{
608
+ custom: "custom";
609
+ logs: "logs";
610
+ sentry: "sentry";
611
+ datadog: "datadog";
612
+ newrelic: "newrelic";
613
+ }>;
614
+ }, z.core.$strip>>;
615
+ recommendations: z.ZodArray<z.ZodObject<{
616
+ id: z.ZodString;
617
+ type: z.ZodEnum<{
618
+ rollback: "rollback";
619
+ pause_rollout: "pause_rollout";
620
+ increase_rollout: "increase_rollout";
621
+ monitor: "monitor";
622
+ }>;
623
+ confidence: z.ZodNumber;
624
+ reason: z.ZodString;
625
+ basedOn: z.ZodArray<z.ZodString>;
626
+ suggestedAction: z.ZodOptional<z.ZodObject<{
627
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
628
+ }, z.core.$strip>>;
629
+ }, z.core.$strip>>;
630
+ rolloutContext: z.ZodObject<{
631
+ currentPercentage: z.ZodNumber;
632
+ strategy: z.ZodEnum<{
633
+ blue_green: "blue_green";
634
+ rolling: "rolling";
635
+ canary: "canary";
636
+ }>;
637
+ events: z.ZodArray<z.ZodObject<{
638
+ id: z.ZodString;
639
+ type: z.ZodEnum<{
640
+ rollback: "rollback";
641
+ percentage_change: "percentage_change";
642
+ stage_transition: "stage_transition";
643
+ pause: "pause";
644
+ }>;
645
+ timestamp: z.ZodString;
646
+ details: z.ZodObject<{
647
+ from: z.ZodOptional<z.ZodNumber>;
648
+ to: z.ZodOptional<z.ZodNumber>;
649
+ stage: z.ZodOptional<z.ZodString>;
650
+ reason: z.ZodOptional<z.ZodString>;
651
+ }, z.core.$strip>;
652
+ }, z.core.$strip>>;
653
+ }, z.core.$strip>;
654
+ metadata: z.ZodObject<{
655
+ snapshotId: z.ZodString;
656
+ sampleSize: z.ZodNumber;
657
+ dataSources: z.ZodArray<z.ZodEnum<{
658
+ custom: "custom";
659
+ logs: "logs";
660
+ sentry: "sentry";
661
+ datadog: "datadog";
662
+ newrelic: "newrelic";
663
+ }>>;
664
+ computedAt: z.ZodString;
665
+ staleAfter: z.ZodString;
666
+ }, z.core.$strip>;
667
+ }, z.core.$strip>;
668
+ target: z.ZodObject<{
669
+ id: z.ZodString;
670
+ releaseId: z.ZodString;
671
+ appId: z.ZodString;
672
+ orgId: z.ZodString;
673
+ environment: z.ZodString;
674
+ window: z.ZodObject<{
675
+ start: z.ZodString;
676
+ end: z.ZodString;
677
+ granularity: z.ZodEnum<{
678
+ "1m": "1m";
679
+ "1h": "1h";
680
+ "1d": "1d";
681
+ "5m": "5m";
682
+ "15m": "15m";
683
+ "6h": "6h";
684
+ }>;
685
+ }, z.core.$strip>;
686
+ healthScore: z.ZodNumber;
687
+ status: z.ZodEnum<{
688
+ critical: "critical";
689
+ healthy: "healthy";
690
+ degraded: "degraded";
691
+ }>;
692
+ signals: z.ZodArray<z.ZodObject<{
693
+ type: z.ZodEnum<{
694
+ errors: "errors";
695
+ usage: "usage";
696
+ logs: "logs";
697
+ stability: "stability";
698
+ performance: "performance";
699
+ infra: "infra";
700
+ }>;
701
+ status: z.ZodEnum<{
702
+ warning: "warning";
703
+ critical: "critical";
704
+ healthy: "healthy";
705
+ }>;
706
+ score: z.ZodNumber;
707
+ metrics: z.ZodArray<z.ZodObject<{
708
+ key: z.ZodString;
709
+ label: z.ZodString;
710
+ value: z.ZodNumber;
711
+ unit: z.ZodEnum<{
712
+ score: "score";
713
+ ms: "ms";
714
+ count: "count";
715
+ "%": "%";
716
+ rps: "rps";
717
+ }>;
718
+ baseline: z.ZodObject<{
719
+ value: z.ZodNumber;
720
+ window: z.ZodString;
721
+ }, z.core.$strip>;
722
+ trend: z.ZodObject<{
723
+ direction: z.ZodEnum<{
724
+ flat: "flat";
725
+ up: "up";
726
+ down: "down";
727
+ }>;
728
+ changePercent: z.ZodNumber;
729
+ confidence: z.ZodNumber;
730
+ }, z.core.$strip>;
731
+ threshold: z.ZodObject<{
732
+ warning: z.ZodNumber;
733
+ critical: z.ZodNumber;
734
+ }, z.core.$strip>;
735
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
736
+ dimension: z.ZodString;
737
+ value: z.ZodString;
738
+ metricValue: z.ZodNumber;
739
+ }, z.core.$strip>>>;
740
+ timeseries: z.ZodOptional<z.ZodArray<z.ZodObject<{
741
+ t: z.ZodString;
742
+ value: z.ZodNumber;
743
+ }, z.core.$strip>>>;
744
+ source: z.ZodEnum<{
745
+ custom: "custom";
746
+ logs: "logs";
747
+ sentry: "sentry";
748
+ datadog: "datadog";
749
+ newrelic: "newrelic";
750
+ }>;
751
+ }, z.core.$strip>>;
752
+ }, z.core.$strip>>;
753
+ anomalies: z.ZodArray<z.ZodObject<{
754
+ id: z.ZodString;
755
+ type: z.ZodEnum<{
756
+ spike: "spike";
757
+ drift: "drift";
758
+ regression: "regression";
759
+ drop: "drop";
760
+ }>;
761
+ signal: z.ZodString;
762
+ severity: z.ZodEnum<{
763
+ low: "low";
764
+ medium: "medium";
765
+ high: "high";
766
+ }>;
767
+ detection: z.ZodObject<{
768
+ method: z.ZodEnum<{
769
+ z_score: "z_score";
770
+ cusum: "cusum";
771
+ }>;
772
+ score: z.ZodNumber;
773
+ threshold: z.ZodNumber;
774
+ baselineWindow: z.ZodString;
775
+ }, z.core.$strip>;
776
+ description: z.ZodString;
777
+ detectedAt: z.ZodString;
778
+ relatedMetrics: z.ZodArray<z.ZodString>;
779
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>>;
781
+ correlations: z.ZodArray<z.ZodObject<{
782
+ id: z.ZodString;
783
+ type: z.ZodEnum<{
784
+ rollout_impact: "rollout_impact";
785
+ cross_signal: "cross_signal";
786
+ segment_regression: "segment_regression";
787
+ }>;
788
+ confidence: z.ZodNumber;
789
+ cause: z.ZodObject<{
790
+ signal: z.ZodString;
791
+ value: z.ZodNumber;
792
+ }, z.core.$strip>;
793
+ effect: z.ZodObject<{
794
+ signal: z.ZodString;
795
+ changePercent: z.ZodNumber;
796
+ }, z.core.$strip>;
797
+ detectedAt: z.ZodString;
798
+ method: z.ZodEnum<{
799
+ changepoint: "changepoint";
800
+ statistical: "statistical";
801
+ ml: "ml";
802
+ }>;
803
+ }, z.core.$strip>>;
804
+ incidents: z.ZodArray<z.ZodObject<{
805
+ id: z.ZodString;
806
+ status: z.ZodEnum<{
807
+ open: "open";
808
+ resolved: "resolved";
809
+ }>;
810
+ severity: z.ZodEnum<{
811
+ warning: "warning";
812
+ critical: "critical";
813
+ }>;
814
+ title: z.ZodString;
815
+ startedAt: z.ZodString;
816
+ resolvedAt: z.ZodOptional<z.ZodString>;
817
+ affectedSignals: z.ZodArray<z.ZodString>;
818
+ affectedSegments: z.ZodOptional<z.ZodArray<z.ZodObject<{
819
+ dimension: z.ZodString;
820
+ value: z.ZodString;
821
+ metricValue: z.ZodNumber;
822
+ }, z.core.$strip>>>;
823
+ source: z.ZodEnum<{
824
+ custom: "custom";
825
+ logs: "logs";
826
+ sentry: "sentry";
827
+ datadog: "datadog";
828
+ newrelic: "newrelic";
829
+ }>;
830
+ }, z.core.$strip>>;
831
+ recommendations: z.ZodArray<z.ZodObject<{
832
+ id: z.ZodString;
833
+ type: z.ZodEnum<{
834
+ rollback: "rollback";
835
+ pause_rollout: "pause_rollout";
836
+ increase_rollout: "increase_rollout";
837
+ monitor: "monitor";
838
+ }>;
839
+ confidence: z.ZodNumber;
840
+ reason: z.ZodString;
841
+ basedOn: z.ZodArray<z.ZodString>;
842
+ suggestedAction: z.ZodOptional<z.ZodObject<{
843
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
844
+ }, z.core.$strip>>;
845
+ }, z.core.$strip>>;
846
+ rolloutContext: z.ZodObject<{
847
+ currentPercentage: z.ZodNumber;
848
+ strategy: z.ZodEnum<{
849
+ blue_green: "blue_green";
850
+ rolling: "rolling";
851
+ canary: "canary";
852
+ }>;
853
+ events: z.ZodArray<z.ZodObject<{
854
+ id: z.ZodString;
855
+ type: z.ZodEnum<{
856
+ rollback: "rollback";
857
+ percentage_change: "percentage_change";
858
+ stage_transition: "stage_transition";
859
+ pause: "pause";
860
+ }>;
861
+ timestamp: z.ZodString;
862
+ details: z.ZodObject<{
863
+ from: z.ZodOptional<z.ZodNumber>;
864
+ to: z.ZodOptional<z.ZodNumber>;
865
+ stage: z.ZodOptional<z.ZodString>;
866
+ reason: z.ZodOptional<z.ZodString>;
867
+ }, z.core.$strip>;
868
+ }, z.core.$strip>>;
869
+ }, z.core.$strip>;
870
+ metadata: z.ZodObject<{
871
+ snapshotId: z.ZodString;
872
+ sampleSize: z.ZodNumber;
873
+ dataSources: z.ZodArray<z.ZodEnum<{
874
+ custom: "custom";
875
+ logs: "logs";
876
+ sentry: "sentry";
877
+ datadog: "datadog";
878
+ newrelic: "newrelic";
879
+ }>>;
880
+ computedAt: z.ZodString;
881
+ staleAfter: z.ZodString;
882
+ }, z.core.$strip>;
883
+ }, z.core.$strip>;
884
+ diff: z.ZodObject<{
885
+ healthScoreDelta: z.ZodNumber;
886
+ metricDeltas: z.ZodArray<z.ZodObject<{
887
+ key: z.ZodString;
888
+ baseValue: z.ZodNumber;
889
+ targetValue: z.ZodNumber;
890
+ deltaPercent: z.ZodNumber;
891
+ }, z.core.$strip>>;
892
+ newAnomalies: z.ZodArray<z.ZodObject<{
893
+ id: z.ZodString;
894
+ type: z.ZodEnum<{
895
+ spike: "spike";
896
+ drift: "drift";
897
+ regression: "regression";
898
+ drop: "drop";
899
+ }>;
900
+ signal: z.ZodString;
901
+ severity: z.ZodEnum<{
902
+ low: "low";
903
+ medium: "medium";
904
+ high: "high";
905
+ }>;
906
+ detection: z.ZodObject<{
907
+ method: z.ZodEnum<{
908
+ z_score: "z_score";
909
+ cusum: "cusum";
910
+ }>;
911
+ score: z.ZodNumber;
912
+ threshold: z.ZodNumber;
913
+ baselineWindow: z.ZodString;
914
+ }, z.core.$strip>;
915
+ description: z.ZodString;
916
+ detectedAt: z.ZodString;
917
+ relatedMetrics: z.ZodArray<z.ZodString>;
918
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
919
+ }, z.core.$strip>>;
920
+ resolvedAnomalies: z.ZodArray<z.ZodObject<{
921
+ id: z.ZodString;
922
+ type: z.ZodEnum<{
923
+ spike: "spike";
924
+ drift: "drift";
925
+ regression: "regression";
926
+ drop: "drop";
927
+ }>;
928
+ signal: z.ZodString;
929
+ severity: z.ZodEnum<{
930
+ low: "low";
931
+ medium: "medium";
932
+ high: "high";
933
+ }>;
934
+ detection: z.ZodObject<{
935
+ method: z.ZodEnum<{
936
+ z_score: "z_score";
937
+ cusum: "cusum";
938
+ }>;
939
+ score: z.ZodNumber;
940
+ threshold: z.ZodNumber;
941
+ baselineWindow: z.ZodString;
942
+ }, z.core.$strip>;
943
+ description: z.ZodString;
944
+ detectedAt: z.ZodString;
945
+ relatedMetrics: z.ZodArray<z.ZodString>;
946
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
947
+ }, z.core.$strip>>;
948
+ }, z.core.$strip>;
949
+ }, z.core.$strip>;
950
+ export declare const GateConditionResultSchema: z.ZodObject<{
951
+ metric: z.ZodString;
952
+ currentValue: z.ZodNumber;
953
+ baselineValue: z.ZodNumber;
954
+ deviation: z.ZodNumber;
955
+ conditionMet: z.ZodBoolean;
956
+ }, z.core.$strip>;
957
+ export declare const GateEvaluationResponseSchema: z.ZodObject<{
958
+ passed: z.ZodBoolean;
959
+ results: z.ZodArray<z.ZodObject<{
960
+ metric: z.ZodString;
961
+ currentValue: z.ZodNumber;
962
+ baselineValue: z.ZodNumber;
963
+ deviation: z.ZodNumber;
964
+ conditionMet: z.ZodBoolean;
965
+ }, z.core.$strip>>;
966
+ healthScore: z.ZodNumber;
967
+ activeAnomalies: z.ZodArray<z.ZodObject<{
968
+ id: z.ZodString;
969
+ type: z.ZodEnum<{
970
+ spike: "spike";
971
+ drift: "drift";
972
+ regression: "regression";
973
+ drop: "drop";
974
+ }>;
975
+ signal: z.ZodString;
976
+ severity: z.ZodEnum<{
977
+ low: "low";
978
+ medium: "medium";
979
+ high: "high";
980
+ }>;
981
+ detection: z.ZodObject<{
982
+ method: z.ZodEnum<{
983
+ z_score: "z_score";
984
+ cusum: "cusum";
985
+ }>;
986
+ score: z.ZodNumber;
987
+ threshold: z.ZodNumber;
988
+ baselineWindow: z.ZodString;
989
+ }, z.core.$strip>;
990
+ description: z.ZodString;
991
+ detectedAt: z.ZodString;
992
+ relatedMetrics: z.ZodArray<z.ZodString>;
993
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
994
+ }, z.core.$strip>>;
995
+ recommendation: z.ZodOptional<z.ZodObject<{
996
+ id: z.ZodString;
997
+ type: z.ZodEnum<{
998
+ rollback: "rollback";
999
+ pause_rollout: "pause_rollout";
1000
+ increase_rollout: "increase_rollout";
1001
+ monitor: "monitor";
1002
+ }>;
1003
+ confidence: z.ZodNumber;
1004
+ reason: z.ZodString;
1005
+ basedOn: z.ZodArray<z.ZodString>;
1006
+ suggestedAction: z.ZodOptional<z.ZodObject<{
1007
+ rolloutPercentage: z.ZodOptional<z.ZodNumber>;
1008
+ }, z.core.$strip>>;
1009
+ }, z.core.$strip>>;
1010
+ }, z.core.$strip>;
1011
+ export declare const AnnotateEventResponseSchema: z.ZodObject<{
1012
+ eventId: z.ZodString;
1013
+ correlationsTriggered: z.ZodBoolean;
1014
+ }, z.core.$strip>;
1015
+ export declare const SignalUpdateEventSchema: z.ZodObject<{
1016
+ releaseId: z.ZodString;
1017
+ healthScore: z.ZodNumber;
1018
+ status: z.ZodEnum<{
1019
+ critical: "critical";
1020
+ healthy: "healthy";
1021
+ degraded: "degraded";
1022
+ }>;
1023
+ trigger: z.ZodOptional<z.ZodString>;
1024
+ }, z.core.$strip>;
1025
+ export declare const SignalCriticalEventSchema: z.ZodObject<{
1026
+ releaseId: z.ZodString;
1027
+ status: z.ZodLiteral<"critical">;
1028
+ healthScore: z.ZodNumber;
1029
+ topAnomalies: z.ZodArray<z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ type: z.ZodEnum<{
1032
+ spike: "spike";
1033
+ drift: "drift";
1034
+ regression: "regression";
1035
+ drop: "drop";
1036
+ }>;
1037
+ signal: z.ZodString;
1038
+ severity: z.ZodEnum<{
1039
+ low: "low";
1040
+ medium: "medium";
1041
+ high: "high";
1042
+ }>;
1043
+ detection: z.ZodObject<{
1044
+ method: z.ZodEnum<{
1045
+ z_score: "z_score";
1046
+ cusum: "cusum";
1047
+ }>;
1048
+ score: z.ZodNumber;
1049
+ threshold: z.ZodNumber;
1050
+ baselineWindow: z.ZodString;
1051
+ }, z.core.$strip>;
1052
+ description: z.ZodString;
1053
+ detectedAt: z.ZodString;
1054
+ relatedMetrics: z.ZodArray<z.ZodString>;
1055
+ correlatedRolloutEvent: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strip>>;
1057
+ }, z.core.$strip>;
1058
+ export declare const SignalRecoveredEventSchema: z.ZodObject<{
1059
+ releaseId: z.ZodString;
1060
+ status: z.ZodLiteral<"healthy">;
1061
+ healthScore: z.ZodNumber;
1062
+ }, z.core.$strip>;
1063
+ export type SignalsResponse = z.infer<typeof SignalsResponseSchema>;
1064
+ export type SignalsHistoryResponse = z.infer<typeof SignalsHistoryResponseSchema>;
1065
+ export type MetricDelta = z.infer<typeof MetricDeltaSchema>;
1066
+ export type SignalsCompareResponse = z.infer<typeof SignalsCompareResponseSchema>;
1067
+ export type GateConditionResult = z.infer<typeof GateConditionResultSchema>;
1068
+ export type GateEvaluationResponse = z.infer<typeof GateEvaluationResponseSchema>;
1069
+ export type AnnotateEventResponse = z.infer<typeof AnnotateEventResponseSchema>;
1070
+ export type SignalUpdateEvent = z.infer<typeof SignalUpdateEventSchema>;
1071
+ export type SignalCriticalEvent = z.infer<typeof SignalCriticalEventSchema>;
1072
+ export type SignalRecoveredEvent = z.infer<typeof SignalRecoveredEventSchema>;
1073
+ //# sourceMappingURL=response.schema.d.ts.map