@utilix-tech/sdk 0.91.0 → 0.93.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.cjs CHANGED
@@ -5682,6 +5682,7 @@ __export(data_exports, {
5682
5682
  serializeSubtitles: () => serializeSubtitles,
5683
5683
  shiftSubtitles: () => shiftSubtitles,
5684
5684
  stringifyIni: () => stringifyIni,
5685
+ summarizeCsvColumnStats: () => summarizeCsvColumnStats,
5685
5686
  toCsvString: () => toCsvString,
5686
5687
  tomlToJson: () => tomlToJson,
5687
5688
  validateEnvKey: () => validateEnvKey,
@@ -7790,6 +7791,68 @@ function alignMarkdownTables(markdown) {
7790
7791
  if (tables.length === 0) return { error: "No Markdown tables found" };
7791
7792
  return { output: outputLines.join("\n"), tables, warnings };
7792
7793
  }
7794
+ var _CSV_NUMERIC_RE = /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/;
7795
+ function _parseCsvNumeric(raw) {
7796
+ if (!_CSV_NUMERIC_RE.test(raw)) return null;
7797
+ const n = Number(raw);
7798
+ return Number.isFinite(n) ? n : null;
7799
+ }
7800
+ function summarizeCsvColumnStats(input, options) {
7801
+ const parsed = parseCsv(input, {
7802
+ delimiter: options?.delimiter ?? ",",
7803
+ hasHeader: options?.hasHeader !== false
7804
+ });
7805
+ if ("error" in parsed) return parsed;
7806
+ if (parsed.rows.length === 0) return { error: "No data rows found" };
7807
+ const columns = parsed.headers.map((name, colIdx) => {
7808
+ let nullCount = 0;
7809
+ let nonNumericCount = 0;
7810
+ const numericValues = [];
7811
+ const freq = /* @__PURE__ */ new Map();
7812
+ for (const row of parsed.rows) {
7813
+ const raw = (row[colIdx] ?? "").trim();
7814
+ if (raw === "") {
7815
+ nullCount++;
7816
+ continue;
7817
+ }
7818
+ freq.set(raw, (freq.get(raw) ?? 0) + 1);
7819
+ const n = _parseCsvNumeric(raw);
7820
+ if (n !== null) numericValues.push(n);
7821
+ else nonNumericCount++;
7822
+ }
7823
+ const nonEmptyCount = parsed.rows.length - nullCount;
7824
+ const isNumeric = nonEmptyCount > 0 && nonNumericCount === 0;
7825
+ let mostCommon;
7826
+ for (const [value, count] of freq) {
7827
+ if (!mostCommon || count > mostCommon.count) mostCommon = { value, count };
7828
+ }
7829
+ const stats = {
7830
+ name,
7831
+ totalCount: parsed.rows.length,
7832
+ nullCount,
7833
+ uniqueCount: freq.size,
7834
+ isNumeric,
7835
+ numericCount: numericValues.length
7836
+ };
7837
+ if (isNumeric && numericValues.length > 0) {
7838
+ const sorted = [...numericValues].sort((a, b) => a - b);
7839
+ const sum = sorted.reduce((a, b) => a + b, 0);
7840
+ const mean = sum / sorted.length;
7841
+ const mid = Math.floor(sorted.length / 2);
7842
+ const median = sorted.length % 2 === 0 ? (sorted[mid - 1] + sorted[mid]) / 2 : sorted[mid];
7843
+ const variance = sorted.reduce((acc, v) => acc + (v - mean) ** 2, 0) / sorted.length;
7844
+ stats.min = sorted[0];
7845
+ stats.max = sorted[sorted.length - 1];
7846
+ stats.mean = mean;
7847
+ stats.median = median;
7848
+ stats.stdDev = Math.sqrt(variance);
7849
+ } else {
7850
+ stats.mostCommon = mostCommon;
7851
+ }
7852
+ return stats;
7853
+ });
7854
+ return { columns, rowCount: parsed.rows.length };
7855
+ }
7793
7856
 
7794
7857
  // src/tools/generators.ts
7795
7858
  var generators_exports = {};
@@ -12421,6 +12484,7 @@ __export(network_exports, {
12421
12484
  assessContentTypeRisk: () => assessContentTypeRisk,
12422
12485
  buildAcceptLanguage: () => buildAcceptLanguage,
12423
12486
  buildCacheControl: () => buildCacheControl,
12487
+ buildClearSiteData: () => buildClearSiteData,
12424
12488
  buildClientHints: () => buildClientHints,
12425
12489
  buildContentDisposition: () => buildContentDisposition,
12426
12490
  buildDnsQueryUrl: () => buildDnsQueryUrl,
@@ -12461,6 +12525,7 @@ __export(network_exports, {
12461
12525
  lookupCloseCode: () => lookupCloseCode,
12462
12526
  lookupOpcode: () => lookupOpcode,
12463
12527
  parseAcceptLanguage: () => parseAcceptLanguage,
12528
+ parseClearSiteData: () => parseClearSiteData,
12464
12529
  parseClientHintHeaders: () => parseClientHintHeaders,
12465
12530
  parseContentDisposition: () => parseContentDisposition,
12466
12531
  parseContentRangeHeader: () => parseContentRangeHeader,
@@ -16070,6 +16135,51 @@ function scoreSecurityHeaders(rawHeaders) {
16070
16135
  const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >= 60 ? "C" : score >= 40 ? "D" : "F";
16071
16136
  return { checks, score, grade, passCount, warningCount, missingCount, totalChecks };
16072
16137
  }
16138
+ var CLEAR_SITE_DATA_DIRECTIVES = /* @__PURE__ */ new Set(["cache", "cookies", "storage", "executionContexts", "*"]);
16139
+ function buildClearSiteData(directives) {
16140
+ if (!Array.isArray(directives) || directives.length === 0) {
16141
+ return { error: "directives must be a non-empty array" };
16142
+ }
16143
+ const seen = /* @__PURE__ */ new Set();
16144
+ const normalized = [];
16145
+ for (const raw of directives) {
16146
+ if (typeof raw !== "string") return { error: "Each directive must be a string" };
16147
+ if (!CLEAR_SITE_DATA_DIRECTIVES.has(raw)) {
16148
+ return { error: `Unrecognized directive "${raw}". Valid directives: cache, cookies, storage, executionContexts, *` };
16149
+ }
16150
+ if (seen.has(raw)) continue;
16151
+ seen.add(raw);
16152
+ normalized.push(raw);
16153
+ }
16154
+ const warnings = [];
16155
+ if (normalized.includes("*") && normalized.length > 1) {
16156
+ warnings.push('"*" already clears cache, cookies, storage, and executionContexts (plus any future data types the spec adds), so listing other directives alongside it is redundant.');
16157
+ }
16158
+ const header = normalized.map((d) => `"${d}"`).join(", ");
16159
+ return {
16160
+ header,
16161
+ headerName: "Clear-Site-Data",
16162
+ snippet: `Clear-Site-Data: ${header}`,
16163
+ directives: normalized,
16164
+ warnings
16165
+ };
16166
+ }
16167
+ function parseClearSiteData(raw) {
16168
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
16169
+ const withoutLabel = raw.trim().replace(/^clear-site-data:\s*/i, "");
16170
+ const tokens = withoutLabel.split(",").map((t) => t.trim()).filter((t) => t !== "");
16171
+ if (tokens.length === 0) return { error: "No directives found" };
16172
+ const directives = [];
16173
+ for (const token of tokens) {
16174
+ const match = token.match(/^"(.*)"$/);
16175
+ const value = match ? match[1] : token;
16176
+ if (!CLEAR_SITE_DATA_DIRECTIVES.has(value)) {
16177
+ return { error: `Unrecognized directive "${token}"; each directive should be a quoted string like "cookies"` };
16178
+ }
16179
+ directives.push(value);
16180
+ }
16181
+ return buildClearSiteData(directives);
16182
+ }
16073
16183
 
16074
16184
  // src/tools/api.ts
16075
16185
  var api_exports = {};
@@ -17507,6 +17617,7 @@ __export(code_exports, {
17507
17617
  countRules: () => countRules,
17508
17618
  countSqlPlaceholders: () => countSqlPlaceholders,
17509
17619
  detectDialect: () => detectDialect,
17620
+ detectLockfileFormat: () => detectLockfileFormat,
17510
17621
  detectOperationType: () => detectOperationType,
17511
17622
  detectRedos: () => detectRedos,
17512
17623
  envToExport: () => envToExport2,
@@ -17514,6 +17625,7 @@ __export(code_exports, {
17514
17625
  extractMarkdownFootnotes: () => extractMarkdownFootnotes,
17515
17626
  extractMarkdownLinkReferences: () => extractMarkdownLinkReferences,
17516
17627
  extractSvgSpriteSymbols: () => extractSvgSpriteSymbols,
17628
+ findDuplicateLockfileVersions: () => findDuplicateLockfileVersions,
17517
17629
  formatCss: () => formatCss,
17518
17630
  formatGql: () => formatGql,
17519
17631
  formatHtml: () => formatHtml,
@@ -17547,6 +17659,7 @@ __export(code_exports, {
17547
17659
  searchCheatsheet: () => searchCheatsheet,
17548
17660
  searchEndpoints: () => searchEndpoints,
17549
17661
  splitStatements: () => splitStatements,
17662
+ summarizeGitDiffStat: () => summarizeGitDiffStat,
17550
17663
  testGitignorePatterns: () => testGitignorePatterns,
17551
17664
  testPattern: () => testPattern,
17552
17665
  testRegex: () => testRegex,
@@ -22101,6 +22214,209 @@ function buildCharacterClass(options) {
22101
22214
  const pattern = `[${negate ? "^" : ""}${parts.join("")}]`;
22102
22215
  return { pattern, negate, includes };
22103
22216
  }
22217
+ function detectLockfileFormat(input) {
22218
+ const trimmed = input.trim();
22219
+ if (trimmed.startsWith("{")) return "npm";
22220
+ if (/^lockfileVersion:/m.test(trimmed) || /^packages:\s*$/m.test(trimmed)) return "pnpm";
22221
+ if (/yarn lockfile v\d/i.test(trimmed)) return "yarn";
22222
+ if (/^\s*version\s+"[^"]+"/m.test(trimmed) && /@[^\s",]+["']?\s*:?\s*$/m.test(trimmed)) return "yarn";
22223
+ return null;
22224
+ }
22225
+ function parseNpmLockfile(input) {
22226
+ const data = JSON.parse(input);
22227
+ const entries = [];
22228
+ const packages = data.packages;
22229
+ if (packages && typeof packages === "object" && !Array.isArray(packages)) {
22230
+ for (const [path, metaRaw] of Object.entries(packages)) {
22231
+ if (path === "" || !metaRaw || typeof metaRaw !== "object") continue;
22232
+ const meta = metaRaw;
22233
+ if (typeof meta.version !== "string") continue;
22234
+ const idx = path.lastIndexOf("node_modules/");
22235
+ const name = idx === -1 ? path : path.slice(idx + "node_modules/".length);
22236
+ entries.push({ name, version: meta.version });
22237
+ }
22238
+ return entries;
22239
+ }
22240
+ const dependencies = data.dependencies;
22241
+ if (dependencies && typeof dependencies === "object" && !Array.isArray(dependencies)) {
22242
+ const walk = (deps) => {
22243
+ for (const [name, metaRaw] of Object.entries(deps)) {
22244
+ if (!metaRaw || typeof metaRaw !== "object") continue;
22245
+ const meta = metaRaw;
22246
+ if (typeof meta.version === "string") entries.push({ name, version: meta.version });
22247
+ if (meta.dependencies && typeof meta.dependencies === "object") {
22248
+ walk(meta.dependencies);
22249
+ }
22250
+ }
22251
+ };
22252
+ walk(dependencies);
22253
+ }
22254
+ return entries;
22255
+ }
22256
+ function splitYarnKey(key) {
22257
+ const trimmedKey = key.trim().replace(/^"|"$/g, "");
22258
+ const idx = trimmedKey.lastIndexOf("@");
22259
+ if (idx <= 0) return null;
22260
+ return { name: trimmedKey.slice(0, idx), range: trimmedKey.slice(idx + 1) };
22261
+ }
22262
+ function parseYarnLockfile(input) {
22263
+ const entries = [];
22264
+ const blocks = input.replace(/\r\n/g, "\n").split(/\n\n+/);
22265
+ for (const block of blocks) {
22266
+ const lines = block.split("\n");
22267
+ const headerLines = [];
22268
+ let i = 0;
22269
+ while (i < lines.length && lines[i].trim() !== "" && !lines[i].startsWith(" ") && !lines[i].startsWith("#")) {
22270
+ headerLines.push(lines[i]);
22271
+ i++;
22272
+ }
22273
+ if (headerLines.length === 0) continue;
22274
+ const header = headerLines.join(" ").replace(/:\s*$/, "");
22275
+ const keys = header.split(",").map((k) => k.trim()).filter(Boolean);
22276
+ const versionLine = lines.find((l) => /^\s+version\s+"/.test(l));
22277
+ if (!versionLine) continue;
22278
+ const versionMatch = versionLine.match(/version\s+"([^"]+)"/);
22279
+ if (!versionMatch) continue;
22280
+ const version2 = versionMatch[1];
22281
+ const names = /* @__PURE__ */ new Set();
22282
+ for (const key of keys) {
22283
+ const split = splitYarnKey(key);
22284
+ if (split) names.add(split.name);
22285
+ }
22286
+ for (const name of names) entries.push({ name, version: version2 });
22287
+ }
22288
+ return entries;
22289
+ }
22290
+ function parsePnpmPackageKey(rawKey) {
22291
+ let key = rawKey.trim();
22292
+ if (key.startsWith("/")) key = key.slice(1);
22293
+ const parenIdx = key.indexOf("(");
22294
+ if (parenIdx !== -1) key = key.slice(0, parenIdx);
22295
+ const idx = key.lastIndexOf("@");
22296
+ if (idx <= 0) return null;
22297
+ const name = key.slice(0, idx);
22298
+ const version2 = key.slice(idx + 1).trim();
22299
+ if (!version2) return null;
22300
+ return { name, version: version2 };
22301
+ }
22302
+ function parsePnpmLockfile(input) {
22303
+ const data = yaml2.load(input);
22304
+ const entries = [];
22305
+ const packages = data?.packages;
22306
+ if (!packages || typeof packages !== "object" || Array.isArray(packages)) return entries;
22307
+ for (const rawKey of Object.keys(packages)) {
22308
+ const parsed = parsePnpmPackageKey(rawKey);
22309
+ if (parsed) entries.push(parsed);
22310
+ }
22311
+ return entries;
22312
+ }
22313
+ function findDuplicateLockfileVersions(input, format) {
22314
+ if (!input || !input.trim()) return { error: "Input is empty" };
22315
+ const detected = format ?? detectLockfileFormat(input);
22316
+ if (!detected) {
22317
+ return { error: "Could not detect lockfile format; expected an npm package-lock.json, a yarn.lock, or a pnpm-lock.yaml" };
22318
+ }
22319
+ let rawEntries;
22320
+ try {
22321
+ if (detected === "npm") rawEntries = parseNpmLockfile(input);
22322
+ else if (detected === "yarn") rawEntries = parseYarnLockfile(input);
22323
+ else rawEntries = parsePnpmLockfile(input);
22324
+ } catch (e) {
22325
+ return { error: `Failed to parse ${detected} lockfile: ${e.message}` };
22326
+ }
22327
+ if (rawEntries.length === 0) {
22328
+ return { error: `No packages found in ${detected} lockfile. If this is a pnpm lockfile older than v6 (slash-separated versions instead of "name@version"), re-generate it with a current pnpm version first.` };
22329
+ }
22330
+ const byName = /* @__PURE__ */ new Map();
22331
+ for (const { name, version: version2 } of rawEntries) {
22332
+ let versions = byName.get(name);
22333
+ if (!versions) {
22334
+ versions = /* @__PURE__ */ new Map();
22335
+ byName.set(name, versions);
22336
+ }
22337
+ versions.set(version2, (versions.get(version2) ?? 0) + 1);
22338
+ }
22339
+ const packages = [];
22340
+ for (const [name, versions] of byName) {
22341
+ const versionList = [...versions.entries()].map(([version2, count]) => ({ version: version2, count })).sort((a, b) => b.count - a.count || a.version.localeCompare(b.version));
22342
+ packages.push({ name, versions: versionList, isDuplicate: versionList.length > 1 });
22343
+ }
22344
+ packages.sort((a, b) => a.name.localeCompare(b.name));
22345
+ const duplicatePackages = packages.filter((p) => p.isDuplicate);
22346
+ return {
22347
+ format: detected,
22348
+ totalPackages: packages.length,
22349
+ duplicatePackages,
22350
+ packages
22351
+ };
22352
+ }
22353
+ var GIT_DIFF_STAT_FILE_RE = /^\s*(.+?)\s*\|\s*(Bin|\d+)\s*(.*)$/;
22354
+ var GIT_DIFF_STAT_SUMMARY_RE = /^\s*(\d+)\s+files?\s+changed(?:,\s*(\d+)\s+insertions?\(\+\))?(?:,\s*(\d+)\s+deletions?\(-\))?/;
22355
+ function summarizeGitDiffStat(input) {
22356
+ if (!input || !input.trim()) return { error: "Input is empty" };
22357
+ const lines = input.replace(/\r\n/g, "\n").split("\n");
22358
+ const files = [];
22359
+ let summaryMatch = null;
22360
+ for (const line of lines) {
22361
+ if (!line.trim()) continue;
22362
+ const sm = line.match(GIT_DIFF_STAT_SUMMARY_RE);
22363
+ if (sm) {
22364
+ summaryMatch = sm;
22365
+ continue;
22366
+ }
22367
+ const m = line.match(GIT_DIFF_STAT_FILE_RE);
22368
+ if (!m) continue;
22369
+ const rawName = m[1];
22370
+ const countRaw = m[2];
22371
+ const bar = m[3];
22372
+ let file = rawName;
22373
+ let oldFile;
22374
+ const renameMatch = rawName.match(/^(.*?)\s*=>\s*(.*)$/);
22375
+ if (renameMatch) {
22376
+ oldFile = renameMatch[1].trim();
22377
+ file = renameMatch[2].trim();
22378
+ }
22379
+ if (countRaw === "Bin") {
22380
+ files.push({ file, oldFile, changes: null, insertions: null, deletions: null, binary: true, approximate: false });
22381
+ continue;
22382
+ }
22383
+ const changes = parseInt(countRaw, 10);
22384
+ const plusCount = (bar.match(/\+/g) ?? []).length;
22385
+ const minusCount = (bar.match(/-/g) ?? []).length;
22386
+ const barTotal = plusCount + minusCount;
22387
+ let insertions;
22388
+ let deletions;
22389
+ let approximate = false;
22390
+ if (barTotal === changes) {
22391
+ insertions = plusCount;
22392
+ deletions = minusCount;
22393
+ } else if (barTotal > 0) {
22394
+ approximate = true;
22395
+ insertions = Math.round(changes * plusCount / barTotal);
22396
+ deletions = changes - insertions;
22397
+ } else if (changes === 0) {
22398
+ insertions = 0;
22399
+ deletions = 0;
22400
+ } else {
22401
+ approximate = true;
22402
+ insertions = null;
22403
+ deletions = null;
22404
+ }
22405
+ files.push({ file, oldFile, changes, insertions, deletions, binary: false, approximate });
22406
+ }
22407
+ if (files.length === 0) {
22408
+ return { error: "No file stat lines found; expected output from `git diff --stat` or `git log --stat`" };
22409
+ }
22410
+ let filesChanged = files.length;
22411
+ let totalInsertions = files.reduce((sum, f) => sum + (f.insertions ?? 0), 0);
22412
+ let totalDeletions = files.reduce((sum, f) => sum + (f.deletions ?? 0), 0);
22413
+ if (summaryMatch) {
22414
+ filesChanged = parseInt(summaryMatch[1], 10);
22415
+ if (summaryMatch[2]) totalInsertions = parseInt(summaryMatch[2], 10);
22416
+ if (summaryMatch[3]) totalDeletions = parseInt(summaryMatch[3], 10);
22417
+ }
22418
+ return { files, filesChanged, totalInsertions, totalDeletions };
22419
+ }
22104
22420
 
22105
22421
  // src/tools/color.ts
22106
22422
  var color_exports = {};
package/dist/index.d.cts CHANGED
@@ -2,13 +2,13 @@ export { j as json } from './json-Ca6gZCNB.cjs';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.cjs';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.cjs';
4
4
  export { t as text } from './text-DOopHoK3.cjs';
5
- export { d as data } from './data-cDudn2P6.cjs';
5
+ export { d as data } from './data-3qMdFIF5.cjs';
6
6
  export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-VMAy_SrV.cjs';
8
8
  export { u as units } from './units-DnWrOTSV.cjs';
9
- export { n as network } from './network-ylRtLPEs.cjs';
9
+ export { n as network } from './network-9j5aKpoR.cjs';
10
10
  export { a as api } from './api-CQnIUrVB.cjs';
11
- export { c as code } from './code-DvJYYTea.cjs';
11
+ export { c as code } from './code-CZHElFHu.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
13
13
  export { c as css } from './css-Cf7AMGM-.cjs';
14
14
  export { m as misc } from './misc-CA3N198T.cjs';
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ export { j as json } from './json-Ca6gZCNB.js';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.js';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.js';
4
4
  export { t as text } from './text-DOopHoK3.js';
5
- export { d as data } from './data-cDudn2P6.js';
5
+ export { d as data } from './data-3qMdFIF5.js';
6
6
  export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-VMAy_SrV.js';
8
8
  export { u as units } from './units-DnWrOTSV.js';
9
- export { n as network } from './network-ylRtLPEs.js';
9
+ export { n as network } from './network-9j5aKpoR.js';
10
10
  export { a as api } from './api-CQnIUrVB.js';
11
- export { c as code } from './code-DvJYYTea.js';
11
+ export { c as code } from './code-CZHElFHu.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
13
13
  export { c as css } from './css-Cf7AMGM-.js';
14
14
  export { m as misc } from './misc-CA3N198T.js';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { media_exports as media } from './chunk-ZWFZRDQ4.js';
2
2
  export { units_exports as units } from './chunk-XAPHAUPI.js';
3
- export { network_exports as network } from './chunk-SW3J5CAI.js';
3
+ export { network_exports as network } from './chunk-K3B4JTHN.js';
4
4
  export { api_exports as api } from './chunk-U2HREMZU.js';
5
- export { code_exports as code } from './chunk-KYBI62YY.js';
5
+ export { code_exports as code } from './chunk-KRPIOHJ4.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
7
7
  export { css_exports as css } from './chunk-6YPV2AB5.js';
8
8
  export { misc_exports as misc } from './chunk-GX7H6TAX.js';
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-WUOZHCIC.js';
11
11
  export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
12
12
  export { hashing_exports as hashing } from './chunk-PET2CGTH.js';
13
13
  export { text_exports as text } from './chunk-YQJ7CEUL.js';
14
- export { data_exports as data } from './chunk-2QNU6KRL.js';
14
+ export { data_exports as data } from './chunk-PEMPPDMM.js';
15
15
  export { generators_exports as generators } from './chunk-422ICOZX.js';
16
16
  export { time_exports as time } from './chunk-6EJVNQSY.js';
17
17
  import './chunk-MLKGABMK.js';
@@ -33,6 +33,7 @@
33
33
  * - websocket-opcode-reference: lookupOpcode, listOpcodes
34
34
  * - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
35
35
  * - cookie-size-budget-calculator: calculateCookieSizeBudget
36
+ * - clear-site-data-header-builder: buildClearSiteData, parseClearSiteData
36
37
  */
37
38
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
38
39
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -1142,6 +1143,36 @@ interface SecurityHeadersScorecard {
1142
1143
  declare function scoreSecurityHeaders(rawHeaders: string): SecurityHeadersScorecard | {
1143
1144
  error: string;
1144
1145
  };
1146
+ type ClearSiteDataDirective = 'cache' | 'cookies' | 'storage' | 'executionContexts' | '*';
1147
+ interface ClearSiteDataResult {
1148
+ header: string;
1149
+ headerName: 'Clear-Site-Data';
1150
+ snippet: string;
1151
+ directives: ClearSiteDataDirective[];
1152
+ warnings: string[];
1153
+ }
1154
+ /**
1155
+ * Build a `Clear-Site-Data` response-header value from a list of directives
1156
+ * (`cache`, `cookies`, `storage`, `executionContexts`, or `*` for all of
1157
+ * them), per the spec's quoted-string-list syntax, e.g.
1158
+ * `"cache", "cookies"`. Duplicate directives are deduplicated, and listing
1159
+ * other directives alongside `*` is flagged as redundant since `*` already
1160
+ * covers every current (and future) data type on its own. Pure string
1161
+ * assembly; it never clears anything in a real browser.
1162
+ */
1163
+ declare function buildClearSiteData(directives: string[]): ClearSiteDataResult | {
1164
+ error: string;
1165
+ };
1166
+ /**
1167
+ * Parse an existing `Clear-Site-Data` header value (with or without a
1168
+ * leading `Clear-Site-Data:` label) into the same shape `buildClearSiteData`
1169
+ * returns. Accepts directives with or without the quotes the spec requires
1170
+ * on a real response, so a value copied from a note or a bug report without
1171
+ * its quoting still parses.
1172
+ */
1173
+ declare function parseClearSiteData(raw: string): ClearSiteDataResult | {
1174
+ error: string;
1175
+ };
1145
1176
 
1146
1177
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
1147
1178
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -1151,6 +1182,8 @@ declare const network_CLIENT_HINTS: typeof CLIENT_HINTS;
1151
1182
  type network_CacheControlDirective = CacheControlDirective;
1152
1183
  type network_CacheControlOptions = CacheControlOptions;
1153
1184
  type network_CacheControlResult = CacheControlResult;
1185
+ type network_ClearSiteDataDirective = ClearSiteDataDirective;
1186
+ type network_ClearSiteDataResult = ClearSiteDataResult;
1154
1187
  type network_ClientHintDef = ClientHintDef;
1155
1188
  type network_ClientHintValueType = ClientHintValueType;
1156
1189
  type network_ClientHintsBuildResult = ClientHintsBuildResult;
@@ -1254,6 +1287,7 @@ declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
1254
1287
  declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
1255
1288
  declare const network_buildAcceptLanguage: typeof buildAcceptLanguage;
1256
1289
  declare const network_buildCacheControl: typeof buildCacheControl;
1290
+ declare const network_buildClearSiteData: typeof buildClearSiteData;
1257
1291
  declare const network_buildClientHints: typeof buildClientHints;
1258
1292
  declare const network_buildContentDisposition: typeof buildContentDisposition;
1259
1293
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
@@ -1294,6 +1328,7 @@ declare const network_listOpcodes: typeof listOpcodes;
1294
1328
  declare const network_lookupCloseCode: typeof lookupCloseCode;
1295
1329
  declare const network_lookupOpcode: typeof lookupOpcode;
1296
1330
  declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
1331
+ declare const network_parseClearSiteData: typeof parseClearSiteData;
1297
1332
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
1298
1333
  declare const network_parseContentDisposition: typeof parseContentDisposition;
1299
1334
  declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
@@ -1325,7 +1360,7 @@ declare const network_validateManifest: typeof validateManifest;
1325
1360
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1326
1361
  declare const network_validateSitemap: typeof validateSitemap;
1327
1362
  declare namespace network {
1328
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGenerateGroup as RobotsGenerateGroup, type network_RobotsGenerateOptions as RobotsGenerateOptions, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SecurityHeaderCheck as SecurityHeaderCheck, type network_SecurityHeaderStatus as SecurityHeaderStatus, type network_SecurityHeadersScorecard as SecurityHeadersScorecard, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_generateRobotsTxt as generateRobotsTxt, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_scoreSecurityHeaders as scoreSecurityHeaders, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1363
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClearSiteDataDirective as ClearSiteDataDirective, type network_ClearSiteDataResult as ClearSiteDataResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGenerateGroup as RobotsGenerateGroup, type network_RobotsGenerateOptions as RobotsGenerateOptions, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SecurityHeaderCheck as SecurityHeaderCheck, type network_SecurityHeaderStatus as SecurityHeaderStatus, type network_SecurityHeadersScorecard as SecurityHeadersScorecard, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClearSiteData as buildClearSiteData, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_generateRobotsTxt as generateRobotsTxt, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClearSiteData as parseClearSiteData, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_scoreSecurityHeaders as scoreSecurityHeaders, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1329
1364
  }
1330
1365
 
1331
- export { type OpcodeInfo as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarEntry as F, type GeoResult as G, HTTP_HEADERS as H, type HarParseResult as I, type HarSummary as J, type HeaderCategory as K, type HstsOptions as L, type HstsResult as M, type HttpHeader as N, type Ipv6AddressType as O, type Ipv6ParseResult as P, LINK_REL_VALUES as Q, type LinkHeaderEntry as R, type LinkHeaderEntryInput as S, type LinkHeaderResult as T, type LinkRel as U, type ManifestIconInfo as V, type ManifestIssue as W, type ManifestValidationResult as X, type MultipartParseResult as Y, type MultipartPart as Z, type OpcodeCategory as _, type AcceptLanguageResult as a, buildLinkHeader as a$, PERMISSIONS_POLICY_FEATURES as a0, type ParsedClientHint as a1, type ParsedDnsResult as a2, type ParsedGeoResult as a3, type PermissionsPolicyDirective as a4, type PermissionsPolicyFeatureInput as a5, type PermissionsPolicyResult as a6, type PreferParameter as a7, type PreferPreference as a8, type PreferResult as a9, type SitemapIndexEntry as aA, type SitemapIssue as aB, type SitemapSplitFile as aC, type SitemapUrlEntry as aD, type SitemapValidationResult as aE, type SplitSitemapOptions as aF, type SplitSitemapResult as aG, type StatusCode as aH, type UaDeviceType as aI, type UserAgentInfo as aJ, type VaryHeaderEntry as aK, type VaryHeaderResult as aL, type XContentTypeOptionsHeader as aM, type XContentTypeOptionsParseResult as aN, type XRobotsTagFlag as aO, type XRobotsTagOptions as aP, type XRobotsTagResult as aQ, X_CONTENT_TYPE_OPTIONS_HEADER as aR, analyzeEmailHeaders as aS, assessContentTypeRisk as aT, buildAcceptLanguage as aU, buildCacheControl as aV, buildClientHints as aW, buildContentDisposition as aX, buildDnsQueryUrl as aY, buildGeoUrl as aZ, buildHsts as a_, type PriorityResult as aa, REFERRER_POLICY_VALUES as ab, type RangeEntry as ac, type RangeEntryInput as ad, type RangeHeaderResult as ae, type ReceivedHop as af, type ReferrerPolicyEntry as ag, type ReferrerPolicyResult as ah, type ReferrerPolicyValue as ai, type RetryAfterDateResult as aj, type RetryAfterResult as ak, type RetryAfterSecondsResult as al, type RobotsGenerateGroup as am, type RobotsGenerateOptions as an, type RobotsGroup as ao, type RobotsIssue as ap, type RobotsMetaTagFlag as aq, type RobotsMetaTagOptions as ar, type RobotsMetaTagResult as as, type RobotsRule as at, type RobotsValidationResult as au, STATUS_CODES as av, type SameSiteValue as aw, type SecurityHeaderCheck as ax, type SecurityHeaderStatus as ay, type SecurityHeadersScorecard as az, type AuthResultEntry as b, validateSitemap as b$, buildMapUrl as b0, buildPermissionsPolicy as b1, buildPreferHeader as b2, buildPriorityHeader as b3, buildRangeHeader as b4, buildReferrerPolicy as b5, buildRetryAfterHeader as b6, buildRobotsMetaTag as b7, buildVaryHeader as b8, buildXContentTypeOptionsHeader as b9, parseContentRangeHeader as bA, parseDnsResponse as bB, parseGeoResponse as bC, parseHar as bD, parseHsts as bE, parseIpv6Address as bF, parseMultipartFormData as bG, parsePermissionsPolicy as bH, parsePreferHeader as bI, parsePriorityHeader as bJ, parseRetryAfterHeader as bK, parseRobotsMetaTag as bL, parseUserAgent as bM, parseVaryHeader as bN, parseXContentTypeOptionsHeader as bO, parseXRobotsTag as bP, scoreSecurityHeaders as bQ, searchHeaders as bR, searchStatusCodes as bS, splitSitemap as bT, statusCodeToText as bU, typeNumberToLabel as bV, validateDomain as bW, validateHeaderName as bX, validateHeaderValue as bY, validateManifest as bZ, validateRobotsTxt as b_, buildXRobotsTag as ba, calculateCookieSizeBudget as bb, checkSetCookieHeader as bc, countryCodeToFlag as bd, extractMultipartBoundary as be, formatCoordinates as bf, formatTtl as bg, generateRobotsTxt as bh, getByCategory as bi, getHeader as bj, getHeadersByCategory as bk, getStatusByCategory as bl, getStatusCode as bm, isClientError as bn, isServerError as bo, isSuccess as bp, isValidIp as bq, isValidIpv4 as br, isValidIpv6 as bs, listCloseCodes as bt, listOpcodes as bu, lookupCloseCode as bv, lookupOpcode as bw, parseAcceptLanguage as bx, parseClientHintHeaders as by, parseContentDisposition as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type CookieSizeBudgetResult as u, type CookieSizeEntry as v, type DnsRecord as w, type DnsRecordType as x, type DnsResponse as y, type EmailHeaderField as z };
1366
+ export { type MultipartPart as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type DnsResponse as E, type EmailHeaderAnalysis as F, type EmailHeaderField as G, type GeoResult as H, HTTP_HEADERS as I, type HarEntry as J, type HarParseResult as K, type HarSummary as L, type HeaderCategory as M, type HstsOptions as N, type HstsResult as O, type HttpHeader as P, type Ipv6AddressType as Q, type Ipv6ParseResult as R, LINK_REL_VALUES as S, type LinkHeaderEntry as T, type LinkHeaderEntryInput as U, type LinkHeaderResult as V, type LinkRel as W, type ManifestIconInfo as X, type ManifestIssue as Y, type ManifestValidationResult as Z, type MultipartParseResult as _, type AcceptLanguageResult as a, buildDnsQueryUrl as a$, type OpcodeCategory as a0, type OpcodeInfo as a1, PERMISSIONS_POLICY_FEATURES as a2, type ParsedClientHint as a3, type ParsedDnsResult as a4, type ParsedGeoResult as a5, type PermissionsPolicyDirective as a6, type PermissionsPolicyFeatureInput as a7, type PermissionsPolicyResult as a8, type PreferParameter as a9, type SecurityHeaderStatus as aA, type SecurityHeadersScorecard as aB, type SitemapIndexEntry as aC, type SitemapIssue as aD, type SitemapSplitFile as aE, type SitemapUrlEntry as aF, type SitemapValidationResult as aG, type SplitSitemapOptions as aH, type SplitSitemapResult as aI, type StatusCode as aJ, type UaDeviceType as aK, type UserAgentInfo as aL, type VaryHeaderEntry as aM, type VaryHeaderResult as aN, type XContentTypeOptionsHeader as aO, type XContentTypeOptionsParseResult as aP, type XRobotsTagFlag as aQ, type XRobotsTagOptions as aR, type XRobotsTagResult as aS, X_CONTENT_TYPE_OPTIONS_HEADER as aT, analyzeEmailHeaders as aU, assessContentTypeRisk as aV, buildAcceptLanguage as aW, buildCacheControl as aX, buildClearSiteData as aY, buildClientHints as aZ, buildContentDisposition as a_, type PreferPreference as aa, type PreferResult as ab, type PriorityResult as ac, REFERRER_POLICY_VALUES as ad, type RangeEntry as ae, type RangeEntryInput as af, type RangeHeaderResult as ag, type ReceivedHop as ah, type ReferrerPolicyEntry as ai, type ReferrerPolicyResult as aj, type ReferrerPolicyValue as ak, type RetryAfterDateResult as al, type RetryAfterResult as am, type RetryAfterSecondsResult as an, type RobotsGenerateGroup as ao, type RobotsGenerateOptions as ap, type RobotsGroup as aq, type RobotsIssue as ar, type RobotsMetaTagFlag as as, type RobotsMetaTagOptions as at, type RobotsMetaTagResult as au, type RobotsRule as av, type RobotsValidationResult as aw, STATUS_CODES as ax, type SameSiteValue as ay, type SecurityHeaderCheck as az, type AuthResultEntry as b, validateHeaderName as b$, buildGeoUrl as b0, buildHsts as b1, buildLinkHeader as b2, buildMapUrl as b3, buildPermissionsPolicy as b4, buildPreferHeader as b5, buildPriorityHeader as b6, buildRangeHeader as b7, buildReferrerPolicy as b8, buildRetryAfterHeader as b9, parseAcceptLanguage as bA, parseClearSiteData as bB, parseClientHintHeaders as bC, parseContentDisposition as bD, parseContentRangeHeader as bE, parseDnsResponse as bF, parseGeoResponse as bG, parseHar as bH, parseHsts as bI, parseIpv6Address as bJ, parseMultipartFormData as bK, parsePermissionsPolicy as bL, parsePreferHeader as bM, parsePriorityHeader as bN, parseRetryAfterHeader as bO, parseRobotsMetaTag as bP, parseUserAgent as bQ, parseVaryHeader as bR, parseXContentTypeOptionsHeader as bS, parseXRobotsTag as bT, scoreSecurityHeaders as bU, searchHeaders as bV, searchStatusCodes as bW, splitSitemap as bX, statusCodeToText as bY, typeNumberToLabel as bZ, validateDomain as b_, buildRobotsMetaTag as ba, buildVaryHeader as bb, buildXContentTypeOptionsHeader as bc, buildXRobotsTag as bd, calculateCookieSizeBudget as be, checkSetCookieHeader as bf, countryCodeToFlag as bg, extractMultipartBoundary as bh, formatCoordinates as bi, formatTtl as bj, generateRobotsTxt as bk, getByCategory as bl, getHeader as bm, getHeadersByCategory as bn, getStatusByCategory as bo, getStatusCode as bp, isClientError as bq, isServerError as br, isSuccess as bs, isValidIp as bt, isValidIpv4 as bu, isValidIpv6 as bv, listCloseCodes as bw, listOpcodes as bx, lookupCloseCode as by, lookupOpcode as bz, type CacheControlDirective as c, validateHeaderValue as c0, validateManifest as c1, validateRobotsTxt as c2, validateSitemap as c3, type CacheControlOptions as d, type CacheControlResult as e, type ClearSiteDataDirective as f, type ClearSiteDataResult as g, type ClientHintDef as h, type ClientHintValueType as i, type ClientHintsBuildResult as j, type ClientHintsParseResult as k, type CloseCodeInfo as l, type CloseCodeRange as m, network as n, type ContentDispositionBuildOptions as o, type ContentDispositionBuildResult as p, type ContentDispositionParseResult as q, type ContentRangeResult as r, type ContentTypeRiskResult as s, type ContentTypeSniffRisk as t, type CookieAttributes as u, type CookieCheckResult as v, type CookieSizeBudgetResult as w, type CookieSizeEntry as x, type DnsRecord as y, type DnsRecordType as z };