@zinn-digital/sdk 0.1.1603 → 0.1.1605

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.
@@ -19686,7 +19686,7 @@ export interface paths {
19686
19686
  put?: never;
19687
19687
  /**
19688
19688
  * Withdraw outcomes you sent, by your own id (a full refund).
19689
- * @description Gated on `ads.manage` or `ads.outcomes.write` (KEYSCOPE — exact-org, see `sendAdsOutcomes`); audit action `ads.outcomes_retracted`. Up to 500 per request. Each `(kind, external_ref)` is treated exactly like a sale refunded in full (za-122): one not uploaded yet is never uploaded (`withheld`); one already uploaded gets ONE retraction, which the next upload run sends to the network as a conversion adjustment (`retracted`; the run is started now when any was). Idempotent: an outcome withdrawn before, or refunded by its checkout provider, is `already`; an id this connection never received is `not_found`. The adjustment's progress shows on `listAdsTrackingEvents`. Nothing is charged.
19689
+ * @description Gated on `ads.manage` or `ads.outcomes.write` (KEYSCOPE — exact-org, see `sendAdsOutcomes`); audit action `ads.outcomes_retracted`. Up to 500 per request. Each `(kind, external_ref)` is treated exactly like a sale refunded in full (za-122): one not uploaded yet is never uploaded (`withheld`); one already uploaded gets ONE retraction, which the next upload run sends to the network as a conversion adjustment (`retracted`; the run is started now when any was). Idempotent: an outcome withdrawn before, or refunded by its checkout provider, is `already`; an id this connection never received is `not_found`. The adjustment's progress shows on `listAdsTrackingEvents`. Nothing is charged. Open to a ChatGPT Ads account too (za-320, the outcomes its truth check compares): it takes no upload from us, so they are `withheld` and nothing is sent.
19690
19690
  */
19691
19691
  post: operations["retractAdsOutcomes"];
19692
19692
  delete?: never;
@@ -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;
@@ -171719,6 +171796,96 @@ export interface operations {
171719
171796
  422: components["responses"]["UnprocessableEntity"];
171720
171797
  };
171721
171798
  };
171799
+ getEmailMarketingBrandKit: {
171800
+ parameters: {
171801
+ query?: {
171802
+ /** @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). */
171803
+ org_id?: components["parameters"]["OrgIdQuery"];
171804
+ };
171805
+ header?: never;
171806
+ path?: never;
171807
+ cookie?: never;
171808
+ };
171809
+ requestBody?: never;
171810
+ responses: {
171811
+ /** @description The kit. */
171812
+ 200: {
171813
+ headers: {
171814
+ [name: string]: unknown;
171815
+ };
171816
+ content: {
171817
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171818
+ };
171819
+ };
171820
+ 401: components["responses"]["Unauthorized"];
171821
+ 403: components["responses"]["Forbidden"];
171822
+ };
171823
+ };
171824
+ updateEmailMarketingBrandKit: {
171825
+ parameters: {
171826
+ query?: {
171827
+ /** @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). */
171828
+ org_id?: components["parameters"]["OrgIdQuery"];
171829
+ };
171830
+ header?: never;
171831
+ path?: never;
171832
+ cookie?: never;
171833
+ };
171834
+ requestBody: {
171835
+ content: {
171836
+ "application/json": components["schemas"]["EmailMarketingBrandKitWrite"];
171837
+ };
171838
+ };
171839
+ responses: {
171840
+ /** @description The saved kit. */
171841
+ 200: {
171842
+ headers: {
171843
+ [name: string]: unknown;
171844
+ };
171845
+ content: {
171846
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171847
+ };
171848
+ };
171849
+ 400: components["responses"]["UnprocessableEntity"];
171850
+ 401: components["responses"]["Unauthorized"];
171851
+ 403: components["responses"]["Forbidden"];
171852
+ 409: components["responses"]["Conflict"];
171853
+ };
171854
+ };
171855
+ readEmailMarketingBrandKit: {
171856
+ parameters: {
171857
+ query?: {
171858
+ /** @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). */
171859
+ org_id?: components["parameters"]["OrgIdQuery"];
171860
+ };
171861
+ header?: never;
171862
+ path?: never;
171863
+ cookie?: never;
171864
+ };
171865
+ requestBody: {
171866
+ content: {
171867
+ "application/json": {
171868
+ /** @description The website's address, e.g. https://example.com. */
171869
+ url: string;
171870
+ };
171871
+ };
171872
+ };
171873
+ responses: {
171874
+ /** @description The read was started; the kit is `reading`. */
171875
+ 202: {
171876
+ headers: {
171877
+ [name: string]: unknown;
171878
+ };
171879
+ content: {
171880
+ "application/json": components["schemas"]["EmailMarketingBrandKit"];
171881
+ };
171882
+ };
171883
+ 400: components["responses"]["UnprocessableEntity"];
171884
+ 401: components["responses"]["Unauthorized"];
171885
+ 403: components["responses"]["Forbidden"];
171886
+ 409: components["responses"]["Conflict"];
171887
+ };
171888
+ };
171722
171889
  listEmailMarketingCampaigns: {
171723
171890
  parameters: {
171724
171891
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1603",
3
+ "version": "0.1.1605",
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>",