@cookiemunch/sdk 0.10.0 → 0.12.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 +12 -0
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +160 -8
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +78 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Every published release, newest first. Dates are the day the version was cut.
|
|
4
4
|
|
|
5
|
+
## 0.12.0 (2026-11-02)
|
|
6
|
+
|
|
7
|
+
- Added: `dsar.create(input, { dryRun: true })` answers the plan (`DsarCreateDryRun`) and files nothing; `lastSeenAt` on `Site`.
|
|
8
|
+
- 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.
|
|
9
|
+
- Added: processor routing types: `DsarSettings.processing` and `acceptForwardsFrom` (`dsarSettings.set` takes `DsarSettingsInput`), `controller` on `DsarCreate`/`DsarCaseCreate`, `processor` and `forwardedFrom` on cases, origin `processor_forward`.
|
|
10
|
+
|
|
11
|
+
## 0.11.0 (2026-11-02)
|
|
12
|
+
|
|
13
|
+
- Added: `anchors.create` / `list` / `get`: signed, timestamped receipts for the head of your own hash-chained log (`POST /v1/anchors`).
|
|
14
|
+
- Added: `health.version` (the system's last `X-Version`) on executor connections; `skipped` on a created request.
|
|
15
|
+
- Changed: `cookies.declare` with `replace: true` leaves vendor-preset rows alone.
|
|
16
|
+
|
|
5
17
|
## 0.10.0 (2026-11-01)
|
|
6
18
|
|
|
7
19
|
- Added: `fulfillment.approveTask` / `rejectTask` for an erasure parked by `requireApproval`; `requireApproval` on connections; `verify: 1 | 'warn'` on `connectExecutor`; `listByOrigin` (`origin: "account_deletion"`).
|
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.
|
|
468
|
+
var SDK_VERSION = "0.12.0";
|
|
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",
|
|
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 }),
|
|
@@ -854,6 +858,11 @@ function createCookieMunch(opts) {
|
|
|
854
858
|
usage: () => get("/usage"),
|
|
855
859
|
entitlements: () => get("/entitlements"),
|
|
856
860
|
versions: () => get("/versions"),
|
|
861
|
+
anchors: {
|
|
862
|
+
create: (input) => request("POST", "/anchors", input),
|
|
863
|
+
list: (stream, query) => get(`/anchors/${enc(stream)}${qs(query)}`),
|
|
864
|
+
get: (stream, id) => get(`/anchors/${enc(stream)}/${enc(id)}`)
|
|
865
|
+
},
|
|
857
866
|
sandbox: {
|
|
858
867
|
get: async () => (await get("/sandbox")).sandbox,
|
|
859
868
|
create: (input) => request("POST", "/sandbox", input ?? {}),
|