@utilix-tech/sdk 0.55.0 → 0.57.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +16 -7
  3. package/dist/{chunk-WVEKRKGU.js → chunk-34C6GXCC.js} +34 -1
  4. package/dist/{chunk-3TYWIX3B.js → chunk-422ICOZX.js} +16 -1
  5. package/dist/{chunk-LI63MAZU.js → chunk-MRIGQRTU.js} +41 -1
  6. package/dist/{chunk-DEBIH7QS.js → chunk-TVSQ53TZ.js} +55 -1
  7. package/dist/{generators-Du8cBesn.d.cts → generators-DAXXrMvG.d.cts} +23 -2
  8. package/dist/{generators-Du8cBesn.d.ts → generators-DAXXrMvG.d.ts} +23 -2
  9. package/dist/index.cjs +142 -0
  10. package/dist/index.d.cts +4 -4
  11. package/dist/index.d.ts +4 -4
  12. package/dist/index.js +4 -4
  13. package/dist/{json-Ta9JykSB.d.ts → json-CaiYsGDQ.d.cts} +24 -2
  14. package/dist/{json-Ta9JykSB.d.cts → json-CaiYsGDQ.d.ts} +24 -2
  15. package/dist/{network-C6IcHeMB.d.cts → network-CoGf7_Op.d.cts} +37 -2
  16. package/dist/{network-C6IcHeMB.d.ts → network-CoGf7_Op.d.ts} +37 -2
  17. package/dist/tools/generators.cjs +15 -0
  18. package/dist/tools/generators.d.cts +1 -1
  19. package/dist/tools/generators.d.ts +1 -1
  20. package/dist/tools/generators.js +1 -1
  21. package/dist/tools/json.cjs +33 -0
  22. package/dist/tools/json.d.cts +1 -1
  23. package/dist/tools/json.d.ts +1 -1
  24. package/dist/tools/json.js +1 -1
  25. package/dist/tools/network.cjs +54 -0
  26. package/dist/tools/network.d.cts +1 -1
  27. package/dist/tools/network.d.ts +1 -1
  28. package/dist/tools/network.js +1 -1
  29. package/dist/tools/units.cjs +40 -0
  30. package/dist/tools/units.d.cts +1 -1
  31. package/dist/tools/units.d.ts +1 -1
  32. package/dist/tools/units.js +1 -1
  33. package/dist/{units-BM1l5LG9.d.cts → units-BM9GkUZW.d.cts} +36 -2
  34. package/dist/{units-BM1l5LG9.d.ts → units-BM9GkUZW.d.ts} +36 -2
  35. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- export { j as json } from './json-Ta9JykSB.cjs';
1
+ export { j as json } from './json-CaiYsGDQ.cjs';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.cjs';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.cjs';
4
4
  export { t as text } from './text-DWUcY8H1.cjs';
5
5
  export { d as data } from './data-Cvyg8ZXo.cjs';
6
- export { g as generators } from './generators-Du8cBesn.cjs';
6
+ export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-KqJjdqII.cjs';
8
- export { u as units } from './units-BM1l5LG9.cjs';
9
- export { n as network } from './network-C6IcHeMB.cjs';
8
+ export { u as units } from './units-BM9GkUZW.cjs';
9
+ export { n as network } from './network-CoGf7_Op.cjs';
10
10
  export { a as api } from './api-DmTNE4c1.cjs';
11
11
  export { c as code } from './code-rxidGgvB.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { j as json } from './json-Ta9JykSB.js';
1
+ export { j as json } from './json-CaiYsGDQ.js';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.js';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.js';
4
4
  export { t as text } from './text-DWUcY8H1.js';
5
5
  export { d as data } from './data-Cvyg8ZXo.js';
6
- export { g as generators } from './generators-Du8cBesn.js';
6
+ export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-KqJjdqII.js';
8
- export { u as units } from './units-BM1l5LG9.js';
9
- export { n as network } from './network-C6IcHeMB.js';
8
+ export { u as units } from './units-BM9GkUZW.js';
9
+ export { n as network } from './network-CoGf7_Op.js';
10
10
  export { a as api } from './api-DmTNE4c1.js';
11
11
  export { c as code } from './code-rxidGgvB.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
1
  export { media_exports as media } from './chunk-226EH3ZI.js';
2
- export { units_exports as units } from './chunk-LI63MAZU.js';
3
- export { network_exports as network } from './chunk-DEBIH7QS.js';
2
+ export { units_exports as units } from './chunk-MRIGQRTU.js';
3
+ export { network_exports as network } from './chunk-TVSQ53TZ.js';
4
4
  export { api_exports as api } from './chunk-52ZDKSIX.js';
5
5
  export { code_exports as code } from './chunk-JW4NG2GN.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
7
7
  export { css_exports as css } from './chunk-6YPV2AB5.js';
8
8
  export { misc_exports as misc } from './chunk-GX7H6TAX.js';
9
9
  export { ai_agent_exports as ai_agent } from './chunk-EKIXOA7B.js';
10
- export { json_exports as json } from './chunk-WVEKRKGU.js';
10
+ export { json_exports as json } from './chunk-34C6GXCC.js';
11
11
  export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
12
12
  export { hashing_exports as hashing } from './chunk-PET2CGTH.js';
13
13
  export { text_exports as text } from './chunk-P7TXG7CI.js';
14
14
  export { data_exports as data } from './chunk-56VFNHVO.js';
15
- export { generators_exports as generators } from './chunk-3TYWIX3B.js';
15
+ export { generators_exports as generators } from './chunk-422ICOZX.js';
16
16
  export { time_exports as time } from './chunk-IEPWZERQ.js';
17
17
  import './chunk-MLKGABMK.js';
18
18
 
@@ -14,6 +14,7 @@
14
14
  * - json-to-python : jsonToPython, toSnakeCase, inferPythonType
15
15
  * - json-to-zod : jsonToZod
16
16
  * - json-schema-to-typescript : jsonSchemaToTypescript
17
+ * - json-merge-patch : mergeJsonPatch, applyJsonMergePatch
17
18
  */
18
19
  type ParseStatus = 'idle' | 'valid' | 'error';
