@utilix-tech/sdk 0.4.0 → 0.6.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @utilix-tech/sdk
2
2
 
3
- **140+ developer utility functions for Node.js: runs locally, no API key required.**
3
+ **524 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)
@@ -285,7 +285,7 @@ parseHar(har);
285
285
  ### `/api`: cURL, JWT, CORS, HTTP
286
286
 
287
287
  ```ts
288
- import { buildCurl, parseCurlCommand, decodeJwt, signJwt,
288
+ import { buildCurl, parseCurlCommand, decodeJwt, signJwt, parseJwks,
289
289
  generateCors, generateCspHeader } from "@utilix-tech/sdk/api";
290
290
 
291
291
  buildCurl({
@@ -305,6 +305,10 @@ parseCurlCommand('curl -X GET https://api.example.com -H "Authorization: Bearer
305
305
  decodeJwt("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...");
306
306
  // { header: {...}, payload: {...}, isExpired: false, expiresIn: "2h" }
307
307
 
308
+ // JWKS: parse a key set (or a single bare JWK) — inspection only, no verification
309
+ parseJwks('{"keys":[{"kty":"RSA","use":"sig","kid":"1","n":"...","e":"AQAB"}]}');
310
+ // { ok: true, keys: [{ kty: "RSA", kid: "1", keySize: 2048, ... }], count: 1, duplicateKids: [] }
311
+
308
312
  // Generate CORS headers
309
313
  generateCors({ origins: ["https://myapp.com"], methods: ["GET", "POST"] });
310
314
 
@@ -412,19 +416,31 @@ analyzeString("café"); // { length: 4, codePoints: [...], ... }
412
416
 
413
417
  ---
414
418
 
415
- ### `/media`: Image Header Parsing
419
+ ### `/media`: Image Header Parsing, EXIF & PDF Metadata
416
420
 
417
421
  ```ts
418
- import { readImageInfo } from "@utilix-tech/sdk/media";
422
+ import { readImageInfo, readExifData, readPdfMetadata } from "@utilix-tech/sdk/media";
419
423
 
420
424
  // Reads format, dimensions, bit depth, and alpha channel straight from
421
425
  // file bytes: no decoding, no canvas, no image library.
422
426
  const bytes = await fs.promises.readFile("photo.png");
423
427
  readImageInfo(new Uint8Array(bytes));
424
428
  // { format: "png", width: 1920, height: 1080, bitDepth: 8, colorType: "rgba", hasAlpha: true }
429
+
430
+ // Reads camera make/model, orientation, timestamps, exposure settings, and
431
+ // GPS coordinates directly from a JPEG's EXIF data. JPEG only.
432
+ const jpegBytes = await fs.promises.readFile("photo.jpg");
433
+ readExifData(new Uint8Array(jpegBytes));
434
+ // { make: "Canon", model: "EOS R5", orientation: 1, exposureTime: "1/125", fNumber: 2.8, ... }
435
+
436
+ // Reads title, author, dates, page count, and encryption flag from a PDF's
437
+ // trailer/Info dictionary: no pdf.js or other PDF library required.
438
+ const pdfBytes = await fs.promises.readFile("report.pdf");
439
+ readPdfMetadata(new Uint8Array(pdfBytes));
440
+ // { version: "1.7", pageCount: 12, title: "Q3 Report", author: "Jane Doe", ... }
425
441
  ```
426
442
 
427
- Supports PNG, JPEG, GIF, WebP, and BMP.
443
+ `readImageInfo` supports PNG, JPEG, GIF, WebP, and BMP. `readExifData` supports JPEG only.
428
444
 
429
445
  ---
430
446
 
@@ -441,13 +457,13 @@ Supports PNG, JPEG, GIF, WebP, and BMP.
441
457
  | `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
442
458
  | `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format |
443
459
  | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing |
444
- | `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, CORS headers, CSP header |
460
+ | `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header |
445
461
  | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format |
446
462
  | `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
447
463
  | `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
448
464
  | `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
449
465
  | `@utilix-tech/sdk/ai_agent` | Token estimate/trim, chunk text, extract URLs/JSON/keywords, sanitize HTML, flatten/merge JSON, dedupe lines, validate schema, PII/secret/injection detect |
450
- | `@utilix-tech/sdk/media` | Image format & dimension reading from raw bytes: PNG, JPEG, GIF, WebP, BMP |
466
+ | `@utilix-tech/sdk/media` | Image format & dimension reading from raw bytes (PNG, JPEG, GIF, WebP, BMP); PDF metadata reading |
451
467
 
