watchfor 0.5.0 → 0.7.1
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 +42 -4
- package/dist/cli.js +6 -2
- package/dist/client.d.ts +74 -9
- package/dist/client.js +46 -1
- package/dist/index.d.ts +1 -1
- package/dist/schema.d.ts +779 -42
- package/package.json +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "watchfor",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Official TypeScript SDK + CLI for WatchFor
|
|
3
|
+
"version": "0.7.1",
|
|
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",
|
|
7
7
|
"monitoring",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -p tsconfig.json && cp src/schema.d.ts dist/schema.d.ts",
|
|
42
42
|
"prepublishOnly": "npm run build",
|
|
43
|
-
"regen-types": "openapi-typescript ${SPEC:-https://watchfor.io/openapi.json} -o src/schema.d.ts",
|
|
44
|
-
"regen-types:local": "
|
|
43
|
+
"regen-types": "npx -y openapi-typescript@7 ${SPEC:-https://watchfor.io/openapi.json} -o src/schema.d.ts && (cd .. && npx biome check --write sdk/src/schema.d.ts)",
|
|
44
|
+
"regen-types:local": "SPEC=http://localhost:3000/api/v1/openapi.json npm run regen-types"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^22.0.0",
|