@zinn-digital/sdk 0.1.1531 → 0.1.1535
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 +216 -3
- package/package.json +1 -1
|
@@ -42579,6 +42579,86 @@ export interface paths {
|
|
|
42579
42579
|
patch?: never;
|
|
42580
42580
|
trace?: never;
|
|
42581
42581
|
};
|
|
42582
|
+
"/v1/public/ads-wordpress/zaraz": {
|
|
42583
|
+
parameters: {
|
|
42584
|
+
query?: never;
|
|
42585
|
+
header?: never;
|
|
42586
|
+
path?: never;
|
|
42587
|
+
cookie?: never;
|
|
42588
|
+
};
|
|
42589
|
+
/**
|
|
42590
|
+
* The plugin's Zaraz step list - the zone connected for this site and what an install would write.
|
|
42591
|
+
* @description za-312 (docs/1006.d/features/za-132-133-zarazsync.md §za-312). Site token only. The zone is found from the site's own host (its name, then each parent): `zone_names` lists the candidates, `connection` is the org's za-131 connection for that zone (or null), `hub_networks` the tracking-hub networks an install would write and `skipped` those Zaraz cannot run from a public id. The same connection row the dashboard's sync, drift and 30-day undo cover.
|
|
42592
|
+
*/
|
|
42593
|
+
get: operations["getAdsWordPressZaraz"];
|
|
42594
|
+
put?: never;
|
|
42595
|
+
post?: never;
|
|
42596
|
+
delete?: never;
|
|
42597
|
+
options?: never;
|
|
42598
|
+
head?: never;
|
|
42599
|
+
patch?: never;
|
|
42600
|
+
trace?: never;
|
|
42601
|
+
};
|
|
42602
|
+
"/v1/public/ads-wordpress/zaraz/check": {
|
|
42603
|
+
parameters: {
|
|
42604
|
+
query?: never;
|
|
42605
|
+
header?: never;
|
|
42606
|
+
path?: never;
|
|
42607
|
+
cookie?: never;
|
|
42608
|
+
};
|
|
42609
|
+
get?: never;
|
|
42610
|
+
put?: never;
|
|
42611
|
+
/**
|
|
42612
|
+
* Re-check the connected zone's token and permissions, from wp-admin (writes nothing).
|
|
42613
|
+
* @description za-312. Site token only; audit action `ads.zaraz_check`. When the token passes, the zone's configuration is also read (nothing written) so `getAdsWordPressZaraz` knows the zone's consent switch before the first install; a failed read leaves the check's answer. 404 (`refusal.adsconnect.zaraz.noSuchConnection`) until the site's zone is connected. Refusals as `checkAdsZarazConnection`.
|
|
42614
|
+
*/
|
|
42615
|
+
post: operations["checkAdsWordPressZaraz"];
|
|
42616
|
+
delete?: never;
|
|
42617
|
+
options?: never;
|
|
42618
|
+
head?: never;
|
|
42619
|
+
patch?: never;
|
|
42620
|
+
trace?: never;
|
|
42621
|
+
};
|
|
42622
|
+
"/v1/public/ads-wordpress/zaraz/connect": {
|
|
42623
|
+
parameters: {
|
|
42624
|
+
query?: never;
|
|
42625
|
+
header?: never;
|
|
42626
|
+
path?: never;
|
|
42627
|
+
cookie?: never;
|
|
42628
|
+
};
|
|
42629
|
+
get?: never;
|
|
42630
|
+
put?: never;
|
|
42631
|
+
/**
|
|
42632
|
+
* Connect the Cloudflare zone serving this site for Zaraz, from wp-admin.
|
|
42633
|
+
* @description za-312. Site token only; audit action `ads.zaraz_connect`. Among the zones the pasted token reaches, the one serving the site's host is connected exactly as the dashboard's `createAdsZarazConnection` does (READ and EDIT proved, nothing written). The token goes to Vault and is never stored on the site, in the database or returned. Refusals (422, `refusal.adsconnect.zaraz.<code>`): `tokenShape`, `tokenRejected`, `permissionMissing`, `zoneNotFound` (no reached zone serves this site), `zoneNotActive` (the zone's nameservers are not switched yet), `rateLimited`, `unavailable`, `unexpected`, `vaultUnavailable`.
|
|
42634
|
+
*/
|
|
42635
|
+
post: operations["connectAdsWordPressZaraz"];
|
|
42636
|
+
delete?: never;
|
|
42637
|
+
options?: never;
|
|
42638
|
+
head?: never;
|
|
42639
|
+
patch?: never;
|
|
42640
|
+
trace?: never;
|
|
42641
|
+
};
|
|
42642
|
+
"/v1/public/ads-wordpress/zaraz/install": {
|
|
42643
|
+
parameters: {
|
|
42644
|
+
query?: never;
|
|
42645
|
+
header?: never;
|
|
42646
|
+
path?: never;
|
|
42647
|
+
cookie?: never;
|
|
42648
|
+
};
|
|
42649
|
+
get?: never;
|
|
42650
|
+
put?: never;
|
|
42651
|
+
/**
|
|
42652
|
+
* One-click install of the tracking hub into the site's zone, from wp-admin.
|
|
42653
|
+
* @description za-312. Site token only; audit action `ads.zaraz_install`. The dashboard's `installAdsZaraz` on the connection for this site's zone: only the `zinn_*` tools, triggers and our two consent purposes are written, Zaraz is switched on (`autoInjectScript`) and everything else of the customer's is kept; the zone is versioned first so the dashboard's 30-day undo reaches it. 404 (`refusal.adsconnect.zaraz.noSuchConnection`) until the zone is connected. Refusals as `installAdsZaraz`.
|
|
42654
|
+
*/
|
|
42655
|
+
post: operations["installAdsWordPressZaraz"];
|
|
42656
|
+
delete?: never;
|
|
42657
|
+
options?: never;
|
|
42658
|
+
head?: never;
|
|
42659
|
+
patch?: never;
|
|
42660
|
+
trace?: never;
|
|
42661
|
+
};
|
|
42582
42662
|
"/v1/public/ads/call-numbers/{pool_key}": {
|
|
42583
42663
|
parameters: {
|
|
42584
42664
|
query?: {
|
|
@@ -48295,7 +48375,7 @@ export interface paths {
|
|
|
48295
48375
|
};
|
|
48296
48376
|
/**
|
|
48297
48377
|
* Read a site's automatic app updates add-on and its window.
|
|
48298
|
-
* @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates` or `
|
|
48378
|
+
* @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `strapi_auto_updates` or `payload_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates` or `magento_auto_updates`, USD 50 a year per site; s1014 row 41): whether it is on sale and on, its price in the caller's currency, the renewal, the quiet window and the last run. Each run takes a safety backup first and rolls back to it when the homepage breaks. WordPress: core, plugins and themes (a held plugin version is never applied). Joomla!: the core only, through Joomla's own console; extensions and templates are not updated. Nextcloud: the server through its own updater, then every app with an update. Drupal: the core only (the newest release of the installed major version, then its database updates); contributed modules and themes are not updated. MediaWiki: the newest stable release with its bundled extensions and skins, then its own update script; extensions the customer added are not updated. phpBB: the newest release of the installed branch with its bundled style, language and extension, then its own `db:migrate`; styles, language packs and extensions the customer added are not updated. ownCloud: the newest release of the installed major version (the complete build, with its bundled apps), then its own `occ upgrade`; apps from the ownCloud marketplace are not updated. PrestaShop: the newest stable release of the installed major version through PrestaShop's own Update Assistant (files, database and native modules); modules the customer added are kept, never uninstalled, and are not updated. Magento: the newest security patch of the installed 2.x.y line (the source release's code, its Composer lock and `setup:upgrade`); modules and themes the customer added are kept and not updated, and a store that added Composer packages is refused with nothing changed. Strapi and Payload: the newest release of the installed major from npm (every package of the app's own family on the core's version moves together), then the app's own build (`strapi build`; for Payload a schema migration when the release needs one, `payload migrate` and `next build`) and a process restart; other npm packages the customer added are kept and not updated. Buy it through `purchaseExtra` with `site_id`. Requires `sites.view`.
|
|
48299
48379
|
*/
|
|
48300
48380
|
get: operations["getSiteAppAutoUpdate"];
|
|
48301
48381
|
/**
|
|
@@ -70109,6 +70189,18 @@ export interface components {
|
|
|
70109
70189
|
window_start?: string;
|
|
70110
70190
|
};
|
|
70111
70191
|
};
|
|
70192
|
+
AdsWordPressZaraz: {
|
|
70193
|
+
connection: components["schemas"]["AdsZarazConnection"] | null;
|
|
70194
|
+
/** @description The connection's drift state, empty before any install. */
|
|
70195
|
+
drift: string;
|
|
70196
|
+
hub_networks: string[];
|
|
70197
|
+
/** Format: date-time */
|
|
70198
|
+
installed_at: string | null;
|
|
70199
|
+
skipped: components["schemas"]["AdsZarazSkipped"][];
|
|
70200
|
+
/** @description The zone's Zaraz consent switch as last read (a check reads it); null before any read. The plugin's consent checkbox starts from it, as the dashboard card's does. */
|
|
70201
|
+
zone_consent_on: boolean | null;
|
|
70202
|
+
zone_names: string[];
|
|
70203
|
+
};
|
|
70112
70204
|
/** @description One X Ads campaign and its budgets (za-43). Money is micros of `currency` (§2.8). */
|
|
70113
70205
|
AdsXCampaign: {
|
|
70114
70206
|
/** @description ISO 4217 code. */
|
|
@@ -70168,6 +70260,8 @@ export interface components {
|
|
|
70168
70260
|
items?: components["schemas"]["AdsZarazDriftItem"][];
|
|
70169
70261
|
/** @enum {string} */
|
|
70170
70262
|
state: "not_installed" | "in_sync" | "edited_in_cloudflare" | "hub_ahead" | "both" | "unknown";
|
|
70263
|
+
/** @description The zone's Zaraz consent switch as this read or write found it, kept whether or not the zone is installed. */
|
|
70264
|
+
zone_consent_on?: boolean;
|
|
70171
70265
|
};
|
|
70172
70266
|
AdsZarazDriftItem: {
|
|
70173
70267
|
/** @enum {string} */
|
|
@@ -70201,9 +70295,13 @@ export interface components {
|
|
|
70201
70295
|
skipped?: components["schemas"]["AdsZarazSkipped"][];
|
|
70202
70296
|
undo_days: number;
|
|
70203
70297
|
versions: components["schemas"]["AdsZarazVersion"][];
|
|
70298
|
+
/** @description Whether the zone's Zaraz consent banner is on, from the newest read or write (stored on every read, installed or not, so it is known before the first install once the card has read the zone); null before anything was read. The consent checkbox starts from it. */
|
|
70299
|
+
zone_consent_on?: boolean | null;
|
|
70204
70300
|
};
|
|
70205
70301
|
AdsZarazVersion: {
|
|
70206
70302
|
actor?: string;
|
|
70303
|
+
/** @description The zone as it stood before the first install: a version read from Cloudflare that is older than the oldest install version still held (none once every install was pruned). Shown as Before install, never as a Cloudflare edit. */
|
|
70304
|
+
before_install?: boolean;
|
|
70207
70305
|
/** Format: date-time */
|
|
70208
70306
|
created_at: string;
|
|
70209
70307
|
hub_version?: number;
|
|
@@ -101182,7 +101280,7 @@ export interface components {
|
|
|
101182
101280
|
total_ms: number;
|
|
101183
101281
|
transaction: string;
|
|
101184
101282
|
};
|
|
101185
|
-
/** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates` or `
|
|
101283
|
+
/** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `strapi_auto_updates` or `payload_auto_updates`), the window and the last run's outcome. */
|
|
101186
101284
|
SiteAppAutoUpdate: {
|
|
101187
101285
|
/** @description Whether the add-on is on and in good standing now. */
|
|
101188
101286
|
active: boolean;
|
|
@@ -101190,7 +101288,7 @@ export interface components {
|
|
|
101190
101288
|
* @description The app the add-on serves on this site, or null when none is sold for it.
|
|
101191
101289
|
* @enum {string|null}
|
|
101192
101290
|
*/
|
|
101193
|
-
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | null;
|
|
101291
|
+
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | null;
|
|
101194
101292
|
can_buy: boolean;
|
|
101195
101293
|
/** @description The catalogue code to buy (`<app_key>_auto_updates`). */
|
|
101196
101294
|
code: string | null;
|
|
@@ -185254,6 +185352,121 @@ export interface operations {
|
|
|
185254
185352
|
429: components["responses"]["TooManyRequests"];
|
|
185255
185353
|
};
|
|
185256
185354
|
};
|
|
185355
|
+
getAdsWordPressZaraz: {
|
|
185356
|
+
parameters: {
|
|
185357
|
+
query?: never;
|
|
185358
|
+
header?: never;
|
|
185359
|
+
path?: never;
|
|
185360
|
+
cookie?: never;
|
|
185361
|
+
};
|
|
185362
|
+
requestBody?: never;
|
|
185363
|
+
responses: {
|
|
185364
|
+
/** @description The step list's state. */
|
|
185365
|
+
200: {
|
|
185366
|
+
headers: {
|
|
185367
|
+
[name: string]: unknown;
|
|
185368
|
+
};
|
|
185369
|
+
content: {
|
|
185370
|
+
"application/json": {
|
|
185371
|
+
data: components["schemas"]["AdsWordPressZaraz"];
|
|
185372
|
+
};
|
|
185373
|
+
};
|
|
185374
|
+
};
|
|
185375
|
+
401: components["responses"]["Unauthorized"];
|
|
185376
|
+
429: components["responses"]["TooManyRequests"];
|
|
185377
|
+
};
|
|
185378
|
+
};
|
|
185379
|
+
checkAdsWordPressZaraz: {
|
|
185380
|
+
parameters: {
|
|
185381
|
+
query?: never;
|
|
185382
|
+
header?: never;
|
|
185383
|
+
path?: never;
|
|
185384
|
+
cookie?: never;
|
|
185385
|
+
};
|
|
185386
|
+
requestBody?: never;
|
|
185387
|
+
responses: {
|
|
185388
|
+
/** @description The connection after the check. */
|
|
185389
|
+
200: {
|
|
185390
|
+
headers: {
|
|
185391
|
+
[name: string]: unknown;
|
|
185392
|
+
};
|
|
185393
|
+
content: {
|
|
185394
|
+
"application/json": {
|
|
185395
|
+
data: components["schemas"]["AdsZarazConnection"];
|
|
185396
|
+
};
|
|
185397
|
+
};
|
|
185398
|
+
};
|
|
185399
|
+
401: components["responses"]["Unauthorized"];
|
|
185400
|
+
404: components["responses"]["NotFound"];
|
|
185401
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
185402
|
+
429: components["responses"]["TooManyRequests"];
|
|
185403
|
+
};
|
|
185404
|
+
};
|
|
185405
|
+
connectAdsWordPressZaraz: {
|
|
185406
|
+
parameters: {
|
|
185407
|
+
query?: never;
|
|
185408
|
+
header?: never;
|
|
185409
|
+
path?: never;
|
|
185410
|
+
cookie?: never;
|
|
185411
|
+
};
|
|
185412
|
+
requestBody: {
|
|
185413
|
+
content: {
|
|
185414
|
+
"application/json": {
|
|
185415
|
+
/** @description A Cloudflare API token with Zaraz Read + Edit on the site's zone. */
|
|
185416
|
+
token: string;
|
|
185417
|
+
};
|
|
185418
|
+
};
|
|
185419
|
+
};
|
|
185420
|
+
responses: {
|
|
185421
|
+
/** @description Connected. */
|
|
185422
|
+
201: {
|
|
185423
|
+
headers: {
|
|
185424
|
+
[name: string]: unknown;
|
|
185425
|
+
};
|
|
185426
|
+
content: {
|
|
185427
|
+
"application/json": {
|
|
185428
|
+
data: components["schemas"]["AdsZarazConnection"];
|
|
185429
|
+
};
|
|
185430
|
+
};
|
|
185431
|
+
};
|
|
185432
|
+
401: components["responses"]["Unauthorized"];
|
|
185433
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
185434
|
+
429: components["responses"]["TooManyRequests"];
|
|
185435
|
+
};
|
|
185436
|
+
};
|
|
185437
|
+
installAdsWordPressZaraz: {
|
|
185438
|
+
parameters: {
|
|
185439
|
+
query?: never;
|
|
185440
|
+
header?: never;
|
|
185441
|
+
path?: never;
|
|
185442
|
+
cookie?: never;
|
|
185443
|
+
};
|
|
185444
|
+
requestBody?: {
|
|
185445
|
+
content: {
|
|
185446
|
+
"application/json": {
|
|
185447
|
+
/** @description Ask visitors for consent with Zaraz's banner (a banner already on stays on). Omitted or null keeps the zone's current consent switch. */
|
|
185448
|
+
consent?: boolean | null;
|
|
185449
|
+
};
|
|
185450
|
+
};
|
|
185451
|
+
};
|
|
185452
|
+
responses: {
|
|
185453
|
+
/** @description Installed. */
|
|
185454
|
+
200: {
|
|
185455
|
+
headers: {
|
|
185456
|
+
[name: string]: unknown;
|
|
185457
|
+
};
|
|
185458
|
+
content: {
|
|
185459
|
+
"application/json": {
|
|
185460
|
+
data: components["schemas"]["AdsZarazActionResult"];
|
|
185461
|
+
};
|
|
185462
|
+
};
|
|
185463
|
+
};
|
|
185464
|
+
401: components["responses"]["Unauthorized"];
|
|
185465
|
+
404: components["responses"]["NotFound"];
|
|
185466
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
185467
|
+
429: components["responses"]["TooManyRequests"];
|
|
185468
|
+
};
|
|
185469
|
+
};
|
|
185257
185470
|
getAdsCallPoolNumber: {
|
|
185258
185471
|
parameters: {
|
|
185259
185472
|
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.1535",
|
|
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>",
|