watchfor 0.19.0 → 0.21.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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # watchfor
2
2
 
3
3
  Official TypeScript SDK + CLI for [WatchFor](https://watchfor.io) —
4
- uptime & infrastructure monitoring (30 check types, confirmed alerting,
4
+ uptime & infrastructure monitoring (31 check types, confirmed alerting,
5
5
  status pages, on-call).
6
6
 
7
7
  ```bash
@@ -94,7 +94,7 @@ await wf.statusPages.updateAnnouncement("<page-id>", notice.id!, {
94
94
 
95
95
  ### Live diagnostics
96
96
 
97
- Run any of 26 checks from WatchFor's probe fleet against **any public
97
+ Run any of 27 checks from WatchFor's probe fleet against **any public
98
98
  target**, monitored or not — this measures right now, rather than reading
99
99
  what WatchFor recorded:
100
100
 
package/dist/schema.d.ts CHANGED
@@ -1830,6 +1830,37 @@ export interface components {
1830
1830
  dmarc_pass: boolean | null;
1831
1831
  spam_score: number | null;
1832
1832
  };
1833
+ /** @description game monitors — the latest check: what the server's status query reported. Player counts are null when the server hides them. */
1834
+ MonitorLatestGame: {
1835
+ /**
1836
+ * @description discriminator enum property added by openapi-typescript
1837
+ * @enum {string}
1838
+ */
1839
+ kind: "game";
1840
+ /**
1841
+ * Format: date-time
1842
+ * @description When the check this block describes ran.
1843
+ */
1844
+ checked_at: string | null;
1845
+ /** @description The server answered its status query and the reply parsed. */
1846
+ online: boolean | null;
1847
+ /** @description Status query round trip from the probe location. */
1848
+ query_ping_ms: number | null;
1849
+ players: number | null;
1850
+ max_players: number | null;
1851
+ /** @description Steam (A2S) servers; 0 elsewhere. */
1852
+ bots: number | null;
1853
+ password: boolean | null;
1854
+ /** @description Steam (A2S) servers only. */
1855
+ vac: boolean | null;
1856
+ map: string | null;
1857
+ version: string | null;
1858
+ server_name: string | null;
1859
+ /** @description The game as the server names it. */
1860
+ game: string | null;
1861
+ /** @description The monitor's config.preset. */
1862
+ preset: string | null;
1863
+ };
1833
1864
  /** @description Type-aware summary of the monitor page's top cards. `kind` is always the monitor's type; every field is present, null when unknown. */
1834
1865
  MonitorLatest:
1835
1866
  | components["schemas"]["MonitorLatestSsl"]
@@ -1861,7 +1892,8 @@ export interface components {
1861
1892
  | components["schemas"]["MonitorLatestPop3"]
1862
1893
  | components["schemas"]["MonitorLatestFtp"]
1863
1894
  | components["schemas"]["MonitorLatestSftp"]
1864
- | components["schemas"]["MonitorLatestEmailRoundtrip"];
1895
+ | components["schemas"]["MonitorLatestEmailRoundtrip"]
1896
+ | components["schemas"]["MonitorLatestGame"];
1865
1897
  PlaywrightTestRunRequest: {
1866
1898
  /** @description A Playwright Test file (TypeScript or JavaScript). Imports: @playwright/test, otpauth, @faker-js/faker, Node built-ins. Read org variables as process.env.NAME; TARGET_URL is `target`. */
1867
1899
  script: string;
@@ -2130,6 +2162,7 @@ export interface components {
2130
2162
  | "smtp-test"
2131
2163
  | "mail-server-check"
2132
2164
  | "ntp-test"
2165
+ | "game-server-check"
2133
2166
  | "email-health";
2134
2167
  label: string;
2135
2168
  /** @description The question this check answers, in one line. */
@@ -2224,6 +2257,7 @@ export interface components {
2224
2257
  | "smtp-test"
2225
2258
  | "mail-server-check"
2226
2259
  | "ntp-test"
2260
+ | "game-server-check"
2227
2261
  | "email-health";
2228
2262
  target: string;
2229
2263
  /** @description Whether the check itself succeeded — the finding, not the transport. false is a normal, billable answer: a closed port, an NXDOMAIN, an expired or untrusted certificate, a host that doesn't resolve, a failed handshake, or a target the prober refuses (an internal address). Read `error` for what happened; `result` keeps the probe's raw answer. */
@@ -2275,6 +2309,7 @@ export interface components {
2275
2309
  | "smtp-test"
2276
2310
  | "mail-server-check"
2277
2311
  | "ntp-test"
2312
+ | "game-server-check"
2278
2313
  | "email-health";
2279
2314
  label: string;
2280
2315
  /**
@@ -2404,7 +2439,8 @@ export interface components {
2404
2439
  | "playwright"
2405
2440
  | "imap"
2406
2441
  | "pop3"
2407
- | "email_roundtrip";
2442
+ | "email_roundtrip"
2443
+ | "game";
2408
2444
  target?: string;
2409
2445
  description?: string | null;
2410
2446
  interval_seconds?: number;
@@ -2573,7 +2609,8 @@ export interface components {
2573
2609
  | "playwright"
2574
2610
  | "imap"
2575
2611
  | "pop3"
2576
- | "email_roundtrip";
2612
+ | "email_roundtrip"
2613
+ | "game";
2577
2614
  /** @description Format per type (see GET /meta/monitor-types). Targets in private, loopback, link-local or cloud-metadata address space (and internal hostnames such as localhost, *.internal) are rejected with 400. heartbeat: the server assigns the ping path — send any placeholder (or omit target); read ping_url from the response. smtp: hostname only, the port goes in config.port. */
2578
2615
  target: string;
2579
2616
  /** @description Seconds; validated against the plan's per-type minimum */
@@ -3824,7 +3861,8 @@ export interface components {
3824
3861
  | "playwright"
3825
3862
  | "imap"
3826
3863
  | "pop3"
3827
- | "email_roundtrip";
3864
+ | "email_roundtrip"
3865
+ | "game";
3828
3866
  label?: string;
3829
3867
  description?: string;
3830
3868
  target_format?: string;
@@ -4416,6 +4454,39 @@ export interface components {
4416
4454
  /** @default 3 */
4417
4455
  count: number;
4418
4456
  };
4457
+ /** @description Options for the `game-server-check` diagnostic. Is this game server online, and what does it report — name, players and slots, map, version, password and VAC, the player list, and the query ping from three regions? Finds the query port when the given one is silent. */
4458
+ DiagnosticOptionsGameServerCheck: {
4459
+ /** @enum {string} */
4460
+ game?:
4461
+ | "cs2"
4462
+ | "csgo"
4463
+ | "tf2"
4464
+ | "gmod"
4465
+ | "l4d2"
4466
+ | "rust"
4467
+ | "ark_se"
4468
+ | "dayz"
4469
+ | "arma3"
4470
+ | "valheim"
4471
+ | "7dtd"
4472
+ | "project_zomboid"
4473
+ | "v_rising"
4474
+ | "enshrouded"
4475
+ | "conan_exiles"
4476
+ | "unturned"
4477
+ | "space_engineers"
4478
+ | "kf2"
4479
+ | "mordhau"
4480
+ | "insurgency_sandstorm"
4481
+ | "soulmask"
4482
+ | "minecraft_java"
4483
+ | "minecraft_bedrock"
4484
+ | "fivem"
4485
+ | "redm"
4486
+ | "samp"
4487
+ | "mta"
4488
+ | "a2s_generic";
4489
+ };
4419
4490
  /** @description Options for the `email-health` diagnostic. Is this domain protected against email spoofing — are SPF, DKIM and DMARC present and correctly configured? */
4420
4491
  DiagnosticOptionsEmailHealth: {
4421
4492
  /**
@@ -4809,6 +4880,7 @@ export interface operations {
4809
4880
  | "smtp-test"
4810
4881
  | "mail-server-check"
4811
4882
  | "ntp-test"
4883
+ | "game-server-check"
4812
4884
  | "email-health";
4813
4885
  };
4814
4886
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watchfor",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "Official TypeScript SDK + CLI for WatchFor — uptime & infrastructure monitoring (monitors, alert rules, incidents, maintenance windows) over the REST API.",
5
5
  "keywords": [
6
6
  "watchfor",