@zinn-digital/sdk 0.1.1604 → 0.1.1606

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.
@@ -33523,6 +33523,50 @@ export interface paths {
33523
33523
  patch?: never;
33524
33524
  trace?: never;
33525
33525
  };
33526
+ "/v1/email-marketing/brand-kit": {
33527
+ parameters: {
33528
+ query?: never;
33529
+ header?: never;
33530
+ path?: never;
33531
+ cookie?: never;
33532
+ };
33533
+ /**
33534
+ * The organisation's brand kit (name, logo, colours, font, voice).
33535
+ * @description Gated on `email_marketing.view`. One kit per organisation; an organisation without one gets the empty kit (`status: manual`). `status` is `reading` while the website is being read, then `ready`, or `failed` with `status_code` (`siteUnreadable`: the address could not be read; the kit keeps its earlier values).
33536
+ */
33537
+ get: operations["getEmailMarketingBrandKit"];
33538
+ /**
33539
+ * Edit the brand kit.
33540
+ * @description Gated on `email_marketing.manage`. Only the fields sent change. A colour is `#rrggbb` (or `#rgb`), the logo an absolute `https://` address, the font a plain family name; anything else is refused with `400` (`refusal.campaigns.brandInvalid`, the field in `details`) and nothing is saved. With `apply_to_emails` on, every email on the `basic` template is dressed in the kit (the logo or the name on a band in the primary colour, the font, links in the accent colour); a `raw` email is sent as written. The name and voice are given to the AI writer. Audited as `email_marketing.brand_kit.update`.
33541
+ */
33542
+ put: operations["updateEmailMarketingBrandKit"];
33543
+ post?: never;
33544
+ delete?: never;
33545
+ options?: never;
33546
+ head?: never;
33547
+ patch?: never;
33548
+ trace?: never;
33549
+ };
33550
+ "/v1/email-marketing/brand-kit/read": {
33551
+ parameters: {
33552
+ query?: never;
33553
+ header?: never;
33554
+ path?: never;
33555
+ cookie?: never;
33556
+ };
33557
+ get?: never;
33558
+ put?: never;
33559
+ /**
33560
+ * Read the brand kit from the organisation's website.
33561
+ * @description Gated on `email_marketing.manage`. Starts a durable workflow (`202`) that reads the home page and at most two of its stylesheets on the same host (every address checked to be public, bodies capped) and fills the name, logo, primary and accent colours and font it finds; a value the site does not show keeps the kit's earlier value, and the voice is never overwritten. Free: no AI and nothing billed. A plain address is read as `https://`; anything that is not a web address is refused with `400` (`refusal.campaigns.brandUrl`). Poll `GET /v1/email-marketing/brand-kit` for the result. Audited as `email_marketing.brand_kit.read`.
33562
+ */
33563
+ post: operations["readEmailMarketingBrandKit"];
33564
+ delete?: never;
33565
+ options?: never;
33566
+ head?: never;
33567
+ patch?: never;
33568
+ trace?: never;
33569
+ };
33526
33570
  "/v1/email-marketing/campaigns": {
33527
33571
  parameters: {
33528
33572
  query?: never;
@@ -82790,6 +82834,39 @@ export interface components {
82790
82834
  */
82791
82835
  tone: "friendly" | "professional" | "playful" | "urgent" | "calm";
82792
82836
  };
82837
+ EmailMarketingBrandKit: {
82838
+ /** @description #rrggbb, or empty. */
82839
+ accent_color: string;
82840
+ apply_to_emails: boolean;
82841
+ font: string;
82842
+ /** @description An absolute https:// address, or empty. */
82843
+ logo_url: string;
82844
+ name: string;
82845
+ /** @description #rrggbb, or empty. */
82846
+ primary_color: string;
82847
+ /** Format: date-time */
82848
+ read_at: string | null;
82849
+ /** @description The website the kit was last read from. */
82850
+ source_url: string;
82851
+ /** @enum {string} */
82852
+ status: "manual" | "reading" | "ready" | "failed";
82853
+ /** @description Why a read failed (siteUnreadable), else empty. */
82854
+ status_code: string;
82855
+ /** Format: date-time */
82856
+ updated_at: string | null;
82857
+ /** @description How the business writes; given to the AI writer. */
82858
+ voice: string;
82859
+ };
82860
+ EmailMarketingBrandKitWrite: {
82861
+ accent_color?: string;
82862
+ apply_to_emails?: boolean;
82863
+ font?: string;
82864
+ logo_url?: string;
82865
+ name?: string;
82866
+ primary_color?: string;
82867
+ source_url?: string;
82868
+ voice?: string;
82869
+ };
82793
82870
  EmailMarketingCampaign: {
82794
82871
  /** Format: date-time */
82795
82872
  ab_decided_at: string | null;
@@ -151225,10 +151302,14 @@ export interface operations {
151225
151302
  campaign_feed: boolean;
151226
151303
  capabilities: ("search_terms" | "keywords" | "negatives" | "bids" | "budgets" | "audiences" | "creatives" | "placements")[];
151227
151304
  click_id: string;
151305
+ /** @description ZA320-FU2: conversion tracking UPLOADS to this network (missed-conversion recovery, upload actions, profit values, CRM / checkout / product sources). */
151306
+ conversion_upload: boolean;
151228
151307
  label: string;
151229
151308
  platform: string;
151230
151309
  /** @description The network's own status board (the §2.57 vendor registry), `""` when it publishes none. The Connect screen links it when a sign-in failed with `why=provider_outage` (CBRETRY). */
151231
151310
  status_url: string;
151311
+ /** @description ZA320-FU2: the tracking truth check reads what this network credited (ChatGPT Ads: read only, no upload). */
151312
+ truth_check: boolean;
151232
151313
  }[];
151233
151314
  };
151234
151315
  };
@@ -171719,6 +171800,96 @@ export interface operations {
171719
171800
  422: components["responses"]["UnprocessableEntity"];
171720
171801
  };
171721
171802
  };
