@cookiemunch/sdk 0.11.0 → 0.12.1

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,16 @@
2
2
 
3
3
  Every published release, newest first. Dates are the day the version was cut.
4
4
 
5
+ ## 0.12.1 (2026-11-02)
6
+
7
+ - Added: `host`, `steps` and `effect` on each `DsarCreateDryRun.plan` entry: what that system would do.
8
+
9
+ ## 0.12.0 (2026-11-02)
10
+
11
+ - Added: `dsar.create(input, { dryRun: true })` answers the plan (`DsarCreateDryRun`) and files nothing; `lastSeenAt` on `Site`.
12
+ - Added: `sites.translation` / `connectTranslation` / `disconnectTranslation` / `translateCookies`: machine-translate the missing purposes of your own cookie rows on your own DeepL or Google account; `machinePurposes` on a declaration.
13
+ - Added: processor routing types: `DsarSettings.processing` and `acceptForwardsFrom` (`dsarSettings.set` takes `DsarSettingsInput`), `controller` on `DsarCreate`/`DsarCaseCreate`, `processor` and `forwardedFrom` on cases, origin `processor_forward`.
14
+
5
15
  ## 0.11.0 (2026-11-02)
6
16
 
7
17
  - Added: `anchors.create` / `list` / `get`: signed, timestamped receipts for the head of your own hash-chained log (`POST /v1/anchors`).
package/dist/index.cjs CHANGED
@@ -465,7 +465,7 @@ async function exchangeOperatorToken(input) {
465
465
  }
466
466
 
467
467
  // src/index.ts
468
- var SDK_VERSION = "0.11.0";
468
+ var SDK_VERSION = "0.12.1";
469
469
  var CookieMunchApiError = class extends Error {
470
470
  constructor(status, message, code, body) {
471
471
  super(message);
@@ -620,6 +620,10 @@ function createCookieMunch(opts) {
620
620
  importCookieManifest: (cbid, input, o) => request("PUT", `/sites/${enc(cbid)}/cookies/presets/custom${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input),
621
621
  cookieSuggestions: (cbid) => get(`/sites/${enc(cbid)}/cookies/suggestions`),
622
622
  declareCookieSuggestions: (cbid, input, o) => request("POST", `/sites/${enc(cbid)}/cookies/suggestions/declare${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input ?? {}),
623
+ translation: (cbid) => get(`/sites/${enc(cbid)}/translation`),
624
+ connectTranslation: (cbid, input, o) => request("PUT", `/sites/${enc(cbid)}/translation${qs({ verify: o?.verify ? "1" : void 0 })}`, input),
625
+ disconnectTranslation: (cbid) => request("DELETE", `/sites/${enc(cbid)}/translation`),
626
+ translateCookies: (cbid, input, o) => request("POST", `/sites/${enc(cbid)}/cookies/translate${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input ?? {}),
623
627
  removeCookiePreset: (cbid, vendor, o) => request("DELETE", `/sites/${enc(cbid)}/cookies/presets/${enc(vendor)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`),
624
628
  deleteObservedCookie: (async (cbid, name, o) => {
625
629
  const out = await request("DELETE", `/sites/${enc(cbid)}/observed-cookies/${enc(name)}${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`);
@@ -675,7 +679,7 @@ function createCookieMunch(opts) {
675
679
  dsar: {
676
680
  list: () => get("/dsar"),
677
681
  get: (id) => get(`/dsar/${enc(id)}`),
678
- create: (input) => request("POST", "/dsar", input),
682
+ create: ((input, o) => request("POST", `/dsar${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input)),
679
683
  advance: (id, toStatus, opts2) => request("POST", `/dsar/${enc(id)}/advance`, { toStatus, ...opts2?.messageToSubject !== void 0 ? { messageToSubject: opts2.messageToSubject } : {} }),
680
684
  response: (id) => request("GET", `/dsar/${enc(id)}/response`, void 0, true),
681
685
  erase: (id, cbid, stamp) => request("POST", `/dsar/${enc(id)}/erase`, { cbid, stamp }),