@cookiemunch/sdk 0.29.0 → 0.31.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.29.0";
23
+ export declare const SDK_VERSION = "0.31.0";
24
24
  export interface CookieMunchOptions {
25
25
  apiKey: string;
26
26
  /** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
@@ -620,12 +620,20 @@ export interface CookiePreset {
620
620
  /** An applied preset: names the site was seen writing under the vendor's prefixes that nothing declares. */
621
621
  incomplete?: string[];
622
622
  manifest: CookiePresetManifest;
623
+ /** A first-class preset this site applied: the revision its rows came from (`instance:<version>` for Chatly's storage declaration). */
624
+ appliedRevision?: string;
625
+ appliedAt?: string;
626
+ /** What the vendor's instance source answered at its last hourly read; differs from `appliedRevision` when the vendor changed. */
627
+ latestRevision?: string;
628
+ latestAt?: string;
623
629
  }
624
630
  /** What applying a preset declared. */
625
631
  export interface CookiePresetResult {
626
632
  vendor: CookiePresetVendor | (string & {});
627
633
  /** `builtin` (Cookie Munch's own rows, also while the vendor's manifest is invalid), `manifest` (its valid embed manifest), or `instance`. */
628
634
  source?: 'builtin' | 'manifest' | 'instance';
635
+ /** Rows this preset declares that your own rows of the same name hide (also in `skipped`), as it would publish them. */
636
+ shadowed?: DeclaredCookie[];
629
637
  /** With `source: "builtin"`: the built-in rows' revision (`builtin:<hash>`); it changes only when what the preset declares here does. */
630
638
  revision?: string;
631
639
  /** What moved at the vendor since this site last applied the preset (a manifest or instance). An instance's revision is `instance:<hash>`. */
package/dist/index.js CHANGED
@@ -89,7 +89,7 @@ async function exchangeOperatorToken(input) {
89
89
  }
90
90
 
91
91
  // src/index.ts
92
- var SDK_VERSION = "0.29.0";
92
+ var SDK_VERSION = "0.31.0";
93
93
  var CookieMunchApiError = class extends Error {
94
94
  constructor(status, message, code, body) {
95
95
  super(message);