@cookiemunch/sdk 0.14.1 → 0.14.2

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/index.d.ts CHANGED
@@ -20,7 +20,7 @@ import type { ConformanceReport } from './executor-conformance.js';
20
20
  * This package's version, sent in the default User-Agent. Cloudflare answers a request with
21
21
  * no recognisable User-Agent with `403 error code: 1010`; a test pins this to package.json.
22
22
  */
23
- export declare const SDK_VERSION = "0.14.1";
23
+ export declare const SDK_VERSION = "0.14.2";
24
24
  export interface CookieMunchOptions {
25
25
  apiKey: string;
26
26
  /** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
@@ -626,8 +626,10 @@ export interface CookiePlanInput {
626
626
  name: string;
627
627
  }>;
628
628
  replace?: boolean;
629
- /** Vendor → its params, applied in key order, each seeing the steps before it. */
630
- presets?: Partial<Record<CookiePresetVendor, CookiePresetParams>>;
629
+ /** Vendor → its params, applied in key order, each seeing the steps before it. `custom` takes the body of `PUT …/cookies/presets/custom`. */
630
+ presets?: Partial<Record<CookiePresetVendor, CookiePresetParams>> & {
631
+ custom?: CustomPresetInput;
632
+ };
631
633
  }
632
634
  /** What the steps, in order, would produce. Nothing was stored. */
633
635
  export interface CookiePlanResult {
package/dist/index.js CHANGED
@@ -88,7 +88,7 @@ async function exchangeOperatorToken(input) {
88
88
  }
89
89
 
90
90
  // src/index.ts
91
- var SDK_VERSION = "0.14.1";
91
+ var SDK_VERSION = "0.14.2";
92
92
  var CookieMunchApiError = class extends Error {
93
93
  constructor(status, message, code, body) {
94
94
  super(message);