171803
+ getEmailMarketingBrandKit: {
171804
+ parameters: {
171805
+ query?: {
171806
+ /** @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). */
171807
+ org_id?: components["parameters"]["OrgIdQuery"];
171808
+ };
171809
+ header?: never;
171810
+ path?: never;
171811
+ cookie?: never;
171812
+ };
171813
+ requestBody?: never;
171814
+ responses: {
171815
+ /** @description The kit. */
171816
+ 200: {
171817
+ headers: {
171818
+ [name: string]: unknown;
171819
+ };
171820
+ content: {
171821
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171822
+ };
171823
+ };
171824
+ 401: components["responses"]["Unauthorized"];
171825
+ 403: components["responses"]["Forbidden"];
171826
+ };
171827
+ };
171828
+ updateEmailMarketingBrandKit: {
171829
+ parameters: {
171830
+ query?: {
171831
+ /** @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). */
171832
+ org_id?: components["parameters"]["OrgIdQuery"];
171833
+ };
171834
+ header?: never;
171835
+ path?: never;
171836
+ cookie?: never;
171837
+ };
171838
+ requestBody: {
171839
+ content: {
171840
+ "application/json": components["schemas"]["EmailMarketingBrandKitWrite"];
171841
+ };
171842
+ };
171843
+ responses: {
171844
+ /** @description The saved kit. */
171845
+ 200: {
171846
+ headers: {
171847
+ [name: string]: unknown;
171848
+ };
171849
+ content: {
171850
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171851
+ };
171852
+ };
171853
+ 400: components["responses"]["UnprocessableEntity"];
171854
+ 401: components["responses"]["Unauthorized"];
171855
+ 403: components["responses"]["Forbidden"];
171856
+ 409: components["responses"]["Conflict"];
171857
+ };
171858
+ };
171859
+ readEmailMarketingBrandKit: {
171860
+ parameters: {
171861
+ query?: {
171862
+ /** @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). */
171863
+ org_id?: components["parameters"]["OrgIdQuery"];
171864
+ };
171865
+ header?: never;
171866
+ path?: never;
171867
+ cookie?: never;
171868
+ };
171869
+ requestBody: {
171870
+ content: {
171871
+ "application/json": {
171872
+ /** @description The website's address, e.g. https://example.com. */
171873
+ url: string;
171874
+ };
171875
+ };
171876
+ };
171877
+ responses: {
171878
+ /** @description The read was started; the kit is `reading`. */
171879
+ 202: {
171880
+ headers: {
171881
+ [name: string]: unknown;
171882
+ };
171883
+ content: {
171884
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171885
+ };
171886
+ };
171887
+ 400: components["responses"]["UnprocessableEntity"];
171888
+ 401: components["responses"]["Unauthorized"];
171889
+ 403: components["responses"]["Forbidden"];
171890
+ 409: components["responses"]["Conflict"];
171891
+ };
171892
+ };
171722
171893
  listEmailMarketingCampaigns: {
171723
171894
  parameters: {
171724
171895
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1604",
3
+ "version": "0.1.1606",
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>",