@zinn-digital/sdk 0.1.2107 → 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.
@@ -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;
@@ -114062,6 +114109,30 @@ export interface components {
114062
114109
  /** @enum {string} */
114063
114110
  xmlrpc?: "limited" | "blocked";
114064
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
+ };
114065
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. */
114066
114137
  SiteFormParts: {
114067
114138
  /** @description Same-site path after a refusal. */
@@ -147183,6 +147254,8 @@ export interface operations {
147183
147254
  parameters: {
147184
147255
  query?: {
147185
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";
147186
147259
  kind?: "checked" | "recovered" | "failed" | "pool_empty" | "pool_full" | "capability_lost";
147187
147260
  };
147188
147261
  header?: never;
@@ -219618,6 +219691,65 @@ export interface operations {
219618
219691
  503: components["responses"]["ServiceUnavailable"];
219619
219692
  };
219620
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
+ };
219621
219753
  listSiteFtpUsers: {
219622
219754
  parameters: {
219623
219755
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2107",
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>",