watchfor 0.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.
@@ -0,0 +1,3012 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export interface paths {
7
+ "/me": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ /** Identify the API key */
15
+ get: operations["getMe"];
16
+ put?: never;
17
+ post?: never;
18
+ delete?: never;
19
+ options?: never;
20
+ head?: never;
21
+ patch?: never;
22
+ trace?: never;
23
+ };
24
+ "/openapi.json": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ /** This document */
32
+ get: operations["getOpenApiSpec"];
33
+ put?: never;
34
+ post?: never;
35
+ delete?: never;
36
+ options?: never;
37
+ head?: never;
38
+ patch?: never;
39
+ trace?: never;
40
+ };
41
+ "/meta/monitor-types": {
42
+ parameters: {
43
+ query?: never;
44
+ header?: never;
45
+ path?: never;
46
+ cookie?: never;
47
+ };
48
+ /** Discovery catalog: per-type alert metrics, config fields + default rules */
49
+ get: operations["listMonitorTypes"];
50
+ put?: never;
51
+ post?: never;
52
+ delete?: never;
53
+ options?: never;
54
+ head?: never;
55
+ patch?: never;
56
+ trace?: never;
57
+ };
58
+ "/monitors": {
59
+ parameters: {
60
+ query?: never;
61
+ header?: never;
62
+ path?: never;
63
+ cookie?: never;
64
+ };
65
+ /** List monitors */
66
+ get: operations["listMonitors"];
67
+ put?: never;
68
+ /** Create a monitor */
69
+ post: operations["createMonitor"];
70
+ delete?: never;
71
+ options?: never;
72
+ head?: never;
73
+ patch?: never;
74
+ trace?: never;
75
+ };
76
+ "/monitors/bulk": {
77
+ parameters: {
78
+ query?: never;
79
+ header?: never;
80
+ path?: never;
81
+ cookie?: never;
82
+ };
83
+ get?: never;
84
+ put?: never;
85
+ /** Bulk pause/resume/delete (max 100 ids) */
86
+ post: operations["bulkMonitorAction"];
87
+ delete?: never;
88
+ options?: never;
89
+ head?: never;
90
+ patch?: never;
91
+ trace?: never;
92
+ };
93
+ "/monitors/{id}": {
94
+ parameters: {
95
+ query?: never;
96
+ header?: never;
97
+ path: {
98
+ /** @description Resource id (UUID) */
99
+ id: string;
100
+ };
101
+ cookie?: never;
102
+ };
103
+ /** Get a monitor */
104
+ get: operations["getMonitor"];
105
+ put?: never;
106
+ post?: never;
107
+ /** Delete a monitor and everything it owns */
108
+ delete: operations["deleteMonitor"];
109
+ options?: never;
110
+ head?: never;
111
+ /** Update a monitor (partial) */
112
+ patch: operations["updateMonitor"];
113
+ trace?: never;
114
+ };
115
+ "/monitors/{id}/pause": {
116
+ parameters: {
117
+ query?: never;
118
+ header?: never;
119
+ path: {
120
+ /** @description Resource id (UUID) */
121
+ id: string;
122
+ };
123
+ cookie?: never;
124
+ };
125
+ get?: never;
126
+ put?: never;
127
+ /** Pause checks (idempotent; closes open incidents) */
128
+ post: operations["pauseMonitor"];
129
+ delete?: never;
130
+ options?: never;
131
+ head?: never;
132
+ patch?: never;
133
+ trace?: never;
134
+ };
135
+ "/monitors/{id}/resume": {
136
+ parameters: {
137
+ query?: never;
138
+ header?: never;
139
+ path: {
140
+ /** @description Resource id (UUID) */
141
+ id: string;
142
+ };
143
+ cookie?: never;
144
+ };
145
+ get?: never;
146
+ put?: never;
147
+ /** Resume checks (idempotent) */
148
+ post: operations["resumeMonitor"];
149
+ delete?: never;
150
+ options?: never;
151
+ head?: never;
152
+ patch?: never;
153
+ trace?: never;
154
+ };
155
+ "/monitors/{id}/check-now": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path: {
160
+ /** @description Resource id (UUID) */
161
+ id: string;
162
+ };
163
+ cookie?: never;
164
+ };
165
+ get?: never;
166
+ put?: never;
167
+ /** Dispatch one immediate check (plan-budgeted per hour) */
168
+ post: operations["runMonitorCheckNow"];
169
+ delete?: never;
170
+ options?: never;
171
+ head?: never;
172
+ patch?: never;
173
+ trace?: never;
174
+ };
175
+ "/monitors/{id}/uptime": {
176
+ parameters: {
177
+ query?: {
178
+ period?: "1h" | "24h" | "7d" | "30d" | "90d";
179
+ };
180
+ header?: never;
181
+ path: {
182
+ /** @description Resource id (UUID) */
183
+ id: string;
184
+ };
185
+ cookie?: never;
186
+ };
187
+ /** Uptime % and response-time stats (maintenance excluded) */
188
+ get: operations["getMonitorUptime"];
189
+ put?: never;
190
+ post?: never;
191
+ delete?: never;
192
+ options?: never;
193
+ head?: never;
194
+ patch?: never;
195
+ trace?: never;
196
+ };
197
+ "/monitors/{id}/checks": {
198
+ parameters: {
199
+ query?: {
200
+ hours?: number;
201
+ limit?: number;
202
+ };
203
+ header?: never;
204
+ path: {
205
+ /** @description Resource id (UUID) */
206
+ id: string;
207
+ };
208
+ cookie?: never;
209
+ };
210
+ /** Raw check history + per-location breakdown */
211
+ get: operations["listMonitorChecks"];
212
+ put?: never;
213
+ post?: never;
214
+ delete?: never;
215
+ options?: never;
216
+ head?: never;
217
+ patch?: never;
218
+ trace?: never;
219
+ };
220
+ "/monitors/{id}/alert-rules": {
221
+ parameters: {
222
+ query?: never;
223
+ header?: never;
224
+ path: {
225
+ /** @description Resource id (UUID) */
226
+ id: string;
227
+ };
228
+ cookie?: never;
229
+ };
230
+ /** List a monitor's alert rules */
231
+ get: operations["listAlertRules"];
232
+ put?: never;
233
+ /** Create an alert rule (syncs the alerting engine) */
234
+ post: operations["createAlertRule"];
235
+ delete?: never;
236
+ options?: never;
237
+ head?: never;
238
+ patch?: never;
239
+ trace?: never;
240
+ };
241
+ "/monitors/{id}/alert-rules/{ruleId}": {
242
+ parameters: {
243
+ query?: never;
244
+ header?: never;
245
+ path: {
246
+ /** @description Resource id (UUID) */
247
+ id: string;
248
+ /** @description Resource id (UUID) */
249
+ ruleId: string;
250
+ };
251
+ cookie?: never;
252
+ };
253
+ /** Get an alert rule */
254
+ get: operations["getAlertRule"];
255
+ put?: never;
256
+ post?: never;
257
+ /** Delete an alert rule (system rules → 409) */
258
+ delete: operations["deleteAlertRule"];
259
+ options?: never;
260
+ head?: never;
261
+ /** Update or enable/disable an alert rule */
262
+ patch: operations["updateAlertRule"];
263
+ trace?: never;
264
+ };
265
+ "/locations": {
266
+ parameters: {
267
+ query?: never;
268
+ header?: never;
269
+ path?: never;
270
+ cookie?: never;
271
+ };
272
+ /** List probe locations */
273
+ get: operations["listLocations"];
274
+ put?: never;
275
+ post?: never;
276
+ delete?: never;
277
+ options?: never;
278
+ head?: never;
279
+ patch?: never;
280
+ trace?: never;
281
+ };
282
+ "/incidents": {
283
+ parameters: {
284
+ query?: never;
285
+ header?: never;
286
+ path?: never;
287
+ cookie?: never;
288
+ };
289
+ /** List incidents */
290
+ get: operations["listIncidents"];
291
+ put?: never;
292
+ post?: never;
293
+ delete?: never;
294
+ options?: never;
295
+ head?: never;
296
+ patch?: never;
297
+ trace?: never;
298
+ };
299
+ "/incidents/{id}": {
300
+ parameters: {
301
+ query?: never;
302
+ header?: never;
303
+ path: {
304
+ /** @description Incident id (integer) */
305
+ id: string;
306
+ };
307
+ cookie?: never;
308
+ };
309
+ /** Get an incident */
310
+ get: operations["getIncident"];
311
+ put?: never;
312
+ post?: never;
313
+ delete?: never;
314
+ options?: never;
315
+ head?: never;
316
+ patch?: never;
317
+ trace?: never;
318
+ };
319
+ "/incidents/{id}/acknowledge": {
320
+ parameters: {
321
+ query?: never;
322
+ header?: never;
323
+ path: {
324
+ /** @description Incident id (integer) */
325
+ id: string;
326
+ };
327
+ cookie?: never;
328
+ };
329
+ get?: never;
330
+ put?: never;
331
+ /** Acknowledge (idempotent; resolved incidents → 409) */
332
+ post: operations["acknowledgeIncident"];
333
+ delete?: never;
334
+ options?: never;
335
+ head?: never;
336
+ patch?: never;
337
+ trace?: never;
338
+ };
339
+ "/incidents/{id}/resolve": {
340
+ parameters: {
341
+ query?: never;
342
+ header?: never;
343
+ path: {
344
+ /** @description Incident id (integer) */
345
+ id: string;
346
+ };
347
+ cookie?: never;
348
+ };
349
+ get?: never;
350
+ put?: never;
351
+ /** Resolve — async, returns 202 with current state */
352
+ post: operations["resolveIncident"];
353
+ delete?: never;
354
+ options?: never;
355
+ head?: never;
356
+ patch?: never;
357
+ trace?: never;
358
+ };
359
+ "/incidents/{id}/mark-maintenance": {
360
+ parameters: {
361
+ query?: never;
362
+ header?: never;
363
+ path: {
364
+ /** @description Incident id (integer) */
365
+ id: string;
366
+ };
367
+ cookie?: never;
368
+ };
369
+ get?: never;
370
+ put?: never;
371
+ /** Retroactively exclude a resolved incident from uptime/SLA */
372
+ post: operations["markIncidentMaintenance"];
373
+ delete?: never;
374
+ options?: never;
375
+ head?: never;
376
+ patch?: never;
377
+ trace?: never;
378
+ };
379
+ "/maintenance-windows": {
380
+ parameters: {
381
+ query?: never;
382
+ header?: never;
383
+ path?: never;
384
+ cookie?: never;
385
+ };
386
+ /** List maintenance windows */
387
+ get: operations["listMaintenanceWindows"];
388
+ put?: never;
389
+ /** Schedule a window */
390
+ post: operations["createMaintenanceWindow"];
391
+ delete?: never;
392
+ options?: never;
393
+ head?: never;
394
+ patch?: never;
395
+ trace?: never;
396
+ };
397
+ "/maintenance-windows/{id}": {
398
+ parameters: {
399
+ query?: never;
400
+ header?: never;
401
+ path: {
402
+ /** @description Resource id (UUID) */
403
+ id: string;
404
+ };
405
+ cookie?: never;
406
+ };
407
+ /** Get a window */
408
+ get: operations["getMaintenanceWindow"];
409
+ put?: never;
410
+ post?: never;
411
+ /** Delete a window (lifts active silences) */
412
+ delete: operations["deleteMaintenanceWindow"];
413
+ options?: never;
414
+ head?: never;
415
+ /** Update a window (partial; enabled:false disables) */
416
+ patch: operations["updateMaintenanceWindow"];
417
+ trace?: never;
418
+ };
419
+ "/contacts": {
420
+ parameters: {
421
+ query?: never;
422
+ header?: never;
423
+ path?: never;
424
+ cookie?: never;
425
+ };
426
+ /** List contacts */
427
+ get: operations["listContacts"];
428
+ put?: never;
429
+ /** Create a contact */
430
+ post: operations["createContact"];
431
+ delete?: never;
432
+ options?: never;
433
+ head?: never;
434
+ patch?: never;
435
+ trace?: never;
436
+ };
437
+ "/contacts/{id}": {
438
+ parameters: {
439
+ query?: never;
440
+ header?: never;
441
+ path: {
442
+ /** @description Resource id (UUID) */
443
+ id: string;
444
+ };
445
+ cookie?: never;
446
+ };
447
+ /** Get a contact */
448
+ get: operations["getContact"];
449
+ put?: never;
450
+ post?: never;
451
+ /** Delete a contact */
452
+ delete: operations["deleteContact"];
453
+ options?: never;
454
+ head?: never;
455
+ /** Update a contact (partial) */
456
+ patch: operations["updateContact"];
457
+ trace?: never;
458
+ };
459
+ "/contact-groups": {
460
+ parameters: {
461
+ query?: never;
462
+ header?: never;
463
+ path?: never;
464
+ cookie?: never;
465
+ };
466
+ /** List groups */
467
+ get: operations["listContactGroups"];
468
+ put?: never;
469
+ /** Create a group */
470
+ post: operations["createContactGroup"];
471
+ delete?: never;
472
+ options?: never;
473
+ head?: never;
474
+ patch?: never;
475
+ trace?: never;
476
+ };
477
+ "/contact-groups/{id}": {
478
+ parameters: {
479
+ query?: never;
480
+ header?: never;
481
+ path: {
482
+ /** @description Resource id (UUID) */
483
+ id: string;
484
+ };
485
+ cookie?: never;
486
+ };
487
+ /** Get a group (with members) */
488
+ get: operations["getContactGroup"];
489
+ put?: never;
490
+ post?: never;
491
+ /** Delete a group (default group → 409) */
492
+ delete: operations["deleteContactGroup"];
493
+ options?: never;
494
+ head?: never;
495
+ /** Update a group (partial) */
496
+ patch: operations["updateContactGroup"];
497
+ trace?: never;
498
+ };
499
+ "/status-pages": {
500
+ parameters: {
501
+ query?: never;
502
+ header?: never;
503
+ path?: never;
504
+ cookie?: never;
505
+ };
506
+ /** List status pages */
507
+ get: operations["listStatusPages"];
508
+ put?: never;
509
+ /** Create a status page (optionally with components) */
510
+ post: operations["createStatusPage"];
511
+ delete?: never;
512
+ options?: never;
513
+ head?: never;
514
+ patch?: never;
515
+ trace?: never;
516
+ };
517
+ "/status-pages/{id}": {
518
+ parameters: {
519
+ query?: never;
520
+ header?: never;
521
+ path: {
522
+ /** @description Resource id (UUID) */
523
+ id: string;
524
+ };
525
+ cookie?: never;
526
+ };
527
+ /** Get a page (with components) */
528
+ get: operations["getStatusPage"];
529
+ put?: never;
530
+ post?: never;
531
+ /** Delete a page */
532
+ delete: operations["deleteStatusPage"];
533
+ options?: never;
534
+ head?: never;
535
+ /** Update a page (partial) */
536
+ patch: operations["updateStatusPage"];
537
+ trace?: never;
538
+ };
539
+ "/status-pages/{id}/announcements": {
540
+ parameters: {
541
+ query?: never;
542
+ header?: never;
543
+ path: {
544
+ /** @description Resource id (UUID) */
545
+ id: string;
546
+ };
547
+ cookie?: never;
548
+ };
549
+ /** List announcements */
550
+ get: operations["listAnnouncements"];
551
+ put?: never;
552
+ /** Publish an incident announcement */
553
+ post: operations["createAnnouncement"];
554
+ delete?: never;
555
+ options?: never;
556
+ head?: never;
557
+ patch?: never;
558
+ trace?: never;
559
+ };
560
+ "/status-pages/{id}/announcements/{announcementId}": {
561
+ parameters: {
562
+ query?: never;
563
+ header?: never;
564
+ path: {
565
+ /** @description Resource id (UUID) */
566
+ id: string;
567
+ /** @description Resource id (UUID) */
568
+ announcementId: string;
569
+ };
570
+ cookie?: never;
571
+ };
572
+ /** Get an announcement */
573
+ get: operations["getAnnouncement"];
574
+ put?: never;
575
+ post?: never;
576
+ /** Remove from the public page (soft delete) */
577
+ delete: operations["deleteAnnouncement"];
578
+ options?: never;
579
+ head?: never;
580
+ /** Post an update (moves status; resolved closes it) */
581
+ patch: operations["updateAnnouncement"];
582
+ trace?: never;
583
+ };
584
+ "/plan": {
585
+ parameters: {
586
+ query?: never;
587
+ header?: never;
588
+ path?: never;
589
+ cookie?: never;
590
+ };
591
+ /** Current plan, limits and live usage */
592
+ get: operations["getPlan"];
593
+ put?: never;
594
+ post?: never;
595
+ delete?: never;
596
+ options?: never;
597
+ head?: never;
598
+ patch?: never;
599
+ trace?: never;
600
+ };
601
+ "/on-call": {
602
+ parameters: {
603
+ query?: never;
604
+ header?: never;
605
+ path?: never;
606
+ cookie?: never;
607
+ };
608
+ /** On-call schedules with the current on-call person */
609
+ get: operations["listOnCallSchedules"];
610
+ put?: never;
611
+ post?: never;
612
+ delete?: never;
613
+ options?: never;
614
+ head?: never;
615
+ patch?: never;
616
+ trace?: never;
617
+ };
618
+ "/notifications": {
619
+ parameters: {
620
+ query?: never;
621
+ header?: never;
622
+ path?: never;
623
+ cookie?: never;
624
+ };
625
+ /** Alerting delivery history — notification attempts per channel */
626
+ get: operations["listNotifications"];
627
+ put?: never;
628
+ post?: never;
629
+ delete?: never;
630
+ options?: never;
631
+ head?: never;
632
+ patch?: never;
633
+ trace?: never;
634
+ };
635
+ "/activity": {
636
+ parameters: {
637
+ query?: never;
638
+ header?: never;
639
+ path?: never;
640
+ cookie?: never;
641
+ };
642
+ /** Organization audit trail (who changed what, when) */
643
+ get: operations["listActivity"];
644
+ put?: never;
645
+ post?: never;
646
+ delete?: never;
647
+ options?: never;
648
+ head?: never;
649
+ patch?: never;
650
+ trace?: never;
651
+ };
652
+ "/summary": {
653
+ parameters: {
654
+ query?: never;
655
+ header?: never;
656
+ path?: never;
657
+ cookie?: never;
658
+ };
659
+ /** One-call org snapshot: monitor status counts, active incidents, open maintenance */
660
+ get: operations["getOrgSummary"];
661
+ put?: never;
662
+ post?: never;
663
+ delete?: never;
664
+ options?: never;
665
+ head?: never;
666
+ patch?: never;
667
+ trace?: never;
668
+ };
669
+ "/incidents/stats": {
670
+ parameters: {
671
+ query?: never;
672
+ header?: never;
673
+ path?: never;
674
+ cookie?: never;
675
+ };
676
+ /** Aggregate incident stats over a period: severity totals, MTTR/MTBF, most unstable monitors */
677
+ get: operations["getIncidentStats"];
678
+ put?: never;
679
+ post?: never;
680
+ delete?: never;
681
+ options?: never;
682
+ head?: never;
683
+ patch?: never;
684
+ trace?: never;
685
+ };
686
+ }
687
+ export type webhooks = Record<string, never>;
688
+ export interface components {
689
+ schemas: {
690
+ Error: {
691
+ error: {
692
+ /** @enum {string} */
693
+ code:
694
+ | "unauthorized"
695
+ | "forbidden"
696
+ | "not_found"
697
+ | "invalid_request"
698
+ | "rate_limited"
699
+ | "conflict"
700
+ | "method_not_allowed"
701
+ | "not_implemented"
702
+ | "internal_error";
703
+ message: string;
704
+ };
705
+ };
706
+ Monitor: {
707
+ /** Format: uuid */
708
+ id?: string;
709
+ /** @constant */
710
+ object?: "monitor";
711
+ name?: string;
712
+ /** @description http, api, dns, tcp, ssl, udp, icmp, mtr, smtp, ftp, sftp, websocket, rdap, blacklist, ntp, email_policy, sitemap, favicon, cdn, breach, brotli, cms, browser, heartbeat, mcp */
713
+ type?: string;
714
+ target?: string;
715
+ description?: string | null;
716
+ interval_seconds?: number;
717
+ /** @enum {string} */
718
+ status?: "up" | "down" | "paused" | "unknown";
719
+ active?: boolean;
720
+ /** @enum {string} */
721
+ scheduling_strategy?: "roundrobin" | "random" | "parallel";
722
+ locations?: string[];
723
+ tags?: string[];
724
+ /** @description Type-specific config; secret values are [redacted] */
725
+ config?: Record<string, never>;
726
+ /** Format: date-time */
727
+ created_at?: string;
728
+ /** Format: date-time */
729
+ updated_at?: string;
730
+ };
731
+ MonitorCreate: {
732
+ name: string;
733
+ type: string;
734
+ target: string;
735
+ /** @description Seconds */
736
+ interval: number;
737
+ /** @description Location ids from GET /locations; required except for heartbeat */
738
+ locations?: string[];
739
+ /**
740
+ * @default roundrobin
741
+ * @enum {string}
742
+ */
743
+ schedulingStrategy: "roundrobin" | "random" | "parallel";
744
+ tags?: string[];
745
+ description?: string;
746
+ config?: Record<string, never>;
747
+ /** @default false */
748
+ isPaused: boolean;
749
+ };
750
+ MonitorUpdate: {
751
+ name?: string;
752
+ target?: string;
753
+ description?: string;
754
+ interval?: number;
755
+ schedulingStrategy?: string;
756
+ locations?: string[];
757
+ tags?: string[];
758
+ config?: Record<string, never>;
759
+ };
760
+ Uptime: {
761
+ /** @constant */
762
+ object?: "uptime";
763
+ /** Format: uuid */
764
+ monitor_id?: string;
765
+ /** @enum {string} */
766
+ period?: "1h" | "24h" | "7d" | "30d" | "90d";
767
+ uptime_percent?: number | null;
768
+ total_checks?: number;
769
+ successful_checks?: number;
770
+ failed_checks?: number;
771
+ avg_response_time_ms?: number | null;
772
+ min_response_time_ms?: number | null;
773
+ max_response_time_ms?: number | null;
774
+ last_failure_at?: string | null;
775
+ uptime_24h?: number | null;
776
+ uptime_7d?: number | null;
777
+ uptime_30d?: number | null;
778
+ };
779
+ Check: {
780
+ /** @constant */
781
+ object?: "check";
782
+ timestamp?: string;
783
+ success?: boolean;
784
+ duration_ms?: number;
785
+ location?: string;
786
+ error?: string | null;
787
+ status_code?: number;
788
+ };
789
+ BulkResult: {
790
+ /** @constant */
791
+ object?: "bulk_result";
792
+ /** @enum {string} */
793
+ action?: "pause" | "resume" | "delete";
794
+ succeeded?: string[];
795
+ skipped?: string[];
796
+ };
797
+ AlertRule: {
798
+ /** Format: uuid */
799
+ id?: string;
800
+ /** @constant */
801
+ object?: "alert_rule";
802
+ /** Format: uuid */
803
+ monitor_id?: string;
804
+ name?: string;
805
+ metric?: string;
806
+ operator?: string;
807
+ value?: string;
808
+ /** @enum {string} */
809
+ severity?: "critical" | "warning" | "info";
810
+ failure_threshold?: number;
811
+ min_failed_probes?: number;
812
+ duration_window_seconds?: number;
813
+ enabled?: boolean;
814
+ is_system?: boolean;
815
+ contact_group?: {
816
+ id?: string;
817
+ name?: string;
818
+ } | null;
819
+ /** Format: date-time */
820
+ created_at?: string;
821
+ /** Format: date-time */
822
+ updated_at?: string;
823
+ };
824
+ AlertRuleCreate: {
825
+ name: string;
826
+ metric: string;
827
+ operator: string;
828
+ value: string;
829
+ /**
830
+ * @default critical
831
+ * @enum {string}
832
+ */
833
+ severity: "critical" | "warning" | "info";
834
+ /** @default 1 */
835
+ failureThreshold: number;
836
+ /** @default 1 */
837
+ minFailedProbes: number;
838
+ /**
839
+ * @description Seconds
840
+ * @default 0
841
+ */
842
+ durationWindow: number;
843
+ /** Format: uuid */
844
+ contactGroupId?: string | null;
845
+ };
846
+ Location: {
847
+ /** Format: uuid */
848
+ id?: string;
849
+ /** @constant */
850
+ object?: "location";
851
+ name?: string;
852
+ city?: string | null;
853
+ region?: string;
854
+ country?: string;
855
+ country_code?: string;
856
+ };
857
+ Incident: {
858
+ id?: number;
859
+ /** @constant */
860
+ object?: "incident";
861
+ /** @enum {string} */
862
+ status?: "firing" | "acknowledged" | "resolved";
863
+ /** @enum {string} */
864
+ severity?: "warning" | "critical";
865
+ message?: string;
866
+ monitor?: {
867
+ /** Format: uuid */
868
+ id?: string;
869
+ name?: string;
870
+ } | null;
871
+ /** Format: date-time */
872
+ started_at?: string;
873
+ acknowledged_at?: string | null;
874
+ resolved_at?: string | null;
875
+ };
876
+ MaintenanceWindow: {
877
+ /** Format: uuid */
878
+ id?: string;
879
+ /** @constant */
880
+ object?: "maintenance_window";
881
+ name?: string;
882
+ description?: string | null;
883
+ monitor_ids?: string[];
884
+ monitor_tags?: string[];
885
+ /** Format: date-time */
886
+ starts_at?: string;
887
+ duration_minutes?: number;
888
+ timezone?: string;
889
+ /** @enum {string} */
890
+ recurrence?: "once" | "daily" | "weekly" | "monthly";
891
+ recurrence_until?: string | null;
892
+ suppress_alerts?: boolean;
893
+ exclude_from_sla?: boolean;
894
+ enabled?: boolean;
895
+ /** Format: date-time */
896
+ created_at?: string;
897
+ };
898
+ MaintenanceWindowCreate: {
899
+ name: string;
900
+ /** Format: date-time */
901
+ startsAt: string;
902
+ durationMinutes: number;
903
+ monitorIds?: string[];
904
+ monitorTags?: string[];
905
+ description?: string;
906
+ /** @default UTC */
907
+ timezone: string;
908
+ /**
909
+ * @default once
910
+ * @enum {string}
911
+ */
912
+ recurrence: "once" | "daily" | "weekly" | "monthly";
913
+ /** Format: date-time */
914
+ recurrenceUntil?: string;
915
+ /** @default true */
916
+ suppressAlerts: boolean;
917
+ /** @default true */
918
+ excludeFromSla: boolean;
919
+ };
920
+ Contact: {
921
+ /** Format: uuid */
922
+ id?: string;
923
+ /** @constant */
924
+ object?: "contact";
925
+ name?: string;
926
+ /** Format: email */
927
+ email?: string;
928
+ phone?: string | null;
929
+ groups?: {
930
+ id?: string;
931
+ name?: string;
932
+ }[];
933
+ /** Format: date-time */
934
+ created_at?: string;
935
+ /** Format: date-time */
936
+ updated_at?: string;
937
+ };
938
+ ContactGroup: {
939
+ /** Format: uuid */
940
+ id?: string;
941
+ /** @constant */
942
+ object?: "contact_group";
943
+ name?: string;
944
+ description?: string | null;
945
+ is_default?: boolean;
946
+ member_count?: number;
947
+ members?: {
948
+ id?: string;
949
+ name?: string;
950
+ email?: string;
951
+ }[];
952
+ /** Format: date-time */
953
+ created_at?: string;
954
+ /** Format: date-time */
955
+ updated_at?: string;
956
+ };
957
+ StatusPage: {
958
+ /** Format: uuid */
959
+ id?: string;
960
+ /** @constant */
961
+ object?: "status_page";
962
+ slug?: string;
963
+ name?: string;
964
+ description?: string | null;
965
+ public?: boolean;
966
+ password_protected?: boolean;
967
+ auto_publish_incidents?: boolean;
968
+ dim_untracked_days?: boolean;
969
+ /** @enum {string} */
970
+ theme?: "light" | "dark" | "auto";
971
+ url?: string;
972
+ component_count?: number;
973
+ components?: components["schemas"]["StatusPageComponent"][];
974
+ /** Format: date-time */
975
+ created_at?: string;
976
+ /** Format: date-time */
977
+ updated_at?: string;
978
+ };
979
+ StatusPageComponent: {
980
+ /** Format: uuid */
981
+ id?: string;
982
+ /** @constant */
983
+ object?: "status_page_component";
984
+ name?: string;
985
+ description?: string | null;
986
+ position?: number;
987
+ display_mode?: string;
988
+ monitor_ids?: string[];
989
+ monitor_tags?: string[];
990
+ };
991
+ Announcement: {
992
+ /** Format: uuid */
993
+ id?: string;
994
+ /** @constant */
995
+ object?: "announcement";
996
+ /** @enum {string} */
997
+ type?: "incident" | "maintenance";
998
+ title?: string;
999
+ body?: string;
1000
+ /** @enum {string} */
1001
+ status?: "investigating" | "identified" | "monitoring" | "resolved";
1002
+ /** @enum {string} */
1003
+ severity?: "minor" | "major" | "critical";
1004
+ affected_component_ids?: string[];
1005
+ resolved_at?: string | null;
1006
+ /** Format: date-time */
1007
+ created_at?: string;
1008
+ /** Format: date-time */
1009
+ updated_at?: string;
1010
+ };
1011
+ Plan: {
1012
+ /** @constant */
1013
+ object?: "plan";
1014
+ name?: string;
1015
+ /** @description -1 = unlimited, 0 = feature disabled */
1016
+ limits?: Record<string, never> | null;
1017
+ usage?: Record<string, never>;
1018
+ };
1019
+ Notification: {
1020
+ id?: number;
1021
+ /** @constant */
1022
+ object?: "notification";
1023
+ /** @enum {string} */
1024
+ status?: "sent" | "failed" | "silenced";
1025
+ channel?: {
1026
+ id?: number | null;
1027
+ type?: string;
1028
+ name?: string | null;
1029
+ };
1030
+ /** @description true when this was a personal on-call page */
1031
+ oncall_page?: boolean;
1032
+ error?: string | null;
1033
+ severity?: string | null;
1034
+ incident?: Record<string, never>;
1035
+ monitor?: Record<string, never> | null;
1036
+ /** Format: date-time */
1037
+ created_at?: string;
1038
+ };
1039
+ ActivityEvent: {
1040
+ /** Format: uuid */
1041
+ id?: string;
1042
+ /** @constant */
1043
+ object?: "activity_event";
1044
+ entity_type?: string;
1045
+ entity_id?: string | null;
1046
+ /** @description Current display name of the entity (from the create/delete snapshot when it no longer exists) */
1047
+ entity_name?: string | null;
1048
+ action?: string;
1049
+ changes?: Record<string, never>;
1050
+ actor?: {
1051
+ name?: string | null;
1052
+ email?: string | null;
1053
+ } | null;
1054
+ /** Format: date-time */
1055
+ created_at?: string;
1056
+ };
1057
+ Summary: {
1058
+ /** @constant */
1059
+ object?: "summary";
1060
+ /** @description Status counts (up/down/paused/unknown) + health_score 0-100 */
1061
+ monitors?: Record<string, never>;
1062
+ /** @description Active incident counts (firing/acknowledged, by severity) + started_24h */
1063
+ incidents?: Record<string, never>;
1064
+ open_maintenance_windows?: number;
1065
+ };
1066
+ IncidentStats: {
1067
+ /** @constant */
1068
+ object?: "incident_stats";
1069
+ /** @enum {string} */
1070
+ period?: "24h" | "7d" | "30d" | "90d";
1071
+ total?: number;
1072
+ critical?: number;
1073
+ warning?: number;
1074
+ /** @description Mean time to resolve for incidents started in the period (null when none resolved) */
1075
+ mttr_seconds?: number | null;
1076
+ /** @description Period length divided by incident count (null when no incidents) */
1077
+ mtbf_seconds?: number | null;
1078
+ /** @description Hourly buckets for 24h, daily otherwise */
1079
+ counts?: Record<string, never>[];
1080
+ top_unstable_monitors?: Record<string, never>[];
1081
+ };
1082
+ OncallSchedule: {
1083
+ id?: number;
1084
+ /** @constant */
1085
+ object?: "oncall_schedule";
1086
+ name?: string;
1087
+ timezone?: string;
1088
+ enabled?: boolean;
1089
+ layer_count?: number;
1090
+ current_on_call?: {
1091
+ user_id?: string;
1092
+ name?: string | null;
1093
+ email?: string;
1094
+ } | null;
1095
+ };
1096
+ };
1097
+ responses: never;
1098
+ parameters: never;
1099
+ requestBodies: never;
1100
+ headers: never;
1101
+ pathItems: never;
1102
+ }
1103
+ export type $defs = Record<string, never>;
1104
+ export interface operations {
1105
+ getMe: {
1106
+ parameters: {
1107
+ query?: never;
1108
+ header?: never;
1109
+ path?: never;
1110
+ cookie?: never;
1111
+ };
1112
+ requestBody?: never;
1113
+ responses: {
1114
+ /** @description Key identity + organization */
1115
+ 200: {
1116
+ headers: {
1117
+ [name: string]: unknown;
1118
+ };
1119
+ content?: never;
1120
+ };
1121
+ };
1122
+ };
1123
+ getOpenApiSpec: {
1124
+ parameters: {
1125
+ query?: never;
1126
+ header?: never;
1127
+ path?: never;
1128
+ cookie?: never;
1129
+ };
1130
+ requestBody?: never;
1131
+ responses: {
1132
+ /** @description OpenAPI 3.1 spec */
1133
+ 200: {
1134
+ headers: {
1135
+ [name: string]: unknown;
1136
+ };
1137
+ content?: never;
1138
+ };
1139
+ };
1140
+ };
1141
+ listMonitorTypes: {
1142
+ parameters: {
1143
+ query?: never;
1144
+ header?: never;
1145
+ path?: never;
1146
+ cookie?: never;
1147
+ };
1148
+ requestBody?: never;
1149
+ responses: {
1150
+ /** @description Every monitor type with target format, default alert rules, alert metrics and config fields */
1151
+ 200: {
1152
+ headers: {
1153
+ [name: string]: unknown;
1154
+ };
1155
+ content?: never;
1156
+ };
1157
+ };
1158
+ };
1159
+ listMonitors: {
1160
+ parameters: {
1161
+ query?: {
1162
+ limit?: number;
1163
+ cursor?: string;
1164
+ type?: string;
1165
+ status?: string;
1166
+ tag?: string;
1167
+ /** @description Case-insensitive substring search over name and target */
1168
+ q?: string;
1169
+ };
1170
+ header?: never;
1171
+ path?: never;
1172
+ cookie?: never;
1173
+ };
1174
+ requestBody?: never;
1175
+ responses: {
1176
+ /** @description OK */
1177
+ 200: {
1178
+ headers: {
1179
+ [name: string]: unknown;
1180
+ };
1181
+ content: {
1182
+ "application/json": {
1183
+ /** @constant */
1184
+ object?: "list";
1185
+ data?: components["schemas"]["Monitor"][];
1186
+ has_more?: boolean;
1187
+ next_cursor?: string | null;
1188
+ };
1189
+ };
1190
+ };
1191
+ /** @description Error */
1192
+ default: {
1193
+ headers: {
1194
+ [name: string]: unknown;
1195
+ };
1196
+ content: {
1197
+ "application/json": components["schemas"]["Error"];
1198
+ };
1199
+ };
1200
+ };
1201
+ };
1202
+ createMonitor: {
1203
+ parameters: {
1204
+ query?: never;
1205
+ header?: {
1206
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1207
+ "Idempotency-Key"?: string;
1208
+ };
1209
+ path?: never;
1210
+ cookie?: never;
1211
+ };
1212
+ requestBody: {
1213
+ content: {
1214
+ "application/json": components["schemas"]["MonitorCreate"];
1215
+ };
1216
+ };
1217
+ responses: {
1218
+ /** @description Created */
1219
+ 201: {
1220
+ headers: {
1221
+ [name: string]: unknown;
1222
+ };
1223
+ content: {
1224
+ "application/json": components["schemas"]["Monitor"];
1225
+ };
1226
+ };
1227
+ /** @description Error */
1228
+ default: {
1229
+ headers: {
1230
+ [name: string]: unknown;
1231
+ };
1232
+ content: {
1233
+ "application/json": components["schemas"]["Error"];
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1238
+ bulkMonitorAction: {
1239
+ parameters: {
1240
+ query?: never;
1241
+ header?: {
1242
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1243
+ "Idempotency-Key"?: string;
1244
+ };
1245
+ path?: never;
1246
+ cookie?: never;
1247
+ };
1248
+ requestBody: {
1249
+ content: {
1250
+ "application/json": {
1251
+ /** @enum {string} */
1252
+ action: "pause" | "resume" | "delete";
1253
+ ids: string[];
1254
+ };
1255
+ };
1256
+ };
1257
+ responses: {
1258
+ /** @description OK */
1259
+ 200: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content: {
1264
+ "application/json": components["schemas"]["BulkResult"];
1265
+ };
1266
+ };
1267
+ /** @description Error */
1268
+ default: {
1269
+ headers: {
1270
+ [name: string]: unknown;
1271
+ };
1272
+ content: {
1273
+ "application/json": components["schemas"]["Error"];
1274
+ };
1275
+ };
1276
+ };
1277
+ };
1278
+ getMonitor: {
1279
+ parameters: {
1280
+ query?: never;
1281
+ header?: never;
1282
+ path: {
1283
+ /** @description Resource id (UUID) */
1284
+ id: string;
1285
+ };
1286
+ cookie?: never;
1287
+ };
1288
+ requestBody?: never;
1289
+ responses: {
1290
+ /** @description OK */
1291
+ 200: {
1292
+ headers: {
1293
+ [name: string]: unknown;
1294
+ };
1295
+ content: {
1296
+ "application/json": components["schemas"]["Monitor"];
1297
+ };
1298
+ };
1299
+ /** @description Error */
1300
+ default: {
1301
+ headers: {
1302
+ [name: string]: unknown;
1303
+ };
1304
+ content: {
1305
+ "application/json": components["schemas"]["Error"];
1306
+ };
1307
+ };
1308
+ };
1309
+ };
1310
+ deleteMonitor: {
1311
+ parameters: {
1312
+ query?: never;
1313
+ header?: never;
1314
+ path: {
1315
+ /** @description Resource id (UUID) */
1316
+ id: string;
1317
+ };
1318
+ cookie?: never;
1319
+ };
1320
+ requestBody?: never;
1321
+ responses: {
1322
+ /** @description Deleted */
1323
+ 204: {
1324
+ headers: {
1325
+ [name: string]: unknown;
1326
+ };
1327
+ content?: never;
1328
+ };
1329
+ /** @description Error */
1330
+ default: {
1331
+ headers: {
1332
+ [name: string]: unknown;
1333
+ };
1334
+ content: {
1335
+ "application/json": components["schemas"]["Error"];
1336
+ };
1337
+ };
1338
+ };
1339
+ };
1340
+ updateMonitor: {
1341
+ parameters: {
1342
+ query?: never;
1343
+ header?: never;
1344
+ path: {
1345
+ /** @description Resource id (UUID) */
1346
+ id: string;
1347
+ };
1348
+ cookie?: never;
1349
+ };
1350
+ requestBody: {
1351
+ content: {
1352
+ "application/json": components["schemas"]["MonitorUpdate"];
1353
+ };
1354
+ };
1355
+ responses: {
1356
+ /** @description OK */
1357
+ 200: {
1358
+ headers: {
1359
+ [name: string]: unknown;
1360
+ };
1361
+ content: {
1362
+ "application/json": components["schemas"]["Monitor"];
1363
+ };
1364
+ };
1365
+ /** @description Error */
1366
+ default: {
1367
+ headers: {
1368
+ [name: string]: unknown;
1369
+ };
1370
+ content: {
1371
+ "application/json": components["schemas"]["Error"];
1372
+ };
1373
+ };
1374
+ };
1375
+ };
1376
+ pauseMonitor: {
1377
+ parameters: {
1378
+ query?: never;
1379
+ header?: {
1380
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1381
+ "Idempotency-Key"?: string;
1382
+ };
1383
+ path: {
1384
+ /** @description Resource id (UUID) */
1385
+ id: string;
1386
+ };
1387
+ cookie?: never;
1388
+ };
1389
+ requestBody?: never;
1390
+ responses: {
1391
+ /** @description OK */
1392
+ 200: {
1393
+ headers: {
1394
+ [name: string]: unknown;
1395
+ };
1396
+ content: {
1397
+ "application/json": components["schemas"]["Monitor"];
1398
+ };
1399
+ };
1400
+ /** @description Error */
1401
+ default: {
1402
+ headers: {
1403
+ [name: string]: unknown;
1404
+ };
1405
+ content: {
1406
+ "application/json": components["schemas"]["Error"];
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ resumeMonitor: {
1412
+ parameters: {
1413
+ query?: never;
1414
+ header?: {
1415
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1416
+ "Idempotency-Key"?: string;
1417
+ };
1418
+ path: {
1419
+ /** @description Resource id (UUID) */
1420
+ id: string;
1421
+ };
1422
+ cookie?: never;
1423
+ };
1424
+ requestBody?: never;
1425
+ responses: {
1426
+ /** @description OK */
1427
+ 200: {
1428
+ headers: {
1429
+ [name: string]: unknown;
1430
+ };
1431
+ content: {
1432
+ "application/json": components["schemas"]["Monitor"];
1433
+ };
1434
+ };
1435
+ /** @description Error */
1436
+ default: {
1437
+ headers: {
1438
+ [name: string]: unknown;
1439
+ };
1440
+ content: {
1441
+ "application/json": components["schemas"]["Error"];
1442
+ };
1443
+ };
1444
+ };
1445
+ };
1446
+ runMonitorCheckNow: {
1447
+ parameters: {
1448
+ query?: never;
1449
+ header?: {
1450
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1451
+ "Idempotency-Key"?: string;
1452
+ };
1453
+ path: {
1454
+ /** @description Resource id (UUID) */
1455
+ id: string;
1456
+ };
1457
+ cookie?: never;
1458
+ };
1459
+ requestBody?: never;
1460
+ responses: {
1461
+ /** @description Check dispatched */
1462
+ 202: {
1463
+ headers: {
1464
+ [name: string]: unknown;
1465
+ };
1466
+ content?: never;
1467
+ };
1468
+ /** @description Error */
1469
+ default: {
1470
+ headers: {
1471
+ [name: string]: unknown;
1472
+ };
1473
+ content: {
1474
+ "application/json": components["schemas"]["Error"];
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1479
+ getMonitorUptime: {
1480
+ parameters: {
1481
+ query?: {
1482
+ period?: "1h" | "24h" | "7d" | "30d" | "90d";
1483
+ };
1484
+ header?: never;
1485
+ path: {
1486
+ /** @description Resource id (UUID) */
1487
+ id: string;
1488
+ };
1489
+ cookie?: never;
1490
+ };
1491
+ requestBody?: never;
1492
+ responses: {
1493
+ /** @description OK */
1494
+ 200: {
1495
+ headers: {
1496
+ [name: string]: unknown;
1497
+ };
1498
+ content: {
1499
+ "application/json": components["schemas"]["Uptime"];
1500
+ };
1501
+ };
1502
+ /** @description Error */
1503
+ default: {
1504
+ headers: {
1505
+ [name: string]: unknown;
1506
+ };
1507
+ content: {
1508
+ "application/json": components["schemas"]["Error"];
1509
+ };
1510
+ };
1511
+ };
1512
+ };
1513
+ listMonitorChecks: {
1514
+ parameters: {
1515
+ query?: {
1516
+ hours?: number;
1517
+ limit?: number;
1518
+ };
1519
+ header?: never;
1520
+ path: {
1521
+ /** @description Resource id (UUID) */
1522
+ id: string;
1523
+ };
1524
+ cookie?: never;
1525
+ };
1526
+ requestBody?: never;
1527
+ responses: {
1528
+ /** @description OK */
1529
+ 200: {
1530
+ headers: {
1531
+ [name: string]: unknown;
1532
+ };
1533
+ content: {
1534
+ "application/json": {
1535
+ /** @constant */
1536
+ object?: "list";
1537
+ data?: components["schemas"]["Check"][];
1538
+ has_more?: boolean;
1539
+ locations?: Record<string, never>[];
1540
+ };
1541
+ };
1542
+ };
1543
+ /** @description Error */
1544
+ default: {
1545
+ headers: {
1546
+ [name: string]: unknown;
1547
+ };
1548
+ content: {
1549
+ "application/json": components["schemas"]["Error"];
1550
+ };
1551
+ };
1552
+ };
1553
+ };
1554
+ listAlertRules: {
1555
+ parameters: {
1556
+ query?: never;
1557
+ header?: never;
1558
+ path: {
1559
+ /** @description Resource id (UUID) */
1560
+ id: string;
1561
+ };
1562
+ cookie?: never;
1563
+ };
1564
+ requestBody?: never;
1565
+ responses: {
1566
+ /** @description OK */
1567
+ 200: {
1568
+ headers: {
1569
+ [name: string]: unknown;
1570
+ };
1571
+ content: {
1572
+ "application/json": {
1573
+ /** @constant */
1574
+ object?: "list";
1575
+ data?: components["schemas"]["AlertRule"][];
1576
+ has_more?: boolean;
1577
+ };
1578
+ };
1579
+ };
1580
+ /** @description Error */
1581
+ default: {
1582
+ headers: {
1583
+ [name: string]: unknown;
1584
+ };
1585
+ content: {
1586
+ "application/json": components["schemas"]["Error"];
1587
+ };
1588
+ };
1589
+ };
1590
+ };
1591
+ createAlertRule: {
1592
+ parameters: {
1593
+ query?: never;
1594
+ header?: {
1595
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1596
+ "Idempotency-Key"?: string;
1597
+ };
1598
+ path: {
1599
+ /** @description Resource id (UUID) */
1600
+ id: string;
1601
+ };
1602
+ cookie?: never;
1603
+ };
1604
+ requestBody: {
1605
+ content: {
1606
+ "application/json": components["schemas"]["AlertRuleCreate"];
1607
+ };
1608
+ };
1609
+ responses: {
1610
+ /** @description Created */
1611
+ 201: {
1612
+ headers: {
1613
+ [name: string]: unknown;
1614
+ };
1615
+ content: {
1616
+ "application/json": components["schemas"]["AlertRule"];
1617
+ };
1618
+ };
1619
+ /** @description Error */
1620
+ default: {
1621
+ headers: {
1622
+ [name: string]: unknown;
1623
+ };
1624
+ content: {
1625
+ "application/json": components["schemas"]["Error"];
1626
+ };
1627
+ };
1628
+ };
1629
+ };
1630
+ getAlertRule: {
1631
+ parameters: {
1632
+ query?: never;
1633
+ header?: never;
1634
+ path: {
1635
+ /** @description Resource id (UUID) */
1636
+ id: string;
1637
+ /** @description Resource id (UUID) */
1638
+ ruleId: string;
1639
+ };
1640
+ cookie?: never;
1641
+ };
1642
+ requestBody?: never;
1643
+ responses: {
1644
+ /** @description OK */
1645
+ 200: {
1646
+ headers: {
1647
+ [name: string]: unknown;
1648
+ };
1649
+ content: {
1650
+ "application/json": components["schemas"]["AlertRule"];
1651
+ };
1652
+ };
1653
+ /** @description Error */
1654
+ default: {
1655
+ headers: {
1656
+ [name: string]: unknown;
1657
+ };
1658
+ content: {
1659
+ "application/json": components["schemas"]["Error"];
1660
+ };
1661
+ };
1662
+ };
1663
+ };
1664
+ deleteAlertRule: {
1665
+ parameters: {
1666
+ query?: never;
1667
+ header?: never;
1668
+ path: {
1669
+ /** @description Resource id (UUID) */
1670
+ id: string;
1671
+ /** @description Resource id (UUID) */
1672
+ ruleId: string;
1673
+ };
1674
+ cookie?: never;
1675
+ };
1676
+ requestBody?: never;
1677
+ responses: {
1678
+ /** @description Deleted */
1679
+ 204: {
1680
+ headers: {
1681
+ [name: string]: unknown;
1682
+ };
1683
+ content?: never;
1684
+ };
1685
+ /** @description Error */
1686
+ default: {
1687
+ headers: {
1688
+ [name: string]: unknown;
1689
+ };
1690
+ content: {
1691
+ "application/json": components["schemas"]["Error"];
1692
+ };
1693
+ };
1694
+ };
1695
+ };
1696
+ updateAlertRule: {
1697
+ parameters: {
1698
+ query?: never;
1699
+ header?: never;
1700
+ path: {
1701
+ /** @description Resource id (UUID) */
1702
+ id: string;
1703
+ /** @description Resource id (UUID) */
1704
+ ruleId: string;
1705
+ };
1706
+ cookie?: never;
1707
+ };
1708
+ requestBody?: never;
1709
+ responses: {
1710
+ /** @description OK */
1711
+ 200: {
1712
+ headers: {
1713
+ [name: string]: unknown;
1714
+ };
1715
+ content: {
1716
+ "application/json": components["schemas"]["AlertRule"];
1717
+ };
1718
+ };
1719
+ /** @description Error */
1720
+ default: {
1721
+ headers: {
1722
+ [name: string]: unknown;
1723
+ };
1724
+ content: {
1725
+ "application/json": components["schemas"]["Error"];
1726
+ };
1727
+ };
1728
+ };
1729
+ };
1730
+ listLocations: {
1731
+ parameters: {
1732
+ query?: never;
1733
+ header?: never;
1734
+ path?: never;
1735
+ cookie?: never;
1736
+ };
1737
+ requestBody?: never;
1738
+ responses: {
1739
+ /** @description OK */
1740
+ 200: {
1741
+ headers: {
1742
+ [name: string]: unknown;
1743
+ };
1744
+ content: {
1745
+ "application/json": {
1746
+ /** @constant */
1747
+ object?: "list";
1748
+ data?: components["schemas"]["Location"][];
1749
+ has_more?: boolean;
1750
+ };
1751
+ };
1752
+ };
1753
+ /** @description Error */
1754
+ default: {
1755
+ headers: {
1756
+ [name: string]: unknown;
1757
+ };
1758
+ content: {
1759
+ "application/json": components["schemas"]["Error"];
1760
+ };
1761
+ };
1762
+ };
1763
+ };
1764
+ listIncidents: {
1765
+ parameters: {
1766
+ query?: {
1767
+ status?: "firing" | "acknowledged" | "resolved";
1768
+ severity?: "warning" | "critical";
1769
+ limit?: number;
1770
+ /** @description Opaque cursor from the previous page's next_cursor */
1771
+ cursor?: string;
1772
+ /** @description Only incidents of this monitor */
1773
+ monitor_id?: string;
1774
+ /** @description Incidents started at/after this time */
1775
+ since?: string;
1776
+ /** @description Incidents started before this time */
1777
+ until?: string;
1778
+ };
1779
+ header?: never;
1780
+ path?: never;
1781
+ cookie?: never;
1782
+ };
1783
+ requestBody?: never;
1784
+ responses: {
1785
+ /** @description OK */
1786
+ 200: {
1787
+ headers: {
1788
+ [name: string]: unknown;
1789
+ };
1790
+ content: {
1791
+ "application/json": {
1792
+ /** @constant */
1793
+ object?: "list";
1794
+ data?: components["schemas"]["Incident"][];
1795
+ has_more?: boolean;
1796
+ total?: number;
1797
+ };
1798
+ };
1799
+ };
1800
+ /** @description Error */
1801
+ default: {
1802
+ headers: {
1803
+ [name: string]: unknown;
1804
+ };
1805
+ content: {
1806
+ "application/json": components["schemas"]["Error"];
1807
+ };
1808
+ };
1809
+ };
1810
+ };
1811
+ getIncident: {
1812
+ parameters: {
1813
+ query?: never;
1814
+ header?: never;
1815
+ path: {
1816
+ /** @description Incident id (integer) */
1817
+ id: string;
1818
+ };
1819
+ cookie?: never;
1820
+ };
1821
+ requestBody?: never;
1822
+ responses: {
1823
+ /** @description OK */
1824
+ 200: {
1825
+ headers: {
1826
+ [name: string]: unknown;
1827
+ };
1828
+ content: {
1829
+ "application/json": components["schemas"]["Incident"];
1830
+ };
1831
+ };
1832
+ /** @description Error */
1833
+ default: {
1834
+ headers: {
1835
+ [name: string]: unknown;
1836
+ };
1837
+ content: {
1838
+ "application/json": components["schemas"]["Error"];
1839
+ };
1840
+ };
1841
+ };
1842
+ };
1843
+ acknowledgeIncident: {
1844
+ parameters: {
1845
+ query?: never;
1846
+ header?: {
1847
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1848
+ "Idempotency-Key"?: string;
1849
+ };
1850
+ path: {
1851
+ /** @description Incident id (integer) */
1852
+ id: string;
1853
+ };
1854
+ cookie?: never;
1855
+ };
1856
+ requestBody?: never;
1857
+ responses: {
1858
+ /** @description OK */
1859
+ 200: {
1860
+ headers: {
1861
+ [name: string]: unknown;
1862
+ };
1863
+ content: {
1864
+ "application/json": components["schemas"]["Incident"];
1865
+ };
1866
+ };
1867
+ /** @description Error */
1868
+ default: {
1869
+ headers: {
1870
+ [name: string]: unknown;
1871
+ };
1872
+ content: {
1873
+ "application/json": components["schemas"]["Error"];
1874
+ };
1875
+ };
1876
+ };
1877
+ };
1878
+ resolveIncident: {
1879
+ parameters: {
1880
+ query?: never;
1881
+ header?: {
1882
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1883
+ "Idempotency-Key"?: string;
1884
+ };
1885
+ path: {
1886
+ /** @description Incident id (integer) */
1887
+ id: string;
1888
+ };
1889
+ cookie?: never;
1890
+ };
1891
+ requestBody?: never;
1892
+ responses: {
1893
+ /** @description Already resolved */
1894
+ 200: {
1895
+ headers: {
1896
+ [name: string]: unknown;
1897
+ };
1898
+ content: {
1899
+ "application/json": components["schemas"]["Incident"];
1900
+ };
1901
+ };
1902
+ /** @description Resolution requested */
1903
+ 202: {
1904
+ headers: {
1905
+ [name: string]: unknown;
1906
+ };
1907
+ content: {
1908
+ "application/json": components["schemas"]["Incident"];
1909
+ };
1910
+ };
1911
+ /** @description Error */
1912
+ default: {
1913
+ headers: {
1914
+ [name: string]: unknown;
1915
+ };
1916
+ content: {
1917
+ "application/json": components["schemas"]["Error"];
1918
+ };
1919
+ };
1920
+ };
1921
+ };
1922
+ markIncidentMaintenance: {
1923
+ parameters: {
1924
+ query?: never;
1925
+ header?: {
1926
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
1927
+ "Idempotency-Key"?: string;
1928
+ };
1929
+ path: {
1930
+ /** @description Incident id (integer) */
1931
+ id: string;
1932
+ };
1933
+ cookie?: never;
1934
+ };
1935
+ requestBody?: never;
1936
+ responses: {
1937
+ /** @description Already marked */
1938
+ 200: {
1939
+ headers: {
1940
+ [name: string]: unknown;
1941
+ };
1942
+ content?: never;
1943
+ };
1944
+ /** @description Marked; returns the maintenance window */
1945
+ 201: {
1946
+ headers: {
1947
+ [name: string]: unknown;
1948
+ };
1949
+ content?: never;
1950
+ };
1951
+ /** @description Error */
1952
+ default: {
1953
+ headers: {
1954
+ [name: string]: unknown;
1955
+ };
1956
+ content: {
1957
+ "application/json": components["schemas"]["Error"];
1958
+ };
1959
+ };
1960
+ };
1961
+ };
1962
+ listMaintenanceWindows: {
1963
+ parameters: {
1964
+ query?: {
1965
+ limit?: number;
1966
+ /** @description Opaque cursor from the previous page's next_cursor */
1967
+ cursor?: string;
1968
+ };
1969
+ header?: never;
1970
+ path?: never;
1971
+ cookie?: never;
1972
+ };
1973
+ requestBody?: never;
1974
+ responses: {
1975
+ /** @description OK */
1976
+ 200: {
1977
+ headers: {
1978
+ [name: string]: unknown;
1979
+ };
1980
+ content: {
1981
+ "application/json": {
1982
+ /** @constant */
1983
+ object?: "list";
1984
+ data?: components["schemas"]["MaintenanceWindow"][];
1985
+ has_more?: boolean;
1986
+ };
1987
+ };
1988
+ };
1989
+ /** @description Error */
1990
+ default: {
1991
+ headers: {
1992
+ [name: string]: unknown;
1993
+ };
1994
+ content: {
1995
+ "application/json": components["schemas"]["Error"];
1996
+ };
1997
+ };
1998
+ };
1999
+ };
2000
+ createMaintenanceWindow: {
2001
+ parameters: {
2002
+ query?: never;
2003
+ header?: {
2004
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
2005
+ "Idempotency-Key"?: string;
2006
+ };
2007
+ path?: never;
2008
+ cookie?: never;
2009
+ };
2010
+ requestBody: {
2011
+ content: {
2012
+ "application/json": components["schemas"]["MaintenanceWindowCreate"];
2013
+ };
2014
+ };
2015
+ responses: {
2016
+ /** @description Created */
2017
+ 201: {
2018
+ headers: {
2019
+ [name: string]: unknown;
2020
+ };
2021
+ content: {
2022
+ "application/json": components["schemas"]["MaintenanceWindow"];
2023
+ };
2024
+ };
2025
+ /** @description Error */
2026
+ default: {
2027
+ headers: {
2028
+ [name: string]: unknown;
2029
+ };
2030
+ content: {
2031
+ "application/json": components["schemas"]["Error"];
2032
+ };
2033
+ };
2034
+ };
2035
+ };
2036
+ getMaintenanceWindow: {
2037
+ parameters: {
2038
+ query?: never;
2039
+ header?: never;
2040
+ path: {
2041
+ /** @description Resource id (UUID) */
2042
+ id: string;
2043
+ };
2044
+ cookie?: never;
2045
+ };
2046
+ requestBody?: never;
2047
+ responses: {
2048
+ /** @description OK */
2049
+ 200: {
2050
+ headers: {
2051
+ [name: string]: unknown;
2052
+ };
2053
+ content: {
2054
+ "application/json": components["schemas"]["MaintenanceWindow"];
2055
+ };
2056
+ };
2057
+ /** @description Error */
2058
+ default: {
2059
+ headers: {
2060
+ [name: string]: unknown;
2061
+ };
2062
+ content: {
2063
+ "application/json": components["schemas"]["Error"];
2064
+ };
2065
+ };
2066
+ };
2067
+ };
2068
+ deleteMaintenanceWindow: {
2069
+ parameters: {
2070
+ query?: never;
2071
+ header?: never;
2072
+ path: {
2073
+ /** @description Resource id (UUID) */
2074
+ id: string;
2075
+ };
2076
+ cookie?: never;
2077
+ };
2078
+ requestBody?: never;
2079
+ responses: {
2080
+ /** @description Deleted */
2081
+ 204: {
2082
+ headers: {
2083
+ [name: string]: unknown;
2084
+ };
2085
+ content?: never;
2086
+ };
2087
+ /** @description Error */
2088
+ default: {
2089
+ headers: {
2090
+ [name: string]: unknown;
2091
+ };
2092
+ content: {
2093
+ "application/json": components["schemas"]["Error"];
2094
+ };
2095
+ };
2096
+ };
2097
+ };
2098
+ updateMaintenanceWindow: {
2099
+ parameters: {
2100
+ query?: never;
2101
+ header?: never;
2102
+ path: {
2103
+ /** @description Resource id (UUID) */
2104
+ id: string;
2105
+ };
2106
+ cookie?: never;
2107
+ };
2108
+ requestBody?: never;
2109
+ responses: {
2110
+ /** @description OK */
2111
+ 200: {
2112
+ headers: {
2113
+ [name: string]: unknown;
2114
+ };
2115
+ content: {
2116
+ "application/json": components["schemas"]["MaintenanceWindow"];
2117
+ };
2118
+ };
2119
+ /** @description Error */
2120
+ default: {
2121
+ headers: {
2122
+ [name: string]: unknown;
2123
+ };
2124
+ content: {
2125
+ "application/json": components["schemas"]["Error"];
2126
+ };
2127
+ };
2128
+ };
2129
+ };
2130
+ listContacts: {
2131
+ parameters: {
2132
+ query?: {
2133
+ limit?: number;
2134
+ /** @description Opaque cursor from the previous page's next_cursor */
2135
+ cursor?: string;
2136
+ };
2137
+ header?: never;
2138
+ path?: never;
2139
+ cookie?: never;
2140
+ };
2141
+ requestBody?: never;
2142
+ responses: {
2143
+ /** @description OK */
2144
+ 200: {
2145
+ headers: {
2146
+ [name: string]: unknown;
2147
+ };
2148
+ content: {
2149
+ "application/json": {
2150
+ /** @constant */
2151
+ object?: "list";
2152
+ data?: components["schemas"]["Contact"][];
2153
+ has_more?: boolean;
2154
+ };
2155
+ };
2156
+ };
2157
+ /** @description Error */
2158
+ default: {
2159
+ headers: {
2160
+ [name: string]: unknown;
2161
+ };
2162
+ content: {
2163
+ "application/json": components["schemas"]["Error"];
2164
+ };
2165
+ };
2166
+ };
2167
+ };
2168
+ createContact: {
2169
+ parameters: {
2170
+ query?: never;
2171
+ header?: {
2172
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
2173
+ "Idempotency-Key"?: string;
2174
+ };
2175
+ path?: never;
2176
+ cookie?: never;
2177
+ };
2178
+ requestBody: {
2179
+ content: {
2180
+ "application/json": {
2181
+ name: string;
2182
+ /** Format: email */
2183
+ email: string;
2184
+ phone?: string;
2185
+ groupIds?: string[];
2186
+ };
2187
+ };
2188
+ };
2189
+ responses: {
2190
+ /** @description Created */
2191
+ 201: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ "application/json": components["schemas"]["Contact"];
2197
+ };
2198
+ };
2199
+ /** @description Error */
2200
+ default: {
2201
+ headers: {
2202
+ [name: string]: unknown;
2203
+ };
2204
+ content: {
2205
+ "application/json": components["schemas"]["Error"];
2206
+ };
2207
+ };
2208
+ };
2209
+ };
2210
+ getContact: {
2211
+ parameters: {
2212
+ query?: never;
2213
+ header?: never;
2214
+ path: {
2215
+ /** @description Resource id (UUID) */
2216
+ id: string;
2217
+ };
2218
+ cookie?: never;
2219
+ };
2220
+ requestBody?: never;
2221
+ responses: {
2222
+ /** @description OK */
2223
+ 200: {
2224
+ headers: {
2225
+ [name: string]: unknown;
2226
+ };
2227
+ content: {
2228
+ "application/json": components["schemas"]["Contact"];
2229
+ };
2230
+ };
2231
+ /** @description Error */
2232
+ default: {
2233
+ headers: {
2234
+ [name: string]: unknown;
2235
+ };
2236
+ content: {
2237
+ "application/json": components["schemas"]["Error"];
2238
+ };
2239
+ };
2240
+ };
2241
+ };
2242
+ deleteContact: {
2243
+ parameters: {
2244
+ query?: never;
2245
+ header?: never;
2246
+ path: {
2247
+ /** @description Resource id (UUID) */
2248
+ id: string;
2249
+ };
2250
+ cookie?: never;
2251
+ };
2252
+ requestBody?: never;
2253
+ responses: {
2254
+ /** @description Deleted */
2255
+ 204: {
2256
+ headers: {
2257
+ [name: string]: unknown;
2258
+ };
2259
+ content?: never;
2260
+ };
2261
+ /** @description Error */
2262
+ default: {
2263
+ headers: {
2264
+ [name: string]: unknown;
2265
+ };
2266
+ content: {
2267
+ "application/json": components["schemas"]["Error"];
2268
+ };
2269
+ };
2270
+ };
2271
+ };
2272
+ updateContact: {
2273
+ parameters: {
2274
+ query?: never;
2275
+ header?: never;
2276
+ path: {
2277
+ /** @description Resource id (UUID) */
2278
+ id: string;
2279
+ };
2280
+ cookie?: never;
2281
+ };
2282
+ requestBody?: never;
2283
+ responses: {
2284
+ /** @description OK */
2285
+ 200: {
2286
+ headers: {
2287
+ [name: string]: unknown;
2288
+ };
2289
+ content: {
2290
+ "application/json": components["schemas"]["Contact"];
2291
+ };
2292
+ };
2293
+ /** @description Error */
2294
+ default: {
2295
+ headers: {
2296
+ [name: string]: unknown;
2297
+ };
2298
+ content: {
2299
+ "application/json": components["schemas"]["Error"];
2300
+ };
2301
+ };
2302
+ };
2303
+ };
2304
+ listContactGroups: {
2305
+ parameters: {
2306
+ query?: {
2307
+ limit?: number;
2308
+ /** @description Opaque cursor from the previous page's next_cursor */
2309
+ cursor?: string;
2310
+ };
2311
+ header?: never;
2312
+ path?: never;
2313
+ cookie?: never;
2314
+ };
2315
+ requestBody?: never;
2316
+ responses: {
2317
+ /** @description OK */
2318
+ 200: {
2319
+ headers: {
2320
+ [name: string]: unknown;
2321
+ };
2322
+ content: {
2323
+ "application/json": {
2324
+ /** @constant */
2325
+ object?: "list";
2326
+ data?: components["schemas"]["ContactGroup"][];
2327
+ has_more?: boolean;
2328
+ };
2329
+ };
2330
+ };
2331
+ /** @description Error */
2332
+ default: {
2333
+ headers: {
2334
+ [name: string]: unknown;
2335
+ };
2336
+ content: {
2337
+ "application/json": components["schemas"]["Error"];
2338
+ };
2339
+ };
2340
+ };
2341
+ };
2342
+ createContactGroup: {
2343
+ parameters: {
2344
+ query?: never;
2345
+ header?: {
2346
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
2347
+ "Idempotency-Key"?: string;
2348
+ };
2349
+ path?: never;
2350
+ cookie?: never;
2351
+ };
2352
+ requestBody?: never;
2353
+ responses: {
2354
+ /** @description Created */
2355
+ 201: {
2356
+ headers: {
2357
+ [name: string]: unknown;
2358
+ };
2359
+ content: {
2360
+ "application/json": components["schemas"]["ContactGroup"];
2361
+ };
2362
+ };
2363
+ /** @description Error */
2364
+ default: {
2365
+ headers: {
2366
+ [name: string]: unknown;
2367
+ };
2368
+ content: {
2369
+ "application/json": components["schemas"]["Error"];
2370
+ };
2371
+ };
2372
+ };
2373
+ };
2374
+ getContactGroup: {
2375
+ parameters: {
2376
+ query?: never;
2377
+ header?: never;
2378
+ path: {
2379
+ /** @description Resource id (UUID) */
2380
+ id: string;
2381
+ };
2382
+ cookie?: never;
2383
+ };
2384
+ requestBody?: never;
2385
+ responses: {
2386
+ /** @description OK */
2387
+ 200: {
2388
+ headers: {
2389
+ [name: string]: unknown;
2390
+ };
2391
+ content: {
2392
+ "application/json": components["schemas"]["ContactGroup"];
2393
+ };
2394
+ };
2395
+ /** @description Error */
2396
+ default: {
2397
+ headers: {
2398
+ [name: string]: unknown;
2399
+ };
2400
+ content: {
2401
+ "application/json": components["schemas"]["Error"];
2402
+ };
2403
+ };
2404
+ };
2405
+ };
2406
+ deleteContactGroup: {
2407
+ parameters: {
2408
+ query?: never;
2409
+ header?: never;
2410
+ path: {
2411
+ /** @description Resource id (UUID) */
2412
+ id: string;
2413
+ };
2414
+ cookie?: never;
2415
+ };
2416
+ requestBody?: never;
2417
+ responses: {
2418
+ /** @description Deleted */
2419
+ 204: {
2420
+ headers: {
2421
+ [name: string]: unknown;
2422
+ };
2423
+ content?: never;
2424
+ };
2425
+ /** @description Error */
2426
+ default: {
2427
+ headers: {
2428
+ [name: string]: unknown;
2429
+ };
2430
+ content: {
2431
+ "application/json": components["schemas"]["Error"];
2432
+ };
2433
+ };
2434
+ };
2435
+ };
2436
+ updateContactGroup: {
2437
+ parameters: {
2438
+ query?: never;
2439
+ header?: never;
2440
+ path: {
2441
+ /** @description Resource id (UUID) */
2442
+ id: string;
2443
+ };
2444
+ cookie?: never;
2445
+ };
2446
+ requestBody?: never;
2447
+ responses: {
2448
+ /** @description OK */
2449
+ 200: {
2450
+ headers: {
2451
+ [name: string]: unknown;
2452
+ };
2453
+ content: {
2454
+ "application/json": components["schemas"]["ContactGroup"];
2455
+ };
2456
+ };
2457
+ /** @description Error */
2458
+ default: {
2459
+ headers: {
2460
+ [name: string]: unknown;
2461
+ };
2462
+ content: {
2463
+ "application/json": components["schemas"]["Error"];
2464
+ };
2465
+ };
2466
+ };
2467
+ };
2468
+ listStatusPages: {
2469
+ parameters: {
2470
+ query?: never;
2471
+ header?: never;
2472
+ path?: never;
2473
+ cookie?: never;
2474
+ };
2475
+ requestBody?: never;
2476
+ responses: {
2477
+ /** @description OK */
2478
+ 200: {
2479
+ headers: {
2480
+ [name: string]: unknown;
2481
+ };
2482
+ content: {
2483
+ "application/json": {
2484
+ /** @constant */
2485
+ object?: "list";
2486
+ data?: components["schemas"]["StatusPage"][];
2487
+ has_more?: boolean;
2488
+ };
2489
+ };
2490
+ };
2491
+ /** @description Error */
2492
+ default: {
2493
+ headers: {
2494
+ [name: string]: unknown;
2495
+ };
2496
+ content: {
2497
+ "application/json": components["schemas"]["Error"];
2498
+ };
2499
+ };
2500
+ };
2501
+ };
2502
+ createStatusPage: {
2503
+ parameters: {
2504
+ query?: never;
2505
+ header?: {
2506
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
2507
+ "Idempotency-Key"?: string;
2508
+ };
2509
+ path?: never;
2510
+ cookie?: never;
2511
+ };
2512
+ requestBody?: never;
2513
+ responses: {
2514
+ /** @description Created */
2515
+ 201: {
2516
+ headers: {
2517
+ [name: string]: unknown;
2518
+ };
2519
+ content: {
2520
+ "application/json": components["schemas"]["StatusPage"];
2521
+ };
2522
+ };
2523
+ /** @description Error */
2524
+ default: {
2525
+ headers: {
2526
+ [name: string]: unknown;
2527
+ };
2528
+ content: {
2529
+ "application/json": components["schemas"]["Error"];
2530
+ };
2531
+ };
2532
+ };
2533
+ };
2534
+ getStatusPage: {
2535
+ parameters: {
2536
+ query?: never;
2537
+ header?: never;
2538
+ path: {
2539
+ /** @description Resource id (UUID) */
2540
+ id: string;
2541
+ };
2542
+ cookie?: never;
2543
+ };
2544
+ requestBody?: never;
2545
+ responses: {
2546
+ /** @description OK */
2547
+ 200: {
2548
+ headers: {
2549
+ [name: string]: unknown;
2550
+ };
2551
+ content: {
2552
+ "application/json": components["schemas"]["StatusPage"];
2553
+ };
2554
+ };
2555
+ /** @description Error */
2556
+ default: {
2557
+ headers: {
2558
+ [name: string]: unknown;
2559
+ };
2560
+ content: {
2561
+ "application/json": components["schemas"]["Error"];
2562
+ };
2563
+ };
2564
+ };
2565
+ };
2566
+ deleteStatusPage: {
2567
+ parameters: {
2568
+ query?: never;
2569
+ header?: never;
2570
+ path: {
2571
+ /** @description Resource id (UUID) */
2572
+ id: string;
2573
+ };
2574
+ cookie?: never;
2575
+ };
2576
+ requestBody?: never;
2577
+ responses: {
2578
+ /** @description Deleted */
2579
+ 204: {
2580
+ headers: {
2581
+ [name: string]: unknown;
2582
+ };
2583
+ content?: never;
2584
+ };
2585
+ /** @description Error */
2586
+ default: {
2587
+ headers: {
2588
+ [name: string]: unknown;
2589
+ };
2590
+ content: {
2591
+ "application/json": components["schemas"]["Error"];
2592
+ };
2593
+ };
2594
+ };
2595
+ };
2596
+ updateStatusPage: {
2597
+ parameters: {
2598
+ query?: never;
2599
+ header?: never;
2600
+ path: {
2601
+ /** @description Resource id (UUID) */
2602
+ id: string;
2603
+ };
2604
+ cookie?: never;
2605
+ };
2606
+ requestBody?: never;
2607
+ responses: {
2608
+ /** @description OK */
2609
+ 200: {
2610
+ headers: {
2611
+ [name: string]: unknown;
2612
+ };
2613
+ content: {
2614
+ "application/json": components["schemas"]["StatusPage"];
2615
+ };
2616
+ };
2617
+ /** @description Error */
2618
+ default: {
2619
+ headers: {
2620
+ [name: string]: unknown;
2621
+ };
2622
+ content: {
2623
+ "application/json": components["schemas"]["Error"];
2624
+ };
2625
+ };
2626
+ };
2627
+ };
2628
+ listAnnouncements: {
2629
+ parameters: {
2630
+ query?: never;
2631
+ header?: never;
2632
+ path: {
2633
+ /** @description Resource id (UUID) */
2634
+ id: string;
2635
+ };
2636
+ cookie?: never;
2637
+ };
2638
+ requestBody?: never;
2639
+ responses: {
2640
+ /** @description OK */
2641
+ 200: {
2642
+ headers: {
2643
+ [name: string]: unknown;
2644
+ };
2645
+ content: {
2646
+ "application/json": {
2647
+ /** @constant */
2648
+ object?: "list";
2649
+ data?: components["schemas"]["Announcement"][];
2650
+ has_more?: boolean;
2651
+ };
2652
+ };
2653
+ };
2654
+ /** @description Error */
2655
+ default: {
2656
+ headers: {
2657
+ [name: string]: unknown;
2658
+ };
2659
+ content: {
2660
+ "application/json": components["schemas"]["Error"];
2661
+ };
2662
+ };
2663
+ };
2664
+ };
2665
+ createAnnouncement: {
2666
+ parameters: {
2667
+ query?: never;
2668
+ header?: {
2669
+ /** @description Unique key for safe retries (Stripe semantics, 24h window): the same key + body replays the original response instead of re-creating. */
2670
+ "Idempotency-Key"?: string;
2671
+ };
2672
+ path: {
2673
+ /** @description Resource id (UUID) */
2674
+ id: string;
2675
+ };
2676
+ cookie?: never;
2677
+ };
2678
+ requestBody?: never;
2679
+ responses: {
2680
+ /** @description Created */
2681
+ 201: {
2682
+ headers: {
2683
+ [name: string]: unknown;
2684
+ };
2685
+ content: {
2686
+ "application/json": components["schemas"]["Announcement"];
2687
+ };
2688
+ };
2689
+ /** @description Error */
2690
+ default: {
2691
+ headers: {
2692
+ [name: string]: unknown;
2693
+ };
2694
+ content: {
2695
+ "application/json": components["schemas"]["Error"];
2696
+ };
2697
+ };
2698
+ };
2699
+ };
2700
+ getAnnouncement: {
2701
+ parameters: {
2702
+ query?: never;
2703
+ header?: never;
2704
+ path: {
2705
+ /** @description Resource id (UUID) */
2706
+ id: string;
2707
+ /** @description Resource id (UUID) */
2708
+ announcementId: string;
2709
+ };
2710
+ cookie?: never;
2711
+ };
2712
+ requestBody?: never;
2713
+ responses: {
2714
+ /** @description OK */
2715
+ 200: {
2716
+ headers: {
2717
+ [name: string]: unknown;
2718
+ };
2719
+ content: {
2720
+ "application/json": components["schemas"]["Announcement"];
2721
+ };
2722
+ };
2723
+ /** @description Error */
2724
+ default: {
2725
+ headers: {
2726
+ [name: string]: unknown;
2727
+ };
2728
+ content: {
2729
+ "application/json": components["schemas"]["Error"];
2730
+ };
2731
+ };
2732
+ };
2733
+ };
2734
+ deleteAnnouncement: {
2735
+ parameters: {
2736
+ query?: never;
2737
+ header?: never;
2738
+ path: {
2739
+ /** @description Resource id (UUID) */
2740
+ id: string;
2741
+ /** @description Resource id (UUID) */
2742
+ announcementId: string;
2743
+ };
2744
+ cookie?: never;
2745
+ };
2746
+ requestBody?: never;
2747
+ responses: {
2748
+ /** @description Deleted */
2749
+ 204: {
2750
+ headers: {
2751
+ [name: string]: unknown;
2752
+ };
2753
+ content?: never;
2754
+ };
2755
+ /** @description Error */
2756
+ default: {
2757
+ headers: {
2758
+ [name: string]: unknown;
2759
+ };
2760
+ content: {
2761
+ "application/json": components["schemas"]["Error"];
2762
+ };
2763
+ };
2764
+ };
2765
+ };
2766
+ updateAnnouncement: {
2767
+ parameters: {
2768
+ query?: never;
2769
+ header?: never;
2770
+ path: {
2771
+ /** @description Resource id (UUID) */
2772
+ id: string;
2773
+ /** @description Resource id (UUID) */
2774
+ announcementId: string;
2775
+ };
2776
+ cookie?: never;
2777
+ };
2778
+ requestBody?: never;
2779
+ responses: {
2780
+ /** @description OK */
2781
+ 200: {
2782
+ headers: {
2783
+ [name: string]: unknown;
2784
+ };
2785
+ content: {
2786
+ "application/json": components["schemas"]["Announcement"];
2787
+ };
2788
+ };
2789
+ /** @description Error */
2790
+ default: {
2791
+ headers: {
2792
+ [name: string]: unknown;
2793
+ };
2794
+ content: {
2795
+ "application/json": components["schemas"]["Error"];
2796
+ };
2797
+ };
2798
+ };
2799
+ };
2800
+ getPlan: {
2801
+ parameters: {
2802
+ query?: never;
2803
+ header?: never;
2804
+ path?: never;
2805
+ cookie?: never;
2806
+ };
2807
+ requestBody?: never;
2808
+ responses: {
2809
+ /** @description OK */
2810
+ 200: {
2811
+ headers: {
2812
+ [name: string]: unknown;
2813
+ };
2814
+ content: {
2815
+ "application/json": components["schemas"]["Plan"];
2816
+ };
2817
+ };
2818
+ /** @description Error */
2819
+ default: {
2820
+ headers: {
2821
+ [name: string]: unknown;
2822
+ };
2823
+ content: {
2824
+ "application/json": components["schemas"]["Error"];
2825
+ };
2826
+ };
2827
+ };
2828
+ };
2829
+ listOnCallSchedules: {
2830
+ parameters: {
2831
+ query?: never;
2832
+ header?: never;
2833
+ path?: never;
2834
+ cookie?: never;
2835
+ };
2836
+ requestBody?: never;
2837
+ responses: {
2838
+ /** @description OK */
2839
+ 200: {
2840
+ headers: {
2841
+ [name: string]: unknown;
2842
+ };
2843
+ content: {
2844
+ "application/json": {
2845
+ /** @constant */
2846
+ object?: "list";
2847
+ data?: components["schemas"]["OncallSchedule"][];
2848
+ has_more?: boolean;
2849
+ };
2850
+ };
2851
+ };
2852
+ /** @description Error */
2853
+ default: {
2854
+ headers: {
2855
+ [name: string]: unknown;
2856
+ };
2857
+ content: {
2858
+ "application/json": components["schemas"]["Error"];
2859
+ };
2860
+ };
2861
+ };
2862
+ };
2863
+ listNotifications: {
2864
+ parameters: {
2865
+ query?: {
2866
+ limit?: number;
2867
+ /** @description Opaque cursor from the previous page's next_cursor */
2868
+ cursor?: string;
2869
+ status?: "sent" | "failed" | "silenced";
2870
+ channel_type?: string;
2871
+ monitor_id?: string;
2872
+ incident_id?: number;
2873
+ since?: string;
2874
+ until?: string;
2875
+ };
2876
+ header?: never;
2877
+ path?: never;
2878
+ cookie?: never;
2879
+ };
2880
+ requestBody?: never;
2881
+ responses: {
2882
+ /** @description OK */
2883
+ 200: {
2884
+ headers: {
2885
+ [name: string]: unknown;
2886
+ };
2887
+ content: {
2888
+ "application/json": {
2889
+ /** @constant */
2890
+ object?: "list";
2891
+ data?: components["schemas"]["Notification"][];
2892
+ has_more?: boolean;
2893
+ total?: number;
2894
+ };
2895
+ };
2896
+ };
2897
+ /** @description Error */
2898
+ default: {
2899
+ headers: {
2900
+ [name: string]: unknown;
2901
+ };
2902
+ content: {
2903
+ "application/json": components["schemas"]["Error"];
2904
+ };
2905
+ };
2906
+ };
2907
+ };
2908
+ listActivity: {
2909
+ parameters: {
2910
+ query?: {
2911
+ limit?: number;
2912
+ /** @description Opaque cursor from the previous page's next_cursor */
2913
+ cursor?: string;
2914
+ /** @description Free-text search over action, actor and JSON change details */
2915
+ q?: string;
2916
+ entity_type?: string;
2917
+ entity_id?: string;
2918
+ since?: string;
2919
+ until?: string;
2920
+ };
2921
+ header?: never;
2922
+ path?: never;
2923
+ cookie?: never;
2924
+ };
2925
+ requestBody?: never;
2926
+ responses: {
2927
+ /** @description OK */
2928
+ 200: {
2929
+ headers: {
2930
+ [name: string]: unknown;
2931
+ };
2932
+ content: {
2933
+ "application/json": {
2934
+ /** @constant */
2935
+ object?: "list";
2936
+ data?: components["schemas"]["ActivityEvent"][];
2937
+ has_more?: boolean;
2938
+ };
2939
+ };
2940
+ };
2941
+ /** @description Error */
2942
+ default: {
2943
+ headers: {
2944
+ [name: string]: unknown;
2945
+ };
2946
+ content: {
2947
+ "application/json": components["schemas"]["Error"];
2948
+ };
2949
+ };
2950
+ };
2951
+ };
2952
+ getOrgSummary: {
2953
+ parameters: {
2954
+ query?: never;
2955
+ header?: never;
2956
+ path?: never;
2957
+ cookie?: never;
2958
+ };
2959
+ requestBody?: never;
2960
+ responses: {
2961
+ /** @description OK */
2962
+ 200: {
2963
+ headers: {
2964
+ [name: string]: unknown;
2965
+ };
2966
+ content: {
2967
+ "application/json": components["schemas"]["Summary"];
2968
+ };
2969
+ };
2970
+ /** @description Error */
2971
+ default: {
2972
+ headers: {
2973
+ [name: string]: unknown;
2974
+ };
2975
+ content: {
2976
+ "application/json": components["schemas"]["Error"];
2977
+ };
2978
+ };
2979
+ };
2980
+ };
2981
+ getIncidentStats: {
2982
+ parameters: {
2983
+ query?: {
2984
+ period?: "24h" | "7d" | "30d" | "90d";
2985
+ };
2986
+ header?: never;
2987
+ path?: never;
2988
+ cookie?: never;
2989
+ };
2990
+ requestBody?: never;
2991
+ responses: {
2992
+ /** @description OK */
2993
+ 200: {
2994
+ headers: {
2995
+ [name: string]: unknown;
2996
+ };
2997
+ content: {
2998
+ "application/json": components["schemas"]["IncidentStats"];
2999
+ };
3000
+ };
3001
+ /** @description Error */
3002
+ default: {
3003
+ headers: {
3004
+ [name: string]: unknown;
3005
+ };
3006
+ content: {
3007
+ "application/json": components["schemas"]["Error"];
3008
+ };
3009
+ };
3010
+ };
3011
+ };
3012
+ }