@zinn-digital/sdk 0.1.1971 → 0.1.1973
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 +202 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -82317,7 +82367,8 @@ export interface components {
|
|
|
82317
82367
|
billing_country?: string | null;
|
|
82318
82368
|
/**
|
|
82319
82369
|
* Format: int64
|
|
82320
|
-
* @description The order total the checkout page **displayed to the customer**, in minor units
|
|
82370
|
+
* @description The order total the checkout page **displayed to the customer**, in minor units, tax included (`POST /v1/pricing/tax-quote` `{cart_id}` → `gross_total_minor`). Checkout refuses with `422` when the basket no longer comes to that figure.
|
|
82371
|
+
* ⛔ **Becoming required** (CHKFIX-A, 2026-11-22). While the engine setting `CHECKOUT_REQUIRE_EXPECTED_TOTAL` is off (the default) a request without it is accepted, logged and counted in `checkout_expected_total_missing_total{endpoint}`. Once it is on, a request without it is refused `400` with `details[0].field = expected_total_minor` and `details[0].code = EXPECTED_TOTAL_REQUIRED` (key `refusal.commerce.expectedTotalRequired`) before anything is placed. A sent value that differs is refused `422 TOTAL_CHANGED` in both states. Every client should send it now.
|
|
82321
82372
|
*
|
|
82322
82373
|
* The basket is re-priced at the moment of placement — deliberately, because a basket that quotes last week's price and charges it is a dispute — so a page left open while a price **rises** would otherwise charge a total the customer never saw. The refusal happens **before the order row is created**, so nothing is placed, nothing is charged and there is nothing to reconcile: the client reloads the basket and shows the new figure.
|
|
82323
82374
|
* The refusal is `422` with `details[0].field = expected_total_minor` and `details[0].code = TOTAL_CHANGED` (key `refusal.commerce.totalChanged`). A hosting/SEO coupon in the basket that stopped applying (docs/1311: a cap reached, an expiry, a deactivation) is refused whether or not this field is sent — `details[0].field = promo_code` — so the order is never placed at the full price silently.
|
|
@@ -92286,6 +92337,47 @@ export interface components {
|
|
|
92286
92337
|
slug: string;
|
|
92287
92338
|
}[];
|
|
92288
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
|
+
};
|
|
92289
92381
|
KnownFix: {
|
|
92290
92382
|
/** Format: date-time */
|
|
92291
92383
|
fixed_at: string;
|
|
@@ -103856,6 +103948,7 @@ export interface components {
|
|
|
103856
103948
|
/**
|
|
103857
103949
|
* Format: int64
|
|
103858
103950
|
* @description The order total (tax included, minor units) the checkout page displayed. When sent and the placed order would total anything else, checkout refuses `422` with `details[0].code = TOTAL_CHANGED` before any order is placed, and nothing is charged: the visitor is shown the new total and confirms again (docs/1311).
|
|
103951
|
+
* ⛔ **Becoming required** (CHKFIX-A, 2026-11-22). While the engine setting `CHECKOUT_REQUIRE_EXPECTED_TOTAL` is off (the default) a request without it is accepted, logged and counted in `checkout_expected_total_missing_total{endpoint}`. Once it is on, a request without it is refused `400` with `details[0].field = expected_total_minor` and `details[0].code = EXPECTED_TOTAL_REQUIRED` (key `refusal.commerce.expectedTotalRequired`) before anything is placed. A sent value that differs is refused `422 TOTAL_CHANGED` in both states. Every client should send it now.
|
|
103859
103952
|
* @example 7999
|
|
103860
103953
|
*/
|
|
103861
103954
|
expected_total_minor?: number | null;
|
|
@@ -104047,6 +104140,14 @@ export interface components {
|
|
|
104047
104140
|
/** @example nuremberg */
|
|
104048
104141
|
slug: string;
|
|
104049
104142
|
};
|
|
104143
|
+
PublicKeywordCheckAvailability: {
|
|
104144
|
+
/** @description The markets offered, as lower-case ISO 3166-1 alpha-2 codes. */
|
|
104145
|
+
countries: string[];
|
|
104146
|
+
/** @description Whether a check can be made right now. */
|
|
104147
|
+
enabled: boolean;
|
|
104148
|
+
/** @description How many keywords one check may name. */
|
|
104149
|
+
max_keywords: number;
|
|
104150
|
+
};
|
|
104050
104151
|
PublicMessageCatalogue: {
|
|
104051
104152
|
locale: components["schemas"]["LocaleCode"];
|
|
104052
104153
|
/**
|
|
@@ -171203,6 +171304,15 @@ export interface operations {
|
|
|
171203
171304
|
"application/json": components["schemas"]["Order"];
|
|
171204
171305
|
};
|
|
171205
171306
|
};
|
|
171307
|
+
/** @description The request is malformed. Includes (`error.details[0].code` `EXPECTED_TOTAL_REQUIRED`, `field: expected_total_minor`, CHKFIX-A) a checkout that did not send the total the customer was shown, once the engine setting `CHECKOUT_REQUIRE_EXPECTED_TOTAL` is on; the keyed message (`refusal.commerce.expectedTotalRequired`) asks the customer to reload. Nothing was placed and nothing was charged. */
|
|
171308
|
+
400: {
|
|
171309
|
+
headers: {
|
|
171310
|
+
[name: string]: unknown;
|
|
171311
|
+
};
|
|
171312
|
+
content: {
|
|
171313
|
+
"application/json": components["schemas"]["Error"];
|
|
171314
|
+
};
|
|
171315
|
+
};
|
|
171206
171316
|
401: components["responses"]["Unauthorized"];
|
|
171207
171317
|
403: components["responses"]["Forbidden"];
|
|
171208
171318
|
404: components["responses"]["NotFound"];
|
|
@@ -200652,6 +200762,15 @@ export interface operations {
|
|
|
200652
200762
|
"application/json": components["schemas"]["PublicCheckoutResult"];
|
|
200653
200763
|
};
|
|
200654
200764
|
};
|
|
200765
|
+
/** @description The request is malformed. Includes (`error.details[0].code` `EXPECTED_TOTAL_REQUIRED`, `field: expected_total_minor`, CHKFIX-A) a checkout that did not send the total the customer was shown, once the engine setting `CHECKOUT_REQUIRE_EXPECTED_TOTAL` is on; the keyed message (`refusal.commerce.expectedTotalRequired`) asks the customer to reload. Nothing was placed and nothing was charged. */
|
|
200766
|
+
400: {
|
|
200767
|
+
headers: {
|
|
200768
|
+
[name: string]: unknown;
|
|
200769
|
+
};
|
|
200770
|
+
content: {
|
|
200771
|
+
"application/json": components["schemas"]["Error"];
|
|
200772
|
+
};
|
|
200773
|
+
};
|
|
200655
200774
|
/** @description The buyer's e-mail address is refused (`SIGNUP_EMAIL_REFUSED`, docs/1174): a disposable, invalid or spam-trap address. Nothing was created and the basket stays. For a likely typo in the domain, `details[0]` is `{field: email, code: EMAIL_POSSIBLE_TYPO, suggestion}`: `suggestion` is the same address on the domain the validator suggested ("ann@gmail.com" for "ann@gamil.com"), which the page offers as a one-click fix before the buyer submits again (EMAILTYPO). */
|
|
200656
200775
|
403: {
|
|
200657
200776
|
headers: {
|
|
@@ -201715,6 +201834,55 @@ export interface operations {
|
|
|
201715
201834
|
429: components["responses"]["TooManyRequests"];
|
|
201716
201835
|
};
|
|
201717
201836
|
};
|
|
201837
|
+
getPublicKeywordCheckAvailability: {
|
|
201838
|
+
parameters: {
|
|
201839
|
+
query?: never;
|
|
201840
|
+
header?: never;
|
|
201841
|
+
path?: never;
|
|
201842
|
+
cookie?: never;
|
|
201843
|
+
};
|
|
201844
|
+
requestBody?: never;
|
|
201845
|
+
responses: {
|
|
201846
|
+
/** @description The switch, the keyword limit and the markets offered. */
|
|
201847
|
+
200: {
|
|
201848
|
+
headers: {
|
|
201849
|
+
[name: string]: unknown;
|
|
201850
|
+
};
|
|
201851
|
+
content: {
|
|
201852
|
+
"application/json": components["schemas"]["PublicKeywordCheckAvailability"];
|
|
201853
|
+
};
|
|
201854
|
+
};
|
|
201855
|
+
429: components["responses"]["TooManyRequests"];
|
|
201856
|
+
};
|
|
201857
|
+
};
|
|
201858
|
+
startPublicKeywordCheck: {
|
|
201859
|
+
parameters: {
|
|
201860
|
+
query?: never;
|
|
201861
|
+
header?: never;
|
|
201862
|
+
path?: never;
|
|
201863
|
+
cookie?: never;
|
|
201864
|
+
};
|
|
201865
|
+
requestBody: {
|
|
201866
|
+
content: {
|
|
201867
|
+
"application/json": components["schemas"]["KeywordCheckCreate"];
|
|
201868
|
+
};
|
|
201869
|
+
};
|
|
201870
|
+
responses: {
|
|
201871
|
+
/** @description Each keyword's type and the package that fits. */
|
|
201872
|
+
200: {
|
|
201873
|
+
headers: {
|
|
201874
|
+
[name: string]: unknown;
|
|
201875
|
+
};
|
|
201876
|
+
content: {
|
|
201877
|
+
"application/json": components["schemas"]["KeywordCheck"];
|
|
201878
|
+
};
|
|
201879
|
+
};
|
|
201880
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
201881
|
+
404: components["responses"]["NotFound"];
|
|
201882
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201883
|
+
429: components["responses"]["TooManyRequests"];
|
|
201884
|
+
};
|
|
201885
|
+
};
|
|
201718
201886
|
confirmZinnNews: {
|
|
201719
201887
|
parameters: {
|
|
201720
201888
|
query?: never;
|
|
@@ -208204,6 +208372,39 @@ export interface operations {
|
|
|
208204
208372
|
422: components["responses"]["UnprocessableEntity"];
|
|
208205
208373
|
};
|
|
208206
208374
|
};
|
|
208375
|
+
startKeywordCheck: {
|
|
208376
|
+
parameters: {
|
|
208377
|
+
query?: {
|
|
208378
|
+
/** @description The organisation to act for, when the caller belongs to more than one. */
|
|
208379
|
+
org_id?: string;
|
|
208380
|
+
};
|
|
208381
|
+
header?: never;
|
|
208382
|
+
path?: never;
|
|
208383
|
+
cookie?: never;
|
|
208384
|
+
};
|
|
208385
|
+
requestBody: {
|
|
208386
|
+
content: {
|
|
208387
|
+
"application/json": components["schemas"]["KeywordCheckCreate"];
|
|
208388
|
+
};
|
|
208389
|
+
};
|
|
208390
|
+
responses: {
|
|
208391
|
+
/** @description Each keyword's type and the package that fits. */
|
|
208392
|
+
200: {
|
|
208393
|
+
headers: {
|
|
208394
|
+
[name: string]: unknown;
|
|
208395
|
+
};
|
|
208396
|
+
content: {
|
|
208397
|
+
"application/json": components["schemas"]["KeywordCheck"];
|
|
208398
|
+
};
|
|
208399
|
+
};
|
|
208400
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
208401
|
+
401: components["responses"]["Unauthorized"];
|
|
208402
|
+
403: components["responses"]["Forbidden"];
|
|
208403
|
+
404: components["responses"]["NotFound"];
|
|
208404
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
208405
|
+
429: components["responses"]["TooManyRequests"];
|
|
208406
|
+
};
|
|
208407
|
+
};
|
|
208207
208408
|
listSeoProviders: {
|
|
208208
208409
|
parameters: {
|
|
208209
208410
|
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.1973",
|
|
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>",
|