452
468
  ---
453
469
 
@@ -4,6 +4,7 @@
4
4
  * - curl-builder : buildCurl, buildCurlMultiline, parseCurl
5
5
  * - curl-to-code : parseCurlCommand, convertToCode
6
6
  * - jwt-decoder : decodeJwt, formatJwtJson
7
+ * - jwk-viewer : parseJwks
7
8
  * - jwt-signer : base64urlEncode, base64urlDecode, signJwt
8
9
  * - cors-builder : validateCorsConfig, generateCors
9
10
  * - csp-builder : generateCspHeader, generateFullHeader, parseCspHeader, validateCspConfig
@@ -78,6 +79,33 @@ interface JwtDecodeError {
78
79
  type JwtResult = JwtDecodeResult | JwtDecodeError;
79
80
  declare function decodeJwt(token: string): JwtResult;
80
81
  declare function formatJwtJson(obj: Record<string, unknown>): string;
82
+ interface JwkSummary {
83
+ kty: string;
84
+ use?: string;
85
+ keyOps?: string[];
86
+ alg?: string;
87
+ kid?: string;
88
+ keySize: number | null;
89
+ curve?: string;
90
+ raw: Record<string, unknown>;
91
+ }
92
+ interface JwksResult {
93
+ ok: true;
94
+ keys: JwkSummary[];
95
+ count: number;
96
+ duplicateKids: string[];
97
+ }
98
+ interface JwksError {
99
+ ok: false;
100
+ error: string;
101
+ }
102
+ type JwksParseResult = JwksResult | JwksError;
103
+ /**
104
+ * Parse a JSON Web Key Set (or a single bare JWK) and summarize each key's
105
+ * type, use, algorithm, key ID, and approximate size. Does not verify or
106
+ * use the keys cryptographically: this is inspection only.
107
+ */
108
+ declare function parseJwks(input: string): JwksParseResult;
81
109
  type JwtAlgorithm = 'HS256' | 'HS384' | 'HS512';
82
110
  interface JwtSignOptions {
83
111
  algorithm?: JwtAlgorithm;
@@ -255,6 +283,10 @@ type api_FormatResult = FormatResult;
255
283
  declare const api_HTTP_METHODS: typeof HTTP_METHODS;
256
284
  type api_Header = Header;
257
285
  type api_HttpMethod = HttpMethod;
286
+ type api_JwkSummary = JwkSummary;
287
+ type api_JwksError = JwksError;
288
+ type api_JwksParseResult = JwksParseResult;
289
+ type api_JwksResult = JwksResult;
258
290
  type api_JwtAlgorithm = JwtAlgorithm;
259
291
  type api_JwtDecodeError = JwtDecodeError;
260
292
  type api_JwtDecodeResult = JwtDecodeResult;
@@ -294,6 +326,7 @@ declare const api_normalizeUrl: typeof normalizeUrl;
294
326
  declare const api_parseCspHeader: typeof parseCspHeader;
295
327
  declare const api_parseCurl: typeof parseCurl;
296
328
  declare const api_parseCurlCommand: typeof parseCurlCommand;
329
+ declare const api_parseJwks: typeof parseJwks;
297
330
  declare const api_parseMetaTags: typeof parseMetaTags;
298
331
  declare const api_parseUrl: typeof parseUrl;
299
332
  declare const api_removeParam: typeof removeParam;
@@ -302,7 +335,7 @@ declare const api_validateCorsConfig: typeof validateCorsConfig;
302
335
  declare const api_validateCspConfig: typeof validateCspConfig;
303
336
  declare const api_validateOgTags: typeof validateOgTags;
304
337
  declare namespace api {
305
- export { api_COMMON_HEADERS as COMMON_HEADERS, api_COMMON_PRESETS as COMMON_PRESETS, api_CORS_COMMON_HEADERS as CORS_COMMON_HEADERS, type api_CorsConfig as CorsConfig, type api_CorsOutput as CorsOutput, type api_CspConfig as CspConfig, type api_CspDirective as CspDirective, type api_CspSource as CspSource, type api_CurlCommand as CurlCommand, type api_CurlConfig as CurlConfig, api_DEFAULT_CORS_CONFIG as DEFAULT_CORS_CONFIG, api_DIRECTIVE_DESCRIPTIONS as DIRECTIVE_DESCRIPTIONS, type api_DirectiveConfig as DirectiveConfig, type api_FormatResult as FormatResult, api_HTTP_METHODS as HTTP_METHODS, type api_Header as Header, type api_HttpMethod as HttpMethod, type api_JwtAlgorithm as JwtAlgorithm, type api_JwtDecodeError as JwtDecodeError, type api_JwtDecodeResult as JwtDecodeResult, type api_JwtExpiry as JwtExpiry, type api_JwtPart as JwtPart, type api_JwtResult as JwtResult, type api_JwtSignOptions as JwtSignOptions, type api_MetaTags as MetaTags, type api_OgTags as OgTags, type api_ParsedUrl as ParsedUrl, type api_ResponseFormat as ResponseFormat, api_SUPPORTED_LANGUAGES as SUPPORTED_LANGUAGES, type api_TargetLanguage as TargetLanguage, type api_TwitterTags as TwitterTags, api_addParam as addParam, api_base64urlDecode as base64urlDecode, api_base64urlEncode as base64urlEncode, api_buildCurl as buildCurl, api_buildCurlMultiline as buildCurlMultiline, api_buildUrl as buildUrl, api_convertToCode as convertToCode, api_decodeJwt as decodeJwt, api_decodeUrlComponent as decodeUrlComponent, api_detectFormat as detectFormat, api_encodeUrlComponent as encodeUrlComponent, api_extractJsonPaths as extractJsonPaths, api_formatJwtJson as formatJwtJson, api_formatResponse as formatResponse, api_generateCors as generateCors, api_generateCspHeader as generateCspHeader, api_generateFullHeader as generateFullHeader, api_generateMetaHtml as generateMetaHtml, api_getParam as getParam, api_getStats as getStats, api_isValidUrl as isValidUrl, api_normalizeUrl as normalizeUrl, api_parseCspHeader as parseCspHeader, api_parseCurl as parseCurl, api_parseCurlCommand as parseCurlCommand, api_parseMetaTags as parseMetaTags, api_parseUrl as parseUrl, api_removeParam as removeParam, api_signJwt as signJwt, api_validateCorsConfig as validateCorsConfig, api_validateCspConfig as validateCspConfig, api_validateOgTags as validateOgTags };
338
+ export { api_COMMON_HEADERS as COMMON_HEADERS, api_COMMON_PRESETS as COMMON_PRESETS, api_CORS_COMMON_HEADERS as CORS_COMMON_HEADERS, type api_CorsConfig as CorsConfig, type api_CorsOutput as CorsOutput, type api_CspConfig as CspConfig, type api_CspDirective as CspDirective, type api_CspSource as CspSource, type api_CurlCommand as CurlCommand, type api_CurlConfig as CurlConfig, api_DEFAULT_CORS_CONFIG as DEFAULT_CORS_CONFIG, api_DIRECTIVE_DESCRIPTIONS as DIRECTIVE_DESCRIPTIONS, type api_DirectiveConfig as DirectiveConfig, type api_FormatResult as FormatResult, api_HTTP_METHODS as HTTP_METHODS, type api_Header as Header, type api_HttpMethod as HttpMethod, type api_JwkSummary as JwkSummary, type api_JwksError as JwksError, type api_JwksParseResult as JwksParseResult, type api_JwksResult as JwksResult, type api_JwtAlgorithm as JwtAlgorithm, type api_JwtDecodeError as JwtDecodeError, type api_JwtDecodeResult as JwtDecodeResult, type api_JwtExpiry as JwtExpiry, type api_JwtPart as JwtPart, type api_JwtResult as JwtResult, type api_JwtSignOptions as JwtSignOptions, type api_MetaTags as MetaTags, type api_OgTags as OgTags, type api_ParsedUrl as ParsedUrl, type api_ResponseFormat as ResponseFormat, api_SUPPORTED_LANGUAGES as SUPPORTED_LANGUAGES, type api_TargetLanguage as TargetLanguage, type api_TwitterTags as TwitterTags, api_addParam as addParam, api_base64urlDecode as base64urlDecode, api_base64urlEncode as base64urlEncode, api_buildCurl as buildCurl, api_buildCurlMultiline as buildCurlMultiline, api_buildUrl as buildUrl, api_convertToCode as convertToCode, api_decodeJwt as decodeJwt, api_decodeUrlComponent as decodeUrlComponent, api_detectFormat as detectFormat, api_encodeUrlComponent as encodeUrlComponent, api_extractJsonPaths as extractJsonPaths, api_formatJwtJson as formatJwtJson, api_formatResponse as formatResponse, api_generateCors as generateCors, api_generateCspHeader as generateCspHeader, api_generateFullHeader as generateFullHeader, api_generateMetaHtml as generateMetaHtml, api_getParam as getParam, api_getStats as getStats, api_isValidUrl as isValidUrl, api_normalizeUrl as normalizeUrl, api_parseCspHeader as parseCspHeader, api_parseCurl as parseCurl, api_parseCurlCommand as parseCurlCommand, api_parseJwks as parseJwks, api_parseMetaTags as parseMetaTags, api_parseUrl as parseUrl, api_removeParam as removeParam, api_signJwt as signJwt, api_validateCorsConfig as validateCorsConfig, api_validateCspConfig as validateCspConfig, api_validateOgTags as validateOgTags };
306
339
  }
307
340
 
308
- export { normalizeUrl as $, buildUrl as A, convertToCode as B, COMMON_HEADERS as C, DEFAULT_CORS_CONFIG as D, decodeJwt as E, type FormatResult as F, decodeUrlComponent as G, HTTP_METHODS as H, detectFormat as I, type JwtAlgorithm as J, encodeUrlComponent as K, extractJsonPaths as L, type MetaTags as M, formatJwtJson as N, type OgTags as O, type ParsedUrl as P, formatResponse as Q, type ResponseFormat as R, SUPPORTED_LANGUAGES as S, type TargetLanguage as T, generateCors as U, generateCspHeader as V, generateFullHeader as W, generateMetaHtml as X, getParam as Y, getStats as Z, isValidUrl as _, api as a, parseCspHeader as a0, parseCurl as a1, parseCurlCommand as a2, parseMetaTags as a3, parseUrl as a4, removeParam as a5, signJwt as a6, validateCorsConfig as a7, validateCspConfig as a8, validateOgTags as a9, COMMON_PRESETS as b, CORS_COMMON_HEADERS as c, type CorsConfig as d, type CorsOutput as e, type CspConfig as f, type CspDirective as g, type CspSource as h, type CurlCommand as i, type CurlConfig as j, DIRECTIVE_DESCRIPTIONS as k, type DirectiveConfig as l, type Header as m, type HttpMethod as n, type JwtDecodeError as o, type JwtDecodeResult as p, type JwtExpiry as q, type JwtPart as r, type JwtResult as s, type JwtSignOptions as t, type TwitterTags as u, addParam as v, base64urlDecode as w, base64urlEncode as x, buildCurl as y, buildCurlMultiline as z };
341
+ export { generateMetaHtml as $, base64urlDecode as A, base64urlEncode as B, COMMON_HEADERS as C, DEFAULT_CORS_CONFIG as D, buildCurl as E, type FormatResult as F, buildCurlMultiline as G, HTTP_METHODS as H, buildUrl as I, type JwkSummary as J, convertToCode as K, decodeJwt as L, type MetaTags as M, decodeUrlComponent as N, type OgTags as O, type ParsedUrl as P, detectFormat as Q, type ResponseFormat as R, SUPPORTED_LANGUAGES as S, type TargetLanguage as T, encodeUrlComponent as U, extractJsonPaths as V, formatJwtJson as W, formatResponse as X, generateCors as Y, generateCspHeader as Z, generateFullHeader as _, api as a, getParam as a0, getStats as a1, isValidUrl as a2, normalizeUrl as a3, parseCspHeader as a4, parseCurl as a5, parseCurlCommand as a6, parseJwks as a7, parseMetaTags as a8, parseUrl as a9, removeParam as aa, signJwt as ab, validateCorsConfig as ac, validateCspConfig as ad, validateOgTags as ae, COMMON_PRESETS as b, CORS_COMMON_HEADERS as c, type CorsConfig as d, type CorsOutput as e, type CspConfig as f, type CspDirective as g, type CspSource as h, type CurlCommand as i, type CurlConfig as j, DIRECTIVE_DESCRIPTIONS as k, type DirectiveConfig as l, type Header as m, type HttpMethod as n, type JwksError as o, type JwksParseResult as p, type JwksResult as q, type JwtAlgorithm as r, type JwtDecodeError as s, type JwtDecodeResult as t, type JwtExpiry as u, type JwtPart as v, type JwtResult as w, type JwtSignOptions as x, type TwitterTags as y, addParam as z };
@@ -4,6 +4,7 @@
4
4
  * - curl-builder : buildCurl, buildCurlMultiline, parseCurl
5
5
  * - curl-to-code : parseCurlCommand, convertToCode
6
6
  * - jwt-decoder : decodeJwt, formatJwtJson
7
+ * - jwk-viewer : parseJwks
7
8
  * - jwt-signer : base64urlEncode, base64urlDecode, signJwt
8
9
  * - cors-builder : validateCorsConfig, generateCors
9
10
  * - csp-builder : generateCspHeader, generateFullHeader, parseCspHeader, validateCspConfig
@@ -78,6 +79,33 @@ interface JwtDecodeError {
78
79
  type JwtResult = JwtDecodeResult | JwtDecodeError;
79
80
  declare function decodeJwt(token: string): JwtResult;
80
81
  declare function formatJwtJson(obj: Record<string, unknown>): string;
82
+ interface JwkSummary {
83
+ kty: string;
84
+ use?: string;
85
+ keyOps?: string[];
86
+ alg?: string;
87
+ kid?: string;
88
+ keySize: number | null;
89
+ curve?: string;
90
+ raw: Record<string, unknown>;
91
+ }
92
+ interface JwksResult {
93
+ ok: true;
94
+ keys: JwkSummary[];
95
+ count: number;
96
+ duplicateKids: string[];
97
+ }
98
+ interface JwksError {
99
+ ok: false;
100
+ error: string;
101
+ }
102
+ type JwksParseResult = JwksResult | JwksError;
103
+ /**
104
+ * Parse a JSON Web Key Set (or a single bare JWK) and summarize each key's
105
+ * type, use, algorithm, key ID, and approximate size. Does not verify or
106
+ * use the keys cryptographically: this is inspection only.
107
+ */
108
+ declare function parseJwks(input: string): JwksParseResult;
81
109
  type JwtAlgorithm = 'HS256' | 'HS384' | 'HS512';
82
110
  interface JwtSignOptions {
83
111
  algorithm?: JwtAlgorithm;
@@ -255,6 +283,10 @@ type api_FormatResult = FormatResult;
255
283
  declare const api_HTTP_METHODS: typeof HTTP_METHODS;
256
284
  type api_Header = Header;
257
285
  type api_HttpMethod = HttpMethod;
286
+ type api_JwkSummary = JwkSummary;
287
+ type api_JwksError = JwksError;
288
+ type api_JwksParseResult = JwksParseResult;
289
+ type api_JwksResult = JwksResult;
258
290
  type api_JwtAlgorithm = JwtAlgorithm;
259
291
  type api_JwtDecodeError = JwtDecodeError;
260
292
  type api_JwtDecodeResult = JwtDecodeResult;
@@ -294,6 +326,7 @@ declare const api_normalizeUrl: typeof normalizeUrl;
294
326
  declare const api_parseCspHeader: typeof parseCspHeader;
295
327
  declare const api_parseCurl: typeof parseCurl;
296
328
  declare const api_parseCurlCommand: typeof parseCurlCommand;
329
+ declare const api_parseJwks: typeof parseJwks;
297
330
  declare const api_parseMetaTags: typeof parseMetaTags;
298
331
  declare const api_parseUrl: typeof parseUrl;
299
332
  declare const api_removeParam: typeof removeParam;
@@ -302,7 +335,7 @@ declare const api_validateCorsConfig: typeof validateCorsConfig;
302
335
  declare const api_validateCspConfig: typeof validateCspConfig;
303
336
  declare const api_validateOgTags: typeof validateOgTags;
304
337
  declare namespace api {
305
- export { api_COMMON_HEADERS as COMMON_HEADERS, api_COMMON_PRESETS as COMMON_PRESETS, api_CORS_COMMON_HEADERS as CORS_COMMON_HEADERS, type api_CorsConfig as CorsConfig, type api_CorsOutput as CorsOutput, type api_CspConfig as CspConfig, type api_CspDirective as CspDirective, type api_CspSource as CspSource, type api_CurlCommand as CurlCommand, type api_CurlConfig as CurlConfig, api_DEFAULT_CORS_CONFIG as DEFAULT_CORS_CONFIG, api_DIRECTIVE_DESCRIPTIONS as DIRECTIVE_DESCRIPTIONS, type api_DirectiveConfig as DirectiveConfig, type api_FormatResult as FormatResult, api_HTTP_METHODS as HTTP_METHODS, type api_Header as Header, type api_HttpMethod as HttpMethod, type api_JwtAlgorithm as JwtAlgorithm, type api_JwtDecodeError as JwtDecodeError, type api_JwtDecodeResult as JwtDecodeResult, type api_JwtExpiry as JwtExpiry, type api_JwtPart as JwtPart, type api_JwtResult as JwtResult, type api_JwtSignOptions as JwtSignOptions, type api_MetaTags as MetaTags, type api_OgTags as OgTags, type api_ParsedUrl as ParsedUrl, type api_ResponseFormat as ResponseFormat, api_SUPPORTED_LANGUAGES as SUPPORTED_LANGUAGES, type api_TargetLanguage as TargetLanguage, type api_TwitterTags as TwitterTags, api_addParam as addParam, api_base64urlDecode as base64urlDecode, api_base64urlEncode as base64urlEncode, api_buildCurl as buildCurl, api_buildCurlMultiline as buildCurlMultiline, api_buildUrl as buildUrl, api_convertToCode as convertToCode, api_decodeJwt as decodeJwt, api_decodeUrlComponent as decodeUrlComponent, api_detectFormat as detectFormat, api_encodeUrlComponent as encodeUrlComponent, api_extractJsonPaths as extractJsonPaths, api_formatJwtJson as formatJwtJson, api_formatResponse as formatResponse, api_generateCors as generateCors, api_generateCspHeader as generateCspHeader, api_generateFullHeader as generateFullHeader, api_generateMetaHtml as generateMetaHtml, api_getParam as getParam, api_getStats as getStats, api_isValidUrl as isValidUrl, api_normalizeUrl as normalizeUrl, api_parseCspHeader as parseCspHeader, api_parseCurl as parseCurl, api_parseCurlCommand as parseCurlCommand, api_parseMetaTags as parseMetaTags, api_parseUrl as parseUrl, api_removeParam as removeParam, api_signJwt as signJwt, api_validateCorsConfig as validateCorsConfig, api_validateCspConfig as validateCspConfig, api_validateOgTags as validateOgTags };
338
+ export { api_COMMON_HEADERS as COMMON_HEADERS, api_COMMON_PRESETS as COMMON_PRESETS, api_CORS_COMMON_HEADERS as CORS_COMMON_HEADERS, type api_CorsConfig as CorsConfig, type api_CorsOutput as CorsOutput, type api_CspConfig as CspConfig, type api_CspDirective as CspDirective, type api_CspSource as CspSource, type api_CurlCommand as CurlCommand, type api_CurlConfig as CurlConfig, api_DEFAULT_CORS_CONFIG as DEFAULT_CORS_CONFIG, api_DIRECTIVE_DESCRIPTIONS as DIRECTIVE_DESCRIPTIONS, type api_DirectiveConfig as DirectiveConfig, type api_FormatResult as FormatResult, api_HTTP_METHODS as HTTP_METHODS, type api_Header as Header, type api_HttpMethod as HttpMethod, type api_JwkSummary as JwkSummary, type api_JwksError as JwksError, type api_JwksParseResult as JwksParseResult, type api_JwksResult as JwksResult, type api_JwtAlgorithm as JwtAlgorithm, type api_JwtDecodeError as JwtDecodeError, type api_JwtDecodeResult as JwtDecodeResult, type api_JwtExpiry as JwtExpiry, type api_JwtPart as JwtPart, type api_JwtResult as JwtResult, type api_JwtSignOptions as JwtSignOptions, type api_MetaTags as MetaTags, type api_OgTags as OgTags, type api_ParsedUrl as ParsedUrl, type api_ResponseFormat as ResponseFormat, api_SUPPORTED_LANGUAGES as SUPPORTED_LANGUAGES, type api_TargetLanguage as TargetLanguage, type api_TwitterTags as TwitterTags, api_addParam as addParam, api_base64urlDecode as base64urlDecode, api_base64urlEncode as base64urlEncode, api_buildCurl as buildCurl, api_buildCurlMultiline as buildCurlMultiline, api_buildUrl as buildUrl, api_convertToCode as convertToCode, api_decodeJwt as decodeJwt, api_decodeUrlComponent as decodeUrlComponent, api_detectFormat as detectFormat, api_encodeUrlComponent as encodeUrlComponent, api_extractJsonPaths as extractJsonPaths, api_formatJwtJson as formatJwtJson, api_formatResponse as formatResponse, api_generateCors as generateCors, api_generateCspHeader as generateCspHeader, api_generateFullHeader as generateFullHeader, api_generateMetaHtml as generateMetaHtml, api_getParam as getParam, api_getStats as getStats, api_isValidUrl as isValidUrl, api_normalizeUrl as normalizeUrl, api_parseCspHeader as parseCspHeader, api_parseCurl as parseCurl, api_parseCurlCommand as parseCurlCommand, api_parseJwks as parseJwks, api_parseMetaTags as parseMetaTags, api_parseUrl as parseUrl, api_removeParam as removeParam, api_signJwt as signJwt, api_validateCorsConfig as validateCorsConfig, api_validateCspConfig as validateCspConfig, api_validateOgTags as validateOgTags };
306
339
  }
307
340
 
308
- export { normalizeUrl as $, buildUrl as A, convertToCode as B, COMMON_HEADERS as C, DEFAULT_CORS_CONFIG as D, decodeJwt as E, type FormatResult as F, decodeUrlComponent as G, HTTP_METHODS as H, detectFormat as I, type JwtAlgorithm as J, encodeUrlComponent as K, extractJsonPaths as L, type MetaTags as M, formatJwtJson as N, type OgTags as O, type ParsedUrl as P, formatResponse as Q, type ResponseFormat as R, SUPPORTED_LANGUAGES as S, type TargetLanguage as T, generateCors as U, generateCspHeader as V, generateFullHeader as W, generateMetaHtml as X, getParam as Y, getStats as Z, isValidUrl as _, api as a, parseCspHeader as a0, parseCurl as a1, parseCurlCommand as a2, parseMetaTags as a3, parseUrl as a4, removeParam as a5, signJwt as a6, validateCorsConfig as a7, validateCspConfig as a8, validateOgTags as a9, COMMON_PRESETS as b, CORS_COMMON_HEADERS as c, type CorsConfig as d, type CorsOutput as e, type CspConfig as f, type CspDirective as g, type CspSource as h, type CurlCommand as i, type CurlConfig as j, DIRECTIVE_DESCRIPTIONS as k, type DirectiveConfig as l, type Header as m, type HttpMethod as n, type JwtDecodeError as o, type JwtDecodeResult as p, type JwtExpiry as q, type JwtPart as r, type JwtResult as s, type JwtSignOptions as t, type TwitterTags as u, addParam as v, base64urlDecode as w, base64urlEncode as x, buildCurl as y, buildCurlMultiline as z };
341
+ export { generateMetaHtml as $, base64urlDecode as A, base64urlEncode as B, COMMON_HEADERS as C, DEFAULT_CORS_CONFIG as D, buildCurl as E, type FormatResult as F, buildCurlMultiline as G, HTTP_METHODS as H, buildUrl as I, type JwkSummary as J, convertToCode as K, decodeJwt as L, type MetaTags as M, decodeUrlComponent as N, type OgTags as O, type ParsedUrl as P, detectFormat as Q, type ResponseFormat as R, SUPPORTED_LANGUAGES as S, type TargetLanguage as T, encodeUrlComponent as U, extractJsonPaths as V, formatJwtJson as W, formatResponse as X, generateCors as Y, generateCspHeader as Z, generateFullHeader as _, api as a, getParam as a0, getStats as a1, isValidUrl as a2, normalizeUrl as a3, parseCspHeader as a4, parseCurl as a5, parseCurlCommand as a6, parseJwks as a7, parseMetaTags as a8, parseUrl as a9, removeParam as aa, signJwt as ab, validateCorsConfig as ac, validateCspConfig as ad, validateOgTags as ae, COMMON_PRESETS as b, CORS_COMMON_HEADERS as c, type CorsConfig as d, type CorsOutput as e, type CspConfig as f, type CspDirective as g, type CspSource as h, type CurlCommand as i, type CurlConfig as j, DIRECTIVE_DESCRIPTIONS as k, type DirectiveConfig as l, type Header as m, type HttpMethod as n, type JwksError as o, type JwksParseResult as p, type JwksResult as q, type JwtAlgorithm as r, type JwtDecodeError as s, type JwtDecodeResult as t, type JwtExpiry as u, type JwtPart as v, type JwtResult as w, type JwtSignOptions as x, type TwitterTags as y, addParam as z };