@tallwatch/contracts 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.
Files changed (210) hide show
  1. package/README.md +36 -0
  2. package/dist/alerting/alert-channels.d.ts +183 -0
  3. package/dist/alerting/alert-channels.d.ts.map +1 -0
  4. package/dist/alerting/alert-channels.js +114 -0
  5. package/dist/alerting/alert-channels.js.map +1 -0
  6. package/dist/alerting/alert-dispatches.d.ts +216 -0
  7. package/dist/alerting/alert-dispatches.d.ts.map +1 -0
  8. package/dist/alerting/alert-dispatches.js +78 -0
  9. package/dist/alerting/alert-dispatches.js.map +1 -0
  10. package/dist/alerting/channel-connect.d.ts +25 -0
  11. package/dist/alerting/channel-connect.d.ts.map +1 -0
  12. package/dist/alerting/channel-connect.js +40 -0
  13. package/dist/alerting/channel-connect.js.map +1 -0
  14. package/dist/alerting/escalation-levels.d.ts +28 -0
  15. package/dist/alerting/escalation-levels.d.ts.map +1 -0
  16. package/dist/alerting/escalation-levels.js +21 -0
  17. package/dist/alerting/escalation-levels.js.map +1 -0
  18. package/dist/alerting/escalation-policies.d.ts +85 -0
  19. package/dist/alerting/escalation-policies.d.ts.map +1 -0
  20. package/dist/alerting/escalation-policies.js +36 -0
  21. package/dist/alerting/escalation-policies.js.map +1 -0
  22. package/dist/alerting/index.d.ts +10 -0
  23. package/dist/alerting/index.d.ts.map +1 -0
  24. package/dist/alerting/index.js +10 -0
  25. package/dist/alerting/index.js.map +1 -0
  26. package/dist/alerting/on-call-rotations.d.ts +40 -0
  27. package/dist/alerting/on-call-rotations.d.ts.map +1 -0
  28. package/dist/alerting/on-call-rotations.js +26 -0
  29. package/dist/alerting/on-call-rotations.js.map +1 -0
  30. package/dist/alerting/on-call.d.ts +81 -0
  31. package/dist/alerting/on-call.d.ts.map +1 -0
  32. package/dist/alerting/on-call.js +40 -0
  33. package/dist/alerting/on-call.js.map +1 -0
  34. package/dist/alerting/slack-actions.d.ts +26 -0
  35. package/dist/alerting/slack-actions.d.ts.map +1 -0
  36. package/dist/alerting/slack-actions.js +44 -0
  37. package/dist/alerting/slack-actions.js.map +1 -0
  38. package/dist/alerting/webhook-template.d.ts +10 -0
  39. package/dist/alerting/webhook-template.d.ts.map +1 -0
  40. package/dist/alerting/webhook-template.js +69 -0
  41. package/dist/alerting/webhook-template.js.map +1 -0
  42. package/dist/alerting/webhooks.d.ts +72 -0
  43. package/dist/alerting/webhooks.d.ts.map +1 -0
  44. package/dist/alerting/webhooks.js +49 -0
  45. package/dist/alerting/webhooks.js.map +1 -0
  46. package/dist/api-keys.d.ts +59 -0
  47. package/dist/api-keys.d.ts.map +1 -0
  48. package/dist/api-keys.js +31 -0
  49. package/dist/api-keys.js.map +1 -0
  50. package/dist/api-response.d.ts +21 -0
  51. package/dist/api-response.d.ts.map +1 -0
  52. package/dist/api-response.js +20 -0
  53. package/dist/api-response.js.map +1 -0
  54. package/dist/audit.d.ts +126 -0
  55. package/dist/audit.d.ts.map +1 -0
  56. package/dist/audit.js +129 -0
  57. package/dist/audit.js.map +1 -0
  58. package/dist/billing/billing-catalog.d.ts +53 -0
  59. package/dist/billing/billing-catalog.d.ts.map +1 -0
  60. package/dist/billing/billing-catalog.js +121 -0
  61. package/dist/billing/billing-catalog.js.map +1 -0
  62. package/dist/billing/billing.d.ts +129 -0
  63. package/dist/billing/billing.d.ts.map +1 -0
  64. package/dist/billing/billing.js +68 -0
  65. package/dist/billing/billing.js.map +1 -0
  66. package/dist/billing/entitlements.d.ts +90 -0
  67. package/dist/billing/entitlements.d.ts.map +1 -0
  68. package/dist/billing/entitlements.js +107 -0
  69. package/dist/billing/entitlements.js.map +1 -0
  70. package/dist/billing/index.d.ts +5 -0
  71. package/dist/billing/index.d.ts.map +1 -0
  72. package/dist/billing/index.js +5 -0
  73. package/dist/billing/index.js.map +1 -0
  74. package/dist/billing/retention.d.ts +8 -0
  75. package/dist/billing/retention.d.ts.map +1 -0
  76. package/dist/billing/retention.js +43 -0
  77. package/dist/billing/retention.js.map +1 -0
  78. package/dist/brand.d.ts +3 -0
  79. package/dist/brand.d.ts.map +1 -0
  80. package/dist/brand.js +4 -0
  81. package/dist/brand.js.map +1 -0
  82. package/dist/cli-device.d.ts +35 -0
  83. package/dist/cli-device.d.ts.map +1 -0
  84. package/dist/cli-device.js +41 -0
  85. package/dist/cli-device.js.map +1 -0
  86. package/dist/common.d.ts +63 -0
  87. package/dist/common.d.ts.map +1 -0
  88. package/dist/common.js +91 -0
  89. package/dist/common.js.map +1 -0
  90. package/dist/http-url.d.ts +4 -0
  91. package/dist/http-url.d.ts.map +1 -0
  92. package/dist/http-url.js +63 -0
  93. package/dist/http-url.js.map +1 -0
  94. package/dist/incidents/incident-projection.d.ts +16 -0
  95. package/dist/incidents/incident-projection.d.ts.map +1 -0
  96. package/dist/incidents/incident-projection.js +25 -0
  97. package/dist/incidents/incident-projection.js.map +1 -0
  98. package/dist/incidents/incident-status-posts.d.ts +15 -0
  99. package/dist/incidents/incident-status-posts.d.ts.map +1 -0
  100. package/dist/incidents/incident-status-posts.js +15 -0
  101. package/dist/incidents/incident-status-posts.js.map +1 -0
  102. package/dist/incidents/incident-timeline.d.ts +251 -0
  103. package/dist/incidents/incident-timeline.d.ts.map +1 -0
  104. package/dist/incidents/incident-timeline.js +77 -0
  105. package/dist/incidents/incident-timeline.js.map +1 -0
  106. package/dist/incidents/incidents.d.ts +628 -0
  107. package/dist/incidents/incidents.d.ts.map +1 -0
  108. package/dist/incidents/incidents.js +140 -0
  109. package/dist/incidents/incidents.js.map +1 -0
  110. package/dist/incidents/index.d.ts +5 -0
  111. package/dist/incidents/index.d.ts.map +1 -0
  112. package/dist/incidents/index.js +5 -0
  113. package/dist/incidents/index.js.map +1 -0
  114. package/dist/index.d.ts +17 -0
  115. package/dist/index.d.ts.map +1 -0
  116. package/dist/index.js +17 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/maintenance.d.ts +21 -0
  119. package/dist/maintenance.d.ts.map +1 -0
  120. package/dist/maintenance.js +25 -0
  121. package/dist/maintenance.js.map +1 -0
  122. package/dist/marketing.d.ts +15 -0
  123. package/dist/marketing.d.ts.map +1 -0
  124. package/dist/marketing.js +13 -0
  125. package/dist/marketing.js.map +1 -0
  126. package/dist/monitors/availability.d.ts +50 -0
  127. package/dist/monitors/availability.d.ts.map +1 -0
  128. package/dist/monitors/availability.js +26 -0
  129. package/dist/monitors/availability.js.map +1 -0
  130. package/dist/monitors/check-observation.d.ts +70 -0
  131. package/dist/monitors/check-observation.d.ts.map +1 -0
  132. package/dist/monitors/check-observation.js +38 -0
  133. package/dist/monitors/check-observation.js.map +1 -0
  134. package/dist/monitors/index.d.ts +12 -0
  135. package/dist/monitors/index.d.ts.map +1 -0
  136. package/dist/monitors/index.js +12 -0
  137. package/dist/monitors/index.js.map +1 -0
  138. package/dist/monitors/monitor-configs.d.ts +239 -0
  139. package/dist/monitors/monitor-configs.d.ts.map +1 -0
  140. package/dist/monitors/monitor-configs.js +135 -0
  141. package/dist/monitors/monitor-configs.js.map +1 -0
  142. package/dist/monitors/monitor-list-item.d.ts +30 -0
  143. package/dist/monitors/monitor-list-item.d.ts.map +1 -0
  144. package/dist/monitors/monitor-list-item.js +16 -0
  145. package/dist/monitors/monitor-list-item.js.map +1 -0
  146. package/dist/monitors/monitor-target.d.ts +3 -0
  147. package/dist/monitors/monitor-target.d.ts.map +1 -0
  148. package/dist/monitors/monitor-target.js +17 -0
  149. package/dist/monitors/monitor-target.js.map +1 -0
  150. package/dist/monitors/monitor-view.d.ts +48 -0
  151. package/dist/monitors/monitor-view.d.ts.map +1 -0
  152. package/dist/monitors/monitor-view.js +20 -0
  153. package/dist/monitors/monitor-view.js.map +1 -0
  154. package/dist/monitors/monitors-crud.d.ts +275 -0
  155. package/dist/monitors/monitors-crud.d.ts.map +1 -0
  156. package/dist/monitors/monitors-crud.js +126 -0
  157. package/dist/monitors/monitors-crud.js.map +1 -0
  158. package/dist/monitors/monitors.d.ts +153 -0
  159. package/dist/monitors/monitors.d.ts.map +1 -0
  160. package/dist/monitors/monitors.js +35 -0
  161. package/dist/monitors/monitors.js.map +1 -0
  162. package/dist/monitors/probes.d.ts +313 -0
  163. package/dist/monitors/probes.d.ts.map +1 -0
  164. package/dist/monitors/probes.js +67 -0
  165. package/dist/monitors/probes.js.map +1 -0
  166. package/dist/monitors/rollups.d.ts +111 -0
  167. package/dist/monitors/rollups.d.ts.map +1 -0
  168. package/dist/monitors/rollups.js +39 -0
  169. package/dist/monitors/rollups.js.map +1 -0
  170. package/dist/monitors/test-check.d.ts +69 -0
  171. package/dist/monitors/test-check.d.ts.map +1 -0
  172. package/dist/monitors/test-check.js +11 -0
  173. package/dist/monitors/test-check.js.map +1 -0
  174. package/dist/pagination.d.ts +36 -0
  175. package/dist/pagination.d.ts.map +1 -0
  176. package/dist/pagination.js +27 -0
  177. package/dist/pagination.js.map +1 -0
  178. package/dist/projects.d.ts +45 -0
  179. package/dist/projects.d.ts.map +1 -0
  180. package/dist/projects.js +23 -0
  181. package/dist/projects.js.map +1 -0
  182. package/dist/status-pages/index.d.ts +7 -0
  183. package/dist/status-pages/index.d.ts.map +1 -0
  184. package/dist/status-pages/index.js +7 -0
  185. package/dist/status-pages/index.js.map +1 -0
  186. package/dist/status-pages/public-status-page.d.ts +453 -0
  187. package/dist/status-pages/public-status-page.d.ts.map +1 -0
  188. package/dist/status-pages/public-status-page.js +93 -0
  189. package/dist/status-pages/public-status-page.js.map +1 -0
  190. package/dist/status-pages/slug-host.d.ts +3 -0
  191. package/dist/status-pages/slug-host.d.ts.map +1 -0
  192. package/dist/status-pages/slug-host.js +12 -0
  193. package/dist/status-pages/slug-host.js.map +1 -0
  194. package/dist/status-pages/status-overall.d.ts +20 -0
  195. package/dist/status-pages/status-overall.d.ts.map +1 -0
  196. package/dist/status-pages/status-overall.js +42 -0
  197. package/dist/status-pages/status-overall.js.map +1 -0
  198. package/dist/status-pages/status-page-config.d.ts +215 -0
  199. package/dist/status-pages/status-page-config.d.ts.map +1 -0
  200. package/dist/status-pages/status-page-config.js +124 -0
  201. package/dist/status-pages/status-page-config.js.map +1 -0
  202. package/dist/status-pages/status-page-incidents.d.ts +132 -0
  203. package/dist/status-pages/status-page-incidents.d.ts.map +1 -0
  204. package/dist/status-pages/status-page-incidents.js +66 -0
  205. package/dist/status-pages/status-page-incidents.js.map +1 -0
  206. package/dist/status-pages/status-page-subscribers.d.ts +62 -0
  207. package/dist/status-pages/status-page-subscribers.d.ts.map +1 -0
  208. package/dist/status-pages/status-page-subscribers.js +30 -0
  209. package/dist/status-pages/status-page-subscribers.js.map +1 -0
  210. package/package.json +127 -0
