@zinn-digital/sdk 0.1.2119 → 0.1.2122

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.
@@ -54309,7 +54309,7 @@ export interface paths {
54309
54309
  put?: never;
54310
54310
  /**
54311
54311
  * Purge a site's CDN cache.
54312
- * @description Purges the whole zone for this site. The engine verifies the site owns the domain before purging, because on a pooled CDN account a zone resolves by name alone and an unchecked purge could clear a different tenant's cache — so the hostname is read off the site row and **the request body must be empty**. A body carrying a `domain`, `zone` or `urls` key is a `422`, not a silently ignored field.
54312
+ * @description With no body (or `{}`), purges everything this site serves. With `urls`, purges only those URLs (at most 30), each of which must be on the site's own domain or one of its subdomains. The zone is always resolved from the site row, never the body, because on a pooled CDN account a zone resolves by name alone and an unchecked purge could clear a different tenant's cache. Any key other than `urls` (for example `domain` or `zone`), a URL on another host, a non-http(s) URL, an empty list or more than 30 URLs is a `422`, not a silently ignored field.
54313
54313
  *
54314
54314
  * A site that is not served through our CDN is a `404`, answered before any vendor call. `Idempotency-Key` is accepted and requires no de-duplication here: purging a zone twice has the same effect as purging it once. Requires `sites.cache.purge`.
54315
54315
  */
@@ -54388,7 +54388,7 @@ export interface paths {
54388
54388
  *
54389
54389
  * The body carries settings and nothing else. `additionalProperties: false` is load-bearing rather than tidy: these are pooled CDN accounts holding other customers' zones and a Cloudflare zone resolves **by name alone**, so a body key named `domain` or `zone_id` must be refused rather than silently discarded. The hostname is always read off the site row.
54390
54390
  *
54391
- * `ssl_mode` deliberately does not accept Cloudflare's `flexible`, which leaves the edge-to-origin leg in plaintext. An empty body is a `422`, not a no-op success. A provider without these controls is a `422` with code `UNSUPPORTED_BY_PROVIDER` — a save that reported success having changed nothing would be worse than a refusal. Requires `hosting.cdn.manage`.
54391
+ * `ssl_mode` deliberately does not accept Cloudflare's `flexible`, which leaves the edge-to-origin leg in plaintext. An empty body is a `422`, not a no-op success. A provider without these controls is a `422` with code `UNSUPPORTED_BY_PROVIDER` — a save that reported success having changed nothing would be worse than a refusal. Every setting here is zone-wide, so a site on a shared preview address (whose zone serves other sites too) is a `422` before any provider call; reading still works. Requires `hosting.cdn.manage`.
54392
54392
  */
54393
54393
  put: operations["updateSiteCdnSettings"];
54394
54394
  post?: never;
@@ -112903,6 +112903,11 @@ export interface components {
112903
112903
  * @example true
112904
112904
  */
112905
112905
  brotli: boolean;
112906
+ /**
112907
+ * @description Challenge requests whose headers look like a known abusive bot or spammer (Browser Integrity Check).
112908
+ * @example true
112909
+ */
112910
+ browser_check: boolean;
112906
112911
  cache_level: components["schemas"]["CdnCacheLevelReported"];
112907
112912
  /**
112908
112913
  * @description Bypass the cache entirely so edits are visible immediately. The provider expires this automatically — see `development_mode_seconds_remaining`.
@@ -112914,11 +112919,26 @@ export interface components {
112914
112919
  * @example 0
112915
112920
  */
112916
112921
  development_mode_seconds_remaining: number;
112922
+ /**
112923
+ * @description Send 103 Early Hints so browsers start loading assets sooner.
112924
+ * @example false
112925
+ */
112926
+ early_hints: boolean;
112917
112927
  /**
112918
112928
  * @description Hide e-mail addresses on the site's pages from scrapers (the CDN rewrites them and a small script restores them for visitors). On by default at the provider; turn it off when a page script reads `mailto:` links itself. Only meaningful when listed in `supported_fields` (docs/1001 §1.2).
112919
112929
  * @example true
112920
112930
  */
112921
112931
  email_obfuscation: boolean;
112932
+ /**
112933
+ * @description Refuse your images to other websites that embed them directly (hotlinking), so they do not use your bandwidth.
112934
+ * @example false
112935
+ */
112936
+ hotlink_protection: boolean;
112937
+ /**
112938
+ * @description Serve visitors over HTTP/3 (QUIC) when their browser supports it.
112939
+ * @example true
112940
+ */
112941
+ http3: boolean;
112922
112942
  site_id: components["schemas"]["Uuid"];
112923
112943
  ssl_mode: components["schemas"]["CdnSslMode"];
112924
112944
  /**
@@ -112950,15 +112970,31 @@ export interface components {
112950
112970
  supported_values: {
112951
112971
  [key: string]: string[];
112952
112972
  };
112973
+ /**
112974
+ * @description Offer TLS 1.3 to visitors.
112975
+ * @example true
112976
+ */
112977
+ tls_1_3: boolean;
112978
+ /**
112979
+ * @description TLS 1.3 0-RTT: a returning visitor's first request is sent without waiting for the handshake. Faster repeat visits; replayable, so leave it off for sites whose GET requests change data.
112980
+ * @example false
112981
+ */
112982
+ zero_rtt: boolean;
112953
112983
  };
112954
112984
  /** @description A **partial** update — send only what should change. An absent field is left alone, never reset, so a client that predates a setting cannot switch it off. Unknown properties are refused rather than discarded: on a pooled CDN account a zone resolves by name alone, so a body key that looked like a hostname must be impossible to submit quietly. */
112955
112985
  SiteCdnSettingsUpdate: {
112956
112986
  always_online?: boolean;
112957
112987
  brotli?: boolean;
112988
+ browser_check?: boolean;
112958
112989
  cache_level?: components["schemas"]["CdnCacheLevel"];
112959
112990
  development_mode?: boolean;
112991
+ early_hints?: boolean;
112960
112992
  email_obfuscation?: boolean;
112993
+ hotlink_protection?: boolean;
112994
+ http3?: boolean;
112961
112995
  ssl_mode?: components["schemas"]["CdnSslMode"];
112996
+ tls_1_3?: boolean;
112997
+ zero_rtt?: boolean;
112962
112998
  };
112963
112999
  SiteCdnTieredCache: {
112964
113000
  site_id: components["schemas"]["Uuid"];
@@ -113460,7 +113496,7 @@ export interface components {
113460
113496
  */
113461
113497
  cdn_tier?: string;
113462
113498
  /**
113463
- * @description Which CDN vendor this site's edge runs on. Omit (or send `""`) to let the footprint balancer choose, which is the default and the **only** permitted value on a managed line — a Footprint-Free site is spread across the pool deliberately, so naming a vendor is a `422`. Must be a vendor returned by `GET /v1/sites/provider-options`.
113499
+ * @description Which CDN vendor this site's edge runs on. **Footprint-Free only**: on that line omit it (or send `""`) to let the footprint balancer choose, or name a vendor returned by `GET /v1/sites/provider-options`. On every other line the platform chooses (the Zinn edge network, Premium CDN or the customer's own CDN), so naming a vendor there is a `422` with `details[0].field` = `cdn_vendor`.
113464
113500
  * @example bunnycdn
113465
113501
  */
113466
113502
  cdn_vendor?: string;
@@ -113476,7 +113512,7 @@ export interface components {
113476
113512
  */
113477
113513
  deploy_target?: string;
113478
113514
  /**
113479
- * @description Which DNS vendor this site's zone is created on. Omit to let the footprint balancer choose. Only consulted when the zone has no placement yet: a name inside a zone this organization already holds adopts that zone's provider, because one zone cannot be served by two providers at once.
113515
+ * @description Which DNS vendor this site's zone is created on. **Footprint-Free only**: omit it to let the footprint balancer choose; on every other line (our nameservers or the customer's own DNS) naming a vendor is a `422` with `details[0].field` = `dns_vendor`. Only consulted when the zone has no placement yet: a name inside a zone this organization already holds adopts that zone's provider, because one zone cannot be served by two providers at once.
113480
113516
  * @example bunny_dns
113481
113517
  */
113482
113518
  dns_vendor?: string;
@@ -116644,6 +116680,14 @@ export interface components {
116644
116680
  */
116645
116681
  deploy_targets: components["schemas"]["SiteDeployTargetOffer"][];
116646
116682
  dns: components["schemas"]["SiteDnsChoice"];
116683
+ /** @description Which CDN and DNS choices this product line has at all (owner rule 2026-11-25). `cdn` is `full` (the free Zinn edge network on by default once the site has its own domain, Premium CDN, or the customer's own CDN), `byo_only` (the customer's own CDN only; files hosting) or `none`. `dns` is `ours_or_own` (our nameservers or the customer's own DNS), `optional` (our nameservers only if asked; cloud and private cloud) or `none`. `vendor_picker` is true only on Footprint-Free, the one line whose customer names the CDN and DNS vendor; elsewhere `cdn.vendors` and `dns.vendors` are empty and `POST /v1/sites` refuses `cdn_vendor` and `dns_vendor`. */
116684
+ edge: {
116685
+ /** @enum {string} */
116686
+ cdn: "full" | "byo_only" | "none";
116687
+ /** @enum {string} */
116688
+ dns: "ours_or_own" | "optional" | "none";
116689
+ vendor_picker: boolean;
116690
+ };
116647
116691
  /**
116648
116692
  * @description The product line the answer was computed for (echoed from the query).
116649
116693
  * @example mainstream
@@ -217315,7 +217359,10 @@ export interface operations {
217315
217359
  };
217316
217360
  requestBody?: {
217317
217361
  content: {
217318
- "application/json": Record<string, never>;
217362
+ "application/json": {
217363
+ /** @description Full http(s) URLs on this site's domain or its subdomains. */
217364
+ urls?: string[];
217365
+ };
217319
217366
  };
217320
217367
  };
217321
217368
  responses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2119",
3
+ "version": "0.1.2122",
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>",