@zinn-digital/sdk 0.1.1586 → 0.1.1588
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 +84 -3
- package/package.json +1 -1
|
@@ -33460,6 +33460,26 @@ export interface paths {
|
|
|
33460
33460
|
patch?: never;
|
|
33461
33461
|
trace?: never;
|
|
33462
33462
|
};
|
|
33463
|
+
"/v1/email-marketing/ai/write": {
|
|
33464
|
+
parameters: {
|
|
33465
|
+
query?: never;
|
|
33466
|
+
header?: never;
|
|
33467
|
+
path?: never;
|
|
33468
|
+
cookie?: never;
|
|
33469
|
+
};
|
|
33470
|
+
get?: never;
|
|
33471
|
+
put?: never;
|
|
33472
|
+
/**
|
|
33473
|
+
* Write a draft campaign email from a short brief with Zinn® AI.
|
|
33474
|
+
* @description Gated on `email_marketing.manage`. One model call during the request, paid by the organisation's own provider key, its credit balance or its included AI allowance, and listed on the AI spend page as "Writing campaign emails". Returns two subject lines (for an A/B test), a preheader and a sanitised HTML body in the requested language; nothing is saved, the editor fills the campaign and the customer saves it. Refused with `402` while the account is on hold or there is no AI allowance left, and `422` with a `failure` object (provider outage, a problem with the customer's own key, or ours) when the model call fails. Nothing is charged for a failed call.
|
|
33475
|
+
*/
|
|
33476
|
+
post: operations["writeEmailMarketingCampaignWithAi"];
|
|
33477
|
+
delete?: never;
|
|
33478
|
+
options?: never;
|
|
33479
|
+
head?: never;
|
|
33480
|
+
patch?: never;
|
|
33481
|
+
trace?: never;
|
|
33482
|
+
};
|
|
33463
33483
|
"/v1/email-marketing/campaigns": {
|
|
33464
33484
|
parameters: {
|
|
33465
33485
|
query?: never;
|
|
@@ -48622,7 +48642,7 @@ export interface paths {
|
|
|
48622
48642
|
};
|
|
48623
48643
|
/**
|
|
48624
48644
|
* Read a site's automatic app updates add-on and its window.
|
|
48625
|
-
* @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`, `payload_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates` or `
|
|
48645
|
+
* @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`, `payload_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates` or `zenphoto_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates` or `oscommerce_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. osCommerce: the vendor's newest osCommerce 4 build (its code over the store's, then its own database migrations and cache rebuild); the store's configuration, images and uploads are kept, and extensions and themes the customer added are kept and not updated. Dolibarr: the newest release of the installed major version (the tag's `htdocs`), then its own CLI upgrade (`install/upgrade.php`, `upgrade2.php`, `step5.php`) until the database records the new version; modules the customer added in `custom/` are kept and not updated. Buy it through `purchaseExtra` with `site_id`. Requires Silverstripe CMS: Composer moves the site to the newest release of the installed major (the newest `silverstripe/installer` constraints for the packages the site already requires), then its own `sake db:build --flush`; packages the customer added move only within their own constraints. Craft CMS: Composer moves `craftcms/cms` and every plugin to the newest release the project's own `composer.json` allows (the installed major), then its own `craft up` (migrations and project config) and `clear-caches/all`; done only when both the code and the database report the new version. osTicket: the newest release of the installed version line (1.17 or 1.18; its `upload/` folder, the desk's `include/ost-config.php` kept), then its own `manage.php upgrade` until no upgrade is pending; plugins and language packs the customer added are kept and not updated. Piwigo: the newest release of the installed major (the gallery's `local/` settings and every photo kept), then its own database upgrades (`upgrade_feed.php`) until none is left; plugins and themes the customer added are kept and not updated. MODX: the newest release of the installed major (`core/config` and installed Extras kept), then its own setup in upgrade mode (`setup/` removed after every run) until the database records the new version; Extras the customer installed are kept and not updated. SuiteCRM: the newest release of the installed major through SuiteCRM 8's own console upgrader (`suitecrm:app:upgrade`, then `upgrade-finalize -m keep`, customisations kept) until `suitecrm:version` reports the new version; modules the customer added are kept and not updated. Zenphoto: the newest release of the installed major swapped in (zp-data, albums, uploaded and the caches kept; plugins and themes merged), then Zenphoto's own setup driven over loopback signed in as the site's administrator (setup's blind autorun stops on LiteSpeed), setup protected again on every exit, until the database's install signature records the new version; a run whose setup failed after its swap is finished by the next run. `sites.view`.
|
|
48626
48646
|
*/
|
|
48627
48647
|
get: operations["getSiteAppAutoUpdate"];
|
|
48628
48648
|
/**
|
|
@@ -82466,6 +82486,26 @@ export interface components {
|
|
|
82466
82486
|
rate_limit_per_min: number;
|
|
82467
82487
|
route_through_proxy: boolean;
|
|
82468
82488
|
};
|
|
82489
|
+
EmailMarketingAiDraft: {
|
|
82490
|
+
/** @description The body */
|
|
82491
|
+
html: string;
|
|
82492
|
+
model: string;
|
|
82493
|
+
preheader: string;
|
|
82494
|
+
subject_a: string;
|
|
82495
|
+
/** @description A second subject line for an A/B test. */
|
|
82496
|
+
subject_b: string;
|
|
82497
|
+
};
|
|
82498
|
+
EmailMarketingAiWriteRequest: {
|
|
82499
|
+
/** @description What the email is about */
|
|
82500
|
+
brief: string;
|
|
82501
|
+
/** @description The language to write in (a BCP 47 tag); defaults to en. */
|
|
82502
|
+
locale?: string;
|
|
82503
|
+
/**
|
|
82504
|
+
* @default friendly
|
|
82505
|
+
* @enum {string}
|
|
82506
|
+
*/
|
|
82507
|
+
tone: "friendly" | "professional" | "playful" | "urgent" | "calm";
|
|
82508
|
+
};
|
|
82469
82509
|
EmailMarketingCampaign: {
|
|
82470
82510
|
/** Format: date-time */
|
|
82471
82511
|
created_at: string;
|
|
@@ -101876,7 +101916,7 @@ export interface components {
|
|
|
101876
101916
|
total_ms: number;
|
|
101877
101917
|
transaction: string;
|
|
101878
101918
|
};
|
|
101879
|
-
/** @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`, `payload_auto_updates`, `oscommerce_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates` or `
|
|
101919
|
+
/** @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`, `payload_auto_updates`, `oscommerce_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates` or `zenphoto_auto_updates`), the window and the last run's outcome. */
|
|
101880
101920
|
SiteAppAutoUpdate: {
|
|
101881
101921
|
/** @description Whether the add-on is on and in good standing now. */
|
|
101882
101922
|
active: boolean;
|
|
@@ -101884,7 +101924,7 @@ export interface components {
|
|
|
101884
101924
|
* @description The app the add-on serves on this site, or null when none is sold for it.
|
|
101885
101925
|
* @enum {string|null}
|
|
101886
101926
|
*/
|
|
101887
|
-
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | "oscommerce" | "dolibarr" | "silverstripe" | "craft" | "osticket" | "piwigo" | "modx" | "suitecrm" | null;
|
|
101927
|
+
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | "oscommerce" | "dolibarr" | "silverstripe" | "craft" | "osticket" | "piwigo" | "modx" | "suitecrm" | "zenphoto" | null;
|
|
101888
101928
|
can_buy: boolean;
|
|
101889
101929
|
/** @description The catalogue code to buy (`<app_key>_auto_updates`). */
|
|
101890
101930
|
code: string | null;
|
|
@@ -171119,6 +171159,47 @@ export interface operations {
|
|
|
171119
171159
|
403: components["responses"]["Forbidden"];
|
|
171120
171160
|
};
|
|
171121
171161
|
};
|
|
171162
|
+
writeEmailMarketingCampaignWithAi: {
|
|
171163
|
+
parameters: {
|
|
171164
|
+
query?: {
|
|
171165
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
171166
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
171167
|
+
};
|
|
171168
|
+
header?: never;
|
|
171169
|
+
path?: never;
|
|
171170
|
+
cookie?: never;
|
|
171171
|
+
};
|
|
171172
|
+
requestBody: {
|
|
171173
|
+
content: {
|
|
171174
|
+
"application/json": components["schemas"]["EmailMarketingAiWriteRequest"];
|
|
171175
|
+
};
|
|
171176
|
+
};
|
|
171177
|
+
responses: {
|
|
171178
|
+
/** @description The draft. */
|
|
171179
|
+
200: {
|
|
171180
|
+
headers: {
|
|
171181
|
+
[name: string]: unknown;
|
|
171182
|
+
};
|
|
171183
|
+
content: {
|
|
171184
|
+
"application/json": components["schemas"]["EmailMarketingAiDraft"];
|
|
171185
|
+
};
|
|
171186
|
+
};
|
|
171187
|
+
401: components["responses"]["Unauthorized"];
|
|
171188
|
+
/** @description The account is on hold, or there is no AI allowance left to pay for the call. */
|
|
171189
|
+
402: {
|
|
171190
|
+
headers: {
|
|
171191
|
+
[name: string]: unknown;
|
|
171192
|
+
};
|
|
171193
|
+
content: {
|
|
171194
|
+
"application/json": components["schemas"]["Error"];
|
|
171195
|
+
};
|
|
171196
|
+
};
|
|
171197
|
+
403: components["responses"]["Forbidden"];
|
|
171198
|
+
404: components["responses"]["NotFound"];
|
|
171199
|
+
409: components["responses"]["Conflict"];
|
|
171200
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
171201
|
+
};
|
|
171202
|
+
};
|
|
171122
171203
|
listEmailMarketingCampaigns: {
|
|
171123
171204
|
parameters: {
|
|
171124
171205
|
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.1588",
|
|
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>",
|