@zinn-digital/sdk 0.1.1424 → 0.1.1426
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 +239 -0
- package/package.json +1 -1
|
@@ -20602,6 +20602,59 @@ export interface paths {
|
|
|
20602
20602
|
patch?: never;
|
|
20603
20603
|
trace?: never;
|
|
20604
20604
|
};
|
|
20605
|
+
"/v1/ads/tracking-hub": {
|
|
20606
|
+
parameters: {
|
|
20607
|
+
query?: never;
|
|
20608
|
+
header?: never;
|
|
20609
|
+
path?: never;
|
|
20610
|
+
cookie?: never;
|
|
20611
|
+
};
|
|
20612
|
+
/**
|
|
20613
|
+
* The tracking hub — every network tag, conversion id and server-side key status.
|
|
20614
|
+
* @description Gated on `ads.view` (docs/1006 §104, za-126). One hub per organisation: the browser tag id of each network (Google Ads, GA4, Microsoft UET, Meta pixel, TikTok, LinkedIn Insight, X, Pinterest, Amazon), the conversion id per network and outcome kind, and WHICH server-side keys are set (never the key: it is kept only in Vault). `server_routes` says per network how server-side conversions travel: through a connected ad account, through a key in the hub, or not at all. Every site tag (za-128) serves the hub's ids where it leaves its own blank. An organisation with no hub yet answers `version: 0`.
|
|
20615
|
+
*/
|
|
20616
|
+
get: operations["getAdsTrackingHub"];
|
|
20617
|
+
/**
|
|
20618
|
+
* Change the hub's tag ids and conversion ids.
|
|
20619
|
+
* @description Gated on `ads.manage`; audit-logged (`ads.tracking_hub_updated`). `tags` and `conversions` each REPLACE the stored map when present (a blank id removes it). Each tag id is checked against its network's format; a wrong one is a `422` (`refusal.adsconnect.trackingHub.*`) naming the field, e.g. `tags.ga4`. The version goes up by one and the cached script of every site tag of the organisation is rewritten.
|
|
20620
|
+
*/
|
|
20621
|
+
put: operations["updateAdsTrackingHub"];
|
|
20622
|
+
post?: never;
|
|
20623
|
+
delete?: never;
|
|
20624
|
+
options?: never;
|
|
20625
|
+
head?: never;
|
|
20626
|
+
patch?: never;
|
|
20627
|
+
trace?: never;
|
|
20628
|
+
};
|
|
20629
|
+
"/v1/ads/tracking-hub/keys/{kind}": {
|
|
20630
|
+
parameters: {
|
|
20631
|
+
query?: {
|
|
20632
|
+
/** @description Required when you belong to more than one organisation. */
|
|
20633
|
+
org_id?: string;
|
|
20634
|
+
};
|
|
20635
|
+
header?: never;
|
|
20636
|
+
path: {
|
|
20637
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
20638
|
+
};
|
|
20639
|
+
cookie?: never;
|
|
20640
|
+
};
|
|
20641
|
+
get?: never;
|
|
20642
|
+
/**
|
|
20643
|
+
* Store one server-side key (write-only; kept in Vault).
|
|
20644
|
+
* @description Gated on `ads.manage`; audit-logged (`ads.tracking_hub_key_set`, the kind only). The key is written to Vault and never returned, logged or stored in the database; the hub keeps the time it was set and its last four characters. `503` when Vault could not be written (nothing is saved; retry).
|
|
20645
|
+
*/
|
|
20646
|
+
put: operations["setAdsTrackingHubKey"];
|
|
20647
|
+
post?: never;
|
|
20648
|
+
/**
|
|
20649
|
+
* Remove one server-side key from Vault and from the hub.
|
|
20650
|
+
* @description Gated on `ads.manage`; audit-logged (`ads.tracking_hub_key_removed`). The record is removed only after Vault confirmed the delete. Removing a key that is not set is a `204`.
|
|
20651
|
+
*/
|
|
20652
|
+
delete: operations["deleteAdsTrackingHubKey"];
|
|
20653
|
+
options?: never;
|
|
20654
|
+
head?: never;
|
|
20655
|
+
patch?: never;
|
|
20656
|
+
trace?: never;
|
|
20657
|
+
};
|
|
20605
20658
|
"/v1/ads/tracking/events": {
|
|
20606
20659
|
parameters: {
|
|
20607
20660
|
query?: never;
|
|
@@ -66662,6 +66715,16 @@ export interface components {
|
|
|
66662
66715
|
org_id: string;
|
|
66663
66716
|
/** @description Public (it is in the page source); never an API credential. */
|
|
66664
66717
|
public_key: string;
|
|
66718
|
+
/** @description za-126: the ids this site actually serves — its own, else the organisation's tracking hub's. */
|
|
66719
|
+
served?: {
|
|
66720
|
+
ga4_id?: string;
|
|
66721
|
+
google_ads_id?: string;
|
|
66722
|
+
google_labels?: {
|
|
66723
|
+
[key: string]: string;
|
|
66724
|
+
};
|
|
66725
|
+
meta_pixel_id?: string;
|
|
66726
|
+
microsoft_uet_id?: string;
|
|
66727
|
+
};
|
|
66665
66728
|
site_host: string;
|
|
66666
66729
|
/** Format: date-time */
|
|
66667
66730
|
updated_at: string | null;
|
|
@@ -66969,6 +67032,59 @@ export interface components {
|
|
|
66969
67032
|
rejected: number;
|
|
66970
67033
|
waiting: number;
|
|
66971
67034
|
};
|
|
67035
|
+
/** @description One organisation's tracking hub (docs/1006 §104, za-126). */
|
|
67036
|
+
AdsTrackingHub: {
|
|
67037
|
+
/** @description Network -> outcome kind -> conversion id (a Google Ads label, a Meta custom conversion, a TikTok event …). */
|
|
67038
|
+
conversions: {
|
|
67039
|
+
[key: string]: {
|
|
67040
|
+
[key: string]: string;
|
|
67041
|
+
};
|
|
67042
|
+
};
|
|
67043
|
+
kinds: string[];
|
|
67044
|
+
networks: string[];
|
|
67045
|
+
/** Format: uuid */
|
|
67046
|
+
org_id: string;
|
|
67047
|
+
server_keys: {
|
|
67048
|
+
/** @description The key's last four characters (blank when not set). */
|
|
67049
|
+
hint: string;
|
|
67050
|
+
/** @enum {string} */
|
|
67051
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
67052
|
+
network: string;
|
|
67053
|
+
set: boolean;
|
|
67054
|
+
/** Format: date-time */
|
|
67055
|
+
set_at: string | null;
|
|
67056
|
+
}[];
|
|
67057
|
+
/** @description Network -> how its server-side conversions travel. */
|
|
67058
|
+
server_routes: {
|
|
67059
|
+
[key: string]: {
|
|
67060
|
+
connected_provider: string | null;
|
|
67061
|
+
key_kind: string | null;
|
|
67062
|
+
/** @enum {string} */
|
|
67063
|
+
route: "connected" | "key" | "none";
|
|
67064
|
+
};
|
|
67065
|
+
};
|
|
67066
|
+
/** @description Network -> its browser tag id (google_ads, ga4, microsoft_uet, meta_pixel, tiktok_pixel, linkedin_insight, x_pixel, pinterest_tag, amazon_tag). */
|
|
67067
|
+
tags: {
|
|
67068
|
+
[key: string]: string;
|
|
67069
|
+
};
|
|
67070
|
+
/** Format: date-time */
|
|
67071
|
+
updated_at: string | null;
|
|
67072
|
+
/** @description 0 when no hub has been saved yet. */
|
|
67073
|
+
version: number;
|
|
67074
|
+
};
|
|
67075
|
+
AdsTrackingHubUpdate: {
|
|
67076
|
+
/** @description Network -> {outcome kind: conversion id}. A LinkedIn conversion id is numeric and an X event id is tw-PIXEL-EVENT (for example tw-o1abc-o1xyz); any other shape for those two is refused (badConversion), since the page could never fire it. */
|
|
67077
|
+
conversions?: {
|
|
67078
|
+
[key: string]: {
|
|
67079
|
+
[key: string]: string;
|
|
67080
|
+
};
|
|
67081
|
+
};
|
|
67082
|
+
/** Format: uuid */
|
|
67083
|
+
org_id?: string;
|
|
67084
|
+
tags?: {
|
|
67085
|
+
[key: string]: string;
|
|
67086
|
+
};
|
|
67087
|
+
};
|
|
66972
67088
|
/** @description One ad account's tracking-truth settings (docs/1006 §21). */
|
|
66973
67089
|
AdsTrackingSettings: {
|
|
66974
67090
|
/** @description Network actions that stand for these outcomes; empty = every PRIMARY one. */
|
|
@@ -99250,6 +99366,10 @@ export interface components {
|
|
|
99250
99366
|
runtime?: components["schemas"]["Runtime"];
|
|
99251
99367
|
/** @description One of **your own** captured sites (`GET /v1/site-blueprints`) to build this one from. The new site is provisioned on that blueprint's stack and its archive is then restored onto it, so it comes up with the same content, plugins, theme and settings as the site it was captured from — and its stored web addresses are rewritten to this site's domain. ⛔ **Not the same field as `blueprint_id`**: that one names a stack recipe Zinn® publishes, this one names a template you made from a site you already built. Sending both is a `422`. When given, `source`, `stack_type` and `runtime` are all derived and must not be sent. A blueprint whose capture has not finished, or whose backup is no longer available, is a `422` at create time rather than a site that comes up empty an hour later. */
|
|
99252
99368
|
site_blueprint_id?: components["schemas"]["Uuid"] | null;
|
|
99369
|
+
/** @description The WordPress **Tagline** (`blogdescription`). Read for a WordPress stack only. Omitted or blank leaves WordPress's own tagline. */
|
|
99370
|
+
site_tagline?: string;
|
|
99371
|
+
/** @description The WordPress **Site Title** (V1 parity). Read for a WordPress stack only. Omitted or blank means the primary domain, as before. */
|
|
99372
|
+
site_title?: string;
|
|
99253
99373
|
source?: components["schemas"]["SiteSource"];
|
|
99254
99374
|
stack_type?: components["schemas"]["StackType"];
|
|
99255
99375
|
/** @description The subscription entitling this site. Must belong to the org that will own the site; anything else is a `422` (never a `404`, so it cannot be used to probe which subscription ids exist elsewhere). */
|
|
@@ -145176,6 +145296,125 @@ export interface operations {
|
|
|
145176
145296
|
429: components["responses"]["TooManyRequests"];
|
|
145177
145297
|
};
|
|
145178
145298
|
};
|
|
145299
|
+
getAdsTrackingHub: {
|
|
145300
|
+
parameters: {
|
|
145301
|
+
query?: {
|
|
145302
|
+
/** @description Required when you belong to more than one organisation. */
|
|
145303
|
+
org_id?: string;
|
|
145304
|
+
};
|
|
145305
|
+
header?: never;
|
|
145306
|
+
path?: never;
|
|
145307
|
+
cookie?: never;
|
|
145308
|
+
};
|
|
145309
|
+
requestBody?: never;
|
|
145310
|
+
responses: {
|
|
145311
|
+
/** @description The organisation's tracking hub. */
|
|
145312
|
+
200: {
|
|
145313
|
+
headers: {
|
|
145314
|
+
[name: string]: unknown;
|
|
145315
|
+
};
|
|
145316
|
+
content: {
|
|
145317
|
+
"application/json": components["schemas"]["AdsTrackingHub"];
|
|
145318
|
+
};
|
|
145319
|
+
};
|
|
145320
|
+
401: components["responses"]["Unauthorized"];
|
|
145321
|
+
403: components["responses"]["Forbidden"];
|
|
145322
|
+
404: components["responses"]["NotFound"];
|
|
145323
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
145324
|
+
};
|
|
145325
|
+
};
|
|
145326
|
+
updateAdsTrackingHub: {
|
|
145327
|
+
parameters: {
|
|
145328
|
+
query?: never;
|
|
145329
|
+
header?: never;
|
|
145330
|
+
path?: never;
|
|
145331
|
+
cookie?: never;
|
|
145332
|
+
};
|
|
145333
|
+
requestBody: {
|
|
145334
|
+
content: {
|
|
145335
|
+
"application/json": components["schemas"]["AdsTrackingHubUpdate"];
|
|
145336
|
+
};
|
|
145337
|
+
};
|
|
145338
|
+
responses: {
|
|
145339
|
+
/** @description The hub after the change. */
|
|
145340
|
+
200: {
|
|
145341
|
+
headers: {
|
|
145342
|
+
[name: string]: unknown;
|
|
145343
|
+
};
|
|
145344
|
+
content: {
|
|
145345
|
+
"application/json": components["schemas"]["AdsTrackingHub"];
|
|
145346
|
+
};
|
|
145347
|
+
};
|
|
145348
|
+
401: components["responses"]["Unauthorized"];
|
|
145349
|
+
403: components["responses"]["Forbidden"];
|
|
145350
|
+
404: components["responses"]["NotFound"];
|
|
145351
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
145352
|
+
};
|
|
145353
|
+
};
|
|
145354
|
+
setAdsTrackingHubKey: {
|
|
145355
|
+
parameters: {
|
|
145356
|
+
query?: {
|
|
145357
|
+
/** @description Required when you belong to more than one organisation. */
|
|
145358
|
+
org_id?: string;
|
|
145359
|
+
};
|
|
145360
|
+
header?: never;
|
|
145361
|
+
path: {
|
|
145362
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
145363
|
+
};
|
|
145364
|
+
cookie?: never;
|
|
145365
|
+
};
|
|
145366
|
+
requestBody: {
|
|
145367
|
+
content: {
|
|
145368
|
+
"application/json": {
|
|
145369
|
+
key: string;
|
|
145370
|
+
};
|
|
145371
|
+
};
|
|
145372
|
+
};
|
|
145373
|
+
responses: {
|
|
145374
|
+
/** @description The hub after the change. */
|
|
145375
|
+
200: {
|
|
145376
|
+
headers: {
|
|
145377
|
+
[name: string]: unknown;
|
|
145378
|
+
};
|
|
145379
|
+
content: {
|
|
145380
|
+
"application/json": components["schemas"]["AdsTrackingHub"];
|
|
145381
|
+
};
|
|
145382
|
+
};
|
|
145383
|
+
401: components["responses"]["Unauthorized"];
|
|
145384
|
+
403: components["responses"]["Forbidden"];
|
|
145385
|
+
404: components["responses"]["NotFound"];
|
|
145386
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
145387
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
145388
|
+
};
|
|
145389
|
+
};
|
|
145390
|
+
deleteAdsTrackingHubKey: {
|
|
145391
|
+
parameters: {
|
|
145392
|
+
query?: {
|
|
145393
|
+
/** @description Required when you belong to more than one organisation. */
|
|
145394
|
+
org_id?: string;
|
|
145395
|
+
};
|
|
145396
|
+
header?: never;
|
|
145397
|
+
path: {
|
|
145398
|
+
kind: "meta_capi" | "tiktok_events" | "ga4_mp" | "linkedin_capi" | "pinterest_capi";
|
|
145399
|
+
};
|
|
145400
|
+
cookie?: never;
|
|
145401
|
+
};
|
|
145402
|
+
requestBody?: never;
|
|
145403
|
+
responses: {
|
|
145404
|
+
/** @description Removed (or was not set). */
|
|
145405
|
+
204: {
|
|
145406
|
+
headers: {
|
|
145407
|
+
[name: string]: unknown;
|
|
145408
|
+
};
|
|
145409
|
+
content?: never;
|
|
145410
|
+
};
|
|
145411
|
+
401: components["responses"]["Unauthorized"];
|
|
145412
|
+
403: components["responses"]["Forbidden"];
|
|
145413
|
+
404: components["responses"]["NotFound"];
|
|
145414
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
145415
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
145416
|
+
};
|
|
145417
|
+
};
|
|
145179
145418
|
listAdsTrackingEvents: {
|
|
145180
145419
|
parameters: {
|
|
145181
145420
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1426",
|
|
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>",
|