@zinn-digital/sdk 0.1.1886 → 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 +117 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -108327,6 +108356,33 @@ export interface components {
|
|
|
108327
108356
|
name?: string;
|
|
108328
108357
|
notes?: string;
|
|
108329
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
|
+
};
|
|
108330
108386
|
/**
|
|
108331
108387
|
* @description One "describe a site and we build it" run.
|
|
108332
108388
|
*
|
|
@@ -208796,6 +208852,67 @@ export interface operations {
|
|
|
208796
208852
|
503: components["responses"]["ServiceUnavailable"];
|
|
208797
208853
|
};
|
|
208798
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
|
+
};
|
|
208799
208916
|
getSiteBuildEnv: {
|
|
208800
208917
|
parameters: {
|
|
208801
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>",
|