@zinn-digital/sdk 0.1.1598 → 0.1.1600

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.
@@ -33691,6 +33691,54 @@ export interface paths {
33691
33691
  patch?: never;
33692
33692
  trace?: never;
33693
33693
  };
33694
+ "/v1/email-marketing/forms": {
33695
+ parameters: {
33696
+ query?: never;
33697
+ header?: never;
33698
+ path?: never;
33699
+ cookie?: never;
33700
+ };
33701
+ /**
33702
+ * Sign-up forms (double opt-in), newest first, one keyset page.
33703
+ * @description Gated on `email_marketing.view`. Each form carries its hosted page address, the embed snippet and how many sign-ups are pending and confirmed.
33704
+ */
33705
+ get: operations["listEmailMarketingForms"];
33706
+ put?: never;
33707
+ /**
33708
+ * Create a sign-up form that adds confirmed people to one list.
33709
+ * @description Gated on `email_marketing.manage`. A person who submits the form is sent a confirmation e-mail; only a click on its link adds them to the list, with the form, page, time and consent wording recorded as their consent. `redirect_url` must be https.
33710
+ */
33711
+ post: operations["createEmailMarketingForm"];
33712
+ delete?: never;
33713
+ options?: never;
33714
+ head?: never;
33715
+ patch?: never;
33716
+ trace?: never;
33717
+ };
33718
+ "/v1/email-marketing/forms/{form_id}": {
33719
+ parameters: {
33720
+ query?: never;
33721
+ header?: never;
33722
+ path?: never;
33723
+ cookie?: never;
33724
+ };
33725
+ get?: never;
33726
+ put?: never;
33727
+ post?: never;
33728
+ /**
33729
+ * Delete a sign-up form (people already confirmed stay on the list).
33730
+ * @description Gated on `email_marketing.manage`. Its hosted page then shows "closed".
33731
+ */
33732
+ delete: operations["deleteEmailMarketingForm"];
33733
+ options?: never;
33734
+ head?: never;
33735
+ /**
33736
+ * Change a sign-up form (wording, list, redirect, on or off).
33737
+ * @description Gated on `email_marketing.manage`.
33738
+ */
33739
+ patch: operations["updateEmailMarketingForm"];
33740
+ trace?: never;
33741
+ };
33694
33742
  "/v1/email-marketing/imports": {
33695
33743
  parameters: {
33696
33744
  query?: never;
@@ -44044,6 +44092,51 @@ export interface paths {
44044
44092
  patch?: never;
44045
44093
  trace?: never;
44046
44094
  };
44095
+ "/v1/public/email-marketing/f/{public_id}": {
44096
+ parameters: {
44097
+ query?: never;
44098
+ header?: never;
44099
+ path?: never;
44100
+ cookie?: never;
44101
+ };
44102
+ /**
44103
+ * A sign-up form's hosted page (no login).
44104
+ * @description The form in its language, with the consent wording. A form that is off or gone shows a "closed" page.
44105
+ */
44106
+ get: operations["emailMarketingFormPage"];
44107
+ put?: never;
44108
+ /**
44109
+ * Submit a sign-up form (hosted page, embed or JSON).
44110
+ * @description Records the request and e-mails a confirmation link (double opt-in). Every outcome but a closed form answers the same (no address oracle): a JSON caller gets `202`, a browser the form's redirect or a "check your inbox" page. Rate-limited per client; at most 3 confirmation mails per address a day.
44111
+ */
44112
+ post: operations["emailMarketingFormSubmit"];
44113
+ delete?: never;
44114
+ options?: never;
44115
+ head?: never;
44116
+ patch?: never;
44117
+ trace?: never;
44118
+ };
44119
+ "/v1/public/email-marketing/fc": {
44120
+ parameters: {
44121
+ query?: never;
44122
+ header?: never;
44123
+ path?: never;
44124
+ cookie?: never;
44125
+ };
44126
+ /**
44127
+ * The double opt-in confirmation page (no login).
44128
+ * @description Shows a confirm button. The signed token travels in the URL fragment (`#t=`), so it never reaches a server log or a link scanner; only the button's POST confirms.
44129
+ */
44130
+ get: operations["emailMarketingFormConfirmPage"];
44131
+ put?: never;
44132
+ /** Confirm a sign-up (adds the person to the list with a consent record). */
44133
+ post: operations["emailMarketingFormConfirm"];
44134
+ delete?: never;
44135
+ options?: never;
44136
+ head?: never;
44137
+ patch?: never;
44138
+ trace?: never;
44139
+ };
44047
44140
  "/v1/public/email-marketing/o/{token}": {
44048
44141
  parameters: {
44049
44142
  query?: never;
@@ -82780,6 +82873,46 @@ export interface components {
82780
82873
  /** Format: uuid */
82781
82874
  next_after: string | null;
82782
82875
  };
82876
+ EmailMarketingForm: {
82877
+ button_label: string;
82878
+ confirmed: number;
82879
+ consent_text: string;
82880
+ /** Format: date-time */
82881
+ created_at: string | null;
82882
+ embed_html: string;
82883
+ enabled: boolean;
82884
+ hosted_url: string;
82885
+ /** Format: uuid */
82886
+ id: string;
82887
+ intro: string;
82888
+ /** Format: uuid */
82889
+ list_id: string;
82890
+ locale: string;
82891
+ pending: number;
82892
+ public_id: string;
82893
+ redirect_url: string;
82894
+ sender_name: string;
82895
+ title: string;
82896
+ };
82897
+ EmailMarketingFormPage: {
82898
+ data: components["schemas"]["EmailMarketingForm"][];
82899
+ /** Format: uuid */
82900
+ next_after: string | null;
82901
+ };
82902
+ /** @description On create `list_id`, `title`, `consent_text` and `sender_name` are required. */
82903
+ EmailMarketingFormWrite: {
82904
+ button_label?: string;
82905
+ consent_text?: string;
82906
+ enabled?: boolean;
82907
+ intro?: string;
82908
+ /** Format: uuid */
82909
+ list_id?: string;
82910
+ locale?: string;
82911
+ /** @description https:// only; empty for our page. */
82912
+ redirect_url?: string;
82913
+ sender_name?: string;
82914
+ title?: string;
82915
+ };
82783
82916
  EmailMarketingImport: {
82784
82917
  attestation: string;
82785
82918
  attested_by: string;
@@ -106797,6 +106930,8 @@ export interface components {
106797
106930
  SiteQuotaResources: {
106798
106931
  /** @description Whether the platform has restricted this site **for being over a quota**. It is deliberately not "is this site restricted": that rung is shared with the malware and abuse ladders, and a client must not offer "buy more space to fix this" to a customer whose site is held for phishing. */
106799
106932
  frozen: boolean;
106933
+ /** @description Whether the platform has restricted this site because it was moved in while its plan had no free site slot (row 1107#13). It lifts by itself within about ten minutes of an upgrade, an added slot or a deleted site. Like `frozen`, it is never "is this site restricted": a site held by the malware ladder answers false. */
106934
+ frozen_over_slots: boolean;
106800
106935
  /** @description This site's object storage (an LMS Moodle site's course files over 1 MB, a files site's store) against its allowance, or null when the site keeps nothing on object storage. Comes with the plan (`object_storage_gb` / `files_object_gb`) or a staff override. At 100% new files stay on the site's own disk; nothing is deleted. */
106801
106936
  object_storage?: components["schemas"]["SiteObjectStorage"] | null;
106802
106937
  /** @description Only resources this site's driver can actually enforce. Empty on a managed hosting package, where the disk ceiling belongs to the package type and inodes do not exist. */
@@ -171867,6 +172002,123 @@ export interface operations {
171867
172002
  503: components["responses"]["ServiceUnavailable"];
171868
172003
  };
171869
172004
  };
172005
+ listEmailMarketingForms: {
172006
+ parameters: {
172007
+ query?: {
172008
+ after?: string;
172009
+ limit?: number;
172010
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
172011
+ org_id?: components["parameters"]["OrgIdQuery"];
172012
+ };
172013
+ header?: never;
172014
+ path?: never;
172015
+ cookie?: never;
172016
+ };
172017
+ requestBody?: never;
172018
+ responses: {
172019
+ /** @description One page of forms. */
172020
+ 200: {
172021
+ headers: {
172022
+ [name: string]: unknown;
172023
+ };
172024
+ content: {
172025
+ "application/json": components["schemas"]["EmailMarketingFormPage"];
172026
+ };
172027
+ };
172028
+ 401: components["responses"]["Unauthorized"];
172029
+ 403: components["responses"]["Forbidden"];
172030
+ };
172031
+ };
172032
+ createEmailMarketingForm: {
172033
+ parameters: {
172034
+ query?: {
172035
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
172036
+ org_id?: components["parameters"]["OrgIdQuery"];
172037
+ };
172038
+ header?: never;
172039
+ path?: never;
172040
+ cookie?: never;
172041
+ };
172042
+ requestBody: {
172043
+ content: {
172044
+ "application/json": components["schemas"]["EmailMarketingFormWrite"];
172045
+ };
172046
+ };
172047
+ responses: {
172048
+ /** @description The form. */
172049
+ 201: {
172050
+ headers: {
172051
+ [name: string]: unknown;
172052
+ };
172053
+ content: {
172054
+ "application/json": components["schemas"]["EmailMarketingForm"];
172055
+ };
172056
+ };
172057
+ 400: components["responses"]["UnprocessableEntity"];
172058
+ 401: components["responses"]["Unauthorized"];
172059
+ 403: components["responses"]["Forbidden"];
172060
+ 404: components["responses"]["NotFound"];
172061
+ };
172062
+ };
172063
+ deleteEmailMarketingForm: {
172064
+ parameters: {
172065
+ query?: {
172066
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
172067
+ org_id?: components["parameters"]["OrgIdQuery"];
172068
+ };
172069
+ header?: never;
172070
+ path: {
172071
+ form_id: string;
172072
+ };
172073
+ cookie?: never;
172074
+ };
172075
+ requestBody?: never;
172076
+ responses: {
172077
+ /** @description Deleted. */
172078
+ 204: {
172079
+ headers: {
172080
+ [name: string]: unknown;
172081
+ };
172082
+ content?: never;
172083
+ };
172084
+ 401: components["responses"]["Unauthorized"];
172085
+ 403: components["responses"]["Forbidden"];
172086
+ 404: components["responses"]["NotFound"];
172087
+ };
172088
+ };
172089
+ updateEmailMarketingForm: {
172090
+ parameters: {
172091
+ query?: {
172092
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
172093
+ org_id?: components["parameters"]["OrgIdQuery"];
172094
+ };
172095
+ header?: never;
172096
+ path: {
172097
+ form_id: string;
172098
+ };
172099
+ cookie?: never;
172100
+ };
172101
+ requestBody: {
172102
+ content: {
172103
+ "application/json": components["schemas"]["EmailMarketingFormWrite"];
172104
+ };
172105
+ };
172106
+ responses: {
172107
+ /** @description The form. */
172108
+ 200: {
172109
+ headers: {
172110
+ [name: string]: unknown;
172111
+ };
172112
+ content: {
172113
+ "application/json": components["schemas"]["EmailMarketingForm"];
172114
+ };
172115
+ };
172116
+ 400: components["responses"]["UnprocessableEntity"];
172117
+ 401: components["responses"]["Unauthorized"];
172118
+ 403: components["responses"]["Forbidden"];
172119
+ 404: components["responses"]["NotFound"];
172120
+ };
172121
+ };
171870
172122
  listEmailMarketingImports: {
171871
172123
  parameters: {
171872
172124
  query?: {
@@ -188576,6 +188828,141 @@ export interface operations {
188576
188828
  };
188577
188829
  };
188578
188830
  };
188831
+ emailMarketingFormPage: {
188832
+ parameters: {
188833
+ query?: never;
188834
+ header?: never;
188835
+ path: {
188836
+ public_id: string;
188837
+ };
188838
+ cookie?: never;
188839
+ };
188840
+ requestBody?: never;
188841
+ responses: {
188842
+ /** @description The form page. */
188843
+ 200: {
188844
+ headers: {
188845
+ [name: string]: unknown;
188846
+ };
188847
+ content: {
188848
+ "text/html": string;
188849
+ };
188850
+ };
188851
+ };
188852
+ };
188853
+ emailMarketingFormSubmit: {
188854
+ parameters: {
188855
+ query?: never;
188856
+ header?: never;
188857
+ path: {
188858
+ public_id: string;
188859
+ };
188860
+ cookie?: never;
188861
+ };
188862
+ requestBody: {
188863
+ content: {
188864
+ "application/json": {
188865
+ email: string;
188866
+ };
188867
+ "application/x-www-form-urlencoded": {
188868
+ email: string;
188869
+ /** @description Honeypot; leave empty. */
188870
+ website_confirm?: string;
188871
+ };
188872
+ };
188873
+ };
188874
+ responses: {
188875
+ /** @description The "check your inbox" (or "closed") page. */
188876
+ 200: {
188877
+ headers: {
188878
+ [name: string]: unknown;
188879
+ };
188880
+ content: {
188881
+ "text/html": string;
188882
+ };
188883
+ };
188884
+ /** @description Accepted (JSON callers). */
188885
+ 202: {
188886
+ headers: {
188887
+ [name: string]: unknown;
188888
+ };
188889
+ content: {
188890
+ "application/json": {
188891
+ /** @enum {string} */
188892
+ status: "check_your_inbox";
188893
+ };
188894
+ };
188895
+ };
188896
+ /** @description To the form's redirect address. */
188897
+ 302: {
188898
+ headers: {
188899
+ [name: string]: unknown;
188900
+ };
188901
+ content?: never;
188902
+ };
188903
+ /** @description The form is closed (JSON callers). */
188904
+ 410: {
188905
+ headers: {
188906
+ [name: string]: unknown;
188907
+ };
188908
+ content: {
188909
+ "application/json": {
188910
+ /** @enum {string} */
188911
+ status: "closed";
188912
+ };
188913
+ };
188914
+ };
188915
+ 429: components["responses"]["TooManyRequests"];
188916
+ };
188917
+ };
188918
+ emailMarketingFormConfirmPage: {
188919
+ parameters: {
188920
+ query?: {
188921
+ l?: string;
188922
+ };
188923
+ header?: never;
188924
+ path?: never;
188925
+ cookie?: never;
188926
+ };
188927
+ requestBody?: never;
188928
+ responses: {
188929
+ /** @description The confirmation page. */
188930
+ 200: {
188931
+ headers: {
188932
+ [name: string]: unknown;
188933
+ };
188934
+ content: {
188935
+ "text/html": string;
188936
+ };
188937
+ };
188938
+ };
188939
+ };
188940
+ emailMarketingFormConfirm: {
188941
+ parameters: {
188942
+ query?: never;
188943
+ header?: never;
188944
+ path?: never;
188945
+ cookie?: never;
188946
+ };
188947
+ requestBody: {
188948
+ content: {
188949
+ "application/x-www-form-urlencoded": {
188950
+ token: string;
188951
+ };
188952
+ };
188953
+ };
188954
+ responses: {
188955
+ /** @description Confirmed, already confirmed, closed or invalid, as a page. */
188956
+ 200: {
188957
+ headers: {
188958
+ [name: string]: unknown;
188959
+ };
188960
+ content: {
188961
+ "text/html": string;
188962
+ };
188963
+ };
188964
+ };
188965
+ };
188579
188966
  emailMarketingOpenPixel: {
188580
188967
  parameters: {
188581
188968
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1598",
3
+ "version": "0.1.1600",
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>",