@utilix-tech/sdk 0.81.0 → 0.82.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/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
4
4
 
5
+ ## 0.82.0
6
+ - Add `generateRobotsTxt` (robots-txt-generator): build a robots.txt file from User-agent groups with Allow/Disallow rules and an optional Crawl-delay, plus a list of Sitemap URLs. The generator-side sibling of `validateRobotsTxt`.
7
+
5
8
  ## 0.81.0
6
9
  - Add `validateFenceLanguageTags` (markdown-fence-lang-validator): scan a Markdown document's fenced code blocks and flag a missing, unknown, or inconsistently-cased language tag against a curated list of common syntax-highlighter identifiers.
7
10
  - Add `countSqlPlaceholders` (sql-placeholder-counter): count positional (`?`, `$1`) and named (`:name`, `@name`) parameter placeholders in a SQL query, flagging mixed styles and numbered-sequence gaps or duplicates.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @utilix-tech/sdk
2
2
 
3
- **715 developer utility functions for Node.js: runs locally, no API key required.**
3
+ **716 developer utility functions for Node.js: runs locally, no API key required.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@utilix-tech/sdk?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@utilix-tech/sdk)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@utilix-tech/sdk?style=flat-square)](https://www.npmjs.com/package/@utilix-tech/sdk)
@@ -550,7 +550,7 @@ calculateRealRateOfReturn({ nominalRatePercent: 5, inflationRatePercent: 2 });
550
550
  ```ts
551
551
  import { getStatusCode, isValidIp, isValidIpv4, isValidIpv6,
552
552
  searchStatusCodes, buildGeoUrl, countryCodeToFlag,
553
- parseHar, validateSitemap, splitSitemap, validateRobotsTxt,
553
+ parseHar, validateSitemap, splitSitemap, validateRobotsTxt, generateRobotsTxt,
554
554
  parseUserAgent, buildCacheControl, buildReferrerPolicy, parseIpv6Address, buildLinkHeader, checkSetCookieHeader, analyzeEmailHeaders,
555
555
  buildRangeHeader, parseContentRangeHeader, buildVaryHeader, parseVaryHeader, validateManifest,
556
556
  buildPermissionsPolicy, parsePermissionsPolicy, buildClientHints, parseClientHintHeaders,
@@ -594,6 +594,10 @@ splitSitemap("https://example.com/a\nhttps://example.com/b\nhttps://example.com/
594
594
  validateRobotsTxt("User-agent: *\nDisallow: /admin\nSitemap: https://example.com/sitemap.xml");
595
595
  // { groups: [...], sitemaps: [...], issues: [...], valid: true }
596
596
 
597
+ // Generate a robots.txt file from User-agent groups + sitemap URLs (the inverse of validateRobotsTxt)
598
+ generateRobotsTxt({ groups: [{ userAgents: ["*"], disallow: ["/admin"] }], sitemaps: ["https://example.com/sitemap.xml"] });
599
+ // { text: "User-agent: *\nDisallow: /admin\n\nSitemap: https://example.com/sitemap.xml\n" }
600
+
597
601
  // Build and explain a Cache-Control response header from directives
598
602
  buildCacheControl({ visibility: "public", maxAge: 3600, mustRevalidate: true });
599
603
  // { header: "public, max-age=3600, must-revalidate", directives: [...], warnings: [] }
@@ -1044,7 +1048,7 @@ readMidiInfo(new Uint8Array(midiBytes));
1044
1048
  | `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
1045
1049
  | `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
1046
1050
  | `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN/VIN/ISIN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator, ROI calculator, cash denomination/till calculator, payback period calculator, CD maturity calculator, debt-to-income ratio calculator, freelancer hourly rate calculator, debt snowball/avalanche payoff planner, tax-equivalent yield calculator, mortgage discount points break-even calculator, loan prepayment penalty calculator, data transfer time / required bandwidth estimator, real rate of return (Fisher equation) calculator |
1047
- | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser, Cookie header byte-size budget calculator |
1051
+ | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, robots.txt validator, robots.txt generator, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser, Cookie header byte-size budget calculator |
1048
1052
  | `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header, TOTP/HOTP code generator, webhook HMAC signature verifier |
1049
1053
  | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor, regex capture group/backreference visualizer, SVG sprite symbol extractor, ARIA role & attribute validator, database connection string parser, Markdown code fence language tag validator, SQL query parameter placeholder counter |
1050
1054
  | `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
@@ -38,6 +38,7 @@ __export(network_exports, {
38
38
  extractMultipartBoundary: () => extractMultipartBoundary,
39
39
  formatCoordinates: () => formatCoordinates,
40
40
  formatTtl: () => formatTtl,
41
+ generateRobotsTxt: () => generateRobotsTxt,
41
42
  getByCategory: () => getByCategory,
42
43
  getHeader: () => getHeader,
43
44
  getHeadersByCategory: () => getHeadersByCategory,
@@ -1711,6 +1712,40 @@ function validateRobotsTxt(text) {
1711
1712
  const valid = !issues.some((i) => i.severity === "error");
1712
1713
  return { groups, sitemaps, issues, valid };
1713
1714
  }
1715
+ function generateRobotsTxt(options) {
1716
+ if (!options || !Array.isArray(options.groups) || options.groups.length === 0) {
1717
+ return { error: "At least one group with a user-agent is required" };
1718
+ }
1719
+ const lines = [];
1720
+ for (const group of options.groups) {
1721
+ const userAgents = (group.userAgents ?? []).map((a) => a.trim()).filter(Boolean);
1722
+ if (userAgents.length === 0) return { error: "Each group needs at least one non-empty user-agent" };
1723
+ for (const ua of userAgents) lines.push(`User-agent: ${ua}`);
1724
+ const disallow = group.disallow ?? [];
1725
+ const allow = group.allow ?? [];
1726
+ if (disallow.length === 0 && allow.length === 0) {
1727
+ lines.push("Disallow:");
1728
+ } else {
1729
+ for (const value of disallow) lines.push(`Disallow: ${value}`);
1730
+ for (const value of allow) lines.push(`Allow: ${value}`);
1731
+ }
1732
+ if (group.crawlDelay !== void 0) {
1733
+ if (!Number.isFinite(group.crawlDelay) || group.crawlDelay < 0) {
1734
+ return { error: "crawlDelay must be a non-negative number" };
1735
+ }
1736
+ lines.push(`Crawl-delay: ${group.crawlDelay}`);
1737
+ }
1738
+ lines.push("");
1739
+ }
1740
+ for (const sitemap of options.sitemaps ?? []) {
1741
+ if (!/^https?:\/\//i.test(sitemap)) {
1742
+ return { error: `Sitemap URL "${sitemap}" must be absolute (start with http:// or https://)` };
1743
+ }
1744
+ lines.push(`Sitemap: ${sitemap}`);
1745
+ }
1746
+ while (lines.length > 0 && lines[lines.length - 1] === "") lines.pop();
1747
+ return { text: lines.join("\n") + "\n" };
1748
+ }
1714
1749
  var UA_BOT_PATTERNS = [
1715
1750
  [/googlebot/i, "Googlebot"],
1716
1751
  [/bingbot/i, "Bingbot"],
@@ -3630,4 +3665,4 @@ function scoreSecurityHeaders(rawHeaders) {
3630
3665
  return { checks, score, grade, passCount, warningCount, missingCount, totalChecks };
3631
3666
  }
3632
3667
 
3633
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
3668
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, generateRobotsTxt, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
package/dist/index.cjs CHANGED
@@ -11724,6 +11724,7 @@ __export(network_exports, {
11724
11724
  extractMultipartBoundary: () => extractMultipartBoundary,
11725
11725
  formatCoordinates: () => formatCoordinates,
11726
11726
  formatTtl: () => formatTtl,
11727
+ generateRobotsTxt: () => generateRobotsTxt,
11727
11728
  getByCategory: () => getByCategory,
11728
11729
  getHeader: () => getHeader,
11729
11730
  getHeadersByCategory: () => getHeadersByCategory,
@@ -13397,6 +13398,40 @@ function validateRobotsTxt(text) {
13397
13398
  const valid = !issues.some((i) => i.severity === "error");
13398
13399
  return { groups, sitemaps, issues, valid };
13399
13400
  }
13401
+ function generateRobotsTxt(options) {
13402
+ if (!options || !Array.isArray(options.groups) || options.groups.length === 0) {
13403
+ return { error: "At least one group with a user-agent is required" };
13404
+ }
13405
+ const lines = [];
13406
+ for (const group of options.groups) {
13407
+ const userAgents = (group.userAgents ?? []).map((a) => a.trim()).filter(Boolean);
13408
+ if (userAgents.length === 0) return { error: "Each group needs at least one non-empty user-agent" };
13409
+ for (const ua of userAgents) lines.push(`User-agent: ${ua}`);
13410
+ const disallow = group.disallow ?? [];
13411
+ const allow = group.allow ?? [];
13412
+ if (disallow.length === 0 && allow.length === 0) {
13413
+ lines.push("Disallow:");
13414
+ } else {
13415
+ for (const value of disallow) lines.push(`Disallow: ${value}`);
13416
+ for (const value of allow) lines.push(`Allow: ${value}`);
13417
+ }
13418
+ if (group.crawlDelay !== void 0) {
13419
+ if (!Number.isFinite(group.crawlDelay) || group.crawlDelay < 0) {
13420
+ return { error: "crawlDelay must be a non-negative number" };
13421
+ }
13422
+ lines.push(`Crawl-delay: ${group.crawlDelay}`);
13423
+ }
13424
+ lines.push("");
13425
+ }
13426
+ for (const sitemap of options.sitemaps ?? []) {
13427
+ if (!/^https?:\/\//i.test(sitemap)) {
13428
+ return { error: `Sitemap URL "${sitemap}" must be absolute (start with http:// or https://)` };
13429
+ }
13430
+ lines.push(`Sitemap: ${sitemap}`);
13431
+ }
13432
+ while (lines.length > 0 && lines[lines.length - 1] === "") lines.pop();
13433
+ return { text: lines.join("\n") + "\n" };
13434
+ }
13400
13435
  var UA_BOT_PATTERNS = [
13401
13436
  [/googlebot/i, "Googlebot"],
13402
13437
  [/bingbot/i, "Bingbot"],
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ export { d as data } from './data-DIyBrJ6l.cjs';
6
6
  export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-KqJjdqII.cjs';
8
8
  export { u as units } from './units-D7YRRwei.cjs';
9
- export { n as network } from './network-BskZe1n2.cjs';
9
+ export { n as network } from './network-ylRtLPEs.cjs';
10
10
  export { a as api } from './api-CQnIUrVB.cjs';
11
11
  export { c as code } from './code-B8yHwP3m.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { d as data } from './data-DIyBrJ6l.js';
6
6
  export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-KqJjdqII.js';
8
8
  export { u as units } from './units-D7YRRwei.js';
9
- export { n as network } from './network-BskZe1n2.js';
9
+ export { n as network } from './network-ylRtLPEs.js';
10
10
  export { a as api } from './api-CQnIUrVB.js';
11
11
  export { c as code } from './code-B8yHwP3m.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { media_exports as media } from './chunk-ZWFZRDQ4.js';
2
2
  export { units_exports as units } from './chunk-OFLNVDNX.js';
3
- export { network_exports as network } from './chunk-KWS4ZCYG.js';
3
+ export { network_exports as network } from './chunk-SW3J5CAI.js';
4
4
  export { api_exports as api } from './chunk-U2HREMZU.js';
5
5
  export { code_exports as code } from './chunk-FPFA4ZHC.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
@@ -11,6 +11,7 @@
11
11
  * - sitemap-validator: validateSitemap
12
12
  * - sitemap-index-splitter: splitSitemap
13
13
  * - robots-txt-validator: validateRobotsTxt
14
+ * - robots-txt-generator: generateRobotsTxt
14
15
  * - user-agent-parser: parseUserAgent
15
16
  * - cache-control-builder: buildCacheControl
16
17
  * - referrer-policy-builder: buildReferrerPolicy
@@ -269,6 +270,29 @@ interface RobotsValidationResult {
269
270
  declare function validateRobotsTxt(text: string): RobotsValidationResult | {
270
271
  error: string;
271
272
  };
273
+ interface RobotsGenerateGroup {
274
+ userAgents: string[];
275
+ allow?: string[];
276
+ disallow?: string[];
277
+ crawlDelay?: number;
278
+ }
279
+ interface RobotsGenerateOptions {
280
+ groups: RobotsGenerateGroup[];
281
+ sitemaps?: string[];
282
+ }
283
+ /**
284
+ * Generate a robots.txt file from a list of User-agent groups (each with its
285
+ * own Allow/Disallow rules and an optional Crawl-delay) plus a list of
286
+ * Sitemap URLs. The inverse of validateRobotsTxt: this always produces text
287
+ * that tool would accept. A group with no Allow or Disallow rules gets an
288
+ * explicit empty "Disallow:" line, the standard way to say that user-agent
289
+ * may crawl everything.
290
+ */
291
+ declare function generateRobotsTxt(options: RobotsGenerateOptions): {
292
+ text: string;
293
+ } | {
294
+ error: string;
295
+ };
272
296
  type UaDeviceType = 'desktop' | 'mobile' | 'tablet' | 'bot';
273
297
  interface UserAgentInfo {
274
298
  browser: {
@@ -1194,6 +1218,8 @@ type network_ReferrerPolicyValue = ReferrerPolicyValue;
1194
1218
  type network_RetryAfterDateResult = RetryAfterDateResult;
1195
1219
  type network_RetryAfterResult = RetryAfterResult;
1196
1220
  type network_RetryAfterSecondsResult = RetryAfterSecondsResult;
1221
+ type network_RobotsGenerateGroup = RobotsGenerateGroup;
1222
+ type network_RobotsGenerateOptions = RobotsGenerateOptions;
1197
1223
  type network_RobotsGroup = RobotsGroup;
1198
1224
  type network_RobotsIssue = RobotsIssue;
1199
1225
  type network_RobotsMetaTagFlag = RobotsMetaTagFlag;
@@ -1251,6 +1277,7 @@ declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1251
1277
  declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
1252
1278
  declare const network_formatCoordinates: typeof formatCoordinates;
1253
1279
  declare const network_formatTtl: typeof formatTtl;
1280
+ declare const network_generateRobotsTxt: typeof generateRobotsTxt;
1254
1281
  declare const network_getByCategory: typeof getByCategory;
1255
1282
  declare const network_getHeader: typeof getHeader;
1256
1283
  declare const network_getHeadersByCategory: typeof getHeadersByCategory;
@@ -1298,7 +1325,7 @@ declare const network_validateManifest: typeof validateManifest;
1298
1325
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1299
1326
  declare const network_validateSitemap: typeof validateSitemap;
1300
1327
  declare namespace network {
1301
- 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_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_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 };
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 };
1302
1329
  }
1303
1330
 
1304
- 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, buildPermissionsPolicy 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 SitemapSplitFile as aA, type SitemapUrlEntry as aB, type SitemapValidationResult as aC, type SplitSitemapOptions as aD, type SplitSitemapResult as aE, type StatusCode as aF, type UaDeviceType as aG, type UserAgentInfo as aH, type VaryHeaderEntry as aI, type VaryHeaderResult as aJ, type XContentTypeOptionsHeader as aK, type XContentTypeOptionsParseResult as aL, type XRobotsTagFlag as aM, type XRobotsTagOptions as aN, type XRobotsTagResult as aO, X_CONTENT_TYPE_OPTIONS_HEADER as aP, analyzeEmailHeaders as aQ, assessContentTypeRisk as aR, buildAcceptLanguage as aS, buildCacheControl as aT, buildClientHints as aU, buildContentDisposition as aV, buildDnsQueryUrl as aW, buildGeoUrl as aX, buildHsts as aY, buildLinkHeader as aZ, buildMapUrl 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 RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SecurityHeaderCheck as av, type SecurityHeaderStatus as aw, type SecurityHeadersScorecard as ax, type SitemapIndexEntry as ay, type SitemapIssue as az, type AuthResultEntry as b, buildPreferHeader as b0, buildPriorityHeader as b1, buildRangeHeader as b2, buildReferrerPolicy as b3, buildRetryAfterHeader as b4, buildRobotsMetaTag as b5, buildVaryHeader as b6, buildXContentTypeOptionsHeader as b7, buildXRobotsTag as b8, calculateCookieSizeBudget as b9, parseHar as bA, parseHsts as bB, parseIpv6Address as bC, parseMultipartFormData as bD, parsePermissionsPolicy as bE, parsePreferHeader as bF, parsePriorityHeader as bG, parseRetryAfterHeader as bH, parseRobotsMetaTag as bI, parseUserAgent as bJ, parseVaryHeader as bK, parseXContentTypeOptionsHeader as bL, parseXRobotsTag as bM, scoreSecurityHeaders as bN, searchHeaders as bO, searchStatusCodes as bP, splitSitemap as bQ, statusCodeToText as bR, typeNumberToLabel as bS, validateDomain as bT, validateHeaderName as bU, validateHeaderValue as bV, validateManifest as bW, validateRobotsTxt as bX, validateSitemap as bY, checkSetCookieHeader as ba, countryCodeToFlag as bb, extractMultipartBoundary as bc, formatCoordinates as bd, formatTtl as be, getByCategory as bf, getHeader as bg, getHeadersByCategory as bh, getStatusByCategory as bi, getStatusCode as bj, isClientError as bk, isServerError as bl, isSuccess as bm, isValidIp as bn, isValidIpv4 as bo, isValidIpv6 as bp, listCloseCodes as bq, listOpcodes as br, lookupCloseCode as bs, lookupOpcode as bt, parseAcceptLanguage as bu, parseClientHintHeaders as bv, parseContentDisposition as bw, parseContentRangeHeader as bx, parseDnsResponse as by, parseGeoResponse 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 };
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 };
@@ -11,6 +11,7 @@
11
11
  * - sitemap-validator: validateSitemap
12
12
  * - sitemap-index-splitter: splitSitemap
13
13
  * - robots-txt-validator: validateRobotsTxt
14
+ * - robots-txt-generator: generateRobotsTxt
14
15
  * - user-agent-parser: parseUserAgent
15
16
  * - cache-control-builder: buildCacheControl
16
17
  * - referrer-policy-builder: buildReferrerPolicy
@@ -269,6 +270,29 @@ interface RobotsValidationResult {
269
270
  declare function validateRobotsTxt(text: string): RobotsValidationResult | {
270
271
  error: string;
271
272
  };
273
+ interface RobotsGenerateGroup {
274
+ userAgents: string[];
275
+ allow?: string[];
276
+ disallow?: string[];
277
+ crawlDelay?: number;
278
+ }
279
+ interface RobotsGenerateOptions {
280
+ groups: RobotsGenerateGroup[];
281
+ sitemaps?: string[];
282
+ }
283
+ /**
284
+ * Generate a robots.txt file from a list of User-agent groups (each with its
285
+ * own Allow/Disallow rules and an optional Crawl-delay) plus a list of
286
+ * Sitemap URLs. The inverse of validateRobotsTxt: this always produces text
287
+ * that tool would accept. A group with no Allow or Disallow rules gets an
288
+ * explicit empty "Disallow:" line, the standard way to say that user-agent
289
+ * may crawl everything.
290
+ */
291
+ declare function generateRobotsTxt(options: RobotsGenerateOptions): {
292
+ text: string;
293
+ } | {
294
+ error: string;
295
+ };
272
296
  type UaDeviceType = 'desktop' | 'mobile' | 'tablet' | 'bot';
273
297
  interface UserAgentInfo {
274
298
  browser: {
@@ -1194,6 +1218,8 @@ type network_ReferrerPolicyValue = ReferrerPolicyValue;
1194
1218
  type network_RetryAfterDateResult = RetryAfterDateResult;
1195
1219
  type network_RetryAfterResult = RetryAfterResult;
1196
1220
  type network_RetryAfterSecondsResult = RetryAfterSecondsResult;
1221
+ type network_RobotsGenerateGroup = RobotsGenerateGroup;
1222
+ type network_RobotsGenerateOptions = RobotsGenerateOptions;
1197
1223
  type network_RobotsGroup = RobotsGroup;
1198
1224
  type network_RobotsIssue = RobotsIssue;
1199
1225
  type network_RobotsMetaTagFlag = RobotsMetaTagFlag;
@@ -1251,6 +1277,7 @@ declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1251
1277
  declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
1252
1278
  declare const network_formatCoordinates: typeof formatCoordinates;
1253
1279
  declare const network_formatTtl: typeof formatTtl;
1280
+ declare const network_generateRobotsTxt: typeof generateRobotsTxt;
1254
1281
  declare const network_getByCategory: typeof getByCategory;
1255
1282
  declare const network_getHeader: typeof getHeader;
1256
1283
  declare const network_getHeadersByCategory: typeof getHeadersByCategory;
@@ -1298,7 +1325,7 @@ declare const network_validateManifest: typeof validateManifest;
1298
1325
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1299
1326
  declare const network_validateSitemap: typeof validateSitemap;
1300
1327
  declare namespace network {
1301
- 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_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_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 };
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 };
1302
1329
  }
1303
1330
 
1304
- 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, buildPermissionsPolicy 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 SitemapSplitFile as aA, type SitemapUrlEntry as aB, type SitemapValidationResult as aC, type SplitSitemapOptions as aD, type SplitSitemapResult as aE, type StatusCode as aF, type UaDeviceType as aG, type UserAgentInfo as aH, type VaryHeaderEntry as aI, type VaryHeaderResult as aJ, type XContentTypeOptionsHeader as aK, type XContentTypeOptionsParseResult as aL, type XRobotsTagFlag as aM, type XRobotsTagOptions as aN, type XRobotsTagResult as aO, X_CONTENT_TYPE_OPTIONS_HEADER as aP, analyzeEmailHeaders as aQ, assessContentTypeRisk as aR, buildAcceptLanguage as aS, buildCacheControl as aT, buildClientHints as aU, buildContentDisposition as aV, buildDnsQueryUrl as aW, buildGeoUrl as aX, buildHsts as aY, buildLinkHeader as aZ, buildMapUrl 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 RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SecurityHeaderCheck as av, type SecurityHeaderStatus as aw, type SecurityHeadersScorecard as ax, type SitemapIndexEntry as ay, type SitemapIssue as az, type AuthResultEntry as b, buildPreferHeader as b0, buildPriorityHeader as b1, buildRangeHeader as b2, buildReferrerPolicy as b3, buildRetryAfterHeader as b4, buildRobotsMetaTag as b5, buildVaryHeader as b6, buildXContentTypeOptionsHeader as b7, buildXRobotsTag as b8, calculateCookieSizeBudget as b9, parseHar as bA, parseHsts as bB, parseIpv6Address as bC, parseMultipartFormData as bD, parsePermissionsPolicy as bE, parsePreferHeader as bF, parsePriorityHeader as bG, parseRetryAfterHeader as bH, parseRobotsMetaTag as bI, parseUserAgent as bJ, parseVaryHeader as bK, parseXContentTypeOptionsHeader as bL, parseXRobotsTag as bM, scoreSecurityHeaders as bN, searchHeaders as bO, searchStatusCodes as bP, splitSitemap as bQ, statusCodeToText as bR, typeNumberToLabel as bS, validateDomain as bT, validateHeaderName as bU, validateHeaderValue as bV, validateManifest as bW, validateRobotsTxt as bX, validateSitemap as bY, checkSetCookieHeader as ba, countryCodeToFlag as bb, extractMultipartBoundary as bc, formatCoordinates as bd, formatTtl as be, getByCategory as bf, getHeader as bg, getHeadersByCategory as bh, getStatusByCategory as bi, getStatusCode as bj, isClientError as bk, isServerError as bl, isSuccess as bm, isValidIp as bn, isValidIpv4 as bo, isValidIpv6 as bp, listCloseCodes as bq, listOpcodes as br, lookupCloseCode as bs, lookupOpcode as bt, parseAcceptLanguage as bu, parseClientHintHeaders as bv, parseContentDisposition as bw, parseContentRangeHeader as bx, parseDnsResponse as by, parseGeoResponse 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 };
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 };
@@ -1627,6 +1627,40 @@ function validateRobotsTxt(text) {
1627
1627
  const valid = !issues.some((i) => i.severity === "error");
1628
1628
  return { groups, sitemaps, issues, valid };
1629
1629
  }
1630
+ function generateRobotsTxt(options) {
1631
+ if (!options || !Array.isArray(options.groups) || options.groups.length === 0) {
1632
+ return { error: "At least one group with a user-agent is required" };
1633
+ }
1634
+ const lines = [];
1635
+ for (const group of options.groups) {
1636
+ const userAgents = (group.userAgents ?? []).map((a) => a.trim()).filter(Boolean);
1637
+ if (userAgents.length === 0) return { error: "Each group needs at least one non-empty user-agent" };
1638
+ for (const ua of userAgents) lines.push(`User-agent: ${ua}`);
1639
+ const disallow = group.disallow ?? [];
1640
+ const allow = group.allow ?? [];
1641
+ if (disallow.length === 0 && allow.length === 0) {
1642
+ lines.push("Disallow:");
1643
+ } else {
1644
+ for (const value of disallow) lines.push(`Disallow: ${value}`);
1645
+ for (const value of allow) lines.push(`Allow: ${value}`);
1646
+ }
1647
+ if (group.crawlDelay !== void 0) {
1648
+ if (!Number.isFinite(group.crawlDelay) || group.crawlDelay < 0) {
1649
+ return { error: "crawlDelay must be a non-negative number" };
1650
+ }
1651
+ lines.push(`Crawl-delay: ${group.crawlDelay}`);
1652
+ }
1653
+ lines.push("");
1654
+ }
1655
+ for (const sitemap of options.sitemaps ?? []) {
1656
+ if (!/^https?:\/\//i.test(sitemap)) {
1657
+ return { error: `Sitemap URL "${sitemap}" must be absolute (start with http:// or https://)` };
1658
+ }
1659
+ lines.push(`Sitemap: ${sitemap}`);
1660
+ }
1661
+ while (lines.length > 0 && lines[lines.length - 1] === "") lines.pop();
1662
+ return { text: lines.join("\n") + "\n" };
1663
+ }
1630
1664
  var UA_BOT_PATTERNS = [
1631
1665
  [/googlebot/i, "Googlebot"],
1632
1666
  [/bingbot/i, "Bingbot"],
@@ -3581,6 +3615,7 @@ exports.countryCodeToFlag = countryCodeToFlag;
3581
3615
  exports.extractMultipartBoundary = extractMultipartBoundary;
3582
3616
  exports.formatCoordinates = formatCoordinates;
3583
3617
  exports.formatTtl = formatTtl;
3618
+ exports.generateRobotsTxt = generateRobotsTxt;
3584
3619
  exports.getByCategory = getByCategory;
3585
3620
  exports.getHeader = getHeader;
3586
3621
  exports.getHeadersByCategory = getHeadersByCategory;
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGroup, an as RobotsIssue, ao as RobotsMetaTagFlag, ap as RobotsMetaTagOptions, aq as RobotsMetaTagResult, ar as RobotsRule, as as RobotsValidationResult, at as STATUS_CODES, au as SameSiteValue, av as SecurityHeaderCheck, aw as SecurityHeaderStatus, ax as SecurityHeadersScorecard, ay as SitemapIndexEntry, az as SitemapIssue, aA as SitemapSplitFile, aB as SitemapUrlEntry, aC as SitemapValidationResult, aD as SplitSitemapOptions, aE as SplitSitemapResult, aF as StatusCode, aG as UaDeviceType, aH as UserAgentInfo, aI as VaryHeaderEntry, aJ as VaryHeaderResult, aK as XContentTypeOptionsHeader, aL as XContentTypeOptionsParseResult, aM as XRobotsTagFlag, aN as XRobotsTagOptions, aO as XRobotsTagResult, aP as X_CONTENT_TYPE_OPTIONS_HEADER, aQ as analyzeEmailHeaders, aR as assessContentTypeRisk, aS as buildAcceptLanguage, aT as buildCacheControl, aU as buildClientHints, aV as buildContentDisposition, aW as buildDnsQueryUrl, aX as buildGeoUrl, aY as buildHsts, aZ as buildLinkHeader, a_ as buildMapUrl, a$ as buildPermissionsPolicy, b0 as buildPreferHeader, b1 as buildPriorityHeader, b2 as buildRangeHeader, b3 as buildReferrerPolicy, b4 as buildRetryAfterHeader, b5 as buildRobotsMetaTag, b6 as buildVaryHeader, b7 as buildXContentTypeOptionsHeader, b8 as buildXRobotsTag, b9 as calculateCookieSizeBudget, ba as checkSetCookieHeader, bb as countryCodeToFlag, bc as extractMultipartBoundary, bd as formatCoordinates, be as formatTtl, bf as getByCategory, bg as getHeader, bh as getHeadersByCategory, bi as getStatusByCategory, bj as getStatusCode, bk as isClientError, bl as isServerError, bm as isSuccess, bn as isValidIp, bo as isValidIpv4, bp as isValidIpv6, bq as listCloseCodes, br as listOpcodes, bs as lookupCloseCode, bt as lookupOpcode, bu as parseAcceptLanguage, bv as parseClientHintHeaders, bw as parseContentDisposition, bx as parseContentRangeHeader, by as parseDnsResponse, bz as parseGeoResponse, bA as parseHar, bB as parseHsts, bC as parseIpv6Address, bD as parseMultipartFormData, bE as parsePermissionsPolicy, bF as parsePreferHeader, bG as parsePriorityHeader, bH as parseRetryAfterHeader, bI as parseRobotsMetaTag, bJ as parseUserAgent, bK as parseVaryHeader, bL as parseXContentTypeOptionsHeader, bM as parseXRobotsTag, bN as scoreSecurityHeaders, bO as searchHeaders, bP as searchStatusCodes, bQ as splitSitemap, bR as statusCodeToText, bS as typeNumberToLabel, bT as validateDomain, bU as validateHeaderName, bV as validateHeaderValue, bW as validateManifest, bX as validateRobotsTxt, bY as validateSitemap } from '../network-BskZe1n2.cjs';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGenerateGroup, an as RobotsGenerateOptions, ao as RobotsGroup, ap as RobotsIssue, aq as RobotsMetaTagFlag, ar as RobotsMetaTagOptions, as as RobotsMetaTagResult, at as RobotsRule, au as RobotsValidationResult, av as STATUS_CODES, aw as SameSiteValue, ax as SecurityHeaderCheck, ay as SecurityHeaderStatus, az as SecurityHeadersScorecard, aA as SitemapIndexEntry, aB as SitemapIssue, aC as SitemapSplitFile, aD as SitemapUrlEntry, aE as SitemapValidationResult, aF as SplitSitemapOptions, aG as SplitSitemapResult, aH as StatusCode, aI as UaDeviceType, aJ as UserAgentInfo, aK as VaryHeaderEntry, aL as VaryHeaderResult, aM as XContentTypeOptionsHeader, aN as XContentTypeOptionsParseResult, aO as XRobotsTagFlag, aP as XRobotsTagOptions, aQ as XRobotsTagResult, aR as X_CONTENT_TYPE_OPTIONS_HEADER, aS as analyzeEmailHeaders, aT as assessContentTypeRisk, aU as buildAcceptLanguage, aV as buildCacheControl, aW as buildClientHints, aX as buildContentDisposition, aY as buildDnsQueryUrl, aZ as buildGeoUrl, a_ as buildHsts, a$ as buildLinkHeader, b0 as buildMapUrl, b1 as buildPermissionsPolicy, b2 as buildPreferHeader, b3 as buildPriorityHeader, b4 as buildRangeHeader, b5 as buildReferrerPolicy, b6 as buildRetryAfterHeader, b7 as buildRobotsMetaTag, b8 as buildVaryHeader, b9 as buildXContentTypeOptionsHeader, ba as buildXRobotsTag, bb as calculateCookieSizeBudget, bc as checkSetCookieHeader, bd as countryCodeToFlag, be as extractMultipartBoundary, bf as formatCoordinates, bg as formatTtl, bh as generateRobotsTxt, bi as getByCategory, bj as getHeader, bk as getHeadersByCategory, bl as getStatusByCategory, bm as getStatusCode, bn as isClientError, bo as isServerError, bp as isSuccess, bq as isValidIp, br as isValidIpv4, bs as isValidIpv6, bt as listCloseCodes, bu as listOpcodes, bv as lookupCloseCode, bw as lookupOpcode, bx as parseAcceptLanguage, by as parseClientHintHeaders, bz as parseContentDisposition, bA as parseContentRangeHeader, bB as parseDnsResponse, bC as parseGeoResponse, bD as parseHar, bE as parseHsts, bF as parseIpv6Address, bG as parseMultipartFormData, bH as parsePermissionsPolicy, bI as parsePreferHeader, bJ as parsePriorityHeader, bK as parseRetryAfterHeader, bL as parseRobotsMetaTag, bM as parseUserAgent, bN as parseVaryHeader, bO as parseXContentTypeOptionsHeader, bP as parseXRobotsTag, bQ as scoreSecurityHeaders, bR as searchHeaders, bS as searchStatusCodes, bT as splitSitemap, bU as statusCodeToText, bV as typeNumberToLabel, bW as validateDomain, bX as validateHeaderName, bY as validateHeaderValue, bZ as validateManifest, b_ as validateRobotsTxt, b$ as validateSitemap } from '../network-ylRtLPEs.cjs';
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGroup, an as RobotsIssue, ao as RobotsMetaTagFlag, ap as RobotsMetaTagOptions, aq as RobotsMetaTagResult, ar as RobotsRule, as as RobotsValidationResult, at as STATUS_CODES, au as SameSiteValue, av as SecurityHeaderCheck, aw as SecurityHeaderStatus, ax as SecurityHeadersScorecard, ay as SitemapIndexEntry, az as SitemapIssue, aA as SitemapSplitFile, aB as SitemapUrlEntry, aC as SitemapValidationResult, aD as SplitSitemapOptions, aE as SplitSitemapResult, aF as StatusCode, aG as UaDeviceType, aH as UserAgentInfo, aI as VaryHeaderEntry, aJ as VaryHeaderResult, aK as XContentTypeOptionsHeader, aL as XContentTypeOptionsParseResult, aM as XRobotsTagFlag, aN as XRobotsTagOptions, aO as XRobotsTagResult, aP as X_CONTENT_TYPE_OPTIONS_HEADER, aQ as analyzeEmailHeaders, aR as assessContentTypeRisk, aS as buildAcceptLanguage, aT as buildCacheControl, aU as buildClientHints, aV as buildContentDisposition, aW as buildDnsQueryUrl, aX as buildGeoUrl, aY as buildHsts, aZ as buildLinkHeader, a_ as buildMapUrl, a$ as buildPermissionsPolicy, b0 as buildPreferHeader, b1 as buildPriorityHeader, b2 as buildRangeHeader, b3 as buildReferrerPolicy, b4 as buildRetryAfterHeader, b5 as buildRobotsMetaTag, b6 as buildVaryHeader, b7 as buildXContentTypeOptionsHeader, b8 as buildXRobotsTag, b9 as calculateCookieSizeBudget, ba as checkSetCookieHeader, bb as countryCodeToFlag, bc as extractMultipartBoundary, bd as formatCoordinates, be as formatTtl, bf as getByCategory, bg as getHeader, bh as getHeadersByCategory, bi as getStatusByCategory, bj as getStatusCode, bk as isClientError, bl as isServerError, bm as isSuccess, bn as isValidIp, bo as isValidIpv4, bp as isValidIpv6, bq as listCloseCodes, br as listOpcodes, bs as lookupCloseCode, bt as lookupOpcode, bu as parseAcceptLanguage, bv as parseClientHintHeaders, bw as parseContentDisposition, bx as parseContentRangeHeader, by as parseDnsResponse, bz as parseGeoResponse, bA as parseHar, bB as parseHsts, bC as parseIpv6Address, bD as parseMultipartFormData, bE as parsePermissionsPolicy, bF as parsePreferHeader, bG as parsePriorityHeader, bH as parseRetryAfterHeader, bI as parseRobotsMetaTag, bJ as parseUserAgent, bK as parseVaryHeader, bL as parseXContentTypeOptionsHeader, bM as parseXRobotsTag, bN as scoreSecurityHeaders, bO as searchHeaders, bP as searchStatusCodes, bQ as splitSitemap, bR as statusCodeToText, bS as typeNumberToLabel, bT as validateDomain, bU as validateHeaderName, bV as validateHeaderValue, bW as validateManifest, bX as validateRobotsTxt, bY as validateSitemap } from '../network-BskZe1n2.js';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGenerateGroup, an as RobotsGenerateOptions, ao as RobotsGroup, ap as RobotsIssue, aq as RobotsMetaTagFlag, ar as RobotsMetaTagOptions, as as RobotsMetaTagResult, at as RobotsRule, au as RobotsValidationResult, av as STATUS_CODES, aw as SameSiteValue, ax as SecurityHeaderCheck, ay as SecurityHeaderStatus, az as SecurityHeadersScorecard, aA as SitemapIndexEntry, aB as SitemapIssue, aC as SitemapSplitFile, aD as SitemapUrlEntry, aE as SitemapValidationResult, aF as SplitSitemapOptions, aG as SplitSitemapResult, aH as StatusCode, aI as UaDeviceType, aJ as UserAgentInfo, aK as VaryHeaderEntry, aL as VaryHeaderResult, aM as XContentTypeOptionsHeader, aN as XContentTypeOptionsParseResult, aO as XRobotsTagFlag, aP as XRobotsTagOptions, aQ as XRobotsTagResult, aR as X_CONTENT_TYPE_OPTIONS_HEADER, aS as analyzeEmailHeaders, aT as assessContentTypeRisk, aU as buildAcceptLanguage, aV as buildCacheControl, aW as buildClientHints, aX as buildContentDisposition, aY as buildDnsQueryUrl, aZ as buildGeoUrl, a_ as buildHsts, a$ as buildLinkHeader, b0 as buildMapUrl, b1 as buildPermissionsPolicy, b2 as buildPreferHeader, b3 as buildPriorityHeader, b4 as buildRangeHeader, b5 as buildReferrerPolicy, b6 as buildRetryAfterHeader, b7 as buildRobotsMetaTag, b8 as buildVaryHeader, b9 as buildXContentTypeOptionsHeader, ba as buildXRobotsTag, bb as calculateCookieSizeBudget, bc as checkSetCookieHeader, bd as countryCodeToFlag, be as extractMultipartBoundary, bf as formatCoordinates, bg as formatTtl, bh as generateRobotsTxt, bi as getByCategory, bj as getHeader, bk as getHeadersByCategory, bl as getStatusByCategory, bm as getStatusCode, bn as isClientError, bo as isServerError, bp as isSuccess, bq as isValidIp, br as isValidIpv4, bs as isValidIpv6, bt as listCloseCodes, bu as listOpcodes, bv as lookupCloseCode, bw as lookupOpcode, bx as parseAcceptLanguage, by as parseClientHintHeaders, bz as parseContentDisposition, bA as parseContentRangeHeader, bB as parseDnsResponse, bC as parseGeoResponse, bD as parseHar, bE as parseHsts, bF as parseIpv6Address, bG as parseMultipartFormData, bH as parsePermissionsPolicy, bI as parsePreferHeader, bJ as parsePriorityHeader, bK as parseRetryAfterHeader, bL as parseRobotsMetaTag, bM as parseUserAgent, bN as parseVaryHeader, bO as parseXContentTypeOptionsHeader, bP as parseXRobotsTag, bQ as scoreSecurityHeaders, bR as searchHeaders, bS as searchStatusCodes, bT as splitSitemap, bU as statusCodeToText, bV as typeNumberToLabel, bW as validateDomain, bX as validateHeaderName, bY as validateHeaderValue, bZ as validateManifest, b_ as validateRobotsTxt, b$ as validateSitemap } from '../network-ylRtLPEs.js';
@@ -1,2 +1,2 @@
1
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-KWS4ZCYG.js';
1
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, generateRobotsTxt, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-SW3J5CAI.js';
2
2
  import '../chunk-MLKGABMK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilix-tech/sdk",
3
- "version": "0.81.0",
3
+ "version": "0.82.0",
4
4
  "description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",