@zinn-digital/sdk 0.1.1666 → 0.1.1668

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.
@@ -49259,7 +49259,11 @@ export interface paths {
49259
49259
  delete: operations["deleteSite"];
49260
49260
  options?: never;
49261
49261
  head?: never;
49262
- patch?: never;
49262
+ /**
49263
+ * Rename a site.
49264
+ * @description Changes the site's display name, the label the dashboard lists it as. Requires `sites.create` on the site's organization, the same authority that created it; a site the caller cannot reach is a `404`. The name is trimmed and must be 1 to 200 characters. Nothing else is writable here: the primary domain is a separate, multi-step operation (`renameSiteDomain`) because it re-points DNS, the CDN and TLS. Every rename writes a `site.name_changed` audit row with the old and new name.
49265
+ */
49266
+ patch: operations["updateSite"];
49263
49267
  trace?: never;
49264
49268
  };
49265
49269
  "/v1/sites/{siteId}/apm": {
@@ -50440,7 +50444,7 @@ export interface paths {
50440
50444
  put?: never;
50441
50445
  /**
50442
50446
  * Add a one-off CDN top-up to this site for the rest of the month.
50443
- * @description Paid from the organization's Zinn® credit — never a card charge, and nothing renews. Idempotent on `request_id`: a retry with the same id returns the same top-up and debits nothing more. A paused site whose new allowance covers its spend is switched back on in the same call. Refused (422) for a site with no allowance, an unknown tier, an account not in good standing, or credit that does not cover the price. Requires `hosting.cdn.manage`.
50447
+ * @description Paid from the organization's Zinn® credit — never a card charge, and nothing renews. Idempotent on `request_id`: a retry with the same id returns the same top-up and debits nothing more. A paused site whose new allowance covers its spend is switched back on in the same call. Refused (422) for a site with no allowance, an unknown tier, an account not in good standing, a tier too small to lift the site back under its allowance (`enough: false`), or credit that does not cover the price. Requires `hosting.cdn.manage`.
50444
50448
  */
50445
50449
  post: operations["createSiteCdnUsageTopUp"];
50446
50450
  delete?: never;
@@ -104652,6 +104656,8 @@ export interface components {
104652
104656
  code: string;
104653
104657
  /** @example USD */
104654
104658
  currency: string;
104659
+ /** @description Whether this top-up lifts the site back under its allowance this month (spend < allowance + extra). A top-up that is not `enough` would leave the CDN paused, so it is refused (V1 parity, docs/1302 §1). */
104660
+ enough: boolean;
104655
104661
  /**
104656
104662
  * Format: int64
104657
104663
  * @description Extra allowance this top-up adds for the rest of the month, in micro-USD.
@@ -108393,6 +108399,10 @@ export interface components {
108393
108399
  SiteRecoveryStartRequest: components["schemas"]["StaffRecoveryReason"] & {
108394
108400
  action: components["schemas"]["SiteRecoveryAction"];
108395
108401
  };
108402
+ SiteRename: {
108403
+ /** @description The site's display name, trimmed. The only editable field. */
108404
+ name: string;
108405
+ };
108396
108406
  SiteRenameFailure: {
108397
108407
  /** @description The domain the failed change was moving to, or null when unknown. */
108398
108408
  domain: components["schemas"]["Hostname"] | null;
@@ -199165,6 +199175,38 @@ export interface operations {
199165
199175
  503: components["responses"]["ServiceUnavailable"];
199166
199176
  };
199167
199177
  };
199178
+ updateSite: {
199179
+ parameters: {
199180
+ query?: never;
199181
+ header?: never;
199182
+ path: {
199183
+ /** @description Site ID (UUIDv7). */
199184
+ siteId: components["parameters"]["SiteId"];
199185
+ };
199186
+ cookie?: never;
199187
+ };
199188
+ requestBody: {
199189
+ content: {
199190
+ "application/json": components["schemas"]["SiteRename"];
199191
+ };
199192
+ };
199193
+ responses: {
199194
+ /** @description The renamed site. */
199195
+ 200: {
199196
+ headers: {
199197
+ [name: string]: unknown;
199198
+ };
199199
+ content: {
199200
+ "application/json": components["schemas"]["Site"];
199201
+ };
199202
+ };
199203
+ 401: components["responses"]["Unauthorized"];
199204
+ 403: components["responses"]["Forbidden"];
199205
+ 404: components["responses"]["NotFound"];
199206
+ 422: components["responses"]["UnprocessableEntity"];
199207
+ 429: components["responses"]["TooManyRequests"];
199208
+ };
199209
+ };
199168
199210
  getSiteApm: {
199169
199211
  parameters: {
199170
199212
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1666",
3
+ "version": "0.1.1668",
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>",