@cookiemunch/sdk 0.7.1 → 0.8.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 +8 -1
- package/dist/consent-sync.d.ts +13 -0
- package/dist/consent.d.ts +21 -22
- package/dist/executor-conformance.d.ts +75 -0
- package/dist/fd-consent.d.ts +73 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +235 -1032
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/token-exchange.d.ts +42 -0
- package/dist/types.d.ts +637 -0
- package/dist/webhooks.d.ts +22 -0
- package/package.json +2 -2
- package/dist/consent.d.cts +0 -169
- package/dist/index.d.cts +0 -4267
package/dist/index.js
CHANGED
|
@@ -257,7 +257,7 @@ async function exchangeOperatorToken(input) {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
// src/index.ts
|
|
260
|
-
var SDK_VERSION = "0.
|
|
260
|
+
var SDK_VERSION = "0.8.0";
|
|
261
261
|
var CookieMunchApiError = class extends Error {
|
|
262
262
|
constructor(status, message, code, body) {
|
|
263
263
|
super(message);
|
|
@@ -479,7 +479,7 @@ function createCookieMunch(opts) {
|
|
|
479
479
|
listByTrace: (trace) => get(`/dsar${qs({ trace })}`),
|
|
480
480
|
openCase: (input, o) => request("POST", "/dsar/requests", input, false, {
|
|
481
481
|
...o?.idempotencyKey ? { "Idempotency-Key": o.idempotencyKey } : {},
|
|
482
|
-
...o?.trace ? { "X-
|
|
482
|
+
...o?.trace ? { "X-Trace-Id": o.trace } : {}
|
|
483
483
|
}),
|
|
484
484
|
getCase: (id) => get(`/dsar/requests/${enc(id)}`),
|
|
485
485
|
cancelCase: (id) => request("POST", `/dsar/requests/${enc(id)}/cancel`),
|
|
@@ -751,7 +751,8 @@ function createCookieMunch(opts) {
|
|
|
751
751
|
set: (cbid, input) => request("PUT", `/sites/${enc(cbid)}/dsar-settings`, input)
|
|
752
752
|
},
|
|
753
753
|
integrations: {
|
|
754
|
-
subjectCard: (app, person) => get(`/integrations/${enc(app)}/card${qs(person)}`)
|
|
754
|
+
subjectCard: (app, person) => get(`/integrations/${enc(app)}/card${qs(person)}`),
|
|
755
|
+
connect: (provider, input, o) => request("POST", `/integrations/${enc(provider)}/connect${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, input)
|
|
755
756
|
},
|
|
756
757
|
subjects: {
|
|
757
758
|
consent: (subjectId) => get(`/subjects/${enc(subjectId)}/consent`)
|