@zinn-digital/sdk 0.1.1582 → 0.1.1584

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.
@@ -33508,6 +33508,26 @@ export interface paths {
33508
33508
  patch: operations["updateEmailMarketingCampaign"];
33509
33509
  trace?: never;
33510
33510
  };
33511
+ "/v1/email-marketing/campaigns/{campaign_id}/lint": {
33512
+ parameters: {
33513
+ query?: never;
33514
+ header?: never;
33515
+ path?: never;
33516
+ cookie?: never;
33517
+ };
33518
+ /**
33519
+ * Check a campaign's copy for deliverability problems before it is sent.
33520
+ * @description Gated on `email_marketing.view`. Rules only, run during the request, nothing billed: the subject (missing, too long, shouting, repeated punctuation, a fake `Re:`), the body (missing, tags mail clients strip, size over Gmail's clipping line, the image-to-text ratio, images without `alt`), every link (not http(s), an IP address, a public URL shortener, plain http, visible text naming a different domain than the link), the postal address the footer needs, and phrases spam filters score. Each finding is a stable `code` with a `severity` and `params`; the dashboard words it in the reader's language. The unsubscribe link and postal address are added to every message, so a body without them is not a finding.
33521
+ */
33522
+ get: operations["lintEmailMarketingCampaign"];
33523
+ put?: never;
33524
+ post?: never;
33525
+ delete?: never;
33526
+ options?: never;
33527
+ head?: never;
33528
+ patch?: never;
33529
+ trace?: never;
33530
+ };
33511
33531
  "/v1/email-marketing/campaigns/{campaign_id}/report": {
33512
33532
  parameters: {
33513
33533
  query?: never;
@@ -77492,6 +77512,12 @@ export interface components {
77492
77512
  * @example paypal
77493
77513
  */
77494
77514
  gateway?: string | null;
77515
+ /**
77516
+ * Format: uuid
77517
+ * @description Which of the organisation's **own saved cards** pays (row 1107#10, owner 2026-11-07: *"they can save more than one card right so if so can they select it"*). An `id` from `listPaymentMethods` that is active, confirmed, unexpired and on the chosen `gateway`. The charge is pinned to that card for this order only; the account's primary and backup roles are not changed. Omit it (or send `null`) and the primary is tried first, then the backup, as before. Any other id (another organisation's, a revoked or expired card, a card on another rail) is refused `422` with `details[0].field = payment_method_id` before any order is placed.
77518
+ * @example 0190f1a2-7c3e-7b1a-9a55-2f7c4e1d0b3a
77519
+ */
77520
+ payment_method_id?: string | null;
77495
77521
  /** @description The owner of any domain this basket registers or transfers. Optional when the organization already has a complete default registrant (`getDefaultRegistrant`); when sent, it **becomes** that default, in the same transaction as the placement. Without either, a basket holding a `domain_register` or `domain_transfer` line is refused `422 REGISTRANT_REQUIRED` before anything is placed or charged. Ignored on an idempotent replay. */
77496
77522
  registrant?: components["schemas"]["Registrant"] | null;
77497
77523
  /** @description Q10 — `domain_name` → the fields that domain's registry demands beyond the registrant (`getTldRequirements` lists them per extension: ID / tax / company numbers, `.us` nexus, `.ca` legal type, registry acceptances …). Every `domain_register` / `domain_transfer` line is checked against its extension BEFORE anything is placed; a missing or invalid value is `422 REGISTRY_DATA_REQUIRED` with one `details[]` entry per problem (`domain`, `field`, `code`). Keys an extension does not declare are dropped. Write-only: never echoed on an order. */
@@ -82580,6 +82606,26 @@ export interface components {
82580
82606
  /** @description Mobile number in international format (+447700900123), for SMS and WhatsApp. */
82581
82607
  phone?: string;
82582
82608
  };
82609
+ EmailMarketingLint: {
82610
+ /** Format: uuid */
82611
+ campaign_id: string;
82612
+ errors: number;
82613
+ findings: components["schemas"]["EmailMarketingLintFinding"][];
82614
+ infos: number;
82615
+ warnings: number;
82616
+ };
82617
+ EmailMarketingLintFinding: {
82618
+ /** @enum {string} */
82619
+ code: "subject_missing" | "subject_long" | "subject_shouting" | "subject_punctuation" | "subject_fake_reply" | "body_missing" | "postal_address_missing" | "preheader_missing" | "text_part_generated" | "tag_stripped" | "html_clipped" | "links_many" | "link_invalid" | "link_ip_address" | "link_shortener" | "link_insecure" | "link_text_mismatch" | "image_alt_missing" | "image_text_ratio" | "trigger_phrases";
82620
+ /** @description The campaign field the finding is about (subject, subject_b, preheader, html, text, postal_address). */
82621
+ field: string;
82622
+ /** @description Values the message needs (length, max, host, tag, count, phrases, images, words, min_words, bytes). */
82623
+ params: {
82624
+ [key: string]: unknown;
82625
+ };
82626
+ /** @enum {string} */
82627
+ severity: "error" | "warning" | "info";
82628
+ };
82583
82629
  EmailMarketingList: {
82584
82630
  /** Format: date-time */
82585
82631
  created_at: string;
@@ -171182,6 +171228,34 @@ export interface operations {
171182
171228
  409: components["responses"]["Conflict"];
171183
171229
  };
171184
171230
  };
171231
+ lintEmailMarketingCampaign: {
171232
+ parameters: {
171233
+ query?: {
171234
+ /** @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). */
171235
+ org_id?: components["parameters"]["OrgIdQuery"];
171236
+ };
171237
+ header?: never;
171238
+ path: {
171239
+ campaign_id: string;
171240
+ };
171241
+ cookie?: never;
171242
+ };
171243
+ requestBody?: never;
171244
+ responses: {
171245
+ /** @description The findings, errors first. */
171246
+ 200: {
171247
+ headers: {
171248
+ [name: string]: unknown;
171249
+ };
171250
+ content: {
171251
+ "application/json": components["schemas"]["EmailMarketingLint"];
171252
+ };
171253
+ };
171254
+ 401: components["responses"]["Unauthorized"];
171255
+ 403: components["responses"]["Forbidden"];
171256
+ 404: components["responses"]["NotFound"];
171257
+ };
171258
+ };
171185
171259
  getEmailMarketingCampaignReport: {
171186
171260
  parameters: {
171187
171261
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1582",
3
+ "version": "0.1.1584",
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>",