@zinn-digital/sdk 0.1.1886 → 0.1.1889

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.
@@ -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
  *
@@ -198475,7 +198531,15 @@ export interface operations {
198475
198531
  "application/json": components["schemas"]["PresalesAnswer"];
198476
198532
  };
198477
198533
  };
198478
- 422: components["responses"]["UnprocessableEntity"];
198534
+ /** @description The request failed validation, or the model declined to answer THIS question (`error.code` = `PRESALES_DECLINED`). ⛔ A decline is not an outage: the site says plainly it cannot help with that one and invites another question; it is never rendered as Ask Zinn® being down. */
198535
+ 422: {
198536
+ headers: {
198537
+ [name: string]: unknown;
198538
+ };
198539
+ content: {
198540
+ "application/json": components["schemas"]["Error"];
198541
+ };
198542
+ };
198479
198543
  429: components["responses"]["TooManyRequests"];
198480
198544
  /** @description Ask Zinn® is switched off, or could not answer at all. ⛔ Distinct from a `200` carrying `grounded: false`: that is the assistant working and being honest; this is the assistant unavailable. `error_code` says which. */
198481
198545
  503: {
@@ -208796,6 +208860,67 @@ export interface operations {
208796
208860
  503: components["responses"]["ServiceUnavailable"];
208797
208861
  };
208798
208862
  };
208863
+ getSiteBotThrottle: {
208864
+ parameters: {
208865
+ query?: never;
208866
+ header?: never;
208867
+ path: {
208868
+ /** @description Site ID (UUIDv7). */
208869
+ siteId: components["parameters"]["SiteId"];
208870
+ };
208871
+ cookie?: never;
208872
+ };
208873
+ requestBody?: never;
208874
+ responses: {
208875
+ /** @description The site's crawler guard. */
208876
+ 200: {
208877
+ headers: {
208878
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
208879
+ [name: string]: unknown;
208880
+ };
208881
+ content: {
208882
+ "application/json": components["schemas"]["SiteBotThrottle"];
208883
+ };
208884
+ };
208885
+ 401: components["responses"]["Unauthorized"];
208886
+ 403: components["responses"]["Forbidden"];
208887
+ 404: components["responses"]["NotFound"];
208888
+ 429: components["responses"]["TooManyRequests"];
208889
+ };
208890
+ };
208891
+ updateSiteBotThrottle: {
208892
+ parameters: {
208893
+ query?: never;
208894
+ header?: never;
208895
+ path: {
208896
+ /** @description Site ID (UUIDv7). */
208897
+ siteId: components["parameters"]["SiteId"];
208898
+ };
208899
+ cookie?: never;
208900
+ };
208901
+ requestBody: {
208902
+ content: {
208903
+ "application/json": components["schemas"]["SiteBotThrottleUpdate"];
208904
+ };
208905
+ };
208906
+ responses: {
208907
+ /** @description Saved; our rule is being put on or taken off the site. */
208908
+ 202: {
208909
+ headers: {
208910
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
208911
+ [name: string]: unknown;
208912
+ };
208913
+ content: {
208914
+ "application/json": components["schemas"]["SiteBotThrottle"];
208915
+ };
208916
+ };
208917
+ 401: components["responses"]["Unauthorized"];
208918
+ 403: components["responses"]["Forbidden"];
208919
+ 404: components["responses"]["NotFound"];
208920
+ 422: components["responses"]["UnprocessableEntity"];
208921
+ 429: components["responses"]["TooManyRequests"];
208922
+ };
208923
+ };
208799
208924
  getSiteBuildEnv: {
208800
208925
  parameters: {
208801
208926
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1886",
3
+ "version": "0.1.1889",
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>",