@zinn-digital/sdk 0.1.2121 → 0.1.2123
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/generated/schema.d.ts +43 -4
- package/package.json +1 -1
|
@@ -53958,7 +53958,7 @@ export interface paths {
|
|
|
53958
53958
|
get: operations["getSiteCdn"];
|
|
53959
53959
|
/**
|
|
53960
53960
|
* Choose a site's CDN tier.
|
|
53961
|
-
* @description Mainstream lines only — a managed (footprint-free) site returns `FOOTPRINT_MANAGED`. Selecting `byo` requires an already-connected Cloudflare account, else `NO_CLOUDFLARE_CONNECTION`. The zone is created or torn down asynchronously; the response reflects the requested desired state. Requires `hosting.cdn.manage`.
|
|
53961
|
+
* @description Mainstream lines only — a managed (footprint-free) site returns `FOOTPRINT_MANAGED`. Selecting `byo` requires an already-connected Cloudflare account, else `NO_CLOUDFLARE_CONNECTION`. Selecting `premium` requires a live `cdn_premium` add-on purchase for THIS site (a purchase for another site, an unpaid, failed, refunded or lapsed one does not count), else 422 `PURCHASE_REQUIRED` with the refusal key `refusal.apiDefault.cdnPremiumPurchaseRequired`; the tier switch never charges. `enterprise` is not selectable on this path. The zone is created or torn down asynchronously; the response reflects the requested desired state. Requires `hosting.cdn.manage`.
|
|
53962
53962
|
*/
|
|
53963
53963
|
put: operations["setSiteCdn"];
|
|
53964
53964
|
post?: never;
|
|
@@ -54309,7 +54309,7 @@ export interface paths {
|
|
|
54309
54309
|
put?: never;
|
|
54310
54310
|
/**
|
|
54311
54311
|
* Purge a site's CDN cache.
|
|
54312
|
-
* @description
|
|
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"];
|
|
@@ -217323,7 +217359,10 @@ export interface operations {
|
|
|
217323
217359
|
};
|
|
217324
217360
|
requestBody?: {
|
|
217325
217361
|
content: {
|
|
217326
|
-
"application/json":
|
|
217362
|
+
"application/json": {
|
|
217363
|
+
/** @description Full http(s) URLs on this site's domain or its subdomains. */
|
|
217364
|
+
urls?: string[];
|
|
217365
|
+
};
|
|
217327
217366
|
};
|
|
217328
217367
|
};
|
|
217329
217368
|
responses: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2123",
|
|
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>",
|