@uptimerobot/cli 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 (108) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +179 -0
  3. package/bin/run.js +43 -0
  4. package/dist/api/client.js +95 -0
  5. package/dist/api/errors.js +26 -0
  6. package/dist/commands/alert-contacts/create.js +10 -0
  7. package/dist/commands/alert-contacts/delete.js +10 -0
  8. package/dist/commands/alert-contacts/get.js +10 -0
  9. package/dist/commands/alert-contacts/list.js +10 -0
  10. package/dist/commands/alert-contacts/update.js +10 -0
  11. package/dist/commands/auth/login.js +51 -0
  12. package/dist/commands/auth/logout.js +33 -0
  13. package/dist/commands/auth/status.js +38 -0
  14. package/dist/commands/auth/whoami.js +6 -0
  15. package/dist/commands/incidents/activity-log.js +10 -0
  16. package/dist/commands/incidents/alerts.js +10 -0
  17. package/dist/commands/incidents/comments/create.js +10 -0
  18. package/dist/commands/incidents/comments/delete.js +10 -0
  19. package/dist/commands/incidents/comments/list.js +10 -0
  20. package/dist/commands/incidents/comments/update.js +10 -0
  21. package/dist/commands/incidents/get.js +10 -0
  22. package/dist/commands/incidents/list.js +10 -0
  23. package/dist/commands/integrations/create.js +10 -0
  24. package/dist/commands/integrations/delete.js +10 -0
  25. package/dist/commands/integrations/get.js +10 -0
  26. package/dist/commands/integrations/list.js +10 -0
  27. package/dist/commands/integrations/update.js +10 -0
  28. package/dist/commands/maintenance-windows/create.js +10 -0
  29. package/dist/commands/maintenance-windows/delete.js +10 -0
  30. package/dist/commands/maintenance-windows/get.js +10 -0
  31. package/dist/commands/maintenance-windows/list.js +10 -0
  32. package/dist/commands/maintenance-windows/update.js +10 -0
  33. package/dist/commands/monitor-groups/create.js +10 -0
  34. package/dist/commands/monitor-groups/delete.js +10 -0
  35. package/dist/commands/monitor-groups/get.js +10 -0
  36. package/dist/commands/monitor-groups/list.js +10 -0
  37. package/dist/commands/monitor-groups/update.js +10 -0
  38. package/dist/commands/monitors/bulk/pause.js +10 -0
  39. package/dist/commands/monitors/bulk/start.js +10 -0
  40. package/dist/commands/monitors/bulk/update.js +10 -0
  41. package/dist/commands/monitors/create/api.js +10 -0
  42. package/dist/commands/monitors/create/dns.js +10 -0
  43. package/dist/commands/monitors/create/heartbeat.js +10 -0
  44. package/dist/commands/monitors/create/http.js +10 -0
  45. package/dist/commands/monitors/create/keyword.js +10 -0
  46. package/dist/commands/monitors/create/ping.js +10 -0
  47. package/dist/commands/monitors/create/port.js +10 -0
  48. package/dist/commands/monitors/create/udp.js +10 -0
  49. package/dist/commands/monitors/create/visual-comparison.js +10 -0
  50. package/dist/commands/monitors/delete.js +10 -0
  51. package/dist/commands/monitors/get.js +10 -0
  52. package/dist/commands/monitors/list.js +10 -0
  53. package/dist/commands/monitors/pause.js +10 -0
  54. package/dist/commands/monitors/reset.js +10 -0
  55. package/dist/commands/monitors/schema.js +57 -0
  56. package/dist/commands/monitors/start.js +10 -0
  57. package/dist/commands/monitors/stats/response-time/all.js +10 -0
  58. package/dist/commands/monitors/stats/response-time.js +10 -0
  59. package/dist/commands/monitors/stats/uptime.js +10 -0
  60. package/dist/commands/monitors/update.js +10 -0
  61. package/dist/commands/monitors/uptime-stats.js +10 -0
  62. package/dist/commands/status-pages/announcements/create.js +10 -0
  63. package/dist/commands/status-pages/announcements/get.js +10 -0
  64. package/dist/commands/status-pages/announcements/list.js +10 -0
  65. package/dist/commands/status-pages/announcements/pin.js +10 -0
  66. package/dist/commands/status-pages/announcements/unpin.js +10 -0
  67. package/dist/commands/status-pages/announcements/update.js +10 -0
  68. package/dist/commands/status-pages/create.js +10 -0
  69. package/dist/commands/status-pages/delete.js +10 -0
  70. package/dist/commands/status-pages/get.js +10 -0
  71. package/dist/commands/status-pages/list.js +10 -0
  72. package/dist/commands/status-pages/update.js +10 -0
  73. package/dist/commands/tags/delete.js +10 -0
  74. package/dist/commands/tags/list.js +10 -0
  75. package/dist/commands/user/alert-contacts.js +10 -0
  76. package/dist/commands/user/all-alert-contacts.js +10 -0
  77. package/dist/commands/user/get.js +5 -0
  78. package/dist/commands/user/me.js +10 -0
  79. package/dist/generated/operations.js +7631 -0
  80. package/dist/lib/auth.js +60 -0
  81. package/dist/lib/base-command.js +21 -0
  82. package/dist/lib/cli-errors.js +80 -0
  83. package/dist/lib/command-suggestions.js +44 -0
  84. package/dist/lib/credential-store.js +152 -0
  85. package/dist/lib/flag-name.js +11 -0
  86. package/dist/lib/invocation.js +74 -0
  87. package/dist/lib/objects.js +34 -0
  88. package/dist/lib/operation-command.js +486 -0
  89. package/dist/lib/operation-parser-error.js +28 -0
  90. package/dist/lib/request-curation.js +76 -0
  91. package/dist/lib/request-example.js +82 -0
  92. package/dist/lib/request-preview.js +25 -0
  93. package/dist/lib/request.js +301 -0
  94. package/dist/lib/sensitive-fields.js +19 -0
  95. package/dist/lib/types.js +1 -0
  96. package/dist/output/columns.js +221 -0
  97. package/dist/output/display-width.js +34 -0
  98. package/dist/output/normalize-result.js +28 -0
  99. package/dist/output/pagination-notice.js +27 -0
  100. package/dist/output/renderer.js +145 -0
  101. package/dist/output/request-progress.js +15 -0
  102. package/dist/output/resolve-format.js +32 -0
  103. package/dist/output/style.js +57 -0
  104. package/dist/runtime/parse-input.js +35 -0
  105. package/dist/runtime/types.js +1 -0
  106. package/dist/runtime/validate-input.js +63 -0
  107. package/openapi/openapi.yaml +9034 -0
  108. package/package.json +135 -0
