@zinn-digital/sdk 0.1.1357 → 0.1.1360
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 +90 -2
- package/package.json +1 -1
|
@@ -41636,6 +41636,28 @@ export interface paths {
|
|
|
41636
41636
|
patch?: never;
|
|
41637
41637
|
trace?: never;
|
|
41638
41638
|
};
|
|
41639
|
+
"/v1/public/presales-tickets": {
|
|
41640
|
+
parameters: {
|
|
41641
|
+
query?: never;
|
|
41642
|
+
header?: never;
|
|
41643
|
+
path?: never;
|
|
41644
|
+
cookie?: never;
|
|
41645
|
+
};
|
|
41646
|
+
get?: never;
|
|
41647
|
+
put?: never;
|
|
41648
|
+
/**
|
|
41649
|
+
* Ask a question before you buy — no account.
|
|
41650
|
+
* @description The "Ask before you buy" form on the public site (owner ruling 2026-11-02). Files a GUEST ticket on the sales desk with category `presales`; the presales AI answers it and the reply reaches the asker by e-mail, and staff are notified with a subject that starts `Pre-sales ticket:`.
|
|
41651
|
+
*
|
|
41652
|
+
* **Anonymous** — no credential, no tenant. Controls fire cheapest first: a fail-closed per-IP (3/hour) and global (300/hour) budget, a honeypot field (`website`, answered `202` silently), the per-address ticket budget, a blocked sender (`202` silently), then Cloudflare Turnstile. A question the content filter flags is still filed and answered, as `presales_spam` at low priority — only a Turnstile failure or a rate limit refuses one.
|
|
41653
|
+
*/
|
|
41654
|
+
post: operations["createPresalesTicket"];
|
|
41655
|
+
delete?: never;
|
|
41656
|
+
options?: never;
|
|
41657
|
+
head?: never;
|
|
41658
|
+
patch?: never;
|
|
41659
|
+
trace?: never;
|
|
41660
|
+
};
|
|
41639
41661
|
"/v1/public/pricing/tax-quote": {
|
|
41640
41662
|
parameters: {
|
|
41641
41663
|
query?: never;
|
|
@@ -61780,6 +61802,7 @@ export interface components {
|
|
|
61780
61802
|
/** Format: uuid */
|
|
61781
61803
|
connection_id: string;
|
|
61782
61804
|
country: string;
|
|
61805
|
+
/** @description Where calls are forwarded; `""` = forwarding switched off (calls refused unanswered). */
|
|
61783
61806
|
forward_to: string;
|
|
61784
61807
|
/** Format: uuid */
|
|
61785
61808
|
id: string;
|
|
@@ -89783,6 +89806,27 @@ export interface components {
|
|
|
89783
89806
|
/** @description What the visitor asked, in their own language. ⛔ Shorter than the dashboard assistant's 4,000: a customer pastes an error log, a prospect asks a question, and an unbounded prompt on an anonymous surface is an unbounded bill. */
|
|
89784
89807
|
question: string;
|
|
89785
89808
|
};
|
|
89809
|
+
PresalesTicketAccepted: {
|
|
89810
|
+
/** @description The ticket reference the asker can quote back at us. */
|
|
89811
|
+
reference: string;
|
|
89812
|
+
};
|
|
89813
|
+
PresalesTicketInput: {
|
|
89814
|
+
/**
|
|
89815
|
+
* Format: email
|
|
89816
|
+
* @description Where the answer is sent.
|
|
89817
|
+
*/
|
|
89818
|
+
email: string;
|
|
89819
|
+
/** @description The asker's language; the answer is written in it. */
|
|
89820
|
+
locale?: string;
|
|
89821
|
+
name?: string;
|
|
89822
|
+
question: string;
|
|
89823
|
+
/** @description The site path the question was asked from (e.g. `/en/hosting`). Anything not starting `/` is dropped. */
|
|
89824
|
+
source_page?: string;
|
|
89825
|
+
/** @description The Cloudflare Turnstile token. */
|
|
89826
|
+
turnstile_token?: string;
|
|
89827
|
+
/** @description Honeypot. Leave empty. */
|
|
89828
|
+
website?: string;
|
|
89829
|
+
};
|
|
89786
89830
|
PresalesTurn: {
|
|
89787
89831
|
content: string;
|
|
89788
89832
|
/** @enum {string} */
|
|
@@ -90792,6 +90836,11 @@ export interface components {
|
|
|
90792
90836
|
* @default false
|
|
90793
90837
|
*/
|
|
90794
90838
|
trial: boolean;
|
|
90839
|
+
/**
|
|
90840
|
+
* @description The application a trial is started for (owner, 2026-11-02 — an application card's "Start a free trial" starts the matching hosting trial with that application). One of the app-trial picker's values (`APP_TRIAL_CHOICES`); honoured only on a `trial` line whose plan is that application's own trial plan, and refused (422) otherwise. Recorded on the trial as its app choice, so the first run opens the site form on that application's stack with the application chosen. Ignored on a purchase.
|
|
90841
|
+
* @enum {string}
|
|
90842
|
+
*/
|
|
90843
|
+
trial_app?: "" | "node" | "python" | "php" | "abantecart" | "cakephp" | "concretecms" | "craft" | "dolibarr" | "dotnet" | "drupal" | "joomla" | "laravel" | "matomo" | "mautic" | "mediawiki" | "modx" | "moodle" | "nextcloud" | "opencart" | "osticket" | "owncloud" | "payload" | "phpbb" | "piwigo" | "prestashop" | "silverstripe" | "strapi" | "suitecrm" | "typo3" | "whmcs" | "woocommerce" | "wordpress" | "zenphoto";
|
|
90795
90844
|
/** @description The campaign a trial is started from (owner, 2026-10-21 — the "Move from Zeabur" page's 30-day trial, docs/1006). Sent only by that campaign's landing page. A campaign-only trial template is invisible to every public surface and is granted only when this names it and it is offered on the plan; any other value is ignored (the plan's public trial, if any, still applies). Meaningless without `trial`. */
|
|
90796
90845
|
trial_campaign?: string;
|
|
90797
90846
|
};
|
|
@@ -132166,8 +132215,8 @@ export interface operations {
|
|
|
132166
132215
|
query?: {
|
|
132167
132216
|
/** @description Narrow by owner. `me` is the calling agent's own queue; `unassigned` is the triage pile; a uuid is that agent's queue. One parameter rather than a boolean plus an id, because `unassigned=true` together with an id has no answer. */
|
|
132168
132217
|
assignee?: string;
|
|
132169
|
-
/** @description Only tickets whose category is this value (e.g. `zinn_ads`). An unknown value is a 422. */
|
|
132170
|
-
category?: "site" | "email" | "domain" | "billing" | "migration" | "plugin" | "other" | "abuse" | "legal" | "zinn_ads";
|
|
132218
|
+
/** @description Only tickets whose category is this value (e.g. `zinn_ads`). `presales` and `presales_spam` are guest pre-sales questions from the public site (`createPresalesTicket`); a customer can never pick them. An unknown value is a 422. */
|
|
132219
|
+
category?: "site" | "email" | "domain" | "billing" | "migration" | "plugin" | "other" | "abuse" | "legal" | "zinn_ads" | "presales" | "presales_spam";
|
|
132171
132220
|
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
132172
132221
|
cursor?: components["parameters"]["Cursor"];
|
|
132173
132222
|
/** @description Only problem reports (`problem`) or improvement suggestions (`suggestion`), so staff can work the suggestions apart from the queue (docs/41). An unknown value is a 422. */
|
|
@@ -136324,6 +136373,7 @@ export interface operations {
|
|
|
136324
136373
|
requestBody: {
|
|
136325
136374
|
content: {
|
|
136326
136375
|
"application/json": {
|
|
136376
|
+
/** @description The US phone number (E.164) calls are forwarded to; `""` switches forwarding off — the number is kept and every call to it is refused unanswered (no minute is billed). One of our own tracking numbers is refused (`callForwardToNotOffered`). */
|
|
136327
136377
|
forward_to?: string;
|
|
136328
136378
|
name?: string;
|
|
136329
136379
|
};
|
|
@@ -176514,6 +176564,44 @@ export interface operations {
|
|
|
176514
176564
|
429: components["responses"]["TooManyRequests"];
|
|
176515
176565
|
};
|
|
176516
176566
|
};
|
|
176567
|
+
createPresalesTicket: {
|
|
176568
|
+
parameters: {
|
|
176569
|
+
query?: never;
|
|
176570
|
+
header?: never;
|
|
176571
|
+
path?: never;
|
|
176572
|
+
cookie?: never;
|
|
176573
|
+
};
|
|
176574
|
+
requestBody: {
|
|
176575
|
+
content: {
|
|
176576
|
+
"application/json": components["schemas"]["PresalesTicketInput"];
|
|
176577
|
+
};
|
|
176578
|
+
};
|
|
176579
|
+
responses: {
|
|
176580
|
+
/** @description Filed. The reference is what the asker quotes back at us. */
|
|
176581
|
+
201: {
|
|
176582
|
+
headers: {
|
|
176583
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
176584
|
+
[name: string]: unknown;
|
|
176585
|
+
};
|
|
176586
|
+
content: {
|
|
176587
|
+
"application/json": components["schemas"]["PresalesTicketAccepted"];
|
|
176588
|
+
};
|
|
176589
|
+
};
|
|
176590
|
+
/** @description Accepted and dropped without a ticket (the honeypot was filled, or the sender is blocked). Deliberately indistinguishable from success to the sender. */
|
|
176591
|
+
202: {
|
|
176592
|
+
headers: {
|
|
176593
|
+
[name: string]: unknown;
|
|
176594
|
+
};
|
|
176595
|
+
content: {
|
|
176596
|
+
"application/json": {
|
|
176597
|
+
accepted: boolean;
|
|
176598
|
+
};
|
|
176599
|
+
};
|
|
176600
|
+
};
|
|
176601
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
176602
|
+
429: components["responses"]["TooManyRequests"];
|
|
176603
|
+
};
|
|
176604
|
+
};
|
|
176517
176605
|
quotePublicTaxDisplay: {
|
|
176518
176606
|
parameters: {
|
|
176519
176607
|
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.1360",
|
|
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>",
|