@cookiemunch/sdk 0.15.0 → 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.0";
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. */
@@ -138,7 +138,8 @@ export interface ProvisionRequestV2 {
138
138
  secretKey?: string;
139
139
  cookieConsent?: boolean;
140
140
  executor?: boolean;
141
- frontendApiHost?: string;
141
+ frontendApiHost?: string; /** Atlas's one-call connect (step `atlas.connect`): the connection holds Atlas's narrow key, never `secretKey`. */
142
+ connect?: boolean;
142
143
  };
143
144
  forumulate?: {
144
145
  org?: string;
@@ -282,7 +283,8 @@ export interface CategorizedCookie {
282
283
  vendor?: string;
283
284
  }
284
285
  /** What a declaration row describes. */
285
- 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';
286
288
  /** A cookie the site owner retired: the site renamed or stopped setting it. */
287
289
  export interface RetiredCookie {
288
290
  /** Exact name, or a `prefix*` wildcard. */
@@ -323,7 +325,7 @@ export interface DeclaredCookieInput {
323
325
  domain?: string;
324
326
  /** Treat the name as a prefix wildcard (a trailing `*` does the same). */
325
327
  pattern?: boolean;
326
- /** 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). */
327
329
  type?: StorageType;
328
330
  }
329
331
  /** A stored declaration. */
@@ -381,7 +383,7 @@ export interface CookieTranslateResult {
381
383
  }>;
382
384
  }
383
385
  /** A platform whose cookies and storage a preset declares. */
384
- 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'
385
387
  /** @deprecated the old name of `referalli`, accepted until 2027-10-23. */
386
388
  | 'referally';
387
389
  /** Where a vendor's live manifest will come from, and whether it exists yet. */
@@ -573,6 +575,8 @@ export interface CookiePreset {
573
575
  }>;
574
576
  applied: boolean;
575
577
  declared: string[];
578
+ /** An applied preset: names the site was seen writing under the vendor's prefixes that nothing declares. */
579
+ incomplete?: string[];
576
580
  manifest: CookiePresetManifest;
577
581
  }
578
582
  /** What applying a preset declared. */
@@ -2423,6 +2427,8 @@ export interface ExecutorPresetStep {
2423
2427
  /** The presets, which are usable now, and this org's canary address. */
2424
2428
  export interface ExecutorPresets {
2425
2429
  canaryEmail: string;
2430
+ /** The same list as `presets`, under the name every list answer uses. */
2431
+ data?: ExecutorPresets['presets'];
2426
2432
  presets: Array<{
2427
2433
  name: ExecutorPresetName;
2428
2434
  title: string;
@@ -2898,7 +2904,7 @@ export interface CookieMunchClient {
2898
2904
  dryRun: true;
2899
2905
  retired: RetiredCookie[];
2900
2906
  }>;
2901
- /** 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. */
2902
2908
  cookiePresets(cbid: string): Promise<{
2903
2909
  presets: CookiePreset[];
2904
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.0";
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);