@zinn-digital/sdk 0.1.2106 → 0.1.2109
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 +138 -0
- 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;
|
|
@@ -83469,6 +83516,12 @@ export interface components {
|
|
|
83469
83516
|
* ⛔ **The customer has to act on this.** Cloudflare assigns a nameserver pair per *account*, so moving a zone between accounts changes them. Until the registrar is updated every visitor still resolves through the old account's nameservers — the records are correct, the edge is live, and the traffic goes the old way.
|
|
83470
83517
|
*/
|
|
83471
83518
|
nameservers?: string[];
|
|
83519
|
+
/**
|
|
83520
|
+
* @description WHY `tier` is `off` (P6e-041), blank on every other tier. `no_plan_yet`: the org has no plan with the included CDN yet (the only reason an automatic switch-on may act on). `customer_chose`: the customer picked No CDN. `partner_move`: a site move kept the domain behind the previous host's own edge. `disconnected_account`: the CDN account the site was on was disconnected. `preview_address`: the site is on a preview address. `hosted_edge`: the hosting package fronts the site with its own edge. `unknown`: recorded before reasons existed.
|
|
83521
|
+
* @default
|
|
83522
|
+
* @enum {string}
|
|
83523
|
+
*/
|
|
83524
|
+
off_reason: "" | "no_plan_yet" | "customer_chose" | "partner_move" | "disconnected_account" | "preview_address" | "hosted_edge" | "unknown";
|
|
83472
83525
|
/** @description Only on a `switchSiteCdn` response, and always `false` there since that operation began starting a durable move (W43-06): nothing has been removed when the request answers. Whether the old zone was really deleted is `getSiteCdnSwap`'s `old_zone_removed`, once the move completes. ⛔ An observation, never an intention. */
|
|
83473
83526
|
old_zone_removed?: boolean;
|
|
83474
83527
|
/** @description What the customer calls the CDN they run themselves. ⚠️ **Unverified** — we hold no credential for that edge, so this is their claim and a client must present it as theirs rather than as something the platform established. Empty on every other tier. */
|
|
@@ -114056,6 +114109,30 @@ export interface components {
|
|
|
114056
114109
|
/** @enum {string} */
|
|
114057
114110
|
xmlrpc?: "limited" | "blocked";
|
|
114058
114111
|
};
|
|
114112
|
+
SiteFormEntry: {
|
|
114113
|
+
answers: {
|
|
114114
|
+
label: string;
|
|
114115
|
+
value: string;
|
|
114116
|
+
}[];
|
|
114117
|
+
/** Format: date-time */
|
|
114118
|
+
createdAt: string;
|
|
114119
|
+
/** @description False when the e-mail to the mailbox could not be sent. */
|
|
114120
|
+
emailed: boolean;
|
|
114121
|
+
/** @description The form's own name (`_form`). */
|
|
114122
|
+
form: string;
|
|
114123
|
+
/** Format: uuid */
|
|
114124
|
+
id: string;
|
|
114125
|
+
locale: string;
|
|
114126
|
+
name: string;
|
|
114127
|
+
/** @description The site mailbox the entry was e-mailed to. */
|
|
114128
|
+
recipient: string;
|
|
114129
|
+
/** @description The visitor's address, as typed. */
|
|
114130
|
+
replyTo: string;
|
|
114131
|
+
};
|
|
114132
|
+
SiteFormEntryList: {
|
|
114133
|
+
data: components["schemas"]["SiteFormEntry"][];
|
|
114134
|
+
page: components["schemas"]["PageMeta"];
|
|
114135
|
+
};
|
|
114059
114136
|
/** @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. */
|
|
114060
114137
|
SiteFormParts: {
|
|
114061
114138
|
/** @description Same-site path after a refusal. */
|
|
@@ -147177,6 +147254,8 @@ export interface operations {
|
|
|
147177
147254
|
parameters: {
|
|
147178
147255
|
query?: {
|
|
147179
147256
|
category?: string;
|
|
147257
|
+
/** @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. */
|
|
147258
|
+
include_retired?: "true" | "false";
|
|
147180
147259
|
kind?: "checked" | "recovered" | "failed" | "pool_empty" | "pool_full" | "capability_lost";
|
|
147181
147260
|
};
|
|
147182
147261
|
header?: never;
|
|
@@ -219612,6 +219691,65 @@ export interface operations {
|
|
|
219612
219691
|
503: components["responses"]["ServiceUnavailable"];
|
|
219613
219692
|
};
|
|
219614
219693
|
};
|
|
219694
|
+
listSiteFormSubmissions: {
|
|
219695
|
+
parameters: {
|
|
219696
|
+
query?: {
|
|
219697
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
219698
|
+
cursor?: components["parameters"]["Cursor"];
|
|
219699
|
+
/** @description Maximum items to return (page size). */
|
|
219700
|
+
limit?: components["parameters"]["Limit"];
|
|
219701
|
+
};
|
|
219702
|
+
header?: never;
|
|
219703
|
+
path: {
|
|
219704
|
+
/** @description Site ID (UUIDv7). */
|
|
219705
|
+
siteId: components["parameters"]["SiteId"];
|
|
219706
|
+
};
|
|
219707
|
+
cookie?: never;
|
|
219708
|
+
};
|
|
219709
|
+
requestBody?: never;
|
|
219710
|
+
responses: {
|
|
219711
|
+
/** @description One page of the site's stored entries. */
|
|
219712
|
+
200: {
|
|
219713
|
+
headers: {
|
|
219714
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
219715
|
+
[name: string]: unknown;
|
|
219716
|
+
};
|
|
219717
|
+
content: {
|
|
219718
|
+
"application/json": components["schemas"]["SiteFormEntryList"];
|
|
219719
|
+
};
|
|
219720
|
+
};
|
|
219721
|
+
401: components["responses"]["Unauthorized"];
|
|
219722
|
+
403: components["responses"]["Forbidden"];
|
|
219723
|
+
404: components["responses"]["NotFound"];
|
|
219724
|
+
429: components["responses"]["TooManyRequests"];
|
|
219725
|
+
};
|
|
219726
|
+
};
|
|
219727
|
+
deleteSiteFormSubmission: {
|
|
219728
|
+
parameters: {
|
|
219729
|
+
query?: never;
|
|
219730
|
+
header?: never;
|
|
219731
|
+
path: {
|
|
219732
|
+
/** @description Site ID (UUIDv7). */
|
|
219733
|
+
siteId: components["parameters"]["SiteId"];
|
|
219734
|
+
submissionId: string;
|
|
219735
|
+
};
|
|
219736
|
+
cookie?: never;
|
|
219737
|
+
};
|
|
219738
|
+
requestBody?: never;
|
|
219739
|
+
responses: {
|
|
219740
|
+
/** @description Deleted. */
|
|
219741
|
+
204: {
|
|
219742
|
+
headers: {
|
|
219743
|
+
[name: string]: unknown;
|
|
219744
|
+
};
|
|
219745
|
+
content?: never;
|
|
219746
|
+
};
|
|
219747
|
+
401: components["responses"]["Unauthorized"];
|
|
219748
|
+
403: components["responses"]["Forbidden"];
|
|
219749
|
+
404: components["responses"]["NotFound"];
|
|
219750
|
+
429: components["responses"]["TooManyRequests"];
|
|
219751
|
+
};
|
|
219752
|
+
};
|
|
219615
219753
|
listSiteFtpUsers: {
|
|
219616
219754
|
parameters: {
|
|
219617
219755
|
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.2109",
|
|
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>",
|