@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
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['monitors:stats:response-time']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['monitors:stats:uptime']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['monitors:update']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['monitors:uptime-stats']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:create']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:get']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:list']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:pin']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:unpin']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../../lib/operation-command.js';
9
+ import { operations } from '../../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:announcements:update']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:create']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:delete']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:get']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:list']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['status-pages:update']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['tags:delete']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['tags:list']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['user:alert-contacts']);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['user:all-alert-contacts']);
@@ -0,0 +1,5 @@
1
+ import { createOperationCommand } from '../../lib/operation-command.js';
2
+ import { operations } from '../../generated/operations.js';
3
+ export default createOperationCommand(operations['user:me'], {
4
+ canonicalCommand: 'uptimerobot user me',
5
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Code generated by scripts/generate-openapi.ts
3
+ * from openapi/openapi.yaml.
4
+ *
5
+ * DO NOT EDIT — changes will be overwritten.
6
+ * Run `pnpm openapi:generate` to regenerate.
7
+ */
8
+ import { createOperationCommand } from '../../lib/operation-command.js';
9
+ import { operations } from '../../generated/operations.js';
10
+ export default createOperationCommand(operations['user:me']);