@zinn-digital/sdk 0.1.1446 → 0.1.1448

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.
@@ -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;
@@ -53265,6 +53265,37 @@ export interface paths {
53265
53265
  patch?: never;
53266
53266
  trace?: never;
53267
53267
  };
53268
+ "/v1/sites/{siteId}/wordpress/switches": {
53269
+ parameters: {
53270
+ query?: never;
53271
+ header?: never;
53272
+ path: {
53273
+ /** @description Site ID (UUIDv7). */
53274
+ siteId: components["parameters"]["SiteId"];
53275
+ };
53276
+ cookie?: never;
53277
+ };
53278
+ /**
53279
+ * Search-engine visibility and debug mode, read from the site.
53280
+ * @description The two on/off switches a WordPress manager offers: whether search engines are asked to index the site (`blog_public`) and whether `WP_DEBUG` is on.
53281
+ *
53282
+ * ⛔ Read from **the site**, never our record of what we last set — a customer can tick "Discourage search engines" in wp-admin and a developer can edit `wp-config.php`. An empty object means the platform hosting this site has no such switches (a vendor package). Requires `sites.view`.
53283
+ */
53284
+ get: operations["getSiteWordPressSwitches"];
53285
+ /**
53286
+ * Turn search-engine visibility or debug mode on or off.
53287
+ * @description Send one switch or both; an absent switch is left alone. Each is written, then **confirmed by re-reading the site**, and audit-logged as `wordpress.switch.<name>.<on|off>`. The response is the site's state as re-read.
53288
+ *
53289
+ * ⛔ **Fleet only** — refused where `wp_maintenance` is `false`. Requires `sites.view` and `sites.panel_access`.
53290
+ */
53291
+ put: operations["setSiteWordPressSwitches"];
53292
+ post?: never;
53293
+ delete?: never;
53294
+ options?: never;
53295
+ head?: never;
53296
+ patch?: never;
53297
+ trace?: never;
53298
+ };
53268
53299
  "/v1/sites/{siteId}/wordpress/themes": {
53269
53300
  parameters: {
53270
53301
  query?: never;
@@ -67922,6 +67953,8 @@ export interface components {
67922
67953
  /** Format: uuid */
67923
67954
  org_id: string;
67924
67955
  server_keys: {
67956
+ /** @description The Pinterest ad account id (blank for every other kind). */
67957
+ account_id: string;
67925
67958
  /** @description The key's last four characters (blank when not set). */
67926
67959
  hint: string;
67927
67960
  /** @enum {string} */
@@ -67930,14 +67963,49 @@ export interface components {
67930
67963
  set: boolean;
67931
67964
  /** Format: date-time */
67932
67965
  set_at: string | null;
67966
+ /** @description The network test code the key sends with (blank = live sends). */
67967
+ test_code: string;
67933
67968
  }[];
67934
67969
  /** @description Network -> how its server-side conversions travel. */
67935
67970
  server_routes: {
67936
67971
  [key: string]: {
67937
67972
  connected_provider: string | null;
67938
67973
  key_kind: string | null;
67939
- /** @enum {string} */
67940
- route: "connected" | "key" | "none";
67974
+ /**
67975
+ * @description key = a key in Vault that sends; stored = a key in Vault that cannot send yet (server_sends says why).
67976
+ * @enum {string}
67977
+ */
67978
+ route: "connected" | "key" | "stored" | "none";
67979
+ };
67980
+ };
67981
+ /** @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. */
67982
+ server_sends: {
67983
+ [key: string]: {
67984
+ /** @description Where the network mints a replacement key. */
67985
+ keys_url: string;
67986
+ last_error: {
67987
+ /** Format: date-time */
67988
+ at: string;
67989
+ /** @enum {string} */
67990
+ class: "provider_outage" | "rate_limited" | "credential_invalid" | "provider_billing" | "entitlement_exhausted" | "target_unreachable" | "permanent";
67991
+ } | null;
67992
+ /** Format: date-time */
67993
+ last_sent_at: string | null;
67994
+ /** @description The network refused this key since it was set; nothing more is sent until it is replaced. */
67995
+ needs_new_key: boolean;
67996
+ /**
67997
+ * @description Why a stored key is not used for sending (blank when it sends or is not stored).
67998
+ * @enum {string}
67999
+ */
68000
+ not_sending_reason: "" | "noKey" | "noTagId" | "noAccountId" | "noConversionId";
68001
+ /** @description The key is stored AND can send. */
68002
+ sending: boolean;
68003
+ /** @description Outcomes this key sent in the last 24 hours. */
68004
+ sent_24h: number;
68005
+ /** @description The network's status board ('' when it publishes none). */
68006
+ status_url: string;
68007
+ /** @description The key sends with a network test code. */
68008
+ test_mode: boolean;
67941
68009
  };
67942
68010
  };
67943
68011
  /** @description Network -> its browser tag id (google_ads, ga4, microsoft_uet, meta_pixel, tiktok_pixel, linkedin_insight, x_pixel, pinterest_tag, amazon_tag). */
@@ -105590,6 +105658,13 @@ export interface components {
105590
105658
  */
105591
105659
  mode: "files" | "db" | "both";
105592
105660
  };
105661
+ /** @description Search-engine visibility and debug mode as the site reports them. Empty where the platform hosting the site has no such switches. */
105662
+ SiteWordPressSwitches: {
105663
+ /** @description True when `WP_DEBUG` is on in `wp-config.php`. */
105664
+ debug_mode?: boolean;
105665
+ /** @description False when WordPress's "Discourage search engines" is ticked (`blog_public` = 0). */
105666
+ search_engines_visible?: boolean;
105667
+ };
105593
105668
  /** @description One theme installed on a site's WordPress — the same four facts as a plugin. */
105594
105669
  SiteWordPressTheme: {
105595
105670
  /**
@@ -147033,7 +147108,11 @@ export interface operations {
147033
147108
  requestBody: {
147034
147109
  content: {
147035
147110
  "application/json": {
147111
+ /** @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). */
147112
+ account_id?: string;
147036
147113
  key: string;
147114
+ /** @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). */
147115
+ test_code?: string;
147037
147116
  };
147038
147117
  };
147039
147118
  };
@@ -199086,6 +199165,80 @@ export interface operations {
199086
199165
  503: components["responses"]["ProviderNotConfigured"];
199087
199166
  };
199088
199167
  };
199168
+ getSiteWordPressSwitches: {
199169
+ parameters: {
199170
+ query?: never;
199171
+ header?: never;
199172
+ path: {
199173
+ /** @description Site ID (UUIDv7). */
199174
+ siteId: components["parameters"]["SiteId"];
199175
+ };
199176
+ cookie?: never;
199177
+ };
199178
+ requestBody?: never;
199179
+ responses: {
199180
+ /** @description The switches as the site reports them. */
199181
+ 200: {
199182
+ headers: {
199183
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
199184
+ [name: string]: unknown;
199185
+ };
199186
+ content: {
199187
+ "application/json": components["schemas"]["SiteWordPressSwitches"];
199188
+ };
199189
+ };
199190
+ 401: components["responses"]["Unauthorized"];
199191
+ 403: components["responses"]["Forbidden"];
199192
+ 404: components["responses"]["NotFound"];
199193
+ 429: components["responses"]["TooManyRequests"];
199194
+ 503: components["responses"]["ProviderNotConfigured"];
199195
+ };
199196
+ };
199197
+ setSiteWordPressSwitches: {
199198
+ parameters: {
199199
+ query?: never;
199200
+ header?: never;
199201
+ path: {
199202
+ /** @description Site ID (UUIDv7). */
199203
+ siteId: components["parameters"]["SiteId"];
199204
+ };
199205
+ cookie?: never;
199206
+ };
199207
+ requestBody: {
199208
+ content: {
199209
+ "application/json": {
199210
+ /**
199211
+ * @description Sets `WP_DEBUG` in `wp-config.php`.
199212
+ * @example false
199213
+ */
199214
+ debug_mode?: boolean;
199215
+ /**
199216
+ * @description False ticks WordPress's "Discourage search engines" setting.
199217
+ * @example true
199218
+ */
199219
+ search_engines_visible?: boolean;
199220
+ };
199221
+ };
199222
+ };
199223
+ responses: {
199224
+ /** @description The switches after the change, re-read from the site. */
199225
+ 200: {
199226
+ headers: {
199227
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
199228
+ [name: string]: unknown;
199229
+ };
199230
+ content: {
199231
+ "application/json": components["schemas"]["SiteWordPressSwitches"];
199232
+ };
199233
+ };
199234
+ 401: components["responses"]["Unauthorized"];
199235
+ 403: components["responses"]["Forbidden"];
199236
+ 404: components["responses"]["NotFound"];
199237
+ 422: components["responses"]["UnprocessableEntity"];
199238
+ 429: components["responses"]["TooManyRequests"];
199239
+ 503: components["responses"]["ProviderNotConfigured"];
199240
+ };
199241
+ };
199089
199242
  listSiteWordPressThemes: {
199090
199243
  parameters: {
199091
199244
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1446",
3
+ "version": "0.1.1448",
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>",