@@ -0,0 +1,628 @@
1
+ import { z } from "zod";
2
+ export declare const INCIDENT_EVENT_TYPES: readonly ["opened", "acknowledged", "resolved", "note_added", "channel_notified", "escalated", "postmortem_published", "flapping_detected", "status_page_updated"];
3
+ export declare const IncidentEventTypeSchema: z.ZodEnum<{
4
+ opened: "opened";
5
+ acknowledged: "acknowledged";
6
+ resolved: "resolved";
7
+ note_added: "note_added";
8
+ channel_notified: "channel_notified";
9
+ escalated: "escalated";
10
+ postmortem_published: "postmortem_published";
11
+ flapping_detected: "flapping_detected";
12
+ status_page_updated: "status_page_updated";
13
+ }>;
14
+ export type IncidentEventType = z.infer<typeof IncidentEventTypeSchema>;
15
+ export declare const IncidentStatusSchema: z.ZodEnum<{
16
+ acknowledged: "acknowledged";
17
+ resolved: "resolved";
18
+ open: "open";
19
+ }>;
20
+ export type IncidentStatus = z.infer<typeof IncidentStatusSchema>;
21
+ export declare const OpenCauseKindSchema: z.ZodEnum<{
22
+ unanimous: "unanimous";
23
+ majority: "majority";
24
+ mixed: "mixed";
25
+ }>;
26
+ export type OpenCauseKind = z.infer<typeof OpenCauseKindSchema>;
27
+ export declare const OpenCauseProbeSchema: z.ZodObject<{
28
+ region: z.ZodString;
29
+ error_class: z.ZodNullable<z.ZodEnum<{
30
+ unknown: "unknown";
31
+ dns_resolve: "dns_resolve";
32
+ dns_nxdomain: "dns_nxdomain";
33
+ dns_servfail: "dns_servfail";
34
+ dns_mismatch: "dns_mismatch";
35
+ tcp_connect: "tcp_connect";
36
+ tls_handshake: "tls_handshake";
37
+ tls_cert_invalid: "tls_cert_invalid";
38
+ tls_cert_expired: "tls_cert_expired";
39
+ tls_cert_expiring: "tls_cert_expiring";
40
+ http_status: "http_status";
41
+ http_body: "http_body";
42
+ keyword_missing: "keyword_missing";
43
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
44
+ timeout: "timeout";
45
+ packet_loss: "packet_loss";
46
+ ssrf_blocked: "ssrf_blocked";
47
+ heartbeat_missed: "heartbeat_missed";
48
+ edge_only: "edge_only";
49
+ waf_challenge: "waf_challenge";
50
+ rate_limited: "rate_limited";
51
+ }>>;
52
+ status_code: z.ZodNullable<z.ZodNumber>;
53
+ error_message: z.ZodNullable<z.ZodString>;
54
+ body_sample: z.ZodNullable<z.ZodString>;
55
+ }, z.core.$strip>;
56
+ export type OpenCauseProbe = z.infer<typeof OpenCauseProbeSchema>;
57
+ export declare const OpenCauseSchema: z.ZodObject<{
58
+ kind: z.ZodEnum<{
59
+ unanimous: "unanimous";
60
+ majority: "majority";
61
+ mixed: "mixed";
62
+ }>;
63
+ error_class: z.ZodNullable<z.ZodEnum<{
64
+ unknown: "unknown";
65
+ dns_resolve: "dns_resolve";
66
+ dns_nxdomain: "dns_nxdomain";
67
+ dns_servfail: "dns_servfail";
68
+ dns_mismatch: "dns_mismatch";
69
+ tcp_connect: "tcp_connect";
70
+ tls_handshake: "tls_handshake";
71
+ tls_cert_invalid: "tls_cert_invalid";
72
+ tls_cert_expired: "tls_cert_expired";
73
+ tls_cert_expiring: "tls_cert_expiring";
74
+ http_status: "http_status";
75
+ http_body: "http_body";
76
+ keyword_missing: "keyword_missing";
77
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
78
+ timeout: "timeout";
79
+ packet_loss: "packet_loss";
80
+ ssrf_blocked: "ssrf_blocked";
81
+ heartbeat_missed: "heartbeat_missed";
82
+ edge_only: "edge_only";
83
+ waf_challenge: "waf_challenge";
84
+ rate_limited: "rate_limited";
85
+ }>>;
86
+ status_code: z.ZodNullable<z.ZodNumber>;
87
+ label: z.ZodString;
88
+ other_count: z.ZodNumber;
89
+ probes: z.ZodArray<z.ZodObject<{
90
+ region: z.ZodString;
91
+ error_class: z.ZodNullable<z.ZodEnum<{
92
+ unknown: "unknown";
93
+ dns_resolve: "dns_resolve";
94
+ dns_nxdomain: "dns_nxdomain";
95
+ dns_servfail: "dns_servfail";
96
+ dns_mismatch: "dns_mismatch";
97
+ tcp_connect: "tcp_connect";
98
+ tls_handshake: "tls_handshake";
99
+ tls_cert_invalid: "tls_cert_invalid";
100
+ tls_cert_expired: "tls_cert_expired";
101
+ tls_cert_expiring: "tls_cert_expiring";
102
+ http_status: "http_status";
103
+ http_body: "http_body";
104
+ keyword_missing: "keyword_missing";
105
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
106
+ timeout: "timeout";
107
+ packet_loss: "packet_loss";
108
+ ssrf_blocked: "ssrf_blocked";
109
+ heartbeat_missed: "heartbeat_missed";
110
+ edge_only: "edge_only";
111
+ waf_challenge: "waf_challenge";
112
+ rate_limited: "rate_limited";
113
+ }>>;
114
+ status_code: z.ZodNullable<z.ZodNumber>;
115
+ error_message: z.ZodNullable<z.ZodString>;
116
+ body_sample: z.ZodNullable<z.ZodString>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>;
119
+ export type OpenCause = z.infer<typeof OpenCauseSchema>;
120
+ export declare const IncidentEventPayloadSchema: z.ZodObject<{
121
+ failing_regions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
122
+ fra1: "fra1";
123
+ iad1: "iad1";
124
+ hil1: "hil1";
125
+ sgp1: "sgp1";
126
+ syd1: "syd1";
127
+ gru1: "gru1";
128
+ }>>>;
129
+ cause: z.ZodOptional<z.ZodObject<{
130
+ kind: z.ZodEnum<{
131
+ unanimous: "unanimous";
132
+ majority: "majority";
133
+ mixed: "mixed";
134
+ }>;
135
+ error_class: z.ZodNullable<z.ZodEnum<{
136
+ unknown: "unknown";
137
+ dns_resolve: "dns_resolve";
138
+ dns_nxdomain: "dns_nxdomain";
139
+ dns_servfail: "dns_servfail";
140
+ dns_mismatch: "dns_mismatch";
141
+ tcp_connect: "tcp_connect";
142
+ tls_handshake: "tls_handshake";
143
+ tls_cert_invalid: "tls_cert_invalid";
144
+ tls_cert_expired: "tls_cert_expired";
145
+ tls_cert_expiring: "tls_cert_expiring";
146
+ http_status: "http_status";
147
+ http_body: "http_body";
148
+ keyword_missing: "keyword_missing";
149
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
150
+ timeout: "timeout";
151
+ packet_loss: "packet_loss";
152
+ ssrf_blocked: "ssrf_blocked";
153
+ heartbeat_missed: "heartbeat_missed";
154
+ edge_only: "edge_only";
155
+ waf_challenge: "waf_challenge";
156
+ rate_limited: "rate_limited";
157
+ }>>;
158
+ status_code: z.ZodNullable<z.ZodNumber>;
159
+ label: z.ZodString;
160
+ other_count: z.ZodNumber;
161
+ probes: z.ZodArray<z.ZodObject<{
162
+ region: z.ZodString;
163
+ error_class: z.ZodNullable<z.ZodEnum<{
164
+ unknown: "unknown";
165
+ dns_resolve: "dns_resolve";
166
+ dns_nxdomain: "dns_nxdomain";
167
+ dns_servfail: "dns_servfail";
168
+ dns_mismatch: "dns_mismatch";
169
+ tcp_connect: "tcp_connect";
170
+ tls_handshake: "tls_handshake";
171
+ tls_cert_invalid: "tls_cert_invalid";
172
+ tls_cert_expired: "tls_cert_expired";
173
+ tls_cert_expiring: "tls_cert_expiring";
174
+ http_status: "http_status";
175
+ http_body: "http_body";
176
+ keyword_missing: "keyword_missing";
177
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
178
+ timeout: "timeout";
179
+ packet_loss: "packet_loss";
180
+ ssrf_blocked: "ssrf_blocked";
181
+ heartbeat_missed: "heartbeat_missed";
182
+ edge_only: "edge_only";
183
+ waf_challenge: "waf_challenge";
184
+ rate_limited: "rate_limited";
185
+ }>>;
186
+ status_code: z.ZodNullable<z.ZodNumber>;
187
+ error_message: z.ZodNullable<z.ZodString>;
188
+ body_sample: z.ZodNullable<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>>;
191
+ note: z.ZodOptional<z.ZodString>;
192
+ channel_id: z.ZodOptional<z.ZodString>;
193
+ escalation_level: z.ZodOptional<z.ZodNumber>;
194
+ postmortem_md: z.ZodOptional<z.ZodString>;
195
+ status_page_incident_id: z.ZodOptional<z.ZodString>;
196
+ status_page_status: z.ZodOptional<z.ZodEnum<{
197
+ resolved: "resolved";
198
+ investigating: "investigating";
199
+ identified: "identified";
200
+ monitoring: "monitoring";
201
+ }>>;
202
+ status_page_title: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$loose>;
204
+ export type IncidentEventPayload = z.infer<typeof IncidentEventPayloadSchema>;
205
+ export declare const IncidentEventSchema: z.ZodObject<{
206
+ id: z.ZodString;
207
+ incident_id: z.ZodString;
208
+ monitor_id: z.ZodString;
209
+ org_id: z.ZodString;
210
+ type: z.ZodEnum<{
211
+ opened: "opened";
212
+ acknowledged: "acknowledged";
213
+ resolved: "resolved";
214
+ note_added: "note_added";
215
+ channel_notified: "channel_notified";
216
+ escalated: "escalated";
217
+ postmortem_published: "postmortem_published";
218
+ flapping_detected: "flapping_detected";
219
+ status_page_updated: "status_page_updated";
220
+ }>;
221
+ occurred_at: z.ZodString;
222
+ actor_id: z.ZodNullable<z.ZodString>;
223
+ payload: z.ZodOptional<z.ZodObject<{
224
+ failing_regions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
225
+ fra1: "fra1";
226
+ iad1: "iad1";
227
+ hil1: "hil1";
228
+ sgp1: "sgp1";
229
+ syd1: "syd1";
230
+ gru1: "gru1";
231
+ }>>>;
232
+ cause: z.ZodOptional<z.ZodObject<{
233
+ kind: z.ZodEnum<{
234
+ unanimous: "unanimous";
235
+ majority: "majority";
236
+ mixed: "mixed";
237
+ }>;
238
+ error_class: z.ZodNullable<z.ZodEnum<{
239
+ unknown: "unknown";
240
+ dns_resolve: "dns_resolve";
241
+ dns_nxdomain: "dns_nxdomain";
242
+ dns_servfail: "dns_servfail";
243
+ dns_mismatch: "dns_mismatch";
244
+ tcp_connect: "tcp_connect";
245
+ tls_handshake: "tls_handshake";
246
+ tls_cert_invalid: "tls_cert_invalid";
247
+ tls_cert_expired: "tls_cert_expired";
248
+ tls_cert_expiring: "tls_cert_expiring";
249
+ http_status: "http_status";
250
+ http_body: "http_body";
251
+ keyword_missing: "keyword_missing";
252
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
253
+ timeout: "timeout";
254
+ packet_loss: "packet_loss";
255
+ ssrf_blocked: "ssrf_blocked";
256
+ heartbeat_missed: "heartbeat_missed";
257
+ edge_only: "edge_only";
258
+ waf_challenge: "waf_challenge";
259
+ rate_limited: "rate_limited";
260
+ }>>;
261
+ status_code: z.ZodNullable<z.ZodNumber>;
262
+ label: z.ZodString;
263
+ other_count: z.ZodNumber;
264
+ probes: z.ZodArray<z.ZodObject<{
265
+ region: z.ZodString;
266
+ error_class: z.ZodNullable<z.ZodEnum<{
267
+ unknown: "unknown";
268
+ dns_resolve: "dns_resolve";
269
+ dns_nxdomain: "dns_nxdomain";
270
+ dns_servfail: "dns_servfail";
271
+ dns_mismatch: "dns_mismatch";
272
+ tcp_connect: "tcp_connect";
273
+ tls_handshake: "tls_handshake";
274
+ tls_cert_invalid: "tls_cert_invalid";
275
+ tls_cert_expired: "tls_cert_expired";
276
+ tls_cert_expiring: "tls_cert_expiring";
277
+ http_status: "http_status";
278
+ http_body: "http_body";
279
+ keyword_missing: "keyword_missing";
280
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
281
+ timeout: "timeout";
282
+ packet_loss: "packet_loss";
283
+ ssrf_blocked: "ssrf_blocked";
284
+ heartbeat_missed: "heartbeat_missed";
285
+ edge_only: "edge_only";
286
+ waf_challenge: "waf_challenge";
287
+ rate_limited: "rate_limited";
288
+ }>>;
289
+ status_code: z.ZodNullable<z.ZodNumber>;
290
+ error_message: z.ZodNullable<z.ZodString>;
291
+ body_sample: z.ZodNullable<z.ZodString>;
292
+ }, z.core.$strip>>;
293
+ }, z.core.$strip>>;
294
+ note: z.ZodOptional<z.ZodString>;
295
+ channel_id: z.ZodOptional<z.ZodString>;
296
+ escalation_level: z.ZodOptional<z.ZodNumber>;
297
+ postmortem_md: z.ZodOptional<z.ZodString>;
298
+ status_page_incident_id: z.ZodOptional<z.ZodString>;
299
+ status_page_status: z.ZodOptional<z.ZodEnum<{
300
+ resolved: "resolved";
301
+ investigating: "investigating";
302
+ identified: "identified";
303
+ monitoring: "monitoring";
304
+ }>>;
305
+ status_page_title: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$loose>>;
307
+ }, z.core.$strip>;
308
+ export type IncidentEvent = z.infer<typeof IncidentEventSchema>;
309
+ export declare const IncidentSchema: z.ZodObject<{
310
+ id: z.ZodString;
311
+ org_id: z.ZodString;
312
+ monitor_id: z.ZodString;
313
+ status: z.ZodEnum<{
314
+ acknowledged: "acknowledged";
315
+ resolved: "resolved";
316
+ open: "open";
317
+ }>;
318
+ opened_at: z.ZodString;
319
+ acknowledged_at: z.ZodNullable<z.ZodString>;
320
+ resolved_at: z.ZodNullable<z.ZodString>;
321
+ opened_with_failing_regions: z.ZodArray<z.ZodEnum<{
322
+ fra1: "fra1";
323
+ iad1: "iad1";
324
+ hil1: "hil1";
325
+ sgp1: "sgp1";
326
+ syd1: "syd1";
327
+ gru1: "gru1";
328
+ }>>;
329
+ current_failing_regions: z.ZodArray<z.ZodEnum<{
330
+ fra1: "fra1";
331
+ iad1: "iad1";
332
+ hil1: "hil1";
333
+ sgp1: "sgp1";
334
+ syd1: "syd1";
335
+ gru1: "gru1";
336
+ }>>;
337
+ acknowledged_by: z.ZodNullable<z.ZodString>;
338
+ resolved_by: z.ZodNullable<z.ZodString>;
339
+ duration_sec: z.ZodNullable<z.ZodNumber>;
340
+ postmortem_md: z.ZodNullable<z.ZodString>;
341
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ }, z.core.$strip>;
343
+ export type Incident = z.infer<typeof IncidentSchema>;
344
+ export declare const IncidentListItemSchema: z.ZodObject<{
345
+ id: z.ZodString;
346
+ monitor_id: z.ZodString;
347
+ monitor_name: z.ZodString;
348
+ monitor_type: z.ZodEnum<{
349
+ http: "http";
350
+ tcp: "tcp";
351
+ ping: "ping";
352
+ dns: "dns";
353
+ ssl: "ssl";
354
+ keyword: "keyword";
355
+ heartbeat: "heartbeat";
356
+ }>;
357
+ monitor_target: z.ZodString;
358
+ status: z.ZodEnum<{
359
+ acknowledged: "acknowledged";
360
+ resolved: "resolved";
361
+ open: "open";
362
+ }>;
363
+ opened_at: z.ZodString;
364
+ acknowledged_at: z.ZodNullable<z.ZodString>;
365
+ resolved_at: z.ZodNullable<z.ZodString>;
366
+ opened_with_failing_regions: z.ZodArray<z.ZodEnum<{
367
+ fra1: "fra1";
368
+ iad1: "iad1";
369
+ hil1: "hil1";
370
+ sgp1: "sgp1";
371
+ syd1: "syd1";
372
+ gru1: "gru1";
373
+ }>>;
374
+ current_failing_regions: z.ZodArray<z.ZodEnum<{
375
+ fra1: "fra1";
376
+ iad1: "iad1";
377
+ hil1: "hil1";
378
+ sgp1: "sgp1";
379
+ syd1: "syd1";
380
+ gru1: "gru1";
381
+ }>>;
382
+ duration_sec: z.ZodNullable<z.ZodNumber>;
383
+ }, z.core.$strip>;
384
+ export type IncidentListItem = z.infer<typeof IncidentListItemSchema>;
385
+ export declare const IncidentDispatchSchema: z.ZodObject<{
386
+ id: z.ZodString;
387
+ channel_id: z.ZodString;
388
+ channel_name: z.ZodString;
389
+ channel_kind: z.ZodEnum<{
390
+ email: "email";
391
+ slack: "slack";
392
+ discord: "discord";
393
+ telegram: "telegram";
394
+ teams: "teams";
395
+ webhook: "webhook";
396
+ pagerduty: "pagerduty";
397
+ }>;
398
+ status: z.ZodEnum<{
399
+ pending: "pending";
400
+ sent: "sent";
401
+ failed: "failed";
402
+ suppressed: "suppressed";
403
+ }>;
404
+ occurred_at: z.ZodString;
405
+ error: z.ZodNullable<z.ZodString>;
406
+ level: z.ZodNullable<z.ZodNumber>;
407
+ paged_user_id: z.ZodNullable<z.ZodString>;
408
+ paged_user_name: z.ZodNullable<z.ZodString>;
409
+ }, z.core.$strip>;
410
+ export type IncidentDispatch = z.infer<typeof IncidentDispatchSchema>;
411
+ export declare const RegionObservationSchema: z.ZodObject<{
412
+ region: z.ZodEnum<{
413
+ fra1: "fra1";
414
+ iad1: "iad1";
415
+ hil1: "hil1";
416
+ sgp1: "sgp1";
417
+ syd1: "syd1";
418
+ gru1: "gru1";
419
+ }>;
420
+ kind: z.ZodEnum<{
421
+ down: "down";
422
+ recovered: "recovered";
423
+ }>;
424
+ at: z.ZodString;
425
+ status: z.ZodEnum<{
426
+ down: "down";
427
+ up: "up";
428
+ degraded: "degraded";
429
+ }>;
430
+ error_class: z.ZodNullable<z.ZodEnum<{
431
+ unknown: "unknown";
432
+ dns_resolve: "dns_resolve";
433
+ dns_nxdomain: "dns_nxdomain";
434
+ dns_servfail: "dns_servfail";
435
+ dns_mismatch: "dns_mismatch";
436
+ tcp_connect: "tcp_connect";
437
+ tls_handshake: "tls_handshake";
438
+ tls_cert_invalid: "tls_cert_invalid";
439
+ tls_cert_expired: "tls_cert_expired";
440
+ tls_cert_expiring: "tls_cert_expiring";
441
+ http_status: "http_status";
442
+ http_body: "http_body";
443
+ keyword_missing: "keyword_missing";
444
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
445
+ timeout: "timeout";
446
+ packet_loss: "packet_loss";
447
+ ssrf_blocked: "ssrf_blocked";
448
+ heartbeat_missed: "heartbeat_missed";
449
+ edge_only: "edge_only";
450
+ waf_challenge: "waf_challenge";
451
+ rate_limited: "rate_limited";
452
+ }>>;
453
+ status_code: z.ZodNullable<z.ZodNumber>;
454
+ }, z.core.$strip>;
455
+ export type RegionObservation = z.infer<typeof RegionObservationSchema>;
456
+ export declare const IncidentCauseSchema: z.ZodObject<{
457
+ dominant: z.ZodString;
458
+ label: z.ZodString;
459
+ status_code: z.ZodNullable<z.ZodNumber>;
460
+ other_count: z.ZodNumber;
461
+ }, z.core.$strip>;
462
+ export type IncidentCause = z.infer<typeof IncidentCauseSchema>;
463
+ export declare const IncidentObservationsSchema: z.ZodObject<{
464
+ region_trail: z.ZodArray<z.ZodObject<{
465
+ region: z.ZodEnum<{
466
+ fra1: "fra1";
467
+ iad1: "iad1";
468
+ hil1: "hil1";
469
+ sgp1: "sgp1";
470
+ syd1: "syd1";
471
+ gru1: "gru1";
472
+ }>;
473
+ kind: z.ZodEnum<{
474
+ down: "down";
475
+ recovered: "recovered";
476
+ }>;
477
+ at: z.ZodString;
478
+ status: z.ZodEnum<{
479
+ down: "down";
480
+ up: "up";
481
+ degraded: "degraded";
482
+ }>;
483
+ error_class: z.ZodNullable<z.ZodEnum<{
484
+ unknown: "unknown";
485
+ dns_resolve: "dns_resolve";
486
+ dns_nxdomain: "dns_nxdomain";
487
+ dns_servfail: "dns_servfail";
488
+ dns_mismatch: "dns_mismatch";
489
+ tcp_connect: "tcp_connect";
490
+ tls_handshake: "tls_handshake";
491
+ tls_cert_invalid: "tls_cert_invalid";
492
+ tls_cert_expired: "tls_cert_expired";
493
+ tls_cert_expiring: "tls_cert_expiring";
494
+ http_status: "http_status";
495
+ http_body: "http_body";
496
+ keyword_missing: "keyword_missing";
497
+ keyword_present_unexpectedly: "keyword_present_unexpectedly";
498
+ timeout: "timeout";
499
+ packet_loss: "packet_loss";
500
+ ssrf_blocked: "ssrf_blocked";
501
+ heartbeat_missed: "heartbeat_missed";
502
+ edge_only: "edge_only";
503
+ waf_challenge: "waf_challenge";
504
+ rate_limited: "rate_limited";
505
+ }>>;
506
+ status_code: z.ZodNullable<z.ZodNumber>;
507
+ }, z.core.$strip>>;
508
+ cause: z.ZodNullable<z.ZodObject<{
509
+ dominant: z.ZodString;
510
+ label: z.ZodString;
511
+ status_code: z.ZodNullable<z.ZodNumber>;
512
+ other_count: z.ZodNumber;
513
+ }, z.core.$strip>>;
514
+ truncated: z.ZodBoolean;
515
+ retained: z.ZodBoolean;
516
+ }, z.core.$strip>;
517
+ export type IncidentObservations = z.infer<typeof IncidentObservationsSchema>;
518
+ export declare const AckIncidentSchema: z.ZodObject<{
519
+ note: z.ZodOptional<z.ZodString>;
520
+ }, z.core.$strip>;
521
+ export type AckIncident = z.infer<typeof AckIncidentSchema>;
522
+ export declare const ResolveIncidentSchema: z.ZodObject<{
523
+ note: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strip>;
525
+ export type ResolveIncident = z.infer<typeof ResolveIncidentSchema>;
526
+ export declare const UpdatePostmortemSchema: z.ZodObject<{
527
+ postmortem_md: z.ZodNullable<z.ZodString>;
528
+ }, z.core.$strip>;
529
+ export type UpdatePostmortem = z.infer<typeof UpdatePostmortemSchema>;
530
+ export declare const IncidentListQuerySchema: z.ZodObject<{
531
+ status: z.ZodOptional<z.ZodEnum<{
532
+ acknowledged: "acknowledged";
533
+ resolved: "resolved";
534
+ open: "open";
535
+ }>>;
536
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
537
+ monitor_id: z.ZodOptional<z.ZodString>;
538
+ resolved_since: z.ZodOptional<z.ZodString>;
539
+ cursor: z.ZodOptional<z.ZodString>;
540
+ }, z.core.$strip>;
541
+ export type IncidentListQuery = z.infer<typeof IncidentListQuerySchema>;
542
+ export declare const IncidentListPageSchema: z.ZodObject<{
543
+ data: z.ZodArray<z.ZodObject<{
544
+ id: z.ZodString;
545
+ monitor_id: z.ZodString;
546
+ monitor_name: z.ZodString;
547
+ monitor_type: z.ZodEnum<{
548
+ http: "http";
549
+ tcp: "tcp";
550
+ ping: "ping";
551
+ dns: "dns";
552
+ ssl: "ssl";
553
+ keyword: "keyword";
554
+ heartbeat: "heartbeat";
555
+ }>;
556
+ monitor_target: z.ZodString;
557
+ status: z.ZodEnum<{
558
+ acknowledged: "acknowledged";
559
+ resolved: "resolved";
560
+ open: "open";
561
+ }>;
562
+ opened_at: z.ZodString;
563
+ acknowledged_at: z.ZodNullable<z.ZodString>;
564
+ resolved_at: z.ZodNullable<z.ZodString>;
565
+ opened_with_failing_regions: z.ZodArray<z.ZodEnum<{
566
+ fra1: "fra1";
567
+ iad1: "iad1";
568
+ hil1: "hil1";
569
+ sgp1: "sgp1";
570
+ syd1: "syd1";
571
+ gru1: "gru1";
572
+ }>>;
573
+ current_failing_regions: z.ZodArray<z.ZodEnum<{
574
+ fra1: "fra1";
575
+ iad1: "iad1";
576
+ hil1: "hil1";
577
+ sgp1: "sgp1";
578
+ syd1: "syd1";
579
+ gru1: "gru1";
580
+ }>>;
581
+ duration_sec: z.ZodNullable<z.ZodNumber>;
582
+ }, z.core.$strip>>;
583
+ items: z.ZodArray<z.ZodObject<{
584
+ id: z.ZodString;
585
+ monitor_id: z.ZodString;
586
+ monitor_name: z.ZodString;
587
+ monitor_type: z.ZodEnum<{
588
+ http: "http";
589
+ tcp: "tcp";
590
+ ping: "ping";
591
+ dns: "dns";
592
+ ssl: "ssl";
593
+ keyword: "keyword";
594
+ heartbeat: "heartbeat";
595
+ }>;
596
+ monitor_target: z.ZodString;
597
+ status: z.ZodEnum<{
598
+ acknowledged: "acknowledged";
599
+ resolved: "resolved";
600
+ open: "open";
601
+ }>;
602
+ opened_at: z.ZodString;
603
+ acknowledged_at: z.ZodNullable<z.ZodString>;
604
+ resolved_at: z.ZodNullable<z.ZodString>;
605
+ opened_with_failing_regions: z.ZodArray<z.ZodEnum<{
606
+ fra1: "fra1";
607
+ iad1: "iad1";
608
+ hil1: "hil1";
609
+ sgp1: "sgp1";
610
+ syd1: "syd1";
611
+ gru1: "gru1";
612
+ }>>;
613
+ current_failing_regions: z.ZodArray<z.ZodEnum<{
614
+ fra1: "fra1";
615
+ iad1: "iad1";
616
+ hil1: "hil1";
617
+ sgp1: "sgp1";
618
+ syd1: "syd1";
619
+ gru1: "gru1";
620
+ }>>;
621
+ duration_sec: z.ZodNullable<z.ZodNumber>;
622
+ }, z.core.$strip>>;
623
+ next_cursor: z.ZodNullable<z.ZodString>;
624
+ prev_cursor: z.ZodNullable<z.ZodString>;
625
+ limit: z.ZodNumber;
626
+ }, z.core.$strip>;
627
+ export type IncidentListPage = z.infer<typeof IncidentListPageSchema>;
628
+ //# sourceMappingURL=incidents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidents.d.ts","sourceRoot":"","sources":["../../src/incidents/incidents.ts"],"names":[],"mappings":"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"}