@cookiemunch/sdk 0.15.1 → 0.16.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/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.15.1";
23
+ export declare const SDK_VERSION = "0.16.0";
24
24
  export interface CookieMunchOptions {
25
25
  apiKey: string;
26
26
  /** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
@@ -283,7 +283,8 @@ export interface CategorizedCookie {
283
283
  vendor?: string;
284
284
  }
285
285
  /** What a declaration row describes. */
286
- export type StorageType = 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB';
286
+ /** `none`: a cookieless processor (an analytics beacon) declared so the policy names it; nothing is stored. */
287
+ export type StorageType = 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB' | 'none';
287
288
  /** A cookie the site owner retired: the site renamed or stopped setting it. */
288
289
  export interface RetiredCookie {
289
290
  /** Exact name, or a `prefix*` wildcard. */
@@ -324,7 +325,7 @@ export interface DeclaredCookieInput {
324
325
  domain?: string;
325
326
  /** Treat the name as a prefix wildcard (a trailing `*` does the same). */
326
327
  pattern?: boolean;
327
- /** A cookie (default) or a key in localStorage, sessionStorage or IndexedDB. */
328
+ /** A cookie (default), a key in localStorage, sessionStorage or IndexedDB, or `none` (stores nothing: a cookieless processor). */
328
329
  type?: StorageType;
329
330
  }
330
331
  /** A stored declaration. */
@@ -382,7 +383,7 @@ export interface CookieTranslateResult {
382
383
  }>;
383
384
  }
384
385
  /** A platform whose cookies and storage a preset declares. */
385
- export type CookiePresetVendor = 'atlas' | 'forumulate' | 'chatly' | 'cookiemunch' | 'referalli' | 'firstpromoter' | 'partnerstack' | 'tapfiliate' | 'impact'
386
+ export type CookiePresetVendor = 'atlas' | 'forumulate' | 'chatly' | 'cookiemunch' | 'referalli' | 'firstpromoter' | 'partnerstack' | 'tapfiliate' | 'impact' | 'seolyticize'
386
387
  /** @deprecated the old name of `referalli`, accepted until 2027-10-23. */
387
388
  | 'referally';
388
389
  /** Where a vendor's live manifest will come from, and whether it exists yet. */
@@ -2426,6 +2427,8 @@ export interface ExecutorPresetStep {
2426
2427
  /** The presets, which are usable now, and this org's canary address. */
2427
2428
  export interface ExecutorPresets {
2428
2429
  canaryEmail: string;
2430
+ /** The same list as `presets`, under the name every list answer uses. */
2431
+ data?: ExecutorPresets['presets'];
2429
2432
  presets: Array<{
2430
2433
  name: ExecutorPresetName;
2431
2434
  title: string;
@@ -2901,7 +2904,7 @@ export interface CookieMunchClient {
2901
2904
  dryRun: true;
2902
2905
  retired: RetiredCookie[];
2903
2906
  }>;
2904
- /** Every declaration preset (atlas, forumulate, chatly, cookiemunch, referalli, firstpromoter, partnerstack, tapfiliate, impact): params, what it declared here, manifest status. */
2907
+ /** Every declaration preset (atlas, forumulate, chatly, cookiemunch, referalli, firstpromoter, partnerstack, tapfiliate, impact, seolyticize): params, what it declared here, manifest status. */
2905
2908
  cookiePresets(cbid: string): Promise<{
2906
2909
  presets: CookiePreset[];
2907
2910
  aliases?: Record<string, string>;
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.15.1";
91
+ var SDK_VERSION = "0.16.0";
92
92
  var CookieMunchApiError = class extends Error {
93
93
  constructor(status, message, code, body) {
94
94
  super(message);