@zinn-digital/sdk 0.1.1972 → 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 +181 -0
- 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;
|
|
@@ -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;
|
|
@@ -104049,6 +104140,14 @@ export interface components {
|
|
|
104049
104140
|
/** @example nuremberg */
|
|
104050
104141
|
slug: string;
|
|
104051
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
|
+
};
|
|
104052
104151
|
PublicMessageCatalogue: {
|
|
104053
104152
|
locale: components["schemas"]["LocaleCode"];
|
|
104054
104153
|
/**
|
|
@@ -201735,6 +201834,55 @@ export interface operations {
|
|
|
201735
201834
|
429: components["responses"]["TooManyRequests"];
|
|
201736
201835
|
};
|
|
201737
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
|
+
};
|
|
201738
201886
|
confirmZinnNews: {
|
|
201739
201887
|
parameters: {
|
|
201740
201888
|
query?: never;
|
|
@@ -208224,6 +208372,39 @@ export interface operations {
|
|
|
208224
208372
|
422: components["responses"]["UnprocessableEntity"];
|
|
208225
208373
|
};
|
|
208226
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
|
+
};
|
|
208227
208408
|
listSeoProviders: {
|
|
208228
208409
|
parameters: {
|
|
208229
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>",
|