19
20
  interface JsonParseResult {
@@ -201,6 +202,24 @@ interface JsonSchemaToTsOptions {
201
202
  declare function jsonSchemaToTypescript(schemaJson: string, options?: JsonSchemaToTsOptions): string | {
202
203
  error: string;
203
204
  };
205
+ interface MergePatchResult {
206
+ result: unknown;
207
+ }
208
+ /**
209
+ * Apply an RFC 7396 JSON Merge Patch to a target value. A patch that is not
210
+ * itself a JSON object replaces the target wholesale (this is how arrays are
211
+ * replaced rather than merged element by element); a null-valued key in an
212
+ * object patch removes that key from the result.
213
+ */
214
+ declare function mergeJsonPatch(target: unknown, patch: unknown): unknown;
215
+ /**
216
+ * Apply an RFC 7396 JSON Merge Patch document to a target JSON document,
217
+ * both given as JSON strings, and return the merged result. Pure recursive
218
+ * merge, no external calls.
219
+ */
220
+ declare function applyJsonMergePatch(targetJson: string, patchJson: string): MergePatchResult | {
221
+ error: string;
222
+ };
204
223
 
205
224
  type json_ConvertOptions = ConvertOptions;
206
225
  type json_CsvOptions = CsvOptions;
@@ -214,6 +233,7 @@ type json_JsonPathResult = JsonPathResult;
214
233
  type json_JsonPointerResult = JsonPointerResult;
215
234
  type json_JsonSchemaLike = JsonSchemaLike;
216
235
  type json_JsonSchemaToTsOptions = JsonSchemaToTsOptions;
236
+ type json_MergePatchResult = MergePatchResult;
217
237
  type json_ParseStatus = ParseStatus;
218
238
  type json_PythonClass = PythonClass;
219
239
  type json_PythonField = PythonField;
@@ -221,6 +241,7 @@ type json_PythonMode = PythonMode;
221
241
  type json_ValidationError = ValidationError;
222
242
  type json_ValidationResult = ValidationResult;
223
243
  type json_ZodOptions = ZodOptions;
244
+ declare const json_applyJsonMergePatch: typeof applyJsonMergePatch;
224
245
  declare const json_csvToJson: typeof csvToJson;
225
246
  declare const json_detectFormat: typeof detectFormat;
226
247
  declare const json_diffJson: typeof diffJson;
@@ -239,6 +260,7 @@ declare const json_jsonToPython: typeof jsonToPython;
239
260
  declare const json_jsonToTypescript: typeof jsonToTypescript;
240
261
  declare const json_jsonToYaml: typeof jsonToYaml;
241
262
  declare const json_jsonToZod: typeof jsonToZod;
263
+ declare const json_mergeJsonPatch: typeof mergeJsonPatch;
242
264
  declare const json_minifyJson: typeof minifyJson;
243
265
  declare const json_parseJson: typeof parseJson;
244
266
  declare const json_parseStructs: typeof parseStructs;
@@ -250,7 +272,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
250
272
  declare const json_validateJsonString: typeof validateJsonString;
251
273
  declare const json_yamlToJson: typeof yamlToJson;
252
274
  declare namespace json {
253
- export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
275
+ export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
254
276
  }
255
277
 
256
- export { jsonToGo as A, jsonToPython as B, type ConvertOptions as C, type DiffNode as D, jsonToTypescript as E, jsonToYaml as F, type GoField as G, jsonToZod as H, minifyJson as I, type JsonDiffResult as J, parseJson as K, parseStructs as L, resolveJsonPointer as M, toPascalCase as N, toSnakeCase as O, type ParseStatus as P, validateJson as Q, validateJsonPath as R, validateJsonString as S, yamlToJson as T, type ValidationError as V, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type JsonSchemaLike as g, type JsonSchemaToTsOptions as h, type PythonClass as i, json as j, type PythonField as k, type PythonMode as l, type ValidationResult as m, csvToJson as n, detectFormat as o, diffJson as p, evaluateJsonPath as q, formatDiffLine as r, formatJson as s, generateExample as t, getJsonStats as u, inferGoType as v, inferPythonType as w, inferType as x, jsonSchemaToTypescript as y, jsonToCsv as z };
278
+ export { jsonToCsv as A, jsonToGo as B, type ConvertOptions as C, type DiffNode as D, jsonToPython as E, jsonToTypescript as F, type GoField as G, jsonToYaml as H, jsonToZod as I, type JsonDiffResult as J, mergeJsonPatch as K, minifyJson as L, type MergePatchResult as M, parseJson as N, parseStructs as O, type ParseStatus as P, resolveJsonPointer as Q, toPascalCase as R, toSnakeCase as S, validateJson as T, validateJsonPath as U, type ValidationError as V, validateJsonString as W, yamlToJson as X, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type JsonSchemaLike as g, type JsonSchemaToTsOptions as h, type PythonClass as i, json as j, type PythonField as k, type PythonMode as l, type ValidationResult as m, applyJsonMergePatch as n, csvToJson as o, detectFormat as p, diffJson as q, evaluateJsonPath as r, formatDiffLine as s, formatJson as t, generateExample as u, getJsonStats as v, inferGoType as w, inferPythonType as x, inferType as y, jsonSchemaToTypescript as z };
@@ -14,6 +14,7 @@
14
14
  * - json-to-python : jsonToPython, toSnakeCase, inferPythonType
15
15
  * - json-to-zod : jsonToZod
16
16
  * - json-schema-to-typescript : jsonSchemaToTypescript
17
+ * - json-merge-patch : mergeJsonPatch, applyJsonMergePatch
17
18
  */
18
19
  type ParseStatus = 'idle' | 'valid' | 'error';
19
20
  interface JsonParseResult {
@@ -201,6 +202,24 @@ interface JsonSchemaToTsOptions {
201
202
  declare function jsonSchemaToTypescript(schemaJson: string, options?: JsonSchemaToTsOptions): string | {
202
203
  error: string;
203
204
  };
205
+ interface MergePatchResult {
206
+ result: unknown;
207
+ }
208
+ /**
209
+ * Apply an RFC 7396 JSON Merge Patch to a target value. A patch that is not
210
+ * itself a JSON object replaces the target wholesale (this is how arrays are
211
+ * replaced rather than merged element by element); a null-valued key in an
212
+ * object patch removes that key from the result.
213
+ */
214
+ declare function mergeJsonPatch(target: unknown, patch: unknown): unknown;
215
+ /**
216
+ * Apply an RFC 7396 JSON Merge Patch document to a target JSON document,
217
+ * both given as JSON strings, and return the merged result. Pure recursive
218
+ * merge, no external calls.
219
+ */
220
+ declare function applyJsonMergePatch(targetJson: string, patchJson: string): MergePatchResult | {
221
+ error: string;
222
+ };
204
223
 
205
224
  type json_ConvertOptions = ConvertOptions;
206
225
  type json_CsvOptions = CsvOptions;
@@ -214,6 +233,7 @@ type json_JsonPathResult = JsonPathResult;
214
233
  type json_JsonPointerResult = JsonPointerResult;
215
234
  type json_JsonSchemaLike = JsonSchemaLike;
216
235
  type json_JsonSchemaToTsOptions = JsonSchemaToTsOptions;
236
+ type json_MergePatchResult = MergePatchResult;
217
237
  type json_ParseStatus = ParseStatus;
218
238
  type json_PythonClass = PythonClass;
219
239
  type json_PythonField = PythonField;
@@ -221,6 +241,7 @@ type json_PythonMode = PythonMode;
221
241
  type json_ValidationError = ValidationError;
222
242
  type json_ValidationResult = ValidationResult;
223
243
  type json_ZodOptions = ZodOptions;
244
+ declare const json_applyJsonMergePatch: typeof applyJsonMergePatch;
224
245
  declare const json_csvToJson: typeof csvToJson;
225
246
  declare const json_detectFormat: typeof detectFormat;
226
247
  declare const json_diffJson: typeof diffJson;
@@ -239,6 +260,7 @@ declare const json_jsonToPython: typeof jsonToPython;
239
260
  declare const json_jsonToTypescript: typeof jsonToTypescript;
240
261
  declare const json_jsonToYaml: typeof jsonToYaml;
241
262
  declare const json_jsonToZod: typeof jsonToZod;
263
+ declare const json_mergeJsonPatch: typeof mergeJsonPatch;
242
264
  declare const json_minifyJson: typeof minifyJson;
243
265
  declare const json_parseJson: typeof parseJson;
244
266
  declare const json_parseStructs: typeof parseStructs;
@@ -250,7 +272,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
250
272
  declare const json_validateJsonString: typeof validateJsonString;
251
273
  declare const json_yamlToJson: typeof yamlToJson;
252
274
  declare namespace json {
253
- export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
275
+ export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
254
276
  }
255
277
 
256
- export { jsonToGo as A, jsonToPython as B, type ConvertOptions as C, type DiffNode as D, jsonToTypescript as E, jsonToYaml as F, type GoField as G, jsonToZod as H, minifyJson as I, type JsonDiffResult as J, parseJson as K, parseStructs as L, resolveJsonPointer as M, toPascalCase as N, toSnakeCase as O, type ParseStatus as P, validateJson as Q, validateJsonPath as R, validateJsonString as S, yamlToJson as T, type ValidationError as V, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type JsonSchemaLike as g, type JsonSchemaToTsOptions as h, type PythonClass as i, json as j, type PythonField as k, type PythonMode as l, type ValidationResult as m, csvToJson as n, detectFormat as o, diffJson as p, evaluateJsonPath as q, formatDiffLine as r, formatJson as s, generateExample as t, getJsonStats as u, inferGoType as v, inferPythonType as w, inferType as x, jsonSchemaToTypescript as y, jsonToCsv as z };
278
+ export { jsonToCsv as A, jsonToGo as B, type ConvertOptions as C, type DiffNode as D, jsonToPython as E, jsonToTypescript as F, type GoField as G, jsonToYaml as H, jsonToZod as I, type JsonDiffResult as J, mergeJsonPatch as K, minifyJson as L, type MergePatchResult as M, parseJson as N, parseStructs as O, type ParseStatus as P, resolveJsonPointer as Q, toPascalCase as R, toSnakeCase as S, validateJson as T, validateJsonPath as U, type ValidationError as V, validateJsonString as W, yamlToJson as X, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type JsonSchemaLike as g, type JsonSchemaToTsOptions as h, type PythonClass as i, json as j, type PythonField as k, type PythonMode as l, type ValidationResult as m, applyJsonMergePatch as n, csvToJson as o, detectFormat as p, diffJson as q, evaluateJsonPath as r, formatDiffLine as s, formatJson as t, generateExample as u, getJsonStats as v, inferGoType as w, inferPythonType as x, inferType as y, jsonSchemaToTypescript as z };
@@ -22,6 +22,7 @@
22
22
  * - vary-header-builder: buildVaryHeader, parseVaryHeader
23
23
  * - permissions-policy-builder: buildPermissionsPolicy, parsePermissionsPolicy
24
24
  * - x-content-type-options-builder: buildXContentTypeOptionsHeader, parseXContentTypeOptionsHeader, assessContentTypeRisk
25
+ * - accept-language-parser: parseAcceptLanguage, buildAcceptLanguage
25
26
  */
26
27
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
27
28
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -743,7 +744,39 @@ interface ContentTypeRiskResult {
743
744
  declare function assessContentTypeRisk(contentType: string): ContentTypeRiskResult | {
744
745
  error: string;
745
746
  };
747
+ interface AcceptLanguageEntry {
748
+ locale: string;
749
+ quality: number;
750
+ }
751
+ interface AcceptLanguageResult {
752
+ header: string;
753
+ headerValue: string;
754
+ entries: AcceptLanguageEntry[];
755
+ }
756
+ /**
757
+ * Build an `Accept-Language` request-header value from a list of locale/
758
+ * quality pairs, sorting by descending quality (ties keep their original
759
+ * order) and omitting `;q=1` for the default weight, per RFC 9110 section
760
+ * 12.5.4.
761
+ */
762
+ declare function buildAcceptLanguage(locales: {
763
+ locale: string;
764
+ quality?: number;
765
+ }[]): AcceptLanguageResult | {
766
+ error: string;
767
+ };
768
+ /**
769
+ * Parse an existing `Accept-Language` header value (with or without a
770
+ * leading `Accept-Language:` label) into its ranked locale/quality pairs,
771
+ * sorted by descending quality per RFC 9110 section 12.5.4 (a missing
772
+ * `;q=` defaults to 1).
773
+ */
774
+ declare function parseAcceptLanguage(raw: string): AcceptLanguageResult | {
775
+ error: string;
776
+ };
746
777
 
778
+ type network_AcceptLanguageEntry = AcceptLanguageEntry;
779
+ type network_AcceptLanguageResult = AcceptLanguageResult;
747
780
  type network_AuthResultEntry = AuthResultEntry;
748
781
  type network_BuildRangeHeaderOptions = BuildRangeHeaderOptions;
749
782
  declare const network_CLIENT_HINTS: typeof CLIENT_HINTS;
@@ -823,6 +856,7 @@ type network_XContentTypeOptionsParseResult = XContentTypeOptionsParseResult;
823
856
  declare const network_X_CONTENT_TYPE_OPTIONS_HEADER: typeof X_CONTENT_TYPE_OPTIONS_HEADER;
824
857
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
825
858
  declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
859
+ declare const network_buildAcceptLanguage: typeof buildAcceptLanguage;
826
860
  declare const network_buildCacheControl: typeof buildCacheControl;
827
861
  declare const network_buildClientHints: typeof buildClientHints;
828
862
  declare const network_buildContentDisposition: typeof buildContentDisposition;
@@ -850,6 +884,7 @@ declare const network_isSuccess: typeof isSuccess;
850
884
  declare const network_isValidIp: typeof isValidIp;
851
885
  declare const network_isValidIpv4: typeof isValidIpv4;
852
886
  declare const network_isValidIpv6: typeof isValidIpv6;
887
+ declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
853
888
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
854
889
  declare const network_parseContentDisposition: typeof parseContentDisposition;
855
890
  declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
@@ -873,7 +908,7 @@ declare const network_validateManifest: typeof validateManifest;
873
908
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
874
909
  declare const network_validateSitemap: typeof validateSitemap;
875
910
  declare namespace network {
876
- export { 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_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, 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_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, 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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
911
+ 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_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, 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_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, 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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, 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_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_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_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
877
912
  }
878
913
 
879
- export { type ReceivedHop as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderEntry as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkHeaderEntryInput as J, type LinkHeaderResult as K, LINK_REL_VALUES as L, type LinkRel as M, type ManifestIconInfo as N, type ManifestIssue as O, type ManifestValidationResult as P, PERMISSIONS_POLICY_FEATURES as Q, type ParsedClientHint as R, type ParsedDnsResult as S, type ParsedGeoResult as T, type PermissionsPolicyDirective as U, type PermissionsPolicyFeatureInput as V, type PermissionsPolicyResult as W, REFERRER_POLICY_VALUES as X, type RangeEntry as Y, type RangeEntryInput as Z, type RangeHeaderResult as _, type CacheControlDirective as a, parseXContentTypeOptionsHeader as a$, type ReferrerPolicyEntry as a0, type ReferrerPolicyResult as a1, type ReferrerPolicyValue as a2, type RobotsGroup as a3, type RobotsIssue as a4, type RobotsRule as a5, type RobotsValidationResult as a6, STATUS_CODES as a7, type SameSiteValue as a8, type SitemapIndexEntry as a9, buildVaryHeader as aA, buildXContentTypeOptionsHeader as aB, checkSetCookieHeader as aC, countryCodeToFlag as aD, formatCoordinates as aE, formatTtl as aF, getByCategory as aG, getHeader as aH, getHeadersByCategory as aI, getStatusByCategory as aJ, getStatusCode as aK, isClientError as aL, isServerError as aM, isSuccess as aN, isValidIp as aO, isValidIpv4 as aP, isValidIpv6 as aQ, parseClientHintHeaders as aR, parseContentDisposition as aS, parseContentRangeHeader as aT, parseDnsResponse as aU, parseGeoResponse as aV, parseHar as aW, parseIpv6Address as aX, parsePermissionsPolicy as aY, parseUserAgent as aZ, parseVaryHeader as a_, type SitemapIssue as aa, type SitemapSplitFile as ab, type SitemapUrlEntry as ac, type SitemapValidationResult as ad, type SplitSitemapOptions as ae, type SplitSitemapResult as af, type StatusCode as ag, type UaDeviceType as ah, type UserAgentInfo as ai, type VaryHeaderEntry as aj, type VaryHeaderResult as ak, type XContentTypeOptionsHeader as al, type XContentTypeOptionsParseResult as am, X_CONTENT_TYPE_OPTIONS_HEADER as an, analyzeEmailHeaders as ao, assessContentTypeRisk as ap, buildCacheControl as aq, buildClientHints as ar, buildContentDisposition as as, buildDnsQueryUrl as at, buildGeoUrl as au, buildLinkHeader as av, buildMapUrl as aw, buildPermissionsPolicy as ax, buildRangeHeader as ay, buildReferrerPolicy as az, type CacheControlOptions as b, searchHeaders as b0, searchStatusCodes as b1, splitSitemap as b2, statusCodeToText as b3, typeNumberToLabel as b4, validateDomain as b5, validateHeaderName as b6, validateHeaderValue as b7, validateManifest as b8, validateRobotsTxt as b9, validateSitemap as ba, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type ContentTypeRiskResult as l, type ContentTypeSniffRisk as m, network as n, type CookieAttributes as o, type CookieCheckResult as p, type DnsRecord as q, type DnsRecordType as r, type DnsResponse as s, type EmailHeaderField as t, type HarEntry as u, type HarParseResult as v, type HarSummary as w, type HeaderCategory as x, type HttpHeader as y, type Ipv6ParseResult as z };
914
+ export { type RangeEntryInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HttpHeader as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type Ipv6ParseResult as J, type LinkHeaderEntry as K, LINK_REL_VALUES as L, type LinkHeaderEntryInput as M, type LinkHeaderResult as N, type LinkRel as O, type ManifestIconInfo as P, type ManifestIssue as Q, type ManifestValidationResult as R, PERMISSIONS_POLICY_FEATURES as S, type ParsedClientHint as T, type ParsedDnsResult as U, type ParsedGeoResult as V, type PermissionsPolicyDirective as W, type PermissionsPolicyFeatureInput as X, type PermissionsPolicyResult as Y, REFERRER_POLICY_VALUES as Z, type RangeEntry as _, type AcceptLanguageResult as a, parseIpv6Address as a$, type RangeHeaderResult as a0, type ReceivedHop as a1, type ReferrerPolicyEntry as a2, type ReferrerPolicyResult as a3, type ReferrerPolicyValue as a4, type RobotsGroup as a5, type RobotsIssue as a6, type RobotsRule as a7, type RobotsValidationResult as a8, STATUS_CODES as a9, buildPermissionsPolicy as aA, buildRangeHeader as aB, buildReferrerPolicy as aC, buildVaryHeader as aD, buildXContentTypeOptionsHeader as aE, checkSetCookieHeader as aF, countryCodeToFlag as aG, formatCoordinates as aH, formatTtl as aI, getByCategory as aJ, getHeader as aK, getHeadersByCategory as aL, getStatusByCategory as aM, getStatusCode as aN, isClientError as aO, isServerError as aP, isSuccess as aQ, isValidIp as aR, isValidIpv4 as aS, isValidIpv6 as aT, parseAcceptLanguage as aU, parseClientHintHeaders as aV, parseContentDisposition as aW, parseContentRangeHeader as aX, parseDnsResponse as aY, parseGeoResponse as aZ, parseHar as a_, type SameSiteValue as aa, type SitemapIndexEntry as ab, type SitemapIssue as ac, type SitemapSplitFile as ad, type SitemapUrlEntry as ae, type SitemapValidationResult as af, type SplitSitemapOptions as ag, type SplitSitemapResult as ah, type StatusCode as ai, type UaDeviceType as aj, type UserAgentInfo as ak, type VaryHeaderEntry as al, type VaryHeaderResult as am, type XContentTypeOptionsHeader as an, type XContentTypeOptionsParseResult 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, buildLinkHeader as ay, buildMapUrl as az, type AuthResultEntry as b, parsePermissionsPolicy as b0, parseUserAgent as b1, parseVaryHeader as b2, parseXContentTypeOptionsHeader as b3, searchHeaders as b4, searchStatusCodes as b5, splitSitemap as b6, statusCodeToText as b7, typeNumberToLabel as b8, validateDomain as b9, validateHeaderName as ba, validateHeaderValue as bb, validateManifest as bc, validateRobotsTxt as bd, validateSitemap as be, 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 ContentDispositionBuildOptions as j, type ContentDispositionBuildResult as k, type ContentDispositionParseResult as l, type ContentRangeResult as m, network as n, type ContentTypeRiskResult as o, type ContentTypeSniffRisk as p, type CookieAttributes as q, type CookieCheckResult as r, type DnsRecord as s, type DnsRecordType as t, type DnsResponse as u, type EmailHeaderField as v, type HarEntry as w, type HarParseResult as x, type HarSummary as y, type HeaderCategory as z };
@@ -22,6 +22,7 @@
22
22
  * - vary-header-builder: buildVaryHeader, parseVaryHeader
23
23
  * - permissions-policy-builder: buildPermissionsPolicy, parsePermissionsPolicy
24
24
  * - x-content-type-options-builder: buildXContentTypeOptionsHeader, parseXContentTypeOptionsHeader, assessContentTypeRisk
25
+ * - accept-language-parser: parseAcceptLanguage, buildAcceptLanguage
25
26
  */
26
27
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
27
28
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -743,7 +744,39 @@ interface ContentTypeRiskResult {
743
744
  declare function assessContentTypeRisk(contentType: string): ContentTypeRiskResult | {
744
745
  error: string;
745
746
  };
747
+ interface AcceptLanguageEntry {
748
+ locale: string;
749
+ quality: number;
750
+ }
751
+ interface AcceptLanguageResult {
752
+ header: string;
753
+ headerValue: string;
754
+ entries: AcceptLanguageEntry[];
755
+ }
756
+ /**
757
+ * Build an `Accept-Language` request-header value from a list of locale/
758
+ * quality pairs, sorting by descending quality (ties keep their original
759
+ * order) and omitting `;q=1` for the default weight, per RFC 9110 section
760
+ * 12.5.4.
761
+ */
762
+ declare function buildAcceptLanguage(locales: {
763
+ locale: string;
764
+ quality?: number;
765
+ }[]): AcceptLanguageResult | {
766
+ error: string;
767
+ };
768
+ /**
769
+ * Parse an existing `Accept-Language` header value (with or without a
770
+ * leading `Accept-Language:` label) into its ranked locale/quality pairs,
771
+ * sorted by descending quality per RFC 9110 section 12.5.4 (a missing
772
+ * `;q=` defaults to 1).
773
+ */
774
+ declare function parseAcceptLanguage(raw: string): AcceptLanguageResult | {
775
+ error: string;
776
+ };
746
777
 
778
+ type network_AcceptLanguageEntry = AcceptLanguageEntry;
779
+ type network_AcceptLanguageResult = AcceptLanguageResult;
747
780
  type network_AuthResultEntry = AuthResultEntry;
748
781
  type network_BuildRangeHeaderOptions = BuildRangeHeaderOptions;
749
782
  declare const network_CLIENT_HINTS: typeof CLIENT_HINTS;
@@ -823,6 +856,7 @@ type network_XContentTypeOptionsParseResult = XContentTypeOptionsParseResult;
823
856
  declare const network_X_CONTENT_TYPE_OPTIONS_HEADER: typeof X_CONTENT_TYPE_OPTIONS_HEADER;
824
857
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
825
858
  declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
859
+ declare const network_buildAcceptLanguage: typeof buildAcceptLanguage;
826
860
  declare const network_buildCacheControl: typeof buildCacheControl;
827
861
  declare const network_buildClientHints: typeof buildClientHints;
828
862
  declare const network_buildContentDisposition: typeof buildContentDisposition;
@@ -850,6 +884,7 @@ declare const network_isSuccess: typeof isSuccess;
850
884
  declare const network_isValidIp: typeof isValidIp;
851
885
  declare const network_isValidIpv4: typeof isValidIpv4;
852
886
  declare const network_isValidIpv6: typeof isValidIpv6;
887
+ declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
853
888
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
854
889
  declare const network_parseContentDisposition: typeof parseContentDisposition;
855
890
  declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
@@ -873,7 +908,7 @@ declare const network_validateManifest: typeof validateManifest;
873
908
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
874
909
  declare const network_validateSitemap: typeof validateSitemap;
875
910
  declare namespace network {
876
- export { 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_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, 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_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, 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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
911
+ 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_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, 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_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, 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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, 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_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_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_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
877
912
  }
878
913
 
879
- export { type ReceivedHop as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderEntry as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkHeaderEntryInput as J, type LinkHeaderResult as K, LINK_REL_VALUES as L, type LinkRel as M, type ManifestIconInfo as N, type ManifestIssue as O, type ManifestValidationResult as P, PERMISSIONS_POLICY_FEATURES as Q, type ParsedClientHint as R, type ParsedDnsResult as S, type ParsedGeoResult as T, type PermissionsPolicyDirective as U, type PermissionsPolicyFeatureInput as V, type PermissionsPolicyResult as W, REFERRER_POLICY_VALUES as X, type RangeEntry as Y, type RangeEntryInput as Z, type RangeHeaderResult as _, type CacheControlDirective as a, parseXContentTypeOptionsHeader as a$, type ReferrerPolicyEntry as a0, type ReferrerPolicyResult as a1, type ReferrerPolicyValue as a2, type RobotsGroup as a3, type RobotsIssue as a4, type RobotsRule as a5, type RobotsValidationResult as a6, STATUS_CODES as a7, type SameSiteValue as a8, type SitemapIndexEntry as a9, buildVaryHeader as aA, buildXContentTypeOptionsHeader as aB, checkSetCookieHeader as aC, countryCodeToFlag as aD, formatCoordinates as aE, formatTtl as aF, getByCategory as aG, getHeader as aH, getHeadersByCategory as aI, getStatusByCategory as aJ, getStatusCode as aK, isClientError as aL, isServerError as aM, isSuccess as aN, isValidIp as aO, isValidIpv4 as aP, isValidIpv6 as aQ, parseClientHintHeaders as aR, parseContentDisposition as aS, parseContentRangeHeader as aT, parseDnsResponse as aU, parseGeoResponse as aV, parseHar as aW, parseIpv6Address as aX, parsePermissionsPolicy as aY, parseUserAgent as aZ, parseVaryHeader as a_, type SitemapIssue as aa, type SitemapSplitFile as ab, type SitemapUrlEntry as ac, type SitemapValidationResult as ad, type SplitSitemapOptions as ae, type SplitSitemapResult as af, type StatusCode as ag, type UaDeviceType as ah, type UserAgentInfo as ai, type VaryHeaderEntry as aj, type VaryHeaderResult as ak, type XContentTypeOptionsHeader as al, type XContentTypeOptionsParseResult as am, X_CONTENT_TYPE_OPTIONS_HEADER as an, analyzeEmailHeaders as ao, assessContentTypeRisk as ap, buildCacheControl as aq, buildClientHints as ar, buildContentDisposition as as, buildDnsQueryUrl as at, buildGeoUrl as au, buildLinkHeader as av, buildMapUrl as aw, buildPermissionsPolicy as ax, buildRangeHeader as ay, buildReferrerPolicy as az, type CacheControlOptions as b, searchHeaders as b0, searchStatusCodes as b1, splitSitemap as b2, statusCodeToText as b3, typeNumberToLabel as b4, validateDomain as b5, validateHeaderName as b6, validateHeaderValue as b7, validateManifest as b8, validateRobotsTxt as b9, validateSitemap as ba, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type ContentTypeRiskResult as l, type ContentTypeSniffRisk as m, network as n, type CookieAttributes as o, type CookieCheckResult as p, type DnsRecord as q, type DnsRecordType as r, type DnsResponse as s, type EmailHeaderField as t, type HarEntry as u, type HarParseResult as v, type HarSummary as w, type HeaderCategory as x, type HttpHeader as y, type Ipv6ParseResult as z };
914
+ export { type RangeEntryInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HttpHeader as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type Ipv6ParseResult as J, type LinkHeaderEntry as K, LINK_REL_VALUES as L, type LinkHeaderEntryInput as M, type LinkHeaderResult as N, type LinkRel as O, type ManifestIconInfo as P, type ManifestIssue as Q, type ManifestValidationResult as R, PERMISSIONS_POLICY_FEATURES as S, type ParsedClientHint as T, type ParsedDnsResult as U, type ParsedGeoResult as V, type PermissionsPolicyDirective as W, type PermissionsPolicyFeatureInput as X, type PermissionsPolicyResult as Y, REFERRER_POLICY_VALUES as Z, type RangeEntry as _, type AcceptLanguageResult as a, parseIpv6Address as a$, type RangeHeaderResult as a0, type ReceivedHop as a1, type ReferrerPolicyEntry as a2, type ReferrerPolicyResult as a3, type ReferrerPolicyValue as a4, type RobotsGroup as a5, type RobotsIssue as a6, type RobotsRule as a7, type RobotsValidationResult as a8, STATUS_CODES as a9, buildPermissionsPolicy as aA, buildRangeHeader as aB, buildReferrerPolicy as aC, buildVaryHeader as aD, buildXContentTypeOptionsHeader as aE, checkSetCookieHeader as aF, countryCodeToFlag as aG, formatCoordinates as aH, formatTtl as aI, getByCategory as aJ, getHeader as aK, getHeadersByCategory as aL, getStatusByCategory as aM, getStatusCode as aN, isClientError as aO, isServerError as aP, isSuccess as aQ, isValidIp as aR, isValidIpv4 as aS, isValidIpv6 as aT, parseAcceptLanguage as aU, parseClientHintHeaders as aV, parseContentDisposition as aW, parseContentRangeHeader as aX, parseDnsResponse as aY, parseGeoResponse as aZ, parseHar as a_, type SameSiteValue as aa, type SitemapIndexEntry as ab, type SitemapIssue as ac, type SitemapSplitFile as ad, type SitemapUrlEntry as ae, type SitemapValidationResult as af, type SplitSitemapOptions as ag, type SplitSitemapResult as ah, type StatusCode as ai, type UaDeviceType as aj, type UserAgentInfo as ak, type VaryHeaderEntry as al, type VaryHeaderResult as am, type XContentTypeOptionsHeader as an, type XContentTypeOptionsParseResult 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, buildLinkHeader as ay, buildMapUrl as az, type AuthResultEntry as b, parsePermissionsPolicy as b0, parseUserAgent as b1, parseVaryHeader as b2, parseXContentTypeOptionsHeader as b3, searchHeaders as b4, searchStatusCodes as b5, splitSitemap as b6, statusCodeToText as b7, typeNumberToLabel as b8, validateDomain as b9, validateHeaderName as ba, validateHeaderValue as bb, validateManifest as bc, validateRobotsTxt as bd, validateSitemap as be, 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 ContentDispositionBuildOptions as j, type ContentDispositionBuildResult as k, type ContentDispositionParseResult as l, type ContentRangeResult as m, network as n, type ContentTypeRiskResult as o, type ContentTypeSniffRisk as p, type CookieAttributes as q, type CookieCheckResult as r, type DnsRecord as s, type DnsRecordType as t, type DnsResponse as u, type EmailHeaderField as v, type HarEntry as w, type HarParseResult as x, type HarSummary as y, type HeaderCategory as z };
@@ -600,6 +600,20 @@ async function generateQrDataUrl(text, options) {
600
600
  }
601
601
  });
602
602
  }
603
+ function generateCspNonce(byteLength = 16) {
604
+ if (!Number.isInteger(byteLength) || byteLength < 8 || byteLength > 64) {
605
+ return { error: "Byte length must be a whole number between 8 and 64" };
606
+ }
607
+ const nonce = crypto.randomBytes(byteLength).toString("base64");
608
+ return {
609
+ nonce,
610
+ byteLength,
611
+ scriptSrcDirective: `script-src 'nonce-${nonce}'`,
612
+ styleSrcDirective: `style-src 'nonce-${nonce}'`,
613
+ scriptTag: `<script nonce="${nonce}">`,
614
+ styleTag: `<style nonce="${nonce}">`
615
+ };
616
+ }
603
617
 
604
618
  exports.AMBIGUOUS_CHARS = AMBIGUOUS_CHARS;
605
619
  exports.DATA_TYPES = DATA_TYPES;
@@ -612,6 +626,7 @@ exports.estimatePasswordEntropy = estimatePasswordEntropy;
612
626
  exports.generateBulk = generateBulk;
613
627
  exports.generateBulkPasswords = generateBulkPasswords;
614
628
  exports.generateBulkUlids = generateBulkUlids;
629
+ exports.generateCspNonce = generateCspNonce;
615
630
  exports.generateData = generateData;
616
631
  exports.generatePassword = generatePassword;
617
632
  exports.generateQrDataUrl = generateQrDataUrl;
@@ -1 +1 @@
1
- export { A as AMBIGUOUS_CHARS, D as DATA_TYPES, a as DEFAULT_OPTIONS, b as DEFAULT_QR_OPTIONS, c as DataType, G as GeneratedUuid, P as PasswordCharsetInfo, d as PasswordCrackTimeEstimate, e as PasswordEntropyResult, f as PasswordEntropyStrength, h as PasswordOptions, Q as QrErrorLevel, i as QrOptions, j as QrOutputFormat, R as RandomConfig, S as SYMBOL_CHARS, U as ULID_REGEX, k as UuidVersion, l as checkStrength, m as estimatePasswordEntropy, n as generateBulk, o as generateBulkPasswords, p as generateBulkUlids, q as generateData, r as generatePassword, s as generateQrDataUrl, t as generateQrSvg, u as generateSingle, v as generateUlid, w as generateUuid, x as generateV4, y as generateV7, z as isValidUlid, B as isValidUuid, C as parseUlid, E as parseUuidVersion } from '../generators-Du8cBesn.cjs';
1
+ export { A as AMBIGUOUS_CHARS, C as CspNonceResult, D as DATA_TYPES, a as DEFAULT_OPTIONS, b as DEFAULT_QR_OPTIONS, c as DataType, G as GeneratedUuid, P as PasswordCharsetInfo, d as PasswordCrackTimeEstimate, e as PasswordEntropyResult, f as PasswordEntropyStrength, h as PasswordOptions, Q as QrErrorLevel, i as QrOptions, j as QrOutputFormat, R as RandomConfig, S as SYMBOL_CHARS, U as ULID_REGEX, k as UuidVersion, l as checkStrength, m as estimatePasswordEntropy, n as generateBulk, o as generateBulkPasswords, p as generateBulkUlids, q as generateCspNonce, r as generateData, s as generatePassword, t as generateQrDataUrl, u as generateQrSvg, v as generateSingle, w as generateUlid, x as generateUuid, y as generateV4, z as generateV7, B as isValidUlid, E as isValidUuid, F as parseUlid, H as parseUuidVersion } from '../generators-DAXXrMvG.cjs';
@@ -1 +1 @@
1
- export { A as AMBIGUOUS_CHARS, D as DATA_TYPES, a as DEFAULT_OPTIONS, b as DEFAULT_QR_OPTIONS, c as DataType, G as GeneratedUuid, P as PasswordCharsetInfo, d as PasswordCrackTimeEstimate, e as PasswordEntropyResult, f as PasswordEntropyStrength, h as PasswordOptions, Q as QrErrorLevel, i as QrOptions, j as QrOutputFormat, R as RandomConfig, S as SYMBOL_CHARS, U as ULID_REGEX, k as UuidVersion, l as checkStrength, m as estimatePasswordEntropy, n as generateBulk, o as generateBulkPasswords, p as generateBulkUlids, q as generateData, r as generatePassword, s as generateQrDataUrl, t as generateQrSvg, u as generateSingle, v as generateUlid, w as generateUuid, x as generateV4, y as generateV7, z as isValidUlid, B as isValidUuid, C as parseUlid, E as parseUuidVersion } from '../generators-Du8cBesn.js';
1
+ export { A as AMBIGUOUS_CHARS, C as CspNonceResult, D as DATA_TYPES, a as DEFAULT_OPTIONS, b as DEFAULT_QR_OPTIONS, c as DataType, G as GeneratedUuid, P as PasswordCharsetInfo, d as PasswordCrackTimeEstimate, e as PasswordEntropyResult, f as PasswordEntropyStrength, h as PasswordOptions, Q as QrErrorLevel, i as QrOptions, j as QrOutputFormat, R as RandomConfig, S as SYMBOL_CHARS, U as ULID_REGEX, k as UuidVersion, l as checkStrength, m as estimatePasswordEntropy, n as generateBulk, o as generateBulkPasswords, p as generateBulkUlids, q as generateCspNonce, r as generateData, s as generatePassword, t as generateQrDataUrl, u as generateQrSvg, v as generateSingle, w as generateUlid, x as generateUuid, y as generateV4, z as generateV7, B as isValidUlid, E as isValidUuid, F as parseUlid, H as parseUuidVersion } from '../generators-DAXXrMvG.js';
@@ -1,2 +1,2 @@
1
- export { AMBIGUOUS_CHARS, DATA_TYPES, DEFAULT_OPTIONS, DEFAULT_QR_OPTIONS, SYMBOL_CHARS, ULID_REGEX, checkStrength, estimatePasswordEntropy, generateBulk, generateBulkPasswords, generateBulkUlids, generateData, generatePassword, generateQrDataUrl, generateQrSvg, generateSingle, generateUlid, generateUuid, generateV4, generateV7, isValidUlid, isValidUuid, parseUlid, parseUuidVersion } from '../chunk-3TYWIX3B.js';
1
+ export { AMBIGUOUS_CHARS, DATA_TYPES, DEFAULT_OPTIONS, DEFAULT_QR_OPTIONS, SYMBOL_CHARS, ULID_REGEX, checkStrength, estimatePasswordEntropy, generateBulk, generateBulkPasswords, generateBulkUlids, generateCspNonce, generateData, generatePassword, generateQrDataUrl, generateQrSvg, generateSingle, generateUlid, generateUuid, generateV4, generateV7, isValidUlid, isValidUuid, parseUlid, parseUuidVersion } from '../chunk-422ICOZX.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -1392,7 +1392,39 @@ function jsonSchemaToTypescript(schemaJson, options) {
1392
1392
  }
1393
1393
  return parts.join("\n\n");
1394
1394
  }
1395
+ function _isMergePatchObject(value) {
1396
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1397
+ }
1398
+ function mergeJsonPatch(target, patch) {
1399
+ if (!_isMergePatchObject(patch)) return patch;
1400
+ const result = _isMergePatchObject(target) ? { ...target } : {};
1401
+ for (const key of Object.keys(patch)) {
1402
+ const value = patch[key];
1403
+ if (value === null) {
1404
+ delete result[key];
1405
+ } else {
1406
+ result[key] = mergeJsonPatch(result[key], value);
1407
+ }
1408
+ }
1409
+ return result;
1410
+ }
1411
+ function applyJsonMergePatch(targetJson, patchJson) {
1412
+ let target;
1413
+ try {
1414
+ target = JSON.parse(targetJson);
1415
+ } catch {
1416
+ return { error: "Target is not valid JSON" };
1417
+ }
1418
+ let patch;
1419
+ try {
1420
+ patch = JSON.parse(patchJson);
1421
+ } catch {
1422
+ return { error: "Patch is not valid JSON" };
1423
+ }
1424
+ return { result: mergeJsonPatch(target, patch) };
1425
+ }
1395
1426
 
1427
+ exports.applyJsonMergePatch = applyJsonMergePatch;
1396
1428
  exports.csvToJson = csvToJson;
1397
1429
  exports.detectFormat = detectFormat;
1398
1430
  exports.diffJson = diffJson;
@@ -1411,6 +1443,7 @@ exports.jsonToPython = jsonToPython;
1411
1443
  exports.jsonToTypescript = jsonToTypescript;
1412
1444
  exports.jsonToYaml = jsonToYaml;
1413
1445
  exports.jsonToZod = jsonToZod;
1446
+ exports.mergeJsonPatch = mergeJsonPatch;
1414
1447
  exports.minifyJson = minifyJson;
1415
1448
  exports.parseJson = parseJson;
1416
1449
  exports.parseStructs = parseStructs;
@@ -1 +1 @@
1
- export { C as ConvertOptions, a as CsvOptions, D as DiffNode, b as DiffType, G as GoField, c as GoStruct, J as JsonDiffResult, d as JsonParseResult, e as JsonPathResult, f as JsonPointerResult, g as JsonSchemaLike, h as JsonSchemaToTsOptions, P as ParseStatus, i as PythonClass, k as PythonField, l as PythonMode, V as ValidationError, m as ValidationResult, Z as ZodOptions, n as csvToJson, o as detectFormat, p as diffJson, q as evaluateJsonPath, r as formatDiffLine, s as formatJson, t as generateExample, u as getJsonStats, v as inferGoType, w as inferPythonType, x as inferType, y as jsonSchemaToTypescript, z as jsonToCsv, A as jsonToGo, B as jsonToPython, E as jsonToTypescript, F as jsonToYaml, H as jsonToZod, I as minifyJson, K as parseJson, L as parseStructs, M as resolveJsonPointer, N as toPascalCase, O as toSnakeCase, Q as validateJson, R as validateJsonPath, S as validateJsonString, T as yamlToJson } from '../json-Ta9JykSB.cjs';
1
+ export { C as ConvertOptions, a as CsvOptions, D as DiffNode, b as DiffType, G as GoField, c as GoStruct, J as JsonDiffResult, d as JsonParseResult, e as JsonPathResult, f as JsonPointerResult, g as JsonSchemaLike, h as JsonSchemaToTsOptions, M as MergePatchResult, P as ParseStatus, i as PythonClass, k as PythonField, l as PythonMode, V as ValidationError, m as ValidationResult, Z as ZodOptions, n as applyJsonMergePatch, o as csvToJson, p as detectFormat, q as diffJson, r as evaluateJsonPath, s as formatDiffLine, t as formatJson, u as generateExample, v as getJsonStats, w as inferGoType, x as inferPythonType, y as inferType, z as jsonSchemaToTypescript, A as jsonToCsv, B as jsonToGo, E as jsonToPython, F as jsonToTypescript, H as jsonToYaml, I as jsonToZod, K as mergeJsonPatch, L as minifyJson, N as parseJson, O as parseStructs, Q as resolveJsonPointer, R as toPascalCase, S as toSnakeCase, T as validateJson, U as validateJsonPath, W as validateJsonString, X as yamlToJson } from '../json-CaiYsGDQ.cjs';
@@ -1 +1 @@
1
- export { C as ConvertOptions, a as CsvOptions, D as DiffNode, b as DiffType, G as GoField, c as GoStruct, J as JsonDiffResult, d as JsonParseResult, e as JsonPathResult, f as JsonPointerResult, g as JsonSchemaLike, h as JsonSchemaToTsOptions, P as ParseStatus, i as PythonClass, k as PythonField, l as PythonMode, V as ValidationError, m as ValidationResult, Z as ZodOptions, n as csvToJson, o as detectFormat, p as diffJson, q as evaluateJsonPath, r as formatDiffLine, s as formatJson, t as generateExample, u as getJsonStats, v as inferGoType, w as inferPythonType, x as inferType, y as jsonSchemaToTypescript, z as jsonToCsv, A as jsonToGo, B as jsonToPython, E as jsonToTypescript, F as jsonToYaml, H as jsonToZod, I as minifyJson, K as parseJson, L as parseStructs, M as resolveJsonPointer, N as toPascalCase, O as toSnakeCase, Q as validateJson, R as validateJsonPath, S as validateJsonString, T as yamlToJson } from '../json-Ta9JykSB.js';
1
+ export { C as ConvertOptions, a as CsvOptions, D as DiffNode, b as DiffType, G as GoField, c as GoStruct, J as JsonDiffResult, d as JsonParseResult, e as JsonPathResult, f as JsonPointerResult, g as JsonSchemaLike, h as JsonSchemaToTsOptions, M as MergePatchResult, P as ParseStatus, i as PythonClass, k as PythonField, l as PythonMode, V as ValidationError, m as ValidationResult, Z as ZodOptions, n as applyJsonMergePatch, o as csvToJson, p as detectFormat, q as diffJson, r as evaluateJsonPath, s as formatDiffLine, t as formatJson, u as generateExample, v as getJsonStats, w as inferGoType, x as inferPythonType, y as inferType, z as jsonSchemaToTypescript, A as jsonToCsv, B as jsonToGo, E as jsonToPython, F as jsonToTypescript, H as jsonToYaml, I as jsonToZod, K as mergeJsonPatch, L as minifyJson, N as parseJson, O as parseStructs, Q as resolveJsonPointer, R as toPascalCase, S as toSnakeCase, T as validateJson, U as validateJsonPath, W as validateJsonString, X as yamlToJson } from '../json-CaiYsGDQ.js';
@@ -1,2 +1,2 @@
1
- export { csvToJson, detectFormat, diffJson, evaluateJsonPath, formatDiffLine, formatJson, generateExample, getJsonStats, inferGoType, inferPythonType, inferType, jsonSchemaToTypescript, jsonToCsv, jsonToGo, jsonToPython, jsonToTypescript, jsonToYaml, jsonToZod, minifyJson, parseJson, parseStructs, resolveJsonPointer, toPascalCase, toSnakeCase, validateJson, validateJsonPath, validateJsonString, yamlToJson } from '../chunk-WVEKRKGU.js';
1
+ export { applyJsonMergePatch, csvToJson, detectFormat, diffJson, evaluateJsonPath, formatDiffLine, formatJson, generateExample, getJsonStats, inferGoType, inferPythonType, inferType, jsonSchemaToTypescript, jsonToCsv, jsonToGo, jsonToPython, jsonToTypescript, jsonToYaml, jsonToZod, mergeJsonPatch, minifyJson, parseJson, parseStructs, resolveJsonPointer, toPascalCase, toSnakeCase, validateJson, validateJsonPath, validateJsonString, yamlToJson } from '../chunk-34C6GXCC.js';
2
2
  import '../chunk-MLKGABMK.js';