@zinn-digital/sdk 0.1.1499 → 0.1.1501

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.
@@ -49665,6 +49665,8 @@ export interface paths {
49665
49665
  * List a site's MySQL databases and the room to add more.
49666
49666
  * @description The site's own database first, then every extra database it holds, each with its measured size (null when the server did not report one — never a made-up 0). Only sites on our own servers have this surface; any other site is `404`.
49667
49667
  *
49668
+ * **Served stale-while-revalidate** (`docs/1081` §"Freshness"): a reading from the last 60 s is returned as is; an older one (up to 7 days) is returned at once while one background refresh reads the server again; only a site with no reading reads the server in the request. Any database or FTP change through this API drops the cached reading, so the customer's own change is always visible on the next call.
49669
+ *
49668
49670
  * **The ceiling is `included + paid`** (`docs/1081` §1). `included` is the plan's database allowance — a plan that publishes no figure still includes the site's own database, so it is never 0 — and `paid` counts the site's `extra_database` add-ons that are paid up today. `can_create` says whether one more fits under `limit`; `can_buy` says whether this caller may buy one more database for this site now, and `extra_price` is that price in the caller's currency (null when not on sale). A cancelled add-on never drops a database: the customer is refused a NEW one until they are back under the ceiling. Requires `sites.view` and `sites.panel_access`.
49669
49671
  */
49670
49672
  get: operations["listSiteDatabases"];
@@ -50269,6 +50271,8 @@ export interface paths {
50269
50271
  * List a site's FTP accounts.
50270
50272
  * @description The FTP accounts on the site's hosting package, including the package's own primary account so the customer can see it exists. **No password is returned for any of them, and none can be read back**: the vendor does expose the primary account's live credentials in cleartext, and this platform deliberately never calls that endpoint.
50271
50273
  *
50274
+ * **Served stale-while-revalidate** (`docs/1081` §"Freshness"): a reading from the last 60 s is returned as is; an older one (up to 7 days) is returned at once while one background refresh reads the server again; only a site with no reading reads the server in the request. Any FTP or database change through this API drops the cached reading, so the customer's own change is always visible on the next call.
50275
+ *
50272
50276
  * `limit` is the **effective** ceiling — the lower of what the package permits and what the customer bought, with either side being unlimited yielding to the other. `permitted` and `can_create` are separate because the screen says different things: *"your plan does not include this"* is not *"you have used all of them"*.
50273
50277
  *
50274
50278
  * `404` for a site with no vendor hosting package. Requires `sites.view`.
@@ -105165,6 +105169,7 @@ export interface components {
105165
105169
  auto_deploy: boolean;
105166
105170
  /** @default main */
105167
105171
  branch: string;
105172
+ /** @description One line. In `ci` mode the repository's own CI runs it. In `publish` mode it is refused (nothing would run it), except on an application site on our fleet (Node, Python or Ruby, Developer Hosting), where every deploy runs it as the site's own user inside the release before the switch (docs/715 section 5). */
105168
105173
  build_command?: string;
105169
105174
  build_mode?: components["schemas"]["BuildMode"];
105170
105175
  output_dir?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1499",
3
+ "version": "0.1.1501",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",