package/package.json ADDED
@@ -0,0 +1,135 @@
1
+ {
2
+ "name": "@uptimerobot/cli",
3
+ "version": "0.1.0",
4
+ "description": "Official UptimeRobot CLI — manage uptime monitors, incidents, status pages, and alert contacts from your terminal, scripts, or CI.",
5
+ "keywords": [
6
+ "uptimerobot",
7
+ "cli",
8
+ "command-line",
9
+ "uptime",
10
+ "uptime-monitoring",
11
+ "monitoring",
12
+ "status-page",
13
+ "incidents",
14
+ "alerting",
15
+ "devops",
16
+ "sre",
17
+ "oclif",
18
+ "api",
19
+ "automation"
20
+ ],
21
+ "author": "UptimeRobot (https://uptimerobot.com)",
22
+ "license": "Apache-2.0",
23
+ "homepage": "https://github.com/uptimerobot/uptimerobot-cli#readme",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/uptimerobot/uptimerobot-cli.git"
27
+ },
28
+ "bugs": "https://github.com/uptimerobot/uptimerobot-cli/issues",
29
+ "type": "module",
30
+ "engines": {
31
+ "node": ">=22.12.0"
32
+ },
33
+ "packageManager": "pnpm@10.26.0",
34
+ "bin": {
35
+ "uptimerobot": "./bin/run.js"
36
+ },
37
+ "files": [
38
+ "bin",
39
+ "dist",
40
+ "openapi/openapi.yaml",
41
+ "README.md",
42
+ "LICENSE"
43
+ ],
44
+ "publishConfig": {
45
+ "access": "public",
46
+ "registry": "https://registry.npmjs.org/"
47
+ },
48
+ "scripts": {
49
+ "build": "pnpm clean && tsc -p tsconfig.build.json",
50
+ "clean": "node --disable-warning=ExperimentalWarning --experimental-strip-types scripts/clean.ts",
51
+ "format": "oxfmt",
52
+ "format:check": "oxfmt --check",
53
+ "lint": "oxlint src test scripts",
54
+ "test": "pnpm build && vitest run",
55
+ "test:watch": "vitest",
56
+ "typecheck": "tsc -p tsconfig.json",
57
+ "openapi:generate": "node --disable-warning=ExperimentalWarning --experimental-strip-types scripts/generate-openapi.ts",
58
+ "openapi:update": "node --disable-warning=ExperimentalWarning --experimental-strip-types scripts/update-openapi.ts",
59
+ "openapi:check": "node --disable-warning=ExperimentalWarning --experimental-strip-types scripts/check-openapi.ts",
60
+ "prepack": "pnpm build"
61
+ },
62
+ "dependencies": {
63
+ "@napi-rs/keyring": "1.3.0",
64
+ "@oclif/core": "4.11.14",
65
+ "ky": "2.0.2",
66
+ "yaml": "2.9.0"
67
+ },
68
+ "devDependencies": {
69
+ "@types/node": "26.1.1",
70
+ "oxfmt": "0.58.0",
71
+ "oxlint": "1.73.0",
72
+ "typescript": "6.0.3",
73
+ "vitest": "4.1.10"
74
+ },
75
+ "oclif": {
76
+ "bin": "uptimerobot",
77
+ "dirname": "uptimerobot",
78
+ "description": "The official command-line interface for UptimeRobot API v3\n\nOutput: --format selects json, jsonl, table, or plain. --json is shorthand for normalized JSON. --raw emits the untouched API response as JSON.",
79
+ "commands": "./dist/commands",
80
+ "theme": {
81
+ "spinner": "#3bd671"
82
+ },
83
+ "topicSeparator": " ",
84
+ "topics": {
85
+ "auth": {
86
+ "description": "Manage authentication"
87
+ },
88
+ "alert-contacts": {
89
+ "description": "Manage personal alert contacts"
90
+ },
91
+ "incidents": {
92
+ "description": "Inspect incidents and manage comments",
93
+ "subtopics": {
94
+ "comments": {
95
+ "description": "Manage incident comments"
96
+ }
97
+ }
98
+ },
99
+ "integrations": {
100
+ "description": "Manage alerting integrations"
101
+ },
102
+ "maintenance-windows": {
103
+ "description": "Manage maintenance windows"
104
+ },
105
+ "monitor-groups": {
106
+ "description": "Manage monitor groups"
107
+ },
108
+ "monitors": {
109
+ "description": "Manage monitors and statistics",
110
+ "subtopics": {
111
+ "bulk": {
112
+ "description": "Run bulk monitor actions"
113
+ },
114
+ "stats": {
115
+ "description": "Query monitor statistics"
116
+ }
117
+ }
118
+ },
119
+ "status-pages": {
120
+ "description": "Manage public status pages",
121
+ "subtopics": {
122
+ "announcements": {
123
+ "description": "Manage status-page announcements"
124
+ }
125
+ }
126
+ },
127
+ "tags": {
128
+ "description": "List and delete monitor tags"
129
+ },
130
+ "user": {
131
+ "description": "Inspect the authenticated user and contacts"
132
+ }
133
+ }
134
+ }
135
+ }