@amerged/ohmyhost-mcp 0.1.43 → 0.1.44

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.
@@ -34,12 +34,12 @@ const failures = {
34
34
  "Do not repeat the write with a new key. Inspect the target data with a read query and retain this operation ID. The same key only reads this receipt.",
35
35
  ],
36
36
  database_compute_failed: [
37
- "The database size change failed at the provider.",
38
- "Read the current database compute and report this operation ID through feedback. Preserve data; do not reset or redeploy the database to repair its size.",
37
+ "The database provider refused the size change or had no room for it. The database keeps its previous size and keeps running, and no credits are charged for the failed change.",
38
+ "Read the current size with 'ohmyhost database compute get --project PROJECT_ULID --environment dev|prod --json' or MCP database_compute_get, then repeat the change with a new idempotency key; the old key only returns this failure. If it fails again after a few minutes, start a new deployment of the project, repeat the change and report this operation ID through feedback. Never reset the database to change its size.",
39
39
  ],
40
40
  database_compute_plan_changed: [
41
- "Paid access ended before the database size change started.",
42
- "Read the organization's plan and current database compute, then confirm a new standard-size request. This operation did not resize the database.",
41
+ "Paid access ended before the database size change started, so it was not sent to the database provider. The database keeps its previous size and keeps running, and no credits are charged for the change.",
42
+ "Read the organization's plan with 'ohmyhost credits account --organization ORGANIZATION_ULID --json' or MCP organization_account_get. Sizes above 256 MiB need active Paid: ask the organization Owner to activate Paid through billing checkout, then read the current size with database compute get and repeat the change with a new idempotency key.",
43
43
  ],
44
44
  database_compute_rejected: [
45
45
  "The database size change could not be started.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/sdk-ts",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -5227,7 +5227,7 @@ export const getProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
5227
5227
  /**
5228
5228
  * Create or replace one database schedule
5229
5229
  *
5230
- * Creates the named schedule or replaces it. Each run executes the statements as the application's own runtime role, so row-level security applies as for the application. A run that does not finish within timeout_ms is cancelled.
5230
+ * Creates the named schedule or replaces it. Each run executes the statements as the application's own runtime role, so row-level security applies as for the application. A run that does not finish within timeout_ms is cancelled. A reached Stop budget (or exhausted credit past its grace) refuses an enabled schedule with project_budget_exceeded (402); disabling the schedule is never refused.
5231
5231
  */
5232
5232
  export const setProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
5233
5233
  parameters: {
@@ -5328,7 +5328,7 @@ export const listProjectDatabaseScheduleRuns = <ThrowOnError extends boolean = t
5328
5328
  /**
5329
5329
  * Queue one immediate run of a database schedule
5330
5330
  *
5331
- * Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued.
5331
+ * Queues one manual run. The run is refused while the schedule is disabled or while a run is already queued. A reached Stop budget (or exhausted credit past its grace) refuses the run with project_budget_exceeded (402).
5332
5332
  */
5333
5333
  export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
5334
5334
  parameters: {
@@ -5374,7 +5374,7 @@ export const runProjectDatabaseSchedule = <ThrowOnError extends boolean = true>(
5374
5374
  /**
5375
5375
  * Read metered database execution usage
5376
5376
  *
5377
- * Returns schedule runs and webhook attempts per time window. Only completed windows are final; the current window may still change. Windows are UTC and at most 31 days long. Rejected, skipped, event and delivery counts are reported but not billed.
5377
+ * Returns schedule runs and webhook attempts per time window. Only completed windows are final; the current window may still change. Windows are UTC and at most 31 days long. The counts are counters only; executions have no price of their own, and the awake compute time of the database is what is billed.
5378
5378
  */
5379
5379
  export const getProjectDatabaseExecutionUsage = <ThrowOnError extends boolean = true>(
5380
5380
  parameters: {
@@ -8790,6 +8790,10 @@ export type SetProjectDatabaseScheduleErrors = {
8790
8790
  * The request failed.
8791
8791
  */
8792
8792
  401: ProblemDetails;
8793
+ /**
8794
+ * The request failed.
8795
+ */
8796
+ 402: ProblemDetails;
8793
8797
  /**
8794
8798
  * The resource does not exist or is not visible to the authenticated principal.
8795
8799
  */
@@ -8924,6 +8928,10 @@ export type RunProjectDatabaseScheduleErrors = {
8924
8928
  * The request failed.
8925
8929
  */
8926
8930
  401: ProblemDetails;
8931
+ /**
8932
+ * The request failed.
8933
+ */
8934
+ 402: ProblemDetails;
8927
8935
  /**
8928
8936
  * The resource does not exist or is not visible to the authenticated principal.
8929
8937
  */