@zinn-digital/sdk 0.1.1598 → 0.1.1599

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;
@@ -171867,6 +172000,123 @@ export interface operations {
171867
172000
  503: components["responses"]["ServiceUnavailable"];
171868
172001
  };
171869
172002
  };
172003
+ listEmailMarketingForms: {
172004
+ parameters: {
172005
+ query?: {
172006
+ after?: string;
172007
+ limit?: number;
172008
+ /** @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). */
172009
+ org_id?: components["parameters"]["OrgIdQuery"];
172010
+ };
172011
+ header?: never;
172012
+ path?: never;
172013
+ cookie?: never;
172014
+ };
172015
+ requestBody?: never;
172016
+ responses: {
172017
+ /** @description One page of forms. */
172018
+ 200: {
172019
+ headers: {
172020
+ [name: string]: unknown;
172021
+ };
172022
+ content: {
172023
+ "application/json": components["schemas"]["EmailMarketingFormPage"];
172024
+ };
172025
+ };
172026
+ 401: components["responses"]["Unauthorized"];
172027
+ 403: components["responses"]["Forbidden"];
172028
+ };
172029
+ };
172030
+ createEmailMarketingForm: {
172031
+ parameters: {
172032
+ query?: {
172033
+ /** @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). */
172034
+ org_id?: components["parameters"]["OrgIdQuery"];
172035
+ };
172036
+ header?: never;
172037
+ path?: never;
172038
+ cookie?: never;
172039
+ };
172040
+ requestBody: {
172041
+ content: {
172042
+ "application/json": components["schemas"]["EmailMarketingFormWrite"];
172043
+ };
172044
+ };
172045
+ responses: {
172046
+ /** @description The form. */
172047
+ 201: {
172048
+ headers: {
172049
+ [name: string]: unknown;
172050
+ };
172051
+ content: {
172052
+ "application/json": components["schemas"]["EmailMarketingForm"];
172053
+ };
172054
+ };
172055
+ 400: components["responses"]["UnprocessableEntity"];
172056
+ 401: components["responses"]["Unauthorized"];
172057
+ 403: components["responses"]["Forbidden"];
172058
+ 404: components["responses"]["NotFound"];
172059
+ };
172060
+ };
172061
+ deleteEmailMarketingForm: {
172062
+ parameters: {
172063
+ query?: {
172064
+ /** @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). */
172065
+ org_id?: components["parameters"]["OrgIdQuery"];
172066
+ };
172067
+ header?: never;
172068
+ path: {
172069
+ form_id: string;
172070
+ };
172071
+ cookie?: never;
172072
+ };
172073
+ requestBody?: never;
172074
+ responses: {
172075
+ /** @description Deleted. */
172076
+ 204: {
172077
+ headers: {
172078
+ [name: string]: unknown;
172079
+ };
172080
+ content?: never;
172081
+ };
172082
+ 401: components["responses"]["Unauthorized"];
172083
+ 403: components["responses"]["Forbidden"];
172084
+ 404: components["responses"]["NotFound"];
172085
+ };
172086
+ };
172087
+ updateEmailMarketingForm: {
172088
+ parameters: {
172089
+ query?: {
172090
+ /** @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). */
172091
+ org_id?: components["parameters"]["OrgIdQuery"];
172092
+ };
172093
+ header?: never;
172094
+ path: {
172095
+ form_id: string;
172096
+ };
172097
+ cookie?: never;
172098
+ };
172099
+ requestBody: {
172100
+ content: {
172101
+ "application/json": components["schemas"]["EmailMarketingFormWrite"];
172102
+ };
172103
+ };
172104
+ responses: {
172105
+ /** @description The form. */
172106
+ 200: {
172107
+ headers: {
172108
+ [name: string]: unknown;
172109
+ };
172110
+ content: {
172111
+ "application/json": components["schemas"]["EmailMarketingForm"];
172112
+ };
172113
+ };
172114
+ 400: components["responses"]["UnprocessableEntity"];
172115
+ 401: components["responses"]["Unauthorized"];
172116
+ 403: components["responses"]["Forbidden"];
172117
+ 404: components["responses"]["NotFound"];
172118
+ };
172119
+ };
171870
172120
  listEmailMarketingImports: {
171871
172121
  parameters: {
171872
172122
  query?: {
@@ -188576,6 +188826,141 @@ export interface operations {
188576
188826
  };
188577
188827
  };
188578
188828
  };
188829
+ emailMarketingFormPage: {
188830
+ parameters: {
188831
+ query?: never;
188832
+ header?: never;
188833
+ path: {
188834
+ public_id: string;
188835
+ };
188836
+ cookie?: never;
188837
+ };
188838
+ requestBody?: never;
188839
+ responses: {
188840
+ /** @description The form page. */
188841
+ 200: {
188842
+ headers: {
188843
+ [name: string]: unknown;
188844
+ };
188845
+ content: {
188846
+ "text/html": string;
188847
+ };
188848
+ };
188849
+ };
188850
+ };
188851
+ emailMarketingFormSubmit: {
188852
+ parameters: {
188853
+ query?: never;
188854
+ header?: never;
188855
+ path: {
188856
+ public_id: string;
188857
+ };
188858
+ cookie?: never;
188859
+ };
188860
+ requestBody: {
188861
+ content: {
188862
+ "application/json": {
188863
+ email: string;
188864
+ };
188865
+ "application/x-www-form-urlencoded": {
188866
+ email: string;
188867
+ /** @description Honeypot; leave empty. */
188868
+ website_confirm?: string;
188869
+ };
188870
+ };
188871
+ };
188872
+ responses: {
188873
+ /** @description The "check your inbox" (or "closed") page. */
188874
+ 200: {
188875
+ headers: {
188876
+ [name: string]: unknown;
188877
+ };
188878
+ content: {
188879
+ "text/html": string;
188880
+ };
188881
+ };
188882
+ /** @description Accepted (JSON callers). */
188883
+ 202: {
188884
+ headers: {
188885
+ [name: string]: unknown;
188886
+ };
188887
+ content: {
188888
+ "application/json": {
188889
+ /** @enum {string} */
188890
+ status: "check_your_inbox";
188891
+ };
188892
+ };
188893
+ };
188894
+ /** @description To the form's redirect address. */
188895
+ 302: {
188896
+ headers: {
188897
+ [name: string]: unknown;
188898
+ };
188899
+ content?: never;
188900
+ };
188901
+ /** @description The form is closed (JSON callers). */
188902
+ 410: {
188903
+ headers: {
188904
+ [name: string]: unknown;
188905
+ };
188906
+ content: {
188907
+ "application/json": {
188908
+ /** @enum {string} */
188909
+ status: "closed";
188910
+ };
188911
+ };
188912
+ };
188913
+ 429: components["responses"]["TooManyRequests"];
188914
+ };
188915
+ };
188916
+ emailMarketingFormConfirmPage: {
188917
+ parameters: {
188918
+ query?: {
188919
+ l?: string;
188920
+ };
188921
+ header?: never;
188922
+ path?: never;
188923
+ cookie?: never;
188924
+ };
188925
+ requestBody?: never;
188926
+ responses: {
188927
+ /** @description The confirmation page. */
188928
+ 200: {
188929
+ headers: {
188930
+ [name: string]: unknown;
188931
+ };
188932
+ content: {
188933
+ "text/html": string;
188934
+ };
188935
+ };
188936
+ };
188937
+ };
188938
+ emailMarketingFormConfirm: {
188939
+ parameters: {
188940
+ query?: never;
188941
+ header?: never;
188942
+ path?: never;
188943
+ cookie?: never;
188944
+ };
188945
+ requestBody: {
188946
+ content: {
188947
+ "application/x-www-form-urlencoded": {
188948
+ token: string;
188949
+ };
188950
+ };
188951
+ };
188952
+ responses: {
188953
+ /** @description Confirmed, already confirmed, closed or invalid, as a page. */
188954
+ 200: {
188955
+ headers: {
188956
+ [name: string]: unknown;
188957
+ };
188958
+ content: {
188959
+ "text/html": string;
188960
+ };
188961
+ };
188962
+ };
188963
+ };
188579
188964
  emailMarketingOpenPixel: {
188580
188965
  parameters: {
188581
188966
  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.1599",
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>",