@cookiemunch/sdk 0.16.0 → 0.17.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Every published release, newest first. Dates are the day the version was cut.
4
4
 
5
+ ## 0.17.0 (2026-11-04)
6
+
7
+ - Added: `sites.translateConfig(cbid, { languages?, dryRun? })`: fills the missing languages of the site's own banner and category copy on its connected DeepL or Google account.
8
+ - Added: `i18n.autoTranslate` and `i18n.machineTranslations` on the site config types.
9
+
5
10
  ## 0.16.0 (2026-11-03)
6
11
 
7
12
  - Added: `seolyticize` in `CookiePresetVendor`, and `none` in `StorageType` (a row that stores nothing in the browser).
package/dist/index.cjs CHANGED
@@ -630,6 +630,7 @@ function createCookieMunch(opts) {
630
630
  connectTranslation: (cbid, input, o) => request("PUT", `/sites/${enc(cbid)}/translation${qs({ verify: o?.verify ? "1" : void 0 })}`, input),
631
631
  disconnectTranslation: (cbid) => request("DELETE", `/sites/${enc(cbid)}/translation`),
632
632
  translateCookies: (cbid, input, o) => request("POST", `/sites/${enc(cbid)}/cookies/translate${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input ?? {}),
633
+ translateConfig: (cbid, input, o) => request("POST", `/sites/${enc(cbid)}/config/translate${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input ?? {}),
633
634
  removeCookiePreset: (cbid, vendor, o) => request("DELETE", `/sites/${enc(cbid)}/cookies/presets/${enc(vendor)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`),
634
635
  deleteObservedCookie: (async (cbid, name, o) => {
635
636
  const out = await request("DELETE", `/sites/${enc(cbid)}/observed-cookies/${enc(name)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`);