@runlot/api 0.1.0-rc.97 → 0.1.0-rc.98

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/dist/schema.d.ts CHANGED
@@ -1262,8 +1262,10 @@ export interface paths {
1262
1262
  get: operations["getDatabase"];
1263
1263
  put?: never;
1264
1264
  /**
1265
- * Create a database (called by `runlot deploy` when it reads a `\"database\": true` declaration)
1266
- * @description Creates the project's database and returns its connection details. Shortly afterwards
1265
+ * Creates a new database after the previous one was deleted
1266
+ * @description Every project has a database from the start; this creates a new, empty one after a
1267
+ * delete, and clears the turn-off so later deploys keep it. It returns the connection
1268
+ * details. Shortly afterwards
1267
1269
  * the running worker picks up a connected `env.db`. No redeploy is needed.
1268
1270
  *
1269
1271
  * **It is idempotent and never rotates the password.** A second call returns the same
@@ -1849,7 +1851,7 @@ export interface paths {
1849
1851
  get: operations["getStorage"];
1850
1852
  put?: never;
1851
1853
  /**
1852
- * Grant storage (called by `runlot deploy` when it reads a `\"storage\": true` declaration)
1854
+ * Turns storage back on after it was turned off
1853
1855
  * @description **This is idempotent** — calling it twice leaves the prefix unchanged, so a retry can
1854
1856
  * never move objects out of view.
1855
1857
  *
@@ -2066,12 +2068,12 @@ export interface paths {
2066
2068
  get: operations["getAI"];
2067
2069
  put?: never;
2068
2070
  /**
2069
- * Turns on AI (a deployment calls this after reading `"ai": true`)
2071
+ * Turns AI back on after it was turned off
2070
2072
  * @description **This is idempotent.** There is no request body — neither the limits nor the model list is a
2071
2073
  * value you set.
2072
2074
  *
2073
- * Once it is on, `env.ai` is connected to the worker shortly afterwards. **Your project must
2074
- * also declare `"ai": true`** in `runlot.json`, which is what makes the binding appear.
2075
+ * Every project has AI from the start; this is the way back after `DELETE`, and it clears the
2076
+ * turn-off so later deploys keep it. `env.ai` is attached from the next deployment.
2075
2077
  *
2076
2078
  * Requires member or higher. Audited as `ai.grant`.
2077
2079
  */
@@ -2229,7 +2231,7 @@ export interface paths {
2229
2231
  get: operations["getEmail"];
2230
2232
  put?: never;
2231
2233
  /**
2232
- * Turns on email (a deployment calls this after reading `"email": true`)
2234
+ * Turns email back on after it was turned off
2233
2235
  * @description **This is idempotent.** There is no request body — the address is derived
2234
2236
  * (`<project>.<org>.<mail-domain>`), and the plan determines the limit. The address is
2235
2237
  * fixed to the project name at the time of the grant.
@@ -2460,14 +2462,13 @@ export interface paths {
2460
2462
  get: operations["getAuth"];
2461
2463
  put?: never;
2462
2464
  /**
2463
- * Turns on auth (`runlot deploy` calls this after reading the `"auth": true` declaration)
2465
+ * Turns login back on after it was turned off
2464
2466
  * @description **This is idempotent** — calling it twice leaves the settings and login providers
2465
2467
  * unchanged. Auth is either on or off; there is no "on but disabled" state.
2466
2468
  *
2467
2469
  * **A database is required.** Without one this returns 409 `database_required`, because
2468
- * the end-user tables live inside the project's database. Declaring `"auth": true` also
2469
- * enables the database, and a deploy grants them in that order, so you will not normally
2470
- * see this error.
2470
+ * the end-user tables live inside the project's database. Every project has one unless it
2471
+ * was deleted, so you will see this only after a database delete.
2471
2472
  *
2472
2473
  * Once enabled, the built-in login endpoints start serving shortly afterwards. As with
2473
2474
  * `env.db` and `env.storage`, no redeploy is needed. Table initialization is idempotent,
@@ -4851,7 +4852,7 @@ export interface components {
4851
4852
  /** @description A deployment in the overview. Same shape as `Deployment`, including `actor`. */
4852
4853
  OverviewDeployment: components["schemas"]["Deployment"];
4853
4854
  OverviewDatabase: {
4854
- /** @description Whether `"database": true` is set in `runlot.json` */
4855
+ /** @description Whether the project has a database. Every project has one unless it was deleted. */
4855
4856
  granted: boolean;
4856
4857
  /**
4857
4858
  * Format: date-time
@@ -4871,7 +4872,7 @@ export interface components {
4871
4872
  */
4872
4873
  generations: number;
4873
4874
  };
4874
- /** @description Which resources declared in `runlot.json` are enabled for this project. */
4875
+ /** @description Which of the project's resources are on. Every one is on unless somebody turned it off. */
4875
4876
  OverviewFeatures: {
4876
4877
  database: boolean;
4877
4878
  storage: boolean;
@@ -11125,8 +11126,8 @@ export interface operations {
11125
11126
  403: components["responses"]["Forbidden"];
11126
11127
  404: components["responses"]["NotFound"];
11127
11128
  /**
11128
- * @description `database_required` — this project has no database.
11129
- * Set `"database": true` in runlot.json and deploy.
11129
+ * @description `database_required` — this project's database was deleted.
11130
+ * Create a new one with `POST …/database` (`runlot pg on`).
11130
11131
  */
11131
11132
  409: {
11132
11133
  headers: {