@zinn-digital/sdk 0.1.1446 → 0.1.1447
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 +44 -3
- package/package.json +1 -1
|
@@ -21032,7 +21032,7 @@ export interface paths {
|
|
|
21032
21032
|
get?: never;
|
|
21033
21033
|
/**
|
|
21034
21034
|
* Store one server-side key (write-only; kept in Vault).
|
|
21035
|
-
* @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).
|
|
21035
|
+
* @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). From then on the key SENDS the organisation's real outcomes server-side (docs/1006 §122): see `server_sends` on the hub for what it really sent.
|
|
21036
21036
|
*/
|
|
21037
21037
|
put: operations["setAdsTrackingHubKey"];
|
|
21038
21038
|
post?: never;
|
|
@@ -67922,6 +67922,8 @@ export interface components {
|
|
|
67922
67922
|
/** Format: uuid */
|
|
67923
67923
|
org_id: string;
|
|
67924
67924
|
server_keys: {
|
|
67925
|
+
/** @description The Pinterest ad account id (blank for every other kind). */
|
|
67926
|
+
account_id: string;
|
|
67925
67927
|
/** @description The key's last four characters (blank when not set). */
|
|
67926
67928
|
hint: string;
|
|
67927
67929
|
/** @enum {string} */
|
|
@@ -67930,14 +67932,49 @@ export interface components {
|
|
|
67930
67932
|
set: boolean;
|
|
67931
67933
|
/** Format: date-time */
|
|
67932
67934
|
set_at: string | null;
|
|
67935
|
+
/** @description The network test code the key sends with (blank = live sends). */
|
|
67936
|
+
test_code: string;
|
|
67933
67937
|
}[];
|
|
67934
67938
|
/** @description Network -> how its server-side conversions travel. */
|
|
67935
67939
|
server_routes: {
|
|
67936
67940
|
[key: string]: {
|
|
67937
67941
|
connected_provider: string | null;
|
|
67938
67942
|
key_kind: string | null;
|
|
67939
|
-
/**
|
|
67940
|
-
|
|
67943
|
+
/**
|
|
67944
|
+
* @description key = a key in Vault that sends; stored = a key in Vault that cannot send yet (server_sends says why).
|
|
67945
|
+
* @enum {string}
|
|
67946
|
+
*/
|
|
67947
|
+
route: "connected" | "key" | "stored" | "none";
|
|
67948
|
+
};
|
|
67949
|
+
};
|
|
67950
|
+
/** @description Key kind -> what that key really sent (docs/1006 §122), computed from the per-outcome delivery receipts. Only outcomes whose source reported ad_user_data consent GRANTED are sent, with the hashed e-mail only. */
|
|
67951
|
+
server_sends: {
|
|
67952
|
+
[key: string]: {
|
|
67953
|
+
/** @description Where the network mints a replacement key. */
|
|
67954
|
+
keys_url: string;
|
|
67955
|
+
last_error: {
|
|
67956
|
+
/** Format: date-time */
|
|
67957
|
+
at: string;
|
|
67958
|
+
/** @enum {string} */
|
|
67959
|
+
class: "provider_outage" | "rate_limited" | "credential_invalid" | "provider_billing" | "entitlement_exhausted" | "target_unreachable" | "permanent";
|
|
67960
|
+
} | null;
|
|
67961
|
+
/** Format: date-time */
|
|
67962
|
+
last_sent_at: string | null;
|
|
67963
|
+
/** @description The network refused this key since it was set; nothing more is sent until it is replaced. */
|
|
67964
|
+
needs_new_key: boolean;
|
|
67965
|
+
/**
|
|
67966
|
+
* @description Why a stored key is not used for sending (blank when it sends or is not stored).
|
|
67967
|
+
* @enum {string}
|
|
67968
|
+
*/
|
|
67969
|
+
not_sending_reason: "" | "noKey" | "noTagId" | "noAccountId" | "noConversionId";
|
|
67970
|
+
/** @description The key is stored AND can send. */
|
|
67971
|
+
sending: boolean;
|
|
67972
|
+
/** @description Outcomes this key sent in the last 24 hours. */
|
|
67973
|
+
sent_24h: number;
|
|
67974
|
+
/** @description The network's status board ('' when it publishes none). */
|
|
67975
|
+
status_url: string;
|
|
67976
|
+
/** @description The key sends with a network test code. */
|
|
67977
|
+
test_mode: boolean;
|
|
67941
67978
|
};
|
|
67942
67979
|
};
|
|
67943
67980
|
/** @description Network -> its browser tag id (google_ads, ga4, microsoft_uet, meta_pixel, tiktok_pixel, linkedin_insight, x_pixel, pinterest_tag, amazon_tag). */
|
|
@@ -147033,7 +147070,11 @@ export interface operations {
|
|
|
147033
147070
|
requestBody: {
|
|
147034
147071
|
content: {
|
|
147035
147072
|
"application/json": {
|
|
147073
|
+
/** @description pinterest_capi only, and required there: the numeric Pinterest ad account id the conversion token belongs to (the Conversions API posts to /ad_accounts/{id}/events). Any other kind refuses it (badAccount). */
|
|
147074
|
+
account_id?: string;
|
|
147036
147075
|
key: string;
|
|
147076
|
+
/** @description Optional network test code (docs/1006 §122): Meta / TikTok test_event_code, Pinterest test=true, GA4's validation server. Events sent with it appear in the network's test view only and are not counted as conversions. LinkedIn has no test mode and refuses it (badTestCode). */
|
|
147077
|
+
test_code?: string;
|
|
147037
147078
|
};
|
|
147038
147079
|
};
|
|
147039
147080
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1447",
|
|
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>",
|