@zinn-digital/sdk 0.1.1972 → 0.1.1974

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.
@@ -28639,6 +28639,8 @@ export interface paths {
28639
28639
  *
28640
28640
  * This is the endpoint the dashboard reads to offer email on an external domain. The purchase path is unchanged: `POST /v1/carts` → `POST /v1/carts/{cartId}/lines` with `{kind: hosting_plan, plan_version_id, metadata: {interval}}` → checkout.
28641
28641
  *
28642
+ * The plans on the `seo_services` line are omitted while the staff launch switch `seo_services_sale` ("SEO services open for sale") is off for the caller's organisation (it ships off), and naming the line in `product_line` then yields an empty list. Adding one of those plans to a cart, or checking one out, is refused with the refusal key `refusal.certificates.sale` while the switch is off.
28643
+ *
28642
28644
  * ⛔ The in-app-only exclusion on the public endpoint is applied **even when `product_line` names the hidden line** — naming a thing is not authorisation to see it, and that parameter arrives from an untrusted query string.
28643
28645
  *
28644
28646
  * **A reseller's client is quoted the reseller's prices** — the reseller's own price for the plan where they set one, otherwise list plus their default markup — which is exactly what the cart charges. The public `listCatalogPlans` never does this: it is anonymous and shared-cached. The dashboard's checkout reads this endpoint for that reason.
@@ -28665,6 +28667,8 @@ export interface paths {
28665
28667
  *
28666
28668
  * ⚖️ **Owner ruling, 2026-08-16:** email is not a product we sell. It is free with every domain registered with us or transferred in. Email for a domain registered *somewhere else* stays purchasable *"only form inside the app"* and is not promoted on the frontend, so the `mail` line is served here and **not** by `listProductLines`.
28667
28669
  *
28670
+ * The `seo_services` line is omitted while the staff launch switch `seo_services_sale` ("SEO services open for sale") is off for the caller's organisation. It ships off.
28671
+ *
28668
28672
  * Requires authentication and nothing else — every signed-in customer sees the same catalogue, so there is no org to scope to and no permission to require. Responses are `Cache-Control: private, no-store`: the body varies by whether the caller is signed in, and a shared cache in front of it would hand the in-app catalogue to the next anonymous visitor.
28669
28673
  */
28670
28674
  get: operations["listInAppProductLines"];
@@ -47086,6 +47090,32 @@ export interface paths {
47086
47090
  patch?: never;
47087
47091
  trace?: never;
47088
47092
  };
47093
+ "/v1/public/keyword-checks": {
47094
+ parameters: {
47095
+ query?: never;
47096
+ header?: never;
47097
+ path?: never;
47098
+ cookie?: never;
47099
+ };
47100
+ /**
47101
+ * Whether the free keyword difficulty checker is switched on.
47102
+ * @description **Anonymous.** The checker follows the SEO services sale switch, which is **off by default**. This read answers in both states, so the page can decide whether to show the form: while `enabled` is `false` the check below answers `404`.
47103
+ */
47104
+ get: operations["getPublicKeywordCheckAvailability"];
47105
+ put?: never;
47106
+ /**
47107
+ * Check how hard up to five keywords are to rank for, and which package fits.
47108
+ * @description **Anonymous.** Answers each keyword's type (`easy` 0-39, `medium` 40-69, `hard` 70+, measured on Google in the chosen country) and the cheapest SEO package the mix fits. Three checks a day per visitor; repeats are answered from a 30-day cache. A keyword we could not measure (the daily ceiling, or no supplier) comes back with `type: null` and `partial: true`, never a guessed type.
47109
+ *
47110
+ * **Off by default.** While the SEO services sale switch is off this answers `404` and charges no budget; see `GET /v1/public/keyword-checks`.
47111
+ */
47112
+ post: operations["startPublicKeywordCheck"];
47113
+ delete?: never;
47114
+ options?: never;
47115
+ head?: never;
47116
+ patch?: never;
47117
+ trace?: never;
47118
+ };
47089
47119
  "/v1/public/news/confirm": {
47090
47120
  parameters: {
47091
47121
  query?: never;
@@ -51039,6 +51069,26 @@ export interface paths {
51039
51069
  patch?: never;
51040
51070
  trace?: never;
51041
51071
  };
51072
+ "/v1/seo/keyword-checks": {
51073
+ parameters: {
51074
+ query?: never;
51075
+ header?: never;
51076
+ path?: never;
51077
+ cookie?: never;
51078
+ };
51079
+ get?: never;
51080
+ put?: never;
51081
+ /**
51082
+ * The signed-in keyword difficulty check (ten a day per organisation).
51083
+ * @description The same answer as `POST /v1/public/keyword-checks`, for a signed-in organisation, with a larger daily allowance. An organisation that is not in good standing is answered from the cache only (`refused: not_in_good_standing`). `404` while the SEO services sale is not open to this organisation.
51084
+ */
51085
+ post: operations["startKeywordCheck"];
51086
+ delete?: never;
51087
+ options?: never;
51088
+ head?: never;
51089
+ patch?: never;
51090
+ trace?: never;
51091
+ };
51042
51092
  "/v1/seo/providers": {
51043
51093
  parameters: {
51044
51094
  query?: never;
@@ -64113,10 +64163,10 @@ export interface components {
64113
64163
  deploy_target: string;
64114
64164
  id: components["schemas"]["Uuid"];
64115
64165
  /**
64116
- * @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46).
64166
+ * @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46). SERVERWATCH: `zinn_watch` / `zinn_watch_paused` = Server Watch held, paid / not in good standing.
64117
64167
  * @enum {string}
64118
64168
  */
64119
- management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
64169
+ management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
64120
64170
  name: string;
64121
64171
  org_id: components["schemas"]["Uuid"];
64122
64172
  plan_code: string;
@@ -65635,7 +65685,7 @@ export interface components {
65635
65685
  /** Format: date-time */
65636
65686
  last_report_at: string | null;
65637
65687
  /** @enum {string} */
65638
- management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused";
65688
+ management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
65639
65689
  name: string;
65640
65690
  /** Format: uuid */
65641
65691
  org_id: string;
@@ -83997,10 +84047,10 @@ export interface components {
83997
84047
  */
83998
84048
  management: "panel" | "bare";
83999
84049
  /**
84000
- * @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46).
84050
+ * @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46). SERVERWATCH: `zinn_watch` / `zinn_watch_paused` = Server Watch held, paid / not in good standing.
84001
84051
  * @enum {string}
84002
84052
  */
84003
- management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
84053
+ management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
84004
84054
  /** @description Why the order failed, as an English sentence for staff, support and SDK readers. Blank unless `failed`. A client renders `message_code` instead when it is set. */
84005
84055
  message: string;
84006
84056
  /**
@@ -92287,6 +92337,47 @@ export interface components {
92287
92337
  slug: string;
92288
92338
  }[];
92289
92339
  };
92340
+ KeywordCheck: {
92341
+ country: string;
92342
+ keywords: {
92343
+ keyword: string;
92344
+ /** @description The 0-100 difficulty, or null when it was not measured. */
92345
+ score: number | null;
92346
+ /** @enum {string|null} */
92347
+ type: "easy" | "medium" | "hard" | null;
92348
+ }[];
92349
+ /** @description True when the mix is larger than the largest package. */
92350
+ over_largest: boolean;
92351
+ /** @description The cheapest package the measured keywords fit, or null. */
92352
+ package: null | {
92353
+ casino: boolean;
92354
+ code: string;
92355
+ currency: string;
92356
+ max_keywords: number;
92357
+ /** @description The monthly list price in minor units of `currency`. */
92358
+ monthly_minor: number;
92359
+ name: string;
92360
+ };
92361
+ /** @description True when at least one keyword was not measured. */
92362
+ partial: boolean;
92363
+ /** @enum {string|null} */
92364
+ refused: "daily_cap" | "not_in_good_standing" | "supplier_unavailable" | null;
92365
+ };
92366
+ KeywordCheckCreate: {
92367
+ /**
92368
+ * @description Price the casino twin of the package.
92369
+ * @default false
92370
+ */
92371
+ casino: boolean;
92372
+ /**
92373
+ * @description One of `countries` from the availability read.
92374
+ * @default us
92375
+ */
92376
+ country: string;
92377
+ /** @description The bot-check token from the page, when the check is enforced. */
92378
+ human_token?: string;
92379
+ keywords: string[];
92380
+ };
92290
92381
  KnownFix: {
92291
92382
  /** Format: date-time */
92292
92383
  fixed_at: string;
@@ -93903,8 +93994,13 @@ export interface components {
93903
93994
  ManagedCareState: {
93904
93995
  care: components["schemas"]["ComputeAddOnAssignment"] | null;
93905
93996
  connection: components["schemas"]["ManagedCareConnection"];
93906
- /** @enum {string} */
93907
- management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused";
93997
+ /** @description SERVERWATCH: backup storage in GB this machine's add-ons include right now (50 while Server Watch is held AND paid, 0 when paused or not held). Read from the catalogue row (`included_backup_gb`), never typed. Storage above it follows the machine's backup storage price. */
93998
+ included_backup_gb: number;
93999
+ /**
94000
+ * @description `zinn_watch` = Server Watch held and paid (we watch the machine and tell the customer when it goes silent; no patching, no on-call). `zinn_watch_paused` = held while the account is not in good standing (e.g. a trial that ended unpaid): notices and the backup allowance stop, nothing is removed, paying restores it.
94001
+ * @enum {string}
94002
+ */
94003
+ management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
93908
94004
  offer: {
93909
94005
  code: string;
93910
94006
  currency: string;
@@ -93912,6 +94008,15 @@ export interface components {
93912
94008
  /** @description Live price in minor units; null when not sold in this currency. */
93913
94009
  price_minor: number | null;
93914
94010
  };
94011
+ /** @description SERVERWATCH: the Server Watch add-on as offered for this machine — the LIVE `watch` catalogue row in the billed currency. `orderable` is false while it is off sale (`enabled=false`) or not priced in that currency; buy it with `buyComputeServerAddOn` (`code: watch`). */
94012
+ watch_offer: {
94013
+ code: string;
94014
+ currency: string;
94015
+ included_backup_gb: number;
94016
+ orderable: boolean;
94017
+ /** @description Live price in minor units; null when not orderable. */
94018
+ price_minor: number | null;
94019
+ };
93915
94020
  };
93916
94021
  /** @description One standalone managed database. ⛔ Carries no password — the credential is fetched from `POST /v1/databases/{databaseId}/credentials` and is never a field here. */
93917
94022
  ManagedDatabase: {
@@ -103913,6 +104018,8 @@ export interface components {
103913
104018
  applies_at: string;
103914
104019
  /** @description Stable key (`managed` is managed server care, `cloudlinux`, `plesk_web_pro` …). */
103915
104020
  code: string;
104021
+ /** @description Backup storage in GB the add-on includes on the machine holding it (`watch`, Server Watch: 50), read from the catalogue row; 0 when it includes none. */
104022
+ included_backup_gb: number;
103916
104023
  is_free: boolean;
103917
104024
  /** @description The add-on family (`managed`, `software`, …). */
103918
104025
  kind: string;
@@ -104049,6 +104156,14 @@ export interface components {
104049
104156
  /** @example nuremberg */
104050
104157
  slug: string;
104051
104158
  };
104159
+ PublicKeywordCheckAvailability: {
104160
+ /** @description The markets offered, as lower-case ISO 3166-1 alpha-2 codes. */
104161
+ countries: string[];
104162
+ /** @description Whether a check can be made right now. */
104163
+ enabled: boolean;
104164
+ /** @description How many keywords one check may name. */
104165
+ max_keywords: number;
104166
+ };
104052
104167
  PublicMessageCatalogue: {
104053
104168
  locale: components["schemas"]["LocaleCode"];
104054
104169
  /**
@@ -129469,8 +129584,8 @@ export interface operations {
129469
129584
  deploy_target?: string;
129470
129585
  /** @description Maximum items to return (page size). */
129471
129586
  limit?: components["parameters"]["Limit"];
129472
- /** @description SERVERCARE-r1 — the care roster: `zinn_managed` and `zinn_managed_paused` both return machines holding the care add-on (the row's `management_mode` says which), and `self_managed` the rest. Anything else is `422 refusal.compute.unknownManagementMode`. */
129473
- management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
129587
+ /** @description SERVERCARE-r1 — the care roster: `zinn_managed` and `zinn_managed_paused` both return machines holding the care add-on (the row's `management_mode` says which), and `self_managed` the rest. SERVERWATCH: `zinn_watch` and `zinn_watch_paused` return the machines holding Server Watch the same way. Anything else is `422 refusal.compute.unknownManagementMode`. */
129588
+ management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
129474
129589
  /** @description Narrow to one customer — the usual path in from an abuse report. */
129475
129590
  org_id?: components["schemas"]["Uuid"];
129476
129591
  /** @description Only suspended machines, only unsuspended, or all. */
@@ -201735,6 +201850,55 @@ export interface operations {
201735
201850
  429: components["responses"]["TooManyRequests"];
201736
201851
  };
201737
201852
  };
201853
+ getPublicKeywordCheckAvailability: {
201854
+ parameters: {
201855
+ query?: never;
201856
+ header?: never;
201857
+ path?: never;
201858
+ cookie?: never;
201859
+ };
201860
+ requestBody?: never;
201861
+ responses: {
201862
+ /** @description The switch, the keyword limit and the markets offered. */
201863
+ 200: {
201864
+ headers: {
201865
+ [name: string]: unknown;
201866
+ };
201867
+ content: {
201868
+ "application/json": components["schemas"]["PublicKeywordCheckAvailability"];
201869
+ };
201870
+ };
201871
+ 429: components["responses"]["TooManyRequests"];
201872
+ };
201873
+ };
201874
+ startPublicKeywordCheck: {
201875
+ parameters: {
201876
+ query?: never;
201877
+ header?: never;
201878
+ path?: never;
201879
+ cookie?: never;
201880
+ };
201881
+ requestBody: {
201882
+ content: {
201883
+ "application/json": components["schemas"]["KeywordCheckCreate"];
201884
+ };
201885
+ };
201886
+ responses: {
201887
+ /** @description Each keyword's type and the package that fits. */
201888
+ 200: {
201889
+ headers: {
201890
+ [name: string]: unknown;
201891
+ };
201892
+ content: {
201893
+ "application/json": components["schemas"]["KeywordCheck"];
201894
+ };
201895
+ };
201896
+ 400: components["responses"]["UnprocessableEntity"];
201897
+ 404: components["responses"]["NotFound"];
201898
+ 422: components["responses"]["UnprocessableEntity"];
201899
+ 429: components["responses"]["TooManyRequests"];
201900
+ };
201901
+ };
201738
201902
  confirmZinnNews: {
201739
201903
  parameters: {
201740
201904
  query?: never;
@@ -208224,6 +208388,39 @@ export interface operations {
208224
208388
  422: components["responses"]["UnprocessableEntity"];
208225
208389
  };
208226
208390
  };
208391
+ startKeywordCheck: {
208392
+ parameters: {
208393
+ query?: {
208394
+ /** @description The organisation to act for, when the caller belongs to more than one. */
208395
+ org_id?: string;
208396
+ };
208397
+ header?: never;
208398
+ path?: never;
208399
+ cookie?: never;
208400
+ };
208401
+ requestBody: {
208402
+ content: {
208403
+ "application/json": components["schemas"]["KeywordCheckCreate"];
208404
+ };
208405
+ };
208406
+ responses: {
208407
+ /** @description Each keyword's type and the package that fits. */
208408
+ 200: {
208409
+ headers: {
208410
+ [name: string]: unknown;
208411
+ };
208412
+ content: {
208413
+ "application/json": components["schemas"]["KeywordCheck"];
208414
+ };
208415
+ };
208416
+ 400: components["responses"]["UnprocessableEntity"];
208417
+ 401: components["responses"]["Unauthorized"];
208418
+ 403: components["responses"]["Forbidden"];
208419
+ 404: components["responses"]["NotFound"];
208420
+ 422: components["responses"]["UnprocessableEntity"];
208421
+ 429: components["responses"]["TooManyRequests"];
208422
+ };
208423
+ };
208227
208424
  listSeoProviders: {
208228
208425
  parameters: {
208229
208426
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1972",
3
+ "version": "0.1.1974",
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>",