@zinn-digital/sdk 0.1.2107 → 0.1.2110
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 +141 -3
- package/package.json +1 -1
|
@@ -55908,6 +55908,53 @@ export interface paths {
|
|
|
55908
55908
|
patch?: never;
|
|
55909
55909
|
trace?: never;
|
|
55910
55910
|
};
|
|
55911
|
+
"/v1/sites/{siteId}/forms/submissions": {
|
|
55912
|
+
parameters: {
|
|
55913
|
+
query?: never;
|
|
55914
|
+
header?: never;
|
|
55915
|
+
path: {
|
|
55916
|
+
/** @description Site ID (UUIDv7). */
|
|
55917
|
+
siteId: components["parameters"]["SiteId"];
|
|
55918
|
+
};
|
|
55919
|
+
cookie?: never;
|
|
55920
|
+
};
|
|
55921
|
+
/**
|
|
55922
|
+
* List the entries a site's own forms received (newest first).
|
|
55923
|
+
* @description docs/1185 §Data (P4-148). Every entry `submitSiteForm` accepted (past the honeypot, the site's own Turnstile check and the organisation's good standing) is kept for 90 days for the dashboard's "Form submissions" view and is also e-mailed to the site's mailbox. `emailed` is `false` when that e-mail could not be sent. Every field is the visitor's raw text: render it as text, never as HTML. `404` for a site that is not the caller's. Requires `sites.view`.
|
|
55924
|
+
*/
|
|
55925
|
+
get: operations["listSiteFormSubmissions"];
|
|
55926
|
+
put?: never;
|
|
55927
|
+
post?: never;
|
|
55928
|
+
delete?: never;
|
|
55929
|
+
options?: never;
|
|
55930
|
+
head?: never;
|
|
55931
|
+
patch?: never;
|
|
55932
|
+
trace?: never;
|
|
55933
|
+
};
|
|
55934
|
+
"/v1/sites/{siteId}/forms/submissions/{submissionId}": {
|
|
55935
|
+
parameters: {
|
|
55936
|
+
query?: never;
|
|
55937
|
+
header?: never;
|
|
55938
|
+
path: {
|
|
55939
|
+
/** @description Site ID (UUIDv7). */
|
|
55940
|
+
siteId: components["parameters"]["SiteId"];
|
|
55941
|
+
submissionId: string;
|
|
55942
|
+
};
|
|
55943
|
+
cookie?: never;
|
|
55944
|
+
};
|
|
55945
|
+
get?: never;
|
|
55946
|
+
put?: never;
|
|
55947
|
+
post?: never;
|
|
55948
|
+
/**
|
|
55949
|
+
* Delete one stored form entry.
|
|
55950
|
+
* @description Removes the stored copy (the e-mail already sent is not recalled). Audit-logged. `404` for an entry or site that is not the caller's. Requires `sites.view` and `sites.panel_access`.
|
|
55951
|
+
*/
|
|
55952
|
+
delete: operations["deleteSiteFormSubmission"];
|
|
55953
|
+
options?: never;
|
|
55954
|
+
head?: never;
|
|
55955
|
+
patch?: never;
|
|
55956
|
+
trace?: never;
|
|
55957
|
+
};
|
|
55911
55958
|
"/v1/sites/{siteId}/ftp-users": {
|
|
55912
55959
|
parameters: {
|
|
55913
55960
|
query?: never;
|
|
@@ -66384,6 +66431,8 @@ export interface components {
|
|
|
66384
66431
|
internal: boolean;
|
|
66385
66432
|
/** Format: date-time */
|
|
66386
66433
|
last_paid_at: string | null;
|
|
66434
|
+
/** @description DAY-0024: monthly value of every active plan in USD minor units (yearly / 12, other currencies at the stored rate); null when a price has no rate. */
|
|
66435
|
+
monthly_usd_minor: number | null;
|
|
66387
66436
|
/** Format: int64 */
|
|
66388
66437
|
mrr_minor: number;
|
|
66389
66438
|
org: components["schemas"]["Organization"];
|
|
@@ -66401,7 +66450,7 @@ export interface components {
|
|
|
66401
66450
|
* @description Has this customer bought anything — see the `state` filter.
|
|
66402
66451
|
* @enum {string}
|
|
66403
66452
|
*/
|
|
66404
|
-
state: "paying" | "trial" | "never_bought" | "lapsed" | "closed";
|
|
66453
|
+
state: "paying" | "overdue" | "suspended" | "trial" | "never_bought" | "lapsed" | "closed";
|
|
66405
66454
|
/** @description Real money taken by a gateway in live mode, net of refunds, per currency (never wallet spend or test-mode payments). Empty when nothing was ever paid. */
|
|
66406
66455
|
total_spent: components["schemas"]["AdminMoneyAmount"][];
|
|
66407
66456
|
};
|
|
@@ -114062,6 +114111,30 @@ export interface components {
|
|
|
114062
114111
|
/** @enum {string} */
|
|
114063
114112
|
xmlrpc?: "limited" | "blocked";
|
|
114064
114113
|
};
|
|
114114
|
+
SiteFormEntry: {
|
|
114115
|
+
answers: {
|
|
114116
|
+
label: string;
|
|
114117
|
+
value: string;
|
|
114118
|
+
}[];
|
|
114119
|
+
/** Format: date-time */
|
|
114120
|
+
createdAt: string;
|
|
114121
|
+
/** @description False when the e-mail to the mailbox could not be sent. */
|
|
114122
|
+
emailed: boolean;
|
|
114123
|
+
/** @description The form's own name (`_form`). */
|
|
114124
|
+
form: string;
|
|
114125
|
+
/** Format: uuid */
|
|
114126
|
+
id: string;
|
|
114127
|
+
locale: string;
|
|
114128
|
+
name: string;
|
|
114129
|
+
/** @description The site mailbox the entry was e-mailed to. */
|
|
114130
|
+
recipient: string;
|
|
114131
|
+
/** @description The visitor's address, as typed. */
|
|
114132
|
+
replyTo: string;
|
|
114133
|
+
};
|
|
114134
|
+
SiteFormEntryList: {
|
|
114135
|
+
data: components["schemas"]["SiteFormEntry"][];
|
|
114136
|
+
page: components["schemas"]["PageMeta"];
|
|
114137
|
+
};
|
|
114065
114138
|
/** @description `SiteFormSubmission` as `multipart/form-data`. Each part is ONE string; a question with several answers (e.g. checkboxes) is that part repeated under the same name, which the engine reads as a list exactly as it does a repeated urlencoded key. ⛔ Kept a plain string on purpose: openapi-python-client 0.29.1 emits unparseable Python for a multipart body whose `additionalProperties` is a `oneOf` or an `array` (the zinn-sdk release failed on it, D60130); `scripts/sdk-release.py --check-spec` refuses that shape. */
|
|
114066
114139
|
SiteFormParts: {
|
|
114067
114140
|
/** @description Same-site path after a refusal. */
|
|
@@ -133367,10 +133440,14 @@ export interface operations {
|
|
|
133367
133440
|
include_internal?: boolean;
|
|
133368
133441
|
/** @description Maximum items to return (page size). */
|
|
133369
133442
|
limit?: components["parameters"]["Limit"];
|
|
133443
|
+
/** @description Sort key, `-` prefix for descending (`created` = sign-up order). */
|
|
133444
|
+
ordering?: "created" | "-created" | "name" | "-name";
|
|
133445
|
+
/** @description Only customers holding a live subscription to this plan code. */
|
|
133446
|
+
plan?: string;
|
|
133370
133447
|
/** @description Case-insensitive substring over the org name and the owner's email and name. It does NOT match the org id: fetch one org by id with `GET /v1/admin/customers/{orgId}`. */
|
|
133371
133448
|
search?: string;
|
|
133372
|
-
/** @description Only customers in this state. "Paid" means a live gateway payment, the same money as `total_spent`; a $0 trial order or an order covered by credit is not one. `paying` = paid, not fully refunded, and holds something live (plan, domain, site or server); `trial` = on a live trial and not paying; `never_bought` = has never paid (includes finished trials, free plans and comped orders); `lapsed` = paid once, and holds nothing live or was fully refunded; `closed` = account closed (the only way to list those). */
|
|
133373
|
-
state?: "paying" | "trial" | "never_bought" | "lapsed" | "closed";
|
|
133449
|
+
/** @description Only customers in this state. "Paid" means a live gateway payment, the same money as `total_spent`; a $0 trial order or an order covered by credit is not one. `paying` = paid, not fully refunded, and holds something live (plan, domain, site or server); `trial` = on a live trial and not paying; `never_bought` = has never paid (includes finished trials, free plans and comped orders); `lapsed` = paid once, and holds nothing live or was fully refunded; `closed` = account closed (the only way to list those). DAY-0024: `paying` also needs good standing; `overdue` = would be paying but holds a past-due plan; `suspended` = the account is suspended. */
|
|
133450
|
+
state?: "paying" | "overdue" | "suspended" | "trial" | "never_bought" | "lapsed" | "closed";
|
|
133374
133451
|
};
|
|
133375
133452
|
header?: never;
|
|
133376
133453
|
path?: never;
|
|
@@ -147183,6 +147260,8 @@ export interface operations {
|
|
|
147183
147260
|
parameters: {
|
|
147184
147261
|
query?: {
|
|
147185
147262
|
category?: string;
|
|
147263
|
+
/** @description `true` also returns the lines of retired accounts (disabled, or deleted). By default they are left out; nothing is deleted. Pool events are always returned. */
|
|
147264
|
+
include_retired?: "true" | "false";
|
|
147186
147265
|
kind?: "checked" | "recovered" | "failed" | "pool_empty" | "pool_full" | "capability_lost";
|
|
147187
147266
|
};
|
|
147188
147267
|
header?: never;
|
|
@@ -219618,6 +219697,65 @@ export interface operations {
|
|
|
219618
219697
|
503: components["responses"]["ServiceUnavailable"];
|
|
219619
219698
|
};
|
|
219620
219699
|
};
|
|
219700
|
+
listSiteFormSubmissions: {
|
|
219701
|
+
parameters: {
|
|
219702
|
+
query?: {
|
|
219703
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
219704
|
+
cursor?: components["parameters"]["Cursor"];
|
|
219705
|
+
/** @description Maximum items to return (page size). */
|
|
219706
|
+
limit?: components["parameters"]["Limit"];
|
|
219707
|
+
};
|
|
219708
|
+
header?: never;
|
|
219709
|
+
path: {
|
|
219710
|
+
/** @description Site ID (UUIDv7). */
|
|
219711
|
+
siteId: components["parameters"]["SiteId"];
|
|
219712
|
+
};
|
|
219713
|
+
cookie?: never;
|
|
219714
|
+
};
|
|
219715
|
+
requestBody?: never;
|
|
219716
|
+
responses: {
|
|
219717
|
+
/** @description One page of the site's stored entries. */
|
|
219718
|
+
200: {
|
|
219719
|
+
headers: {
|
|
219720
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
219721
|
+
[name: string]: unknown;
|
|
219722
|
+
};
|
|
219723
|
+
content: {
|
|
219724
|
+
"application/json": components["schemas"]["SiteFormEntryList"];
|
|
219725
|
+
};
|
|
219726
|
+
};
|
|
219727
|
+
401: components["responses"]["Unauthorized"];
|
|
219728
|
+
403: components["responses"]["Forbidden"];
|
|
219729
|
+
404: components["responses"]["NotFound"];
|
|
219730
|
+
429: components["responses"]["TooManyRequests"];
|
|
219731
|
+
};
|
|
219732
|
+
};
|
|
219733
|
+
deleteSiteFormSubmission: {
|
|
219734
|
+
parameters: {
|
|
219735
|
+
query?: never;
|
|
219736
|
+
header?: never;
|
|
219737
|
+
path: {
|
|
219738
|
+
/** @description Site ID (UUIDv7). */
|
|
219739
|
+
siteId: components["parameters"]["SiteId"];
|
|
219740
|
+
submissionId: string;
|
|
219741
|
+
};
|
|
219742
|
+
cookie?: never;
|
|
219743
|
+
};
|
|
219744
|
+
requestBody?: never;
|
|
219745
|
+
responses: {
|
|
219746
|
+
/** @description Deleted. */
|
|
219747
|
+
204: {
|
|
219748
|
+
headers: {
|
|
219749
|
+
[name: string]: unknown;
|
|
219750
|
+
};
|
|
219751
|
+
content?: never;
|
|
219752
|
+
};
|
|
219753
|
+
401: components["responses"]["Unauthorized"];
|
|
219754
|
+
403: components["responses"]["Forbidden"];
|
|
219755
|
+
404: components["responses"]["NotFound"];
|
|
219756
|
+
429: components["responses"]["TooManyRequests"];
|
|
219757
|
+
};
|
|
219758
|
+
};
|
|
219621
219759
|
listSiteFtpUsers: {
|
|
219622
219760
|
parameters: {
|
|
219623
219761
|
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.2110",
|
|
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>",
|