@zinn-digital/sdk 0.1.1482 → 0.1.1486
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 +312 -0
- package/package.json +1 -1
|
@@ -16101,6 +16101,26 @@ export interface paths {
|
|
|
16101
16101
|
patch?: never;
|
|
16102
16102
|
trace?: never;
|
|
16103
16103
|
};
|
|
16104
|
+
"/v1/ads/analytics/funnel": {
|
|
16105
|
+
parameters: {
|
|
16106
|
+
query?: never;
|
|
16107
|
+
header?: never;
|
|
16108
|
+
path?: never;
|
|
16109
|
+
cookie?: never;
|
|
16110
|
+
};
|
|
16111
|
+
/**
|
|
16112
|
+
* The funnel impression -> click -> conversion -> paid, and the customer's own measured outcomes beside the network's conversions (za-282).
|
|
16113
|
+
* @description Over the same filters as the other analytics reads. Impressions, clicks and conversions are the networks' stored daily figures under every filter. `paid` is the sales (purchases and upgrades, not refunded in full) the customer's OWN source recorded (store, checkout, plugin, CRM or the events API); a sale recorded on more than one ad account counts once per organisation. `truth` puts, per ad account that has ever sent an outcome, the conversions the network counted beside the outcomes the customer's own source recorded on the same days (the kinds the account's tracking settings compare), the gap, and the latest daily tracking-truth check. An account that never sent an outcome has no truth (never zero): it is counted in `untracked_accounts` and left out of both sides. Outcomes carry no campaign, country, device or product/site: with any of those filters `attributable` is false, `not_split_by` names them, `truth` and the `paid` step are null. Gated on `ads.view` over the organisations the person can view; `org_id` narrows to that organisation and its client organisations. Outcomes are windowed on each ad account's own day, in the account's stored time zone (UTC when none is stored yet), the same days as the network's figures and the daily tracking-truth check. A person who may view no organisation is refused (404), never answered with an empty frame. Stored rows only, never a network call. Money is integer micros of the reporting `currency` at the current stored rate (`fx`).
|
|
16114
|
+
*/
|
|
16115
|
+
get: operations["getAdsAnalyticsFunnel"];
|
|
16116
|
+
put?: never;
|
|
16117
|
+
post?: never;
|
|
16118
|
+
delete?: never;
|
|
16119
|
+
options?: never;
|
|
16120
|
+
head?: never;
|
|
16121
|
+
patch?: never;
|
|
16122
|
+
trace?: never;
|
|
16123
|
+
};
|
|
16104
16124
|
"/v1/ads/analytics/impact": {
|
|
16105
16125
|
parameters: {
|
|
16106
16126
|
query?: never;
|
|
@@ -53670,6 +53690,35 @@ export interface paths {
|
|
|
53670
53690
|
patch?: never;
|
|
53671
53691
|
trace?: never;
|
|
53672
53692
|
};
|
|
53693
|
+
"/v1/sites/{siteId}/wordpress/smart-updates": {
|
|
53694
|
+
parameters: {
|
|
53695
|
+
query?: never;
|
|
53696
|
+
header?: never;
|
|
53697
|
+
path: {
|
|
53698
|
+
/** @description Site ID (UUIDv7). */
|
|
53699
|
+
siteId: components["parameters"]["SiteId"];
|
|
53700
|
+
};
|
|
53701
|
+
cookie?: never;
|
|
53702
|
+
};
|
|
53703
|
+
/**
|
|
53704
|
+
* The site's recent smart updates, newest first.
|
|
53705
|
+
* @description Up to five recent smart updates (docs/1135 §8) with their status, what they updated, how much of the page changed on the staging copy, and presigned before/after pictures. Requires `sites.view`.
|
|
53706
|
+
*/
|
|
53707
|
+
get: operations["listSiteWordPressSmartUpdates"];
|
|
53708
|
+
put?: never;
|
|
53709
|
+
/**
|
|
53710
|
+
* Update plugins and themes on a staging copy first, then live only if nothing broke.
|
|
53711
|
+
* @description Queues a smart update (owner #1, docs/1135 §8): a fresh staging copy, a lab screenshot, the updates applied to the copy, a second screenshot, a health check (WordPress loads with its plugins; the copy answers without a 5xx) and a pixel comparison. Live is updated only when the copy is clean and less than `hold_at_permille` of the page changed; otherwise the run is `held` and live is untouched. The copy is removed on every path. Omit `plugins`/`themes` to take everything with an update available.
|
|
53712
|
+
*
|
|
53713
|
+
* Refused `422` when the plan has no staging, the account is not in good standing, the site already has a staging copy (it would be overwritten) or there is nothing to update; `409` while a run is in flight; `503` when the queue is unreachable. Requires `sites.panel_access`.
|
|
53714
|
+
*/
|
|
53715
|
+
post: operations["startSiteWordPressSmartUpdate"];
|
|
53716
|
+
delete?: never;
|
|
53717
|
+
options?: never;
|
|
53718
|
+
head?: never;
|
|
53719
|
+
patch?: never;
|
|
53720
|
+
trace?: never;
|
|
53721
|
+
};
|
|
53673
53722
|
"/v1/sites/{siteId}/wordpress/stack-cache": {
|
|
53674
53723
|
parameters: {
|
|
53675
53724
|
query?: never;
|
|
@@ -63723,6 +63772,31 @@ export interface components {
|
|
|
63723
63772
|
/** @description Currencies left out of the blended figures for want of a stored rate; `???` stands for accounts whose currency is not known. */
|
|
63724
63773
|
unconverted: string[];
|
|
63725
63774
|
};
|
|
63775
|
+
AdsAnalyticsFunnel: components["schemas"]["AdsAnalyticsFrame"] & {
|
|
63776
|
+
/** @description `false` when a filter the customer's own outcomes cannot follow is set (they carry no campaign, country, device or product/site). */
|
|
63777
|
+
attributable: boolean;
|
|
63778
|
+
/** Format: int64 */
|
|
63779
|
+
network_value_micros: number;
|
|
63780
|
+
not_split_by: ("campaign" | "country" | "device" | "offering")[];
|
|
63781
|
+
/** Format: int64 */
|
|
63782
|
+
paid_value_micros: number | null;
|
|
63783
|
+
steps: components["schemas"]["AdsAnalyticsFunnelStep"][];
|
|
63784
|
+
truth: components["schemas"]["AdsAnalyticsTruth"] | null;
|
|
63785
|
+
};
|
|
63786
|
+
AdsAnalyticsFunnelStep: {
|
|
63787
|
+
/**
|
|
63788
|
+
* Format: int64
|
|
63789
|
+
* @description Thousandths (a network may report part conversions). `null` on `paid` when the first-party side cannot be read for these filters or no account has a first-party source.
|
|
63790
|
+
*/
|
|
63791
|
+
count_milli: number | null;
|
|
63792
|
+
/**
|
|
63793
|
+
* Format: int64
|
|
63794
|
+
* @description This step over the step before it, in basis points. `null` on the first step, with nothing before, and on `paid` while an account with figures in the period has no first-party source.
|
|
63795
|
+
*/
|
|
63796
|
+
rate_bp: number | null;
|
|
63797
|
+
/** @enum {string} */
|
|
63798
|
+
step: "impressions" | "clicks" | "conversions" | "paid";
|
|
63799
|
+
};
|
|
63726
63800
|
AdsAnalyticsFx: {
|
|
63727
63801
|
/** @description When the stored rate was fetched (ISO 8601). */
|
|
63728
63802
|
as_of: string;
|
|
@@ -63896,6 +63970,91 @@ export interface components {
|
|
|
63896
63970
|
points: components["schemas"]["AdsAnalyticsPoint"][];
|
|
63897
63971
|
previous: components["schemas"]["AdsAnalyticsPoint"][] | null;
|
|
63898
63972
|
};
|
|
63973
|
+
AdsAnalyticsTruth: {
|
|
63974
|
+
/** @description The 20 accounts with the largest gap; `tracked_accounts` is the full count. */
|
|
63975
|
+
accounts: components["schemas"]["AdsAnalyticsTruthAccount"][];
|
|
63976
|
+
by_kind: {
|
|
63977
|
+
count: number;
|
|
63978
|
+
kind: string;
|
|
63979
|
+
}[];
|
|
63980
|
+
/** Format: int64 */
|
|
63981
|
+
gap_bp: number | null;
|
|
63982
|
+
/** @description The gap within which the counts match (the daily check's threshold). */
|
|
63983
|
+
gap_limit_bp: number;
|
|
63984
|
+
/**
|
|
63985
|
+
* @description The gap in words by the daily tracking-truth check's thresholds: `missed` = the networks counted fewer than happened, `overcounted` = more.
|
|
63986
|
+
* @enum {string}
|
|
63987
|
+
*/
|
|
63988
|
+
gap_verdict: "none" | "too_few" | "matches" | "missed" | "overcounted";
|
|
63989
|
+
/**
|
|
63990
|
+
* Format: int64
|
|
63991
|
+
* @description Outcomes the customer's own source recorded on the tracked accounts, of the kinds each account's tracking settings compare, each ONCE per organisation (the same order recorded on two ad accounts is one).
|
|
63992
|
+
*/
|
|
63993
|
+
measured_conversions: number;
|
|
63994
|
+
/**
|
|
63995
|
+
* Format: int64
|
|
63996
|
+
* @description The per-account recorded counts summed: what the networks were each sent. `gap_bp` and `gap_verdict` compare THIS with the networks' summed claims.
|
|
63997
|
+
*/
|
|
63998
|
+
measured_conversions_per_account: number;
|
|
63999
|
+
/**
|
|
64000
|
+
* Format: int64
|
|
64001
|
+
* @description The recorded outcomes' value net of partial refunds, each outcome once per organisation; refunded-in-full outcomes add no value.
|
|
64002
|
+
*/
|
|
64003
|
+
measured_value_micros: number;
|
|
64004
|
+
/** @description The fewest recorded conversions a gap is judged on. */
|
|
64005
|
+
min_conversions: number;
|
|
64006
|
+
/**
|
|
64007
|
+
* Format: int64
|
|
64008
|
+
* @description The tracked accounts' network-reported conversions (every primary action).
|
|
64009
|
+
*/
|
|
64010
|
+
network_conversions_milli: number;
|
|
64011
|
+
/** Format: int64 */
|
|
64012
|
+
network_value_micros: number;
|
|
64013
|
+
/**
|
|
64014
|
+
* Format: int64
|
|
64015
|
+
* @description How many more the per-account sum is than the once-per-organisation count.
|
|
64016
|
+
*/
|
|
64017
|
+
recorded_on_several_accounts: number;
|
|
64018
|
+
/**
|
|
64019
|
+
* Format: date
|
|
64020
|
+
* @description The first day still settling at the network (an upload lands hours later) when the period reaches it.
|
|
64021
|
+
*/
|
|
64022
|
+
settling_from: string | null;
|
|
64023
|
+
tracked_accounts: number;
|
|
64024
|
+
/** @description Accounts that have never sent a first-party outcome; left out of the comparison (they have no truth */
|
|
64025
|
+
untracked_accounts: number;
|
|
64026
|
+
/** @description Of those */
|
|
64027
|
+
untracked_active_accounts: number;
|
|
64028
|
+
};
|
|
64029
|
+
AdsAnalyticsTruthAccount: {
|
|
64030
|
+
check: components["schemas"]["AdsAnalyticsTruthCheck"] | null;
|
|
64031
|
+
/** Format: uuid */
|
|
64032
|
+
connection_id: string;
|
|
64033
|
+
/**
|
|
64034
|
+
* Format: int64
|
|
64035
|
+
* @description (measured - network) / measured in basis points; negative = the network counts more than happened; `null` with nothing measured.
|
|
64036
|
+
*/
|
|
64037
|
+
gap_bp: number | null;
|
|
64038
|
+
label: string;
|
|
64039
|
+
/** Format: int64 */
|
|
64040
|
+
measured_conversions: number;
|
|
64041
|
+
network: string;
|
|
64042
|
+
/** Format: int64 */
|
|
64043
|
+
network_conversions_milli: number;
|
|
64044
|
+
};
|
|
64045
|
+
AdsAnalyticsTruthCheck: {
|
|
64046
|
+
/** Format: date-time */
|
|
64047
|
+
checked_at: string;
|
|
64048
|
+
credited: number | null;
|
|
64049
|
+
gap_pct: number | null;
|
|
64050
|
+
real: number;
|
|
64051
|
+
/** @description The latest daily tracking-truth verdict (za-115). */
|
|
64052
|
+
status: string;
|
|
64053
|
+
/** Format: date */
|
|
64054
|
+
window_end: string;
|
|
64055
|
+
/** Format: date */
|
|
64056
|
+
window_start: string;
|
|
64057
|
+
};
|
|
63899
64058
|
/** @description One "Ask your ads" question and its checked answer (za-N7, docs/1006 §ASKADS). */
|
|
63900
64059
|
AdsAsk: {
|
|
63901
64060
|
/** @description Empty unless `answered`. Fact ids appear in square brackets after the figures they back. */
|
|
@@ -105329,6 +105488,40 @@ export interface components {
|
|
|
105329
105488
|
costs: components["schemas"]["SiteRequestCost"][];
|
|
105330
105489
|
request: components["schemas"]["SiteSlowRequest"];
|
|
105331
105490
|
};
|
|
105491
|
+
SiteSmartUpdateList: {
|
|
105492
|
+
data: components["schemas"]["SiteSmartUpdateRun"][];
|
|
105493
|
+
};
|
|
105494
|
+
/** @description One smart update (docs/1135 §8). */
|
|
105495
|
+
SiteSmartUpdateRun: {
|
|
105496
|
+
/** @description Presigned picture of the copy after */
|
|
105497
|
+
after_url: string;
|
|
105498
|
+
/** @description Presigned picture of the copy before */
|
|
105499
|
+
before_url: string;
|
|
105500
|
+
/** Format: date-time */
|
|
105501
|
+
created_at: string;
|
|
105502
|
+
/** @description Thousandths of the page that changed on the staging copy; null when not compared. */
|
|
105503
|
+
diff_permille: number | null;
|
|
105504
|
+
/** Format: date-time */
|
|
105505
|
+
finished_at: string | null;
|
|
105506
|
+
/** @description A change above this holds the run. */
|
|
105507
|
+
hold_at_permille: number;
|
|
105508
|
+
/** Format: uuid */
|
|
105509
|
+
id: string;
|
|
105510
|
+
plugins: string[];
|
|
105511
|
+
/**
|
|
105512
|
+
* @description Why the run was held or did not finish, as a code the client words in the customer's language; null when applied or still running.
|
|
105513
|
+
* @enum {string|null}
|
|
105514
|
+
*/
|
|
105515
|
+
reason: "wp_broken" | "http_error" | "no_pictures" | "changed_too_much" | "could_not_finish" | null;
|
|
105516
|
+
/** Format: date-time */
|
|
105517
|
+
started_at: string | null;
|
|
105518
|
+
/**
|
|
105519
|
+
* @description `applied` = the copy was clean and live was updated; `held` = the copy broke or changed too much, live untouched; `failed` = the run could not finish, live untouched.
|
|
105520
|
+
* @enum {string}
|
|
105521
|
+
*/
|
|
105522
|
+
status: "queued" | "running" | "applied" | "held" | "failed";
|
|
105523
|
+
themes: string[];
|
|
105524
|
+
};
|
|
105332
105525
|
/**
|
|
105333
105526
|
* @description Where a site's initial content came from (docs/04 §2).
|
|
105334
105527
|
*
|
|
@@ -107175,6 +107368,12 @@ export interface components {
|
|
|
107175
107368
|
/** @description What the chosen provider could not honour, in words for the customer. ⛔ Present and empty rather than absent when everything was honoured. */
|
|
107176
107369
|
unmet?: string[];
|
|
107177
107370
|
};
|
|
107371
|
+
StartSmartUpdateRequest: {
|
|
107372
|
+
/** @description Plugin slugs to update; omitted = every plugin with an update. */
|
|
107373
|
+
plugins?: string[];
|
|
107374
|
+
/** @description Theme slugs to update; omitted = every theme with an update. */
|
|
107375
|
+
themes?: string[];
|
|
107376
|
+
};
|
|
107178
107377
|
/** @description One row on the public status board. ⛔ §2.6 — an `Upstream` row is a capability the customer would recognise ("Email delivery"), never the supplier behind it. */
|
|
107179
107378
|
StatusComponent: {
|
|
107180
107379
|
/** @enum {string} */
|
|
@@ -138674,6 +138873,56 @@ export interface operations {
|
|
|
138674
138873
|
429: components["responses"]["TooManyRequests"];
|
|
138675
138874
|
};
|
|
138676
138875
|
};
|
|
138876
|
+
getAdsAnalyticsFunnel: {
|
|
138877
|
+
parameters: {
|
|
138878
|
+
query?: {
|
|
138879
|
+
/** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
|
|
138880
|
+
campaign?: components["parameters"]["AdsAnalyticsCampaign"];
|
|
138881
|
+
compare?: components["parameters"]["AdsAnalyticsCompare"];
|
|
138882
|
+
/** @description Comma-separated ad-account connection ids. */
|
|
138883
|
+
connection?: components["parameters"]["AdsAnalyticsConnection"];
|
|
138884
|
+
/** @description Comma-separated ISO 3166-1 alpha-2 codes. Reads the country-level figures. */
|
|
138885
|
+
country?: components["parameters"]["AdsAnalyticsCountry"];
|
|
138886
|
+
/** @description Reporting currency (ISO 4217). Default the one currency in play, else the organisation's. */
|
|
138887
|
+
currency?: components["parameters"]["AdsAnalyticsCurrency"];
|
|
138888
|
+
/** @description Comma-separated devices: `mobile`, `desktop`, `tablet`, `tv`, `other` (za-282). Reads the device-level figures (Google Ads accounts, campaign grain). No stored level is split by both country and device, so `device` with `country` is refused (422, field `device`). */
|
|
138889
|
+
device?: components["parameters"]["AdsAnalyticsDevice"];
|
|
138890
|
+
from?: components["parameters"]["AdsAnalyticsFrom"];
|
|
138891
|
+
/** @description Bucket size. Default day up to 92 days, week up to 366, month beyond. */
|
|
138892
|
+
grain?: components["parameters"]["AdsAnalyticsGrain"];
|
|
138893
|
+
/** @description Comma-separated networks (google, microsoft, meta, linkedin, tiktok, x, pinterest, amazon). */
|
|
138894
|
+
network?: components["parameters"]["AdsAnalyticsNetwork"];
|
|
138895
|
+
/** @description Comma-separated product/site ids (za-290), or `unassigned`. */
|
|
138896
|
+
offering?: components["parameters"]["AdsAnalyticsOffering"];
|
|
138897
|
+
org_id?: string;
|
|
138898
|
+
/** @description The period. `custom` takes `from` and `to`. */
|
|
138899
|
+
range?: components["parameters"]["AdsAnalyticsRange"];
|
|
138900
|
+
to?: components["parameters"]["AdsAnalyticsTo"];
|
|
138901
|
+
};
|
|
138902
|
+
header?: never;
|
|
138903
|
+
path?: never;
|
|
138904
|
+
cookie?: never;
|
|
138905
|
+
};
|
|
138906
|
+
requestBody?: never;
|
|
138907
|
+
responses: {
|
|
138908
|
+
/** @description The funnel and the comparison. */
|
|
138909
|
+
200: {
|
|
138910
|
+
headers: {
|
|
138911
|
+
[name: string]: unknown;
|
|
138912
|
+
};
|
|
138913
|
+
content: {
|
|
138914
|
+
"application/json": {
|
|
138915
|
+
data: components["schemas"]["AdsAnalyticsFunnel"];
|
|
138916
|
+
};
|
|
138917
|
+
};
|
|
138918
|
+
};
|
|
138919
|
+
401: components["responses"]["Unauthorized"];
|
|
138920
|
+
403: components["responses"]["Forbidden"];
|
|
138921
|
+
404: components["responses"]["NotFound"];
|
|
138922
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
138923
|
+
429: components["responses"]["TooManyRequests"];
|
|
138924
|
+
};
|
|
138925
|
+
};
|
|
138677
138926
|
getAdsAnalyticsImpact: {
|
|
138678
138927
|
parameters: {
|
|
138679
138928
|
query?: {
|
|
@@ -200948,6 +201197,69 @@ export interface operations {
|
|
|
200948
201197
|
503: components["responses"]["ProviderNotConfigured"];
|
|
200949
201198
|
};
|
|
200950
201199
|
};
|
|
201200
|
+
listSiteWordPressSmartUpdates: {
|
|
201201
|
+
parameters: {
|
|
201202
|
+
query?: never;
|
|
201203
|
+
header?: never;
|
|
201204
|
+
path: {
|
|
201205
|
+
/** @description Site ID (UUIDv7). */
|
|
201206
|
+
siteId: components["parameters"]["SiteId"];
|
|
201207
|
+
};
|
|
201208
|
+
cookie?: never;
|
|
201209
|
+
};
|
|
201210
|
+
requestBody?: never;
|
|
201211
|
+
responses: {
|
|
201212
|
+
/** @description Recent smart updates. */
|
|
201213
|
+
200: {
|
|
201214
|
+
headers: {
|
|
201215
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201216
|
+
[name: string]: unknown;
|
|
201217
|
+
};
|
|
201218
|
+
content: {
|
|
201219
|
+
"application/json": components["schemas"]["SiteSmartUpdateList"];
|
|
201220
|
+
};
|
|
201221
|
+
};
|
|
201222
|
+
401: components["responses"]["Unauthorized"];
|
|
201223
|
+
403: components["responses"]["Forbidden"];
|
|
201224
|
+
404: components["responses"]["NotFound"];
|
|
201225
|
+
429: components["responses"]["TooManyRequests"];
|
|
201226
|
+
};
|
|
201227
|
+
};
|
|
201228
|
+
startSiteWordPressSmartUpdate: {
|
|
201229
|
+
parameters: {
|
|
201230
|
+
query?: never;
|
|
201231
|
+
header?: never;
|
|
201232
|
+
path: {
|
|
201233
|
+
/** @description Site ID (UUIDv7). */
|
|
201234
|
+
siteId: components["parameters"]["SiteId"];
|
|
201235
|
+
};
|
|
201236
|
+
cookie?: never;
|
|
201237
|
+
};
|
|
201238
|
+
requestBody?: {
|
|
201239
|
+
content: {
|
|
201240
|
+
"application/json": components["schemas"]["StartSmartUpdateRequest"];
|
|
201241
|
+
};
|
|
201242
|
+
};
|
|
201243
|
+
responses: {
|
|
201244
|
+
/** @description Queued. The body is the recent list, the new run first. */
|
|
201245
|
+
202: {
|
|
201246
|
+
headers: {
|
|
201247
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
201248
|
+
[name: string]: unknown;
|
|
201249
|
+
};
|
|
201250
|
+
content: {
|
|
201251
|
+
"application/json": components["schemas"]["SiteSmartUpdateList"];
|
|
201252
|
+
};
|
|
201253
|
+
};
|
|
201254
|
+
401: components["responses"]["Unauthorized"];
|
|
201255
|
+
403: components["responses"]["Forbidden"];
|
|
201256
|
+
404: components["responses"]["NotFound"];
|
|
201257
|
+
409: components["responses"]["Conflict"];
|
|
201258
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
201259
|
+
429: components["responses"]["TooManyRequests"];
|
|
201260
|
+
503: components["responses"]["ProviderNotConfigured"];
|
|
201261
|
+
};
|
|
201262
|
+
};
|
|
200951
201263
|
installSiteWordPressStackCache: {
|
|
200952
201264
|
parameters: {
|
|
200953
201265
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1486",
|
|
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>",
|