@zinn-digital/sdk 0.1.1808 → 0.1.1810

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.
@@ -19564,6 +19564,50 @@ export interface paths {
19564
19564
  patch?: never;
19565
19565
  trace?: never;
19566
19566
  };
19567
+ "/v1/ads/connections/{connection_id}/linkedin/campaigns": {
19568
+ parameters: {
19569
+ query?: never;
19570
+ header?: never;
19571
+ path: {
19572
+ connection_id: string;
19573
+ };
19574
+ cookie?: never;
19575
+ };
19576
+ /**
19577
+ * A LinkedIn ad account's campaigns with status, daily budget, bid and 7-day spend (LIFULL).
19578
+ * @description Gated on `ads.view`. Read from LinkedIn now: every campaign that is not removed, with its status, whether it serves now, its daily and total budget and its bid (micros of the campaign's currency, `null` when it has none) and its spend over the last `days` days. `write` is the connection's `linkedin_write` (whether LinkedIn granted `rw_ads`, so a change can be sent). Refusals (`422`): `noSuchConnection` (not a LinkedIn connection), `needsReconnect` (LinkedIn refused the sign-in: revoked or expired), `linkedinReadFailed` (LinkedIn did not answer; the error carries the §2.57 `failure` class and, on an outage, LinkedIn's status board).
19579
+ */
19580
+ get: operations["listAdsLinkedinCampaigns"];
19581
+ put?: never;
19582
+ post?: never;
19583
+ delete?: never;
19584
+ options?: never;
19585
+ head?: never;
19586
+ patch?: never;
19587
+ trace?: never;
19588
+ };
19589
+ "/v1/ads/connections/{connection_id}/linkedin/changes": {
19590
+ parameters: {
19591
+ query?: never;
19592
+ header?: never;
19593
+ path: {
19594
+ connection_id: string;
19595
+ };
19596
+ cookie?: never;
19597
+ };
19598
+ get?: never;
19599
+ put?: never;
19600
+ /**
19601
+ * Pause, resume, re-budget or re-bid one LinkedIn campaign — the click is the approval (LIFULL).
19602
+ * @description Gated on `ads.manage`; audit action `ads.linkedin_change`. The request is built from the campaign as LinkedIn holds it now, proposed and approved in one step, then sent by the apply workflow through the same gate as every write (kill switches, good standing, the spend ceilings weighed against the serving campaigns' daily budgets), with a 30-day Undo that puts back exactly what LinkedIn held. `amount_micros` is the new daily budget (`budget`) or bid (`bid`) in micros of the campaign's currency. Refusals (`422`): `noSuchConnection`, `linkedinNeedsWriteScope` (the grant is read-only: reconnect), `noSuchAd` (no such campaign), `linkedinNotEditable` (no budget or bid of its own, a bad amount, nothing would change, or the request carries a `placements` key: placement changes are never sent, so such a request is refused whole), `killed`, `paused`, `disconnected`, `notInGoodStanding`, `needsReconnect` and `linkedinReadFailed` (reading the campaign from LinkedIn failed; nothing is kept or sent). LinkedIn's Development Tier accepts changes only on the ad accounts listed on our app; a change it refuses fails on the change itself with `linkedinWriteNotAllowed`.
19603
+ */
19604
+ post: operations["createAdsLinkedinChange"];
19605
+ delete?: never;
19606
+ options?: never;
19607
+ head?: never;
19608
+ patch?: never;
19609
+ trace?: never;
19610
+ };
19567
19611
  "/v1/ads/connections/{connection_id}/matching-pages": {
19568
19612
  parameters: {
19569
19613
  query?: never;
@@ -67849,6 +67893,11 @@ export interface components {
67849
67893
  id: string;
67850
67894
  label: string;
67851
67895
  ladder_signals: components["schemas"]["AdsLadderSignals"];
67896
+ /** @description LIFULL: on a LinkedIn connection, whether its sign-in granted `rw_ads` (LinkedIn's own answer on the grant, never a typed flag), so an approved change can be sent; `null` on every other network. `needs_reconnect` true = a read-only grant: show the LinkedIn Reconnect prompt so approved changes can be sent. LinkedIn's Development Tier allows changes on a limited set of ad accounts; a change LinkedIn refuses there fails with `linkedinWriteNotAllowed` on the change itself. */
67897
+ linkedin_write?: {
67898
+ granted: boolean;
67899
+ needs_reconnect: boolean;
67900
+ } | null;
67852
67901
  /** @description The manager account it is reached through. */
67853
67902
  login_external_id: string;
67854
67903
  /** @description Where new campaigns may run; empty = no limit. Launch skips the rest. */
@@ -70997,6 +71046,33 @@ export interface components {
70997
71046
  };
70998
71047
  unlaunch?: components["schemas"]["AdsBriefUnlaunch"];
70999
71048
  };
71049
+ /** @description One LinkedIn campaign (LIFULL). Money is micros of `currency` (§2.8). */
71050
+ AdsLinkedinCampaign: {
71051
+ /** @description CPC, CPM, … */
71052
+ cost_type: string;
71053
+ /** @description ISO 4217 code. */
71054
+ currency: string;
71055
+ /** Format: int64 */
71056
+ daily_budget_micros: number | null;
71057
+ id: string;
71058
+ name: string;
71059
+ /** @description Serving now: ACTIVE, inside its run schedule and on no serving hold. */
71060
+ serving: boolean;
71061
+ /**
71062
+ * Format: int64
71063
+ * @description Spend over the response's `days`.
71064
+ */
71065
+ spend_micros: number;
71066
+ /** @description LinkedIn's campaign status (ACTIVE, PAUSED, DRAFT, ARCHIVED, …). */
71067
+ status: string;
71068
+ /** Format: int64 */
71069
+ total_budget_micros: number | null;
71070
+ /**
71071
+ * Format: int64
71072
+ * @description The bid.
71073
+ */
71074
+ unit_cost_micros: number | null;
71075
+ };
71000
71076
  AdsMarketLanguage: {
71001
71077
  /** @enum {string} */
71002
71078
  code: "" | "languageNotOnSite" | "languageNotTargetable";
@@ -153551,6 +153627,84 @@ export interface operations {
153551
153627
  429: components["responses"]["TooManyRequests"];
153552
153628
  };
153553
153629
  };
153630
+ listAdsLinkedinCampaigns: {
153631
+ parameters: {
153632
+ query?: never;
153633
+ header?: never;
153634
+ path: {
153635
+ connection_id: string;
153636
+ };
153637
+ cookie?: never;
153638
+ };
153639
+ requestBody?: never;
153640
+ responses: {
153641
+ /** @description The account's campaigns. */
153642
+ 200: {
153643
+ headers: {
153644
+ [name: string]: unknown;
153645
+ };
153646
+ content: {
153647
+ "application/json": {
153648
+ /** Format: uuid */
153649
+ connection_id: string;
153650
+ /** @description ISO 4217 code of the ad account. */
153651
+ currency: string;
153652
+ data: components["schemas"]["AdsLinkedinCampaign"][];
153653
+ days: number;
153654
+ write: {
153655
+ granted: boolean;
153656
+ needs_reconnect: boolean;
153657
+ } | null;
153658
+ };
153659
+ };
153660
+ };
153661
+ 401: components["responses"]["Unauthorized"];
153662
+ 403: components["responses"]["Forbidden"];
153663
+ 404: components["responses"]["NotFound"];
153664
+ 422: components["responses"]["UnprocessableEntity"];
153665
+ 429: components["responses"]["TooManyRequests"];
153666
+ };
153667
+ };
153668
+ createAdsLinkedinChange: {
153669
+ parameters: {
153670
+ query?: never;
153671
+ header?: never;
153672
+ path: {
153673
+ connection_id: string;
153674
+ };
153675
+ cookie?: never;
153676
+ };
153677
+ requestBody: {
153678
+ content: {
153679
+ "application/json": {
153680
+ /** @enum {string} */
153681
+ action: "pause" | "enable" | "budget" | "bid";
153682
+ /**
153683
+ * Format: int64
153684
+ * @description The new daily budget or bid in micros of the campaign's currency (1 unit = 1,000,000).
153685
+ */
153686
+ amount_micros?: number;
153687
+ campaign_id: string;
153688
+ };
153689
+ };
153690
+ };
153691
+ responses: {
153692
+ /** @description Approved; the apply workflow sends it. */
153693
+ 202: {
153694
+ headers: {
153695
+ [name: string]: unknown;
153696
+ };
153697
+ content: {
153698
+ "application/json": components["schemas"]["AdsChange"];
153699
+ };
153700
+ };
153701
+ 401: components["responses"]["Unauthorized"];
153702
+ 403: components["responses"]["Forbidden"];
153703
+ 404: components["responses"]["NotFound"];
153704
+ 422: components["responses"]["UnprocessableEntity"];
153705
+ 429: components["responses"]["TooManyRequests"];
153706
+ };
153707
+ };
153554
153708
  listAdsMatchingPages: {
153555
153709
  parameters: {
153556
153710
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1808",
3
+ "version": "0.1.1810",
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>",