@zinn-digital/sdk 0.1.1883 → 0.1.1888
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 +121 -2
- package/package.json +1 -1
|
@@ -28384,7 +28384,7 @@ export interface paths {
|
|
|
28384
28384
|
put?: never;
|
|
28385
28385
|
/**
|
|
28386
28386
|
* Add a line to a cart.
|
|
28387
|
-
* @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted
|
|
28387
|
+
* @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`; the servers' total is never stated). A `domain_transfer` line that would be free under the transfer offer is also a `422` when a guard on the offer refuses it; `error.code` is one of `EMAIL_NOT_VERIFIED`, `NOT_IN_GOOD_STANDING`, `PREMIUM_NAME`, `CHECK_FAILED` or `FREE_TRANSFER_LIMIT`, and `error.refusal.key` (`refusal.freeTransfer.*`) is the sentence to show in the reader's language. Nothing is added to the cart by a refused call.
|
|
28388
28388
|
*/
|
|
28389
28389
|
post: operations["addCartLine"];
|
|
28390
28390
|
delete?: never;
|
|
@@ -51921,6 +51921,35 @@ export interface paths {
|
|
|
51921
51921
|
patch?: never;
|
|
51922
51922
|
trace?: never;
|
|
51923
51923
|
};
|
|
51924
|
+
"/v1/sites/{siteId}/bot-throttle": {
|
|
51925
|
+
parameters: {
|
|
51926
|
+
query?: never;
|
|
51927
|
+
header?: never;
|
|
51928
|
+
path: {
|
|
51929
|
+
/** @description Site ID (UUIDv7). */
|
|
51930
|
+
siteId: components["parameters"]["SiteId"];
|
|
51931
|
+
};
|
|
51932
|
+
cookie?: never;
|
|
51933
|
+
};
|
|
51934
|
+
/**
|
|
51935
|
+
* Get a site's crawler guard switch and whether it is turning crawlers away now.
|
|
51936
|
+
* @description `enabled` is the site's own switch (on unless switched off). `active` is the current protection event, if any: when it started, until when it holds at least, whether our rule is on the site now (`applied`) and how many crawler requests it has turned away. `links` are the link shapes the guard covers; every other URL is untouched.
|
|
51937
|
+
*
|
|
51938
|
+
* `404` for a site that is not the caller's or is not on one of our servers. Requires `sites.view`.
|
|
51939
|
+
*/
|
|
51940
|
+
get: operations["getSiteBotThrottle"];
|
|
51941
|
+
put?: never;
|
|
51942
|
+
post?: never;
|
|
51943
|
+
delete?: never;
|
|
51944
|
+
options?: never;
|
|
51945
|
+
head?: never;
|
|
51946
|
+
/**
|
|
51947
|
+
* Switch the crawler guard on or off for one site.
|
|
51948
|
+
* @description `enabled: false` switches the guard off for this site: our rule is taken off the site as a background job (only ours; a rule written by hand is left as it is) and the guard never acts on the site again until it is switched back on. `enabled: true` lets it act again. Every change is audit-logged with who made it. Answers `202` with the new state. Requires `sites.view` and `sites.panel_access`.
|
|
51949
|
+
*/
|
|
51950
|
+
patch: operations["updateSiteBotThrottle"];
|
|
51951
|
+
trace?: never;
|
|
51952
|
+
};
|
|
51924
51953
|
"/v1/sites/{siteId}/build-env": {
|
|
51925
51954
|
parameters: {
|
|
51926
51955
|
query?: never;
|
|
@@ -89335,6 +89364,8 @@ export interface components {
|
|
|
89335
89364
|
* @description Sites created into this pool per day over the trailing 30 days. The window is the denominator, not the span between the first and last arrival.
|
|
89336
89365
|
*/
|
|
89337
89366
|
arrivals_per_day: number;
|
|
89367
|
+
/** @description Whether this policy may buy a server by itself: the owner's switch AND a real server template. False on every pool (owner decision 2026-11-16, P6b-003): a pool short of room raises an urgent alert with what to do and adds nothing. */
|
|
89368
|
+
auto_add_hosts: boolean;
|
|
89338
89369
|
/** @description Sites a new box may hold. 0 refuses to act - placement cannot see a box with no capacity. */
|
|
89339
89370
|
capacity: number;
|
|
89340
89371
|
/** @description Whether a policy row exists for this pool. */
|
|
@@ -89376,7 +89407,7 @@ export interface components {
|
|
|
89376
89407
|
placeable_hosts: number;
|
|
89377
89408
|
pool: string;
|
|
89378
89409
|
product_lines: string[];
|
|
89379
|
-
/** @description
|
|
89410
|
+
/** @description The floor the scale-out sweep applies: ceil(provisioning lead days x the higher of the 30-day and 7-day arrivals per day). Derived from real site history, never typed. */
|
|
89380
89411
|
recommended_min_free_slots: number;
|
|
89381
89412
|
region: string;
|
|
89382
89413
|
/** @description The size automatic scale-out buys, e.g. `cx33`. Blank = Terraform's default. Present so the unattended sweep, the one-click button and the full add-server form all build the SAME box — a size on some of those paths and not others leaves the unattended one quietly buying the default for ever, and that is the path nobody watches. */
|
|
@@ -108325,6 +108356,33 @@ export interface components {
|
|
|
108325
108356
|
name?: string;
|
|
108326
108357
|
notes?: string;
|
|
108327
108358
|
};
|
|
108359
|
+
SiteBotThrottle: {
|
|
108360
|
+
active: components["schemas"]["SiteBotThrottleActive"] | null;
|
|
108361
|
+
/** @description The customer's stored preference. */
|
|
108362
|
+
enabled: boolean;
|
|
108363
|
+
/** @description The link shapes covered, e.g. `?add-to-cart=`. */
|
|
108364
|
+
links: string[];
|
|
108365
|
+
/** @description Whether the guard protects this site at all. False = the preference is saved and takes effect if the site is later included, but nothing protects the site now. */
|
|
108366
|
+
protection_active: boolean;
|
|
108367
|
+
/** Format: uuid */
|
|
108368
|
+
site_id: string;
|
|
108369
|
+
/** Format: date-time */
|
|
108370
|
+
updated_at: string | null;
|
|
108371
|
+
/** @description Who last changed the switch; empty if never. */
|
|
108372
|
+
updated_by: string;
|
|
108373
|
+
};
|
|
108374
|
+
SiteBotThrottleActive: {
|
|
108375
|
+
/** @description Our rule is on the site now. */
|
|
108376
|
+
applied: boolean;
|
|
108377
|
+
/** Format: date-time */
|
|
108378
|
+
hold_until: string;
|
|
108379
|
+
refused_count: number;
|
|
108380
|
+
/** Format: date-time */
|
|
108381
|
+
started_at: string;
|
|
108382
|
+
};
|
|
108383
|
+
SiteBotThrottleUpdate: {
|
|
108384
|
+
enabled: boolean;
|
|
108385
|
+
};
|
|
108328
108386
|
/**
|
|
108329
108387
|
* @description One "describe a site and we build it" run.
|
|
108330
108388
|
*
|
|
@@ -208794,6 +208852,67 @@ export interface operations {
|
|
|
208794
208852
|
503: components["responses"]["ServiceUnavailable"];
|
|
208795
208853
|
};
|
|
208796
208854
|
};
|
|
208855
|
+
getSiteBotThrottle: {
|
|
208856
|
+
parameters: {
|
|
208857
|
+
query?: never;
|
|
208858
|
+
header?: never;
|
|
208859
|
+
path: {
|
|
208860
|
+
/** @description Site ID (UUIDv7). */
|
|
208861
|
+
siteId: components["parameters"]["SiteId"];
|
|
208862
|
+
};
|
|
208863
|
+
cookie?: never;
|
|
208864
|
+
};
|
|
208865
|
+
requestBody?: never;
|
|
208866
|
+
responses: {
|
|
208867
|
+
/** @description The site's crawler guard. */
|
|
208868
|
+
200: {
|
|
208869
|
+
headers: {
|
|
208870
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
208871
|
+
[name: string]: unknown;
|
|
208872
|
+
};
|
|
208873
|
+
content: {
|
|
208874
|
+
"application/json": components["schemas"]["SiteBotThrottle"];
|
|
208875
|
+
};
|
|
208876
|
+
};
|
|
208877
|
+
401: components["responses"]["Unauthorized"];
|
|
208878
|
+
403: components["responses"]["Forbidden"];
|
|
208879
|
+
404: components["responses"]["NotFound"];
|
|
208880
|
+
429: components["responses"]["TooManyRequests"];
|
|
208881
|
+
};
|
|
208882
|
+
};
|
|
208883
|
+
updateSiteBotThrottle: {
|
|
208884
|
+
parameters: {
|
|
208885
|
+
query?: never;
|
|
208886
|
+
header?: never;
|
|
208887
|
+
path: {
|
|
208888
|
+
/** @description Site ID (UUIDv7). */
|
|
208889
|
+
siteId: components["parameters"]["SiteId"];
|
|
208890
|
+
};
|
|
208891
|
+
cookie?: never;
|
|
208892
|
+
};
|
|
208893
|
+
requestBody: {
|
|
208894
|
+
content: {
|
|
208895
|
+
"application/json": components["schemas"]["SiteBotThrottleUpdate"];
|
|
208896
|
+
};
|
|
208897
|
+
};
|
|
208898
|
+
responses: {
|
|
208899
|
+
/** @description Saved; our rule is being put on or taken off the site. */
|
|
208900
|
+
202: {
|
|
208901
|
+
headers: {
|
|
208902
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
208903
|
+
[name: string]: unknown;
|
|
208904
|
+
};
|
|
208905
|
+
content: {
|
|
208906
|
+
"application/json": components["schemas"]["SiteBotThrottle"];
|
|
208907
|
+
};
|
|
208908
|
+
};
|
|
208909
|
+
401: components["responses"]["Unauthorized"];
|
|
208910
|
+
403: components["responses"]["Forbidden"];
|
|
208911
|
+
404: components["responses"]["NotFound"];
|
|
208912
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
208913
|
+
429: components["responses"]["TooManyRequests"];
|
|
208914
|
+
};
|
|
208915
|
+
};
|
|
208797
208916
|
getSiteBuildEnv: {
|
|
208798
208917
|
parameters: {
|
|
208799
208918
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1888",
|
|
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>",
|