@zinn-digital/sdk 0.1.1535 → 0.1.1539
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.
- package/dist/generated/schema.d.ts +47 -16
- package/package.json +1 -1
|
@@ -17625,7 +17625,7 @@ export interface paths {
|
|
|
17625
17625
|
head?: never;
|
|
17626
17626
|
/**
|
|
17627
17627
|
* Set the customer's own AI Max guard rules; a rule sent as null is Reset to recommended (za-204).
|
|
17628
|
-
* @description Gated on `ads.manage` and written to the organisation's activity log. `rules` is merged over the stored rules; a key sent as `null` returns to its Recommended value and `"rules": null` resets every rule. A number outside `bounds` refuses with `
|
|
17628
|
+
* @description Gated on `ads.manage` and written to the organisation's activity log. `rules` is merged over the stored rules; a key sent as `null` returns to its Recommended value and `"rules": null` resets every rule. A number outside `bounds` refuses with `badAiMaxRule` naming the field.
|
|
17629
17629
|
*/
|
|
17630
17630
|
patch: operations["updateAdsAiMaxRules"];
|
|
17631
17631
|
trace?: never;
|
|
@@ -19096,7 +19096,7 @@ export interface paths {
|
|
|
19096
19096
|
head?: never;
|
|
19097
19097
|
/**
|
|
19098
19098
|
* Change the feed audit's settings (za-188).
|
|
19099
|
-
* @description Gated on `ads.manage`; audit action `ads.merchant_feed_update`. `mode` `off` stops the audit; `waste_threshold_micros` `null` resets the waste threshold to Recommended; `store_id` is the Microsoft Merchant Center store (digits). Refusals: `badState` (an unknown field, mode or store id), `
|
|
19099
|
+
* @description Gated on `ads.manage`; audit action `ads.merchant_feed_update`. `mode` `off` stops the audit; `waste_threshold_micros` `null` resets the waste threshold to Recommended; `store_id` is the Microsoft Merchant Center store (digits). Refusals: `badState` (an unknown field, mode or store id), `badFeedSetting` (a threshold that is not a positive whole number of micros), `platformNotSupported` (a network with no Shopping feed).
|
|
19100
19100
|
*/
|
|
19101
19101
|
patch: operations["updateAdsMerchantFeed"];
|
|
19102
19102
|
trace?: never;
|
|
@@ -20001,7 +20001,7 @@ export interface paths {
|
|
|
20001
20001
|
head?: never;
|
|
20002
20002
|
/**
|
|
20003
20003
|
* The account's own Quality Score fixer values (QSFIX, za-N11).
|
|
20004
|
-
* @description Gated on `ads.manage`; audit action `ads.qs_fix_settings`. Each value is the customer's to set; `null` puts it back to the recommended value. `422
|
|
20004
|
+
* @description Gated on `ads.manage`; audit action `ads.qs_fix_settings`. Each value is the customer's to set; `null` puts it back to the recommended value. `422 badQsFixSetting` (naming the field) outside the bounds shown on `GET`, for a value that is not a whole number, or for an unknown field.
|
|
20005
20005
|
*/
|
|
20006
20006
|
patch: operations["updateAdsQualityScoreSettings"];
|
|
20007
20007
|
trace?: never;
|
|
@@ -20331,7 +20331,7 @@ export interface paths {
|
|
|
20331
20331
|
get: operations["getAdsSeasonalPlanner"];
|
|
20332
20332
|
/**
|
|
20333
20333
|
* Edit the seasonal planner's thresholds or mode, or reset them to Recommended.
|
|
20334
|
-
* @description Gated on `ads.manage`; audit action `ads.seasonal_settings`. `settings` keys: `peak_pct`, `quiet_pct`, `lead_days`, `budget_max_pct`, `min_history_months`, `min_clicks`, `bid_days`, `bid_min_change_pct`, `bid_min_conversions`; `null` sets one back to Recommended. `mode` `suggest` or `off`. `reset: true` sets every one back to Recommended. A value outside its bounds is refused `refusal.adsconnect.
|
|
20334
|
+
* @description Gated on `ads.manage`; audit action `ads.seasonal_settings`. `settings` keys: `peak_pct`, `quiet_pct`, `lead_days`, `budget_max_pct`, `min_history_months`, `min_clicks`, `bid_days`, `bid_min_change_pct`, `bid_min_conversions`; `null` sets one back to Recommended. `mode` `suggest` or `off`. `reset: true` sets every one back to Recommended. A value outside its bounds is refused `refusal.adsconnect.badSeasonalSetting`.
|
|
20335
20335
|
*/
|
|
20336
20336
|
put: operations["setAdsSeasonalPlanner"];
|
|
20337
20337
|
post?: never;
|
|
@@ -58526,7 +58526,7 @@ export interface components {
|
|
|
58526
58526
|
* @description The org to record against; optional when the caller owns exactly one.
|
|
58527
58527
|
*/
|
|
58528
58528
|
org_id?: string;
|
|
58529
|
-
/** @description Captured on landing. Kept keys: utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, gbraid, wbraid, fbclid, ttclid, msclkid, twclid (a malformed twclid is dropped), ref, zd_vid, referrer_host, landing_page, and entry (only the value `direct`). Others are dropped. */
|
|
58529
|
+
/** @description Captured on landing. Kept keys: utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, gbraid, wbraid, fbclid, ttclid, msclkid, twclid (a malformed twclid is dropped), oppref, ref, zd_vid, referrer_host, landing_page, and entry (only the value `direct`). Others are dropped. */
|
|
58530
58530
|
touch: {
|
|
58531
58531
|
[key: string]: string;
|
|
58532
58532
|
};
|
|
@@ -58904,6 +58904,7 @@ export interface components {
|
|
|
58904
58904
|
/** Format: date-time */
|
|
58905
58905
|
updated_at: string | null;
|
|
58906
58906
|
};
|
|
58907
|
+
/** @description A refused setting is named in its own words (VERIFY-OFFERFIT): each field's `422` code is the one whose copy names that setting (`badOfferProfile`, `badPacingSetting`, `badCtaWords`, …); only the new-country fields keep `badLimit`. */
|
|
58907
58908
|
AdminAdsConnectionUpdate: {
|
|
58908
58909
|
ceiling_currency?: string;
|
|
58909
58910
|
/** Format: int64 */
|
|
@@ -59938,7 +59939,7 @@ export interface components {
|
|
|
59938
59939
|
subscriptions?: components["schemas"]["Subscription"][];
|
|
59939
59940
|
tickets: components["schemas"]["AdminTicket"][];
|
|
59940
59941
|
};
|
|
59941
|
-
/** @description Where the customer came from (BHWTRACK, 2026-11-03): the FIRST touch, written once and never overwritten (what brought them to us), and the LAST touch, replaced on every recorded campaign visit (what brought them back to buy). Each touch is the allow-listed set the attribution capture keeps - `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, the click ids (`gclid`, `gbraid`, `wbraid`, `fbclid`, `ttclid`, `msclkid`, `twclid`), `ref`, `landing_page` (host + path), `referrer_host`, `zd_vid`, `entry`. An empty object with a null time means no touch was recorded (an account created by staff, a partner or an import), which is not the same as a direct visit. */
|
|
59942
|
+
/** @description Where the customer came from (BHWTRACK, 2026-11-03): the FIRST touch, written once and never overwritten (what brought them to us), and the LAST touch, replaced on every recorded campaign visit (what brought them back to buy). Each touch is the allow-listed set the attribution capture keeps - `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, the click ids (`gclid`, `gbraid`, `wbraid`, `fbclid`, `ttclid`, `msclkid`, `twclid`, `oppref`), `ref`, `landing_page` (host + path), `referrer_host`, `zd_vid`, `entry`. An empty object with a null time means no touch was recorded (an account created by staff, a partner or an import), which is not the same as a direct visit. */
|
|
59942
59943
|
AdminCustomerAttribution: {
|
|
59943
59944
|
first: {
|
|
59944
59945
|
[key: string]: string;
|
|
@@ -61475,6 +61476,8 @@ export interface components {
|
|
|
61475
61476
|
channels: {
|
|
61476
61477
|
[key: string]: ("telegram" | "email" | "slack")[];
|
|
61477
61478
|
};
|
|
61479
|
+
/** @description A sign-up, trial start or payment whose first touch came from the ChatGPT ads (utm_source=chatgpt or an oppref click id): e-mail + Telegram, once per conversion, the org name and the value only (za-321, ON by default — the owner asked for it). */
|
|
61480
|
+
chatgpt_ads_conversion?: boolean;
|
|
61478
61481
|
dry_run?: {
|
|
61479
61482
|
/** @description business_live only: events per switch. */
|
|
61480
61483
|
by_switch?: {
|
|
@@ -61484,7 +61487,7 @@ export interface components {
|
|
|
61484
61487
|
/** @description business_live only: how many events the message covers. */
|
|
61485
61488
|
items?: number;
|
|
61486
61489
|
/** @enum {string} */
|
|
61487
|
-
kind?: "activated" | "ended_unconverted" | "late_conversion" | "free_plan_signup" | "free_plan_upgrade" | "business_live";
|
|
61490
|
+
kind?: "activated" | "ended_unconverted" | "late_conversion" | "free_plan_signup" | "free_plan_upgrade" | "business_live" | "chatgpt_ads_signup" | "chatgpt_ads_trial" | "chatgpt_ads_payment";
|
|
61488
61491
|
/** @description business_live only: the message body, line by line (capped). */
|
|
61489
61492
|
lines?: string[];
|
|
61490
61493
|
/** @description The org's uuid; empty for the batched business_live message (see org_ids). */
|
|
@@ -61525,6 +61528,7 @@ export interface components {
|
|
|
61525
61528
|
channels?: {
|
|
61526
61529
|
[key: string]: ("telegram" | "email" | "slack")[];
|
|
61527
61530
|
};
|
|
61531
|
+
chatgpt_ads_conversion?: boolean;
|
|
61528
61532
|
free_plan_signup?: boolean;
|
|
61529
61533
|
free_plan_upgrade?: boolean;
|
|
61530
61534
|
live_failed_payments?: boolean;
|
|
@@ -64082,6 +64086,14 @@ export interface components {
|
|
|
64082
64086
|
new_country_min_clicks: number;
|
|
64083
64087
|
/** @description The trigger — conversions the country brought in 30 days. */
|
|
64084
64088
|
new_country_min_conversions: number;
|
|
64089
|
+
/** @description OFFERFIT (docs/1006.d/features/za-261-offerfit.md): per Google campaign id, what the campaign sells. `auto` is the profile the daily audit read from its ads, keywords and landing pages (null until the first audit); `edit` is the customer's own words, which win when present. Every search and own keyword is judged against the profile in force: a search judged off it is blocked EXACT from its first click, an off-offer keyword, a tighter match type and a PHRASE negative are one-click proposals. */
|
|
64090
|
+
offer_profiles: {
|
|
64091
|
+
[key: string]: {
|
|
64092
|
+
auto: null | components["schemas"]["AdsOfferProfile"];
|
|
64093
|
+
edit: null | components["schemas"]["AdsOfferProfileEdit"];
|
|
64094
|
+
edited: boolean;
|
|
64095
|
+
};
|
|
64096
|
+
};
|
|
64085
64097
|
/** Format: uuid */
|
|
64086
64098
|
org_id: string;
|
|
64087
64099
|
/** @description za-199 — the most one pacing run changes a budget, percent (default 30). */
|
|
@@ -65653,7 +65665,7 @@ export interface components {
|
|
|
65653
65665
|
/** @description The plain English sentence the daily e-mail carries. */
|
|
65654
65666
|
why: string;
|
|
65655
65667
|
};
|
|
65656
|
-
/** @description BUILDL3 (gap a) — one account can sell two kinds of thing (hosting judged on a real domain going live, plugins on installs), so a campaign can carry its own `business_type` and/or `signals` (the `AdsLadderSignals` shape); the account's choice fills whatever it does not set, and a campaign not listed follows the account. Keyed by the network's campaign id (digits), at most 500; an empty entry is dropped. `422
|
|
65668
|
+
/** @description BUILDL3 (gap a) — one account can sell two kinds of thing (hosting judged on a real domain going live, plugins on installs), so a campaign can carry its own `business_type` and/or `signals` (the `AdsLadderSignals` shape); the account's choice fills whatever it does not set, and a campaign not listed follows the account. Keyed by the network's campaign id (digits), at most 500; an empty entry is dropped. `422 badLadderSetting` otherwise. */
|
|
65657
65669
|
AdsCampaignLadder: {
|
|
65658
65670
|
[key: string]: {
|
|
65659
65671
|
business_type?: components["schemas"]["AdsBusinessType"];
|
|
@@ -65998,13 +66010,13 @@ export interface components {
|
|
|
65998
66010
|
business_type?: components["schemas"]["AdsBusinessType"];
|
|
65999
66011
|
campaign_ladder?: components["schemas"]["AdsCampaignLadder"];
|
|
66000
66012
|
ceiling_currency?: string;
|
|
66001
|
-
/** @description WASTEFIX r3 — the customer's own cluster size; null = back to the recommended 5. Out of range is `422
|
|
66013
|
+
/** @description WASTEFIX r3 — the customer's own cluster size; null = back to the recommended 5. Out of range is `422 badWasteSetting`. */
|
|
66002
66014
|
cluster_min_terms?: number | null;
|
|
66003
66015
|
/** @enum {string} */
|
|
66004
66016
|
collision_mode?: "approve" | "refuse";
|
|
66005
66017
|
competitor_automation?: boolean;
|
|
66006
66018
|
conversion_lag_days?: number | null;
|
|
66007
|
-
/** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422
|
|
66019
|
+
/** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badCountryCutSetting`. */
|
|
66008
66020
|
country_cut_keep?: string[];
|
|
66009
66021
|
country_cut_on?: boolean;
|
|
66010
66022
|
country_cut_rate_pct?: number;
|
|
@@ -66014,15 +66026,15 @@ export interface components {
|
|
|
66014
66026
|
country_cut_window_days?: number;
|
|
66015
66027
|
/** @enum {string} */
|
|
66016
66028
|
country_waste_mode?: "auto" | "suggest" | "off";
|
|
66017
|
-
/** @description Trimmed and de-duplicated; more than 10 or one over 60 characters is `422
|
|
66029
|
+
/** @description Trimmed and de-duplicated; more than 10 or one over 60 characters is `422 badCtaWords`. */
|
|
66018
66030
|
cta_words?: string[];
|
|
66019
66031
|
/** Format: int64 */
|
|
66020
66032
|
daily_ceiling_minor?: number | null;
|
|
66021
|
-
/** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422
|
|
66033
|
+
/** @description ISO 3166-1 alpha-2 codes Google can target; anything else is `422 badExcludedCountries`. */
|
|
66022
66034
|
excluded_countries?: string[];
|
|
66023
66035
|
/** @description ADSFOCUS-GUARD (za-258) — the customer's own floor of account conversions for the campaign-focus switch; null = back to the recommended 15. Out of range is `422 badLimit`. */
|
|
66024
66036
|
focus_min_conversions?: number | null;
|
|
66025
|
-
/** @description za-251: Google campaign ids whose product has a free plan / free listing (replaces the list; digits only, de-duplicated). Anything else is `422
|
|
66037
|
+
/** @description za-251: Google campaign ids whose product has a free plan / free listing (replaces the list; digits only, de-duplicated). Anything else is `422 badFreePlanCampaigns`. */
|
|
66026
66038
|
free_plan_campaigns?: string[];
|
|
66027
66039
|
hold_until_sale?: boolean;
|
|
66028
66040
|
label?: string;
|
|
@@ -66038,6 +66050,10 @@ export interface components {
|
|
|
66038
66050
|
new_country_max_per_month?: number;
|
|
66039
66051
|
new_country_min_clicks?: number;
|
|
66040
66052
|
new_country_min_conversions?: number;
|
|
66053
|
+
/** @description OFFERFIT: `{campaign_id: profile | null}` — the customer's own words for what a campaign sells (`sells` required, up to 20 items of 120 characters each); `null` resets it to the automatic profile. Campaigns not named are unchanged. No `sells` is `422 badOfferProfile` (field `offer_profile.sells`). */
|
|
66054
|
+
offer_profiles?: {
|
|
66055
|
+
[key: string]: null | components["schemas"]["AdsOfferProfileEdit"];
|
|
66056
|
+
};
|
|
66041
66057
|
pacing_change_cap_pct?: number;
|
|
66042
66058
|
pacing_deviation_pct?: number;
|
|
66043
66059
|
pacing_minimums?: {
|
|
@@ -66061,7 +66077,7 @@ export interface components {
|
|
|
66061
66077
|
rsa_test_min_days?: number;
|
|
66062
66078
|
rsa_test_min_impressions?: number;
|
|
66063
66079
|
rsa_tests?: boolean;
|
|
66064
|
-
/** @description IPROTATE (za-59). null = recommended. `422
|
|
66080
|
+
/** @description IPROTATE (za-59). null = recommended. `422 badShieldSetting` outside the bounds. */
|
|
66065
66081
|
shield_min_clicks?: number | null;
|
|
66066
66082
|
shield_stale_days?: number | null;
|
|
66067
66083
|
shield_waste_min_clicks?: number | null;
|
|
@@ -66075,7 +66091,7 @@ export interface components {
|
|
|
66075
66091
|
tidy_paused_mode?: "auto" | "suggest";
|
|
66076
66092
|
/**
|
|
66077
66093
|
* Format: int64
|
|
66078
|
-
* @description WASTEFIX r3 — the customer's own waste threshold (minor units of the account currency); null = back to the recommended value. Out of range is `422
|
|
66094
|
+
* @description WASTEFIX r3 — the customer's own waste threshold (minor units of the account currency); null = back to the recommended value. Out of range is `422 badWasteSetting`.
|
|
66079
66095
|
*/
|
|
66080
66096
|
waste_threshold_minor?: number | null;
|
|
66081
66097
|
};
|
|
@@ -66954,7 +66970,7 @@ export interface components {
|
|
|
66954
66970
|
share?: components["schemas"]["AdsInsightReading"] | null;
|
|
66955
66971
|
tracking: components["schemas"]["AdsInsightReading"];
|
|
66956
66972
|
};
|
|
66957
|
-
/** @description BUILDL2 (za-153) — the customer's own choice of signal per stage: `"1"` (sign-up / lead), `"2"` (activation / qualified), `"3"` (paid) → conversion action resource names (`customers/<id>/conversionActions/<id>`), at most 50 each, an action on one stage only; a stage left out follows the business type. `422
|
|
66973
|
+
/** @description BUILDL2 (za-153) — the customer's own choice of signal per stage: `"1"` (sign-up / lead), `"2"` (activation / qualified), `"3"` (paid) → conversion action resource names (`customers/<id>/conversionActions/<id>`), at most 50 each, an action on one stage only; a stage left out follows the business type. `422 badLadderSetting` otherwise. */
|
|
66958
66974
|
AdsLadderSignals: {
|
|
66959
66975
|
[key: string]: string[];
|
|
66960
66976
|
};
|
|
@@ -67402,6 +67418,21 @@ export interface components {
|
|
|
67402
67418
|
};
|
|
67403
67419
|
/** @enum {string} */
|
|
67404
67420
|
AdsOfferingKind: "website" | "product" | "service" | "app" | "location" | "event" | "lead_form" | "affiliate_offer" | "other";
|
|
67421
|
+
/** @description OFFERFIT — the automatic profile the audit read for one campaign. */
|
|
67422
|
+
AdsOfferProfile: {
|
|
67423
|
+
edited: boolean;
|
|
67424
|
+
not_sells: string[];
|
|
67425
|
+
rivals: string[];
|
|
67426
|
+
sells: string[];
|
|
67427
|
+
summary: string;
|
|
67428
|
+
};
|
|
67429
|
+
/** @description OFFERFIT — a customer's own profile of what one campaign sells. */
|
|
67430
|
+
AdsOfferProfileEdit: {
|
|
67431
|
+
not_sells?: string[];
|
|
67432
|
+
rivals?: string[];
|
|
67433
|
+
sells: string[];
|
|
67434
|
+
summary?: string;
|
|
67435
|
+
};
|
|
67405
67436
|
/** @description za-191 / za-N3 (docs/1006 §78): paid beside organic for one Google Ads account, and the saver's thresholds. */
|
|
67406
67437
|
AdsOrganic: {
|
|
67407
67438
|
/** @description `[min, max]` per numeric threshold. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1539",
|
|
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>",
|