{
  "version": 3,
  "sources": ["../../../../../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/Mime.js", "../../../../../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/standard.js", "../../../../../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/other.js", "../../../../../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/index.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/compose.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/http-exception.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/request/constants.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/body.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/url.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/request.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/html.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/context.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/router.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/constants.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/hono-base.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/router/pattern-router/router.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/preset/tiny.js", "../../../../src/workers/local-explorer/explorer.worker.ts", "../../../../src/workers/core/constants.ts", "../../../../src/workers/local-explorer/aggregation.ts", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/cookie.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/helper/cookie/index.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/utils/buffer.js", "../../../../../../node_modules/.pnpm/hono@4.12.5/node_modules/hono/dist/validator/validator.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js", "../../../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js", "../../../../src/workers/local-explorer/common.ts", "../../../../src/workers/local-explorer/generated/zod.gen.ts", "../../../../src/workers/local-explorer/openapi.local.json", "../../../../src/workers/local-explorer/resources/d1.ts", "../../../../src/plugins/core/constants.ts", "../../../../src/workers/local-explorer/resources/do.ts", "../../../../src/workers/local-explorer/resources/kv.ts", "../../../../src/workers/local-explorer/resources/observability.ts", "../../../../src/workers/local-explorer/resources/r2.ts", "../../../../src/workers/local-explorer/resources/workflows.ts", "../../../../src/workers/local-explorer/route-names.ts", "../../../../src/workers/local-explorer/telemetry.ts"],
  "sourcesContent": ["'use strict';\n\n/**\n * @param typeMap [Object] Map of MIME type -> Array[extensions]\n * @param ...\n */\nfunction Mime() {\n  this._types = Object.create(null);\n  this._extensions = Object.create(null);\n\n  for (let i = 0; i < arguments.length; i++) {\n    this.define(arguments[i]);\n  }\n\n  this.define = this.define.bind(this);\n  this.getType = this.getType.bind(this);\n  this.getExtension = this.getExtension.bind(this);\n}\n\n/**\n * Define mimetype -> extension mappings.  Each key is a mime-type that maps\n * to an array of extensions associated with the type.  The first extension is\n * used as the default extension for the type.\n *\n * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});\n *\n * If a type declares an extension that has already been defined, an error will\n * be thrown.  To suppress this error and force the extension to be associated\n * with the new type, pass `force`=true.  Alternatively, you may prefix the\n * extension with \"*\" to map the type to extension, without mapping the\n * extension to the type.\n *\n * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});\n *\n *\n * @param map (Object) type definitions\n * @param force (Boolean) if true, force overriding of existing definitions\n */\nMime.prototype.define = function(typeMap, force) {\n  for (let type in typeMap) {\n    let extensions = typeMap[type].map(function(t) {\n      return t.toLowerCase();\n    });\n    type = type.toLowerCase();\n\n    for (let i = 0; i < extensions.length; i++) {\n      const ext = extensions[i];\n\n      // '*' prefix = not the preferred type for this extension.  So fixup the\n      // extension, and skip it.\n      if (ext[0] === '*') {\n        continue;\n      }\n\n      if (!force && (ext in this._types)) {\n        throw new Error(\n          'Attempt to change mapping for \"' + ext +\n          '\" extension from \"' + this._types[ext] + '\" to \"' + type +\n          '\". Pass `force=true` to allow this, otherwise remove \"' + ext +\n          '\" from the list of extensions for \"' + type + '\".'\n        );\n      }\n\n      this._types[ext] = type;\n    }\n\n    // Use first extension as default\n    if (force || !this._extensions[type]) {\n      const ext = extensions[0];\n      this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);\n    }\n  }\n};\n\n/**\n * Lookup a mime type based on extension\n */\nMime.prototype.getType = function(path) {\n  path = String(path);\n  let last = path.replace(/^.*[/\\\\]/, '').toLowerCase();\n  let ext = last.replace(/^.*\\./, '').toLowerCase();\n\n  let hasPath = last.length < path.length;\n  let hasDot = ext.length < last.length - 1;\n\n  return (hasDot || !hasPath) && this._types[ext] || null;\n};\n\n/**\n * Return file extension associated with a mime type\n */\nMime.prototype.getExtension = function(type) {\n  type = /^\\s*([^;\\s]*)/.test(type) && RegExp.$1;\n  return type && this._extensions[type.toLowerCase()] || null;\n};\n\nmodule.exports = Mime;\n", "module.exports = {\"application/andrew-inset\":[\"ez\"],\"application/applixware\":[\"aw\"],\"application/atom+xml\":[\"atom\"],\"application/atomcat+xml\":[\"atomcat\"],\"application/atomdeleted+xml\":[\"atomdeleted\"],\"application/atomsvc+xml\":[\"atomsvc\"],\"application/atsc-dwd+xml\":[\"dwd\"],\"application/atsc-held+xml\":[\"held\"],\"application/atsc-rsat+xml\":[\"rsat\"],\"application/bdoc\":[\"bdoc\"],\"application/calendar+xml\":[\"xcs\"],\"application/ccxml+xml\":[\"ccxml\"],\"application/cdfx+xml\":[\"cdfx\"],\"application/cdmi-capability\":[\"cdmia\"],\"application/cdmi-container\":[\"cdmic\"],\"application/cdmi-domain\":[\"cdmid\"],\"application/cdmi-object\":[\"cdmio\"],\"application/cdmi-queue\":[\"cdmiq\"],\"application/cu-seeme\":[\"cu\"],\"application/dash+xml\":[\"mpd\"],\"application/davmount+xml\":[\"davmount\"],\"application/docbook+xml\":[\"dbk\"],\"application/dssc+der\":[\"dssc\"],\"application/dssc+xml\":[\"xdssc\"],\"application/ecmascript\":[\"es\",\"ecma\"],\"application/emma+xml\":[\"emma\"],\"application/emotionml+xml\":[\"emotionml\"],\"application/epub+zip\":[\"epub\"],\"application/exi\":[\"exi\"],\"application/express\":[\"exp\"],\"application/fdt+xml\":[\"fdt\"],\"application/font-tdpfr\":[\"pfr\"],\"application/geo+json\":[\"geojson\"],\"application/gml+xml\":[\"gml\"],\"application/gpx+xml\":[\"gpx\"],\"application/gxf\":[\"gxf\"],\"application/gzip\":[\"gz\"],\"application/hjson\":[\"hjson\"],\"application/hyperstudio\":[\"stk\"],\"application/inkml+xml\":[\"ink\",\"inkml\"],\"application/ipfix\":[\"ipfix\"],\"application/its+xml\":[\"its\"],\"application/java-archive\":[\"jar\",\"war\",\"ear\"],\"application/java-serialized-object\":[\"ser\"],\"application/java-vm\":[\"class\"],\"application/javascript\":[\"js\",\"mjs\"],\"application/json\":[\"json\",\"map\"],\"application/json5\":[\"json5\"],\"application/jsonml+json\":[\"jsonml\"],\"application/ld+json\":[\"jsonld\"],\"application/lgr+xml\":[\"lgr\"],\"application/lost+xml\":[\"lostxml\"],\"application/mac-binhex40\":[\"hqx\"],\"application/mac-compactpro\":[\"cpt\"],\"application/mads+xml\":[\"mads\"],\"application/manifest+json\":[\"webmanifest\"],\"application/marc\":[\"mrc\"],\"application/marcxml+xml\":[\"mrcx\"],\"application/mathematica\":[\"ma\",\"nb\",\"mb\"],\"application/mathml+xml\":[\"mathml\"],\"application/mbox\":[\"mbox\"],\"application/mediaservercontrol+xml\":[\"mscml\"],\"application/metalink+xml\":[\"metalink\"],\"application/metalink4+xml\":[\"meta4\"],\"application/mets+xml\":[\"mets\"],\"application/mmt-aei+xml\":[\"maei\"],\"application/mmt-usd+xml\":[\"musd\"],\"application/mods+xml\":[\"mods\"],\"application/mp21\":[\"m21\",\"mp21\"],\"application/mp4\":[\"mp4s\",\"m4p\"],\"application/msword\":[\"doc\",\"dot\"],\"application/mxf\":[\"mxf\"],\"application/n-quads\":[\"nq\"],\"application/n-triples\":[\"nt\"],\"application/node\":[\"cjs\"],\"application/octet-stream\":[\"bin\",\"dms\",\"lrf\",\"mar\",\"so\",\"dist\",\"distz\",\"pkg\",\"bpk\",\"dump\",\"elc\",\"deploy\",\"exe\",\"dll\",\"deb\",\"dmg\",\"iso\",\"img\",\"msi\",\"msp\",\"msm\",\"buffer\"],\"application/oda\":[\"oda\"],\"application/oebps-package+xml\":[\"opf\"],\"application/ogg\":[\"ogx\"],\"application/omdoc+xml\":[\"omdoc\"],\"application/onenote\":[\"onetoc\",\"onetoc2\",\"onetmp\",\"onepkg\"],\"application/oxps\":[\"oxps\"],\"application/p2p-overlay+xml\":[\"relo\"],\"application/patch-ops-error+xml\":[\"xer\"],\"application/pdf\":[\"pdf\"],\"application/pgp-encrypted\":[\"pgp\"],\"application/pgp-signature\":[\"asc\",\"sig\"],\"application/pics-rules\":[\"prf\"],\"application/pkcs10\":[\"p10\"],\"application/pkcs7-mime\":[\"p7m\",\"p7c\"],\"application/pkcs7-signature\":[\"p7s\"],\"application/pkcs8\":[\"p8\"],\"application/pkix-attr-cert\":[\"ac\"],\"application/pkix-cert\":[\"cer\"],\"application/pkix-crl\":[\"crl\"],\"application/pkix-pkipath\":[\"pkipath\"],\"application/pkixcmp\":[\"pki\"],\"application/pls+xml\":[\"pls\"],\"application/postscript\":[\"ai\",\"eps\",\"ps\"],\"application/provenance+xml\":[\"provx\"],\"application/pskc+xml\":[\"pskcxml\"],\"application/raml+yaml\":[\"raml\"],\"application/rdf+xml\":[\"rdf\",\"owl\"],\"application/reginfo+xml\":[\"rif\"],\"application/relax-ng-compact-syntax\":[\"rnc\"],\"application/resource-lists+xml\":[\"rl\"],\"application/resource-lists-diff+xml\":[\"rld\"],\"application/rls-services+xml\":[\"rs\"],\"application/route-apd+xml\":[\"rapd\"],\"application/route-s-tsid+xml\":[\"sls\"],\"application/route-usd+xml\":[\"rusd\"],\"application/rpki-ghostbusters\":[\"gbr\"],\"application/rpki-manifest\":[\"mft\"],\"application/rpki-roa\":[\"roa\"],\"application/rsd+xml\":[\"rsd\"],\"application/rss+xml\":[\"rss\"],\"application/rtf\":[\"rtf\"],\"application/sbml+xml\":[\"sbml\"],\"application/scvp-cv-request\":[\"scq\"],\"application/scvp-cv-response\":[\"scs\"],\"application/scvp-vp-request\":[\"spq\"],\"application/scvp-vp-response\":[\"spp\"],\"application/sdp\":[\"sdp\"],\"application/senml+xml\":[\"senmlx\"],\"application/sensml+xml\":[\"sensmlx\"],\"application/set-payment-initiation\":[\"setpay\"],\"application/set-registration-initiation\":[\"setreg\"],\"application/shf+xml\":[\"shf\"],\"application/sieve\":[\"siv\",\"sieve\"],\"application/smil+xml\":[\"smi\",\"smil\"],\"application/sparql-query\":[\"rq\"],\"application/sparql-results+xml\":[\"srx\"],\"application/srgs\":[\"gram\"],\"application/srgs+xml\":[\"grxml\"],\"application/sru+xml\":[\"sru\"],\"application/ssdl+xml\":[\"ssdl\"],\"application/ssml+xml\":[\"ssml\"],\"application/swid+xml\":[\"swidtag\"],\"application/tei+xml\":[\"tei\",\"teicorpus\"],\"application/thraud+xml\":[\"tfi\"],\"application/timestamped-data\":[\"tsd\"],\"application/toml\":[\"toml\"],\"application/trig\":[\"trig\"],\"application/ttml+xml\":[\"ttml\"],\"application/ubjson\":[\"ubj\"],\"application/urc-ressheet+xml\":[\"rsheet\"],\"application/urc-targetdesc+xml\":[\"td\"],\"application/voicexml+xml\":[\"vxml\"],\"application/wasm\":[\"wasm\"],\"application/widget\":[\"wgt\"],\"application/winhlp\":[\"hlp\"],\"application/wsdl+xml\":[\"wsdl\"],\"application/wspolicy+xml\":[\"wspolicy\"],\"application/xaml+xml\":[\"xaml\"],\"application/xcap-att+xml\":[\"xav\"],\"application/xcap-caps+xml\":[\"xca\"],\"application/xcap-diff+xml\":[\"xdf\"],\"application/xcap-el+xml\":[\"xel\"],\"application/xcap-ns+xml\":[\"xns\"],\"application/xenc+xml\":[\"xenc\"],\"application/xhtml+xml\":[\"xhtml\",\"xht\"],\"application/xliff+xml\":[\"xlf\"],\"application/xml\":[\"xml\",\"xsl\",\"xsd\",\"rng\"],\"application/xml-dtd\":[\"dtd\"],\"application/xop+xml\":[\"xop\"],\"application/xproc+xml\":[\"xpl\"],\"application/xslt+xml\":[\"*xsl\",\"xslt\"],\"application/xspf+xml\":[\"xspf\"],\"application/xv+xml\":[\"mxml\",\"xhvml\",\"xvml\",\"xvm\"],\"application/yang\":[\"yang\"],\"application/yin+xml\":[\"yin\"],\"application/zip\":[\"zip\"],\"audio/3gpp\":[\"*3gpp\"],\"audio/adpcm\":[\"adp\"],\"audio/amr\":[\"amr\"],\"audio/basic\":[\"au\",\"snd\"],\"audio/midi\":[\"mid\",\"midi\",\"kar\",\"rmi\"],\"audio/mobile-xmf\":[\"mxmf\"],\"audio/mp3\":[\"*mp3\"],\"audio/mp4\":[\"m4a\",\"mp4a\"],\"audio/mpeg\":[\"mpga\",\"mp2\",\"mp2a\",\"mp3\",\"m2a\",\"m3a\"],\"audio/ogg\":[\"oga\",\"ogg\",\"spx\",\"opus\"],\"audio/s3m\":[\"s3m\"],\"audio/silk\":[\"sil\"],\"audio/wav\":[\"wav\"],\"audio/wave\":[\"*wav\"],\"audio/webm\":[\"weba\"],\"audio/xm\":[\"xm\"],\"font/collection\":[\"ttc\"],\"font/otf\":[\"otf\"],\"font/ttf\":[\"ttf\"],\"font/woff\":[\"woff\"],\"font/woff2\":[\"woff2\"],\"image/aces\":[\"exr\"],\"image/apng\":[\"apng\"],\"image/avif\":[\"avif\"],\"image/bmp\":[\"bmp\"],\"image/cgm\":[\"cgm\"],\"image/dicom-rle\":[\"drle\"],\"image/emf\":[\"emf\"],\"image/fits\":[\"fits\"],\"image/g3fax\":[\"g3\"],\"image/gif\":[\"gif\"],\"image/heic\":[\"heic\"],\"image/heic-sequence\":[\"heics\"],\"image/heif\":[\"heif\"],\"image/heif-sequence\":[\"heifs\"],\"image/hej2k\":[\"hej2\"],\"image/hsj2\":[\"hsj2\"],\"image/ief\":[\"ief\"],\"image/jls\":[\"jls\"],\"image/jp2\":[\"jp2\",\"jpg2\"],\"image/jpeg\":[\"jpeg\",\"jpg\",\"jpe\"],\"image/jph\":[\"jph\"],\"image/jphc\":[\"jhc\"],\"image/jpm\":[\"jpm\"],\"image/jpx\":[\"jpx\",\"jpf\"],\"image/jxr\":[\"jxr\"],\"image/jxra\":[\"jxra\"],\"image/jxrs\":[\"jxrs\"],\"image/jxs\":[\"jxs\"],\"image/jxsc\":[\"jxsc\"],\"image/jxsi\":[\"jxsi\"],\"image/jxss\":[\"jxss\"],\"image/ktx\":[\"ktx\"],\"image/ktx2\":[\"ktx2\"],\"image/png\":[\"png\"],\"image/sgi\":[\"sgi\"],\"image/svg+xml\":[\"svg\",\"svgz\"],\"image/t38\":[\"t38\"],\"image/tiff\":[\"tif\",\"tiff\"],\"image/tiff-fx\":[\"tfx\"],\"image/webp\":[\"webp\"],\"image/wmf\":[\"wmf\"],\"message/disposition-notification\":[\"disposition-notification\"],\"message/global\":[\"u8msg\"],\"message/global-delivery-status\":[\"u8dsn\"],\"message/global-disposition-notification\":[\"u8mdn\"],\"message/global-headers\":[\"u8hdr\"],\"message/rfc822\":[\"eml\",\"mime\"],\"model/3mf\":[\"3mf\"],\"model/gltf+json\":[\"gltf\"],\"model/gltf-binary\":[\"glb\"],\"model/iges\":[\"igs\",\"iges\"],\"model/mesh\":[\"msh\",\"mesh\",\"silo\"],\"model/mtl\":[\"mtl\"],\"model/obj\":[\"obj\"],\"model/step+xml\":[\"stpx\"],\"model/step+zip\":[\"stpz\"],\"model/step-xml+zip\":[\"stpxz\"],\"model/stl\":[\"stl\"],\"model/vrml\":[\"wrl\",\"vrml\"],\"model/x3d+binary\":[\"*x3db\",\"x3dbz\"],\"model/x3d+fastinfoset\":[\"x3db\"],\"model/x3d+vrml\":[\"*x3dv\",\"x3dvz\"],\"model/x3d+xml\":[\"x3d\",\"x3dz\"],\"model/x3d-vrml\":[\"x3dv\"],\"text/cache-manifest\":[\"appcache\",\"manifest\"],\"text/calendar\":[\"ics\",\"ifb\"],\"text/coffeescript\":[\"coffee\",\"litcoffee\"],\"text/css\":[\"css\"],\"text/csv\":[\"csv\"],\"text/html\":[\"html\",\"htm\",\"shtml\"],\"text/jade\":[\"jade\"],\"text/jsx\":[\"jsx\"],\"text/less\":[\"less\"],\"text/markdown\":[\"markdown\",\"md\"],\"text/mathml\":[\"mml\"],\"text/mdx\":[\"mdx\"],\"text/n3\":[\"n3\"],\"text/plain\":[\"txt\",\"text\",\"conf\",\"def\",\"list\",\"log\",\"in\",\"ini\"],\"text/richtext\":[\"rtx\"],\"text/rtf\":[\"*rtf\"],\"text/sgml\":[\"sgml\",\"sgm\"],\"text/shex\":[\"shex\"],\"text/slim\":[\"slim\",\"slm\"],\"text/spdx\":[\"spdx\"],\"text/stylus\":[\"stylus\",\"styl\"],\"text/tab-separated-values\":[\"tsv\"],\"text/troff\":[\"t\",\"tr\",\"roff\",\"man\",\"me\",\"ms\"],\"text/turtle\":[\"ttl\"],\"text/uri-list\":[\"uri\",\"uris\",\"urls\"],\"text/vcard\":[\"vcard\"],\"text/vtt\":[\"vtt\"],\"text/xml\":[\"*xml\"],\"text/yaml\":[\"yaml\",\"yml\"],\"video/3gpp\":[\"3gp\",\"3gpp\"],\"video/3gpp2\":[\"3g2\"],\"video/h261\":[\"h261\"],\"video/h263\":[\"h263\"],\"video/h264\":[\"h264\"],\"video/iso.segment\":[\"m4s\"],\"video/jpeg\":[\"jpgv\"],\"video/jpm\":[\"*jpm\",\"jpgm\"],\"video/mj2\":[\"mj2\",\"mjp2\"],\"video/mp2t\":[\"ts\"],\"video/mp4\":[\"mp4\",\"mp4v\",\"mpg4\"],\"video/mpeg\":[\"mpeg\",\"mpg\",\"mpe\",\"m1v\",\"m2v\"],\"video/ogg\":[\"ogv\"],\"video/quicktime\":[\"qt\",\"mov\"],\"video/webm\":[\"webm\"]};", "module.exports = {\"application/prs.cww\":[\"cww\"],\"application/vnd.1000minds.decision-model+xml\":[\"1km\"],\"application/vnd.3gpp.pic-bw-large\":[\"plb\"],\"application/vnd.3gpp.pic-bw-small\":[\"psb\"],\"application/vnd.3gpp.pic-bw-var\":[\"pvb\"],\"application/vnd.3gpp2.tcap\":[\"tcap\"],\"application/vnd.3m.post-it-notes\":[\"pwn\"],\"application/vnd.accpac.simply.aso\":[\"aso\"],\"application/vnd.accpac.simply.imp\":[\"imp\"],\"application/vnd.acucobol\":[\"acu\"],\"application/vnd.acucorp\":[\"atc\",\"acutc\"],\"application/vnd.adobe.air-application-installer-package+zip\":[\"air\"],\"application/vnd.adobe.formscentral.fcdt\":[\"fcdt\"],\"application/vnd.adobe.fxp\":[\"fxp\",\"fxpl\"],\"application/vnd.adobe.xdp+xml\":[\"xdp\"],\"application/vnd.adobe.xfdf\":[\"xfdf\"],\"application/vnd.ahead.space\":[\"ahead\"],\"application/vnd.airzip.filesecure.azf\":[\"azf\"],\"application/vnd.airzip.filesecure.azs\":[\"azs\"],\"application/vnd.amazon.ebook\":[\"azw\"],\"application/vnd.americandynamics.acc\":[\"acc\"],\"application/vnd.amiga.ami\":[\"ami\"],\"application/vnd.android.package-archive\":[\"apk\"],\"application/vnd.anser-web-certificate-issue-initiation\":[\"cii\"],\"application/vnd.anser-web-funds-transfer-initiation\":[\"fti\"],\"application/vnd.antix.game-component\":[\"atx\"],\"application/vnd.apple.installer+xml\":[\"mpkg\"],\"application/vnd.apple.keynote\":[\"key\"],\"application/vnd.apple.mpegurl\":[\"m3u8\"],\"application/vnd.apple.numbers\":[\"numbers\"],\"application/vnd.apple.pages\":[\"pages\"],\"application/vnd.apple.pkpass\":[\"pkpass\"],\"application/vnd.aristanetworks.swi\":[\"swi\"],\"application/vnd.astraea-software.iota\":[\"iota\"],\"application/vnd.audiograph\":[\"aep\"],\"application/vnd.balsamiq.bmml+xml\":[\"bmml\"],\"application/vnd.blueice.multipass\":[\"mpm\"],\"application/vnd.bmi\":[\"bmi\"],\"application/vnd.businessobjects\":[\"rep\"],\"application/vnd.chemdraw+xml\":[\"cdxml\"],\"application/vnd.chipnuts.karaoke-mmd\":[\"mmd\"],\"application/vnd.cinderella\":[\"cdy\"],\"application/vnd.citationstyles.style+xml\":[\"csl\"],\"application/vnd.claymore\":[\"cla\"],\"application/vnd.cloanto.rp9\":[\"rp9\"],\"application/vnd.clonk.c4group\":[\"c4g\",\"c4d\",\"c4f\",\"c4p\",\"c4u\"],\"application/vnd.cluetrust.cartomobile-config\":[\"c11amc\"],\"application/vnd.cluetrust.cartomobile-config-pkg\":[\"c11amz\"],\"application/vnd.commonspace\":[\"csp\"],\"application/vnd.contact.cmsg\":[\"cdbcmsg\"],\"application/vnd.cosmocaller\":[\"cmc\"],\"application/vnd.crick.clicker\":[\"clkx\"],\"application/vnd.crick.clicker.keyboard\":[\"clkk\"],\"application/vnd.crick.clicker.palette\":[\"clkp\"],\"application/vnd.crick.clicker.template\":[\"clkt\"],\"application/vnd.crick.clicker.wordbank\":[\"clkw\"],\"application/vnd.criticaltools.wbs+xml\":[\"wbs\"],\"application/vnd.ctc-posml\":[\"pml\"],\"application/vnd.cups-ppd\":[\"ppd\"],\"application/vnd.curl.car\":[\"car\"],\"application/vnd.curl.pcurl\":[\"pcurl\"],\"application/vnd.dart\":[\"dart\"],\"application/vnd.data-vision.rdz\":[\"rdz\"],\"application/vnd.dbf\":[\"dbf\"],\"application/vnd.dece.data\":[\"uvf\",\"uvvf\",\"uvd\",\"uvvd\"],\"application/vnd.dece.ttml+xml\":[\"uvt\",\"uvvt\"],\"application/vnd.dece.unspecified\":[\"uvx\",\"uvvx\"],\"application/vnd.dece.zip\":[\"uvz\",\"uvvz\"],\"application/vnd.denovo.fcselayout-link\":[\"fe_launch\"],\"application/vnd.dna\":[\"dna\"],\"application/vnd.dolby.mlp\":[\"mlp\"],\"application/vnd.dpgraph\":[\"dpg\"],\"application/vnd.dreamfactory\":[\"dfac\"],\"application/vnd.ds-keypoint\":[\"kpxx\"],\"application/vnd.dvb.ait\":[\"ait\"],\"application/vnd.dvb.service\":[\"svc\"],\"application/vnd.dynageo\":[\"geo\"],\"application/vnd.ecowin.chart\":[\"mag\"],\"application/vnd.enliven\":[\"nml\"],\"application/vnd.epson.esf\":[\"esf\"],\"application/vnd.epson.msf\":[\"msf\"],\"application/vnd.epson.quickanime\":[\"qam\"],\"application/vnd.epson.salt\":[\"slt\"],\"application/vnd.epson.ssf\":[\"ssf\"],\"application/vnd.eszigno3+xml\":[\"es3\",\"et3\"],\"application/vnd.ezpix-album\":[\"ez2\"],\"application/vnd.ezpix-package\":[\"ez3\"],\"application/vnd.fdf\":[\"fdf\"],\"application/vnd.fdsn.mseed\":[\"mseed\"],\"application/vnd.fdsn.seed\":[\"seed\",\"dataless\"],\"application/vnd.flographit\":[\"gph\"],\"application/vnd.fluxtime.clip\":[\"ftc\"],\"application/vnd.framemaker\":[\"fm\",\"frame\",\"maker\",\"book\"],\"application/vnd.frogans.fnc\":[\"fnc\"],\"application/vnd.frogans.ltf\":[\"ltf\"],\"application/vnd.fsc.weblaunch\":[\"fsc\"],\"application/vnd.fujitsu.oasys\":[\"oas\"],\"application/vnd.fujitsu.oasys2\":[\"oa2\"],\"application/vnd.fujitsu.oasys3\":[\"oa3\"],\"application/vnd.fujitsu.oasysgp\":[\"fg5\"],\"application/vnd.fujitsu.oasysprs\":[\"bh2\"],\"application/vnd.fujixerox.ddd\":[\"ddd\"],\"application/vnd.fujixerox.docuworks\":[\"xdw\"],\"application/vnd.fujixerox.docuworks.binder\":[\"xbd\"],\"application/vnd.fuzzysheet\":[\"fzs\"],\"application/vnd.genomatix.tuxedo\":[\"txd\"],\"application/vnd.geogebra.file\":[\"ggb\"],\"application/vnd.geogebra.tool\":[\"ggt\"],\"application/vnd.geometry-explorer\":[\"gex\",\"gre\"],\"application/vnd.geonext\":[\"gxt\"],\"application/vnd.geoplan\":[\"g2w\"],\"application/vnd.geospace\":[\"g3w\"],\"application/vnd.gmx\":[\"gmx\"],\"application/vnd.google-apps.document\":[\"gdoc\"],\"application/vnd.google-apps.presentation\":[\"gslides\"],\"application/vnd.google-apps.spreadsheet\":[\"gsheet\"],\"application/vnd.google-earth.kml+xml\":[\"kml\"],\"application/vnd.google-earth.kmz\":[\"kmz\"],\"application/vnd.grafeq\":[\"gqf\",\"gqs\"],\"application/vnd.groove-account\":[\"gac\"],\"application/vnd.groove-help\":[\"ghf\"],\"application/vnd.groove-identity-message\":[\"gim\"],\"application/vnd.groove-injector\":[\"grv\"],\"application/vnd.groove-tool-message\":[\"gtm\"],\"application/vnd.groove-tool-template\":[\"tpl\"],\"application/vnd.groove-vcard\":[\"vcg\"],\"application/vnd.hal+xml\":[\"hal\"],\"application/vnd.handheld-entertainment+xml\":[\"zmm\"],\"application/vnd.hbci\":[\"hbci\"],\"application/vnd.hhe.lesson-player\":[\"les\"],\"application/vnd.hp-hpgl\":[\"hpgl\"],\"application/vnd.hp-hpid\":[\"hpid\"],\"application/vnd.hp-hps\":[\"hps\"],\"application/vnd.hp-jlyt\":[\"jlt\"],\"application/vnd.hp-pcl\":[\"pcl\"],\"application/vnd.hp-pclxl\":[\"pclxl\"],\"application/vnd.hydrostatix.sof-data\":[\"sfd-hdstx\"],\"application/vnd.ibm.minipay\":[\"mpy\"],\"application/vnd.ibm.modcap\":[\"afp\",\"listafp\",\"list3820\"],\"application/vnd.ibm.rights-management\":[\"irm\"],\"application/vnd.ibm.secure-container\":[\"sc\"],\"application/vnd.iccprofile\":[\"icc\",\"icm\"],\"application/vnd.igloader\":[\"igl\"],\"application/vnd.immervision-ivp\":[\"ivp\"],\"application/vnd.immervision-ivu\":[\"ivu\"],\"application/vnd.insors.igm\":[\"igm\"],\"application/vnd.intercon.formnet\":[\"xpw\",\"xpx\"],\"application/vnd.intergeo\":[\"i2g\"],\"application/vnd.intu.qbo\":[\"qbo\"],\"application/vnd.intu.qfx\":[\"qfx\"],\"application/vnd.ipunplugged.rcprofile\":[\"rcprofile\"],\"application/vnd.irepository.package+xml\":[\"irp\"],\"application/vnd.is-xpr\":[\"xpr\"],\"application/vnd.isac.fcs\":[\"fcs\"],\"application/vnd.jam\":[\"jam\"],\"application/vnd.jcp.javame.midlet-rms\":[\"rms\"],\"application/vnd.jisp\":[\"jisp\"],\"application/vnd.joost.joda-archive\":[\"joda\"],\"application/vnd.kahootz\":[\"ktz\",\"ktr\"],\"application/vnd.kde.karbon\":[\"karbon\"],\"application/vnd.kde.kchart\":[\"chrt\"],\"application/vnd.kde.kformula\":[\"kfo\"],\"application/vnd.kde.kivio\":[\"flw\"],\"application/vnd.kde.kontour\":[\"kon\"],\"application/vnd.kde.kpresenter\":[\"kpr\",\"kpt\"],\"application/vnd.kde.kspread\":[\"ksp\"],\"application/vnd.kde.kword\":[\"kwd\",\"kwt\"],\"application/vnd.kenameaapp\":[\"htke\"],\"application/vnd.kidspiration\":[\"kia\"],\"application/vnd.kinar\":[\"kne\",\"knp\"],\"application/vnd.koan\":[\"skp\",\"skd\",\"skt\",\"skm\"],\"application/vnd.kodak-descriptor\":[\"sse\"],\"application/vnd.las.las+xml\":[\"lasxml\"],\"application/vnd.llamagraphics.life-balance.desktop\":[\"lbd\"],\"application/vnd.llamagraphics.life-balance.exchange+xml\":[\"lbe\"],\"application/vnd.lotus-1-2-3\":[\"123\"],\"application/vnd.lotus-approach\":[\"apr\"],\"application/vnd.lotus-freelance\":[\"pre\"],\"application/vnd.lotus-notes\":[\"nsf\"],\"application/vnd.lotus-organizer\":[\"org\"],\"application/vnd.lotus-screencam\":[\"scm\"],\"application/vnd.lotus-wordpro\":[\"lwp\"],\"application/vnd.macports.portpkg\":[\"portpkg\"],\"application/vnd.mapbox-vector-tile\":[\"mvt\"],\"application/vnd.mcd\":[\"mcd\"],\"application/vnd.medcalcdata\":[\"mc1\"],\"application/vnd.mediastation.cdkey\":[\"cdkey\"],\"application/vnd.mfer\":[\"mwf\"],\"application/vnd.mfmp\":[\"mfm\"],\"application/vnd.micrografx.flo\":[\"flo\"],\"application/vnd.micrografx.igx\":[\"igx\"],\"application/vnd.mif\":[\"mif\"],\"application/vnd.mobius.daf\":[\"daf\"],\"application/vnd.mobius.dis\":[\"dis\"],\"application/vnd.mobius.mbk\":[\"mbk\"],\"application/vnd.mobius.mqy\":[\"mqy\"],\"application/vnd.mobius.msl\":[\"msl\"],\"application/vnd.mobius.plc\":[\"plc\"],\"application/vnd.mobius.txf\":[\"txf\"],\"application/vnd.mophun.application\":[\"mpn\"],\"application/vnd.mophun.certificate\":[\"mpc\"],\"application/vnd.mozilla.xul+xml\":[\"xul\"],\"application/vnd.ms-artgalry\":[\"cil\"],\"application/vnd.ms-cab-compressed\":[\"cab\"],\"application/vnd.ms-excel\":[\"xls\",\"xlm\",\"xla\",\"xlc\",\"xlt\",\"xlw\"],\"application/vnd.ms-excel.addin.macroenabled.12\":[\"xlam\"],\"application/vnd.ms-excel.sheet.binary.macroenabled.12\":[\"xlsb\"],\"application/vnd.ms-excel.sheet.macroenabled.12\":[\"xlsm\"],\"application/vnd.ms-excel.template.macroenabled.12\":[\"xltm\"],\"application/vnd.ms-fontobject\":[\"eot\"],\"application/vnd.ms-htmlhelp\":[\"chm\"],\"application/vnd.ms-ims\":[\"ims\"],\"application/vnd.ms-lrm\":[\"lrm\"],\"application/vnd.ms-officetheme\":[\"thmx\"],\"application/vnd.ms-outlook\":[\"msg\"],\"application/vnd.ms-pki.seccat\":[\"cat\"],\"application/vnd.ms-pki.stl\":[\"*stl\"],\"application/vnd.ms-powerpoint\":[\"ppt\",\"pps\",\"pot\"],\"application/vnd.ms-powerpoint.addin.macroenabled.12\":[\"ppam\"],\"application/vnd.ms-powerpoint.presentation.macroenabled.12\":[\"pptm\"],\"application/vnd.ms-powerpoint.slide.macroenabled.12\":[\"sldm\"],\"application/vnd.ms-powerpoint.slideshow.macroenabled.12\":[\"ppsm\"],\"application/vnd.ms-powerpoint.template.macroenabled.12\":[\"potm\"],\"application/vnd.ms-project\":[\"mpp\",\"mpt\"],\"application/vnd.ms-word.document.macroenabled.12\":[\"docm\"],\"application/vnd.ms-word.template.macroenabled.12\":[\"dotm\"],\"application/vnd.ms-works\":[\"wps\",\"wks\",\"wcm\",\"wdb\"],\"application/vnd.ms-wpl\":[\"wpl\"],\"application/vnd.ms-xpsdocument\":[\"xps\"],\"application/vnd.mseq\":[\"mseq\"],\"application/vnd.musician\":[\"mus\"],\"application/vnd.muvee.style\":[\"msty\"],\"application/vnd.mynfc\":[\"taglet\"],\"application/vnd.neurolanguage.nlu\":[\"nlu\"],\"application/vnd.nitf\":[\"ntf\",\"nitf\"],\"application/vnd.noblenet-directory\":[\"nnd\"],\"application/vnd.noblenet-sealer\":[\"nns\"],\"application/vnd.noblenet-web\":[\"nnw\"],\"application/vnd.nokia.n-gage.ac+xml\":[\"*ac\"],\"application/vnd.nokia.n-gage.data\":[\"ngdat\"],\"application/vnd.nokia.n-gage.symbian.install\":[\"n-gage\"],\"application/vnd.nokia.radio-preset\":[\"rpst\"],\"application/vnd.nokia.radio-presets\":[\"rpss\"],\"application/vnd.novadigm.edm\":[\"edm\"],\"application/vnd.novadigm.edx\":[\"edx\"],\"application/vnd.novadigm.ext\":[\"ext\"],\"application/vnd.oasis.opendocument.chart\":[\"odc\"],\"application/vnd.oasis.opendocument.chart-template\":[\"otc\"],\"application/vnd.oasis.opendocument.database\":[\"odb\"],\"application/vnd.oasis.opendocument.formula\":[\"odf\"],\"application/vnd.oasis.opendocument.formula-template\":[\"odft\"],\"application/vnd.oasis.opendocument.graphics\":[\"odg\"],\"application/vnd.oasis.opendocument.graphics-template\":[\"otg\"],\"application/vnd.oasis.opendocument.image\":[\"odi\"],\"application/vnd.oasis.opendocument.image-template\":[\"oti\"],\"application/vnd.oasis.opendocument.presentation\":[\"odp\"],\"application/vnd.oasis.opendocument.presentation-template\":[\"otp\"],\"application/vnd.oasis.opendocument.spreadsheet\":[\"ods\"],\"application/vnd.oasis.opendocument.spreadsheet-template\":[\"ots\"],\"application/vnd.oasis.opendocument.text\":[\"odt\"],\"application/vnd.oasis.opendocument.text-master\":[\"odm\"],\"application/vnd.oasis.opendocument.text-template\":[\"ott\"],\"application/vnd.oasis.opendocument.text-web\":[\"oth\"],\"application/vnd.olpc-sugar\":[\"xo\"],\"application/vnd.oma.dd2+xml\":[\"dd2\"],\"application/vnd.openblox.game+xml\":[\"obgx\"],\"application/vnd.openofficeorg.extension\":[\"oxt\"],\"application/vnd.openstreetmap.data+xml\":[\"osm\"],\"application/vnd.openxmlformats-officedocument.presentationml.presentation\":[\"pptx\"],\"application/vnd.openxmlformats-officedocument.presentationml.slide\":[\"sldx\"],\"application/vnd.openxmlformats-officedocument.presentationml.slideshow\":[\"ppsx\"],\"application/vnd.openxmlformats-officedocument.presentationml.template\":[\"potx\"],\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":[\"xlsx\"],\"application/vnd.openxmlformats-officedocument.spreadsheetml.template\":[\"xltx\"],\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":[\"docx\"],\"application/vnd.openxmlformats-officedocument.wordprocessingml.template\":[\"dotx\"],\"application/vnd.osgeo.mapguide.package\":[\"mgp\"],\"application/vnd.osgi.dp\":[\"dp\"],\"application/vnd.osgi.subsystem\":[\"esa\"],\"application/vnd.palm\":[\"pdb\",\"pqa\",\"oprc\"],\"application/vnd.pawaafile\":[\"paw\"],\"application/vnd.pg.format\":[\"str\"],\"application/vnd.pg.osasli\":[\"ei6\"],\"application/vnd.picsel\":[\"efif\"],\"application/vnd.pmi.widget\":[\"wg\"],\"application/vnd.pocketlearn\":[\"plf\"],\"application/vnd.powerbuilder6\":[\"pbd\"],\"application/vnd.previewsystems.box\":[\"box\"],\"application/vnd.proteus.magazine\":[\"mgz\"],\"application/vnd.publishare-delta-tree\":[\"qps\"],\"application/vnd.pvi.ptid1\":[\"ptid\"],\"application/vnd.quark.quarkxpress\":[\"qxd\",\"qxt\",\"qwd\",\"qwt\",\"qxl\",\"qxb\"],\"application/vnd.rar\":[\"rar\"],\"application/vnd.realvnc.bed\":[\"bed\"],\"application/vnd.recordare.musicxml\":[\"mxl\"],\"application/vnd.recordare.musicxml+xml\":[\"musicxml\"],\"application/vnd.rig.cryptonote\":[\"cryptonote\"],\"application/vnd.rim.cod\":[\"cod\"],\"application/vnd.rn-realmedia\":[\"rm\"],\"application/vnd.rn-realmedia-vbr\":[\"rmvb\"],\"application/vnd.route66.link66+xml\":[\"link66\"],\"application/vnd.sailingtracker.track\":[\"st\"],\"application/vnd.seemail\":[\"see\"],\"application/vnd.sema\":[\"sema\"],\"application/vnd.semd\":[\"semd\"],\"application/vnd.semf\":[\"semf\"],\"application/vnd.shana.informed.formdata\":[\"ifm\"],\"application/vnd.shana.informed.formtemplate\":[\"itp\"],\"application/vnd.shana.informed.interchange\":[\"iif\"],\"application/vnd.shana.informed.package\":[\"ipk\"],\"application/vnd.simtech-mindmapper\":[\"twd\",\"twds\"],\"application/vnd.smaf\":[\"mmf\"],\"application/vnd.smart.teacher\":[\"teacher\"],\"application/vnd.software602.filler.form+xml\":[\"fo\"],\"application/vnd.solent.sdkm+xml\":[\"sdkm\",\"sdkd\"],\"application/vnd.spotfire.dxp\":[\"dxp\"],\"application/vnd.spotfire.sfs\":[\"sfs\"],\"application/vnd.stardivision.calc\":[\"sdc\"],\"application/vnd.stardivision.draw\":[\"sda\"],\"application/vnd.stardivision.impress\":[\"sdd\"],\"application/vnd.stardivision.math\":[\"smf\"],\"application/vnd.stardivision.writer\":[\"sdw\",\"vor\"],\"application/vnd.stardivision.writer-global\":[\"sgl\"],\"application/vnd.stepmania.package\":[\"smzip\"],\"application/vnd.stepmania.stepchart\":[\"sm\"],\"application/vnd.sun.wadl+xml\":[\"wadl\"],\"application/vnd.sun.xml.calc\":[\"sxc\"],\"application/vnd.sun.xml.calc.template\":[\"stc\"],\"application/vnd.sun.xml.draw\":[\"sxd\"],\"application/vnd.sun.xml.draw.template\":[\"std\"],\"application/vnd.sun.xml.impress\":[\"sxi\"],\"application/vnd.sun.xml.impress.template\":[\"sti\"],\"application/vnd.sun.xml.math\":[\"sxm\"],\"application/vnd.sun.xml.writer\":[\"sxw\"],\"application/vnd.sun.xml.writer.global\":[\"sxg\"],\"application/vnd.sun.xml.writer.template\":[\"stw\"],\"application/vnd.sus-calendar\":[\"sus\",\"susp\"],\"application/vnd.svd\":[\"svd\"],\"application/vnd.symbian.install\":[\"sis\",\"sisx\"],\"application/vnd.syncml+xml\":[\"xsm\"],\"application/vnd.syncml.dm+wbxml\":[\"bdm\"],\"application/vnd.syncml.dm+xml\":[\"xdm\"],\"application/vnd.syncml.dmddf+xml\":[\"ddf\"],\"application/vnd.tao.intent-module-archive\":[\"tao\"],\"application/vnd.tcpdump.pcap\":[\"pcap\",\"cap\",\"dmp\"],\"application/vnd.tmobile-livetv\":[\"tmo\"],\"application/vnd.trid.tpt\":[\"tpt\"],\"application/vnd.triscape.mxs\":[\"mxs\"],\"application/vnd.trueapp\":[\"tra\"],\"application/vnd.ufdl\":[\"ufd\",\"ufdl\"],\"application/vnd.uiq.theme\":[\"utz\"],\"application/vnd.umajin\":[\"umj\"],\"application/vnd.unity\":[\"unityweb\"],\"application/vnd.uoml+xml\":[\"uoml\"],\"application/vnd.vcx\":[\"vcx\"],\"application/vnd.visio\":[\"vsd\",\"vst\",\"vss\",\"vsw\"],\"application/vnd.visionary\":[\"vis\"],\"application/vnd.vsf\":[\"vsf\"],\"application/vnd.wap.wbxml\":[\"wbxml\"],\"application/vnd.wap.wmlc\":[\"wmlc\"],\"application/vnd.wap.wmlscriptc\":[\"wmlsc\"],\"application/vnd.webturbo\":[\"wtb\"],\"application/vnd.wolfram.player\":[\"nbp\"],\"application/vnd.wordperfect\":[\"wpd\"],\"application/vnd.wqd\":[\"wqd\"],\"application/vnd.wt.stf\":[\"stf\"],\"application/vnd.xara\":[\"xar\"],\"application/vnd.xfdl\":[\"xfdl\"],\"application/vnd.yamaha.hv-dic\":[\"hvd\"],\"application/vnd.yamaha.hv-script\":[\"hvs\"],\"application/vnd.yamaha.hv-voice\":[\"hvp\"],\"application/vnd.yamaha.openscoreformat\":[\"osf\"],\"application/vnd.yamaha.openscoreformat.osfpvg+xml\":[\"osfpvg\"],\"application/vnd.yamaha.smaf-audio\":[\"saf\"],\"application/vnd.yamaha.smaf-phrase\":[\"spf\"],\"application/vnd.yellowriver-custom-menu\":[\"cmp\"],\"application/vnd.zul\":[\"zir\",\"zirz\"],\"application/vnd.zzazz.deck+xml\":[\"zaz\"],\"application/x-7z-compressed\":[\"7z\"],\"application/x-abiword\":[\"abw\"],\"application/x-ace-compressed\":[\"ace\"],\"application/x-apple-diskimage\":[\"*dmg\"],\"application/x-arj\":[\"arj\"],\"application/x-authorware-bin\":[\"aab\",\"x32\",\"u32\",\"vox\"],\"application/x-authorware-map\":[\"aam\"],\"application/x-authorware-seg\":[\"aas\"],\"application/x-bcpio\":[\"bcpio\"],\"application/x-bdoc\":[\"*bdoc\"],\"application/x-bittorrent\":[\"torrent\"],\"application/x-blorb\":[\"blb\",\"blorb\"],\"application/x-bzip\":[\"bz\"],\"application/x-bzip2\":[\"bz2\",\"boz\"],\"application/x-cbr\":[\"cbr\",\"cba\",\"cbt\",\"cbz\",\"cb7\"],\"application/x-cdlink\":[\"vcd\"],\"application/x-cfs-compressed\":[\"cfs\"],\"application/x-chat\":[\"chat\"],\"application/x-chess-pgn\":[\"pgn\"],\"application/x-chrome-extension\":[\"crx\"],\"application/x-cocoa\":[\"cco\"],\"application/x-conference\":[\"nsc\"],\"application/x-cpio\":[\"cpio\"],\"application/x-csh\":[\"csh\"],\"application/x-debian-package\":[\"*deb\",\"udeb\"],\"application/x-dgc-compressed\":[\"dgc\"],\"application/x-director\":[\"dir\",\"dcr\",\"dxr\",\"cst\",\"cct\",\"cxt\",\"w3d\",\"fgd\",\"swa\"],\"application/x-doom\":[\"wad\"],\"application/x-dtbncx+xml\":[\"ncx\"],\"application/x-dtbook+xml\":[\"dtb\"],\"application/x-dtbresource+xml\":[\"res\"],\"application/x-dvi\":[\"dvi\"],\"application/x-envoy\":[\"evy\"],\"application/x-eva\":[\"eva\"],\"application/x-font-bdf\":[\"bdf\"],\"application/x-font-ghostscript\":[\"gsf\"],\"application/x-font-linux-psf\":[\"psf\"],\"application/x-font-pcf\":[\"pcf\"],\"application/x-font-snf\":[\"snf\"],\"application/x-font-type1\":[\"pfa\",\"pfb\",\"pfm\",\"afm\"],\"application/x-freearc\":[\"arc\"],\"application/x-futuresplash\":[\"spl\"],\"application/x-gca-compressed\":[\"gca\"],\"application/x-glulx\":[\"ulx\"],\"application/x-gnumeric\":[\"gnumeric\"],\"application/x-gramps-xml\":[\"gramps\"],\"application/x-gtar\":[\"gtar\"],\"application/x-hdf\":[\"hdf\"],\"application/x-httpd-php\":[\"php\"],\"application/x-install-instructions\":[\"install\"],\"application/x-iso9660-image\":[\"*iso\"],\"application/x-iwork-keynote-sffkey\":[\"*key\"],\"application/x-iwork-numbers-sffnumbers\":[\"*numbers\"],\"application/x-iwork-pages-sffpages\":[\"*pages\"],\"application/x-java-archive-diff\":[\"jardiff\"],\"application/x-java-jnlp-file\":[\"jnlp\"],\"application/x-keepass2\":[\"kdbx\"],\"application/x-latex\":[\"latex\"],\"application/x-lua-bytecode\":[\"luac\"],\"application/x-lzh-compressed\":[\"lzh\",\"lha\"],\"application/x-makeself\":[\"run\"],\"application/x-mie\":[\"mie\"],\"application/x-mobipocket-ebook\":[\"prc\",\"mobi\"],\"application/x-ms-application\":[\"application\"],\"application/x-ms-shortcut\":[\"lnk\"],\"application/x-ms-wmd\":[\"wmd\"],\"application/x-ms-wmz\":[\"wmz\"],\"application/x-ms-xbap\":[\"xbap\"],\"application/x-msaccess\":[\"mdb\"],\"application/x-msbinder\":[\"obd\"],\"application/x-mscardfile\":[\"crd\"],\"application/x-msclip\":[\"clp\"],\"application/x-msdos-program\":[\"*exe\"],\"application/x-msdownload\":[\"*exe\",\"*dll\",\"com\",\"bat\",\"*msi\"],\"application/x-msmediaview\":[\"mvb\",\"m13\",\"m14\"],\"application/x-msmetafile\":[\"*wmf\",\"*wmz\",\"*emf\",\"emz\"],\"application/x-msmoney\":[\"mny\"],\"application/x-mspublisher\":[\"pub\"],\"application/x-msschedule\":[\"scd\"],\"application/x-msterminal\":[\"trm\"],\"application/x-mswrite\":[\"wri\"],\"application/x-netcdf\":[\"nc\",\"cdf\"],\"application/x-ns-proxy-autoconfig\":[\"pac\"],\"application/x-nzb\":[\"nzb\"],\"application/x-perl\":[\"pl\",\"pm\"],\"application/x-pilot\":[\"*prc\",\"*pdb\"],\"application/x-pkcs12\":[\"p12\",\"pfx\"],\"application/x-pkcs7-certificates\":[\"p7b\",\"spc\"],\"application/x-pkcs7-certreqresp\":[\"p7r\"],\"application/x-rar-compressed\":[\"*rar\"],\"application/x-redhat-package-manager\":[\"rpm\"],\"application/x-research-info-systems\":[\"ris\"],\"application/x-sea\":[\"sea\"],\"application/x-sh\":[\"sh\"],\"application/x-shar\":[\"shar\"],\"application/x-shockwave-flash\":[\"swf\"],\"application/x-silverlight-app\":[\"xap\"],\"application/x-sql\":[\"sql\"],\"application/x-stuffit\":[\"sit\"],\"application/x-stuffitx\":[\"sitx\"],\"application/x-subrip\":[\"srt\"],\"application/x-sv4cpio\":[\"sv4cpio\"],\"application/x-sv4crc\":[\"sv4crc\"],\"application/x-t3vm-image\":[\"t3\"],\"application/x-tads\":[\"gam\"],\"application/x-tar\":[\"tar\"],\"application/x-tcl\":[\"tcl\",\"tk\"],\"application/x-tex\":[\"tex\"],\"application/x-tex-tfm\":[\"tfm\"],\"application/x-texinfo\":[\"texinfo\",\"texi\"],\"application/x-tgif\":[\"*obj\"],\"application/x-ustar\":[\"ustar\"],\"application/x-virtualbox-hdd\":[\"hdd\"],\"application/x-virtualbox-ova\":[\"ova\"],\"application/x-virtualbox-ovf\":[\"ovf\"],\"application/x-virtualbox-vbox\":[\"vbox\"],\"application/x-virtualbox-vbox-extpack\":[\"vbox-extpack\"],\"application/x-virtualbox-vdi\":[\"vdi\"],\"application/x-virtualbox-vhd\":[\"vhd\"],\"application/x-virtualbox-vmdk\":[\"vmdk\"],\"application/x-wais-source\":[\"src\"],\"application/x-web-app-manifest+json\":[\"webapp\"],\"application/x-x509-ca-cert\":[\"der\",\"crt\",\"pem\"],\"application/x-xfig\":[\"fig\"],\"application/x-xliff+xml\":[\"*xlf\"],\"application/x-xpinstall\":[\"xpi\"],\"application/x-xz\":[\"xz\"],\"application/x-zmachine\":[\"z1\",\"z2\",\"z3\",\"z4\",\"z5\",\"z6\",\"z7\",\"z8\"],\"audio/vnd.dece.audio\":[\"uva\",\"uvva\"],\"audio/vnd.digital-winds\":[\"eol\"],\"audio/vnd.dra\":[\"dra\"],\"audio/vnd.dts\":[\"dts\"],\"audio/vnd.dts.hd\":[\"dtshd\"],\"audio/vnd.lucent.voice\":[\"lvp\"],\"audio/vnd.ms-playready.media.pya\":[\"pya\"],\"audio/vnd.nuera.ecelp4800\":[\"ecelp4800\"],\"audio/vnd.nuera.ecelp7470\":[\"ecelp7470\"],\"audio/vnd.nuera.ecelp9600\":[\"ecelp9600\"],\"audio/vnd.rip\":[\"rip\"],\"audio/x-aac\":[\"aac\"],\"audio/x-aiff\":[\"aif\",\"aiff\",\"aifc\"],\"audio/x-caf\":[\"caf\"],\"audio/x-flac\":[\"flac\"],\"audio/x-m4a\":[\"*m4a\"],\"audio/x-matroska\":[\"mka\"],\"audio/x-mpegurl\":[\"m3u\"],\"audio/x-ms-wax\":[\"wax\"],\"audio/x-ms-wma\":[\"wma\"],\"audio/x-pn-realaudio\":[\"ram\",\"ra\"],\"audio/x-pn-realaudio-plugin\":[\"rmp\"],\"audio/x-realaudio\":[\"*ra\"],\"audio/x-wav\":[\"*wav\"],\"chemical/x-cdx\":[\"cdx\"],\"chemical/x-cif\":[\"cif\"],\"chemical/x-cmdf\":[\"cmdf\"],\"chemical/x-cml\":[\"cml\"],\"chemical/x-csml\":[\"csml\"],\"chemical/x-xyz\":[\"xyz\"],\"image/prs.btif\":[\"btif\"],\"image/prs.pti\":[\"pti\"],\"image/vnd.adobe.photoshop\":[\"psd\"],\"image/vnd.airzip.accelerator.azv\":[\"azv\"],\"image/vnd.dece.graphic\":[\"uvi\",\"uvvi\",\"uvg\",\"uvvg\"],\"image/vnd.djvu\":[\"djvu\",\"djv\"],\"image/vnd.dvb.subtitle\":[\"*sub\"],\"image/vnd.dwg\":[\"dwg\"],\"image/vnd.dxf\":[\"dxf\"],\"image/vnd.fastbidsheet\":[\"fbs\"],\"image/vnd.fpx\":[\"fpx\"],\"image/vnd.fst\":[\"fst\"],\"image/vnd.fujixerox.edmics-mmr\":[\"mmr\"],\"image/vnd.fujixerox.edmics-rlc\":[\"rlc\"],\"image/vnd.microsoft.icon\":[\"ico\"],\"image/vnd.ms-dds\":[\"dds\"],\"image/vnd.ms-modi\":[\"mdi\"],\"image/vnd.ms-photo\":[\"wdp\"],\"image/vnd.net-fpx\":[\"npx\"],\"image/vnd.pco.b16\":[\"b16\"],\"image/vnd.tencent.tap\":[\"tap\"],\"image/vnd.valve.source.texture\":[\"vtf\"],\"image/vnd.wap.wbmp\":[\"wbmp\"],\"image/vnd.xiff\":[\"xif\"],\"image/vnd.zbrush.pcx\":[\"pcx\"],\"image/x-3ds\":[\"3ds\"],\"image/x-cmu-raster\":[\"ras\"],\"image/x-cmx\":[\"cmx\"],\"image/x-freehand\":[\"fh\",\"fhc\",\"fh4\",\"fh5\",\"fh7\"],\"image/x-icon\":[\"*ico\"],\"image/x-jng\":[\"jng\"],\"image/x-mrsid-image\":[\"sid\"],\"image/x-ms-bmp\":[\"*bmp\"],\"image/x-pcx\":[\"*pcx\"],\"image/x-pict\":[\"pic\",\"pct\"],\"image/x-portable-anymap\":[\"pnm\"],\"image/x-portable-bitmap\":[\"pbm\"],\"image/x-portable-graymap\":[\"pgm\"],\"image/x-portable-pixmap\":[\"ppm\"],\"image/x-rgb\":[\"rgb\"],\"image/x-tga\":[\"tga\"],\"image/x-xbitmap\":[\"xbm\"],\"image/x-xpixmap\":[\"xpm\"],\"image/x-xwindowdump\":[\"xwd\"],\"message/vnd.wfa.wsc\":[\"wsc\"],\"model/vnd.collada+xml\":[\"dae\"],\"model/vnd.dwf\":[\"dwf\"],\"model/vnd.gdl\":[\"gdl\"],\"model/vnd.gtw\":[\"gtw\"],\"model/vnd.mts\":[\"mts\"],\"model/vnd.opengex\":[\"ogex\"],\"model/vnd.parasolid.transmit.binary\":[\"x_b\"],\"model/vnd.parasolid.transmit.text\":[\"x_t\"],\"model/vnd.sap.vds\":[\"vds\"],\"model/vnd.usdz+zip\":[\"usdz\"],\"model/vnd.valve.source.compiled-map\":[\"bsp\"],\"model/vnd.vtu\":[\"vtu\"],\"text/prs.lines.tag\":[\"dsc\"],\"text/vnd.curl\":[\"curl\"],\"text/vnd.curl.dcurl\":[\"dcurl\"],\"text/vnd.curl.mcurl\":[\"mcurl\"],\"text/vnd.curl.scurl\":[\"scurl\"],\"text/vnd.dvb.subtitle\":[\"sub\"],\"text/vnd.fly\":[\"fly\"],\"text/vnd.fmi.flexstor\":[\"flx\"],\"text/vnd.graphviz\":[\"gv\"],\"text/vnd.in3d.3dml\":[\"3dml\"],\"text/vnd.in3d.spot\":[\"spot\"],\"text/vnd.sun.j2me.app-descriptor\":[\"jad\"],\"text/vnd.wap.wml\":[\"wml\"],\"text/vnd.wap.wmlscript\":[\"wmls\"],\"text/x-asm\":[\"s\",\"asm\"],\"text/x-c\":[\"c\",\"cc\",\"cxx\",\"cpp\",\"h\",\"hh\",\"dic\"],\"text/x-component\":[\"htc\"],\"text/x-fortran\":[\"f\",\"for\",\"f77\",\"f90\"],\"text/x-handlebars-template\":[\"hbs\"],\"text/x-java-source\":[\"java\"],\"text/x-lua\":[\"lua\"],\"text/x-markdown\":[\"mkd\"],\"text/x-nfo\":[\"nfo\"],\"text/x-opml\":[\"opml\"],\"text/x-org\":[\"*org\"],\"text/x-pascal\":[\"p\",\"pas\"],\"text/x-processing\":[\"pde\"],\"text/x-sass\":[\"sass\"],\"text/x-scss\":[\"scss\"],\"text/x-setext\":[\"etx\"],\"text/x-sfv\":[\"sfv\"],\"text/x-suse-ymp\":[\"ymp\"],\"text/x-uuencode\":[\"uu\"],\"text/x-vcalendar\":[\"vcs\"],\"text/x-vcard\":[\"vcf\"],\"video/vnd.dece.hd\":[\"uvh\",\"uvvh\"],\"video/vnd.dece.mobile\":[\"uvm\",\"uvvm\"],\"video/vnd.dece.pd\":[\"uvp\",\"uvvp\"],\"video/vnd.dece.sd\":[\"uvs\",\"uvvs\"],\"video/vnd.dece.video\":[\"uvv\",\"uvvv\"],\"video/vnd.dvb.file\":[\"dvb\"],\"video/vnd.fvt\":[\"fvt\"],\"video/vnd.mpegurl\":[\"mxu\",\"m4u\"],\"video/vnd.ms-playready.media.pyv\":[\"pyv\"],\"video/vnd.uvvu.mp4\":[\"uvu\",\"uvvu\"],\"video/vnd.vivo\":[\"viv\"],\"video/x-f4v\":[\"f4v\"],\"video/x-fli\":[\"fli\"],\"video/x-flv\":[\"flv\"],\"video/x-m4v\":[\"m4v\"],\"video/x-matroska\":[\"mkv\",\"mk3d\",\"mks\"],\"video/x-mng\":[\"mng\"],\"video/x-ms-asf\":[\"asf\",\"asx\"],\"video/x-ms-vob\":[\"vob\"],\"video/x-ms-wm\":[\"wm\"],\"video/x-ms-wmv\":[\"wmv\"],\"video/x-ms-wmx\":[\"wmx\"],\"video/x-ms-wvx\":[\"wvx\"],\"video/x-msvideo\":[\"avi\"],\"video/x-sgi-movie\":[\"movie\"],\"video/x-smv\":[\"smv\"],\"x-conference/x-cooltalk\":[\"ice\"]};", "'use strict';\n\nlet Mime = require('./Mime');\nmodule.exports = new Mime(require('./types/standard'), require('./types/other'));\n", "// src/compose.ts\nvar compose = (middleware, onError, onNotFound) => {\n  return (context, next) => {\n    let index = -1;\n    return dispatch(0);\n    async function dispatch(i) {\n      if (i <= index) {\n        throw new Error(\"next() called multiple times\");\n      }\n      index = i;\n      let res;\n      let isError = false;\n      let handler;\n      if (middleware[i]) {\n        handler = middleware[i][0][0];\n        context.req.routeIndex = i;\n      } else {\n        handler = i === middleware.length && next || void 0;\n      }\n      if (handler) {\n        try {\n          res = await handler(context, () => dispatch(i + 1));\n        } catch (err) {\n          if (err instanceof Error && onError) {\n            context.error = err;\n            res = await onError(err, context);\n            isError = true;\n          } else {\n            throw err;\n          }\n        }\n      } else {\n        if (context.finalized === false && onNotFound) {\n          res = await onNotFound(context);\n        }\n      }\n      if (res && (context.finalized === false || isError)) {\n        context.res = res;\n      }\n      return context;\n    }\n  };\n};\nexport {\n  compose\n};\n", "// src/http-exception.ts\nvar HTTPException = class extends Error {\n  res;\n  status;\n  /**\n   * Creates an instance of `HTTPException`.\n   * @param status - HTTP status code for the exception. Defaults to 500.\n   * @param options - Additional options for the exception.\n   */\n  constructor(status = 500, options) {\n    super(options?.message, { cause: options?.cause });\n    this.res = options?.res;\n    this.status = status;\n  }\n  /**\n   * Returns the response object associated with the exception.\n   * If a response object is not provided, a new response is created with the error message and status code.\n   * @returns The response object.\n   */\n  getResponse() {\n    if (this.res) {\n      const newResponse = new Response(this.res.body, {\n        status: this.status,\n        headers: this.res.headers\n      });\n      return newResponse;\n    }\n    return new Response(this.message, {\n      status: this.status\n    });\n  }\n};\nexport {\n  HTTPException\n};\n", "// src/request/constants.ts\nvar GET_MATCH_RESULT = /* @__PURE__ */ Symbol();\nexport {\n  GET_MATCH_RESULT\n};\n", "// src/utils/body.ts\nimport { HonoRequest } from \"../request.js\";\nvar parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {\n  const { all = false, dot = false } = options;\n  const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;\n  const contentType = headers.get(\"Content-Type\");\n  if (contentType?.startsWith(\"multipart/form-data\") || contentType?.startsWith(\"application/x-www-form-urlencoded\")) {\n    return parseFormData(request, { all, dot });\n  }\n  return {};\n};\nasync function parseFormData(request, options) {\n  const formData = await request.formData();\n  if (formData) {\n    return convertFormDataToBodyData(formData, options);\n  }\n  return {};\n}\nfunction convertFormDataToBodyData(formData, options) {\n  const form = /* @__PURE__ */ Object.create(null);\n  formData.forEach((value, key) => {\n    const shouldParseAllValues = options.all || key.endsWith(\"[]\");\n    if (!shouldParseAllValues) {\n      form[key] = value;\n    } else {\n      handleParsingAllValues(form, key, value);\n    }\n  });\n  if (options.dot) {\n    Object.entries(form).forEach(([key, value]) => {\n      const shouldParseDotValues = key.includes(\".\");\n      if (shouldParseDotValues) {\n        handleParsingNestedValues(form, key, value);\n        delete form[key];\n      }\n    });\n  }\n  return form;\n}\nvar handleParsingAllValues = (form, key, value) => {\n  if (form[key] !== void 0) {\n    if (Array.isArray(form[key])) {\n      ;\n      form[key].push(value);\n    } else {\n      form[key] = [form[key], value];\n    }\n  } else {\n    if (!key.endsWith(\"[]\")) {\n      form[key] = value;\n    } else {\n      form[key] = [value];\n    }\n  }\n};\nvar handleParsingNestedValues = (form, key, value) => {\n  let nestedForm = form;\n  const keys = key.split(\".\");\n  keys.forEach((key2, index) => {\n    if (index === keys.length - 1) {\n      nestedForm[key2] = value;\n    } else {\n      if (!nestedForm[key2] || typeof nestedForm[key2] !== \"object\" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) {\n        nestedForm[key2] = /* @__PURE__ */ Object.create(null);\n      }\n      nestedForm = nestedForm[key2];\n    }\n  });\n};\nexport {\n  parseBody\n};\n", "// src/utils/url.ts\nvar splitPath = (path) => {\n  const paths = path.split(\"/\");\n  if (paths[0] === \"\") {\n    paths.shift();\n  }\n  return paths;\n};\nvar splitRoutingPath = (routePath) => {\n  const { groups, path } = extractGroupsFromPath(routePath);\n  const paths = splitPath(path);\n  return replaceGroupMarks(paths, groups);\n};\nvar extractGroupsFromPath = (path) => {\n  const groups = [];\n  path = path.replace(/\\{[^}]+\\}/g, (match, index) => {\n    const mark = `@${index}`;\n    groups.push([mark, match]);\n    return mark;\n  });\n  return { groups, path };\n};\nvar replaceGroupMarks = (paths, groups) => {\n  for (let i = groups.length - 1; i >= 0; i--) {\n    const [mark] = groups[i];\n    for (let j = paths.length - 1; j >= 0; j--) {\n      if (paths[j].includes(mark)) {\n        paths[j] = paths[j].replace(mark, groups[i][1]);\n        break;\n      }\n    }\n  }\n  return paths;\n};\nvar patternCache = {};\nvar getPattern = (label, next) => {\n  if (label === \"*\") {\n    return \"*\";\n  }\n  const match = label.match(/^\\:([^\\{\\}]+)(?:\\{(.+)\\})?$/);\n  if (match) {\n    const cacheKey = `${label}#${next}`;\n    if (!patternCache[cacheKey]) {\n      if (match[2]) {\n        patternCache[cacheKey] = next && next[0] !== \":\" && next[0] !== \"*\" ? [cacheKey, match[1], new RegExp(`^${match[2]}(?=/${next})`)] : [label, match[1], new RegExp(`^${match[2]}$`)];\n      } else {\n        patternCache[cacheKey] = [label, match[1], true];\n      }\n    }\n    return patternCache[cacheKey];\n  }\n  return null;\n};\nvar tryDecode = (str, decoder) => {\n  try {\n    return decoder(str);\n  } catch {\n    return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match) => {\n      try {\n        return decoder(match);\n      } catch {\n        return match;\n      }\n    });\n  }\n};\nvar tryDecodeURI = (str) => tryDecode(str, decodeURI);\nvar getPath = (request) => {\n  const url = request.url;\n  const start = url.indexOf(\"/\", url.indexOf(\":\") + 4);\n  let i = start;\n  for (; i < url.length; i++) {\n    const charCode = url.charCodeAt(i);\n    if (charCode === 37) {\n      const queryIndex = url.indexOf(\"?\", i);\n      const hashIndex = url.indexOf(\"#\", i);\n      const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex);\n      const path = url.slice(start, end);\n      return tryDecodeURI(path.includes(\"%25\") ? path.replace(/%25/g, \"%2525\") : path);\n    } else if (charCode === 63 || charCode === 35) {\n      break;\n    }\n  }\n  return url.slice(start, i);\n};\nvar getQueryStrings = (url) => {\n  const queryIndex = url.indexOf(\"?\", 8);\n  return queryIndex === -1 ? \"\" : \"?\" + url.slice(queryIndex + 1);\n};\nvar getPathNoStrict = (request) => {\n  const result = getPath(request);\n  return result.length > 1 && result.at(-1) === \"/\" ? result.slice(0, -1) : result;\n};\nvar mergePath = (base, sub, ...rest) => {\n  if (rest.length) {\n    sub = mergePath(sub, ...rest);\n  }\n  return `${base?.[0] === \"/\" ? \"\" : \"/\"}${base}${sub === \"/\" ? \"\" : `${base?.at(-1) === \"/\" ? \"\" : \"/\"}${sub?.[0] === \"/\" ? sub.slice(1) : sub}`}`;\n};\nvar checkOptionalParameter = (path) => {\n  if (path.charCodeAt(path.length - 1) !== 63 || !path.includes(\":\")) {\n    return null;\n  }\n  const segments = path.split(\"/\");\n  const results = [];\n  let basePath = \"\";\n  segments.forEach((segment) => {\n    if (segment !== \"\" && !/\\:/.test(segment)) {\n      basePath += \"/\" + segment;\n    } else if (/\\:/.test(segment)) {\n      if (/\\?/.test(segment)) {\n        if (results.length === 0 && basePath === \"\") {\n          results.push(\"/\");\n        } else {\n          results.push(basePath);\n        }\n        const optionalSegment = segment.replace(\"?\", \"\");\n        basePath += \"/\" + optionalSegment;\n        results.push(basePath);\n      } else {\n        basePath += \"/\" + segment;\n      }\n    }\n  });\n  return results.filter((v, i, a) => a.indexOf(v) === i);\n};\nvar _decodeURI = (value) => {\n  if (!/[%+]/.test(value)) {\n    return value;\n  }\n  if (value.indexOf(\"+\") !== -1) {\n    value = value.replace(/\\+/g, \" \");\n  }\n  return value.indexOf(\"%\") !== -1 ? tryDecode(value, decodeURIComponent_) : value;\n};\nvar _getQueryParam = (url, key, multiple) => {\n  let encoded;\n  if (!multiple && key && !/[%+]/.test(key)) {\n    let keyIndex2 = url.indexOf(\"?\", 8);\n    if (keyIndex2 === -1) {\n      return void 0;\n    }\n    if (!url.startsWith(key, keyIndex2 + 1)) {\n      keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1);\n    }\n    while (keyIndex2 !== -1) {\n      const trailingKeyCode = url.charCodeAt(keyIndex2 + key.length + 1);\n      if (trailingKeyCode === 61) {\n        const valueIndex = keyIndex2 + key.length + 2;\n        const endIndex = url.indexOf(\"&\", valueIndex);\n        return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));\n      } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) {\n        return \"\";\n      }\n      keyIndex2 = url.indexOf(`&${key}`, keyIndex2 + 1);\n    }\n    encoded = /[%+]/.test(url);\n    if (!encoded) {\n      return void 0;\n    }\n  }\n  const results = {};\n  encoded ??= /[%+]/.test(url);\n  let keyIndex = url.indexOf(\"?\", 8);\n  while (keyIndex !== -1) {\n    const nextKeyIndex = url.indexOf(\"&\", keyIndex + 1);\n    let valueIndex = url.indexOf(\"=\", keyIndex);\n    if (valueIndex > nextKeyIndex && nextKeyIndex !== -1) {\n      valueIndex = -1;\n    }\n    let name = url.slice(\n      keyIndex + 1,\n      valueIndex === -1 ? nextKeyIndex === -1 ? void 0 : nextKeyIndex : valueIndex\n    );\n    if (encoded) {\n      name = _decodeURI(name);\n    }\n    keyIndex = nextKeyIndex;\n    if (name === \"\") {\n      continue;\n    }\n    let value;\n    if (valueIndex === -1) {\n      value = \"\";\n    } else {\n      value = url.slice(valueIndex + 1, nextKeyIndex === -1 ? void 0 : nextKeyIndex);\n      if (encoded) {\n        value = _decodeURI(value);\n      }\n    }\n    if (multiple) {\n      if (!(results[name] && Array.isArray(results[name]))) {\n        results[name] = [];\n      }\n      ;\n      results[name].push(value);\n    } else {\n      results[name] ??= value;\n    }\n  }\n  return key ? results[key] : results;\n};\nvar getQueryParam = _getQueryParam;\nvar getQueryParams = (url, key) => {\n  return _getQueryParam(url, key, true);\n};\nvar decodeURIComponent_ = decodeURIComponent;\nexport {\n  checkOptionalParameter,\n  decodeURIComponent_,\n  getPath,\n  getPathNoStrict,\n  getPattern,\n  getQueryParam,\n  getQueryParams,\n  getQueryStrings,\n  mergePath,\n  splitPath,\n  splitRoutingPath,\n  tryDecode,\n  tryDecodeURI\n};\n", "// src/request.ts\nimport { HTTPException } from \"./http-exception.js\";\nimport { GET_MATCH_RESULT } from \"./request/constants.js\";\nimport { parseBody } from \"./utils/body.js\";\nimport { decodeURIComponent_, getQueryParam, getQueryParams, tryDecode } from \"./utils/url.js\";\nvar tryDecodeURIComponent = (str) => tryDecode(str, decodeURIComponent_);\nvar HonoRequest = class {\n  /**\n   * `.raw` can get the raw Request object.\n   *\n   * @see {@link https://hono.dev/docs/api/request#raw}\n   *\n   * @example\n   * ```ts\n   * // For Cloudflare Workers\n   * app.post('/', async (c) => {\n   *   const metadata = c.req.raw.cf?.hostMetadata?\n   *   ...\n   * })\n   * ```\n   */\n  raw;\n  #validatedData;\n  // Short name of validatedData\n  #matchResult;\n  routeIndex = 0;\n  /**\n   * `.path` can get the pathname of the request.\n   *\n   * @see {@link https://hono.dev/docs/api/request#path}\n   *\n   * @example\n   * ```ts\n   * app.get('/about/me', (c) => {\n   *   const pathname = c.req.path // `/about/me`\n   * })\n   * ```\n   */\n  path;\n  bodyCache = {};\n  constructor(request, path = \"/\", matchResult = [[]]) {\n    this.raw = request;\n    this.path = path;\n    this.#matchResult = matchResult;\n    this.#validatedData = {};\n  }\n  param(key) {\n    return key ? this.#getDecodedParam(key) : this.#getAllDecodedParams();\n  }\n  #getDecodedParam(key) {\n    const paramKey = this.#matchResult[0][this.routeIndex][1][key];\n    const param = this.#getParamValue(paramKey);\n    return param && /\\%/.test(param) ? tryDecodeURIComponent(param) : param;\n  }\n  #getAllDecodedParams() {\n    const decoded = {};\n    const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);\n    for (const key of keys) {\n      const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]);\n      if (value !== void 0) {\n        decoded[key] = /\\%/.test(value) ? tryDecodeURIComponent(value) : value;\n      }\n    }\n    return decoded;\n  }\n  #getParamValue(paramKey) {\n    return this.#matchResult[1] ? this.#matchResult[1][paramKey] : paramKey;\n  }\n  query(key) {\n    return getQueryParam(this.url, key);\n  }\n  queries(key) {\n    return getQueryParams(this.url, key);\n  }\n  header(name) {\n    if (name) {\n      return this.raw.headers.get(name) ?? void 0;\n    }\n    const headerData = {};\n    this.raw.headers.forEach((value, key) => {\n      headerData[key] = value;\n    });\n    return headerData;\n  }\n  async parseBody(options) {\n    return this.bodyCache.parsedBody ??= await parseBody(this, options);\n  }\n  #cachedBody = (key) => {\n    const { bodyCache, raw } = this;\n    const cachedBody = bodyCache[key];\n    if (cachedBody) {\n      return cachedBody;\n    }\n    const anyCachedKey = Object.keys(bodyCache)[0];\n    if (anyCachedKey) {\n      return bodyCache[anyCachedKey].then((body) => {\n        if (anyCachedKey === \"json\") {\n          body = JSON.stringify(body);\n        }\n        return new Response(body)[key]();\n      });\n    }\n    return bodyCache[key] = raw[key]();\n  };\n  /**\n   * `.json()` can parse Request body of type `application/json`\n   *\n   * @see {@link https://hono.dev/docs/api/request#json}\n   *\n   * @example\n   * ```ts\n   * app.post('/entry', async (c) => {\n   *   const body = await c.req.json()\n   * })\n   * ```\n   */\n  json() {\n    return this.#cachedBody(\"text\").then((text) => JSON.parse(text));\n  }\n  /**\n   * `.text()` can parse Request body of type `text/plain`\n   *\n   * @see {@link https://hono.dev/docs/api/request#text}\n   *\n   * @example\n   * ```ts\n   * app.post('/entry', async (c) => {\n   *   const body = await c.req.text()\n   * })\n   * ```\n   */\n  text() {\n    return this.#cachedBody(\"text\");\n  }\n  /**\n   * `.arrayBuffer()` parse Request body as an `ArrayBuffer`\n   *\n   * @see {@link https://hono.dev/docs/api/request#arraybuffer}\n   *\n   * @example\n   * ```ts\n   * app.post('/entry', async (c) => {\n   *   const body = await c.req.arrayBuffer()\n   * })\n   * ```\n   */\n  arrayBuffer() {\n    return this.#cachedBody(\"arrayBuffer\");\n  }\n  /**\n   * Parses the request body as a `Blob`.\n   * @example\n   * ```ts\n   * app.post('/entry', async (c) => {\n   *   const body = await c.req.blob();\n   * });\n   * ```\n   * @see https://hono.dev/docs/api/request#blob\n   */\n  blob() {\n    return this.#cachedBody(\"blob\");\n  }\n  /**\n   * Parses the request body as `FormData`.\n   * @example\n   * ```ts\n   * app.post('/entry', async (c) => {\n   *   const body = await c.req.formData();\n   * });\n   * ```\n   * @see https://hono.dev/docs/api/request#formdata\n   */\n  formData() {\n    return this.#cachedBody(\"formData\");\n  }\n  /**\n   * Adds validated data to the request.\n   *\n   * @param target - The target of the validation.\n   * @param data - The validated data to add.\n   */\n  addValidatedData(target, data) {\n    this.#validatedData[target] = data;\n  }\n  valid(target) {\n    return this.#validatedData[target];\n  }\n  /**\n   * `.url()` can get the request url strings.\n   *\n   * @see {@link https://hono.dev/docs/api/request#url}\n   *\n   * @example\n   * ```ts\n   * app.get('/about/me', (c) => {\n   *   const url = c.req.url // `http://localhost:8787/about/me`\n   *   ...\n   * })\n   * ```\n   */\n  get url() {\n    return this.raw.url;\n  }\n  /**\n   * `.method()` can get the method name of the request.\n   *\n   * @see {@link https://hono.dev/docs/api/request#method}\n   *\n   * @example\n   * ```ts\n   * app.get('/about/me', (c) => {\n   *   const method = c.req.method // `GET`\n   * })\n   * ```\n   */\n  get method() {\n    return this.raw.method;\n  }\n  get [GET_MATCH_RESULT]() {\n    return this.#matchResult;\n  }\n  /**\n   * `.matchedRoutes()` can return a matched route in the handler\n   *\n   * @deprecated\n   *\n   * Use matchedRoutes helper defined in \"hono/route\" instead.\n   *\n   * @see {@link https://hono.dev/docs/api/request#matchedroutes}\n   *\n   * @example\n   * ```ts\n   * app.use('*', async function logger(c, next) {\n   *   await next()\n   *   c.req.matchedRoutes.forEach(({ handler, method, path }, i) => {\n   *     const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]')\n   *     console.log(\n   *       method,\n   *       ' ',\n   *       path,\n   *       ' '.repeat(Math.max(10 - path.length, 0)),\n   *       name,\n   *       i === c.req.routeIndex ? '<- respond from here' : ''\n   *     )\n   *   })\n   * })\n   * ```\n   */\n  get matchedRoutes() {\n    return this.#matchResult[0].map(([[, route]]) => route);\n  }\n  /**\n   * `routePath()` can retrieve the path registered within the handler\n   *\n   * @deprecated\n   *\n   * Use routePath helper defined in \"hono/route\" instead.\n   *\n   * @see {@link https://hono.dev/docs/api/request#routepath}\n   *\n   * @example\n   * ```ts\n   * app.get('/posts/:id', (c) => {\n   *   return c.json({ path: c.req.routePath })\n   * })\n   * ```\n   */\n  get routePath() {\n    return this.#matchResult[0].map(([[, route]]) => route)[this.routeIndex].path;\n  }\n};\nvar cloneRawRequest = async (req) => {\n  if (!req.raw.bodyUsed) {\n    return req.raw.clone();\n  }\n  const cacheKey = Object.keys(req.bodyCache)[0];\n  if (!cacheKey) {\n    throw new HTTPException(500, {\n      message: \"Cannot clone request: body was already consumed and not cached. Please use HonoRequest methods (e.g., req.json(), req.text()) instead of consuming req.raw directly.\"\n    });\n  }\n  const requestInit = {\n    body: await req[cacheKey](),\n    cache: req.raw.cache,\n    credentials: req.raw.credentials,\n    headers: req.header(),\n    integrity: req.raw.integrity,\n    keepalive: req.raw.keepalive,\n    method: req.method,\n    mode: req.raw.mode,\n    redirect: req.raw.redirect,\n    referrer: req.raw.referrer,\n    referrerPolicy: req.raw.referrerPolicy,\n    signal: req.raw.signal\n  };\n  return new Request(req.url, requestInit);\n};\nexport {\n  HonoRequest,\n  cloneRawRequest\n};\n", "// src/utils/html.ts\nvar HtmlEscapedCallbackPhase = {\n  Stringify: 1,\n  BeforeStream: 2,\n  Stream: 3\n};\nvar raw = (value, callbacks) => {\n  const escapedString = new String(value);\n  escapedString.isEscaped = true;\n  escapedString.callbacks = callbacks;\n  return escapedString;\n};\nvar escapeRe = /[&<>'\"]/;\nvar stringBufferToString = async (buffer, callbacks) => {\n  let str = \"\";\n  callbacks ||= [];\n  const resolvedBuffer = await Promise.all(buffer);\n  for (let i = resolvedBuffer.length - 1; ; i--) {\n    str += resolvedBuffer[i];\n    i--;\n    if (i < 0) {\n      break;\n    }\n    let r = resolvedBuffer[i];\n    if (typeof r === \"object\") {\n      callbacks.push(...r.callbacks || []);\n    }\n    const isEscaped = r.isEscaped;\n    r = await (typeof r === \"object\" ? r.toString() : r);\n    if (typeof r === \"object\") {\n      callbacks.push(...r.callbacks || []);\n    }\n    if (r.isEscaped ?? isEscaped) {\n      str += r;\n    } else {\n      const buf = [str];\n      escapeToBuffer(r, buf);\n      str = buf[0];\n    }\n  }\n  return raw(str, callbacks);\n};\nvar escapeToBuffer = (str, buffer) => {\n  const match = str.search(escapeRe);\n  if (match === -1) {\n    buffer[0] += str;\n    return;\n  }\n  let escape;\n  let index;\n  let lastIndex = 0;\n  for (index = match; index < str.length; index++) {\n    switch (str.charCodeAt(index)) {\n      case 34:\n        escape = \"&quot;\";\n        break;\n      case 39:\n        escape = \"&#39;\";\n        break;\n      case 38:\n        escape = \"&amp;\";\n        break;\n      case 60:\n        escape = \"&lt;\";\n        break;\n      case 62:\n        escape = \"&gt;\";\n        break;\n      default:\n        continue;\n    }\n    buffer[0] += str.substring(lastIndex, index) + escape;\n    lastIndex = index + 1;\n  }\n  buffer[0] += str.substring(lastIndex, index);\n};\nvar resolveCallbackSync = (str) => {\n  const callbacks = str.callbacks;\n  if (!callbacks?.length) {\n    return str;\n  }\n  const buffer = [str];\n  const context = {};\n  callbacks.forEach((c) => c({ phase: HtmlEscapedCallbackPhase.Stringify, buffer, context }));\n  return buffer[0];\n};\nvar resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {\n  if (typeof str === \"object\" && !(str instanceof String)) {\n    if (!(str instanceof Promise)) {\n      str = str.toString();\n    }\n    if (str instanceof Promise) {\n      str = await str;\n    }\n  }\n  const callbacks = str.callbacks;\n  if (!callbacks?.length) {\n    return Promise.resolve(str);\n  }\n  if (buffer) {\n    buffer[0] += str;\n  } else {\n    buffer = [str];\n  }\n  const resStr = Promise.all(callbacks.map((c) => c({ phase, buffer, context }))).then(\n    (res) => Promise.all(\n      res.filter(Boolean).map((str2) => resolveCallback(str2, phase, false, context, buffer))\n    ).then(() => buffer[0])\n  );\n  if (preserveCallbacks) {\n    return raw(await resStr, callbacks);\n  } else {\n    return resStr;\n  }\n};\nexport {\n  HtmlEscapedCallbackPhase,\n  escapeToBuffer,\n  raw,\n  resolveCallback,\n  resolveCallbackSync,\n  stringBufferToString\n};\n", "// src/context.ts\nimport { HonoRequest } from \"./request.js\";\nimport { HtmlEscapedCallbackPhase, resolveCallback } from \"./utils/html.js\";\nvar TEXT_PLAIN = \"text/plain; charset=UTF-8\";\nvar setDefaultContentType = (contentType, headers) => {\n  return {\n    \"Content-Type\": contentType,\n    ...headers\n  };\n};\nvar createResponseInstance = (body, init) => new Response(body, init);\nvar Context = class {\n  #rawRequest;\n  #req;\n  /**\n   * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers.\n   *\n   * @see {@link https://hono.dev/docs/api/context#env}\n   *\n   * @example\n   * ```ts\n   * // Environment object for Cloudflare Workers\n   * app.get('*', async c => {\n   *   const counter = c.env.COUNTER\n   * })\n   * ```\n   */\n  env = {};\n  #var;\n  finalized = false;\n  /**\n   * `.error` can get the error object from the middleware if the Handler throws an error.\n   *\n   * @see {@link https://hono.dev/docs/api/context#error}\n   *\n   * @example\n   * ```ts\n   * app.use('*', async (c, next) => {\n   *   await next()\n   *   if (c.error) {\n   *     // do something...\n   *   }\n   * })\n   * ```\n   */\n  error;\n  #status;\n  #executionCtx;\n  #res;\n  #layout;\n  #renderer;\n  #notFoundHandler;\n  #preparedHeaders;\n  #matchResult;\n  #path;\n  /**\n   * Creates an instance of the Context class.\n   *\n   * @param req - The Request object.\n   * @param options - Optional configuration options for the context.\n   */\n  constructor(req, options) {\n    this.#rawRequest = req;\n    if (options) {\n      this.#executionCtx = options.executionCtx;\n      this.env = options.env;\n      this.#notFoundHandler = options.notFoundHandler;\n      this.#path = options.path;\n      this.#matchResult = options.matchResult;\n    }\n  }\n  /**\n   * `.req` is the instance of {@link HonoRequest}.\n   */\n  get req() {\n    this.#req ??= new HonoRequest(this.#rawRequest, this.#path, this.#matchResult);\n    return this.#req;\n  }\n  /**\n   * @see {@link https://hono.dev/docs/api/context#event}\n   * The FetchEvent associated with the current request.\n   *\n   * @throws Will throw an error if the context does not have a FetchEvent.\n   */\n  get event() {\n    if (this.#executionCtx && \"respondWith\" in this.#executionCtx) {\n      return this.#executionCtx;\n    } else {\n      throw Error(\"This context has no FetchEvent\");\n    }\n  }\n  /**\n   * @see {@link https://hono.dev/docs/api/context#executionctx}\n   * The ExecutionContext associated with the current request.\n   *\n   * @throws Will throw an error if the context does not have an ExecutionContext.\n   */\n  get executionCtx() {\n    if (this.#executionCtx) {\n      return this.#executionCtx;\n    } else {\n      throw Error(\"This context has no ExecutionContext\");\n    }\n  }\n  /**\n   * @see {@link https://hono.dev/docs/api/context#res}\n   * The Response object for the current request.\n   */\n  get res() {\n    return this.#res ||= createResponseInstance(null, {\n      headers: this.#preparedHeaders ??= new Headers()\n    });\n  }\n  /**\n   * Sets the Response object for the current request.\n   *\n   * @param _res - The Response object to set.\n   */\n  set res(_res) {\n    if (this.#res && _res) {\n      _res = createResponseInstance(_res.body, _res);\n      for (const [k, v] of this.#res.headers.entries()) {\n        if (k === \"content-type\") {\n          continue;\n        }\n        if (k === \"set-cookie\") {\n          const cookies = this.#res.headers.getSetCookie();\n          _res.headers.delete(\"set-cookie\");\n          for (const cookie of cookies) {\n            _res.headers.append(\"set-cookie\", cookie);\n          }\n        } else {\n          _res.headers.set(k, v);\n        }\n      }\n    }\n    this.#res = _res;\n    this.finalized = true;\n  }\n  /**\n   * `.render()` can create a response within a layout.\n   *\n   * @see {@link https://hono.dev/docs/api/context#render-setrenderer}\n   *\n   * @example\n   * ```ts\n   * app.get('/', (c) => {\n   *   return c.render('Hello!')\n   * })\n   * ```\n   */\n  render = (...args) => {\n    this.#renderer ??= (content) => this.html(content);\n    return this.#renderer(...args);\n  };\n  /**\n   * Sets the layout for the response.\n   *\n   * @param layout - The layout to set.\n   * @returns The layout function.\n   */\n  setLayout = (layout) => this.#layout = layout;\n  /**\n   * Gets the current layout for the response.\n   *\n   * @returns The current layout function.\n   */\n  getLayout = () => this.#layout;\n  /**\n   * `.setRenderer()` can set the layout in the custom middleware.\n   *\n   * @see {@link https://hono.dev/docs/api/context#render-setrenderer}\n   *\n   * @example\n   * ```tsx\n   * app.use('*', async (c, next) => {\n   *   c.setRenderer((content) => {\n   *     return c.html(\n   *       <html>\n   *         <body>\n   *           <p>{content}</p>\n   *         </body>\n   *       </html>\n   *     )\n   *   })\n   *   await next()\n   * })\n   * ```\n   */\n  setRenderer = (renderer) => {\n    this.#renderer = renderer;\n  };\n  /**\n   * `.header()` can set headers.\n   *\n   * @see {@link https://hono.dev/docs/api/context#header}\n   *\n   * @example\n   * ```ts\n   * app.get('/welcome', (c) => {\n   *   // Set headers\n   *   c.header('X-Message', 'Hello!')\n   *   c.header('Content-Type', 'text/plain')\n   *\n   *   return c.body('Thank you for coming')\n   * })\n   * ```\n   */\n  header = (name, value, options) => {\n    if (this.finalized) {\n      this.#res = createResponseInstance(this.#res.body, this.#res);\n    }\n    const headers = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers();\n    if (value === void 0) {\n      headers.delete(name);\n    } else if (options?.append) {\n      headers.append(name, value);\n    } else {\n      headers.set(name, value);\n    }\n  };\n  status = (status) => {\n    this.#status = status;\n  };\n  /**\n   * `.set()` can set the value specified by the key.\n   *\n   * @see {@link https://hono.dev/docs/api/context#set-get}\n   *\n   * @example\n   * ```ts\n   * app.use('*', async (c, next) => {\n   *   c.set('message', 'Hono is hot!!')\n   *   await next()\n   * })\n   * ```\n   */\n  set = (key, value) => {\n    this.#var ??= /* @__PURE__ */ new Map();\n    this.#var.set(key, value);\n  };\n  /**\n   * `.get()` can use the value specified by the key.\n   *\n   * @see {@link https://hono.dev/docs/api/context#set-get}\n   *\n   * @example\n   * ```ts\n   * app.get('/', (c) => {\n   *   const message = c.get('message')\n   *   return c.text(`The message is \"${message}\"`)\n   * })\n   * ```\n   */\n  get = (key) => {\n    return this.#var ? this.#var.get(key) : void 0;\n  };\n  /**\n   * `.var` can access the value of a variable.\n   *\n   * @see {@link https://hono.dev/docs/api/context#var}\n   *\n   * @example\n   * ```ts\n   * const result = c.var.client.oneMethod()\n   * ```\n   */\n  // c.var.propName is a read-only\n  get var() {\n    if (!this.#var) {\n      return {};\n    }\n    return Object.fromEntries(this.#var);\n  }\n  #newResponse(data, arg, headers) {\n    const responseHeaders = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers();\n    if (typeof arg === \"object\" && \"headers\" in arg) {\n      const argHeaders = arg.headers instanceof Headers ? arg.headers : new Headers(arg.headers);\n      for (const [key, value] of argHeaders) {\n        if (key.toLowerCase() === \"set-cookie\") {\n          responseHeaders.append(key, value);\n        } else {\n          responseHeaders.set(key, value);\n        }\n      }\n    }\n    if (headers) {\n      for (const [k, v] of Object.entries(headers)) {\n        if (typeof v === \"string\") {\n          responseHeaders.set(k, v);\n        } else {\n          responseHeaders.delete(k);\n          for (const v2 of v) {\n            responseHeaders.append(k, v2);\n          }\n        }\n      }\n    }\n    const status = typeof arg === \"number\" ? arg : arg?.status ?? this.#status;\n    return createResponseInstance(data, { status, headers: responseHeaders });\n  }\n  newResponse = (...args) => this.#newResponse(...args);\n  /**\n   * `.body()` can return the HTTP response.\n   * You can set headers with `.header()` and set HTTP status code with `.status`.\n   * This can also be set in `.text()`, `.json()` and so on.\n   *\n   * @see {@link https://hono.dev/docs/api/context#body}\n   *\n   * @example\n   * ```ts\n   * app.get('/welcome', (c) => {\n   *   // Set headers\n   *   c.header('X-Message', 'Hello!')\n   *   c.header('Content-Type', 'text/plain')\n   *   // Set HTTP status code\n   *   c.status(201)\n   *\n   *   // Return the response body\n   *   return c.body('Thank you for coming')\n   * })\n   * ```\n   */\n  body = (data, arg, headers) => this.#newResponse(data, arg, headers);\n  /**\n   * `.text()` can render text as `Content-Type:text/plain`.\n   *\n   * @see {@link https://hono.dev/docs/api/context#text}\n   *\n   * @example\n   * ```ts\n   * app.get('/say', (c) => {\n   *   return c.text('Hello!')\n   * })\n   * ```\n   */\n  text = (text, arg, headers) => {\n    return !this.#preparedHeaders && !this.#status && !arg && !headers && !this.finalized ? new Response(text) : this.#newResponse(\n      text,\n      arg,\n      setDefaultContentType(TEXT_PLAIN, headers)\n    );\n  };\n  /**\n   * `.json()` can render JSON as `Content-Type:application/json`.\n   *\n   * @see {@link https://hono.dev/docs/api/context#json}\n   *\n   * @example\n   * ```ts\n   * app.get('/api', (c) => {\n   *   return c.json({ message: 'Hello!' })\n   * })\n   * ```\n   */\n  json = (object, arg, headers) => {\n    return this.#newResponse(\n      JSON.stringify(object),\n      arg,\n      setDefaultContentType(\"application/json\", headers)\n    );\n  };\n  html = (html, arg, headers) => {\n    const res = (html2) => this.#newResponse(html2, arg, setDefaultContentType(\"text/html; charset=UTF-8\", headers));\n    return typeof html === \"object\" ? resolveCallback(html, HtmlEscapedCallbackPhase.Stringify, false, {}).then(res) : res(html);\n  };\n  /**\n   * `.redirect()` can Redirect, default status code is 302.\n   *\n   * @see {@link https://hono.dev/docs/api/context#redirect}\n   *\n   * @example\n   * ```ts\n   * app.get('/redirect', (c) => {\n   *   return c.redirect('/')\n   * })\n   * app.get('/redirect-permanently', (c) => {\n   *   return c.redirect('/', 301)\n   * })\n   * ```\n   */\n  redirect = (location, status) => {\n    const locationString = String(location);\n    this.header(\n      \"Location\",\n      // Multibyes should be encoded\n      // eslint-disable-next-line no-control-regex\n      !/[^\\x00-\\xFF]/.test(locationString) ? locationString : encodeURI(locationString)\n    );\n    return this.newResponse(null, status ?? 302);\n  };\n  /**\n   * `.notFound()` can return the Not Found Response.\n   *\n   * @see {@link https://hono.dev/docs/api/context#notfound}\n   *\n   * @example\n   * ```ts\n   * app.get('/notfound', (c) => {\n   *   return c.notFound()\n   * })\n   * ```\n   */\n  notFound = () => {\n    this.#notFoundHandler ??= () => createResponseInstance();\n    return this.#notFoundHandler(this);\n  };\n};\nexport {\n  Context,\n  TEXT_PLAIN\n};\n", "// src/router.ts\nvar METHOD_NAME_ALL = \"ALL\";\nvar METHOD_NAME_ALL_LOWERCASE = \"all\";\nvar METHODS = [\"get\", \"post\", \"put\", \"delete\", \"options\", \"patch\"];\nvar MESSAGE_MATCHER_IS_ALREADY_BUILT = \"Can not add a route since the matcher is already built.\";\nvar UnsupportedPathError = class extends Error {\n};\nexport {\n  MESSAGE_MATCHER_IS_ALREADY_BUILT,\n  METHODS,\n  METHOD_NAME_ALL,\n  METHOD_NAME_ALL_LOWERCASE,\n  UnsupportedPathError\n};\n", "// src/utils/constants.ts\nvar COMPOSED_HANDLER = \"__COMPOSED_HANDLER\";\nexport {\n  COMPOSED_HANDLER\n};\n", "// src/hono-base.ts\nimport { compose } from \"./compose.js\";\nimport { Context } from \"./context.js\";\nimport { METHODS, METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE } from \"./router.js\";\nimport { COMPOSED_HANDLER } from \"./utils/constants.js\";\nimport { getPath, getPathNoStrict, mergePath } from \"./utils/url.js\";\nvar notFoundHandler = (c) => {\n  return c.text(\"404 Not Found\", 404);\n};\nvar errorHandler = (err, c) => {\n  if (\"getResponse\" in err) {\n    const res = err.getResponse();\n    return c.newResponse(res.body, res);\n  }\n  console.error(err);\n  return c.text(\"Internal Server Error\", 500);\n};\nvar Hono = class _Hono {\n  get;\n  post;\n  put;\n  delete;\n  options;\n  patch;\n  all;\n  on;\n  use;\n  /*\n    This class is like an abstract class and does not have a router.\n    To use it, inherit the class and implement router in the constructor.\n  */\n  router;\n  getPath;\n  // Cannot use `#` because it requires visibility at JavaScript runtime.\n  _basePath = \"/\";\n  #path = \"/\";\n  routes = [];\n  constructor(options = {}) {\n    const allMethods = [...METHODS, METHOD_NAME_ALL_LOWERCASE];\n    allMethods.forEach((method) => {\n      this[method] = (args1, ...args) => {\n        if (typeof args1 === \"string\") {\n          this.#path = args1;\n        } else {\n          this.#addRoute(method, this.#path, args1);\n        }\n        args.forEach((handler) => {\n          this.#addRoute(method, this.#path, handler);\n        });\n        return this;\n      };\n    });\n    this.on = (method, path, ...handlers) => {\n      for (const p of [path].flat()) {\n        this.#path = p;\n        for (const m of [method].flat()) {\n          handlers.map((handler) => {\n            this.#addRoute(m.toUpperCase(), this.#path, handler);\n          });\n        }\n      }\n      return this;\n    };\n    this.use = (arg1, ...handlers) => {\n      if (typeof arg1 === \"string\") {\n        this.#path = arg1;\n      } else {\n        this.#path = \"*\";\n        handlers.unshift(arg1);\n      }\n      handlers.forEach((handler) => {\n        this.#addRoute(METHOD_NAME_ALL, this.#path, handler);\n      });\n      return this;\n    };\n    const { strict, ...optionsWithoutStrict } = options;\n    Object.assign(this, optionsWithoutStrict);\n    this.getPath = strict ?? true ? options.getPath ?? getPath : getPathNoStrict;\n  }\n  #clone() {\n    const clone = new _Hono({\n      router: this.router,\n      getPath: this.getPath\n    });\n    clone.errorHandler = this.errorHandler;\n    clone.#notFoundHandler = this.#notFoundHandler;\n    clone.routes = this.routes;\n    return clone;\n  }\n  #notFoundHandler = notFoundHandler;\n  // Cannot use `#` because it requires visibility at JavaScript runtime.\n  errorHandler = errorHandler;\n  /**\n   * `.route()` allows grouping other Hono instance in routes.\n   *\n   * @see {@link https://hono.dev/docs/api/routing#grouping}\n   *\n   * @param {string} path - base Path\n   * @param {Hono} app - other Hono instance\n   * @returns {Hono} routed Hono instance\n   *\n   * @example\n   * ```ts\n   * const app = new Hono()\n   * const app2 = new Hono()\n   *\n   * app2.get(\"/user\", (c) => c.text(\"user\"))\n   * app.route(\"/api\", app2) // GET /api/user\n   * ```\n   */\n  route(path, app) {\n    const subApp = this.basePath(path);\n    app.routes.map((r) => {\n      let handler;\n      if (app.errorHandler === errorHandler) {\n        handler = r.handler;\n      } else {\n        handler = async (c, next) => (await compose([], app.errorHandler)(c, () => r.handler(c, next))).res;\n        handler[COMPOSED_HANDLER] = r.handler;\n      }\n      subApp.#addRoute(r.method, r.path, handler);\n    });\n    return this;\n  }\n  /**\n   * `.basePath()` allows base paths to be specified.\n   *\n   * @see {@link https://hono.dev/docs/api/routing#base-path}\n   *\n   * @param {string} path - base Path\n   * @returns {Hono} changed Hono instance\n   *\n   * @example\n   * ```ts\n   * const api = new Hono().basePath('/api')\n   * ```\n   */\n  basePath(path) {\n    const subApp = this.#clone();\n    subApp._basePath = mergePath(this._basePath, path);\n    return subApp;\n  }\n  /**\n   * `.onError()` handles an error and returns a customized Response.\n   *\n   * @see {@link https://hono.dev/docs/api/hono#error-handling}\n   *\n   * @param {ErrorHandler} handler - request Handler for error\n   * @returns {Hono} changed Hono instance\n   *\n   * @example\n   * ```ts\n   * app.onError((err, c) => {\n   *   console.error(`${err}`)\n   *   return c.text('Custom Error Message', 500)\n   * })\n   * ```\n   */\n  onError = (handler) => {\n    this.errorHandler = handler;\n    return this;\n  };\n  /**\n   * `.notFound()` allows you to customize a Not Found Response.\n   *\n   * @see {@link https://hono.dev/docs/api/hono#not-found}\n   *\n   * @param {NotFoundHandler} handler - request handler for not-found\n   * @returns {Hono} changed Hono instance\n   *\n   * @example\n   * ```ts\n   * app.notFound((c) => {\n   *   return c.text('Custom 404 Message', 404)\n   * })\n   * ```\n   */\n  notFound = (handler) => {\n    this.#notFoundHandler = handler;\n    return this;\n  };\n  /**\n   * `.mount()` allows you to mount applications built with other frameworks into your Hono application.\n   *\n   * @see {@link https://hono.dev/docs/api/hono#mount}\n   *\n   * @param {string} path - base Path\n   * @param {Function} applicationHandler - other Request Handler\n   * @param {MountOptions} [options] - options of `.mount()`\n   * @returns {Hono} mounted Hono instance\n   *\n   * @example\n   * ```ts\n   * import { Router as IttyRouter } from 'itty-router'\n   * import { Hono } from 'hono'\n   * // Create itty-router application\n   * const ittyRouter = IttyRouter()\n   * // GET /itty-router/hello\n   * ittyRouter.get('/hello', () => new Response('Hello from itty-router'))\n   *\n   * const app = new Hono()\n   * app.mount('/itty-router', ittyRouter.handle)\n   * ```\n   *\n   * @example\n   * ```ts\n   * const app = new Hono()\n   * // Send the request to another application without modification.\n   * app.mount('/app', anotherApp, {\n   *   replaceRequest: (req) => req,\n   * })\n   * ```\n   */\n  mount(path, applicationHandler, options) {\n    let replaceRequest;\n    let optionHandler;\n    if (options) {\n      if (typeof options === \"function\") {\n        optionHandler = options;\n      } else {\n        optionHandler = options.optionHandler;\n        if (options.replaceRequest === false) {\n          replaceRequest = (request) => request;\n        } else {\n          replaceRequest = options.replaceRequest;\n        }\n      }\n    }\n    const getOptions = optionHandler ? (c) => {\n      const options2 = optionHandler(c);\n      return Array.isArray(options2) ? options2 : [options2];\n    } : (c) => {\n      let executionContext = void 0;\n      try {\n        executionContext = c.executionCtx;\n      } catch {\n      }\n      return [c.env, executionContext];\n    };\n    replaceRequest ||= (() => {\n      const mergedPath = mergePath(this._basePath, path);\n      const pathPrefixLength = mergedPath === \"/\" ? 0 : mergedPath.length;\n      return (request) => {\n        const url = new URL(request.url);\n        url.pathname = url.pathname.slice(pathPrefixLength) || \"/\";\n        return new Request(url, request);\n      };\n    })();\n    const handler = async (c, next) => {\n      const res = await applicationHandler(replaceRequest(c.req.raw), ...getOptions(c));\n      if (res) {\n        return res;\n      }\n      await next();\n    };\n    this.#addRoute(METHOD_NAME_ALL, mergePath(path, \"*\"), handler);\n    return this;\n  }\n  #addRoute(method, path, handler) {\n    method = method.toUpperCase();\n    path = mergePath(this._basePath, path);\n    const r = { basePath: this._basePath, path, method, handler };\n    this.router.add(method, path, [handler, r]);\n    this.routes.push(r);\n  }\n  #handleError(err, c) {\n    if (err instanceof Error) {\n      return this.errorHandler(err, c);\n    }\n    throw err;\n  }\n  #dispatch(request, executionCtx, env, method) {\n    if (method === \"HEAD\") {\n      return (async () => new Response(null, await this.#dispatch(request, executionCtx, env, \"GET\")))();\n    }\n    const path = this.getPath(request, { env });\n    const matchResult = this.router.match(method, path);\n    const c = new Context(request, {\n      path,\n      matchResult,\n      env,\n      executionCtx,\n      notFoundHandler: this.#notFoundHandler\n    });\n    if (matchResult[0].length === 1) {\n      let res;\n      try {\n        res = matchResult[0][0][0][0](c, async () => {\n          c.res = await this.#notFoundHandler(c);\n        });\n      } catch (err) {\n        return this.#handleError(err, c);\n      }\n      return res instanceof Promise ? res.then(\n        (resolved) => resolved || (c.finalized ? c.res : this.#notFoundHandler(c))\n      ).catch((err) => this.#handleError(err, c)) : res ?? this.#notFoundHandler(c);\n    }\n    const composed = compose(matchResult[0], this.errorHandler, this.#notFoundHandler);\n    return (async () => {\n      try {\n        const context = await composed(c);\n        if (!context.finalized) {\n          throw new Error(\n            \"Context is not finalized. Did you forget to return a Response object or `await next()`?\"\n          );\n        }\n        return context.res;\n      } catch (err) {\n        return this.#handleError(err, c);\n      }\n    })();\n  }\n  /**\n   * `.fetch()` will be entry point of your app.\n   *\n   * @see {@link https://hono.dev/docs/api/hono#fetch}\n   *\n   * @param {Request} request - request Object of request\n   * @param {Env} Env - env Object\n   * @param {ExecutionContext} - context of execution\n   * @returns {Response | Promise<Response>} response of request\n   *\n   */\n  fetch = (request, ...rest) => {\n    return this.#dispatch(request, rest[1], rest[0], request.method);\n  };\n  /**\n   * `.request()` is a useful method for testing.\n   * You can pass a URL or pathname to send a GET request.\n   * app will return a Response object.\n   * ```ts\n   * test('GET /hello is ok', async () => {\n   *   const res = await app.request('/hello')\n   *   expect(res.status).toBe(200)\n   * })\n   * ```\n   * @see https://hono.dev/docs/api/hono#request\n   */\n  request = (input, requestInit, Env, executionCtx) => {\n    if (input instanceof Request) {\n      return this.fetch(requestInit ? new Request(input, requestInit) : input, Env, executionCtx);\n    }\n    input = input.toString();\n    return this.fetch(\n      new Request(\n        /^https?:\\/\\//.test(input) ? input : `http://localhost${mergePath(\"/\", input)}`,\n        requestInit\n      ),\n      Env,\n      executionCtx\n    );\n  };\n  /**\n   * `.fire()` automatically adds a global fetch event listener.\n   * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers.\n   * @deprecated\n   * Use `fire` from `hono/service-worker` instead.\n   * ```ts\n   * import { Hono } from 'hono'\n   * import { fire } from 'hono/service-worker'\n   *\n   * const app = new Hono()\n   * // ...\n   * fire(app)\n   * ```\n   * @see https://hono.dev/docs/api/hono#fire\n   * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API\n   * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/\n   */\n  fire = () => {\n    addEventListener(\"fetch\", (event) => {\n      event.respondWith(this.#dispatch(event.request, event, void 0, event.request.method));\n    });\n  };\n};\nexport {\n  Hono as HonoBase\n};\n", "// src/router/pattern-router/router.ts\nimport { METHOD_NAME_ALL, UnsupportedPathError } from \"../../router.js\";\nvar emptyParams = /* @__PURE__ */ Object.create(null);\nvar PatternRouter = class {\n  name = \"PatternRouter\";\n  #routes = [];\n  add(method, path, handler) {\n    const endsWithWildcard = path.at(-1) === \"*\";\n    if (endsWithWildcard) {\n      path = path.slice(0, -2);\n    }\n    if (path.at(-1) === \"?\") {\n      path = path.slice(0, -1);\n      this.add(method, path.replace(/\\/[^/]+$/, \"\"), handler);\n    }\n    const parts = (path.match(/\\/?(:\\w+(?:{(?:(?:{[\\d,]+})|[^}])+})?)|\\/?[^\\/\\?]+/g) || []).map(\n      (part) => {\n        const match = part.match(/^\\/:([^{]+)(?:{(.*)})?/);\n        return match ? `/(?<${match[1]}>${match[2] || \"[^/]+\"})` : part === \"/*\" ? \"/[^/]+\" : part.replace(/[.\\\\+*[^\\]$()]/g, \"\\\\$&\");\n      }\n    );\n    try {\n      this.#routes.push([\n        new RegExp(`^${parts.join(\"\")}${endsWithWildcard ? \"\" : \"/?$\"}`),\n        method,\n        handler\n      ]);\n    } catch {\n      throw new UnsupportedPathError();\n    }\n  }\n  match(method, path) {\n    const handlers = [];\n    for (let i = 0, len = this.#routes.length; i < len; i++) {\n      const [pattern, routeMethod, handler] = this.#routes[i];\n      if (routeMethod === method || routeMethod === METHOD_NAME_ALL) {\n        const match = pattern.exec(path);\n        if (match) {\n          handlers.push([handler, match.groups || emptyParams]);\n        }\n      }\n    }\n    return [handlers];\n  }\n};\nexport {\n  PatternRouter\n};\n", "// src/preset/tiny.ts\nimport { HonoBase } from \"../hono-base.js\";\nimport { PatternRouter } from \"../router/pattern-router/index.js\";\nvar Hono = class extends HonoBase {\n  constructor(options = {}) {\n    super(options);\n    this.router = new PatternRouter();\n  }\n};\nexport {\n  Hono\n};\n", "// Local Explorer Worker\n// Serves the explorer UI and provides a REST API for viewing and manipulating user resources\n\nimport { Hono } from \"hono/tiny\";\nimport mime from \"mime\";\nimport { CorePaths } from \"../core\";\nimport { fetchFromPeer, getPeerUrlsIfAggregating } from \"./aggregation\";\nimport { errorResponse, validateQuery, validateRequestBody } from \"./common\";\nimport { wrapResponse } from \"./common\";\nimport {\n\tzD1ListDatabasesData,\n\tzD1RawDatabaseQueryData,\n\tzDurableObjectsNamespaceListObjectsData,\n\tzDurableObjectsNamespaceQuerySqliteData,\n\tzR2BucketDeleteObjectsData,\n\tzR2BucketListObjectsData,\n\tzWorkersKvNamespaceGetMultipleKeyValuePairsData,\n\tzWorkersKvNamespaceListANamespaceSKeysData,\n\tzWorkersKvNamespaceListNamespacesData,\n\tzObservabilityQueryData,\n\tzWorkflowsChangeInstanceStatusData,\n\tzWorkflowsListInstancesData,\n} from \"./generated/zod.gen\";\nimport openApiSpec from \"./openapi.local.json\";\nimport { listD1Databases, rawD1Database } from \"./resources/d1\";\nimport { listDONamespaces, listDOObjects, queryDOSqlite } from \"./resources/do\";\nimport {\n\tbulkGetKVValues,\n\tdeleteKVValue,\n\tgetKVValue,\n\tlistKVKeys,\n\tlistKVNamespaces,\n\tputKVValue,\n} from \"./resources/kv\";\nimport { clearTraces, runQuery } from \"./resources/observability\";\nimport {\n\tdeleteR2Objects,\n\tgetR2Object,\n\tlistR2Buckets,\n\tlistR2Objects,\n\tputR2Object,\n} from \"./resources/r2\";\nimport {\n\tchangeWorkflowInstanceStatus,\n\tcreateWorkflowInstance,\n\tdeleteWorkflow,\n\tdeleteWorkflowInstance,\n\tgetWorkflowDetails,\n\tgetWorkflowInstanceDetails,\n\tlistWorkflowInstances,\n\tlistWorkflows,\n\tsendWorkflowInstanceEvent,\n} from \"./resources/workflows\";\nimport { telemetryMiddleware } from \"./telemetry\";\nimport type {\n\tBindingIdMap,\n\tExplorerWorkerOpts,\n} from \"../../plugins/core/types\";\nimport type { WorkerRegistry } from \"../../shared/dev-registry-types\";\nimport type { CoreBindings } from \"../core\";\nimport type { WorkerdDebugPortConnector } from \"../core/dev-registry-proxy-shared.worker\";\nimport type { LocalExplorerWorker } from \"./generated\";\n\nexport type Env = {\n\t[key: string]: unknown;\n\t[CoreBindings.JSON_LOCAL_EXPLORER_BINDING_MAP]: BindingIdMap;\n\t[CoreBindings.EXPLORER_DISK]: Fetcher;\n\t// Loopback service for calling Node.js endpoints:\n\t// - /core/dev-registry for cross-instance aggregation\n\t// - /core/do-storage for DO storage listing\n\t[CoreBindings.SERVICE_LOOPBACK]: Fetcher;\n\t// Worker names for this instance, used to filter self from dev registry during aggregation\n\t[CoreBindings.JSON_LOCAL_EXPLORER_WORKER_NAMES]: string[];\n\t// Per-worker resource bindings for the /local/workers endpoint\n\t[CoreBindings.JSON_EXPLORER_WORKER_OPTS]: ExplorerWorkerOpts;\n\t[CoreBindings.JSON_TELEMETRY_CONFIG]: { enabled: boolean; deviceId?: string };\n\t[CoreBindings.DEV_REGISTRY_DEBUG_PORT]: WorkerdDebugPortConnector;\n\t// Internal observability collector's read API \u2014 only bound when local\n\t// observability is enabled (see getExplorerServices).\n\t[CoreBindings.SERVICE_OBSERVABILITY_COLLECTOR]?: Fetcher;\n};\n\nexport type AppBindings = { Bindings: Env };\n\nconst EXPLORER_API_PATH = `${CorePaths.EXPLORER}/api`;\n\nconst app = new Hono<AppBindings>().basePath(CorePaths.EXPLORER);\n\n// Global error handler - catches all uncaught errors and wraps them in an error response\napp.onError((err) => {\n\treturn errorResponse(500, 10000, err.message);\n});\n\n// ============================================================================\n// Middleware\n// ============================================================================\n\n// Host/Origin checks are done in entry.worker.ts BEFORE\n// header rewriting to ensure we check the actual browser-sent headers.\n// This middleware only handles CORS headers for valid requests.\napp.use(\"/api/*\", async (c, next) => {\n\tconst origin = c.req.header(\"Origin\");\n\n\tif (c.req.method === \"OPTIONS\") {\n\t\treturn new Response(null, {\n\t\t\tstatus: 204,\n\t\t\theaders: {\n\t\t\t\t\"Access-Control-Allow-Origin\": origin ?? \"*\",\n\t\t\t\t\"Access-Control-Allow-Methods\":\n\t\t\t\t\t\"GET, POST, PUT, PATCH, DELETE, OPTIONS\",\n\t\t\t\t\"Access-Control-Allow-Headers\":\n\t\t\t\t\t\"Content-Type, cf-metadata-only, cf-r2-custom-metadata\",\n\t\t\t\t\"Access-Control-Max-Age\": \"86400\",\n\t\t\t},\n\t\t});\n\t}\n\n\tawait next();\n\n\tif (origin) {\n\t\tc.res.headers.set(\"Access-Control-Allow-Origin\", origin);\n\t}\n});\n\napp.use(\"/api/*\", telemetryMiddleware);\n\n// ============================================================================\n// Static Asset Serving\n// ============================================================================\n\n/**\n * Get the MIME type for a file path, with charset for text types\n */\nfunction getContentType(filePath: string): string {\n\tlet contentType = mime.getType(filePath);\n\tif (contentType?.startsWith(\"text/\") && !contentType.includes(\"charset\")) {\n\t\tcontentType = `${contentType}; charset=utf-8`;\n\t}\n\treturn contentType || \"application/octet-stream\";\n}\n\napp.get(\"/*\", async (c, next) => {\n\tif (c.req.path.startsWith(EXPLORER_API_PATH)) {\n\t\t// continue on to API routes\n\t\treturn next();\n\t}\n\n\t// Some simple asset path handling...\n\tlet assetPath = c.req.path.replace(CorePaths.EXPLORER, \"\") || \"/index.html\";\n\tif (assetPath === \"/\") {\n\t\tassetPath = \"/index.html\";\n\t}\n\n\t// Try to fetch the requested asset\n\tconst response = await c.env.MINIFLARE_EXPLORER_DISK.fetch(\n\t\tnew URL(assetPath, \"http://placeholder\")\n\t);\n\n\tif (response.ok) {\n\t\tconst contentType = getContentType(assetPath);\n\t\treturn new Response(response.body, {\n\t\t\theaders: { \"Content-Type\": contentType },\n\t\t});\n\t}\n\n\t// SPA fallback - serve index.html for unmatched routes\n\tconst indexResponse = await c.env.MINIFLARE_EXPLORER_DISK.fetch(\n\t\tnew URL(\"index.html\", \"http://placeholder\")\n\t);\n\n\tif (indexResponse.ok) {\n\t\treturn new Response(indexResponse.body, {\n\t\t\theaders: { \"Content-Type\": \"text/html; charset=utf-8\" },\n\t\t});\n\t}\n\n\treturn c.notFound();\n});\n\n// ============================================================================\n// OpenAPI Spec Endpoint\n// ============================================================================\n\napp.get(\"/api\", (c) => c.json(openApiSpec));\n\n// ============================================================================\n// KV Endpoints\n// ============================================================================\n\napp.get(\n\t\"/api/storage/kv/namespaces\",\n\t// The query params are optional, so the whole schema is wrapped in an optional,\n\t// but hono's validator will always receive an object.\n\t// This just unwraps it so we can validate the inner schema.\n\t// The inner schema has all the individual params as optional\n\tvalidateQuery(zWorkersKvNamespaceListNamespacesData.shape.query.unwrap()),\n\t(c) => listKVNamespaces(c, c.req.valid(\"query\"))\n);\n\napp.get(\n\t\"/api/storage/kv/namespaces/:namespace_id/keys\",\n\tvalidateQuery(\n\t\tzWorkersKvNamespaceListANamespaceSKeysData.shape.query.unwrap()\n\t),\n\t(c) => listKVKeys(c, c.req.valid(\"query\"))\n);\n\napp.get(\"/api/storage/kv/namespaces/:namespace_id/values/:key_name\", (c) =>\n\tgetKVValue(c, c.req.param(\"namespace_id\"), c.req.param(\"key_name\"))\n);\n\napp.put(\"/api/storage/kv/namespaces/:namespace_id/values/:key_name\", (c) =>\n\tputKVValue(c, c.req.param(\"namespace_id\"), c.req.param(\"key_name\"))\n);\n\napp.delete(\"/api/storage/kv/namespaces/:namespace_id/values/:key_name\", (c) =>\n\tdeleteKVValue(c, c.req.param(\"namespace_id\"), c.req.param(\"key_name\"))\n);\n\napp.post(\n\t\"/api/storage/kv/namespaces/:namespace_id/bulk/get\",\n\tvalidateRequestBody(\n\t\tzWorkersKvNamespaceGetMultipleKeyValuePairsData.shape.body\n\t),\n\t(c) => bulkGetKVValues(c, c.req.valid(\"json\"))\n);\n\n// ============================================================================\n// D1 Endpoints\n// ============================================================================\n\napp.get(\n\t\"/api/d1/database\",\n\tvalidateQuery(zD1ListDatabasesData.shape.query.unwrap()),\n\t(c) => listD1Databases(c, c.req.valid(\"query\"))\n);\n\napp.post(\n\t\"/api/d1/database/:database_id/raw\",\n\tvalidateRequestBody(zD1RawDatabaseQueryData.shape.body),\n\t(c) => rawD1Database(c, c.req.param(\"database_id\"), c.req.valid(\"json\"))\n);\n\n// ============================================================================\n// Durable Objects Endpoints\n// ============================================================================\n\napp.get(\"/api/workers/durable_objects/namespaces\", (c) => listDONamespaces(c));\n\napp.get(\n\t\"/api/workers/durable_objects/namespaces/:namespace_id/objects\",\n\tvalidateQuery(zDurableObjectsNamespaceListObjectsData.shape.query.unwrap()),\n\t(c) => listDOObjects(c, c.req.param(\"namespace_id\"), c.req.valid(\"query\"))\n);\n\napp.post(\n\t\"/api/workers/durable_objects/namespaces/:namespace_id/query\",\n\tvalidateRequestBody(zDurableObjectsNamespaceQuerySqliteData.shape.body),\n\t(c) => queryDOSqlite(c, c.req.param(\"namespace_id\"), c.req.valid(\"json\"))\n);\n\n// ============================================================================\n// R2 Endpoints\n// ============================================================================\n\napp.get(\"/api/r2/buckets\", listR2Buckets);\n\napp.get(\n\t\"/api/r2/buckets/:bucket_name/objects\",\n\tvalidateQuery(zR2BucketListObjectsData.shape.query.unwrap()),\n\t(c) => listR2Objects(c, c.req.param(\"bucket_name\"), c.req.valid(\"query\"))\n);\n\napp.get(\"/api/r2/buckets/:bucket_name/objects/:object_key\", (c) =>\n\tgetR2Object(c, c.req.param(\"bucket_name\"), c.req.param(\"object_key\"), {\n\t\t\"cf-metadata-only\": c.req.header(\"cf-metadata-only\"),\n\t})\n);\n\napp.put(\"/api/r2/buckets/:bucket_name/objects/:object_key\", (c) =>\n\tputR2Object(c, c.req.param(\"bucket_name\"), c.req.param(\"object_key\"), {\n\t\t\"content-type\": c.req.header(\"content-type\"),\n\t\t\"cf-r2-custom-metadata\": c.req.header(\"cf-r2-custom-metadata\"),\n\t})\n);\n\napp.delete(\n\t\"/api/r2/buckets/:bucket_name/objects\",\n\tvalidateRequestBody(zR2BucketDeleteObjectsData.shape.body),\n\t(c) => deleteR2Objects(c, c.req.param(\"bucket_name\"), c.req.valid(\"json\"))\n);\n\n// ============================================================================\n// Workflows Endpoints\n// ============================================================================\n\napp.get(\"/api/workflows\", (c) => listWorkflows(c));\n\napp.get(\"/api/workflows/:workflow_name\", (c) =>\n\tgetWorkflowDetails(c, c.req.param(\"workflow_name\"))\n);\n\napp.delete(\"/api/workflows/:workflow_name\", (c) =>\n\tdeleteWorkflow(c, c.req.param(\"workflow_name\"))\n);\n\napp.get(\n\t\"/api/workflows/:workflow_name/instances\",\n\tvalidateQuery(zWorkflowsListInstancesData.shape.query.unwrap()),\n\t(c) =>\n\t\tlistWorkflowInstances(c, c.req.param(\"workflow_name\"), c.req.valid(\"query\"))\n);\n\napp.post(\"/api/workflows/:workflow_name/instances\", (c) =>\n\tcreateWorkflowInstance(c, c.req.param(\"workflow_name\"))\n);\n\napp.get(\"/api/workflows/:workflow_name/instances/:instance_id\", (c) =>\n\tgetWorkflowInstanceDetails(\n\t\tc,\n\t\tc.req.param(\"workflow_name\"),\n\t\tc.req.param(\"instance_id\")\n\t)\n);\n\napp.patch(\n\t\"/api/workflows/:workflow_name/instances/:instance_id/status\",\n\tvalidateRequestBody(zWorkflowsChangeInstanceStatusData.shape.body),\n\t(c) =>\n\t\tchangeWorkflowInstanceStatus(\n\t\t\tc,\n\t\t\tc.req.param(\"workflow_name\"),\n\t\t\tc.req.param(\"instance_id\"),\n\t\t\tc.req.valid(\"json\")\n\t\t)\n);\n\napp.post(\n\t\"/api/workflows/:workflow_name/instances/:instance_id/events/:event_type\",\n\t(c) =>\n\t\tsendWorkflowInstanceEvent(\n\t\t\tc,\n\t\t\tc.req.param(\"workflow_name\"),\n\t\t\tc.req.param(\"instance_id\"),\n\t\t\tc.req.param(\"event_type\")\n\t\t)\n);\n\napp.delete(\"/api/workflows/:workflow_name/instances/:instance_id\", (c) =>\n\tdeleteWorkflowInstance(\n\t\tc,\n\t\tc.req.param(\"workflow_name\"),\n\t\tc.req.param(\"instance_id\")\n\t)\n);\n\n// ============================================================================\n// Observability Endpoints\n// ============================================================================\n\napp.post(\n\t\"/api/local/observability/query\",\n\tvalidateRequestBody(zObservabilityQueryData.shape.body),\n\t(c) => runQuery(c, c.req.valid(\"json\"))\n);\n\napp.post(\"/api/local/observability/clear\", (c) => clearTraces(c));\n\n// ============================================================================\n// Local Workers / Dev Registry Endpoint\n// ============================================================================\n\napp.get(\"/api/local/workers\", async (c) => {\n\tconst loopback = c.env.MINIFLARE_LOOPBACK;\n\tconst selfWorkerNames = c.env.LOCAL_EXPLORER_WORKER_NAMES;\n\tconst explorerWorkerOpts = c.env.MINIFLARE_EXPLORER_WORKER_OPTS;\n\n\ttry {\n\t\tconst response = await loopback.fetch(\"http://localhost/core/dev-registry\");\n\t\tconst registry = await response.json<WorkerRegistry>();\n\n\t\t// Build local workers with their bindings\n\t\tconst localWorkers: LocalExplorerWorker[] = selfWorkerNames\n\t\t\t.filter((name) => registry[name])\n\t\t\t.map((name) => {\n\t\t\t\treturn {\n\t\t\t\t\tisSelf: true,\n\t\t\t\t\tname,\n\t\t\t\t\tbindings: explorerWorkerOpts[name],\n\t\t\t\t};\n\t\t\t});\n\n\t\t// Aggregate with peer workers (each peer provides its own workers with bindings)\n\t\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\t\tconst peerResults = await Promise.all(\n\t\t\tpeerUrls.map(async (url) => {\n\t\t\t\tconst peerResponse = await fetchFromPeer(url, \"/local/workers\");\n\t\t\t\tif (!peerResponse?.ok) return [];\n\t\t\t\ttry {\n\t\t\t\t\tconst data = (await peerResponse.json()) as {\n\t\t\t\t\t\tresult?: LocalExplorerWorker[];\n\t\t\t\t\t};\n\t\t\t\t\t// Mark peer workers as not self\n\t\t\t\t\treturn (data.result ?? []).map((w) => ({ ...w, isSelf: false }));\n\t\t\t\t} catch {\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\n\t\tconst allWorkers = [...localWorkers, ...peerResults.flat()];\n\t\treturn c.json(wrapResponse(allWorkers));\n\t} catch (err) {\n\t\tconst message =\n\t\t\terr instanceof Error ? err.message : \"Failed to fetch dev registry\";\n\t\treturn errorResponse(500, 10000, message);\n\t}\n});\n\nexport default app;\n", "/**\n * Reserved `/cdn-cgi/` paths for internal Miniflare endpoints.\n * These paths are reserved by Cloudflare's network and won't conflict with user routes.\n */\nexport const CorePaths = {\n\t/** Magic proxy used by getPlatformProxy */\n\tPLATFORM_PROXY: \"/cdn-cgi/platform-proxy\",\n\t/** Trigger scheduled event handlers */\n\tSCHEDULED: \"/cdn-cgi/handler/scheduled\",\n\t/** Trigger email event handlers */\n\tEMAIL: \"/cdn-cgi/handler/email\",\n\t/** Handler path prefix for validation */\n\tHANDLER_PREFIX: \"/cdn-cgi/handler/\",\n\t/** Live reload WebSocket endpoint */\n\tLIVE_RELOAD: \"/cdn-cgi/mf/reload\",\n\t/** Local explorer UI and API */\n\tEXPLORER: \"/cdn-cgi/explorer\",\n\t/** Legacy way to trigger scheduled event handlers */\n\tLEGACY_SCHEDULED: \"/cdn-cgi/mf/scheduled\",\n\t/** Stream video serving endpoint */\n\tSTREAM_VIDEO: \"/cdn-cgi/mf/stream\",\n\t/** Local image delivery endpoint for serving hosted images */\n\tIMAGE_DELIVERY: \"/cdn-cgi/mf/imagedelivery\",\n\t/** Public R2 bucket object serving endpoint */\n\tR2_PUBLIC: \"/cdn-cgi/local/r2/public\",\n\t/** S3-compatible API endpoint for local R2 buckets */\n\tR2_S3: \"/cdn-cgi/local/r2/s3\",\n} as const;\n\nexport const CoreHeaders = {\n\tCUSTOM_FETCH_SERVICE: \"MF-Custom-Fetch-Service\",\n\tCUSTOM_NODE_SERVICE: \"MF-Custom-Node-Service\",\n\tORIGINAL_URL: \"MF-Original-URL\",\n\t/**\n\t * Stores the original hostname when using the `upstream` option.\n\t * When requests are proxied to an upstream, the `Host` header is rewritten\n\t * to match the upstream. This header preserves the original hostname\n\t * so Workers can access it if needed.\n\t */\n\tORIGINAL_HOSTNAME: \"MF-Original-Hostname\",\n\tPROXY_SHARED_SECRET: \"MF-Proxy-Shared-Secret\",\n\tDISABLE_PRETTY_ERROR: \"MF-Disable-Pretty-Error\",\n\tERROR_STACK: \"MF-Experimental-Error-Stack\",\n\t/**\n\t * The serialised error, URI-encoded. `workerd` drops response bodies for\n\t * `HEAD` requests, so the body alone cannot carry the error out of the user\n\t * Worker. Producers set this in addition to the body; consumers fall back to\n\t * it whenever the body is unavailable.\n\t */\n\tERROR_STACK_PAYLOAD: \"MF-Experimental-Error-Stack-Payload\",\n\tROUTE_OVERRIDE: \"MF-Route-Override\",\n\tCF_BLOB: \"MF-CF-Blob\",\n\t/** Used by the Vite plugin to pass through the original `sec-fetch-mode` header */\n\tSEC_FETCH_MODE: \"MF-Sec-Fetch-Mode\",\n\n\t// API Proxy\n\tOP_SECRET: \"MF-Op-Secret\",\n\tOP: \"MF-Op\",\n\tOP_TARGET: \"MF-Op-Target\",\n\tOP_KEY: \"MF-Op-Key\",\n\tOP_SYNC: \"MF-Op-Sync\",\n\tOP_STRINGIFIED_SIZE: \"MF-Op-Stringified-Size\",\n\tOP_RESULT_TYPE: \"MF-Op-Result-Type\",\n\tOP_ORIGINAL_URL: \"MF-Op-Original-URL\",\n} as const;\n\nexport const CoreBindings = {\n\tSERVICE_LOOPBACK: \"MINIFLARE_LOOPBACK\",\n\tSERVICE_USER_ROUTE_PREFIX: \"MINIFLARE_USER_ROUTE_\",\n\tSERVICE_USER_FALLBACK: \"MINIFLARE_USER_FALLBACK\",\n\tTEXT_CUSTOM_SERVICE: \"MINIFLARE_CUSTOM_SERVICE\",\n\t// Backs the Images binding (`env.IMAGES`) \u2014 see imagesLocalFetcher.\n\tIMAGES_BINDING_SERVICE: \"MINIFLARE_IMAGES_BINDING_SERVICE\",\n\t// Backs `fetch(url, { cf: { image } })` transforms \u2014 see cfImageLocalFetcher.\n\tIMAGES_FETCH_SERVICE: \"MINIFLARE_IMAGES_FETCH_SERVICE\",\n\tTEXT_UPSTREAM_URL: \"MINIFLARE_UPSTREAM_URL\",\n\tJSON_CF_BLOB: \"CF_BLOB\",\n\tJSON_ROUTES: \"MINIFLARE_ROUTES\",\n\tJSON_LOG_LEVEL: \"MINIFLARE_LOG_LEVEL\",\n\tDATA_LIVE_RELOAD_SCRIPT: \"MINIFLARE_LIVE_RELOAD_SCRIPT\",\n\tDURABLE_OBJECT_NAMESPACE_PROXY: \"MINIFLARE_PROXY\",\n\tDATA_PROXY_SECRET: \"MINIFLARE_PROXY_SECRET\",\n\tDATA_PROXY_SHARED_SECRET: \"MINIFLARE_PROXY_SHARED_SECRET\",\n\tTRIGGER_HANDLERS: \"TRIGGER_HANDLERS\",\n\tLOG_REQUESTS: \"LOG_REQUESTS\",\n\tSTRIP_DISABLE_PRETTY_ERROR: \"STRIP_DISABLE_PRETTY_ERROR\",\n\tSERVICE_LOCAL_EXPLORER: \"MINIFLARE_LOCAL_EXPLORER\",\n\tEXPLORER_DISK: \"MINIFLARE_EXPLORER_DISK\",\n\tJSON_LOCAL_EXPLORER_BINDING_MAP: \"LOCAL_EXPLORER_BINDING_MAP\",\n\tJSON_LOCAL_EXPLORER_WORKER_NAMES: \"LOCAL_EXPLORER_WORKER_NAMES\",\n\tJSON_EXPLORER_WORKER_OPTS: \"MINIFLARE_EXPLORER_WORKER_OPTS\",\n\tSERVICE_CACHE: \"MINIFLARE_CACHE\",\n\tSERVICE_DEV_CONTROL: \"MINIFLARE_DEV_CONTROL\",\n\tSERVICE_DEV_REGISTRY_PROXY: \"MINIFLARE_DEV_REGISTRY_PROXY\",\n\tJSON_TELEMETRY_CONFIG: \"MINIFLARE_TELEMETRY_CONFIG\",\n\tDEV_REGISTRY_DEBUG_PORT: \"DEV_REGISTRY_DEBUG_PORT\",\n\tSERVICE_STREAM: \"MINIFLARE_STREAM\",\n\tSERVICE_IMAGES_DELIVERY: \"MINIFLARE_IMAGES_DELIVERY\",\n\tSERVICE_R2_PUBLIC: \"MINIFLARE_R2_PUBLIC\",\n\tSERVICE_R2_S3: \"MINIFLARE_R2_S3\",\n\tSERVICE_OBSERVABILITY_COLLECTOR: \"MINIFLARE_OBSERVABILITY_COLLECTOR\",\n} as const;\n\nexport const ProxyOps = {\n\t// Get the target or a property of the target\n\tGET: \"GET\",\n\t// Get the descriptor for a property of the target\n\tGET_OWN_DESCRIPTOR: \"GET_OWN_DESCRIPTOR\",\n\t// Get the target's own property names\n\tGET_OWN_KEYS: \"GET_OWN_KEYS\",\n\t// Call a method on the target\n\tCALL: \"CALL\",\n\t// Remove the strong reference to the target on the \"heap\", allowing it to be\n\t// garbage collected\n\tFREE: \"FREE\",\n} as const;\nexport const ProxyAddresses = {\n\tGLOBAL: 0, // globalThis\n\tENV: 1, // env\n\tUSER_START: 2,\n} as const;\n\n/**\n * Recovers the serialised error a Worker put in `ERROR_STACK_PAYLOAD`, for the\n * cases where the response body carrying it has been dropped (`HEAD` requests).\n * Returns `null` when the header is absent or malformed, so callers can fall\n * back rather than surfacing a decoding failure as the Worker's error.\n */\nexport function decodeErrorPayload(response: {\n\theaders: { get(name: string): string | null };\n}): string | null {\n\tconst payload = response.headers.get(CoreHeaders.ERROR_STACK_PAYLOAD);\n\tif (payload === null) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn decodeURIComponent(payload);\n\t} catch {\n\t\treturn null;\n\t}\n}\n\n// ### Proxy Special Cases\n// The proxy supports serialising `Request`/`Response`s for the Cache API. It\n// doesn't support serialising `WebSocket`s though. Rather than attempting this,\n// we call `Fetcher#fetch()` using `dispatchFetch()` directly, using the passed\n// request. This gives us WebSocket support, and is much more efficient, since\n// there's no need to serialise the `Request`/`Response`: we just pass\n// everything to `dispatchFetch()` and return what that gives us.\nexport function isFetcherFetch(targetName: string, key: string) {\n\t// `DurableObject` and `WorkerRpc` are the internal names of `DurableObjectStub`:\n\t// https://github.com/cloudflare/workerd/blob/62b9ceee4c94d2b238692397dc4f604fef84f474/src/workerd/api/actor.h#L86\n\t// https://github.com/cloudflare/workerd/blob/62b9ceee4c94d2b238692397dc4f604fef84f474/src/workerd/api/worker-rpc.h#L30\n\treturn (\n\t\t(targetName === \"Fetcher\" ||\n\t\t\ttargetName === \"DurableObject\" ||\n\t\t\ttargetName === \"WorkerRpc\") &&\n\t\tkey === \"fetch\"\n\t);\n}\n// `R2Object#writeHttpMetadata()` is one of the few functions that mutates its\n// arguments. This would be proxied correctly if the argument were a native\n// target proxy itself, but `Headers` can be constructed in Node. Instead, we\n// respond with the updated headers in the proxy server, then copy them to the\n// original argument on the client.\nexport function isR2ObjectWriteHttpMetadata(targetName: string, key: string) {\n\t// `HeadResult` and `GetResult` are the internal names of `R2Object` and `R2ObjectBody` respectively:\n\t// https://github.com/cloudflare/workerd/blob/ae612f0563d864c82adbfa4c2e5ed78b547aa0a1/src/workerd/api/r2-bucket.h#L210\n\t// https://github.com/cloudflare/workerd/blob/ae612f0563d864c82adbfa4c2e5ed78b547aa0a1/src/workerd/api/r2-bucket.h#L263-L264\n\treturn (\n\t\t(targetName === \"HeadResult\" || targetName === \"GetResult\") &&\n\t\tkey === \"writeHttpMetadata\"\n\t);\n}\n\n/**\n * See #createMediaProxy() comment for why this is special\n */\nexport function isImagesInput(targetName: string, key: string) {\n\treturn targetName === \"ImagesBindingImpl\" && key === \"input\";\n}\n\n// Durable Object stub RPC calls should always be async to avoid blocking the\n// Node.js event loop. The internal names are \"DurableObject\" and \"WorkerRpc\".\n// https://github.com/cloudflare/workerd/blob/62b9ceee/src/workerd/api/actor.h#L86\n// https://github.com/cloudflare/workerd/blob/62b9ceee/src/workerd/api/worker-rpc.h#L30\nexport function isDurableObjectStub(targetName: string) {\n\treturn targetName === \"DurableObject\" || targetName === \"WorkerRpc\";\n}\n", "/**\n * Utilities for cross-instance aggregation in the local explorer.\n *\n * When multiple Miniflare instances run with a shared dev registry,\n * any one instance can aggregate data from all instances.\n */\n\nimport { env } from \"cloudflare:workers\";\nimport { CorePaths } from \"../core\";\nimport type { WorkerRegistry } from \"../../shared/dev-registry-types\";\nimport type { AppContext } from \"./common\";\n\nconst EXPLORER_API_PATH = `${CorePaths.EXPLORER}/api`;\n\n/**\n * Header that indicates a request should not trigger further aggregation.\n * Used to prevent infinite recursion when instance A fetches from instance B.\n */\nexport const NO_AGGREGATE_HEADER = \"X-Miniflare-Explorer-No-Aggregate\";\n\n/**\n * Get the unique base URLs of peer instances from the dev registry,\n * excluding the current instance (identified by worker names).\n */\nfunction getPeerDebugPortAddresses(\n\tregistry: WorkerRegistry,\n\tselfWorkerNames: string[]\n): string[] {\n\tconst selfSet = new Set(selfWorkerNames);\n\tconst addresses = Object.entries(registry)\n\t\t.filter(([name]) => !selfSet.has(name))\n\t\t.map(([, def]) => def.debugPortAddress)\n\t\t.filter((addr): addr is string => typeof addr === \"string\");\n\t// A single Miniflare process with multiple workers registers multiple\n\t// entries in the registry, all sharing the same host:port. We deduplicate\n\t// to avoid fetching from the same peer multiple times.\n\treturn [...new Set(addresses)];\n}\n\nexport async function getPeerUrlsIfAggregating(\n\tc: AppContext\n): Promise<string[]> {\n\tif (c.req.raw.headers.has(NO_AGGREGATE_HEADER)) {\n\t\treturn [];\n\t}\n\tconst loopback = c.env.MINIFLARE_LOOPBACK;\n\tconst workerNames = c.env.LOCAL_EXPLORER_WORKER_NAMES;\n\tconst response = await loopback.fetch(\"http://localhost/core/dev-registry\");\n\tconst registry = (await response.json()) as WorkerRegistry;\n\treturn getPeerDebugPortAddresses(registry, workerNames);\n}\n\n/**\n * Fetch data from a peer instance's explorer API.\n * Returns null on any error (silent omission policy).\n *\n * @param peerDebugPortAddress - Debug port address of the peer instance (e.g., \"127.0.0.1:12345\")\n * @param apiPath - API path relative to the explorer API base (e.g., \"/d1/database\")\n * @param init - Optional fetch init options\n */\nexport async function fetchFromPeer(\n\tpeerDebugPortAddress: string,\n\tapiPath: string,\n\tinit?: RequestInit\n): Promise<Response | null> {\n\ttry {\n\t\tconst client = (env as AppContext[\"env\"]).DEV_REGISTRY_DEBUG_PORT.connect(\n\t\t\tpeerDebugPortAddress\n\t\t);\n\t\tconst fetcher = client.getEntrypoint(\"core:entry\");\n\t\tconst url = new URL(`http://localhost${EXPLORER_API_PATH}${apiPath}`);\n\t\tconst response = await fetcher.fetch(url.toString(), {\n\t\t\t...init,\n\t\t\theaders: {\n\t\t\t\t...(init?.headers as Record<string, string> | undefined),\n\t\t\t\t[NO_AGGREGATE_HEADER]: \"true\",\n\t\t\t\tHost: \"localhost\",\n\t\t\t},\n\t\t});\n\t\treturn new Response(response.body, response);\n\t} catch {\n\t\treturn null;\n\t}\n}\n\n/**\n * Aggregate list results from local data and peer instances.\n *\n * @param c - Hono app context\n * @param localResults - Results from the local instance\n * @param apiPath - API path relative to the explorer API base\n * @param resultKey - horrible special case because r2 bucket list nests its results\n */\nexport async function aggregateListResults<T>(\n\tc: AppContext,\n\tlocalResults: T[],\n\tapiPath: string,\n\tresultKey?: string\n): Promise<T[]> {\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) {\n\t\treturn localResults;\n\t}\n\n\tconst peerResults = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(url, apiPath);\n\t\t\tif (!response?.ok) return [];\n\t\t\ttry {\n\t\t\t\tconst data = (await response.json()) as {\n\t\t\t\t\tresult: T[] | { [key: string]: T[] };\n\t\t\t\t};\n\t\t\t\tif (Array.isArray(data.result)) {\n\t\t\t\t\treturn data.result;\n\t\t\t\t}\n\t\t\t\tif (resultKey) {\n\t\t\t\t\treturn data.result[resultKey] ?? [];\n\t\t\t\t}\n\t\t\t\tthrow new Error(\"unreachable\");\n\t\t\t} catch {\n\t\t\t\treturn [];\n\t\t\t}\n\t\t})\n\t);\n\n\treturn [...localResults, ...peerResults.flat()];\n}\n", "// src/utils/cookie.ts\nimport { decodeURIComponent_, tryDecode } from \"./url.js\";\nvar algorithm = { name: \"HMAC\", hash: \"SHA-256\" };\nvar getCryptoKey = async (secret) => {\n  const secretBuf = typeof secret === \"string\" ? new TextEncoder().encode(secret) : secret;\n  return await crypto.subtle.importKey(\"raw\", secretBuf, algorithm, false, [\"sign\", \"verify\"]);\n};\nvar makeSignature = async (value, secret) => {\n  const key = await getCryptoKey(secret);\n  const signature = await crypto.subtle.sign(algorithm.name, key, new TextEncoder().encode(value));\n  return btoa(String.fromCharCode(...new Uint8Array(signature)));\n};\nvar verifySignature = async (base64Signature, value, secret) => {\n  try {\n    const signatureBinStr = atob(base64Signature);\n    const signature = new Uint8Array(signatureBinStr.length);\n    for (let i = 0, len = signatureBinStr.length; i < len; i++) {\n      signature[i] = signatureBinStr.charCodeAt(i);\n    }\n    return await crypto.subtle.verify(algorithm, secret, signature, new TextEncoder().encode(value));\n  } catch {\n    return false;\n  }\n};\nvar validCookieNameRegEx = /^[\\w!#$%&'*.^`|~+-]+$/;\nvar validCookieValueRegEx = /^[ !#-:<-[\\]-~]*$/;\nvar parse = (cookie, name) => {\n  if (name && cookie.indexOf(name) === -1) {\n    return {};\n  }\n  const pairs = cookie.trim().split(\";\");\n  const parsedCookie = {};\n  for (let pairStr of pairs) {\n    pairStr = pairStr.trim();\n    const valueStartPos = pairStr.indexOf(\"=\");\n    if (valueStartPos === -1) {\n      continue;\n    }\n    const cookieName = pairStr.substring(0, valueStartPos).trim();\n    if (name && name !== cookieName || !validCookieNameRegEx.test(cookieName)) {\n      continue;\n    }\n    let cookieValue = pairStr.substring(valueStartPos + 1).trim();\n    if (cookieValue.startsWith('\"') && cookieValue.endsWith('\"')) {\n      cookieValue = cookieValue.slice(1, -1);\n    }\n    if (validCookieValueRegEx.test(cookieValue)) {\n      parsedCookie[cookieName] = cookieValue.indexOf(\"%\") !== -1 ? tryDecode(cookieValue, decodeURIComponent_) : cookieValue;\n      if (name) {\n        break;\n      }\n    }\n  }\n  return parsedCookie;\n};\nvar parseSigned = async (cookie, secret, name) => {\n  const parsedCookie = {};\n  const secretKey = await getCryptoKey(secret);\n  for (const [key, value] of Object.entries(parse(cookie, name))) {\n    const signatureStartPos = value.lastIndexOf(\".\");\n    if (signatureStartPos < 1) {\n      continue;\n    }\n    const signedValue = value.substring(0, signatureStartPos);\n    const signature = value.substring(signatureStartPos + 1);\n    if (signature.length !== 44 || !signature.endsWith(\"=\")) {\n      continue;\n    }\n    const isVerified = await verifySignature(signature, signedValue, secretKey);\n    parsedCookie[key] = isVerified ? signedValue : false;\n  }\n  return parsedCookie;\n};\nvar _serialize = (name, value, opt = {}) => {\n  let cookie = `${name}=${value}`;\n  if (name.startsWith(\"__Secure-\") && !opt.secure) {\n    throw new Error(\"__Secure- Cookie must have Secure attributes\");\n  }\n  if (name.startsWith(\"__Host-\")) {\n    if (!opt.secure) {\n      throw new Error(\"__Host- Cookie must have Secure attributes\");\n    }\n    if (opt.path !== \"/\") {\n      throw new Error('__Host- Cookie must have Path attributes with \"/\"');\n    }\n    if (opt.domain) {\n      throw new Error(\"__Host- Cookie must not have Domain attributes\");\n    }\n  }\n  for (const key of [\"domain\", \"path\"]) {\n    if (opt[key] && /[;\\r\\n]/.test(opt[key])) {\n      throw new Error(`${key} must not contain \";\", \"\\\\r\", or \"\\\\n\"`);\n    }\n  }\n  if (opt && typeof opt.maxAge === \"number\" && opt.maxAge >= 0) {\n    if (opt.maxAge > 3456e4) {\n      throw new Error(\n        \"Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.\"\n      );\n    }\n    cookie += `; Max-Age=${opt.maxAge | 0}`;\n  }\n  if (opt.domain && opt.prefix !== \"host\") {\n    cookie += `; Domain=${opt.domain}`;\n  }\n  if (opt.path) {\n    cookie += `; Path=${opt.path}`;\n  }\n  if (opt.expires) {\n    if (opt.expires.getTime() - Date.now() > 3456e7) {\n      throw new Error(\n        \"Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.\"\n      );\n    }\n    cookie += `; Expires=${opt.expires.toUTCString()}`;\n  }\n  if (opt.httpOnly) {\n    cookie += \"; HttpOnly\";\n  }\n  if (opt.secure) {\n    cookie += \"; Secure\";\n  }\n  if (opt.sameSite) {\n    cookie += `; SameSite=${opt.sameSite.charAt(0).toUpperCase() + opt.sameSite.slice(1)}`;\n  }\n  if (opt.priority) {\n    cookie += `; Priority=${opt.priority.charAt(0).toUpperCase() + opt.priority.slice(1)}`;\n  }\n  if (opt.partitioned) {\n    if (!opt.secure) {\n      throw new Error(\"Partitioned Cookie must have Secure attributes\");\n    }\n    cookie += \"; Partitioned\";\n  }\n  return cookie;\n};\nvar serialize = (name, value, opt) => {\n  value = encodeURIComponent(value);\n  return _serialize(name, value, opt);\n};\nvar serializeSigned = async (name, value, secret, opt = {}) => {\n  const signature = await makeSignature(value, secret);\n  value = `${value}.${signature}`;\n  value = encodeURIComponent(value);\n  return _serialize(name, value, opt);\n};\nexport {\n  parse,\n  parseSigned,\n  serialize,\n  serializeSigned\n};\n", "// src/helper/cookie/index.ts\nimport { parse, parseSigned, serialize, serializeSigned } from \"../../utils/cookie.js\";\nvar getCookie = (c, key, prefix) => {\n  const cookie = c.req.raw.headers.get(\"Cookie\");\n  if (typeof key === \"string\") {\n    if (!cookie) {\n      return void 0;\n    }\n    let finalKey = key;\n    if (prefix === \"secure\") {\n      finalKey = \"__Secure-\" + key;\n    } else if (prefix === \"host\") {\n      finalKey = \"__Host-\" + key;\n    }\n    const obj2 = parse(cookie, finalKey);\n    return obj2[finalKey];\n  }\n  if (!cookie) {\n    return {};\n  }\n  const obj = parse(cookie);\n  return obj;\n};\nvar getSignedCookie = async (c, secret, key, prefix) => {\n  const cookie = c.req.raw.headers.get(\"Cookie\");\n  if (typeof key === \"string\") {\n    if (!cookie) {\n      return void 0;\n    }\n    let finalKey = key;\n    if (prefix === \"secure\") {\n      finalKey = \"__Secure-\" + key;\n    } else if (prefix === \"host\") {\n      finalKey = \"__Host-\" + key;\n    }\n    const obj2 = await parseSigned(cookie, secret, finalKey);\n    return obj2[finalKey];\n  }\n  if (!cookie) {\n    return {};\n  }\n  const obj = await parseSigned(cookie, secret);\n  return obj;\n};\nvar generateCookie = (name, value, opt) => {\n  let cookie;\n  if (opt?.prefix === \"secure\") {\n    cookie = serialize(\"__Secure-\" + name, value, { path: \"/\", ...opt, secure: true });\n  } else if (opt?.prefix === \"host\") {\n    cookie = serialize(\"__Host-\" + name, value, {\n      ...opt,\n      path: \"/\",\n      secure: true,\n      domain: void 0\n    });\n  } else {\n    cookie = serialize(name, value, { path: \"/\", ...opt });\n  }\n  return cookie;\n};\nvar setCookie = (c, name, value, opt) => {\n  const cookie = generateCookie(name, value, opt);\n  c.header(\"Set-Cookie\", cookie, { append: true });\n};\nvar generateSignedCookie = async (name, value, secret, opt) => {\n  let cookie;\n  if (opt?.prefix === \"secure\") {\n    cookie = await serializeSigned(\"__Secure-\" + name, value, secret, {\n      path: \"/\",\n      ...opt,\n      secure: true\n    });\n  } else if (opt?.prefix === \"host\") {\n    cookie = await serializeSigned(\"__Host-\" + name, value, secret, {\n      ...opt,\n      path: \"/\",\n      secure: true,\n      domain: void 0\n    });\n  } else {\n    cookie = await serializeSigned(name, value, secret, { path: \"/\", ...opt });\n  }\n  return cookie;\n};\nvar setSignedCookie = async (c, name, value, secret, opt) => {\n  const cookie = await generateSignedCookie(name, value, secret, opt);\n  c.header(\"set-cookie\", cookie, { append: true });\n};\nvar deleteCookie = (c, name, opt) => {\n  const deletedCookie = getCookie(c, name, opt?.prefix);\n  setCookie(c, name, \"\", { ...opt, maxAge: 0 });\n  return deletedCookie;\n};\nexport {\n  deleteCookie,\n  generateCookie,\n  generateSignedCookie,\n  getCookie,\n  getSignedCookie,\n  setCookie,\n  setSignedCookie\n};\n", "// src/utils/buffer.ts\nimport { sha256 } from \"./crypto.js\";\nvar equal = (a, b) => {\n  if (a === b) {\n    return true;\n  }\n  if (a.byteLength !== b.byteLength) {\n    return false;\n  }\n  const va = new DataView(a);\n  const vb = new DataView(b);\n  let i = va.byteLength;\n  while (i--) {\n    if (va.getUint8(i) !== vb.getUint8(i)) {\n      return false;\n    }\n  }\n  return true;\n};\nvar constantTimeEqualString = (a, b) => {\n  const aLen = a.length;\n  const bLen = b.length;\n  const maxLen = Math.max(aLen, bLen);\n  let out = aLen ^ bLen;\n  for (let i = 0; i < maxLen; i++) {\n    const aChar = i < aLen ? a.charCodeAt(i) : 0;\n    const bChar = i < bLen ? b.charCodeAt(i) : 0;\n    out |= aChar ^ bChar;\n  }\n  return out === 0;\n};\nvar timingSafeEqualString = async (a, b, hashFunction) => {\n  if (!hashFunction) {\n    hashFunction = sha256;\n  }\n  const [sa, sb] = await Promise.all([hashFunction(a), hashFunction(b)]);\n  if (sa == null || sb == null || typeof sa !== \"string\" || typeof sb !== \"string\") {\n    return false;\n  }\n  const hashEqual = constantTimeEqualString(sa, sb);\n  const originalEqual = constantTimeEqualString(a, b);\n  return hashEqual && originalEqual;\n};\nvar timingSafeEqual = async (a, b, hashFunction) => {\n  if (typeof a === \"string\" && typeof b === \"string\") {\n    return timingSafeEqualString(a, b, hashFunction);\n  }\n  if (!hashFunction) {\n    hashFunction = sha256;\n  }\n  const [sa, sb] = await Promise.all([hashFunction(a), hashFunction(b)]);\n  if (!sa || !sb || typeof sa !== \"string\" || typeof sb !== \"string\") {\n    return false;\n  }\n  return timingSafeEqualString(sa, sb);\n};\nvar bufferToString = (buffer) => {\n  if (buffer instanceof ArrayBuffer) {\n    const enc = new TextDecoder(\"utf-8\");\n    return enc.decode(buffer);\n  }\n  return buffer;\n};\nvar bufferToFormData = (arrayBuffer, contentType) => {\n  const response = new Response(arrayBuffer, {\n    headers: {\n      \"Content-Type\": contentType\n    }\n  });\n  return response.formData();\n};\nexport {\n  bufferToFormData,\n  bufferToString,\n  equal,\n  timingSafeEqual\n};\n", "// src/validator/validator.ts\nimport { getCookie } from \"../helper/cookie/index.js\";\nimport { HTTPException } from \"../http-exception.js\";\nimport { bufferToFormData } from \"../utils/buffer.js\";\nvar jsonRegex = /^application\\/([a-z-\\.]+\\+)?json(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/;\nvar multipartRegex = /^multipart\\/form-data(;\\s?boundary=[a-zA-Z0-9'\"()+_,\\-./:=?]+)?$/;\nvar urlencodedRegex = /^application\\/x-www-form-urlencoded(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/;\nvar validator = (target, validationFunc) => {\n  return async (c, next) => {\n    let value = {};\n    const contentType = c.req.header(\"Content-Type\");\n    switch (target) {\n      case \"json\":\n        if (!contentType || !jsonRegex.test(contentType)) {\n          break;\n        }\n        try {\n          value = await c.req.json();\n        } catch {\n          const message = \"Malformed JSON in request body\";\n          throw new HTTPException(400, { message });\n        }\n        break;\n      case \"form\": {\n        if (!contentType || !(multipartRegex.test(contentType) || urlencodedRegex.test(contentType))) {\n          break;\n        }\n        let formData;\n        if (c.req.bodyCache.formData) {\n          formData = await c.req.bodyCache.formData;\n        } else {\n          try {\n            const arrayBuffer = await c.req.arrayBuffer();\n            formData = await bufferToFormData(arrayBuffer, contentType);\n            c.req.bodyCache.formData = formData;\n          } catch (e) {\n            let message = \"Malformed FormData request.\";\n            message += e instanceof Error ? ` ${e.message}` : ` ${String(e)}`;\n            throw new HTTPException(400, { message });\n          }\n        }\n        const form = /* @__PURE__ */ Object.create(null);\n        formData.forEach((value2, key) => {\n          if (key.endsWith(\"[]\")) {\n            ;\n            (form[key] ??= []).push(value2);\n          } else if (Array.isArray(form[key])) {\n            ;\n            form[key].push(value2);\n          } else if (Object.hasOwn(form, key)) {\n            form[key] = [form[key], value2];\n          } else {\n            form[key] = value2;\n          }\n        });\n        value = form;\n        break;\n      }\n      case \"query\":\n        value = Object.fromEntries(\n          Object.entries(c.req.queries()).map(([k, v]) => {\n            return v.length === 1 ? [k, v[0]] : [k, v];\n          })\n        );\n        break;\n      case \"param\":\n        value = c.req.param();\n        break;\n      case \"header\":\n        value = c.req.header();\n        break;\n      case \"cookie\":\n        value = getCookie(c);\n        break;\n    }\n    const res = await validationFunc(value, c);\n    if (res instanceof Response) {\n      return res;\n    }\n    c.req.addValidatedData(target, res);\n    return await next();\n  };\n};\nexport {\n  validator\n};\n", "export * from \"./errors.js\";\nexport * from \"./helpers/parseUtil.js\";\nexport * from \"./helpers/typeAliases.js\";\nexport * from \"./helpers/util.js\";\nexport * from \"./types.js\";\nexport * from \"./ZodError.js\";\n", "export var util;\n(function (util) {\n    util.assertEqual = (_) => { };\n    function assertIs(_arg) { }\n    util.assertIs = assertIs;\n    function assertNever(_x) {\n        throw new Error();\n    }\n    util.assertNever = assertNever;\n    util.arrayToEnum = (items) => {\n        const obj = {};\n        for (const item of items) {\n            obj[item] = item;\n        }\n        return obj;\n    };\n    util.getValidEnumValues = (obj) => {\n        const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n        const filtered = {};\n        for (const k of validKeys) {\n            filtered[k] = obj[k];\n        }\n        return util.objectValues(filtered);\n    };\n    util.objectValues = (obj) => {\n        return util.objectKeys(obj).map(function (e) {\n            return obj[e];\n        });\n    };\n    util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n        ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n        : (object) => {\n            const keys = [];\n            for (const key in object) {\n                if (Object.prototype.hasOwnProperty.call(object, key)) {\n                    keys.push(key);\n                }\n            }\n            return keys;\n        };\n    util.find = (arr, checker) => {\n        for (const item of arr) {\n            if (checker(item))\n                return item;\n        }\n        return undefined;\n    };\n    util.isInteger = typeof Number.isInteger === \"function\"\n        ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n        : (val) => typeof val === \"number\" && Number.isFinite(val) && Math.floor(val) === val;\n    function joinValues(array, separator = \" | \") {\n        return array.map((val) => (typeof val === \"string\" ? `'${val}'` : val)).join(separator);\n    }\n    util.joinValues = joinValues;\n    util.jsonStringifyReplacer = (_, value) => {\n        if (typeof value === \"bigint\") {\n            return value.toString();\n        }\n        return value;\n    };\n})(util || (util = {}));\nexport var objectUtil;\n(function (objectUtil) {\n    objectUtil.mergeShapes = (first, second) => {\n        return {\n            ...first,\n            ...second, // second overwrites first\n        };\n    };\n})(objectUtil || (objectUtil = {}));\nexport const ZodParsedType = util.arrayToEnum([\n    \"string\",\n    \"nan\",\n    \"number\",\n    \"integer\",\n    \"float\",\n    \"boolean\",\n    \"date\",\n    \"bigint\",\n    \"symbol\",\n    \"function\",\n    \"undefined\",\n    \"null\",\n    \"array\",\n    \"object\",\n    \"unknown\",\n    \"promise\",\n    \"void\",\n    \"never\",\n    \"map\",\n    \"set\",\n]);\nexport const getParsedType = (data) => {\n    const t = typeof data;\n    switch (t) {\n        case \"undefined\":\n            return ZodParsedType.undefined;\n        case \"string\":\n            return ZodParsedType.string;\n        case \"number\":\n            return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n        case \"boolean\":\n            return ZodParsedType.boolean;\n        case \"function\":\n            return ZodParsedType.function;\n        case \"bigint\":\n            return ZodParsedType.bigint;\n        case \"symbol\":\n            return ZodParsedType.symbol;\n        case \"object\":\n            if (Array.isArray(data)) {\n                return ZodParsedType.array;\n            }\n            if (data === null) {\n                return ZodParsedType.null;\n            }\n            if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n                return ZodParsedType.promise;\n            }\n            if (typeof Map !== \"undefined\" && data instanceof Map) {\n                return ZodParsedType.map;\n            }\n            if (typeof Set !== \"undefined\" && data instanceof Set) {\n                return ZodParsedType.set;\n            }\n            if (typeof Date !== \"undefined\" && data instanceof Date) {\n                return ZodParsedType.date;\n            }\n            return ZodParsedType.object;\n        default:\n            return ZodParsedType.unknown;\n    }\n};\n", "import { util } from \"./helpers/util.js\";\nexport const ZodIssueCode = util.arrayToEnum([\n    \"invalid_type\",\n    \"invalid_literal\",\n    \"custom\",\n    \"invalid_union\",\n    \"invalid_union_discriminator\",\n    \"invalid_enum_value\",\n    \"unrecognized_keys\",\n    \"invalid_arguments\",\n    \"invalid_return_type\",\n    \"invalid_date\",\n    \"invalid_string\",\n    \"too_small\",\n    \"too_big\",\n    \"invalid_intersection_types\",\n    \"not_multiple_of\",\n    \"not_finite\",\n]);\nexport const quotelessJson = (obj) => {\n    const json = JSON.stringify(obj, null, 2);\n    return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nexport class ZodError extends Error {\n    get errors() {\n        return this.issues;\n    }\n    constructor(issues) {\n        super();\n        this.issues = [];\n        this.addIssue = (sub) => {\n            this.issues = [...this.issues, sub];\n        };\n        this.addIssues = (subs = []) => {\n            this.issues = [...this.issues, ...subs];\n        };\n        const actualProto = new.target.prototype;\n        if (Object.setPrototypeOf) {\n            // eslint-disable-next-line ban/ban\n            Object.setPrototypeOf(this, actualProto);\n        }\n        else {\n            this.__proto__ = actualProto;\n        }\n        this.name = \"ZodError\";\n        this.issues = issues;\n    }\n    format(_mapper) {\n        const mapper = _mapper ||\n            function (issue) {\n                return issue.message;\n            };\n        const fieldErrors = { _errors: [] };\n        const processError = (error) => {\n            for (const issue of error.issues) {\n                if (issue.code === \"invalid_union\") {\n                    issue.unionErrors.map(processError);\n                }\n                else if (issue.code === \"invalid_return_type\") {\n                    processError(issue.returnTypeError);\n                }\n                else if (issue.code === \"invalid_arguments\") {\n                    processError(issue.argumentsError);\n                }\n                else if (issue.path.length === 0) {\n                    fieldErrors._errors.push(mapper(issue));\n                }\n                else {\n                    let curr = fieldErrors;\n                    let i = 0;\n                    while (i < issue.path.length) {\n                        const el = issue.path[i];\n                        const terminal = i === issue.path.length - 1;\n                        if (!terminal) {\n                            curr[el] = curr[el] || { _errors: [] };\n                            // if (typeof el === \"string\") {\n                            //   curr[el] = curr[el] || { _errors: [] };\n                            // } else if (typeof el === \"number\") {\n                            //   const errorArray: any = [];\n                            //   errorArray._errors = [];\n                            //   curr[el] = curr[el] || errorArray;\n                            // }\n                        }\n                        else {\n                            curr[el] = curr[el] || { _errors: [] };\n                            curr[el]._errors.push(mapper(issue));\n                        }\n                        curr = curr[el];\n                        i++;\n                    }\n                }\n            }\n        };\n        processError(this);\n        return fieldErrors;\n    }\n    static assert(value) {\n        if (!(value instanceof ZodError)) {\n            throw new Error(`Not a ZodError: ${value}`);\n        }\n    }\n    toString() {\n        return this.message;\n    }\n    get message() {\n        return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n    }\n    get isEmpty() {\n        return this.issues.length === 0;\n    }\n    flatten(mapper = (issue) => issue.message) {\n        const fieldErrors = {};\n        const formErrors = [];\n        for (const sub of this.issues) {\n            if (sub.path.length > 0) {\n                const firstEl = sub.path[0];\n                fieldErrors[firstEl] = fieldErrors[firstEl] || [];\n                fieldErrors[firstEl].push(mapper(sub));\n            }\n            else {\n                formErrors.push(mapper(sub));\n            }\n        }\n        return { formErrors, fieldErrors };\n    }\n    get formErrors() {\n        return this.flatten();\n    }\n}\nZodError.create = (issues) => {\n    const error = new ZodError(issues);\n    return error;\n};\n", "import { ZodIssueCode } from \"../ZodError.js\";\nimport { util, ZodParsedType } from \"../helpers/util.js\";\nconst errorMap = (issue, _ctx) => {\n    let message;\n    switch (issue.code) {\n        case ZodIssueCode.invalid_type:\n            if (issue.received === ZodParsedType.undefined) {\n                message = \"Required\";\n            }\n            else {\n                message = `Expected ${issue.expected}, received ${issue.received}`;\n            }\n            break;\n        case ZodIssueCode.invalid_literal:\n            message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n            break;\n        case ZodIssueCode.unrecognized_keys:\n            message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n            break;\n        case ZodIssueCode.invalid_union:\n            message = `Invalid input`;\n            break;\n        case ZodIssueCode.invalid_union_discriminator:\n            message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n            break;\n        case ZodIssueCode.invalid_enum_value:\n            message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n            break;\n        case ZodIssueCode.invalid_arguments:\n            message = `Invalid function arguments`;\n            break;\n        case ZodIssueCode.invalid_return_type:\n            message = `Invalid function return type`;\n            break;\n        case ZodIssueCode.invalid_date:\n            message = `Invalid date`;\n            break;\n        case ZodIssueCode.invalid_string:\n            if (typeof issue.validation === \"object\") {\n                if (\"includes\" in issue.validation) {\n                    message = `Invalid input: must include \"${issue.validation.includes}\"`;\n                    if (typeof issue.validation.position === \"number\") {\n                        message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n                    }\n                }\n                else if (\"startsWith\" in issue.validation) {\n                    message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n                }\n                else if (\"endsWith\" in issue.validation) {\n                    message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n                }\n                else {\n                    util.assertNever(issue.validation);\n                }\n            }\n            else if (issue.validation !== \"regex\") {\n                message = `Invalid ${issue.validation}`;\n            }\n            else {\n                message = \"Invalid\";\n            }\n            break;\n        case ZodIssueCode.too_small:\n            if (issue.type === \"array\")\n                message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n            else if (issue.type === \"string\")\n                message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n            else if (issue.type === \"number\")\n                message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n            else if (issue.type === \"bigint\")\n                message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n            else if (issue.type === \"date\")\n                message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;\n            else\n                message = \"Invalid input\";\n            break;\n        case ZodIssueCode.too_big:\n            if (issue.type === \"array\")\n                message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n            else if (issue.type === \"string\")\n                message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n            else if (issue.type === \"number\")\n                message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n            else if (issue.type === \"bigint\")\n                message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n            else if (issue.type === \"date\")\n                message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;\n            else\n                message = \"Invalid input\";\n            break;\n        case ZodIssueCode.custom:\n            message = `Invalid input`;\n            break;\n        case ZodIssueCode.invalid_intersection_types:\n            message = `Intersection results could not be merged`;\n            break;\n        case ZodIssueCode.not_multiple_of:\n            message = `Number must be a multiple of ${issue.multipleOf}`;\n            break;\n        case ZodIssueCode.not_finite:\n            message = \"Number must be finite\";\n            break;\n        default:\n            message = _ctx.defaultError;\n            util.assertNever(issue);\n    }\n    return { message };\n};\nexport default errorMap;\n", "import defaultErrorMap from \"./locales/en.js\";\nlet overrideErrorMap = defaultErrorMap;\nexport { defaultErrorMap };\nexport function setErrorMap(map) {\n    overrideErrorMap = map;\n}\nexport function getErrorMap() {\n    return overrideErrorMap;\n}\n", "import { getErrorMap } from \"../errors.js\";\nimport defaultErrorMap from \"../locales/en.js\";\nexport const makeIssue = (params) => {\n    const { data, path, errorMaps, issueData } = params;\n    const fullPath = [...path, ...(issueData.path || [])];\n    const fullIssue = {\n        ...issueData,\n        path: fullPath,\n    };\n    if (issueData.message !== undefined) {\n        return {\n            ...issueData,\n            path: fullPath,\n            message: issueData.message,\n        };\n    }\n    let errorMessage = \"\";\n    const maps = errorMaps\n        .filter((m) => !!m)\n        .slice()\n        .reverse();\n    for (const map of maps) {\n        errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n    }\n    return {\n        ...issueData,\n        path: fullPath,\n        message: errorMessage,\n    };\n};\nexport const EMPTY_PATH = [];\nexport function addIssueToContext(ctx, issueData) {\n    const overrideMap = getErrorMap();\n    const issue = makeIssue({\n        issueData: issueData,\n        data: ctx.data,\n        path: ctx.path,\n        errorMaps: [\n            ctx.common.contextualErrorMap, // contextual error map is first priority\n            ctx.schemaErrorMap, // then schema-bound map if available\n            overrideMap, // then global override map\n            overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map\n        ].filter((x) => !!x),\n    });\n    ctx.common.issues.push(issue);\n}\nexport class ParseStatus {\n    constructor() {\n        this.value = \"valid\";\n    }\n    dirty() {\n        if (this.value === \"valid\")\n            this.value = \"dirty\";\n    }\n    abort() {\n        if (this.value !== \"aborted\")\n            this.value = \"aborted\";\n    }\n    static mergeArray(status, results) {\n        const arrayValue = [];\n        for (const s of results) {\n            if (s.status === \"aborted\")\n                return INVALID;\n            if (s.status === \"dirty\")\n                status.dirty();\n            arrayValue.push(s.value);\n        }\n        return { status: status.value, value: arrayValue };\n    }\n    static async mergeObjectAsync(status, pairs) {\n        const syncPairs = [];\n        for (const pair of pairs) {\n            const key = await pair.key;\n            const value = await pair.value;\n            syncPairs.push({\n                key,\n                value,\n            });\n        }\n        return ParseStatus.mergeObjectSync(status, syncPairs);\n    }\n    static mergeObjectSync(status, pairs) {\n        const finalObject = {};\n        for (const pair of pairs) {\n            const { key, value } = pair;\n            if (key.status === \"aborted\")\n                return INVALID;\n            if (value.status === \"aborted\")\n                return INVALID;\n            if (key.status === \"dirty\")\n                status.dirty();\n            if (value.status === \"dirty\")\n                status.dirty();\n            if (key.value !== \"__proto__\" && (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n                finalObject[key.value] = value.value;\n            }\n        }\n        return { status: status.value, value: finalObject };\n    }\n}\nexport const INVALID = Object.freeze({\n    status: \"aborted\",\n});\nexport const DIRTY = (value) => ({ status: \"dirty\", value });\nexport const OK = (value) => ({ status: \"valid\", value });\nexport const isAborted = (x) => x.status === \"aborted\";\nexport const isDirty = (x) => x.status === \"dirty\";\nexport const isValid = (x) => x.status === \"valid\";\nexport const isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n", "export var errorUtil;\n(function (errorUtil) {\n    errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n    // biome-ignore lint:\n    errorUtil.toString = (message) => typeof message === \"string\" ? message : message?.message;\n})(errorUtil || (errorUtil = {}));\n", "import { ZodError, ZodIssueCode, } from \"./ZodError.js\";\nimport { defaultErrorMap, getErrorMap } from \"./errors.js\";\nimport { errorUtil } from \"./helpers/errorUtil.js\";\nimport { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue, } from \"./helpers/parseUtil.js\";\nimport { util, ZodParsedType, getParsedType } from \"./helpers/util.js\";\nclass ParseInputLazyPath {\n    constructor(parent, value, path, key) {\n        this._cachedPath = [];\n        this.parent = parent;\n        this.data = value;\n        this._path = path;\n        this._key = key;\n    }\n    get path() {\n        if (!this._cachedPath.length) {\n            if (Array.isArray(this._key)) {\n                this._cachedPath.push(...this._path, ...this._key);\n            }\n            else {\n                this._cachedPath.push(...this._path, this._key);\n            }\n        }\n        return this._cachedPath;\n    }\n}\nconst handleResult = (ctx, result) => {\n    if (isValid(result)) {\n        return { success: true, data: result.value };\n    }\n    else {\n        if (!ctx.common.issues.length) {\n            throw new Error(\"Validation failed but no issues detected.\");\n        }\n        return {\n            success: false,\n            get error() {\n                if (this._error)\n                    return this._error;\n                const error = new ZodError(ctx.common.issues);\n                this._error = error;\n                return this._error;\n            },\n        };\n    }\n};\nfunction processCreateParams(params) {\n    if (!params)\n        return {};\n    const { errorMap, invalid_type_error, required_error, description } = params;\n    if (errorMap && (invalid_type_error || required_error)) {\n        throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n    }\n    if (errorMap)\n        return { errorMap: errorMap, description };\n    const customMap = (iss, ctx) => {\n        const { message } = params;\n        if (iss.code === \"invalid_enum_value\") {\n            return { message: message ?? ctx.defaultError };\n        }\n        if (typeof ctx.data === \"undefined\") {\n            return { message: message ?? required_error ?? ctx.defaultError };\n        }\n        if (iss.code !== \"invalid_type\")\n            return { message: ctx.defaultError };\n        return { message: message ?? invalid_type_error ?? ctx.defaultError };\n    };\n    return { errorMap: customMap, description };\n}\nexport class ZodType {\n    get description() {\n        return this._def.description;\n    }\n    _getType(input) {\n        return getParsedType(input.data);\n    }\n    _getOrReturnCtx(input, ctx) {\n        return (ctx || {\n            common: input.parent.common,\n            data: input.data,\n            parsedType: getParsedType(input.data),\n            schemaErrorMap: this._def.errorMap,\n            path: input.path,\n            parent: input.parent,\n        });\n    }\n    _processInputParams(input) {\n        return {\n            status: new ParseStatus(),\n            ctx: {\n                common: input.parent.common,\n                data: input.data,\n                parsedType: getParsedType(input.data),\n                schemaErrorMap: this._def.errorMap,\n                path: input.path,\n                parent: input.parent,\n            },\n        };\n    }\n    _parseSync(input) {\n        const result = this._parse(input);\n        if (isAsync(result)) {\n            throw new Error(\"Synchronous parse encountered promise.\");\n        }\n        return result;\n    }\n    _parseAsync(input) {\n        const result = this._parse(input);\n        return Promise.resolve(result);\n    }\n    parse(data, params) {\n        const result = this.safeParse(data, params);\n        if (result.success)\n            return result.data;\n        throw result.error;\n    }\n    safeParse(data, params) {\n        const ctx = {\n            common: {\n                issues: [],\n                async: params?.async ?? false,\n                contextualErrorMap: params?.errorMap,\n            },\n            path: params?.path || [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n        return handleResult(ctx, result);\n    }\n    \"~validate\"(data) {\n        const ctx = {\n            common: {\n                issues: [],\n                async: !!this[\"~standard\"].async,\n            },\n            path: [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        if (!this[\"~standard\"].async) {\n            try {\n                const result = this._parseSync({ data, path: [], parent: ctx });\n                return isValid(result)\n                    ? {\n                        value: result.value,\n                    }\n                    : {\n                        issues: ctx.common.issues,\n                    };\n            }\n            catch (err) {\n                if (err?.message?.toLowerCase()?.includes(\"encountered\")) {\n                    this[\"~standard\"].async = true;\n                }\n                ctx.common = {\n                    issues: [],\n                    async: true,\n                };\n            }\n        }\n        return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result)\n            ? {\n                value: result.value,\n            }\n            : {\n                issues: ctx.common.issues,\n            });\n    }\n    async parseAsync(data, params) {\n        const result = await this.safeParseAsync(data, params);\n        if (result.success)\n            return result.data;\n        throw result.error;\n    }\n    async safeParseAsync(data, params) {\n        const ctx = {\n            common: {\n                issues: [],\n                contextualErrorMap: params?.errorMap,\n                async: true,\n            },\n            path: params?.path || [],\n            schemaErrorMap: this._def.errorMap,\n            parent: null,\n            data,\n            parsedType: getParsedType(data),\n        };\n        const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n        const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));\n        return handleResult(ctx, result);\n    }\n    refine(check, message) {\n        const getIssueProperties = (val) => {\n            if (typeof message === \"string\" || typeof message === \"undefined\") {\n                return { message };\n            }\n            else if (typeof message === \"function\") {\n                return message(val);\n            }\n            else {\n                return message;\n            }\n        };\n        return this._refinement((val, ctx) => {\n            const result = check(val);\n            const setError = () => ctx.addIssue({\n                code: ZodIssueCode.custom,\n                ...getIssueProperties(val),\n            });\n            if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n                return result.then((data) => {\n                    if (!data) {\n                        setError();\n                        return false;\n                    }\n                    else {\n                        return true;\n                    }\n                });\n            }\n            if (!result) {\n                setError();\n                return false;\n            }\n            else {\n                return true;\n            }\n        });\n    }\n    refinement(check, refinementData) {\n        return this._refinement((val, ctx) => {\n            if (!check(val)) {\n                ctx.addIssue(typeof refinementData === \"function\" ? refinementData(val, ctx) : refinementData);\n                return false;\n            }\n            else {\n                return true;\n            }\n        });\n    }\n    _refinement(refinement) {\n        return new ZodEffects({\n            schema: this,\n            typeName: ZodFirstPartyTypeKind.ZodEffects,\n            effect: { type: \"refinement\", refinement },\n        });\n    }\n    superRefine(refinement) {\n        return this._refinement(refinement);\n    }\n    constructor(def) {\n        /** Alias of safeParseAsync */\n        this.spa = this.safeParseAsync;\n        this._def = def;\n        this.parse = this.parse.bind(this);\n        this.safeParse = this.safeParse.bind(this);\n        this.parseAsync = this.parseAsync.bind(this);\n        this.safeParseAsync = this.safeParseAsync.bind(this);\n        this.spa = this.spa.bind(this);\n        this.refine = this.refine.bind(this);\n        this.refinement = this.refinement.bind(this);\n        this.superRefine = this.superRefine.bind(this);\n        this.optional = this.optional.bind(this);\n        this.nullable = this.nullable.bind(this);\n        this.nullish = this.nullish.bind(this);\n        this.array = this.array.bind(this);\n        this.promise = this.promise.bind(this);\n        this.or = this.or.bind(this);\n        this.and = this.and.bind(this);\n        this.transform = this.transform.bind(this);\n        this.brand = this.brand.bind(this);\n        this.default = this.default.bind(this);\n        this.catch = this.catch.bind(this);\n        this.describe = this.describe.bind(this);\n        this.pipe = this.pipe.bind(this);\n        this.readonly = this.readonly.bind(this);\n        this.isNullable = this.isNullable.bind(this);\n        this.isOptional = this.isOptional.bind(this);\n        this[\"~standard\"] = {\n            version: 1,\n            vendor: \"zod\",\n            validate: (data) => this[\"~validate\"](data),\n        };\n    }\n    optional() {\n        return ZodOptional.create(this, this._def);\n    }\n    nullable() {\n        return ZodNullable.create(this, this._def);\n    }\n    nullish() {\n        return this.nullable().optional();\n    }\n    array() {\n        return ZodArray.create(this);\n    }\n    promise() {\n        return ZodPromise.create(this, this._def);\n    }\n    or(option) {\n        return ZodUnion.create([this, option], this._def);\n    }\n    and(incoming) {\n        return ZodIntersection.create(this, incoming, this._def);\n    }\n    transform(transform) {\n        return new ZodEffects({\n            ...processCreateParams(this._def),\n            schema: this,\n            typeName: ZodFirstPartyTypeKind.ZodEffects,\n            effect: { type: \"transform\", transform },\n        });\n    }\n    default(def) {\n        const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n        return new ZodDefault({\n            ...processCreateParams(this._def),\n            innerType: this,\n            defaultValue: defaultValueFunc,\n            typeName: ZodFirstPartyTypeKind.ZodDefault,\n        });\n    }\n    brand() {\n        return new ZodBranded({\n            typeName: ZodFirstPartyTypeKind.ZodBranded,\n            type: this,\n            ...processCreateParams(this._def),\n        });\n    }\n    catch(def) {\n        const catchValueFunc = typeof def === \"function\" ? def : () => def;\n        return new ZodCatch({\n            ...processCreateParams(this._def),\n            innerType: this,\n            catchValue: catchValueFunc,\n            typeName: ZodFirstPartyTypeKind.ZodCatch,\n        });\n    }\n    describe(description) {\n        const This = this.constructor;\n        return new This({\n            ...this._def,\n            description,\n        });\n    }\n    pipe(target) {\n        return ZodPipeline.create(this, target);\n    }\n    readonly() {\n        return ZodReadonly.create(this);\n    }\n    isOptional() {\n        return this.safeParse(undefined).success;\n    }\n    isNullable() {\n        return this.safeParse(null).success;\n    }\n}\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[0-9a-z]+$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;\n// const uuidRegex =\n//   /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\nconst nanoidRegex = /^[a-z0-9_-]{21}$/i;\nconst jwtRegex = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\nconst durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n//   /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n//   /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n//   /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n//   /^[a-z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nlet emojiRegex;\n// faster, simpler, safer\nconst ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nconst ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/;\n// const ipv6Regex =\n// /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\nconst ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;\nconst ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nconst base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;\n// https://base64.guru/standards/base64url\nconst base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;\n// simple\n// const dateRegexSource = `\\\\d{4}-\\\\d{2}-\\\\d{2}`;\n// no leap year validation\n// const dateRegexSource = `\\\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\\\d|2\\\\d))`;\n// with leap year validation\nconst dateRegexSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateRegex = new RegExp(`^${dateRegexSource}$`);\nfunction timeRegexSource(args) {\n    let secondsRegexSource = `[0-5]\\\\d`;\n    if (args.precision) {\n        secondsRegexSource = `${secondsRegexSource}\\\\.\\\\d{${args.precision}}`;\n    }\n    else if (args.precision == null) {\n        secondsRegexSource = `${secondsRegexSource}(\\\\.\\\\d+)?`;\n    }\n    const secondsQuantifier = args.precision ? \"+\" : \"?\"; // require seconds if precision is nonzero\n    return `([01]\\\\d|2[0-3]):[0-5]\\\\d(:${secondsRegexSource})${secondsQuantifier}`;\n}\nfunction timeRegex(args) {\n    return new RegExp(`^${timeRegexSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nexport function datetimeRegex(args) {\n    let regex = `${dateRegexSource}T${timeRegexSource(args)}`;\n    const opts = [];\n    opts.push(args.local ? `Z?` : `Z`);\n    if (args.offset)\n        opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n    regex = `${regex}(${opts.join(\"|\")})`;\n    return new RegExp(`^${regex}$`);\n}\nfunction isValidIP(ip, version) {\n    if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n        return true;\n    }\n    if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n        return true;\n    }\n    return false;\n}\nfunction isValidJWT(jwt, alg) {\n    if (!jwtRegex.test(jwt))\n        return false;\n    try {\n        const [header] = jwt.split(\".\");\n        if (!header)\n            return false;\n        // Convert base64url to base64\n        const base64 = header\n            .replace(/-/g, \"+\")\n            .replace(/_/g, \"/\")\n            .padEnd(header.length + ((4 - (header.length % 4)) % 4), \"=\");\n        const decoded = JSON.parse(atob(base64));\n        if (typeof decoded !== \"object\" || decoded === null)\n            return false;\n        if (\"typ\" in decoded && decoded?.typ !== \"JWT\")\n            return false;\n        if (!decoded.alg)\n            return false;\n        if (alg && decoded.alg !== alg)\n            return false;\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nfunction isValidCidr(ip, version) {\n    if ((version === \"v4\" || !version) && ipv4CidrRegex.test(ip)) {\n        return true;\n    }\n    if ((version === \"v6\" || !version) && ipv6CidrRegex.test(ip)) {\n        return true;\n    }\n    return false;\n}\nexport class ZodString extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = String(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.string) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.string,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const status = new ParseStatus();\n        let ctx = undefined;\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                if (input.data.length < check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        minimum: check.value,\n                        type: \"string\",\n                        inclusive: true,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                if (input.data.length > check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        maximum: check.value,\n                        type: \"string\",\n                        inclusive: true,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"length\") {\n                const tooBig = input.data.length > check.value;\n                const tooSmall = input.data.length < check.value;\n                if (tooBig || tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    if (tooBig) {\n                        addIssueToContext(ctx, {\n                            code: ZodIssueCode.too_big,\n                            maximum: check.value,\n                            type: \"string\",\n                            inclusive: true,\n                            exact: true,\n                            message: check.message,\n                        });\n                    }\n                    else if (tooSmall) {\n                        addIssueToContext(ctx, {\n                            code: ZodIssueCode.too_small,\n                            minimum: check.value,\n                            type: \"string\",\n                            inclusive: true,\n                            exact: true,\n                            message: check.message,\n                        });\n                    }\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"email\") {\n                if (!emailRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"email\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"emoji\") {\n                if (!emojiRegex) {\n                    emojiRegex = new RegExp(_emojiRegex, \"u\");\n                }\n                if (!emojiRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"emoji\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"uuid\") {\n                if (!uuidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"uuid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"nanoid\") {\n                if (!nanoidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"nanoid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cuid\") {\n                if (!cuidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cuid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cuid2\") {\n                if (!cuid2Regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cuid2\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"ulid\") {\n                if (!ulidRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"ulid\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"url\") {\n                try {\n                    new URL(input.data);\n                }\n                catch {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"url\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"regex\") {\n                check.regex.lastIndex = 0;\n                const testResult = check.regex.test(input.data);\n                if (!testResult) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"regex\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"trim\") {\n                input.data = input.data.trim();\n            }\n            else if (check.kind === \"includes\") {\n                if (!input.data.includes(check.value, check.position)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { includes: check.value, position: check.position },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"toLowerCase\") {\n                input.data = input.data.toLowerCase();\n            }\n            else if (check.kind === \"toUpperCase\") {\n                input.data = input.data.toUpperCase();\n            }\n            else if (check.kind === \"startsWith\") {\n                if (!input.data.startsWith(check.value)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { startsWith: check.value },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"endsWith\") {\n                if (!input.data.endsWith(check.value)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: { endsWith: check.value },\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"datetime\") {\n                const regex = datetimeRegex(check);\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"datetime\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"date\") {\n                const regex = dateRegex;\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"date\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"time\") {\n                const regex = timeRegex(check);\n                if (!regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_string,\n                        validation: \"time\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"duration\") {\n                if (!durationRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"duration\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"ip\") {\n                if (!isValidIP(input.data, check.version)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"ip\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"jwt\") {\n                if (!isValidJWT(input.data, check.alg)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"jwt\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"cidr\") {\n                if (!isValidCidr(input.data, check.version)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"cidr\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"base64\") {\n                if (!base64Regex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"base64\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"base64url\") {\n                if (!base64urlRegex.test(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        validation: \"base64url\",\n                        code: ZodIssueCode.invalid_string,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    _regex(regex, validation, message) {\n        return this.refinement((data) => regex.test(data), {\n            validation,\n            code: ZodIssueCode.invalid_string,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    _addCheck(check) {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    email(message) {\n        return this._addCheck({ kind: \"email\", ...errorUtil.errToObj(message) });\n    }\n    url(message) {\n        return this._addCheck({ kind: \"url\", ...errorUtil.errToObj(message) });\n    }\n    emoji(message) {\n        return this._addCheck({ kind: \"emoji\", ...errorUtil.errToObj(message) });\n    }\n    uuid(message) {\n        return this._addCheck({ kind: \"uuid\", ...errorUtil.errToObj(message) });\n    }\n    nanoid(message) {\n        return this._addCheck({ kind: \"nanoid\", ...errorUtil.errToObj(message) });\n    }\n    cuid(message) {\n        return this._addCheck({ kind: \"cuid\", ...errorUtil.errToObj(message) });\n    }\n    cuid2(message) {\n        return this._addCheck({ kind: \"cuid2\", ...errorUtil.errToObj(message) });\n    }\n    ulid(message) {\n        return this._addCheck({ kind: \"ulid\", ...errorUtil.errToObj(message) });\n    }\n    base64(message) {\n        return this._addCheck({ kind: \"base64\", ...errorUtil.errToObj(message) });\n    }\n    base64url(message) {\n        // base64url encoding is a modification of base64 that can safely be used in URLs and filenames\n        return this._addCheck({\n            kind: \"base64url\",\n            ...errorUtil.errToObj(message),\n        });\n    }\n    jwt(options) {\n        return this._addCheck({ kind: \"jwt\", ...errorUtil.errToObj(options) });\n    }\n    ip(options) {\n        return this._addCheck({ kind: \"ip\", ...errorUtil.errToObj(options) });\n    }\n    cidr(options) {\n        return this._addCheck({ kind: \"cidr\", ...errorUtil.errToObj(options) });\n    }\n    datetime(options) {\n        if (typeof options === \"string\") {\n            return this._addCheck({\n                kind: \"datetime\",\n                precision: null,\n                offset: false,\n                local: false,\n                message: options,\n            });\n        }\n        return this._addCheck({\n            kind: \"datetime\",\n            precision: typeof options?.precision === \"undefined\" ? null : options?.precision,\n            offset: options?.offset ?? false,\n            local: options?.local ?? false,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    date(message) {\n        return this._addCheck({ kind: \"date\", message });\n    }\n    time(options) {\n        if (typeof options === \"string\") {\n            return this._addCheck({\n                kind: \"time\",\n                precision: null,\n                message: options,\n            });\n        }\n        return this._addCheck({\n            kind: \"time\",\n            precision: typeof options?.precision === \"undefined\" ? null : options?.precision,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    duration(message) {\n        return this._addCheck({ kind: \"duration\", ...errorUtil.errToObj(message) });\n    }\n    regex(regex, message) {\n        return this._addCheck({\n            kind: \"regex\",\n            regex: regex,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    includes(value, options) {\n        return this._addCheck({\n            kind: \"includes\",\n            value: value,\n            position: options?.position,\n            ...errorUtil.errToObj(options?.message),\n        });\n    }\n    startsWith(value, message) {\n        return this._addCheck({\n            kind: \"startsWith\",\n            value: value,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    endsWith(value, message) {\n        return this._addCheck({\n            kind: \"endsWith\",\n            value: value,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    min(minLength, message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: minLength,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    max(maxLength, message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: maxLength,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    length(len, message) {\n        return this._addCheck({\n            kind: \"length\",\n            value: len,\n            ...errorUtil.errToObj(message),\n        });\n    }\n    /**\n     * Equivalent to `.min(1)`\n     */\n    nonempty(message) {\n        return this.min(1, errorUtil.errToObj(message));\n    }\n    trim() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"trim\" }],\n        });\n    }\n    toLowerCase() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n        });\n    }\n    toUpperCase() {\n        return new ZodString({\n            ...this._def,\n            checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n        });\n    }\n    get isDatetime() {\n        return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n    }\n    get isDate() {\n        return !!this._def.checks.find((ch) => ch.kind === \"date\");\n    }\n    get isTime() {\n        return !!this._def.checks.find((ch) => ch.kind === \"time\");\n    }\n    get isDuration() {\n        return !!this._def.checks.find((ch) => ch.kind === \"duration\");\n    }\n    get isEmail() {\n        return !!this._def.checks.find((ch) => ch.kind === \"email\");\n    }\n    get isURL() {\n        return !!this._def.checks.find((ch) => ch.kind === \"url\");\n    }\n    get isEmoji() {\n        return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n    }\n    get isUUID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n    }\n    get isNANOID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"nanoid\");\n    }\n    get isCUID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n    }\n    get isCUID2() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n    }\n    get isULID() {\n        return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n    }\n    get isIP() {\n        return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n    }\n    get isCIDR() {\n        return !!this._def.checks.find((ch) => ch.kind === \"cidr\");\n    }\n    get isBase64() {\n        return !!this._def.checks.find((ch) => ch.kind === \"base64\");\n    }\n    get isBase64url() {\n        // base64url encoding is a modification of base64 that can safely be used in URLs and filenames\n        return !!this._def.checks.find((ch) => ch.kind === \"base64url\");\n    }\n    get minLength() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxLength() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n}\nZodString.create = (params) => {\n    return new ZodString({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodString,\n        coerce: params?.coerce ?? false,\n        ...processCreateParams(params),\n    });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n    const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n    const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n    const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n    const valInt = Number.parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n    const stepInt = Number.parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n    return (valInt % stepInt) / 10 ** decCount;\n}\nexport class ZodNumber extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.min = this.gte;\n        this.max = this.lte;\n        this.step = this.multipleOf;\n    }\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = Number(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.number) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.number,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        let ctx = undefined;\n        const status = new ParseStatus();\n        for (const check of this._def.checks) {\n            if (check.kind === \"int\") {\n                if (!util.isInteger(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.invalid_type,\n                        expected: \"integer\",\n                        received: \"float\",\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"min\") {\n                const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;\n                if (tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        minimum: check.value,\n                        type: \"number\",\n                        inclusive: check.inclusive,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;\n                if (tooBig) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        maximum: check.value,\n                        type: \"number\",\n                        inclusive: check.inclusive,\n                        exact: false,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"multipleOf\") {\n                if (floatSafeRemainder(input.data, check.value) !== 0) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_multiple_of,\n                        multipleOf: check.value,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"finite\") {\n                if (!Number.isFinite(input.data)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_finite,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    gte(value, message) {\n        return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n    }\n    gt(value, message) {\n        return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n    }\n    lte(value, message) {\n        return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n    }\n    lt(value, message) {\n        return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n    }\n    setLimit(kind, value, inclusive, message) {\n        return new ZodNumber({\n            ...this._def,\n            checks: [\n                ...this._def.checks,\n                {\n                    kind,\n                    value,\n                    inclusive,\n                    message: errorUtil.toString(message),\n                },\n            ],\n        });\n    }\n    _addCheck(check) {\n        return new ZodNumber({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    int(message) {\n        return this._addCheck({\n            kind: \"int\",\n            message: errorUtil.toString(message),\n        });\n    }\n    positive(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: 0,\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    negative(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: 0,\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonpositive(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: 0,\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonnegative(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: 0,\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    multipleOf(value, message) {\n        return this._addCheck({\n            kind: \"multipleOf\",\n            value: value,\n            message: errorUtil.toString(message),\n        });\n    }\n    finite(message) {\n        return this._addCheck({\n            kind: \"finite\",\n            message: errorUtil.toString(message),\n        });\n    }\n    safe(message) {\n        return this._addCheck({\n            kind: \"min\",\n            inclusive: true,\n            value: Number.MIN_SAFE_INTEGER,\n            message: errorUtil.toString(message),\n        })._addCheck({\n            kind: \"max\",\n            inclusive: true,\n            value: Number.MAX_SAFE_INTEGER,\n            message: errorUtil.toString(message),\n        });\n    }\n    get minValue() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxValue() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n    get isInt() {\n        return !!this._def.checks.find((ch) => ch.kind === \"int\" || (ch.kind === \"multipleOf\" && util.isInteger(ch.value)));\n    }\n    get isFinite() {\n        let max = null;\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"finite\" || ch.kind === \"int\" || ch.kind === \"multipleOf\") {\n                return true;\n            }\n            else if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n            else if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return Number.isFinite(min) && Number.isFinite(max);\n    }\n}\nZodNumber.create = (params) => {\n    return new ZodNumber({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodNumber,\n        coerce: params?.coerce || false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodBigInt extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.min = this.gte;\n        this.max = this.lte;\n    }\n    _parse(input) {\n        if (this._def.coerce) {\n            try {\n                input.data = BigInt(input.data);\n            }\n            catch {\n                return this._getInvalidInput(input);\n            }\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.bigint) {\n            return this._getInvalidInput(input);\n        }\n        let ctx = undefined;\n        const status = new ParseStatus();\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;\n                if (tooSmall) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        type: \"bigint\",\n                        minimum: check.value,\n                        inclusive: check.inclusive,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;\n                if (tooBig) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        type: \"bigint\",\n                        maximum: check.value,\n                        inclusive: check.inclusive,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"multipleOf\") {\n                if (input.data % check.value !== BigInt(0)) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.not_multiple_of,\n                        multipleOf: check.value,\n                        message: check.message,\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return { status: status.value, value: input.data };\n    }\n    _getInvalidInput(input) {\n        const ctx = this._getOrReturnCtx(input);\n        addIssueToContext(ctx, {\n            code: ZodIssueCode.invalid_type,\n            expected: ZodParsedType.bigint,\n            received: ctx.parsedType,\n        });\n        return INVALID;\n    }\n    gte(value, message) {\n        return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n    }\n    gt(value, message) {\n        return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n    }\n    lte(value, message) {\n        return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n    }\n    lt(value, message) {\n        return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n    }\n    setLimit(kind, value, inclusive, message) {\n        return new ZodBigInt({\n            ...this._def,\n            checks: [\n                ...this._def.checks,\n                {\n                    kind,\n                    value,\n                    inclusive,\n                    message: errorUtil.toString(message),\n                },\n            ],\n        });\n    }\n    _addCheck(check) {\n        return new ZodBigInt({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    positive(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: BigInt(0),\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    negative(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: BigInt(0),\n            inclusive: false,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonpositive(message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: BigInt(0),\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    nonnegative(message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: BigInt(0),\n            inclusive: true,\n            message: errorUtil.toString(message),\n        });\n    }\n    multipleOf(value, message) {\n        return this._addCheck({\n            kind: \"multipleOf\",\n            value,\n            message: errorUtil.toString(message),\n        });\n    }\n    get minValue() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min;\n    }\n    get maxValue() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max;\n    }\n}\nZodBigInt.create = (params) => {\n    return new ZodBigInt({\n        checks: [],\n        typeName: ZodFirstPartyTypeKind.ZodBigInt,\n        coerce: params?.coerce ?? false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodBoolean extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = Boolean(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.boolean) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.boolean,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodBoolean.create = (params) => {\n    return new ZodBoolean({\n        typeName: ZodFirstPartyTypeKind.ZodBoolean,\n        coerce: params?.coerce || false,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodDate extends ZodType {\n    _parse(input) {\n        if (this._def.coerce) {\n            input.data = new Date(input.data);\n        }\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.date) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.date,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (Number.isNaN(input.data.getTime())) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_date,\n            });\n            return INVALID;\n        }\n        const status = new ParseStatus();\n        let ctx = undefined;\n        for (const check of this._def.checks) {\n            if (check.kind === \"min\") {\n                if (input.data.getTime() < check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_small,\n                        message: check.message,\n                        inclusive: true,\n                        exact: false,\n                        minimum: check.value,\n                        type: \"date\",\n                    });\n                    status.dirty();\n                }\n            }\n            else if (check.kind === \"max\") {\n                if (input.data.getTime() > check.value) {\n                    ctx = this._getOrReturnCtx(input, ctx);\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.too_big,\n                        message: check.message,\n                        inclusive: true,\n                        exact: false,\n                        maximum: check.value,\n                        type: \"date\",\n                    });\n                    status.dirty();\n                }\n            }\n            else {\n                util.assertNever(check);\n            }\n        }\n        return {\n            status: status.value,\n            value: new Date(input.data.getTime()),\n        };\n    }\n    _addCheck(check) {\n        return new ZodDate({\n            ...this._def,\n            checks: [...this._def.checks, check],\n        });\n    }\n    min(minDate, message) {\n        return this._addCheck({\n            kind: \"min\",\n            value: minDate.getTime(),\n            message: errorUtil.toString(message),\n        });\n    }\n    max(maxDate, message) {\n        return this._addCheck({\n            kind: \"max\",\n            value: maxDate.getTime(),\n            message: errorUtil.toString(message),\n        });\n    }\n    get minDate() {\n        let min = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"min\") {\n                if (min === null || ch.value > min)\n                    min = ch.value;\n            }\n        }\n        return min != null ? new Date(min) : null;\n    }\n    get maxDate() {\n        let max = null;\n        for (const ch of this._def.checks) {\n            if (ch.kind === \"max\") {\n                if (max === null || ch.value < max)\n                    max = ch.value;\n            }\n        }\n        return max != null ? new Date(max) : null;\n    }\n}\nZodDate.create = (params) => {\n    return new ZodDate({\n        checks: [],\n        coerce: params?.coerce || false,\n        typeName: ZodFirstPartyTypeKind.ZodDate,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodSymbol extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.symbol) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.symbol,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodSymbol.create = (params) => {\n    return new ZodSymbol({\n        typeName: ZodFirstPartyTypeKind.ZodSymbol,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUndefined extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.undefined) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.undefined,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodUndefined.create = (params) => {\n    return new ZodUndefined({\n        typeName: ZodFirstPartyTypeKind.ZodUndefined,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNull extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.null) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.null,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodNull.create = (params) => {\n    return new ZodNull({\n        typeName: ZodFirstPartyTypeKind.ZodNull,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodAny extends ZodType {\n    constructor() {\n        super(...arguments);\n        // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n        this._any = true;\n    }\n    _parse(input) {\n        return OK(input.data);\n    }\n}\nZodAny.create = (params) => {\n    return new ZodAny({\n        typeName: ZodFirstPartyTypeKind.ZodAny,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUnknown extends ZodType {\n    constructor() {\n        super(...arguments);\n        // required\n        this._unknown = true;\n    }\n    _parse(input) {\n        return OK(input.data);\n    }\n}\nZodUnknown.create = (params) => {\n    return new ZodUnknown({\n        typeName: ZodFirstPartyTypeKind.ZodUnknown,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNever extends ZodType {\n    _parse(input) {\n        const ctx = this._getOrReturnCtx(input);\n        addIssueToContext(ctx, {\n            code: ZodIssueCode.invalid_type,\n            expected: ZodParsedType.never,\n            received: ctx.parsedType,\n        });\n        return INVALID;\n    }\n}\nZodNever.create = (params) => {\n    return new ZodNever({\n        typeName: ZodFirstPartyTypeKind.ZodNever,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodVoid extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.undefined) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.void,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n}\nZodVoid.create = (params) => {\n    return new ZodVoid({\n        typeName: ZodFirstPartyTypeKind.ZodVoid,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodArray extends ZodType {\n    _parse(input) {\n        const { ctx, status } = this._processInputParams(input);\n        const def = this._def;\n        if (ctx.parsedType !== ZodParsedType.array) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.array,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (def.exactLength !== null) {\n            const tooBig = ctx.data.length > def.exactLength.value;\n            const tooSmall = ctx.data.length < def.exactLength.value;\n            if (tooBig || tooSmall) {\n                addIssueToContext(ctx, {\n                    code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,\n                    minimum: (tooSmall ? def.exactLength.value : undefined),\n                    maximum: (tooBig ? def.exactLength.value : undefined),\n                    type: \"array\",\n                    inclusive: true,\n                    exact: true,\n                    message: def.exactLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.minLength !== null) {\n            if (ctx.data.length < def.minLength.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_small,\n                    minimum: def.minLength.value,\n                    type: \"array\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.minLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.maxLength !== null) {\n            if (ctx.data.length > def.maxLength.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_big,\n                    maximum: def.maxLength.value,\n                    type: \"array\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.maxLength.message,\n                });\n                status.dirty();\n            }\n        }\n        if (ctx.common.async) {\n            return Promise.all([...ctx.data].map((item, i) => {\n                return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n            })).then((result) => {\n                return ParseStatus.mergeArray(status, result);\n            });\n        }\n        const result = [...ctx.data].map((item, i) => {\n            return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n        });\n        return ParseStatus.mergeArray(status, result);\n    }\n    get element() {\n        return this._def.type;\n    }\n    min(minLength, message) {\n        return new ZodArray({\n            ...this._def,\n            minLength: { value: minLength, message: errorUtil.toString(message) },\n        });\n    }\n    max(maxLength, message) {\n        return new ZodArray({\n            ...this._def,\n            maxLength: { value: maxLength, message: errorUtil.toString(message) },\n        });\n    }\n    length(len, message) {\n        return new ZodArray({\n            ...this._def,\n            exactLength: { value: len, message: errorUtil.toString(message) },\n        });\n    }\n    nonempty(message) {\n        return this.min(1, message);\n    }\n}\nZodArray.create = (schema, params) => {\n    return new ZodArray({\n        type: schema,\n        minLength: null,\n        maxLength: null,\n        exactLength: null,\n        typeName: ZodFirstPartyTypeKind.ZodArray,\n        ...processCreateParams(params),\n    });\n};\nfunction deepPartialify(schema) {\n    if (schema instanceof ZodObject) {\n        const newShape = {};\n        for (const key in schema.shape) {\n            const fieldSchema = schema.shape[key];\n            newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n        }\n        return new ZodObject({\n            ...schema._def,\n            shape: () => newShape,\n        });\n    }\n    else if (schema instanceof ZodArray) {\n        return new ZodArray({\n            ...schema._def,\n            type: deepPartialify(schema.element),\n        });\n    }\n    else if (schema instanceof ZodOptional) {\n        return ZodOptional.create(deepPartialify(schema.unwrap()));\n    }\n    else if (schema instanceof ZodNullable) {\n        return ZodNullable.create(deepPartialify(schema.unwrap()));\n    }\n    else if (schema instanceof ZodTuple) {\n        return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n    }\n    else {\n        return schema;\n    }\n}\nexport class ZodObject extends ZodType {\n    constructor() {\n        super(...arguments);\n        this._cached = null;\n        /**\n         * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n         * If you want to pass through unknown properties, use `.passthrough()` instead.\n         */\n        this.nonstrict = this.passthrough;\n        // extend<\n        //   Augmentation extends ZodRawShape,\n        //   NewOutput extends util.flatten<{\n        //     [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n        //       ? Augmentation[k][\"_output\"]\n        //       : k extends keyof Output\n        //       ? Output[k]\n        //       : never;\n        //   }>,\n        //   NewInput extends util.flatten<{\n        //     [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n        //       ? Augmentation[k][\"_input\"]\n        //       : k extends keyof Input\n        //       ? Input[k]\n        //       : never;\n        //   }>\n        // >(\n        //   augmentation: Augmentation\n        // ): ZodObject<\n        //   extendShape<T, Augmentation>,\n        //   UnknownKeys,\n        //   Catchall,\n        //   NewOutput,\n        //   NewInput\n        // > {\n        //   return new ZodObject({\n        //     ...this._def,\n        //     shape: () => ({\n        //       ...this._def.shape(),\n        //       ...augmentation,\n        //     }),\n        //   }) as any;\n        // }\n        /**\n         * @deprecated Use `.extend` instead\n         *  */\n        this.augment = this.extend;\n    }\n    _getCached() {\n        if (this._cached !== null)\n            return this._cached;\n        const shape = this._def.shape();\n        const keys = util.objectKeys(shape);\n        this._cached = { shape, keys };\n        return this._cached;\n    }\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.object) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const { status, ctx } = this._processInputParams(input);\n        const { shape, keys: shapeKeys } = this._getCached();\n        const extraKeys = [];\n        if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === \"strip\")) {\n            for (const key in ctx.data) {\n                if (!shapeKeys.includes(key)) {\n                    extraKeys.push(key);\n                }\n            }\n        }\n        const pairs = [];\n        for (const key of shapeKeys) {\n            const keyValidator = shape[key];\n            const value = ctx.data[key];\n            pairs.push({\n                key: { status: \"valid\", value: key },\n                value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n                alwaysSet: key in ctx.data,\n            });\n        }\n        if (this._def.catchall instanceof ZodNever) {\n            const unknownKeys = this._def.unknownKeys;\n            if (unknownKeys === \"passthrough\") {\n                for (const key of extraKeys) {\n                    pairs.push({\n                        key: { status: \"valid\", value: key },\n                        value: { status: \"valid\", value: ctx.data[key] },\n                    });\n                }\n            }\n            else if (unknownKeys === \"strict\") {\n                if (extraKeys.length > 0) {\n                    addIssueToContext(ctx, {\n                        code: ZodIssueCode.unrecognized_keys,\n                        keys: extraKeys,\n                    });\n                    status.dirty();\n                }\n            }\n            else if (unknownKeys === \"strip\") {\n            }\n            else {\n                throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n            }\n        }\n        else {\n            // run catchall validation\n            const catchall = this._def.catchall;\n            for (const key of extraKeys) {\n                const value = ctx.data[key];\n                pairs.push({\n                    key: { status: \"valid\", value: key },\n                    value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n                    ),\n                    alwaysSet: key in ctx.data,\n                });\n            }\n        }\n        if (ctx.common.async) {\n            return Promise.resolve()\n                .then(async () => {\n                const syncPairs = [];\n                for (const pair of pairs) {\n                    const key = await pair.key;\n                    const value = await pair.value;\n                    syncPairs.push({\n                        key,\n                        value,\n                        alwaysSet: pair.alwaysSet,\n                    });\n                }\n                return syncPairs;\n            })\n                .then((syncPairs) => {\n                return ParseStatus.mergeObjectSync(status, syncPairs);\n            });\n        }\n        else {\n            return ParseStatus.mergeObjectSync(status, pairs);\n        }\n    }\n    get shape() {\n        return this._def.shape();\n    }\n    strict(message) {\n        errorUtil.errToObj;\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"strict\",\n            ...(message !== undefined\n                ? {\n                    errorMap: (issue, ctx) => {\n                        const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;\n                        if (issue.code === \"unrecognized_keys\")\n                            return {\n                                message: errorUtil.errToObj(message).message ?? defaultError,\n                            };\n                        return {\n                            message: defaultError,\n                        };\n                    },\n                }\n                : {}),\n        });\n    }\n    strip() {\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"strip\",\n        });\n    }\n    passthrough() {\n        return new ZodObject({\n            ...this._def,\n            unknownKeys: \"passthrough\",\n        });\n    }\n    // const AugmentFactory =\n    //   <Def extends ZodObjectDef>(def: Def) =>\n    //   <Augmentation extends ZodRawShape>(\n    //     augmentation: Augmentation\n    //   ): ZodObject<\n    //     extendShape<ReturnType<Def[\"shape\"]>, Augmentation>,\n    //     Def[\"unknownKeys\"],\n    //     Def[\"catchall\"]\n    //   > => {\n    //     return new ZodObject({\n    //       ...def,\n    //       shape: () => ({\n    //         ...def.shape(),\n    //         ...augmentation,\n    //       }),\n    //     }) as any;\n    //   };\n    extend(augmentation) {\n        return new ZodObject({\n            ...this._def,\n            shape: () => ({\n                ...this._def.shape(),\n                ...augmentation,\n            }),\n        });\n    }\n    /**\n     * Prior to zod@1.0.12 there was a bug in the\n     * inferred type of merged objects. Please\n     * upgrade if you are experiencing issues.\n     */\n    merge(merging) {\n        const merged = new ZodObject({\n            unknownKeys: merging._def.unknownKeys,\n            catchall: merging._def.catchall,\n            shape: () => ({\n                ...this._def.shape(),\n                ...merging._def.shape(),\n            }),\n            typeName: ZodFirstPartyTypeKind.ZodObject,\n        });\n        return merged;\n    }\n    // merge<\n    //   Incoming extends AnyZodObject,\n    //   Augmentation extends Incoming[\"shape\"],\n    //   NewOutput extends {\n    //     [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n    //       ? Augmentation[k][\"_output\"]\n    //       : k extends keyof Output\n    //       ? Output[k]\n    //       : never;\n    //   },\n    //   NewInput extends {\n    //     [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n    //       ? Augmentation[k][\"_input\"]\n    //       : k extends keyof Input\n    //       ? Input[k]\n    //       : never;\n    //   }\n    // >(\n    //   merging: Incoming\n    // ): ZodObject<\n    //   extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n    //   Incoming[\"_def\"][\"unknownKeys\"],\n    //   Incoming[\"_def\"][\"catchall\"],\n    //   NewOutput,\n    //   NewInput\n    // > {\n    //   const merged: any = new ZodObject({\n    //     unknownKeys: merging._def.unknownKeys,\n    //     catchall: merging._def.catchall,\n    //     shape: () =>\n    //       objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n    //     typeName: ZodFirstPartyTypeKind.ZodObject,\n    //   }) as any;\n    //   return merged;\n    // }\n    setKey(key, schema) {\n        return this.augment({ [key]: schema });\n    }\n    // merge<Incoming extends AnyZodObject>(\n    //   merging: Incoming\n    // ): //ZodObject<T & Incoming[\"_shape\"], UnknownKeys, Catchall> = (merging) => {\n    // ZodObject<\n    //   extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n    //   Incoming[\"_def\"][\"unknownKeys\"],\n    //   Incoming[\"_def\"][\"catchall\"]\n    // > {\n    //   // const mergedShape = objectUtil.mergeShapes(\n    //   //   this._def.shape(),\n    //   //   merging._def.shape()\n    //   // );\n    //   const merged: any = new ZodObject({\n    //     unknownKeys: merging._def.unknownKeys,\n    //     catchall: merging._def.catchall,\n    //     shape: () =>\n    //       objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n    //     typeName: ZodFirstPartyTypeKind.ZodObject,\n    //   }) as any;\n    //   return merged;\n    // }\n    catchall(index) {\n        return new ZodObject({\n            ...this._def,\n            catchall: index,\n        });\n    }\n    pick(mask) {\n        const shape = {};\n        for (const key of util.objectKeys(mask)) {\n            if (mask[key] && this.shape[key]) {\n                shape[key] = this.shape[key];\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => shape,\n        });\n    }\n    omit(mask) {\n        const shape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            if (!mask[key]) {\n                shape[key] = this.shape[key];\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => shape,\n        });\n    }\n    /**\n     * @deprecated\n     */\n    deepPartial() {\n        return deepPartialify(this);\n    }\n    partial(mask) {\n        const newShape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            const fieldSchema = this.shape[key];\n            if (mask && !mask[key]) {\n                newShape[key] = fieldSchema;\n            }\n            else {\n                newShape[key] = fieldSchema.optional();\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => newShape,\n        });\n    }\n    required(mask) {\n        const newShape = {};\n        for (const key of util.objectKeys(this.shape)) {\n            if (mask && !mask[key]) {\n                newShape[key] = this.shape[key];\n            }\n            else {\n                const fieldSchema = this.shape[key];\n                let newField = fieldSchema;\n                while (newField instanceof ZodOptional) {\n                    newField = newField._def.innerType;\n                }\n                newShape[key] = newField;\n            }\n        }\n        return new ZodObject({\n            ...this._def,\n            shape: () => newShape,\n        });\n    }\n    keyof() {\n        return createZodEnum(util.objectKeys(this.shape));\n    }\n}\nZodObject.create = (shape, params) => {\n    return new ZodObject({\n        shape: () => shape,\n        unknownKeys: \"strip\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nZodObject.strictCreate = (shape, params) => {\n    return new ZodObject({\n        shape: () => shape,\n        unknownKeys: \"strict\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nZodObject.lazycreate = (shape, params) => {\n    return new ZodObject({\n        shape,\n        unknownKeys: \"strip\",\n        catchall: ZodNever.create(),\n        typeName: ZodFirstPartyTypeKind.ZodObject,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodUnion extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const options = this._def.options;\n        function handleResults(results) {\n            // return first issue-free validation if it exists\n            for (const result of results) {\n                if (result.result.status === \"valid\") {\n                    return result.result;\n                }\n            }\n            for (const result of results) {\n                if (result.result.status === \"dirty\") {\n                    // add issues from dirty option\n                    ctx.common.issues.push(...result.ctx.common.issues);\n                    return result.result;\n                }\n            }\n            // return invalid\n            const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union,\n                unionErrors,\n            });\n            return INVALID;\n        }\n        if (ctx.common.async) {\n            return Promise.all(options.map(async (option) => {\n                const childCtx = {\n                    ...ctx,\n                    common: {\n                        ...ctx.common,\n                        issues: [],\n                    },\n                    parent: null,\n                };\n                return {\n                    result: await option._parseAsync({\n                        data: ctx.data,\n                        path: ctx.path,\n                        parent: childCtx,\n                    }),\n                    ctx: childCtx,\n                };\n            })).then(handleResults);\n        }\n        else {\n            let dirty = undefined;\n            const issues = [];\n            for (const option of options) {\n                const childCtx = {\n                    ...ctx,\n                    common: {\n                        ...ctx.common,\n                        issues: [],\n                    },\n                    parent: null,\n                };\n                const result = option._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: childCtx,\n                });\n                if (result.status === \"valid\") {\n                    return result;\n                }\n                else if (result.status === \"dirty\" && !dirty) {\n                    dirty = { result, ctx: childCtx };\n                }\n                if (childCtx.common.issues.length) {\n                    issues.push(childCtx.common.issues);\n                }\n            }\n            if (dirty) {\n                ctx.common.issues.push(...dirty.ctx.common.issues);\n                return dirty.result;\n            }\n            const unionErrors = issues.map((issues) => new ZodError(issues));\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union,\n                unionErrors,\n            });\n            return INVALID;\n        }\n    }\n    get options() {\n        return this._def.options;\n    }\n}\nZodUnion.create = (types, params) => {\n    return new ZodUnion({\n        options: types,\n        typeName: ZodFirstPartyTypeKind.ZodUnion,\n        ...processCreateParams(params),\n    });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n//////////                                 //////////\n//////////      ZodDiscriminatedUnion      //////////\n//////////                                 //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n    if (type instanceof ZodLazy) {\n        return getDiscriminator(type.schema);\n    }\n    else if (type instanceof ZodEffects) {\n        return getDiscriminator(type.innerType());\n    }\n    else if (type instanceof ZodLiteral) {\n        return [type.value];\n    }\n    else if (type instanceof ZodEnum) {\n        return type.options;\n    }\n    else if (type instanceof ZodNativeEnum) {\n        // eslint-disable-next-line ban/ban\n        return util.objectValues(type.enum);\n    }\n    else if (type instanceof ZodDefault) {\n        return getDiscriminator(type._def.innerType);\n    }\n    else if (type instanceof ZodUndefined) {\n        return [undefined];\n    }\n    else if (type instanceof ZodNull) {\n        return [null];\n    }\n    else if (type instanceof ZodOptional) {\n        return [undefined, ...getDiscriminator(type.unwrap())];\n    }\n    else if (type instanceof ZodNullable) {\n        return [null, ...getDiscriminator(type.unwrap())];\n    }\n    else if (type instanceof ZodBranded) {\n        return getDiscriminator(type.unwrap());\n    }\n    else if (type instanceof ZodReadonly) {\n        return getDiscriminator(type.unwrap());\n    }\n    else if (type instanceof ZodCatch) {\n        return getDiscriminator(type._def.innerType);\n    }\n    else {\n        return [];\n    }\n};\nexport class ZodDiscriminatedUnion extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.object) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const discriminator = this.discriminator;\n        const discriminatorValue = ctx.data[discriminator];\n        const option = this.optionsMap.get(discriminatorValue);\n        if (!option) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_union_discriminator,\n                options: Array.from(this.optionsMap.keys()),\n                path: [discriminator],\n            });\n            return INVALID;\n        }\n        if (ctx.common.async) {\n            return option._parseAsync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n        }\n        else {\n            return option._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n        }\n    }\n    get discriminator() {\n        return this._def.discriminator;\n    }\n    get options() {\n        return this._def.options;\n    }\n    get optionsMap() {\n        return this._def.optionsMap;\n    }\n    /**\n     * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n     * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n     * have a different value for each object in the union.\n     * @param discriminator the name of the discriminator property\n     * @param types an array of object schemas\n     * @param params\n     */\n    static create(discriminator, options, params) {\n        // Get all the valid discriminator values\n        const optionsMap = new Map();\n        // try {\n        for (const type of options) {\n            const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n            if (!discriminatorValues.length) {\n                throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n            }\n            for (const value of discriminatorValues) {\n                if (optionsMap.has(value)) {\n                    throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n                }\n                optionsMap.set(value, type);\n            }\n        }\n        return new ZodDiscriminatedUnion({\n            typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n            discriminator,\n            options,\n            optionsMap,\n            ...processCreateParams(params),\n        });\n    }\n}\nfunction mergeValues(a, b) {\n    const aType = getParsedType(a);\n    const bType = getParsedType(b);\n    if (a === b) {\n        return { valid: true, data: a };\n    }\n    else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n        const bKeys = util.objectKeys(b);\n        const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);\n        const newObj = { ...a, ...b };\n        for (const key of sharedKeys) {\n            const sharedValue = mergeValues(a[key], b[key]);\n            if (!sharedValue.valid) {\n                return { valid: false };\n            }\n            newObj[key] = sharedValue.data;\n        }\n        return { valid: true, data: newObj };\n    }\n    else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n        if (a.length !== b.length) {\n            return { valid: false };\n        }\n        const newArray = [];\n        for (let index = 0; index < a.length; index++) {\n            const itemA = a[index];\n            const itemB = b[index];\n            const sharedValue = mergeValues(itemA, itemB);\n            if (!sharedValue.valid) {\n                return { valid: false };\n            }\n            newArray.push(sharedValue.data);\n        }\n        return { valid: true, data: newArray };\n    }\n    else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {\n        return { valid: true, data: a };\n    }\n    else {\n        return { valid: false };\n    }\n}\nexport class ZodIntersection extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        const handleParsed = (parsedLeft, parsedRight) => {\n            if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n                return INVALID;\n            }\n            const merged = mergeValues(parsedLeft.value, parsedRight.value);\n            if (!merged.valid) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.invalid_intersection_types,\n                });\n                return INVALID;\n            }\n            if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n                status.dirty();\n            }\n            return { status: status.value, value: merged.data };\n        };\n        if (ctx.common.async) {\n            return Promise.all([\n                this._def.left._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                }),\n                this._def.right._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                }),\n            ]).then(([left, right]) => handleParsed(left, right));\n        }\n        else {\n            return handleParsed(this._def.left._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            }), this._def.right._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            }));\n        }\n    }\n}\nZodIntersection.create = (left, right, params) => {\n    return new ZodIntersection({\n        left: left,\n        right: right,\n        typeName: ZodFirstPartyTypeKind.ZodIntersection,\n        ...processCreateParams(params),\n    });\n};\n// type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\nexport class ZodTuple extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.array) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.array,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        if (ctx.data.length < this._def.items.length) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.too_small,\n                minimum: this._def.items.length,\n                inclusive: true,\n                exact: false,\n                type: \"array\",\n            });\n            return INVALID;\n        }\n        const rest = this._def.rest;\n        if (!rest && ctx.data.length > this._def.items.length) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.too_big,\n                maximum: this._def.items.length,\n                inclusive: true,\n                exact: false,\n                type: \"array\",\n            });\n            status.dirty();\n        }\n        const items = [...ctx.data]\n            .map((item, itemIndex) => {\n            const schema = this._def.items[itemIndex] || this._def.rest;\n            if (!schema)\n                return null;\n            return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n        })\n            .filter((x) => !!x); // filter nulls\n        if (ctx.common.async) {\n            return Promise.all(items).then((results) => {\n                return ParseStatus.mergeArray(status, results);\n            });\n        }\n        else {\n            return ParseStatus.mergeArray(status, items);\n        }\n    }\n    get items() {\n        return this._def.items;\n    }\n    rest(rest) {\n        return new ZodTuple({\n            ...this._def,\n            rest,\n        });\n    }\n}\nZodTuple.create = (schemas, params) => {\n    if (!Array.isArray(schemas)) {\n        throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n    }\n    return new ZodTuple({\n        items: schemas,\n        typeName: ZodFirstPartyTypeKind.ZodTuple,\n        rest: null,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodRecord extends ZodType {\n    get keySchema() {\n        return this._def.keyType;\n    }\n    get valueSchema() {\n        return this._def.valueType;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.object) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.object,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const pairs = [];\n        const keyType = this._def.keyType;\n        const valueType = this._def.valueType;\n        for (const key in ctx.data) {\n            pairs.push({\n                key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n                value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n                alwaysSet: key in ctx.data,\n            });\n        }\n        if (ctx.common.async) {\n            return ParseStatus.mergeObjectAsync(status, pairs);\n        }\n        else {\n            return ParseStatus.mergeObjectSync(status, pairs);\n        }\n    }\n    get element() {\n        return this._def.valueType;\n    }\n    static create(first, second, third) {\n        if (second instanceof ZodType) {\n            return new ZodRecord({\n                keyType: first,\n                valueType: second,\n                typeName: ZodFirstPartyTypeKind.ZodRecord,\n                ...processCreateParams(third),\n            });\n        }\n        return new ZodRecord({\n            keyType: ZodString.create(),\n            valueType: first,\n            typeName: ZodFirstPartyTypeKind.ZodRecord,\n            ...processCreateParams(second),\n        });\n    }\n}\nexport class ZodMap extends ZodType {\n    get keySchema() {\n        return this._def.keyType;\n    }\n    get valueSchema() {\n        return this._def.valueType;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.map) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.map,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const keyType = this._def.keyType;\n        const valueType = this._def.valueType;\n        const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n            return {\n                key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n                value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n            };\n        });\n        if (ctx.common.async) {\n            const finalMap = new Map();\n            return Promise.resolve().then(async () => {\n                for (const pair of pairs) {\n                    const key = await pair.key;\n                    const value = await pair.value;\n                    if (key.status === \"aborted\" || value.status === \"aborted\") {\n                        return INVALID;\n                    }\n                    if (key.status === \"dirty\" || value.status === \"dirty\") {\n                        status.dirty();\n                    }\n                    finalMap.set(key.value, value.value);\n                }\n                return { status: status.value, value: finalMap };\n            });\n        }\n        else {\n            const finalMap = new Map();\n            for (const pair of pairs) {\n                const key = pair.key;\n                const value = pair.value;\n                if (key.status === \"aborted\" || value.status === \"aborted\") {\n                    return INVALID;\n                }\n                if (key.status === \"dirty\" || value.status === \"dirty\") {\n                    status.dirty();\n                }\n                finalMap.set(key.value, value.value);\n            }\n            return { status: status.value, value: finalMap };\n        }\n    }\n}\nZodMap.create = (keyType, valueType, params) => {\n    return new ZodMap({\n        valueType,\n        keyType,\n        typeName: ZodFirstPartyTypeKind.ZodMap,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodSet extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.set) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.set,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const def = this._def;\n        if (def.minSize !== null) {\n            if (ctx.data.size < def.minSize.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_small,\n                    minimum: def.minSize.value,\n                    type: \"set\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.minSize.message,\n                });\n                status.dirty();\n            }\n        }\n        if (def.maxSize !== null) {\n            if (ctx.data.size > def.maxSize.value) {\n                addIssueToContext(ctx, {\n                    code: ZodIssueCode.too_big,\n                    maximum: def.maxSize.value,\n                    type: \"set\",\n                    inclusive: true,\n                    exact: false,\n                    message: def.maxSize.message,\n                });\n                status.dirty();\n            }\n        }\n        const valueType = this._def.valueType;\n        function finalizeSet(elements) {\n            const parsedSet = new Set();\n            for (const element of elements) {\n                if (element.status === \"aborted\")\n                    return INVALID;\n                if (element.status === \"dirty\")\n                    status.dirty();\n                parsedSet.add(element.value);\n            }\n            return { status: status.value, value: parsedSet };\n        }\n        const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n        if (ctx.common.async) {\n            return Promise.all(elements).then((elements) => finalizeSet(elements));\n        }\n        else {\n            return finalizeSet(elements);\n        }\n    }\n    min(minSize, message) {\n        return new ZodSet({\n            ...this._def,\n            minSize: { value: minSize, message: errorUtil.toString(message) },\n        });\n    }\n    max(maxSize, message) {\n        return new ZodSet({\n            ...this._def,\n            maxSize: { value: maxSize, message: errorUtil.toString(message) },\n        });\n    }\n    size(size, message) {\n        return this.min(size, message).max(size, message);\n    }\n    nonempty(message) {\n        return this.min(1, message);\n    }\n}\nZodSet.create = (valueType, params) => {\n    return new ZodSet({\n        valueType,\n        minSize: null,\n        maxSize: null,\n        typeName: ZodFirstPartyTypeKind.ZodSet,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodFunction extends ZodType {\n    constructor() {\n        super(...arguments);\n        this.validate = this.implement;\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.function) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.function,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        function makeArgsIssue(args, error) {\n            return makeIssue({\n                data: args,\n                path: ctx.path,\n                errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),\n                issueData: {\n                    code: ZodIssueCode.invalid_arguments,\n                    argumentsError: error,\n                },\n            });\n        }\n        function makeReturnsIssue(returns, error) {\n            return makeIssue({\n                data: returns,\n                path: ctx.path,\n                errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),\n                issueData: {\n                    code: ZodIssueCode.invalid_return_type,\n                    returnTypeError: error,\n                },\n            });\n        }\n        const params = { errorMap: ctx.common.contextualErrorMap };\n        const fn = ctx.data;\n        if (this._def.returns instanceof ZodPromise) {\n            // Would love a way to avoid disabling this rule, but we need\n            // an alias (using an arrow function was what caused 2651).\n            // eslint-disable-next-line @typescript-eslint/no-this-alias\n            const me = this;\n            return OK(async function (...args) {\n                const error = new ZodError([]);\n                const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {\n                    error.addIssue(makeArgsIssue(args, e));\n                    throw error;\n                });\n                const result = await Reflect.apply(fn, this, parsedArgs);\n                const parsedReturns = await me._def.returns._def.type\n                    .parseAsync(result, params)\n                    .catch((e) => {\n                    error.addIssue(makeReturnsIssue(result, e));\n                    throw error;\n                });\n                return parsedReturns;\n            });\n        }\n        else {\n            // Would love a way to avoid disabling this rule, but we need\n            // an alias (using an arrow function was what caused 2651).\n            // eslint-disable-next-line @typescript-eslint/no-this-alias\n            const me = this;\n            return OK(function (...args) {\n                const parsedArgs = me._def.args.safeParse(args, params);\n                if (!parsedArgs.success) {\n                    throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);\n                }\n                const result = Reflect.apply(fn, this, parsedArgs.data);\n                const parsedReturns = me._def.returns.safeParse(result, params);\n                if (!parsedReturns.success) {\n                    throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n                }\n                return parsedReturns.data;\n            });\n        }\n    }\n    parameters() {\n        return this._def.args;\n    }\n    returnType() {\n        return this._def.returns;\n    }\n    args(...items) {\n        return new ZodFunction({\n            ...this._def,\n            args: ZodTuple.create(items).rest(ZodUnknown.create()),\n        });\n    }\n    returns(returnType) {\n        return new ZodFunction({\n            ...this._def,\n            returns: returnType,\n        });\n    }\n    implement(func) {\n        const validatedFunc = this.parse(func);\n        return validatedFunc;\n    }\n    strictImplement(func) {\n        const validatedFunc = this.parse(func);\n        return validatedFunc;\n    }\n    static create(args, returns, params) {\n        return new ZodFunction({\n            args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),\n            returns: returns || ZodUnknown.create(),\n            typeName: ZodFirstPartyTypeKind.ZodFunction,\n            ...processCreateParams(params),\n        });\n    }\n}\nexport class ZodLazy extends ZodType {\n    get schema() {\n        return this._def.getter();\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const lazySchema = this._def.getter();\n        return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n    }\n}\nZodLazy.create = (getter, params) => {\n    return new ZodLazy({\n        getter: getter,\n        typeName: ZodFirstPartyTypeKind.ZodLazy,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodLiteral extends ZodType {\n    _parse(input) {\n        if (input.data !== this._def.value) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_literal,\n                expected: this._def.value,\n            });\n            return INVALID;\n        }\n        return { status: \"valid\", value: input.data };\n    }\n    get value() {\n        return this._def.value;\n    }\n}\nZodLiteral.create = (value, params) => {\n    return new ZodLiteral({\n        value: value,\n        typeName: ZodFirstPartyTypeKind.ZodLiteral,\n        ...processCreateParams(params),\n    });\n};\nfunction createZodEnum(values, params) {\n    return new ZodEnum({\n        values,\n        typeName: ZodFirstPartyTypeKind.ZodEnum,\n        ...processCreateParams(params),\n    });\n}\nexport class ZodEnum extends ZodType {\n    _parse(input) {\n        if (typeof input.data !== \"string\") {\n            const ctx = this._getOrReturnCtx(input);\n            const expectedValues = this._def.values;\n            addIssueToContext(ctx, {\n                expected: util.joinValues(expectedValues),\n                received: ctx.parsedType,\n                code: ZodIssueCode.invalid_type,\n            });\n            return INVALID;\n        }\n        if (!this._cache) {\n            this._cache = new Set(this._def.values);\n        }\n        if (!this._cache.has(input.data)) {\n            const ctx = this._getOrReturnCtx(input);\n            const expectedValues = this._def.values;\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_enum_value,\n                options: expectedValues,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n    get options() {\n        return this._def.values;\n    }\n    get enum() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    get Values() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    get Enum() {\n        const enumValues = {};\n        for (const val of this._def.values) {\n            enumValues[val] = val;\n        }\n        return enumValues;\n    }\n    extract(values, newDef = this._def) {\n        return ZodEnum.create(values, {\n            ...this._def,\n            ...newDef,\n        });\n    }\n    exclude(values, newDef = this._def) {\n        return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {\n            ...this._def,\n            ...newDef,\n        });\n    }\n}\nZodEnum.create = createZodEnum;\nexport class ZodNativeEnum extends ZodType {\n    _parse(input) {\n        const nativeEnumValues = util.getValidEnumValues(this._def.values);\n        const ctx = this._getOrReturnCtx(input);\n        if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {\n            const expectedValues = util.objectValues(nativeEnumValues);\n            addIssueToContext(ctx, {\n                expected: util.joinValues(expectedValues),\n                received: ctx.parsedType,\n                code: ZodIssueCode.invalid_type,\n            });\n            return INVALID;\n        }\n        if (!this._cache) {\n            this._cache = new Set(util.getValidEnumValues(this._def.values));\n        }\n        if (!this._cache.has(input.data)) {\n            const expectedValues = util.objectValues(nativeEnumValues);\n            addIssueToContext(ctx, {\n                received: ctx.data,\n                code: ZodIssueCode.invalid_enum_value,\n                options: expectedValues,\n            });\n            return INVALID;\n        }\n        return OK(input.data);\n    }\n    get enum() {\n        return this._def.values;\n    }\n}\nZodNativeEnum.create = (values, params) => {\n    return new ZodNativeEnum({\n        values: values,\n        typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodPromise extends ZodType {\n    unwrap() {\n        return this._def.type;\n    }\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.promise,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);\n        return OK(promisified.then((data) => {\n            return this._def.type.parseAsync(data, {\n                path: ctx.path,\n                errorMap: ctx.common.contextualErrorMap,\n            });\n        }));\n    }\n}\nZodPromise.create = (schema, params) => {\n    return new ZodPromise({\n        type: schema,\n        typeName: ZodFirstPartyTypeKind.ZodPromise,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodEffects extends ZodType {\n    innerType() {\n        return this._def.schema;\n    }\n    sourceType() {\n        return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n            ? this._def.schema.sourceType()\n            : this._def.schema;\n    }\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        const effect = this._def.effect || null;\n        const checkCtx = {\n            addIssue: (arg) => {\n                addIssueToContext(ctx, arg);\n                if (arg.fatal) {\n                    status.abort();\n                }\n                else {\n                    status.dirty();\n                }\n            },\n            get path() {\n                return ctx.path;\n            },\n        };\n        checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n        if (effect.type === \"preprocess\") {\n            const processed = effect.transform(ctx.data, checkCtx);\n            if (ctx.common.async) {\n                return Promise.resolve(processed).then(async (processed) => {\n                    if (status.value === \"aborted\")\n                        return INVALID;\n                    const result = await this._def.schema._parseAsync({\n                        data: processed,\n                        path: ctx.path,\n                        parent: ctx,\n                    });\n                    if (result.status === \"aborted\")\n                        return INVALID;\n                    if (result.status === \"dirty\")\n                        return DIRTY(result.value);\n                    if (status.value === \"dirty\")\n                        return DIRTY(result.value);\n                    return result;\n                });\n            }\n            else {\n                if (status.value === \"aborted\")\n                    return INVALID;\n                const result = this._def.schema._parseSync({\n                    data: processed,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (result.status === \"aborted\")\n                    return INVALID;\n                if (result.status === \"dirty\")\n                    return DIRTY(result.value);\n                if (status.value === \"dirty\")\n                    return DIRTY(result.value);\n                return result;\n            }\n        }\n        if (effect.type === \"refinement\") {\n            const executeRefinement = (acc) => {\n                const result = effect.refinement(acc, checkCtx);\n                if (ctx.common.async) {\n                    return Promise.resolve(result);\n                }\n                if (result instanceof Promise) {\n                    throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n                }\n                return acc;\n            };\n            if (ctx.common.async === false) {\n                const inner = this._def.schema._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (inner.status === \"aborted\")\n                    return INVALID;\n                if (inner.status === \"dirty\")\n                    status.dirty();\n                // return value is ignored\n                executeRefinement(inner.value);\n                return { status: status.value, value: inner.value };\n            }\n            else {\n                return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {\n                    if (inner.status === \"aborted\")\n                        return INVALID;\n                    if (inner.status === \"dirty\")\n                        status.dirty();\n                    return executeRefinement(inner.value).then(() => {\n                        return { status: status.value, value: inner.value };\n                    });\n                });\n            }\n        }\n        if (effect.type === \"transform\") {\n            if (ctx.common.async === false) {\n                const base = this._def.schema._parseSync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (!isValid(base))\n                    return INVALID;\n                const result = effect.transform(base.value, checkCtx);\n                if (result instanceof Promise) {\n                    throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n                }\n                return { status: status.value, value: result };\n            }\n            else {\n                return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {\n                    if (!isValid(base))\n                        return INVALID;\n                    return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({\n                        status: status.value,\n                        value: result,\n                    }));\n                });\n            }\n        }\n        util.assertNever(effect);\n    }\n}\nZodEffects.create = (schema, effect, params) => {\n    return new ZodEffects({\n        schema,\n        typeName: ZodFirstPartyTypeKind.ZodEffects,\n        effect,\n        ...processCreateParams(params),\n    });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n    return new ZodEffects({\n        schema,\n        effect: { type: \"preprocess\", transform: preprocess },\n        typeName: ZodFirstPartyTypeKind.ZodEffects,\n        ...processCreateParams(params),\n    });\n};\nexport { ZodEffects as ZodTransformer };\nexport class ZodOptional extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType === ZodParsedType.undefined) {\n            return OK(undefined);\n        }\n        return this._def.innerType._parse(input);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodOptional.create = (type, params) => {\n    return new ZodOptional({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodOptional,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNullable extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType === ZodParsedType.null) {\n            return OK(null);\n        }\n        return this._def.innerType._parse(input);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodNullable.create = (type, params) => {\n    return new ZodNullable({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodNullable,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodDefault extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        let data = ctx.data;\n        if (ctx.parsedType === ZodParsedType.undefined) {\n            data = this._def.defaultValue();\n        }\n        return this._def.innerType._parse({\n            data,\n            path: ctx.path,\n            parent: ctx,\n        });\n    }\n    removeDefault() {\n        return this._def.innerType;\n    }\n}\nZodDefault.create = (type, params) => {\n    return new ZodDefault({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodDefault,\n        defaultValue: typeof params.default === \"function\" ? params.default : () => params.default,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodCatch extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        // newCtx is used to not collect issues from inner types in ctx\n        const newCtx = {\n            ...ctx,\n            common: {\n                ...ctx.common,\n                issues: [],\n            },\n        };\n        const result = this._def.innerType._parse({\n            data: newCtx.data,\n            path: newCtx.path,\n            parent: {\n                ...newCtx,\n            },\n        });\n        if (isAsync(result)) {\n            return result.then((result) => {\n                return {\n                    status: \"valid\",\n                    value: result.status === \"valid\"\n                        ? result.value\n                        : this._def.catchValue({\n                            get error() {\n                                return new ZodError(newCtx.common.issues);\n                            },\n                            input: newCtx.data,\n                        }),\n                };\n            });\n        }\n        else {\n            return {\n                status: \"valid\",\n                value: result.status === \"valid\"\n                    ? result.value\n                    : this._def.catchValue({\n                        get error() {\n                            return new ZodError(newCtx.common.issues);\n                        },\n                        input: newCtx.data,\n                    }),\n            };\n        }\n    }\n    removeCatch() {\n        return this._def.innerType;\n    }\n}\nZodCatch.create = (type, params) => {\n    return new ZodCatch({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodCatch,\n        catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n        ...processCreateParams(params),\n    });\n};\nexport class ZodNaN extends ZodType {\n    _parse(input) {\n        const parsedType = this._getType(input);\n        if (parsedType !== ZodParsedType.nan) {\n            const ctx = this._getOrReturnCtx(input);\n            addIssueToContext(ctx, {\n                code: ZodIssueCode.invalid_type,\n                expected: ZodParsedType.nan,\n                received: ctx.parsedType,\n            });\n            return INVALID;\n        }\n        return { status: \"valid\", value: input.data };\n    }\n}\nZodNaN.create = (params) => {\n    return new ZodNaN({\n        typeName: ZodFirstPartyTypeKind.ZodNaN,\n        ...processCreateParams(params),\n    });\n};\nexport const BRAND = Symbol(\"zod_brand\");\nexport class ZodBranded extends ZodType {\n    _parse(input) {\n        const { ctx } = this._processInputParams(input);\n        const data = ctx.data;\n        return this._def.type._parse({\n            data,\n            path: ctx.path,\n            parent: ctx,\n        });\n    }\n    unwrap() {\n        return this._def.type;\n    }\n}\nexport class ZodPipeline extends ZodType {\n    _parse(input) {\n        const { status, ctx } = this._processInputParams(input);\n        if (ctx.common.async) {\n            const handleAsync = async () => {\n                const inResult = await this._def.in._parseAsync({\n                    data: ctx.data,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n                if (inResult.status === \"aborted\")\n                    return INVALID;\n                if (inResult.status === \"dirty\") {\n                    status.dirty();\n                    return DIRTY(inResult.value);\n                }\n                else {\n                    return this._def.out._parseAsync({\n                        data: inResult.value,\n                        path: ctx.path,\n                        parent: ctx,\n                    });\n                }\n            };\n            return handleAsync();\n        }\n        else {\n            const inResult = this._def.in._parseSync({\n                data: ctx.data,\n                path: ctx.path,\n                parent: ctx,\n            });\n            if (inResult.status === \"aborted\")\n                return INVALID;\n            if (inResult.status === \"dirty\") {\n                status.dirty();\n                return {\n                    status: \"dirty\",\n                    value: inResult.value,\n                };\n            }\n            else {\n                return this._def.out._parseSync({\n                    data: inResult.value,\n                    path: ctx.path,\n                    parent: ctx,\n                });\n            }\n        }\n    }\n    static create(a, b) {\n        return new ZodPipeline({\n            in: a,\n            out: b,\n            typeName: ZodFirstPartyTypeKind.ZodPipeline,\n        });\n    }\n}\nexport class ZodReadonly extends ZodType {\n    _parse(input) {\n        const result = this._def.innerType._parse(input);\n        const freeze = (data) => {\n            if (isValid(data)) {\n                data.value = Object.freeze(data.value);\n            }\n            return data;\n        };\n        return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);\n    }\n    unwrap() {\n        return this._def.innerType;\n    }\n}\nZodReadonly.create = (type, params) => {\n    return new ZodReadonly({\n        innerType: type,\n        typeName: ZodFirstPartyTypeKind.ZodReadonly,\n        ...processCreateParams(params),\n    });\n};\n////////////////////////////////////////\n////////////////////////////////////////\n//////////                    //////////\n//////////      z.custom      //////////\n//////////                    //////////\n////////////////////////////////////////\n////////////////////////////////////////\nfunction cleanParams(params, data) {\n    const p = typeof params === \"function\" ? params(data) : typeof params === \"string\" ? { message: params } : params;\n    const p2 = typeof p === \"string\" ? { message: p } : p;\n    return p2;\n}\nexport function custom(check, _params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) {\n    if (check)\n        return ZodAny.create().superRefine((data, ctx) => {\n            const r = check(data);\n            if (r instanceof Promise) {\n                return r.then((r) => {\n                    if (!r) {\n                        const params = cleanParams(_params, data);\n                        const _fatal = params.fatal ?? fatal ?? true;\n                        ctx.addIssue({ code: \"custom\", ...params, fatal: _fatal });\n                    }\n                });\n            }\n            if (!r) {\n                const params = cleanParams(_params, data);\n                const _fatal = params.fatal ?? fatal ?? true;\n                ctx.addIssue({ code: \"custom\", ...params, fatal: _fatal });\n            }\n            return;\n        });\n    return ZodAny.create();\n}\nexport { ZodType as Schema, ZodType as ZodSchema };\nexport const late = {\n    object: ZodObject.lazycreate,\n};\nexport var ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n    ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n    ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n    ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n    ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n    ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n    ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n    ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n    ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n    ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n    ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n    ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n    ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n    ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n    ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n    ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n    ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n    ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n    ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n    ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n    ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n    ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n    ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n    ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n    ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n    ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n    ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n    ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n    ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n    ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n    ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n    ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n    ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n    ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n    ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n    ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n    ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\n// requires TS 4.4+\nclass Class {\n    constructor(..._) { }\n}\nconst instanceOfType = (\n// const instanceOfType = <T extends new (...args: any[]) => any>(\ncls, params = {\n    message: `Input not instance of ${cls.name}`,\n}) => custom((data) => data instanceof cls, params);\nconst stringType = ZodString.create;\nconst numberType = ZodNumber.create;\nconst nanType = ZodNaN.create;\nconst bigIntType = ZodBigInt.create;\nconst booleanType = ZodBoolean.create;\nconst dateType = ZodDate.create;\nconst symbolType = ZodSymbol.create;\nconst undefinedType = ZodUndefined.create;\nconst nullType = ZodNull.create;\nconst anyType = ZodAny.create;\nconst unknownType = ZodUnknown.create;\nconst neverType = ZodNever.create;\nconst voidType = ZodVoid.create;\nconst arrayType = ZodArray.create;\nconst objectType = ZodObject.create;\nconst strictObjectType = ZodObject.strictCreate;\nconst unionType = ZodUnion.create;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nconst intersectionType = ZodIntersection.create;\nconst tupleType = ZodTuple.create;\nconst recordType = ZodRecord.create;\nconst mapType = ZodMap.create;\nconst setType = ZodSet.create;\nconst functionType = ZodFunction.create;\nconst lazyType = ZodLazy.create;\nconst literalType = ZodLiteral.create;\nconst enumType = ZodEnum.create;\nconst nativeEnumType = ZodNativeEnum.create;\nconst promiseType = ZodPromise.create;\nconst effectsType = ZodEffects.create;\nconst optionalType = ZodOptional.create;\nconst nullableType = ZodNullable.create;\nconst preprocessType = ZodEffects.createWithPreprocess;\nconst pipelineType = ZodPipeline.create;\nconst ostring = () => stringType().optional();\nconst onumber = () => numberType().optional();\nconst oboolean = () => booleanType().optional();\nexport const coerce = {\n    string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n    number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n    boolean: ((arg) => ZodBoolean.create({\n        ...arg,\n        coerce: true,\n    })),\n    bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n    date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nexport { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };\nexport const NEVER = INVALID;\n", "import { validator } from \"hono/validator\";\nimport { z } from \"zod\";\nimport type { AppBindings } from \"./explorer.worker\";\nimport type {\n\tWorkersKvApiResponseCommon,\n\tWorkersKvMessages,\n} from \"./generated/types.gen\";\nimport type { Context } from \"hono\";\n\nexport type AppContext = Context<AppBindings>;\n\n// ============================================================================\n// Hono middleware Validators\n// ============================================================================\n\n/**\n * Query validator with string-to-type coercion.\n * Query params arrive as strings from URLs, so we coerce them before validation.\n * @returns validated query params according to openapi schema\n *\n * If the whole query param is optional, you need to unwrap it before passing to this function.\n */\nexport function validateQuery<T extends z.ZodTypeAny>(schema: T) {\n\treturn validator(\"query\", async (value, c) => {\n\t\tlet result: z.SafeParseReturnType<z.input<T>, z.output<T>>;\n\t\ttry {\n\t\t\tconst coerced = coerceValue(schema, value);\n\t\t\tresult = await schema.safeParseAsync(coerced);\n\t\t} catch (error) {\n\t\t\tif (error instanceof z.ZodError) {\n\t\t\t\treturn validationHook({ success: false, error }, c);\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t\tif (!result.success) {\n\t\t\treturn validationHook(result, c);\n\t\t}\n\t\treturn result.data as z.output<T>;\n\t});\n}\n\n/**\n * validates request body according to openapi schema\n */\nexport function validateRequestBody<T extends z.ZodTypeAny>(schema: T) {\n\treturn validator(\"json\", async (value, c) => {\n\t\tconst result = await schema.safeParseAsync(value);\n\t\tif (!result.success) {\n\t\t\treturn validationHook(result, c);\n\t\t}\n\t\treturn result.data as z.output<T>;\n\t});\n}\n\n/**\n * Coerce a single value to match the expected schema type.\n * Query params arrive as strings but schemas may expect numbers, booleans, or arrays.\n * Throw a validation error if coercion is not possible.\n *\n * We handle this manually rather than using Zod's built-in coercion because:\n * 1. Booleans: Zod's coercion turns \"false\" into true (any non-empty string is truthy)\n * 2. Numbers: Generated schemas use z.number() not z.coerce.number(), so we must coercem\n * 3. Arrays/Objects: We need to recursively coerce nested values\n */\nexport function coerceValue(\n\tschema: z.ZodTypeAny,\n\tvalue: unknown,\n\tpath: (string | number)[] = []\n): unknown {\n\t// Unwrap optional/default to get inner type\n\tif (schema instanceof z.ZodOptional || schema instanceof z.ZodDefault) {\n\t\tif (value === undefined) return value;\n\t\treturn coerceValue(schema._def.innerType, value, path);\n\t}\n\n\tif (schema instanceof z.ZodNumber && typeof value === \"string\") {\n\t\tconst num = Number(value);\n\t\tif (isNaN(num)) {\n\t\t\tthrow new z.ZodError([\n\t\t\t\t{\n\t\t\t\t\tcode: z.ZodIssueCode.invalid_type,\n\t\t\t\t\texpected: \"number\",\n\t\t\t\t\treceived: \"string\",\n\t\t\t\t\tpath,\n\t\t\t\t\tmessage: `Expected query param to be number but received \"${value}\"`,\n\t\t\t\t},\n\t\t\t]);\n\t\t}\n\t\treturn num;\n\t}\n\n\tif (schema instanceof z.ZodBoolean && typeof value === \"string\") {\n\t\tif (value === \"true\") return true;\n\t\tif (value === \"false\") return false;\n\t\tthrow new z.ZodError([\n\t\t\t{\n\t\t\t\tcode: z.ZodIssueCode.invalid_type,\n\t\t\t\texpected: \"boolean\",\n\t\t\t\treceived: \"string\",\n\t\t\t\tpath,\n\t\t\t\tmessage: `Expected query param to be 'true' or 'false' but received \"${value}\"`,\n\t\t\t},\n\t\t]);\n\t}\n\n\tif (schema instanceof z.ZodArray && Array.isArray(value)) {\n\t\treturn value.map((item, index) =>\n\t\t\tcoerceValue(schema.element, item, [...path, index])\n\t\t);\n\t}\n\n\tif (\n\t\tschema instanceof z.ZodObject &&\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null\n\t) {\n\t\tconst result: Record<string, unknown> = {};\n\t\tfor (const [key, propSchema] of Object.entries(schema.shape)) {\n\t\t\tif (key in value) {\n\t\t\t\tresult[key] = coerceValue(\n\t\t\t\t\tpropSchema as z.ZodTypeAny,\n\t\t\t\t\t(value as Record<string, unknown>)[key],\n\t\t\t\t\t[...path, key]\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\treturn value;\n}\n\n/**\n * Error hook for zValidator that returns Cloudflare API error format.\n */\nexport function validationHook(\n\tresult: { success: false; error: z.ZodError },\n\tc: Context\n): Response {\n\tconst errors = result.error.errors.map((e) => {\n\t\tconst message =\n\t\t\te.path.length > 0 ? `${e.path.join(\".\")}: ${e.message}` : e.message;\n\n\t\treturn {\n\t\t\tcode: 10001,\n\t\t\tmessage,\n\t\t};\n\t});\n\treturn c.json({ success: false, errors, messages: [], result: null }, 400);\n}\n\n// ============================================================================\n// Response Helpers\n// ============================================================================\n\n/**\n * Wrap a result in the Cloudflare API response envelope\n */\nexport function wrapResponse<T>(\n\tresult: T\n): WorkersKvApiResponseCommon & { result: T } {\n\treturn {\n\t\tsuccess: true,\n\t\terrors: [] as WorkersKvMessages,\n\t\tmessages: [] as WorkersKvMessages,\n\t\tresult,\n\t};\n}\n\n/**\n * Create an error response in the Cloudflare API format\n */\nexport function errorResponse(status: number, code: number, message: string) {\n\treturn Response.json(\n\t\t{\n\t\t\tsuccess: false,\n\t\t\terrors: [{ code, message }],\n\t\t\tmessages: [],\n\t\t\tresult: null,\n\t\t},\n\t\t{ status }\n\t);\n}\n", "// This file is auto-generated by @hey-api/openapi-ts\n\nimport { z } from \"zod\";\n\nexport const zR2Messages = z.array(z.string());\n\nexport const zR2Errors = z.array(\n\tz.object({\n\t\tcode: z.number().int().gte(1000),\n\t\tmessage: z.string(),\n\t})\n);\n\nexport const zR2V4Response = z.object({\n\terrors: zR2Errors,\n\tmessages: zR2Messages,\n\tresult: z.record(z.unknown()),\n\tsuccess: z.literal(true),\n});\n\n/**\n * Name of the bucket.\n */\nexport const zR2BucketName = z\n\t.string()\n\t.min(3)\n\t.max(64)\n\t.regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]/);\n\nexport const zR2V4ResponseFailure = z.object({\n\terrors: zR2Errors,\n\tmessages: zR2Messages,\n\tresult: z.unknown().nullable(),\n\tsuccess: z.literal(false),\n});\n\n/**\n * A single R2 bucket.\n */\nexport const zR2Bucket = z.object({\n\tcreation_date: z.string().optional(),\n\tname: zR2BucketName.optional(),\n});\n\nexport const zR2ResultInfo = z.record(z.unknown());\n\nexport const zR2V4ResponseList = zR2V4Response.and(\n\tz.object({\n\t\tresult_info: zR2ResultInfo.optional(),\n\t})\n);\n\n/**\n * Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.\n */\nexport const zWorkersCursor = z.string();\n\nexport const zWorkersObject = z.object({\n\thasStoredData: z.boolean().readonly().optional(),\n\tid: z.string().readonly().optional(),\n\tname: z.string().readonly().optional(),\n});\n\n/**\n * ID of the namespace.\n */\nexport const zWorkersSchemasId = z.string();\n\nexport const zWorkersMessages = z.array(\n\tz.object({\n\t\tcode: z.number().int().gte(1000),\n\t\tdocumentation_url: z.string().optional(),\n\t\tmessage: z.string(),\n\t\tsource: z\n\t\t\t.object({\n\t\t\t\tpointer: z.string().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkersApiResponseCommonFailure = z.object({\n\terrors: zWorkersMessages,\n\tmessages: zWorkersMessages,\n\tresult: z.unknown().nullable(),\n\tsuccess: z.literal(false),\n});\n\nexport const zWorkersNamespace = z.object({\n\tclass: z.string().optional(),\n\tid: z.string().readonly().optional(),\n\tname: z.string().optional(),\n\tscript: z.string().optional(),\n\tuse_sqlite: z.boolean().optional(),\n});\n\nexport const zWorkersApiResponseCommon = z.object({\n\terrors: zWorkersMessages,\n\tmessages: zWorkersMessages,\n\tsuccess: z.literal(true),\n});\n\nexport const zWorkersApiResponseCollection = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult_info: z\n\t\t\t.object({\n\t\t\t\tcount: z.number().optional(),\n\t\t\t\tpage: z.number().optional(),\n\t\t\t\tper_page: z.number().optional(),\n\t\t\t\ttotal_count: z.number().optional(),\n\t\t\t\ttotal_pages: z.number().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zD1QueryMeta = z.object({\n\tchanged_db: z.boolean().optional(),\n\tchanges: z.number().optional(),\n\tduration: z.number().optional(),\n\tlast_row_id: z.number().optional(),\n\trows_read: z.number().optional(),\n\trows_written: z.number().optional(),\n\tsize_after: z.number().optional(),\n\ttimings: z\n\t\t.object({\n\t\t\tsql_duration_ms: z.number().optional(),\n\t\t})\n\t\t.optional(),\n});\n\nexport const zD1RawResultResponse = z.object({\n\tmeta: zD1QueryMeta.optional(),\n\tresults: z\n\t\t.object({\n\t\t\tcolumns: z.array(z.string()).optional(),\n\t\t\trows: z\n\t\t\t\t.array(\n\t\t\t\t\tz.array(z.union([z.number(), z.string(), z.record(z.unknown())]))\n\t\t\t\t)\n\t\t\t\t.optional(),\n\t\t})\n\t\t.optional(),\n\tsuccess: z.boolean().optional(),\n});\n\n/**\n * Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch.\n */\nexport const zD1Sql = z.string();\n\nexport const zD1Params = z.array(z.string());\n\n/**\n * single query\n *\n * A single query with or without parameters\n */\nexport const zD1SingleQuery = z.object({\n\tparams: zD1Params.optional(),\n\tsql: zD1Sql,\n});\n\n/**\n * A single query object or a batch query object\n */\nexport const zD1BatchQuery = z.union([\n\tzD1SingleQuery,\n\tz.object({\n\t\tbatch: z.array(zD1SingleQuery),\n\t}),\n]);\n\n/**\n * D1 database identifier (UUID).\n */\nexport const zD1DatabaseIdentifier = z.string().readonly();\n\nexport const zD1Messages = z.array(\n\tz.object({\n\t\tcode: z.number().int().gte(1000),\n\t\tmessage: z.string(),\n\t})\n);\n\nexport const zD1ApiResponseCommonFailure = z.object({\n\terrors: zD1Messages,\n\tmessages: zD1Messages,\n\tresult: z.unknown().nullable(),\n\tsuccess: z.literal(false),\n});\n\nexport const zD1DatabaseVersion = z.string().regex(/^(alpha|beta|production)$/);\n\n/**\n * D1 database name.\n */\nexport const zD1DatabaseName = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/);\n\n/**\n * Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored.\n */\nexport const zD1JurisdictionNullable = z.enum([\"eu\", \"fedramp\"]);\n\nexport const zD1DatabaseResponse = z.object({\n\tjurisdiction: zD1JurisdictionNullable.optional(),\n\tname: zD1DatabaseName.optional(),\n\tuuid: zD1DatabaseIdentifier.optional(),\n\tversion: zD1DatabaseVersion.optional(),\n});\n\nexport const zD1ApiResponseCommon = z.object({\n\terrors: zD1Messages,\n\tmessages: zD1Messages,\n\tsuccess: z.literal(true),\n});\n\nexport const zWorkersKvAny: z.ZodTypeAny = z\n\t.union([\n\t\tz.string(),\n\t\tz.number(),\n\t\tz.number().int(),\n\t\tz.boolean(),\n\t\tz.record(z.unknown()),\n\t\tz.array(z.lazy(() => zWorkersKvAny)),\n\t])\n\t.nullable();\n\n/**\n * Expires the key at a certain time, measured in number of seconds since the UNIX epoch.\n */\nexport const zWorkersKvExpiration = z.number();\n\nexport const zWorkersKvBulkGetResultWithMetadata = z.object({\n\tvalues: z\n\t\t.record(\n\t\t\tz\n\t\t\t\t.object({\n\t\t\t\t\texpiration: zWorkersKvExpiration.optional(),\n\t\t\t\t\tmetadata: zWorkersKvAny.and(z.unknown()),\n\t\t\t\t\tvalue: zWorkersKvAny.and(z.unknown()),\n\t\t\t\t})\n\t\t\t\t.nullable()\n\t\t)\n\t\t.optional(),\n});\n\nexport const zWorkersKvBulkGetResult = z.object({\n\tvalues: z\n\t\t.record(\n\t\t\tz\n\t\t\t\t.union([z.string(), z.number(), z.boolean(), z.record(z.unknown())])\n\t\t\t\t.nullable()\n\t\t)\n\t\t.optional(),\n});\n\n/**\n * A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid.\n */\nexport const zWorkersKvKeyNameBulk = z.string().max(512);\n\nexport const zWorkersKvMessages = z.array(\n\tz.object({\n\t\tcode: z.number().int().gte(1000),\n\t\tmessage: z.string(),\n\t})\n);\n\nexport const zWorkersKvApiResponseCommon = z.object({\n\terrors: zWorkersKvMessages,\n\tmessages: zWorkersKvMessages,\n\tsuccess: z.literal(true),\n});\n\nexport const zWorkersKvApiResponseCommonNoResult =\n\tzWorkersKvApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: z.record(z.unknown()).nullish(),\n\t\t})\n\t);\n\nexport const zWorkersKvMetadata = zWorkersKvAny.and(z.unknown());\n\n/**\n * A byte sequence to be stored, up to 25 MiB in length.\n */\nexport const zWorkersKvValue = z.union([z.string(), z.string()]);\n\n/**\n * A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.\n */\nexport const zWorkersKvKeyName = z.string().max(512);\n\n/**\n * Opaque token indicating the position from which to continue when requesting the next set of records if the amount of list results was limited by the limit parameter. A valid value for the cursor can be obtained from the cursors object in the result_info structure.\n */\nexport const zWorkersKvCursor = z.string();\n\nexport const zWorkersKvCursorResultInfo = z.object({\n\tcount: z.number().optional(),\n\tcursor: zWorkersKvCursor.optional(),\n});\n\nexport const zWorkersKvListMetadata = zWorkersKvAny.and(z.unknown());\n\n/**\n * A name for a value. A value stored under a given key may be retrieved via the same key.\n */\nexport const zWorkersKvKey = z.object({\n\texpiration: z.number().optional(),\n\tmetadata: zWorkersKvListMetadata.optional(),\n\tname: zWorkersKvKeyName,\n});\n\n/**\n * Namespace identifier tag.\n */\nexport const zWorkersKvNamespaceIdentifier = z.string().max(32).readonly();\n\nexport const zWorkersKvApiResponseCommonFailure = z.object({\n\terrors: zWorkersKvMessages,\n\tmessages: zWorkersKvMessages,\n\tresult: z.record(z.unknown()).nullable(),\n\tsuccess: z.literal(false),\n});\n\n/**\n * A human-readable string name for a Namespace.\n */\nexport const zWorkersKvNamespaceTitle = z.string().max(512);\n\nexport const zWorkersKvNamespace = z.object({\n\tid: zWorkersKvNamespaceIdentifier,\n\ttitle: zWorkersKvNamespaceTitle,\n});\n\nexport const zWorkersKvResultInfo = z.object({\n\tcount: z.number().optional(),\n});\n\nexport const zWorkersKvApiResponseCollection = zWorkersKvApiResponseCommon.and(\n\tz.object({\n\t\tresult_info: zWorkersKvResultInfo.optional(),\n\t})\n);\n\nexport const zR2Object = z.object({\n\tkey: z.string().optional(),\n\tetag: z.string().optional(),\n\tsize: z.number().int().optional(),\n\tlast_modified: z.string().datetime().optional(),\n\thttp_metadata: z.record(z.string()).optional(),\n\tcustom_metadata: z.record(z.string()).optional(),\n});\n\nexport const zR2ListObjectsResultInfo = z.object({\n\tdelimited: z.array(z.string()).optional(),\n\tcursor: z.string().optional(),\n\tis_truncated: z.string().optional(),\n});\n\nexport const zR2HeadObjectResult = z.object({\n\tkey: z.string().optional(),\n\tetag: z.string().optional(),\n\tlast_modified: z.string().optional(),\n\tsize: z.number().int().optional(),\n\thttp_metadata: z.record(z.string()).optional(),\n\tcustom_metadata: z.record(z.string()).optional(),\n});\n\nexport const zR2PutObjectResult = z.object({\n\tkey: z.string().optional(),\n\tetag: z.string().optional(),\n\tsize: z.number().int().optional(),\n\tversion: z.string().optional(),\n});\n\nexport const zDoSqlWithParams = z.object({\n\tsql: z.string().min(1),\n\tparams: z.array(z.unknown()).optional(),\n});\n\nexport const zDoQueryById = z.object({\n\tdurable_object_id: z.string().min(1),\n\tqueries: z.array(zDoSqlWithParams),\n});\n\nexport const zDoQueryByName = z.object({\n\tdurable_object_name: z.string().min(1),\n\tqueries: z.array(zDoSqlWithParams),\n});\n\nexport const zDoRawQueryResult = z.object({\n\tcolumns: z.array(z.string()).optional(),\n\trows: z.array(z.array(z.unknown())).optional(),\n\tmeta: z\n\t\t.object({\n\t\t\trows_read: z.number().optional(),\n\t\t\trows_written: z.number().optional(),\n\t\t})\n\t\t.optional(),\n});\n\nexport const zLocalExplorerResourceBinding = z.object({\n\tid: z.string(),\n\tbindingName: z.string(),\n});\n\nexport const zLocalExplorerDoBinding = z.object({\n\tid: z.string(),\n\tbindingName: z.string(),\n\tclassName: z.string(),\n\tscriptName: z.string(),\n\tuseSqlite: z.boolean(),\n});\n\nexport const zLocalExplorerWorkflowBinding = z.object({\n\tid: z.string(),\n\tbindingName: z.string(),\n\tclassName: z.string(),\n\tscriptName: z.string(),\n});\n\n/**\n * Resource bindings for a worker\n */\nexport const zLocalExplorerWorkerBindings = z.object({\n\tkv: z.array(zLocalExplorerResourceBinding).optional(),\n\td1: z.array(zLocalExplorerResourceBinding).optional(),\n\tr2: z.array(zLocalExplorerResourceBinding).optional(),\n\tdo: z.array(zLocalExplorerDoBinding).optional(),\n\tworkflows: z.array(zLocalExplorerWorkflowBinding).optional(),\n});\n\nexport const zLocalExplorerWorker = z.object({\n\tisSelf: z.boolean(),\n\tname: z.string(),\n\tbindings: zLocalExplorerWorkerBindings.optional(),\n});\n\n/**\n * The name of the workflow.\n */\nexport const zWorkflowsWorkflowName = z.string();\n\n/**\n * The unique identifier of a workflow instance.\n */\nexport const zWorkflowsInstanceId = z.string();\n\nexport const zWorkflowsWorkflow = z.object({\n\tname: z.string(),\n\tclass_name: z.string().optional(),\n\tscript_name: z.string().optional(),\n});\n\nexport const zWorkflowsWorkflowDetails = z.object({\n\tname: z.string(),\n\tclass_name: z.string(),\n\tscript_name: z.string(),\n\tinstances: z.object({\n\t\tcomplete: z.number().optional(),\n\t\terrored: z.number().optional(),\n\t\tpaused: z.number().optional(),\n\t\tqueued: z.number().optional(),\n\t\trunning: z.number().optional(),\n\t\tterminated: z.number().optional(),\n\t\twaiting: z.number().optional(),\n\t\twaitingForPause: z.number().optional(),\n\t}),\n});\n\nexport const zWorkflowsInstance = z.object({\n\tid: z.string(),\n\tstatus: z\n\t\t.enum([\n\t\t\t\"queued\",\n\t\t\t\"running\",\n\t\t\t\"paused\",\n\t\t\t\"errored\",\n\t\t\t\"terminated\",\n\t\t\t\"complete\",\n\t\t\t\"waitingForPause\",\n\t\t\t\"waiting\",\n\t\t\t\"unknown\",\n\t\t])\n\t\t.optional(),\n\tcreated_on: z.string().optional(),\n});\n\nexport const zWorkflowsInstanceDetails = z.object({\n\tid: z.string(),\n\tstatus: z.enum([\n\t\t\"queued\",\n\t\t\"running\",\n\t\t\"paused\",\n\t\t\"errored\",\n\t\t\"terminated\",\n\t\t\"complete\",\n\t\t\"waitingForPause\",\n\t\t\"waiting\",\n\t\t\"unknown\",\n\t]),\n\toutput: z.unknown().optional(),\n\terror: z\n\t\t.object({\n\t\t\tname: z.string().optional(),\n\t\t\tmessage: z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * Columns and rows for a read-only SQL query.\n */\nexport const zObservabilityQueryResult = z.object({\n\tcolumns: z.array(z.string()),\n\trows: z.array(z.array(z.unknown())),\n});\n\nexport const zR2ResultInfoWritable = z.record(z.unknown());\n\nexport const zWorkersNamespaceWritable = z.object({\n\tclass: z.string().optional(),\n\tname: z.string().optional(),\n\tscript: z.string().optional(),\n\tuse_sqlite: z.boolean().optional(),\n});\n\nexport const zD1DatabaseResponseWritable = z.object({\n\tjurisdiction: zD1JurisdictionNullable.optional(),\n\tname: zD1DatabaseName.optional(),\n\tversion: zD1DatabaseVersion.optional(),\n});\n\nexport const zWorkersKvAnyWritable: z.ZodTypeAny = z\n\t.union([\n\t\tz.string(),\n\t\tz.number(),\n\t\tz.number().int(),\n\t\tz.boolean(),\n\t\tz.record(z.unknown()),\n\t\tz.array(z.lazy(() => zWorkersKvAnyWritable)),\n\t])\n\t.nullable();\n\nexport const zWorkersKvMetadataWritable = zWorkersKvAnyWritable.and(\n\tz.unknown()\n);\n\nexport const zWorkersKvListMetadataWritable = zWorkersKvAnyWritable.and(\n\tz.unknown()\n);\n\nexport const zWorkersKvNamespaceWritable = z.object({\n\ttitle: zWorkersKvNamespaceTitle,\n});\n\nexport const zWorkersKvNamespaceListNamespacesData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z\n\t\t.object({\n\t\t\torder: z.enum([\"id\", \"title\"]).optional(),\n\t\t\tdirection: z.enum([\"asc\", \"desc\"]).optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List Namespaces response.\n */\nexport const zWorkersKvNamespaceListNamespacesResponse =\n\tzWorkersKvApiResponseCollection.and(\n\t\tz.object({\n\t\t\tresult: z.array(zWorkersKvNamespace).optional(),\n\t\t})\n\t);\n\nexport const zWorkersKvNamespaceListANamespaceSKeysData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tnamespace_id: zWorkersKvNamespaceIdentifier,\n\t}),\n\tquery: z\n\t\t.object({\n\t\t\tlimit: z.number().gte(10).lte(1000).optional().default(1000),\n\t\t\tprefix: z.string().optional(),\n\t\t\tcursor: z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List a Namespace's Keys response.\n */\nexport const zWorkersKvNamespaceListANamespaceSKeysResponse =\n\tzWorkersKvApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: z.array(zWorkersKvKey).optional(),\n\t\t\tresult_info: zWorkersKvCursorResultInfo.optional(),\n\t\t})\n\t);\n\nexport const zWorkersKvNamespaceDeleteKeyValuePairData = z.object({\n\tbody: z.unknown(),\n\tpath: z.object({\n\t\tkey_name: zWorkersKvKeyName,\n\t\tnamespace_id: zWorkersKvNamespaceIdentifier,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Delete key-value pair response.\n */\nexport const zWorkersKvNamespaceDeleteKeyValuePairResponse =\n\tzWorkersKvApiResponseCommonNoResult;\n\nexport const zWorkersKvNamespaceReadKeyValuePairData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tkey_name: zWorkersKvKeyName,\n\t\tnamespace_id: zWorkersKvNamespaceIdentifier,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Read key-value pair response.\n */\nexport const zWorkersKvNamespaceReadKeyValuePairResponse = zWorkersKvValue;\n\nexport const zWorkersKvNamespaceWriteKeyValuePairWithMetadataData = z.object({\n\tbody: zWorkersKvValue,\n\tpath: z.object({\n\t\tkey_name: zWorkersKvKeyName,\n\t\tnamespace_id: zWorkersKvNamespaceIdentifier,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Write key-value pair with metadata response.\n */\nexport const zWorkersKvNamespaceWriteKeyValuePairWithMetadataResponse =\n\tzWorkersKvApiResponseCommonNoResult;\n\nexport const zWorkersKvNamespaceGetMultipleKeyValuePairsData = z.object({\n\tbody: z.object({\n\t\tkeys: z.array(zWorkersKvKeyNameBulk).max(100),\n\t}),\n\tpath: z.object({\n\t\tnamespace_id: zWorkersKvNamespaceIdentifier,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Get multiple key-value pairs response.\n */\nexport const zWorkersKvNamespaceGetMultipleKeyValuePairsResponse =\n\tzWorkersKvApiResponseCommonNoResult.and(\n\t\tz.object({\n\t\t\tresult: z\n\t\t\t\t.union([zWorkersKvBulkGetResult, zWorkersKvBulkGetResultWithMetadata])\n\t\t\t\t.optional(),\n\t\t})\n\t);\n\nexport const zD1ListDatabasesData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z\n\t\t.object({\n\t\t\tname: z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List D1 databases response\n */\nexport const zD1ListDatabasesResponse = zD1ApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zD1DatabaseResponse).optional(),\n\t\tresult_info: z\n\t\t\t.object({\n\t\t\t\tcount: z.number().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zD1RawDatabaseQueryData = z.object({\n\tbody: zD1BatchQuery,\n\tpath: z.object({\n\t\tdatabase_id: zD1DatabaseIdentifier,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Raw query response\n */\nexport const zD1RawDatabaseQueryResponse = zD1ApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zD1RawResultResponse).optional(),\n\t})\n);\n\nexport const zDurableObjectsNamespaceListNamespacesData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * List Namespaces response.\n */\nexport const zDurableObjectsNamespaceListNamespacesResponse =\n\tzWorkersApiResponseCollection.and(\n\t\tz.object({\n\t\t\tresult: z.array(zWorkersNamespace).optional(),\n\t\t})\n\t);\n\nexport const zDurableObjectsNamespaceListObjectsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tid: zWorkersSchemasId,\n\t}),\n\tquery: z\n\t\t.object({\n\t\t\tlimit: z.number().gte(10).lte(10000).optional().default(1000),\n\t\t\tcursor: z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List Objects response.\n */\nexport const zDurableObjectsNamespaceListObjectsResponse =\n\tzWorkersApiResponseCollection.and(\n\t\tz.object({\n\t\t\tresult: z.array(zWorkersObject).optional(),\n\t\t\tresult_info: z\n\t\t\t\t.object({\n\t\t\t\t\tcount: z.number().optional(),\n\t\t\t\t\tcursor: zWorkersCursor.optional(),\n\t\t\t\t})\n\t\t\t\t.optional(),\n\t\t})\n\t);\n\nexport const zR2ListBucketsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * List Buckets response.\n */\nexport const zR2ListBucketsResponse = zR2V4ResponseList.and(\n\tz.object({\n\t\tresult: z\n\t\t\t.object({\n\t\t\t\tbuckets: z.array(zR2Bucket).optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zR2GetBucketData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tbucket_name: zR2BucketName,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Get Bucket response.\n */\nexport const zR2GetBucketResponse = zR2V4Response.and(\n\tz.object({\n\t\tresult: zR2Bucket.optional(),\n\t})\n);\n\nexport const zR2BucketDeleteObjectsData = z.object({\n\tbody: z.array(z.string()),\n\tpath: z.object({\n\t\tbucket_name: z.string(),\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Delete objects response.\n */\nexport const zR2BucketDeleteObjectsResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tkey: z.string().optional(),\n\t\t\t\t})\n\t\t\t)\n\t\t\t.optional(),\n\t})\n);\n\nexport const zR2BucketListObjectsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tbucket_name: z.string(),\n\t}),\n\tquery: z\n\t\t.object({\n\t\t\tprefix: z.string().optional(),\n\t\t\tdelimiter: z.string().optional(),\n\t\t\tcursor: z.string().optional(),\n\t\t\tper_page: z.number().int().optional().default(1000),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List objects response.\n */\nexport const zR2BucketListObjectsResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zR2Object).optional(),\n\t\tresult_info: zR2ListObjectsResultInfo.optional(),\n\t})\n);\n\nexport const zR2BucketGetObjectData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tbucket_name: z.string(),\n\t\tobject_key: z.string(),\n\t}),\n\tquery: z.never().optional(),\n\theaders: z\n\t\t.object({\n\t\t\t\"cf-metadata-only\": z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * Object content or metadata.\n */\nexport const zR2BucketGetObjectResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: zR2HeadObjectResult.optional(),\n\t})\n);\n\nexport const zR2BucketPutObjectData = z.object({\n\tbody: z.string(),\n\tpath: z.object({\n\t\tbucket_name: z.string(),\n\t\tobject_key: z.string(),\n\t}),\n\tquery: z.never().optional(),\n\theaders: z\n\t\t.object({\n\t\t\t\"content-type\": z.string().optional(),\n\t\t\t\"cf-r2-custom-metadata\": z.string().optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * Put object response.\n */\nexport const zR2BucketPutObjectResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: zR2PutObjectResult.optional(),\n\t})\n);\n\nexport const zDurableObjectsNamespaceQuerySqliteData = z.object({\n\tbody: z.union([zDoQueryById, zDoQueryByName]),\n\tpath: z.object({\n\t\tnamespace_id: zWorkersSchemasId,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Query response.\n */\nexport const zDurableObjectsNamespaceQuerySqliteResponse =\n\tzWorkersApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: z.array(zDoRawQueryResult).optional(),\n\t\t})\n\t);\n\nexport const zLocalExplorerListWorkersData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * List workers response.\n */\nexport const zLocalExplorerListWorkersResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zLocalExplorerWorker).optional(),\n\t})\n);\n\nexport const zWorkflowsListWorkflowsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * List Workflows response.\n */\nexport const zWorkflowsListWorkflowsResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zWorkflowsWorkflow).optional(),\n\t\tresult_info: z\n\t\t\t.object({\n\t\t\t\tcount: z.number().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkflowsDeleteWorkflowData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Delete Workflow response.\n */\nexport const zWorkflowsDeleteWorkflowResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z\n\t\t\t.object({\n\t\t\t\tstatus: z.string().optional(),\n\t\t\t\tsuccess: z.boolean().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkflowsGetWorkflowDetailsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Get Workflow Details response.\n */\nexport const zWorkflowsGetWorkflowDetailsResponse =\n\tzWorkersApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: zWorkflowsWorkflowDetails.optional(),\n\t\t})\n\t);\n\nexport const zWorkflowsListInstancesData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t}),\n\tquery: z\n\t\t.object({\n\t\t\tpage: z.number().gte(1).optional().default(1),\n\t\t\tper_page: z.number().gte(1).lte(100).optional().default(25),\n\t\t\tstatus: z\n\t\t\t\t.enum([\n\t\t\t\t\t\"queued\",\n\t\t\t\t\t\"running\",\n\t\t\t\t\t\"paused\",\n\t\t\t\t\t\"errored\",\n\t\t\t\t\t\"terminated\",\n\t\t\t\t\t\"complete\",\n\t\t\t\t\t\"waitingForPause\",\n\t\t\t\t\t\"waiting\",\n\t\t\t\t])\n\t\t\t\t.optional(),\n\t\t})\n\t\t.optional(),\n});\n\n/**\n * List Workflow Instances response.\n */\nexport const zWorkflowsListInstancesResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z.array(zWorkflowsInstance).optional(),\n\t\tresult_info: z\n\t\t\t.object({\n\t\t\t\tpage: z.number().optional(),\n\t\t\t\tper_page: z.number().optional(),\n\t\t\t\ttotal_count: z.number().optional(),\n\t\t\t\ttotal_pages: z.number().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkflowsCreateInstanceData = z.object({\n\tbody: z\n\t\t.object({\n\t\t\tid: z.string().optional(),\n\t\t\tparams: z.unknown().optional(),\n\t\t})\n\t\t.optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Create Workflow Instance response.\n */\nexport const zWorkflowsCreateInstanceResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z\n\t\t\t.object({\n\t\t\t\tid: z.string(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkflowsDeleteInstanceData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t\tinstance_id: zWorkflowsInstanceId,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Delete Workflow Instance response.\n */\nexport const zWorkflowsDeleteInstanceResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: z\n\t\t\t.object({\n\t\t\t\tsuccess: z.boolean().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t})\n);\n\nexport const zWorkflowsGetInstanceDetailsData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t\tinstance_id: zWorkflowsInstanceId,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Get Workflow Instance Details response.\n */\nexport const zWorkflowsGetInstanceDetailsResponse =\n\tzWorkersApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: zWorkflowsInstanceDetails.optional(),\n\t\t})\n\t);\n\nexport const zWorkflowsChangeInstanceStatusData = z.object({\n\tbody: z.object({\n\t\taction: z.enum([\"pause\", \"resume\", \"restart\", \"terminate\"]),\n\t\tfrom: z\n\t\t\t.object({\n\t\t\t\tname: z.string(),\n\t\t\t\tcount: z.number().int().gte(1).optional(),\n\t\t\t\ttype: z.enum([\"do\", \"sleep\", \"waitForEvent\"]).optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t\trollback: z.boolean().optional(),\n\t}),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t\tinstance_id: zWorkflowsInstanceId,\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Change Workflow Instance Status response.\n */\nexport const zWorkflowsChangeInstanceStatusResponse =\n\tzWorkersApiResponseCommon.and(\n\t\tz.object({\n\t\t\tresult: z\n\t\t\t\t.object({\n\t\t\t\t\tsuccess: z.boolean().optional(),\n\t\t\t\t})\n\t\t\t\t.optional(),\n\t\t})\n\t);\n\nexport const zWorkflowsSendInstanceEventData = z.object({\n\tbody: z.unknown().optional(),\n\tpath: z.object({\n\t\tworkflow_name: zWorkflowsWorkflowName,\n\t\tinstance_id: zWorkflowsInstanceId,\n\t\tevent_type: z.string(),\n\t}),\n\tquery: z.never().optional(),\n});\n\n/**\n * Send Event response.\n */\nexport const zWorkflowsSendInstanceEventResponse = zWorkersApiResponseCommon;\n\nexport const zObservabilityQueryData = z.object({\n\tbody: z.object({\n\t\tsql: z.string(),\n\t\tparams: z.array(z.unknown()).optional(),\n\t}),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * Query response.\n */\nexport const zObservabilityQueryResponse = zWorkersApiResponseCommon.and(\n\tz.object({\n\t\tresult: zObservabilityQueryResult.optional(),\n\t})\n);\n\nexport const zObservabilityClearData = z.object({\n\tbody: z.never().optional(),\n\tpath: z.never().optional(),\n\tquery: z.never().optional(),\n});\n\n/**\n * Clear response.\n */\nexport const zObservabilityClearResponse = zWorkersApiResponseCommon;\n", "{\n\t\"openapi\": \"3.0.3\",\n\t\"info\": {\n\t\t\"title\": \"Local Explorer API\",\n\t\t\"description\": \"A local subset of the Cloudflare API for inspecting and modifying resource state during local development. Supports D1, R2, KV, Durable Objects and Workflows.\",\n\t\t\"version\": \"0.0.1\"\n\t},\n\t\"servers\": [\n\t\t{\n\t\t\t\"description\": \"Local Explorer\",\n\t\t\t\"url\": \"/cdn-cgi/explorer/api\"\n\t\t}\n\t],\n\t\"paths\": {\n\t\t\"/storage/kv/namespaces\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the namespaces owned by an account.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-list-namespaces\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"order\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"Field to order results by.\",\n\t\t\t\t\t\t\t\"enum\": [\"id\", \"title\"],\n\t\t\t\t\t\t\t\"example\": \"id\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"direction\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"Direction to order namespaces.\",\n\t\t\t\t\t\t\t\"enum\": [\"asc\", \"desc\"],\n\t\t\t\t\t\t\t\"example\": \"asc\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-collection\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Namespaces response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Namespaces response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Namespaces\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/storage/kv/namespaces/{namespace_id}/keys\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Lists a namespace's keys.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-list-a-namespace'-s-keys\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"limit\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"default\": 1000,\n\t\t\t\t\t\t\t\"description\": \"Limits the number of keys returned in the response. The cursor attribute may be used to iterate over the next batch of keys if there are more than the limit.\",\n\t\t\t\t\t\t\t\"maximum\": 1000,\n\t\t\t\t\t\t\t\"minimum\": 10,\n\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"prefix\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"Filters returned keys by a name prefix. Exact matches and any key names that begin with the prefix will be returned.\",\n\t\t\t\t\t\t\t\"example\": \"My-Prefix\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"cursor\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"Opaque token indicating the position from which to continue when requesting the next set of records if the amount of list results was limited by the limit parameter. A valid value for the cursor can be obtained from the `cursors` object in the `result_info` structure.\",\n\t\t\t\t\t\t\t\"example\": \"6Ck1la0VxJ0djhidm1MdX2FyDGxLKVeeHZZmORS_8XeSuhz9SjIJRaSa2lnsF01tQOHrfTGAP3R5X1Kv5iVUuMbNKhWNAXHOl6ePB0TUL8nw\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_cursor_result_info\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List a Namespace's Keys response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List a Namespace's Keys response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List a Namespace's Keys\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/storage/kv/namespaces/{namespace_id}/values/{key_name}\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the value associated with the given key in the given namespace. Use URL-encoding to use special characters (for example, `:`, `!`, `%`) in the key name. If the KV-pair is set to expire at some point, the expiration time as measured in seconds since the UNIX epoch will be returned in the `expiration` response header.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-read-key-value-pair\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"key_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key_name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/octet-stream\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_value\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Read key-value pair response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Read key-value pair response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Read key-value pair\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t},\n\t\t\t\"put\": {\n\t\t\t\t\"description\": \"Write a value identified by a key. Use URL-encoding to use special characters (for example, `:`, `!`, `%`) in the key name. Body should be the value to be stored. If JSON metadata to be associated with the key/value pair is needed, use `multipart/form-data` content type for your PUT request (see dropdown below in `REQUEST BODY SCHEMA`). Existing values, expirations, and metadata will be overwritten. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will never expire. If both are set, `expiration_ttl` is used and `expiration` is ignored.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-write-key-value-pair-with-metadata\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"key_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key_name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/octet-stream\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_value\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"multipart/form-data\": {\n\t\t\t\t\t\t\t\"encoding\": {\n\t\t\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\t\t\"contentType\": \"application/json\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_metadata\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"value\": {\n\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_value\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"required\": [\"value\"],\n\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-no-result\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Write key-value pair with metadata response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Write key-value pair with metadata response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Write key-value pair with optional metadata\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t},\n\t\t\t\"delete\": {\n\t\t\t\t\"description\": \"Remove a KV pair from the namespace. Use URL-encoding to use special characters (for example, `:`, `!`, `%`) in the key name.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-delete-key-value-pair\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"key_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key_name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-no-result\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete key-value pair response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete key-value pair response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Delete key-value pair\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/storage/kv/namespaces/{namespace_id}/bulk/get\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Retrieve up to 100 KV pairs from the namespace. Keys must contain text-based values. JSON values can optionally be parsed instead of being returned as a string value. Metadata can be included if `withMetadata` is true.\",\n\t\t\t\t\"operationId\": \"workers-kv-namespace-get-multiple-key-value-pairs\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"keys\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Array of keys to retrieve (maximum of 100).\",\n\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key_name_bulk\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\"maxItems\": 100,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"required\": [\"keys\"],\n\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-no-result\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"oneOf\": [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_bulk-get-result\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_bulk-get-result-with-metadata\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get multiple key-value pairs response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get multiple key-value pairs response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Get multiple key-value pairs\",\n\t\t\t\t\"tags\": [\"Workers KV Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/d1/database\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns a list of D1 databases.\",\n\t\t\t\t\"operationId\": \"d1-list-databases\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"name\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"a database name to search for.\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_database-response\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"Total number of results for the requested service\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List D1 databases response\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List D1 databases response failure\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List D1 Databases\",\n\t\t\t\t\"tags\": [\"D1\"]\n\t\t\t}\n\t\t},\n\t\t\"/d1/database/{database_id}/raw\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Returns the query result rows as arrays rather than objects. This is a performance-optimized version of the /query endpoint.\",\n\t\t\t\t\"operationId\": \"d1-raw-database-query\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"database_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_database-identifier\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_batch-query\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_raw-result-response\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Raw query response\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Query response failure\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Raw D1 Database query\",\n\t\t\t\t\"tags\": [\"D1\"]\n\t\t\t}\n\t\t},\n\t\t\"/workers/durable_objects/namespaces\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the Durable Object namespaces owned by an account.\",\n\t\t\t\t\"operationId\": \"durable-objects-namespace-list-namespaces\",\n\t\t\t\t\"parameters\": [],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-collection\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_namespace\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Namespaces response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-collection\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_namespace\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Namespaces response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Namespaces\",\n\t\t\t\t\"tags\": [\"Durable Objects Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/workers/durable_objects/namespaces/{id}/objects\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the Durable Objects in a given namespace.\",\n\t\t\t\t\"operationId\": \"durable-objects-namespace-list-objects\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_schemas-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"limit\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"default\": 1000,\n\t\t\t\t\t\t\t\"description\": \"The number of objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.\",\n\t\t\t\t\t\t\t\"maximum\": 10000,\n\t\t\t\t\t\t\t\"minimum\": 10,\n\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"cursor\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"description\": \"Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.\",\n\t\t\t\t\t\t\t\"example\": \"AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc\",\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-collection\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_object\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"Total results returned based on your list parameters.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"cursor\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_cursor\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Objects response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-collection\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_object\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"Total results returned based on your list parameters.\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"cursor\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_cursor\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Objects response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Objects\",\n\t\t\t\t\"tags\": [\"Durable Objects Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/r2/buckets\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Lists all R2 buckets on your account.\",\n\t\t\t\t\"operationId\": \"r2-list-buckets\",\n\t\t\t\t\"parameters\": [],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_v4_response_list\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"buckets\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_bucket\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Buckets response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_v4_response_failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Buckets response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Buckets\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t}\n\t\t},\n\t\t\"/r2/buckets/{bucket_name}\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Gets properties of an existing R2 bucket.\",\n\t\t\t\t\"operationId\": \"r2-get-bucket\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"bucket_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_bucket_name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_v4_response\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_bucket\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Bucket response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_v4_response_failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Bucket response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Get Bucket\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t}\n\t\t},\n\t\t\"/r2/buckets/{bucket_name}/objects\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"List objects in an R2 bucket with optional prefix and delimiter.\",\n\t\t\t\t\"operationId\": \"r2-bucket-list-objects\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"bucket_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"prefix\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Filter objects by key prefix\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"delimiter\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delimiter for directory-style listing (usually '/')\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"cursor\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Pagination cursor from previous response\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"per_page\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\t\t\t\"default\": 1000\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Maximum number of objects to return\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_object\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_list-objects-result-info\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List objects response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List objects failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Objects in R2 Bucket\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t},\n\t\t\t\"delete\": {\n\t\t\t\t\"description\": \"Delete multiple objects from an R2 bucket.\",\n\t\t\t\t\"operationId\": \"r2-bucket-delete-objects\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"bucket_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"description\": \"Array of object keys to delete\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"key\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete objects response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete objects failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Delete Multiple Objects from R2 Bucket\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t}\n\t\t},\n\t\t\"/r2/buckets/{bucket_name}/objects/{object_key}\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Get an object from an R2 bucket. Use cf-metadata-only header for HEAD-like behavior.\",\n\t\t\t\t\"operationId\": \"r2-bucket-get-object\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"bucket_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"object_key\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"header\",\n\t\t\t\t\t\t\"name\": \"cf-metadata-only\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Set to 'true' to return only metadata (HEAD-like behavior)\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_head-object-result\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"application/octet-stream\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\"format\": \"binary\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Object content or metadata.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get object failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Get Object from R2 Bucket\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t},\n\t\t\t\"put\": {\n\t\t\t\t\"description\": \"Upload an object to an R2 bucket.\",\n\t\t\t\t\"operationId\": \"r2-bucket-put-object\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"bucket_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"object_key\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"header\",\n\t\t\t\t\t\t\"name\": \"content-type\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Content type of the object\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"header\",\n\t\t\t\t\t\t\"name\": \"cf-r2-custom-metadata\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"JSON-encoded custom metadata\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/octet-stream\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"format\": \"binary\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_put-object-result\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Put object response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Put object failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Upload Object to R2 Bucket\",\n\t\t\t\t\"tags\": [\"R2 Bucket\"]\n\t\t\t}\n\t\t},\n\t\t\"/workers/durable_objects/namespaces/{namespace_id}/query\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Execute SQL queries against a Durable Object's SQLite storage.\",\n\t\t\t\t\"operationId\": \"durable-objects-namespace-query-sqlite\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"namespace_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_schemas-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"oneOf\": [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/do_query-by-id\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/do_query-by-name\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": true\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/do_raw-query-result\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Query response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Query response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Query Durable Object SQLite\",\n\t\t\t\t\"tags\": [\"Durable Objects Namespace\"]\n\t\t\t}\n\t\t},\n\t\t\"/local/workers\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"List all workers in the local dev registry.\",\n\t\t\t\t\"operationId\": \"local-explorer-list-workers\",\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_worker\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List workers response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List workers failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Workers in Dev Registry\",\n\t\t\t\t\"tags\": [\"Local Explorer\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the workflows configured for local development.\",\n\t\t\t\t\"operationId\": \"workflows-list-workflows\",\n\t\t\t\t\"parameters\": [],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Workflows response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Workflows response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Workflows\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows/{workflow_name}\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns details of a specific workflow including instance status counts.\",\n\t\t\t\t\"operationId\": \"workflows-get-workflow-details\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-details\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Workflow Details response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Workflow Details response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Get Workflow Details\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t},\n\t\t\t\"delete\": {\n\t\t\t\t\"description\": \"Deletes all instances of a workflow by removing their persistence files.\",\n\t\t\t\t\"operationId\": \"workflows-delete-workflow\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete Workflow response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete Workflow response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Delete Workflow (all instances)\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows/{workflow_name}/instances\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the instances of a workflow.\",\n\t\t\t\t\"operationId\": \"workflows-list-instances\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"page\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"default\": 1,\n\t\t\t\t\t\t\t\"description\": \"Page number (1-indexed).\",\n\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"per_page\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"default\": 25,\n\t\t\t\t\t\t\t\"description\": \"Number of instances per page.\",\n\t\t\t\t\t\t\t\"maximum\": 100,\n\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"query\",\n\t\t\t\t\t\t\"name\": \"status\",\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\"enum\": [\n\t\t\t\t\t\t\t\t\"queued\",\n\t\t\t\t\t\t\t\t\"running\",\n\t\t\t\t\t\t\t\t\"paused\",\n\t\t\t\t\t\t\t\t\"errored\",\n\t\t\t\t\t\t\t\t\"terminated\",\n\t\t\t\t\t\t\t\t\"complete\",\n\t\t\t\t\t\t\t\t\"waitingForPause\",\n\t\t\t\t\t\t\t\t\"waiting\"\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\"description\": \"Filter instances by status.\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"page\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"per_page\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"total_count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"total_pages\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Workflow Instances response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"List Workflow Instances response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"List Workflow Instances\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t},\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Creates a new workflow instance.\",\n\t\t\t\t\"operationId\": \"workflows-create-instance\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Optional instance ID. If not provided, a UUID is generated.\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Optional JSON payload to pass to the workflow.\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The instance ID of the newly created workflow instance.\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"required\": [\"id\"]\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Create Workflow Instance response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Create Workflow Instance response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Create Workflow Instance\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows/{workflow_name}/instances/{instance_id}\": {\n\t\t\t\"get\": {\n\t\t\t\t\"description\": \"Returns the status details of a workflow instance.\",\n\t\t\t\t\"operationId\": \"workflows-get-instance-details\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"instance_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance-details\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Workflow Instance Details response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Get Workflow Instance Details response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Get Workflow Instance Details\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t},\n\t\t\t\"delete\": {\n\t\t\t\t\"description\": \"Deletes a workflow instance by removing its persistence files.\",\n\t\t\t\t\"operationId\": \"workflows-delete-instance\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"instance_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete Workflow Instance response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Delete Workflow Instance response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Delete Workflow Instance\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows/{workflow_name}/instances/{instance_id}/status\": {\n\t\t\t\"patch\": {\n\t\t\t\t\"description\": \"Changes the status of a workflow instance (pause, resume, restart, terminate).\",\n\t\t\t\t\"operationId\": \"workflows-change-instance-status\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"instance_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\"required\": [\"action\"],\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"action\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\"enum\": [\"pause\", \"resume\", \"restart\", \"terminate\"],\n\t\t\t\t\t\t\t\t\t\t\"description\": \"The action to perform on the workflow instance.\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"from\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\"description\": \"The step to restart the instance from. Only valid when action is restart.\",\n\t\t\t\t\t\t\t\t\t\t\"required\": [\"name\"],\n\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The name of the step.\"\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"minimum\": 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The 1-based index of the step when multiple steps share the same name and type. Defaults to 1.\"\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"enum\": [\"do\", \"sleep\", \"waitForEvent\"],\n\t\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The step type. Defaults to do.\"\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"rollback\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\t\t\t\t\"description\": \"The option to trigger rollbacks when terminating the workflow instance.\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Change Workflow Instance Status response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Change Workflow Instance Status response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Change Workflow Instance Status\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/workflows/{workflow_name}/instances/{instance_id}/events/{event_type}\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Sends an event to a workflow instance.\",\n\t\t\t\t\"operationId\": \"workflows-send-instance-event\",\n\t\t\t\t\"parameters\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"workflow_name\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_workflow-name\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"instance_id\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workflows_instance-id\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"in\": \"path\",\n\t\t\t\t\t\t\"name\": \"event_type\",\n\t\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\"description\": \"The event type to send.\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"description\": \"Optional JSON payload for the event.\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Send Event response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Send Event response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Send Event to Workflow Instance\",\n\t\t\t\t\"tags\": [\"Workflows\"]\n\t\t\t}\n\t\t},\n\t\t\"/local/observability/query\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Runs a single read-only SQL query against the local trace store and returns { columns, rows }.\\n\\nOnly one SELECT/WITH statement is allowed; writes, DDL, PRAGMA, ATTACH, and multiple statements are rejected, and at most 10000 rows are returned.\\nBind values with `params` rather than string-interpolating them.\\n`attributes` is stored as JSONB \u2014 wrap it with `json(attributes)` to read it back as JSON.\\n\\nSchema (the query contract):\\n\\nCREATE TABLE spans (\\n  trace_id TEXT NOT NULL, span_id TEXT NOT NULL, parent_id TEXT, -- parent_id IS NULL on a root (invocation) span\\n  service TEXT,        -- owning worker name (multi-worker attribution)\\n  name TEXT, kind TEXT,\\n  start_ms INTEGER,    -- absolute epoch ms\\n  duration_ms INTEGER, -- whole ms; NULL while the span is still running\\n  outcome TEXT, error TEXT,\\n  attributes BLOB,     -- JSONB; read via json(attributes)\\n  created_at TEXT,\\n  PRIMARY KEY (trace_id, span_id)\\n);\\n-- index spans_roots ON spans (start_ms) WHERE parent_id IS NULL\\n\\nCREATE TABLE logs (\\n  trace_id TEXT NOT NULL, span_id TEXT,\\n  seq INTEGER NOT NULL, -- order within the trace\\n  ts_ms INTEGER, level TEXT, message TEXT, -- message is a JSON-encoded console arg array\\n  operation TEXT, created_at TEXT,\\n  PRIMARY KEY (trace_id, seq)\\n);\",\n\t\t\t\t\"operationId\": \"observability-query\",\n\t\t\t\t\"parameters\": [],\n\t\t\t\t\"requestBody\": {\n\t\t\t\t\t\"required\": true,\n\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"sql\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\t\t\"description\": \"A single read-only SELECT/WITH query against the spans/logs schema above.\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\t\t\t\"items\": {},\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Values bound to `?` placeholders in the query, in order.\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"required\": [\"sql\"]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/observability_query-result\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Query response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Query response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Query Observability Store\",\n\t\t\t\t\"tags\": [\"Observability\"]\n\t\t\t}\n\t\t},\n\t\t\"/local/observability/clear\": {\n\t\t\t\"post\": {\n\t\t\t\t\"description\": \"Deletes all captured spans and logs from the local trace store.\",\n\t\t\t\t\"operationId\": \"observability-clear\",\n\t\t\t\t\"parameters\": [],\n\t\t\t\t\"responses\": {\n\t\t\t\t\t\"200\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Clear response.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"4XX\": {\n\t\t\t\t\t\t\"content\": {\n\t\t\t\t\t\t\t\"application/json\": {\n\t\t\t\t\t\t\t\t\"schema\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common-failure\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Clear response failure.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"summary\": \"Clear Observability Store\",\n\t\t\t\t\"tags\": [\"Observability\"]\n\t\t\t}\n\t\t}\n\t},\n\t\"components\": {\n\t\t\"schemas\": {\n\t\t\t\"r2_v4_response\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_errors\"\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [true],\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"r2_messages\": {\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\"\n\t\t\t},\n\t\t\t\"r2_errors\": {\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\"minimum\": 1000,\n\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"message\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": [\"code\", \"message\"],\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\"\n\t\t\t},\n\t\t\t\"r2_bucket_name\": {\n\t\t\t\t\"description\": \"Name of the bucket.\",\n\t\t\t\t\"example\": \"example-bucket\",\n\t\t\t\t\"maxLength\": 64,\n\t\t\t\t\"minLength\": 3,\n\t\t\t\t\"pattern\": \"^[a-z0-9][a-z0-9-]*[a-z0-9]\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"r2_v4_response_failure\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_errors\"\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"enum\": [null],\n\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [false],\n\t\t\t\t\t\t\"example\": false,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"r2_bucket\": {\n\t\t\t\t\"description\": \"A single R2 bucket.\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"creation_date\": {\n\t\t\t\t\t\t\"description\": \"Creation timestamp.\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_bucket_name\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"r2_v4_response_list\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_v4_response\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/r2_result_info\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"r2_result_info\": {\n\t\t\t\t\"properties\": {},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers_cursor\": {\n\t\t\t\t\"description\": \"Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.\",\n\t\t\t\t\"example\": \"AAAAANuhDN7SjacTnSVsDu3WW1Lvst6dxJGTjRY5BhxPXdf6L6uTcpd_NVtjhn11OUYRsVEykxoUwF-JQU4dn6QylZSKTOJuG0indrdn_MlHpMRtsxgXjs-RPdHYIVm3odE_uvEQ_dTQGFm8oikZMohns34DLBgrQpc\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers_object\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"hasStoredData\": {\n\t\t\t\t\t\t\"description\": \"Whether the Durable Object has stored data.\",\n\t\t\t\t\t\t\"example\": true,\n\t\t\t\t\t\t\"readOnly\": true,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"description\": \"ID of the Durable Object.\",\n\t\t\t\t\t\t\"example\": \"fe7803fc55b964e09d94666545aab688d360c6bda69ba349ced1e5f28d2fc2c8\",\n\t\t\t\t\t\t\"readOnly\": true,\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Name of the Durable Object instance, if created via idFromName().\",\n\t\t\t\t\t\t\"readOnly\": true\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers_schemas-id\": {\n\t\t\t\t\"description\": \"ID of the namespace.\",\n\t\t\t\t\"example\": \"5fd1cafff895419c8bcc647fc64ab8f0\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers_api-response-common-failure\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"code\": 7003,\n\t\t\t\t\t\t\t\t\"message\": \"No route for the URI\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"minLength\": 1\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"enum\": [null],\n\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [false],\n\t\t\t\t\t\t\"example\": false,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers_messages\": {\n\t\t\t\t\"example\": [],\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\"minimum\": 1000,\n\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"documentation_url\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"message\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"source\": {\n\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\"pointer\": {\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": [\"code\", \"message\"],\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\"\n\t\t\t},\n\t\t\t\"workers_namespace\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"class\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"readOnly\": true,\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"script\": {\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t\"use_sqlite\": {\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers_api-response-collection\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_api-response-common\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Total number of results for the requested service.\",\n\t\t\t\t\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"page\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Current page within paginated list of results.\",\n\t\t\t\t\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"per_page\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Number of results per page of results.\",\n\t\t\t\t\t\t\t\t\t\t\"example\": 20,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"total_count\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"Total results available without any search parameters.\",\n\t\t\t\t\t\t\t\t\t\t\"example\": 2000,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"total_pages\": {\n\t\t\t\t\t\t\t\t\t\t\"description\": \"The number of total pages in the entire result set.\",\n\t\t\t\t\t\t\t\t\t\t\"example\": 100,\n\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers_api-response-common\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [true],\n\t\t\t\t\t\t\"example\": true,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_raw-result-response\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"meta\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_query-meta\"\n\t\t\t\t\t},\n\t\t\t\t\t\"results\": {\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"columns\": {\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"rows\": {\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\t\"anyOf\": [\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_query-meta\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"changed_db\": {\n\t\t\t\t\t\t\"description\": \"Denotes if the database has been altered in some way, like deleting rows.\",\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t\"changes\": {\n\t\t\t\t\t\t\"description\": \"Rough indication of how many rows were modified by the query, as provided by SQLite's `sqlite3_total_changes()`.\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"duration\": {\n\t\t\t\t\t\t\"description\": \"The duration of the SQL query execution inside the database. Does not include any network communication.\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"last_row_id\": {\n\t\t\t\t\t\t\"description\": \"The row ID of the last inserted row in a table with an `INTEGER PRIMARY KEY` as provided by SQLite. Tables created with `WITHOUT ROWID` do not populate this.\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"rows_read\": {\n\t\t\t\t\t\t\"description\": \"Number of rows read during the SQL query execution, including indices (not all rows are necessarily returned).\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"rows_written\": {\n\t\t\t\t\t\t\"description\": \"Number of rows written during the SQL query execution, including indices.\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"size_after\": {\n\t\t\t\t\t\t\"description\": \"Size of the database after the query committed, in bytes.\",\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"timings\": {\n\t\t\t\t\t\t\"description\": \"Various durations for the query.\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"sql_duration_ms\": {\n\t\t\t\t\t\t\t\t\"description\": \"The duration of the SQL query execution inside the database. Does not include any network communication.\",\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_batch-query\": {\n\t\t\t\t\"description\": \"A single query object or a batch query object\",\n\t\t\t\t\"oneOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_single-query\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"batch\": {\n\t\t\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_single-query\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"required\": [\"batch\"],\n\t\t\t\t\t\t\"title\": \"multiple queries\",\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"d1_single-query\": {\n\t\t\t\t\"description\": \"A single query with or without parameters\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_params\"\n\t\t\t\t\t},\n\t\t\t\t\t\"sql\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_sql\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"sql\"],\n\t\t\t\t\"title\": \"single query\",\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_sql\": {\n\t\t\t\t\"description\": \"Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch.\",\n\t\t\t\t\"example\": \"SELECT * FROM myTable WHERE field = ? OR field = ?;\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"d1_params\": {\n\t\t\t\t\"example\": [\"firstParam\", \"secondParam\"],\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\"\n\t\t\t},\n\t\t\t\"d1_database-identifier\": {\n\t\t\t\t\"description\": \"D1 database identifier (UUID).\",\n\t\t\t\t\"example\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n\t\t\t\t\"readOnly\": true,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"d1_api-response-common-failure\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"code\": 7003,\n\t\t\t\t\t\t\t\t\"message\": \"No route for the URI\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"minLength\": 1\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"enum\": [null],\n\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful\",\n\t\t\t\t\t\t\"enum\": [false],\n\t\t\t\t\t\t\"example\": false,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_messages\": {\n\t\t\t\t\"example\": [],\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\"minimum\": 1000,\n\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"message\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": [\"code\", \"message\"],\n\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\"uniqueItems\": true\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\"\n\t\t\t},\n\t\t\t\"d1_database-response\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"jurisdiction\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_jurisdiction-nullable\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_database-name\"\n\t\t\t\t\t},\n\t\t\t\t\t\"uuid\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_database-identifier\"\n\t\t\t\t\t},\n\t\t\t\t\t\"version\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_database-version\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"d1_database-version\": {\n\t\t\t\t\"example\": \"production\",\n\t\t\t\t\"pattern\": \"^(alpha|beta|production)$\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"d1_database-name\": {\n\t\t\t\t\"description\": \"D1 database name.\",\n\t\t\t\t\"example\": \"my-database\",\n\t\t\t\t\"pattern\": \"^[a-zA-Z0-9][a-zA-Z0-9_-]*$\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"d1_jurisdiction-nullable\": {\n\t\t\t\t\"description\": \"Specify the location to restrict the D1 database to run and store data. If this option is present, the location hint is ignored.\",\n\t\t\t\t\"enum\": [\"eu\", \"fedramp\"],\n\t\t\t\t\"example\": \"eu\",\n\t\t\t\t\"nullable\": true,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"d1_api-response-common\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/d1_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful\",\n\t\t\t\t\t\t\"enum\": [true],\n\t\t\t\t\t\t\"example\": true,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_bulk-get-result-with-metadata\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"values\": {\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\t\"expiration\": {\n\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_expiration\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_any\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The metadata associated with the key.\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"value\": {\n\t\t\t\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_any\"\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"description\": \"The value associated with the key.\"\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"required\": [\"value\", \"metadata\"],\n\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Requested keys are paired with their values and metadata in an object.\",\n\t\t\t\t\t\t\"example\": {\n\t\t\t\t\t\t\t\"key1\": {\n\t\t\t\t\t\t\t\t\"expiration\": 1577836800,\n\t\t\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\t\t\"someMetadataKey\": \"someMetadataValue\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"value\": \"value1\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"key2\": {\n\t\t\t\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\t\t\t\"anotherKey\": \"anotherValue\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\"value\": \"value2\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_any\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_any\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"array\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"workers-kv_expiration\": {\n\t\t\t\t\"description\": \"Expires the key at a certain time, measured in number of seconds since the UNIX epoch.\",\n\t\t\t\t\"example\": 1578435000,\n\t\t\t\t\"type\": \"number\"\n\t\t\t},\n\t\t\t\"workers-kv_bulk-get-result\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"values\": {\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"description\": \"The value associated with the key.\",\n\t\t\t\t\t\t\t\"oneOf\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"additionalProperties\": true,\n\t\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\"nullable\": true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Requested keys are paired with their values in an object.\",\n\t\t\t\t\t\t\"example\": {\n\t\t\t\t\t\t\t\"key1\": \"value1\",\n\t\t\t\t\t\t\t\"key2\": \"value2\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_key_name_bulk\": {\n\t\t\t\t\"description\": \"A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid.\",\n\t\t\t\t\"example\": \"My-Key\",\n\t\t\t\t\"maxLength\": 512,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers-kv_api-response-common-no-result\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"workers-kv_api-response-common\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_messages\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [true],\n\t\t\t\t\t\t\"example\": true,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_messages\": {\n\t\t\t\t\"example\": [],\n\t\t\t\t\"items\": {\n\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\"code\": {\n\t\t\t\t\t\t\t\"minimum\": 1000,\n\t\t\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"message\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"required\": [\"code\", \"message\"],\n\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t},\n\t\t\t\t\"type\": \"array\",\n\t\t\t\t\"uniqueItems\": true\n\t\t\t},\n\t\t\t\"workers-kv_metadata\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_any\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"description\": \"Associates arbitrary JSON data with a key/value pair.\",\n\t\t\t\t\t\t\"example\": {\n\t\t\t\t\t\t\t\"someMetadataKey\": \"someMetadataValue\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"workers-kv_value\": {\n\t\t\t\t\"anyOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"format\": \"binary\",\n\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"description\": \"A byte sequence to be stored, up to 25 MiB in length.\",\n\t\t\t\t\"example\": \"Some Value\"\n\t\t\t},\n\t\t\t\"workers-kv_key_name\": {\n\t\t\t\t\"description\": \"A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.\",\n\t\t\t\t\"example\": \"My-Key\",\n\t\t\t\t\"maxLength\": 512,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers-kv_cursor_result_info\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\"description\": \"Total results returned based on your list parameters.\",\n\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"cursor\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_cursor\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_cursor\": {\n\t\t\t\t\"description\": \"Opaque token indicating the position from which to continue when requesting the next set of records if the amount of list results was limited by the limit parameter. A valid value for the cursor can be obtained from the cursors object in the result_info structure.\",\n\t\t\t\t\"example\": \"6Ck1la0VxJ0djhidm1MdX2FyDGxLKVeeHZZmORS_8XeSuhz9SjIJRaSa2lnsF01tQOHrfTGAP3R5X1Kv5iVUuMbNKhWNAXHOl6ePB0TUL8nw\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers-kv_key\": {\n\t\t\t\t\"description\": \"A name for a value. A value stored under a given key may be retrieved via the same key.\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"expiration\": {\n\t\t\t\t\t\t\"description\": \"The time, measured in number of seconds since the UNIX epoch, at which the key will expire. This property is omitted for keys that will not expire.\",\n\t\t\t\t\t\t\"example\": 1577836800,\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t},\n\t\t\t\t\t\"metadata\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_list_metadata\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_key_name\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"name\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_list_metadata\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_any\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"description\": \"Arbitrary JSON that is associated with a key.\",\n\t\t\t\t\t\t\"example\": {\n\t\t\t\t\t\t\t\"someMetadataKey\": \"someMetadataValue\"\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t\"workers-kv_namespace_identifier\": {\n\t\t\t\t\"description\": \"Namespace identifier tag.\",\n\t\t\t\t\"example\": \"0f2ac74b498b48028cb68387c421e279\",\n\t\t\t\t\"maxLength\": 32,\n\t\t\t\t\"readOnly\": true,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers-kv_api-response-common-failure\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"errors\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"code\": 7003,\n\t\t\t\t\t\t\t\t\"message\": \"No route for the URI\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"minLength\": 1\n\t\t\t\t\t},\n\t\t\t\t\t\"messages\": {\n\t\t\t\t\t\t\"allOf\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_messages\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"example\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"result\": {\n\t\t\t\t\t\t\"nullable\": true,\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"success\": {\n\t\t\t\t\t\t\"description\": \"Whether the API call was successful.\",\n\t\t\t\t\t\t\"enum\": [false],\n\t\t\t\t\t\t\"example\": false,\n\t\t\t\t\t\t\"type\": \"boolean\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"success\", \"errors\", \"messages\", \"result\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_namespace\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_identifier\"\n\t\t\t\t\t},\n\t\t\t\t\t\"title\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_namespace_title\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"id\", \"title\"],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_namespace_title\": {\n\t\t\t\t\"description\": \"A human-readable string name for a Namespace.\",\n\t\t\t\t\"example\": \"My Own Namespace\",\n\t\t\t\t\"maxLength\": 512,\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workers-kv_api-response-collection\": {\n\t\t\t\t\"allOf\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_api-response-common\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"result_info\": {\n\t\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/workers-kv_result_info\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"workers-kv_result_info\": {\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"count\": {\n\t\t\t\t\t\t\"description\": \"Total number of results for the requested service.\",\n\t\t\t\t\t\t\"example\": 1,\n\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"type\": \"object\"\n\t\t\t},\n\t\t\t\"r2_object\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"key\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object key (path)\"\n\t\t\t\t\t},\n\t\t\t\t\t\"etag\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object ETag\"\n\t\t\t\t\t},\n\t\t\t\t\t\"size\": {\n\t\t\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\t\t\"description\": \"Object size in bytes\"\n\t\t\t\t\t},\n\t\t\t\t\t\"last_modified\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"format\": \"date-time\",\n\t\t\t\t\t\t\"description\": \"Last modified timestamp\"\n\t\t\t\t\t},\n\t\t\t\t\t\"http_metadata\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"HTTP metadata for the object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"custom_metadata\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Custom user-defined metadata\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"r2_list-objects-result-info\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"delimited\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Common prefixes when using delimiter (virtual directories)\"\n\t\t\t\t\t},\n\t\t\t\t\t\"cursor\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Cursor for fetching next page of results\"\n\t\t\t\t\t},\n\t\t\t\t\t\"is_truncated\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Whether there are more results to fetch\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"r2_head-object-result\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"key\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object key (path)\"\n\t\t\t\t\t},\n\t\t\t\t\t\"etag\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object ETag\"\n\t\t\t\t\t},\n\t\t\t\t\t\"last_modified\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Last modified timestamp\"\n\t\t\t\t\t},\n\t\t\t\t\t\"size\": {\n\t\t\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\t\t\"description\": \"Object size in bytes\"\n\t\t\t\t\t},\n\t\t\t\t\t\"http_metadata\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"HTTP metadata for the object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"custom_metadata\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"additionalProperties\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Custom user-defined metadata\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"r2_put-object-result\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"key\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object key (path)\"\n\t\t\t\t\t},\n\t\t\t\t\t\"etag\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object ETag\"\n\t\t\t\t\t},\n\t\t\t\t\t\"size\": {\n\t\t\t\t\t\t\"type\": \"integer\",\n\t\t\t\t\t\t\"description\": \"Object size in bytes\"\n\t\t\t\t\t},\n\t\t\t\t\t\"version\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Object version ID\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"do_sql-with-params\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"sql\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"sql\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"description\": \"SQL query to execute\"\n\t\t\t\t\t},\n\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {},\n\t\t\t\t\t\t\"description\": \"Optional parameters for the SQL query\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"do_query-by-id\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"durable_object_id\", \"queries\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"durable_object_id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"description\": \"Hex string ID of the Durable Object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"queries\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/do_sql-with-params\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Array of SQL queries to execute\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"do_query-by-name\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"durable_object_name\", \"queries\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"durable_object_name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"minLength\": 1,\n\t\t\t\t\t\t\"description\": \"Name to derive DO ID via idFromName()\"\n\t\t\t\t\t},\n\t\t\t\t\t\"queries\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/do_sql-with-params\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Array of SQL queries to execute\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"do_raw-query-result\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"columns\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Column names from the query result\"\n\t\t\t\t\t},\n\t\t\t\t\t\"rows\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Array of row arrays containing query results\"\n\t\t\t\t\t},\n\t\t\t\t\t\"meta\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"rows_read\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\",\n\t\t\t\t\t\t\t\t\"description\": \"Number of rows read during query execution\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"rows_written\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\",\n\t\t\t\t\t\t\t\t\"description\": \"Number of rows written during query execution\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"local-explorer_worker\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"isSelf\", \"name\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"isSelf\": {\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"description\": \"Whether this worker is the one hosting the explorer\"\n\t\t\t\t\t},\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Worker name from the dev registry\"\n\t\t\t\t\t},\n\t\t\t\t\t\"bindings\": {\n\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_worker-bindings\",\n\t\t\t\t\t\t\"description\": \"Resource bindings for this worker\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"local-explorer_worker-bindings\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"description\": \"Resource bindings for a worker\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"kv\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_resource-binding\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"KV namespace bindings\"\n\t\t\t\t\t},\n\t\t\t\t\t\"d1\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_resource-binding\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"D1 database bindings\"\n\t\t\t\t\t},\n\t\t\t\t\t\"r2\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_resource-binding\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"R2 bucket bindings\"\n\t\t\t\t\t},\n\t\t\t\t\t\"do\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_do-binding\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Durable Object bindings\"\n\t\t\t\t\t},\n\t\t\t\t\t\"workflows\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"$ref\": \"#/components/schemas/local-explorer_workflow-binding\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Workflow bindings\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"local-explorer_resource-binding\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"id\", \"bindingName\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Unique identifier for the resource\"\n\t\t\t\t\t},\n\t\t\t\t\t\"bindingName\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Name of the binding in the worker's env\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"local-explorer_do-binding\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\n\t\t\t\t\t\"id\",\n\t\t\t\t\t\"bindingName\",\n\t\t\t\t\t\"className\",\n\t\t\t\t\t\"scriptName\",\n\t\t\t\t\t\"useSqlite\"\n\t\t\t\t],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Unique identifier (scriptName-className)\"\n\t\t\t\t\t},\n\t\t\t\t\t\"bindingName\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Name of the binding in the worker's env\"\n\t\t\t\t\t},\n\t\t\t\t\t\"className\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Durable Object class name\"\n\t\t\t\t\t},\n\t\t\t\t\t\"scriptName\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Script containing the Durable Object\"\n\t\t\t\t\t},\n\t\t\t\t\t\"useSqlite\": {\n\t\t\t\t\t\t\"type\": \"boolean\",\n\t\t\t\t\t\t\"description\": \"Whether the Durable Object uses SQLite storage\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"local-explorer_workflow-binding\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"required\": [\"id\", \"bindingName\", \"className\", \"scriptName\"],\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Workflow name\"\n\t\t\t\t\t},\n\t\t\t\t\t\"bindingName\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Name of the binding in the worker's env\"\n\t\t\t\t\t},\n\t\t\t\t\t\"className\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Workflow entrypoint class name\"\n\t\t\t\t\t},\n\t\t\t\t\t\"scriptName\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"Script containing the workflow\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"workflows_workflow-name\": {\n\t\t\t\t\"description\": \"The name of the workflow.\",\n\t\t\t\t\"example\": \"my-workflow\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workflows_instance-id\": {\n\t\t\t\t\"description\": \"The unique identifier of a workflow instance.\",\n\t\t\t\t\"example\": \"my-instance-id\",\n\t\t\t\t\"type\": \"string\"\n\t\t\t},\n\t\t\t\"workflows_workflow\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The name of the workflow.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"class_name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The entrypoint class name of the workflow.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"script_name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The script name containing the workflow.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"name\"]\n\t\t\t},\n\t\t\t\"workflows_workflow-details\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The name of the workflow.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"class_name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The entrypoint class name.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"script_name\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The script containing the workflow.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"instances\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"description\": \"Instance counts by status.\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"complete\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"errored\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"paused\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"queued\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"running\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"terminated\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"waiting\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"waitingForPause\": {\n\t\t\t\t\t\t\t\t\"type\": \"number\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"name\", \"class_name\", \"script_name\", \"instances\"]\n\t\t\t},\n\t\t\t\"workflows_instance\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The unique identifier of the workflow instance.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"enum\": [\n\t\t\t\t\t\t\t\"queued\",\n\t\t\t\t\t\t\t\"running\",\n\t\t\t\t\t\t\t\"paused\",\n\t\t\t\t\t\t\t\"errored\",\n\t\t\t\t\t\t\t\"terminated\",\n\t\t\t\t\t\t\t\"complete\",\n\t\t\t\t\t\t\t\"waitingForPause\",\n\t\t\t\t\t\t\t\"waiting\",\n\t\t\t\t\t\t\t\"unknown\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"description\": \"The current status of the instance.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"created_on\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"ISO 8601 timestamp of when the instance was created.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"id\"]\n\t\t\t},\n\t\t\t\"workflows_instance-details\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"id\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"description\": \"The unique identifier of the workflow instance.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"status\": {\n\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\"enum\": [\n\t\t\t\t\t\t\t\"queued\",\n\t\t\t\t\t\t\t\"running\",\n\t\t\t\t\t\t\t\"paused\",\n\t\t\t\t\t\t\t\"errored\",\n\t\t\t\t\t\t\t\"terminated\",\n\t\t\t\t\t\t\t\"complete\",\n\t\t\t\t\t\t\t\"waitingForPause\",\n\t\t\t\t\t\t\t\"waiting\",\n\t\t\t\t\t\t\t\"unknown\"\n\t\t\t\t\t\t],\n\t\t\t\t\t\t\"description\": \"The current status of the instance.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"output\": {\n\t\t\t\t\t\t\"description\": \"Output value if the workflow completed successfully.\"\n\t\t\t\t\t},\n\t\t\t\t\t\"error\": {\n\t\t\t\t\t\t\"type\": \"object\",\n\t\t\t\t\t\t\"properties\": {\n\t\t\t\t\t\t\t\"name\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"message\": {\n\t\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\"description\": \"Error details if the workflow errored.\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"id\", \"status\"]\n\t\t\t},\n\t\t\t\"observability_query-result\": {\n\t\t\t\t\"type\": \"object\",\n\t\t\t\t\"description\": \"Columns and rows for a read-only SQL query.\",\n\t\t\t\t\"properties\": {\n\t\t\t\t\t\"columns\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"type\": \"string\"\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"rows\": {\n\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\"items\": {\n\t\t\t\t\t\t\t\"type\": \"array\",\n\t\t\t\t\t\t\t\"items\": {}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"required\": [\"columns\", \"rows\"]\n\t\t\t}\n\t\t}\n\t}\n}\n", "import {\n\taggregateListResults,\n\tfetchFromPeer,\n\tgetPeerUrlsIfAggregating,\n} from \"../aggregation\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type {\n\tD1DatabaseResponse,\n\tD1RawResultResponse,\n\tD1SingleQuery,\n} from \"../generated\";\nimport type {\n\tzD1ListDatabasesData,\n\tzD1RawDatabaseQueryData,\n} from \"../generated/zod.gen\";\nimport type { z } from \"zod\";\n\n// ============================================================================\n// Error Codes (matching Cloudflare API)\n// ============================================================================\n\n/** Error code for D1 database not found */\nconst D1_ERROR_DATABASE_NOT_FOUND = 7404;\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Retrieves a D1 database binding from the environment by its database ID.\n *\n * Looks up the binding name in the local explorer binding map and returns\n * the corresponding D1Database instance from the environment.\n *\n * @param env - The worker environment containing bindings and configuration\n * @param databaseId - The unique identifier of the D1 database\n *\n * @returns The `D1Database` binding if found, or `null` if the database ID is not mapped\n */\nfunction getD1Binding(env: Env, databaseId: string): D1Database | null {\n\tconst bindingMap = env.LOCAL_EXPLORER_BINDING_MAP.d1;\n\n\t// Find the binding name for this database ID\n\tconst bindingName = bindingMap[databaseId];\n\tif (!bindingName) {\n\t\treturn null;\n\t}\n\n\treturn env[bindingName] as D1Database;\n}\n\n/**\n * Get local D1 databases from the binding map.\n */\nfunction getLocalD1Databases(env: Env): D1DatabaseResponse[] {\n\tconst d1BindingMap = env.LOCAL_EXPLORER_BINDING_MAP.d1;\n\n\treturn Object.entries(d1BindingMap).map(([id, bindingName]) => {\n\t\tconst parts = bindingName.split(\":\");\n\t\tconst databaseName = parts.pop() || bindingName;\n\n\t\treturn {\n\t\t\tname: databaseName,\n\t\t\tuuid: id,\n\t\t\tversion: \"production\",\n\t\t} satisfies D1DatabaseResponse;\n\t});\n}\n\nasync function findD1DatabaseOwner(\n\tc: AppContext,\n\tdatabaseId: string\n): Promise<string | null> {\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) return null;\n\n\tconst responses = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(url, \"/d1/database\");\n\t\t\tif (!response?.ok) return null;\n\t\t\tconst data = (await response.json()) as {\n\t\t\t\tresult?: Array<{ uuid: string }>;\n\t\t\t};\n\t\t\tconst found = data.result?.some((db) => db.uuid === databaseId);\n\t\t\treturn found ? url : null;\n\t\t})\n\t);\n\n\treturn responses.find((url) => url !== null) ?? null;\n}\n\n// ============================================================================\n// API Handlers\n// ============================================================================\n\ntype ListDatabasesQuery = z.output<\n\tReturnType<typeof zD1ListDatabasesData.shape.query.unwrap>\n>;\n\n/**\n * Lists all D1 databases available across all connected instances.\n *\n * This is an aggregated endpoint - it fetches databases from the local instance\n * and all peer instances in the dev registry, then merges the results.\n *\n * Supports filtering by database name via the `name` query parameter.\n *\n * @see https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/list/\n *\n * @param c - The Hono application context\n * @param query - Query parameters for filtering\n * @param query.name - Optional filter to search databases by name (case-insensitive)\n *\n * @returns A JSON response containing all databases from all instances\n */\nexport async function listD1Databases(\n\tc: AppContext,\n\tquery: ListDatabasesQuery\n): Promise<Response> {\n\tconst { name } = query;\n\n\tconst localDatabases = getLocalD1Databases(c.env);\n\tconst aggregatedDatabases = await aggregateListResults(\n\t\tc,\n\t\tlocalDatabases,\n\t\t\"/d1/database\"\n\t);\n\n\t// deduplicate by id - not totally correct, since local dev can use binding names as an 'id' :/\n\t// TODO: check persistence path to properly verify local uniqueness\n\tconst localIds = new Set(localDatabases.map((db) => db.uuid));\n\tlet allDatabases = aggregatedDatabases.filter(\n\t\t(db, index) => index < localDatabases.length || !localIds.has(db.uuid)\n\t);\n\n\t// Filter by name if provided\n\tif (name) {\n\t\tallDatabases = allDatabases.filter((db) =>\n\t\t\tdb.name?.toLowerCase().includes(name.toLowerCase())\n\t\t);\n\t}\n\n\treturn c.json({\n\t\t...wrapResponse(allDatabases),\n\t\tresult_info: {\n\t\t\tcount: allDatabases.length,\n\t\t},\n\t});\n}\n\ntype RawDatabaseBody = z.output<typeof zD1RawDatabaseQueryData.shape.body>;\n\n/**\n * Executes raw SQL queries against a D1 database.\n *\n * Returns query results as arrays rather than objects for improved performance.\n *\n * Supports both single queries and batch queries. Each query can include\n * parameterized values for safe SQL execution.\n *\n * If the database is not found locally, this handler will attempt to proxy\n * the request to peer instances in the dev registry.\n *\n * @see https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/raw/\n *\n * @param c - The Hono application context (`database_id` is extracted from the request path)\n * @param body - The request body containing the SQL query or batch of queries\n * @param body.sql - The SQL statement to execute (for single queries)\n * @param body.params - Optional array of parameters for the SQL statement\n * @param body.batch - Optional array of queries to execute as a batch\n *\n * @returns A JSON response with query results including columns, rows, and metadata,\n *          or a 404 error if the database is not found, or a 500 error if the query fails\n */\nexport async function rawD1Database(\n\tc: AppContext,\n\tdatabaseId: string,\n\tbody: RawDatabaseBody\n): Promise<Response> {\n\t// Try local first\n\tconst db = getD1Binding(c.env, databaseId);\n\tif (db) {\n\t\treturn executeD1Query(c, db, body);\n\t}\n\n\tconst ownerMiniflare = await findD1DatabaseOwner(c, databaseId);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/d1/database/${encodeURIComponent(databaseId)}/raw`,\n\t\t\t{\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t}\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tD1_ERROR_DATABASE_NOT_FOUND,\n\t\t`The database ${databaseId} could not be found`\n\t);\n}\n\n/**\n * Execute a D1 query against a local database binding.\n */\nasync function executeD1Query(\n\tc: AppContext,\n\tdb: D1Database,\n\tbody: RawDatabaseBody\n): Promise<Response> {\n\t// Normalize to array of queries\n\tconst queries: D1SingleQuery[] =\n\t\t\"batch\" in body && body.batch ? body.batch : [body as D1SingleQuery];\n\n\tconst results = new Array<D1RawResultResponse>();\n\n\ttry {\n\t\tfor (const query of queries) {\n\t\t\tlet statement = db.prepare(query.sql);\n\t\t\tif (query.params && query.params.length > 0) {\n\t\t\t\tstatement = statement.bind(...query.params);\n\t\t\t}\n\n\t\t\t// Note: We use `.all()` here instead of `.raw()` so we can get the full\n\t\t\t// query metadata back. As such we then need to transform the data to match\n\t\t\t// the required raw request format.\n\t\t\tconst allResults = await statement.all();\n\n\t\t\tconst columns =\n\t\t\t\tallResults.results.length > 0 ? Object.keys(allResults.results[0]) : [];\n\n\t\t\tconst rows = allResults.results.map((row) =>\n\t\t\t\tcolumns.map(\n\t\t\t\t\t(col) => row[col] as number | string | Record<string, unknown>\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tresults.push({\n\t\t\t\tmeta: {\n\t\t\t\t\tchanged_db: allResults.meta.changed_db,\n\t\t\t\t\tchanges: allResults.meta.changes,\n\t\t\t\t\tduration: allResults.meta.duration,\n\t\t\t\t\tlast_row_id: allResults.meta.last_row_id,\n\t\t\t\t\trows_read: allResults.meta.rows_read,\n\t\t\t\t\trows_written: allResults.meta.rows_written,\n\t\t\t\t\tsize_after: allResults.meta.size_after,\n\t\t\t\t\ttimings: allResults.meta.timings,\n\t\t\t\t},\n\t\t\t\tresults: {\n\t\t\t\t\tcolumns,\n\t\t\t\t\trows,\n\t\t\t\t},\n\t\t\t\tsuccess: allResults.success,\n\t\t\t} satisfies D1RawResultResponse);\n\t\t}\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : \"Query failed\";\n\t\treturn errorResponse(500, 10001, message);\n\t}\n\n\treturn c.json(wrapResponse(results));\n}\n", "import type {\n\tDoRawQueryResult,\n\tDoSqlWithParams,\n} from \"../../workers/local-explorer/generated\";\n\nexport const CORE_PLUGIN_NAME = \"core\";\n\n// Service for HTTP socket entrypoint (for checking runtime ready, routing, etc)\nexport const SERVICE_ENTRY = `${CORE_PLUGIN_NAME}:entry`;\n// Service for local explorer (API + UI)\nexport const SERVICE_LOCAL_EXPLORER = `${CORE_PLUGIN_NAME}:local-explorer`;\n// Disk service for local explorer UI assets\nexport const LOCAL_EXPLORER_DISK = `${CORE_PLUGIN_NAME}:local-explorer-disk`;\n// Local observability collector; user workers' `streamingTails` point here.\n// Prefixed via getUserServiceName(), so the name itself must not contain a\n// colon (it collides with the `core:user:` service namespacing).\nexport const OBSERVABILITY_COLLECTOR_SERVICE_NAME =\n\t\"miniflare-observability-collector\";\n// Flags that make a user worker stream its tail (incl. user spans) to the\n// collector; applied to each user worker when observability is enabled\nexport const OBSERVABILITY_COMPAT_FLAGS = [\n\t\"streaming_tail_worker\",\n\t\"tail_worker_user_spans\",\n] as const;\n// Service prefix for all regular user workers\nconst SERVICE_USER_PREFIX = `${CORE_PLUGIN_NAME}:user`;\n// Service prefix for `workerd`'s builtin services (network, external, disk)\nconst SERVICE_BUILTIN_PREFIX = `${CORE_PLUGIN_NAME}:builtin`;\n// Service prefix for custom fetch functions defined in `serviceBindings` option\nconst SERVICE_CUSTOM_FETCH_PREFIX = `${CORE_PLUGIN_NAME}:custom-fetch`;\n// Service prefix for custom Node functions defined in `serviceBindings` option\nconst SERVICE_CUSTOM_NODE_PREFIX = `${CORE_PLUGIN_NAME}:custom-node`;\n\nexport function getUserServiceName(workerName = \"\") {\n\treturn `${SERVICE_USER_PREFIX}:${workerName}`;\n}\n\n// Namespace custom services to avoid conflicts between user-specified names\n// and hardcoded Miniflare names\nexport enum CustomServiceKind {\n\tUNKNOWN = \"#\", // User specified name (i.e. `serviceBindings`)\n\tKNOWN = \"$\", // Miniflare specified name (i.e. `outboundService`)\n}\n\nexport const CUSTOM_SERVICE_KNOWN_OUTBOUND = \"outbound\";\n\nexport function getBuiltinServiceName(\n\tworkerIndex: number,\n\tkind: CustomServiceKind,\n\tbindingName: string\n) {\n\treturn `${SERVICE_BUILTIN_PREFIX}:${workerIndex}:${kind}${bindingName}`;\n}\n\nexport function getCustomFetchServiceName(\n\tworkerIndex: number,\n\tkind: CustomServiceKind,\n\tbindingName: string\n) {\n\treturn `${SERVICE_CUSTOM_FETCH_PREFIX}:${workerIndex}:${kind}${bindingName}`;\n}\n\nexport function getCustomNodeServiceName(\n\tworkerIndex: number,\n\tkind: CustomServiceKind,\n\tbindingName: string\n) {\n\treturn `${SERVICE_CUSTOM_NODE_PREFIX}:${workerIndex}:${kind}${bindingName}`;\n}\n\n/**\n * Used by the local explorer worker.\n * The method name injected into wrapped Durable Objects for SQLite introspection.\n */\nexport const INTROSPECT_SQLITE_METHOD = \"__miniflare_introspectSqlite\";\n\nexport type IntrospectSqliteMethod = (\n\tqueries: DoSqlWithParams[]\n) => Promise<DoRawQueryResult[]>;\n\n/**\n * Used by the local explorer worker.\n * This method is injected into wrapped Durable Objects to allow getting the DO instance name.\n */\nexport const GET_DO_NAME_METHOD = \"__miniflare_getDOName\";\n\nexport type GetDONameMethod = () => string | undefined;\n", "import {\n\tGET_DO_NAME_METHOD,\n\tINTROSPECT_SQLITE_METHOD,\n} from \"../../../plugins/core/constants\";\nimport {\n\taggregateListResults,\n\tfetchFromPeer,\n\tgetPeerUrlsIfAggregating,\n} from \"../aggregation\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type {\n\tGetDONameMethod,\n\tIntrospectSqliteMethod,\n} from \"../../../plugins/core/constants\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type { WorkersNamespace } from \"../generated\";\nimport type {\n\tzDurableObjectsNamespaceListObjectsData,\n\tzDurableObjectsNamespaceQuerySqliteData,\n} from \"../generated/zod.gen\";\nimport type { z } from \"zod\";\n\n// ============================================================================\n// Error Codes (matching Cloudflare API)\n// ============================================================================\n\n/** Error code for Durable Object namespace not found */\nconst DO_ERROR_NAMESPACE_NOT_FOUND = 10066;\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\ninterface DirectoryEntry {\n\tname: string;\n\ttype: \"file\" | \"directory\";\n}\n\ninterface IntrospectableDurableObject extends Rpc.DurableObjectBranded {\n\t[INTROSPECT_SQLITE_METHOD]: IntrospectSqliteMethod;\n\t[GET_DO_NAME_METHOD]: GetDONameMethod;\n}\n\nfunction getDOBinding(\n\tenv: Env,\n\tnamespaceId: string\n): {\n\tbinding: DurableObjectNamespace<IntrospectableDurableObject>;\n\tuseSQLite: boolean;\n} | null {\n\tconst info = env.LOCAL_EXPLORER_BINDING_MAP.do[namespaceId];\n\tif (!info) return null;\n\treturn {\n\t\tbinding: env[\n\t\t\tinfo.binding\n\t\t] as DurableObjectNamespace<IntrospectableDurableObject>,\n\t\tuseSQLite: info.useSQLite,\n\t};\n}\n\n/**\n * Get local DO namespaces from the binding map.\n */\nfunction getLocalDONamespaces(env: Env): Required<WorkersNamespace>[] {\n\tconst doBindingMap = env.LOCAL_EXPLORER_BINDING_MAP.do;\n\treturn Object.entries(doBindingMap).map(([id, info]) => ({\n\t\tid, // This is the unsafeUniqueKey - ${scriptName}-${className}\n\t\tname: `${info.scriptName}_${info.className}`, // This is what the API returns...\n\t\tscript: info.scriptName,\n\t\tclass: info.className,\n\t\tuse_sqlite: info.useSQLite,\n\t}));\n}\n\nasync function findDONamespaceOwner(\n\tc: AppContext,\n\tnamespaceId: string\n): Promise<string | null> {\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) return null;\n\n\tconst responses = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\turl,\n\t\t\t\t\"/workers/durable_objects/namespaces\"\n\t\t\t);\n\t\t\tif (!response?.ok) return null;\n\t\t\tconst data = (await response.json()) as {\n\t\t\t\tresult?: Array<{ id: string }>;\n\t\t\t};\n\t\t\tconst found = data.result?.some((ns) => ns.id === namespaceId);\n\t\t\treturn found ? url : null;\n\t\t})\n\t);\n\n\treturn responses.find((url) => url !== null) ?? null;\n}\n\n// ============================================================================\n// API Handlers\n// ============================================================================\n\n/**\n * List Durable Object Namespaces across all connected instances.\n *\n * This is an aggregated endpoint - it fetches namespaces from the local instance\n * and all peer instances in the dev registry, then merges the results.\n *\n * @see https://developers.cloudflare.com/api/resources/durable_objects/subresources/namespaces/methods/list/\n */\nexport async function listDONamespaces(c: AppContext) {\n\tconst localNamespaces = getLocalDONamespaces(c.env);\n\t// note that we don't have duplication issues here like\n\t// we do for listD1Namespaces etc. because DOs are tied\n\t// to scripts and external DOs have already been filtered out\n\tconst allNamespaces = await aggregateListResults(\n\t\tc,\n\t\tlocalNamespaces,\n\t\t\"/workers/durable_objects/namespaces\"\n\t);\n\n\treturn c.json({\n\t\t...wrapResponse(allNamespaces),\n\t\tresult_info: {\n\t\t\tcount: allNamespaces.length,\n\t\t},\n\t});\n}\n\ntype ListObjectsQuery = NonNullable<\n\tz.output<typeof zDurableObjectsNamespaceListObjectsData>[\"query\"]\n>;\n\n/**\n * List Durable Objects in a namespace\n *\n * This endpoint keeps pagination as-is since it operates on a single namespace.\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/durable_objects/subresources/namespaces/methods/list_objects/\n */\nexport async function listDOObjects(\n\tc: AppContext,\n\tnamespaceId: string,\n\tquery: ListObjectsQuery\n) {\n\tconst { limit, cursor } = query;\n\n\t// Check if namespace exists locally\n\tconst namespaceExists = c.env.LOCAL_EXPLORER_BINDING_MAP.do[namespaceId];\n\n\tif (namespaceExists) {\n\t\treturn executeListDOObjects(c, namespaceId, { limit, cursor });\n\t}\n\n\tconst ownerMiniflare = await findDONamespaceOwner(c, namespaceId);\n\tif (ownerMiniflare) {\n\t\tconst params = new URLSearchParams();\n\t\tif (cursor) params.set(\"cursor\", cursor);\n\t\tif (limit !== undefined) params.set(\"limit\", String(limit));\n\t\tconst queryString = params.toString();\n\t\tconst path = `/workers/durable_objects/namespaces/${encodeURIComponent(\n\t\t\tnamespaceId\n\t\t)}/objects${queryString ? `?${queryString}` : \"\"}`;\n\n\t\tconst response = await fetchFromPeer(ownerMiniflare, path);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tDO_ERROR_NAMESPACE_NOT_FOUND,\n\t\t`Durable Object namespace ID '${namespaceId}' not found.`\n\t);\n}\n\n/**\n * Execute list DO objects on a local namespace.\n */\nasync function executeListDOObjects(\n\tc: AppContext,\n\tnamespaceId: string,\n\toptions: { limit: number; cursor?: string }\n): Promise<Response> {\n\tconst { limit, cursor } = options;\n\n\t// No loopback service means we can't list DOs\n\tif (c.env.MINIFLARE_LOOPBACK === undefined) {\n\t\treturn errorResponse(500, 10001, \"Loopback service not available\");\n\t}\n\n\t// The DO storage structure is: <persistPath>/<uniqueKey>/<objectId>.sqlite\n\t// namespaceId is the uniqueKey (e.g., \"my-worker-TestDO\")\n\t// Call the loopback service to list the directory using Node.js fs\n\t// This bypasses workerd's disk service which has issues on Windows\n\tconst encodedNamespaceId = encodeURIComponent(namespaceId);\n\tconst loopbackUrl = `http://localhost/core/do-storage/${encodedNamespaceId}`;\n\n\tconst response = await c.env.MINIFLARE_LOOPBACK.fetch(loopbackUrl);\n\n\tif (!response.ok) {\n\t\t// Directory doesn't exist means the DO doesn't exist\n\t\tif (response.status === 404) {\n\t\t\treturn c.json({\n\t\t\t\t...wrapResponse([]),\n\t\t\t\tresult_info: {\n\t\t\t\t\tcount: 0,\n\t\t\t\t\tcursor: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t\treturn errorResponse(\n\t\t\t500,\n\t\t\t10001,\n\t\t\t`Failed to read DO storage: ${response.statusText}`\n\t\t);\n\t}\n\n\tconst files = (await response.json()) as DirectoryEntry[];\n\n\t// Each DO object gets a sqlite file named <objectId>.sqlite,\n\t// so filter for those and use that to extract object IDs.\n\t// Exclude metadata.sqlite which is used by workerd for per-namespace\n\t// metadata (e.g. alarm storage) and is not a DO object.\n\tlet objectIds = files\n\t\t.filter(\n\t\t\t(entry) =>\n\t\t\t\tentry.type === \"file\" &&\n\t\t\t\tentry.name.endsWith(\".sqlite\") &&\n\t\t\t\tentry.name !== \"metadata.sqlite\"\n\t\t)\n\t\t.map((entry) => entry.name.replace(/\\.sqlite$/, \"\"));\n\n\t// Sort for consistent ordering (required for cursor pagination)\n\tobjectIds.sort();\n\n\tif (cursor) {\n\t\tconst cursorIndex = objectIds.findIndex((id) => id > cursor);\n\t\tif (cursorIndex === -1) {\n\t\t\t// Cursor is past all results\n\t\t\tobjectIds = [];\n\t\t} else {\n\t\t\tobjectIds = objectIds.slice(cursorIndex);\n\t\t}\n\t}\n\n\t// Apply limit\n\tconst hasMore = objectIds.length > limit;\n\tconst paginatedIds = objectIds.slice(0, limit);\n\n\t// Get the names for each DO object, if available\n\tconst ns = getDOBinding(c.env, namespaceId);\n\tconst objects = await Promise.all(\n\t\tpaginatedIds.map(async (id) => {\n\t\t\tlet name: string | undefined;\n\t\t\tif (ns && ns.useSQLite) {\n\t\t\t\ttry {\n\t\t\t\t\tconst doId = ns.binding.idFromString(id);\n\t\t\t\t\tconst stub = ns.binding.get(doId);\n\t\t\t\t\tname = await stub[GET_DO_NAME_METHOD]();\n\t\t\t\t} catch {\n\t\t\t\t\t// Ignore errors - name is optional\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tid,\n\t\t\t\tname,\n\t\t\t\thasStoredData: true,\n\t\t\t};\n\t\t})\n\t);\n\n\t// Build next cursor (last ID if there are more results)\n\tconst nextCursor = hasMore ? paginatedIds[paginatedIds.length - 1] : \"\";\n\n\treturn c.json({\n\t\t...wrapResponse(objects),\n\t\tresult_info: {\n\t\t\tcount: objects.length,\n\t\t\tcursor: nextCursor,\n\t\t},\n\t});\n}\n\n// ============================================================================\n// Query Durable Object SQLite\n// ============================================================================\n\ntype QueryBody = z.output<\n\ttypeof zDurableObjectsNamespaceQuerySqliteData\n>[\"body\"];\n\n/**\n * Query Durable Object SQLite storage\n *\n * Executes SQL queries against a specific Durable Object's SQLite storage\n * using introspection method that is injected into user DO classes.\n *\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * The namespace ID is the uniqueKey: scriptName-className\n */\nexport async function queryDOSqlite(\n\tc: AppContext,\n\tnamespaceId: string,\n\tbody: QueryBody\n): Promise<Response> {\n\t// Try local first\n\tconst ns = getDOBinding(c.env, namespaceId);\n\n\tif (ns) {\n\t\treturn executeQueryDOSqlite(c, ns, namespaceId, body);\n\t}\n\n\tconst ownerMiniflare = await findDONamespaceOwner(c, namespaceId);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/workers/durable_objects/namespaces/${encodeURIComponent(\n\t\t\t\tnamespaceId\n\t\t\t)}/query`,\n\t\t\t{\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t}\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tDO_ERROR_NAMESPACE_NOT_FOUND,\n\t\t`Durable Object namespace ID '${namespaceId}' not found.`\n\t);\n}\n\n/**\n * Execute query on a local DO namespace.\n */\nasync function executeQueryDOSqlite(\n\tc: AppContext,\n\tns: {\n\t\tbinding: DurableObjectNamespace<IntrospectableDurableObject>;\n\t\tuseSQLite: boolean;\n\t},\n\tnamespaceId: string,\n\tbody: QueryBody\n): Promise<Response> {\n\tif (!ns.useSQLite) {\n\t\treturn errorResponse(\n\t\t\t400,\n\t\t\t10001,\n\t\t\t`Namespace does not use SQLite storage: ${namespaceId}`\n\t\t);\n\t}\n\n\tconst binding = ns.binding;\n\t// Get DO ID - either from hex string or from name\n\tlet doId: DurableObjectId;\n\ttry {\n\t\tif (\"durable_object_id\" in body) {\n\t\t\tdoId = binding.idFromString(body.durable_object_id);\n\t\t} else {\n\t\t\tdoId = binding.idFromName(body.durable_object_name);\n\t\t}\n\t} catch (error) {\n\t\tconst message =\n\t\t\terror instanceof Error ? error.message : \"Invalid Durable Object ID\";\n\t\treturn errorResponse(400, 10001, message);\n\t}\n\n\tif (body.queries.length === 0) {\n\t\treturn errorResponse(400, 10001, \"No queries provided\");\n\t}\n\n\tconst stub = binding.get(doId);\n\n\ttry {\n\t\tconst results = await stub[INTROSPECT_SQLITE_METHOD](body.queries);\n\t\treturn c.json(wrapResponse(results));\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : \"Query failed\";\n\t\treturn errorResponse(400, 10001, message);\n\t}\n}\n", "import {\n\taggregateListResults,\n\tfetchFromPeer,\n\tgetPeerUrlsIfAggregating,\n} from \"../aggregation\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type { WorkersKvNamespace } from \"../generated\";\nimport type {\n\tzWorkersKvNamespaceGetMultipleKeyValuePairsData,\n\tzWorkersKvNamespaceListANamespaceSKeysData,\n\tzWorkersKvNamespaceListNamespacesData,\n} from \"../generated/zod.gen\";\nimport type z from \"zod\";\n\n// ============================================================================\n// Error Codes (matching Cloudflare API)\n// ============================================================================\n\n/** Error code for key not found in KV namespace */\nconst KV_ERROR_KEY_NOT_FOUND = 10009;\n/** Error code for KV namespace not found */\nconst KV_ERROR_NAMESPACE_NOT_FOUND = 10013;\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Get a KV binding by namespace ID\n */\nfunction getKVBinding(env: Env, namespace_id: string): KVNamespace | null {\n\tconst bindingMap = env.LOCAL_EXPLORER_BINDING_MAP.kv;\n\n\t// Find the binding name for this namespace ID\n\tconst bindingName = bindingMap[namespace_id];\n\tif (!bindingName) return null;\n\n\treturn env[bindingName] as KVNamespace;\n}\n\nasync function findKVNamespaceOwner(\n\tc: AppContext,\n\tnamespaceId: string\n): Promise<string | null> {\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) return null;\n\n\tconst responses = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(url, \"/storage/kv/namespaces\");\n\t\t\tif (!response?.ok) return null;\n\t\t\tconst data = (await response.json()) as {\n\t\t\t\tresult?: Array<{ id: string }>;\n\t\t\t};\n\t\t\tconst found = data.result?.some((ns) => ns.id === namespaceId);\n\t\t\treturn found ? url : null;\n\t\t})\n\t);\n\n\treturn responses.find((url) => url !== null) ?? null;\n}\n\n/**\n * Get local KV namespaces from the binding map.\n */\nfunction getLocalKVNamespaces(env: Env): WorkersKvNamespace[] {\n\tconst kvBindingMap = env.LOCAL_EXPLORER_BINDING_MAP.kv;\n\n\treturn Object.entries(kvBindingMap).map(([id, bindingName]) => {\n\t\tconst parts = bindingName.split(\":\");\n\t\tconst title = parts.pop() || bindingName;\n\n\t\treturn {\n\t\t\tid,\n\t\t\ttitle,\n\t\t};\n\t});\n}\n\n// ============================================================================\n// API Handlers\n// ============================================================================\n\ntype ListNamespacesQuery = NonNullable<\n\tz.output<typeof zWorkersKvNamespaceListNamespacesData>[\"query\"]\n>;\n\n/**\n * List all KV namespaces across all connected instances.\n *\n * This is an aggregated endpoint - it fetches namespaces from the local instance\n * and all peer instances in the dev registry, then merges the results.\n *\n * Supports sorting via `direction` and `order` query parameters.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/list/\n */\nexport async function listKVNamespaces(\n\tc: AppContext,\n\tquery: ListNamespacesQuery\n) {\n\tconst direction = query.direction ?? \"asc\";\n\tconst order = query.order ?? \"id\";\n\n\tconst localNamespaces = getLocalKVNamespaces(c.env);\n\tconst aggregatedNamespaces = await aggregateListResults(\n\t\tc,\n\t\tlocalNamespaces,\n\t\t\"/storage/kv/namespaces\"\n\t);\n\n\t// deduplicate by id - not totally correct, since local dev can use binding names as an 'id' :/\n\t// TODO: check persistence path to properly verify local uniqueness\n\tconst localIds = new Set(localNamespaces.map((ns) => ns.id));\n\tconst allNamespaces = aggregatedNamespaces.filter(\n\t\t(ns, index) => index < localNamespaces.length || !localIds.has(ns.id)\n\t);\n\n\t// Sort results\n\tallNamespaces.sort((a, b) => {\n\t\tconst aVal = order === \"id\" ? a.id : a.title;\n\t\tconst bVal = order === \"id\" ? b.id : b.title;\n\t\tconst cmp = aVal.localeCompare(bVal);\n\t\treturn direction === \"asc\" ? cmp : -cmp;\n\t});\n\n\treturn c.json({\n\t\t...wrapResponse(allNamespaces),\n\t\tresult_info: {\n\t\t\tcount: allNamespaces.length,\n\t\t},\n\t});\n}\n\ntype ListKeysQuery = NonNullable<\n\tz.output<typeof zWorkersKvNamespaceListANamespaceSKeysData>[\"query\"]\n>;\n/**\n * List a Namespace's Keys\n *\n * This endpoint keeps pagination as-is since it operates on a single namespace.\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/keys/methods/list/\n */\nexport async function listKVKeys(c: AppContext, query: ListKeysQuery) {\n\tconst namespace_id = c.req.param(\"namespace_id\");\n\tif (!namespace_id) {\n\t\treturn errorResponse(400, 10000, \"Missing namespace_id parameter\");\n\t}\n\tconst cursor = query.cursor;\n\tconst limit = query.limit;\n\tconst prefix = query.prefix;\n\n\t// Try local first\n\tconst kv = getKVBinding(c.env, namespace_id);\n\tif (kv) {\n\t\treturn executeListKeys(c, kv, { cursor, limit, prefix });\n\t}\n\n\tconst ownerMiniflare = await findKVNamespaceOwner(c, namespace_id);\n\tif (ownerMiniflare) {\n\t\tconst params = new URLSearchParams();\n\t\tif (cursor) params.set(\"cursor\", cursor);\n\t\tif (limit !== undefined) params.set(\"limit\", String(limit));\n\t\tif (prefix) params.set(\"prefix\", prefix);\n\t\tconst queryString = params.toString();\n\t\tconst path = `/storage/kv/namespaces/${encodeURIComponent(\n\t\t\tnamespace_id\n\t\t)}/keys${queryString ? `?${queryString}` : \"\"}`;\n\n\t\tconst response = await fetchFromPeer(ownerMiniflare, path);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tKV_ERROR_NAMESPACE_NOT_FOUND,\n\t\t\"list keys: 'namespace not found'\"\n\t);\n}\n\n/**\n * Execute list keys on a local KV binding.\n */\nasync function executeListKeys(\n\tc: AppContext,\n\tkv: KVNamespace,\n\toptions: { cursor?: string; limit?: number; prefix?: string }\n) {\n\tconst listResult = await kv.list(options);\n\tconst resultCursor = \"cursor\" in listResult ? (listResult.cursor ?? \"\") : \"\";\n\n\treturn c.json({\n\t\t...wrapResponse(\n\t\t\tlistResult.keys.map((key) => ({\n\t\t\t\tname: key.name,\n\t\t\t\texpiration: key.expiration,\n\t\t\t\tmetadata: key.metadata,\n\t\t\t}))\n\t\t),\n\t\tresult_info: {\n\t\t\tcount: listResult.keys.length,\n\t\t\tcursor: resultCursor,\n\t\t},\n\t});\n}\n\n/**\n * Read key-value pair\n *\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/get/\n */\nexport async function getKVValue(\n\tc: AppContext,\n\tnamespaceId: string,\n\tkeyName: string\n) {\n\t// Try local first\n\tconst kv = getKVBinding(c.env, namespaceId);\n\tif (kv) {\n\t\tconst value = await kv.get(keyName, { type: \"arrayBuffer\" });\n\t\tif (value === null) {\n\t\t\treturn errorResponse(404, KV_ERROR_KEY_NOT_FOUND, \"get: 'key not found'\");\n\t\t}\n\t\t// this specific API doesn't wrap the response in the envelope\n\t\treturn new Response(value);\n\t}\n\n\tconst ownerMiniflare = await findKVNamespaceOwner(c, namespaceId);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/storage/kv/namespaces/${encodeURIComponent(\n\t\t\t\tnamespaceId\n\t\t\t)}/values/${encodeURIComponent(keyName)}`\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tKV_ERROR_NAMESPACE_NOT_FOUND,\n\t\t\"get: 'namespace not found'\"\n\t);\n}\n\n/**\n * Write key-value pair with optional metadata\n *\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/update/\n */\nexport async function putKVValue(\n\tc: AppContext,\n\tnamespaceId: string,\n\tkeyName: string\n) {\n\t// Try local first\n\tconst kv = getKVBinding(c.env, namespaceId);\n\tif (kv) {\n\t\treturn executePutKVValue(c, kv, keyName);\n\t}\n\n\tconst ownerMiniflare = await findKVNamespaceOwner(c, namespaceId);\n\tif (ownerMiniflare) {\n\t\tconst body = await c.req.arrayBuffer();\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/storage/kv/namespaces/${encodeURIComponent(\n\t\t\t\tnamespaceId\n\t\t\t)}/values/${encodeURIComponent(keyName)}`,\n\t\t\t{\n\t\t\t\tmethod: \"PUT\",\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\":\n\t\t\t\t\t\tc.req.header(\"content-type\") || \"application/octet-stream\",\n\t\t\t\t},\n\t\t\t\tbody,\n\t\t\t}\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tKV_ERROR_NAMESPACE_NOT_FOUND,\n\t\t\"put: 'namespace not found'\"\n\t);\n}\n\n/**\n * Execute put KV value on a local KV binding.\n */\nasync function executePutKVValue(\n\tc: AppContext,\n\tkv: KVNamespace,\n\tkey_name: string\n): Promise<Response> {\n\tlet value: ArrayBuffer | string;\n\tlet metadata: unknown | undefined;\n\n\tconst contentType = c.req.header(\"content-type\") || \"\";\n\n\t// Multipart form data is used when including metadata\n\t// octect-stream is used when you don't need metadata\n\tif (contentType.includes(\"multipart/form-data\")) {\n\t\tconst formData = await c.req.formData();\n\t\tconst formValue = formData.get(\"value\");\n\t\tconst formMetadata = formData.get(\"metadata\");\n\n\t\tif (formValue instanceof Blob) {\n\t\t\t// Handle File or Blob\n\t\t\tvalue = await formValue.arrayBuffer();\n\t\t} else if (typeof formValue === \"string\") {\n\t\t\tvalue = formValue;\n\t\t} else if (formValue === null) {\n\t\t\treturn errorResponse(400, 10001, \"Missing value field\");\n\t\t} else {\n\t\t\treturn errorResponse(400, 10001, \"Unsupported value type in form data\");\n\t\t}\n\n\t\tif (formMetadata instanceof Blob) {\n\t\t\tconst metadataText = await formMetadata.text();\n\t\t\ttry {\n\t\t\t\tmetadata = JSON.parse(metadataText);\n\t\t\t} catch {\n\t\t\t\treturn errorResponse(400, 10001, \"Invalid metadata JSON\");\n\t\t\t}\n\t\t} else if (typeof formMetadata === \"string\") {\n\t\t\ttry {\n\t\t\t\tmetadata = JSON.parse(formMetadata);\n\t\t\t} catch {\n\t\t\t\treturn errorResponse(400, 10001, \"Invalid metadata JSON\");\n\t\t\t}\n\t\t}\n\t} else {\n\t\tvalue = await c.req.arrayBuffer();\n\t}\n\n\tconst options: KVNamespacePutOptions = {};\n\tif (metadata) options.metadata = metadata;\n\n\tawait kv.put(key_name, value, options);\n\treturn c.json(wrapResponse({}));\n}\n\n/**\n * Delete key-value pair\n *\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/subresources/values/methods/delete/\n */\nexport async function deleteKVValue(\n\tc: AppContext,\n\tnamespaceId: string,\n\tkeyName: string\n) {\n\t// Try local first\n\tconst kv = getKVBinding(c.env, namespaceId);\n\tif (kv) {\n\t\tawait kv.delete(keyName);\n\t\treturn c.json(wrapResponse({}));\n\t}\n\n\tconst ownerMiniflare = await findKVNamespaceOwner(c, namespaceId);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/storage/kv/namespaces/${encodeURIComponent(\n\t\t\t\tnamespaceId\n\t\t\t)}/values/${encodeURIComponent(keyName)}`,\n\t\t\t{ method: \"DELETE\" }\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tKV_ERROR_NAMESPACE_NOT_FOUND,\n\t\t\"remove key: 'namespace not found'\"\n\t);\n}\n\ntype BulkGetBody = NonNullable<\n\tz.output<typeof zWorkersKvNamespaceGetMultipleKeyValuePairsData>[\"body\"]\n>;\n/**\n * Get multiple key-value pairs\n *\n * If the namespace is not found locally, it proxies to peer instances.\n *\n * @see https://developers.cloudflare.com/api/resources/kv/subresources/namespaces/methods/bulk_get/\n */\nexport async function bulkGetKVValues(c: AppContext, body: BulkGetBody) {\n\tconst namespace_id = c.req.param(\"namespace_id\");\n\tif (!namespace_id) {\n\t\treturn errorResponse(400, 10000, \"Missing namespace_id parameter\");\n\t}\n\tconst { keys } = body;\n\n\t// Try local first\n\tconst kv = getKVBinding(c.env, namespace_id);\n\tif (kv) {\n\t\t// Fetch all keys at once - returns Map<string, string | null>\n\t\tconst results = await kv.get(keys);\n\n\t\t// Build result object with null for missing keys\n\t\tconst values: Record<string, string | null> = {};\n\t\tfor (const key of keys) {\n\t\t\tvalues[key] = results?.get(key) ?? null;\n\t\t}\n\n\t\treturn c.json(wrapResponse({ values }));\n\t}\n\n\tconst ownerMiniflare = await findKVNamespaceOwner(c, namespace_id);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/storage/kv/namespaces/${encodeURIComponent(namespace_id)}/bulk/get`,\n\t\t\t{\n\t\t\t\tmethod: \"POST\",\n\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\tbody: JSON.stringify(body),\n\t\t\t}\n\t\t);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tKV_ERROR_NAMESPACE_NOT_FOUND,\n\t\t\"bulk get keys: 'namespace not found'\"\n\t);\n}\n", "import { CoreBindings } from \"../../core\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type { zObservabilityQueryData } from \"../generated/zod.gen\";\nimport type { z } from \"zod\";\n\n// ============================================================================\n// Error codes\n// ============================================================================\n\n// These are deliberately in their own range, distinct from the generic 10000 /\n// 10001 codes used by `app.onError` and the other resource handlers. The UI\n// special-cases `OBSERVABILITY_NOT_ENABLED` to show the \"enable capture\" panel,\n// so it must not collide with the code a genuine internal failure would carry\n// (otherwise a real error is misread as \"capture is off\").\n\n/** Local observability isn't enabled, so there's no collector to read from. */\nconst OBSERVABILITY_NOT_ENABLED = 10130;\n/** The collector reported an error (e.g. a rejected read-only query). */\nconst OBSERVABILITY_COLLECTOR_ERROR = 10131;\n\ntype QueryBody = z.output<typeof zObservabilityQueryData.shape.body>;\n\n/**\n * Proxy a request to the internal observability collector's read API and wrap\n * the result in the Cloudflare API envelope. The collector binding is only\n * present when local observability is enabled; otherwise return a clear error.\n */\nasync function proxyToCollector(\n\tenv: Env,\n\tpath: string,\n\tinit?: RequestInit\n): Promise<Response> {\n\tconst collector = env[CoreBindings.SERVICE_OBSERVABILITY_COLLECTOR];\n\tif (!collector) {\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tOBSERVABILITY_NOT_ENABLED,\n\t\t\t\"Local observability is not enabled for this dev session.\"\n\t\t);\n\t}\n\tconst response = await collector.fetch(`http://collector${path}`, init);\n\tif (!response.ok) {\n\t\tlet message = `Observability collector returned ${response.status}`;\n\t\ttry {\n\t\t\tconst body = (await response.json()) as { error?: unknown };\n\t\t\tif (body && typeof body.error === \"string\") {\n\t\t\t\tmessage = body.error;\n\t\t\t}\n\t\t} catch {\n\t\t\t// non-JSON error body; keep the status-based message\n\t\t}\n\t\tconst status = response.status === 400 ? 400 : 502;\n\t\treturn errorResponse(status, OBSERVABILITY_COLLECTOR_ERROR, message);\n\t}\n\treturn Response.json(wrapResponse(await response.json()));\n}\n\n/**\n * POST /local/observability/query \u2014 the sole read endpoint. Runs a read-only SQL\n * query (optionally with bound `params`) against the `spans`/`logs` store and\n * returns `{ columns, rows }`. The UI's trace/log views and coding agents all\n * read through here; the store enforces read-only + row-cap guardrails.\n */\nexport async function runQuery(\n\tc: AppContext,\n\tbody: QueryBody\n): Promise<Response> {\n\treturn proxyToCollector(c.env, \"/query\", {\n\t\tmethod: \"POST\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify({ sql: body.sql, params: body.params }),\n\t});\n}\n\n/**\n * POST /local/observability/clear \u2014 delete all captured spans and logs. Proxies\n * to the collector's mutating `/clear` endpoint (the read-only guardrail only\n * applies to `/query`).\n */\nexport async function clearTraces(c: AppContext): Promise<Response> {\n\treturn proxyToCollector(c.env, \"/clear\", { method: \"POST\" });\n}\n", "import {\n\taggregateListResults,\n\tfetchFromPeer,\n\tgetPeerUrlsIfAggregating,\n} from \"../aggregation\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type {\n\tR2Bucket as R2BucketType,\n\tR2ListBucketsResponse,\n} from \"../generated\";\nimport type {\n\tzR2BucketDeleteObjectsData,\n\tzR2BucketGetObjectData,\n\tzR2BucketListObjectsData,\n\tzR2BucketPutObjectData,\n} from \"../generated/zod.gen\";\nimport type z from \"zod\";\n\n// ============================================================================\n// Error Codes (matching Cloudflare API)\n// ============================================================================\n\n/** Error code for bucket not found */\nconst R2_ERROR_BUCKET_NOT_FOUND = 10006;\n/** Error code for object not found */\nconst R2_ERROR_OBJECT_NOT_FOUND = 10007;\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Get an R2 binding by bucket name\n */\nfunction getR2Binding(env: Env, bucket_name: string): R2Bucket | null {\n\tconst bindingMap = env.LOCAL_EXPLORER_BINDING_MAP.r2;\n\n\t// Find the binding name for this bucket\n\tconst bindingName = bindingMap[bucket_name];\n\tif (!bindingName) return null;\n\n\treturn env[bindingName] as R2Bucket;\n}\n\nasync function findR2BucketOwner(\n\tc: AppContext,\n\tbucketName: string\n): Promise<string | null> {\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) return null;\n\n\tconst responses = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(url, \"/r2/buckets\");\n\t\t\tif (!response?.ok) return null;\n\t\t\tconst data = (await response.json()) as R2ListBucketsResponse;\n\t\t\tconst found = data.result?.buckets?.some((b) => b.name === bucketName);\n\t\t\treturn found ? url : null;\n\t\t})\n\t);\n\n\treturn responses.find((url) => url !== null) ?? null;\n}\n\n/**\n * Get local R2 buckets from the binding map.\n */\nfunction getLocalR2Buckets(env: Env): Required<Pick<R2BucketType, \"name\">>[] {\n\tconst r2BindingMap = env.LOCAL_EXPLORER_BINDING_MAP.r2;\n\n\treturn Object.entries(r2BindingMap).map(([bucketName]) => {\n\t\treturn {\n\t\t\tname: bucketName,\n\t\t};\n\t});\n}\n\n// ============================================================================\n// API Handlers\n// ============================================================================\n\n/**\n * List all R2 buckets across all connected instances.\n *\n * This is an aggregated endpoint - it fetches buckets from the local instance\n * and all peer instances in the dev registry, then merges the results.\n *\n * @see https://developers.cloudflare.com/api/resources/r2/subresources/buckets/methods/list/\n */\nexport async function listR2Buckets(c: AppContext) {\n\tconst localBuckets = getLocalR2Buckets(c.env);\n\tconst aggregatedBuckets = await aggregateListResults<{\n\t\tname: string;\n\t}>(c, localBuckets, \"/r2/buckets\", \"buckets\");\n\n\t// Deduplicate by name\n\tconst localNames = new Set(localBuckets.map((b) => b.name));\n\tconst allBuckets = aggregatedBuckets.filter(\n\t\t(b, index) => index < localBuckets.length || !localNames.has(b.name)\n\t);\n\n\t// Sort by name\n\tallBuckets.sort((a, b) => a.name.localeCompare(b.name));\n\n\treturn c.json({\n\t\t...wrapResponse({ buckets: allBuckets }),\n\t\tresult_info: {\n\t\t\tcount: allBuckets.length,\n\t\t},\n\t});\n}\n\ntype ListObjectsQuery = NonNullable<\n\tz.output<typeof zR2BucketListObjectsData>[\"query\"]\n>;\n\n/**\n * List objects in an R2 bucket with optional directory navigation.\n *\n * Supports:\n * - `prefix`: Filter objects by prefix (e.g., \"folder1/\")\n * - `delimiter`: Use \"/\" for directory-style navigation\n * - `cursor`: Pagination cursor\n * - `per_page`: Max results per page (default 1000)\n *\n * @see https://developers.cloudflare.com/api/resources/r2/subresources/buckets/subresources/objects/methods/list/\n */\nexport async function listR2Objects(\n\tc: AppContext,\n\tbucket_name: string,\n\tquery: ListObjectsQuery\n) {\n\tconst prefix = query.prefix;\n\tconst delimiter = query.delimiter;\n\tconst cursor = query.cursor;\n\tconst limit = query.per_page;\n\n\t// Try local first\n\tconst r2 = getR2Binding(c.env, bucket_name);\n\tif (r2) {\n\t\treturn executeListObjects(r2, { prefix, delimiter, cursor, limit }, c);\n\t}\n\n\tconst ownerMiniflare = await findR2BucketOwner(c, bucket_name);\n\tif (ownerMiniflare) {\n\t\tconst params = new URLSearchParams();\n\t\tif (prefix) params.set(\"prefix\", prefix);\n\t\tif (delimiter) params.set(\"delimiter\", delimiter);\n\t\tif (cursor) params.set(\"cursor\", cursor);\n\t\tif (limit !== undefined) params.set(\"per_page\", String(limit));\n\t\tconst queryString = params.toString();\n\t\tconst path = `/r2/buckets/${encodeURIComponent(bucket_name)}/objects${\n\t\t\tqueryString ? `?${queryString}` : \"\"\n\t\t}`;\n\n\t\tconst response = await fetchFromPeer(ownerMiniflare, path);\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tR2_ERROR_BUCKET_NOT_FOUND,\n\t\t\"list objects: 'bucket not found'\"\n\t);\n}\n\n/**\n * Execute list objects on a local R2 binding.\n */\nasync function executeListObjects(\n\tr2: R2Bucket,\n\toptions: {\n\t\tprefix?: string;\n\t\tdelimiter?: string;\n\t\tcursor?: string;\n\t\tlimit?: number;\n\t},\n\tc: AppContext\n) {\n\tconst listResult = await r2.list(options);\n\n\tconst objects = listResult.objects.map((obj) => ({\n\t\tkey: obj.key,\n\t\tetag: obj.etag,\n\t\tsize: obj.size,\n\t\tlast_modified: obj.uploaded.toISOString(),\n\t\thttp_metadata: obj.httpMetadata\n\t\t\t? {\n\t\t\t\t\tcontentType: obj.httpMetadata.contentType,\n\t\t\t\t\tcontentLanguage: obj.httpMetadata.contentLanguage,\n\t\t\t\t\tcontentDisposition: obj.httpMetadata.contentDisposition,\n\t\t\t\t\tcontentEncoding: obj.httpMetadata.contentEncoding,\n\t\t\t\t\tcacheControl: obj.httpMetadata.cacheControl,\n\t\t\t\t\tcacheExpiry: obj.httpMetadata.cacheExpiry?.toISOString(),\n\t\t\t\t}\n\t\t\t: undefined,\n\t\tcustom_metadata: obj.customMetadata,\n\t}));\n\n\treturn c.json({\n\t\t...wrapResponse(objects),\n\t\tresult_info: {\n\t\t\tdelimited: listResult.delimitedPrefixes,\n\t\t\tcursor: listResult.truncated ? listResult.cursor : undefined,\n\t\t\tis_truncated: listResult.truncated ? \"true\" : \"false\",\n\t\t},\n\t});\n}\n\ntype GetObjectHeaders = NonNullable<\n\tz.output<typeof zR2BucketGetObjectData>[\"headers\"]\n>;\n\n/**\n * Get an R2 object (content or metadata only).\n *\n * If the `cf-metadata-only` header is set to \"true\", only metadata is returned.\n * Otherwise, the full object content is returned.\n *\n * @see https://developers.cloudflare.com/api/resources/r2/subresources/buckets/subresources/objects/methods/get/\n */\nexport async function getR2Object(\n\tc: AppContext,\n\tbucket_name: string,\n\tobject_key: string,\n\theaders: GetObjectHeaders\n) {\n\tconst metadataOnly = headers[\"cf-metadata-only\"] === \"true\";\n\n\t// Try local first\n\tconst r2 = getR2Binding(c.env, bucket_name);\n\tif (r2) {\n\t\tif (metadataOnly) {\n\t\t\tconst obj = await r2.head(object_key);\n\t\t\tif (obj === null) {\n\t\t\t\treturn errorResponse(\n\t\t\t\t\t404,\n\t\t\t\t\tR2_ERROR_OBJECT_NOT_FOUND,\n\t\t\t\t\t\"head: 'object not found'\"\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn c.json(\n\t\t\t\twrapResponse({\n\t\t\t\t\tkey: obj.key,\n\t\t\t\t\tetag: obj.etag,\n\t\t\t\t\tlast_modified: obj.uploaded.toISOString(),\n\t\t\t\t\tsize: obj.size,\n\t\t\t\t\thttp_metadata: obj.httpMetadata\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tcontentType: obj.httpMetadata.contentType,\n\t\t\t\t\t\t\t\tcontentLanguage: obj.httpMetadata.contentLanguage,\n\t\t\t\t\t\t\t\tcontentDisposition: obj.httpMetadata.contentDisposition,\n\t\t\t\t\t\t\t\tcontentEncoding: obj.httpMetadata.contentEncoding,\n\t\t\t\t\t\t\t\tcacheControl: obj.httpMetadata.cacheControl,\n\t\t\t\t\t\t\t\tcacheExpiry: obj.httpMetadata.cacheExpiry?.toISOString(),\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: undefined,\n\t\t\t\t\tcustom_metadata: obj.customMetadata,\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\n\t\tconst obj = await r2.get(object_key);\n\t\tif (obj === null) {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tR2_ERROR_OBJECT_NOT_FOUND,\n\t\t\t\t\"get: 'object not found'\"\n\t\t\t);\n\t\t}\n\n\t\tconst responseHeaders = new Headers();\n\t\tif (obj.httpMetadata?.contentType) {\n\t\t\tresponseHeaders.set(\"Content-Type\", obj.httpMetadata.contentType);\n\t\t}\n\t\tresponseHeaders.set(\"Content-Length\", String(obj.size));\n\t\tresponseHeaders.set(\"ETag\", obj.etag);\n\t\tresponseHeaders.set(\"Last-Modified\", obj.uploaded.toUTCString());\n\n\t\t// Include custom metadata as headers\n\t\tif (obj.customMetadata) {\n\t\t\tfor (const [key, value] of Object.entries(obj.customMetadata)) {\n\t\t\t\tresponseHeaders.set(`X-R2-Custom-Metadata-${key}`, value);\n\t\t\t}\n\t\t}\n\n\t\treturn new Response(obj.body, { headers: responseHeaders });\n\t}\n\n\tconst ownerMiniflare = await findR2BucketOwner(c, bucket_name);\n\tif (ownerMiniflare) {\n\t\tconst route = `/r2/buckets/${encodeURIComponent(\n\t\t\tbucket_name\n\t\t)}/objects/${encodeURIComponent(object_key)}`;\n\t\tconst response = await fetchFromPeer(ownerMiniflare, route, {\n\t\t\theaders: metadataOnly ? { \"cf-metadata-only\": \"true\" } : undefined,\n\t\t});\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tR2_ERROR_BUCKET_NOT_FOUND,\n\t\t\"get: 'bucket not found'\"\n\t);\n}\n\ntype PutObjectHeaders = NonNullable<\n\tz.output<typeof zR2BucketPutObjectData>[\"headers\"]\n>;\n\n/**\n * Put an object into an R2 bucket.\n *\n * Accepts:\n * - Body: Raw file content\n * - `Content-Type` header: File MIME type\n * - `cf-r2-custom-metadata` header: JSON-encoded custom metadata\n *\n * @see https://developers.cloudflare.com/api/resources/r2/subresources/buckets/subresources/objects/methods/put/\n */\nexport async function putR2Object(\n\tc: AppContext,\n\tbucket_name: string,\n\tobject_key: string,\n\theaders: PutObjectHeaders\n) {\n\t// Try local first\n\tconst r2 = getR2Binding(c.env, bucket_name);\n\tif (r2) {\n\t\tconst body = await c.req.arrayBuffer();\n\t\tconst contentType = headers[\"content-type\"];\n\t\tconst customMetadataHeader = headers[\"cf-r2-custom-metadata\"];\n\n\t\tconst options: R2PutOptions = {};\n\t\tif (contentType) {\n\t\t\toptions.httpMetadata = { contentType };\n\t\t}\n\t\tif (customMetadataHeader) {\n\t\t\ttry {\n\t\t\t\toptions.customMetadata = JSON.parse(customMetadataHeader);\n\t\t\t} catch {\n\t\t\t\treturn errorResponse(400, 10001, \"Invalid custom metadata JSON\");\n\t\t\t}\n\t\t}\n\n\t\tconst obj = await r2.put(object_key, body, options);\n\t\treturn c.json(\n\t\t\twrapResponse({\n\t\t\t\tkey: obj.key,\n\t\t\t\tetag: obj.etag,\n\t\t\t\tsize: obj.size,\n\t\t\t\tversion: obj.version,\n\t\t\t})\n\t\t);\n\t}\n\n\tconst ownerMiniflare = await findR2BucketOwner(c, bucket_name);\n\tif (ownerMiniflare) {\n\t\tconst body = await c.req.arrayBuffer();\n\t\tconst fetchHeaders: Record<string, string> = {};\n\t\tif (headers[\"content-type\"]) {\n\t\t\tfetchHeaders[\"content-type\"] = headers[\"content-type\"];\n\t\t}\n\t\tif (headers[\"cf-r2-custom-metadata\"]) {\n\t\t\tfetchHeaders[\"cf-r2-custom-metadata\"] = headers[\"cf-r2-custom-metadata\"];\n\t\t}\n\t\tconst path = `/r2/buckets/${encodeURIComponent(\n\t\t\tbucket_name\n\t\t)}/objects/${encodeURIComponent(object_key)}`;\n\t\tconst response = await fetchFromPeer(ownerMiniflare, path, {\n\t\t\tmethod: \"PUT\",\n\t\t\theaders: fetchHeaders,\n\t\t\tbody,\n\t\t});\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tR2_ERROR_BUCKET_NOT_FOUND,\n\t\t\"put: 'bucket not found'\"\n\t);\n}\n\ntype DeleteObjectsBody = z.output<typeof zR2BucketDeleteObjectsData>[\"body\"];\n\n/**\n * Delete one or more objects from an R2 bucket.\n *\n * Accepts an array of object keys to delete.\n *\n * @see https://developers.cloudflare.com/api/resources/r2/subresources/buckets/subresources/objects/methods/delete/\n */\nexport async function deleteR2Objects(\n\tc: AppContext,\n\tbucket_name: string,\n\tbody: DeleteObjectsBody\n): Promise<Response> {\n\tconst keys = body;\n\tif (keys.length === 0) {\n\t\treturn errorResponse(\n\t\t\t400,\n\t\t\t10001,\n\t\t\t\"Request body must be a non-empty array of keys\"\n\t\t);\n\t}\n\n\t// Try local first\n\tconst r2 = getR2Binding(c.env, bucket_name);\n\tif (r2) {\n\t\tawait r2.delete(keys);\n\t\treturn c.json(wrapResponse(keys.map((key) => ({ key }))));\n\t}\n\n\tconst ownerMiniflare = await findR2BucketOwner(c, bucket_name);\n\tif (ownerMiniflare) {\n\t\tconst path = `/r2/buckets/${encodeURIComponent(bucket_name)}/objects`;\n\t\tconst response = await fetchFromPeer(ownerMiniflare, path, {\n\t\t\tmethod: \"DELETE\",\n\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\tbody: JSON.stringify(keys),\n\t\t});\n\t\tif (response) return response;\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tR2_ERROR_BUCKET_NOT_FOUND,\n\t\t\"delete: 'bucket not found'\"\n\t);\n}\n", "import {\n\taggregateListResults,\n\tfetchFromPeer,\n\tgetPeerUrlsIfAggregating,\n} from \"../aggregation\";\nimport { errorResponse, wrapResponse } from \"../common\";\nimport type { AppContext } from \"../common\";\nimport type { Env } from \"../explorer.worker\";\nimport type {\n\tWorkflowsChangeInstanceStatusData,\n\tWorkflowsWorkflow,\n} from \"../generated\";\nimport type { zWorkflowsListInstancesData } from \"../generated/zod.gen\";\nimport type {\n\tRestartFromStep,\n\tWorkflowInstanceTerminateOptions,\n} from \"@cloudflare/workflows-shared/src/binding\";\nimport type { z } from \"zod\";\n\n// ============================================================================\n// Error Codes\n// ============================================================================\n\nconst WORKFLOW_ERROR_NOT_FOUND = 10501;\n\n// ============================================================================\n// Types\n// ============================================================================\n\ninterface DirectoryEntry {\n\tname: string;\n\ttype: \"file\" | \"directory\";\n\tbirthtimeMs: number;\n}\n\n/** Methods on a WorkflowInstance handle (from workflow.get()). */\ninterface WorkflowHandle {\n\tpause(): Promise<void>;\n\tresume(): Promise<void>;\n\trestart(options?: { from?: RestartFromStep }): Promise<void>;\n\tterminate(options?: WorkflowInstanceTerminateOptions): Promise<void>;\n\tsendEvent(args: { payload: unknown; type: string }): Promise<void>;\n\tstatus(): Promise<{ status: string; output?: unknown; error?: unknown }>;\n}\n\n/** RPC methods exposed by the Engine Durable Object. */\ninterface EngineStub {\n\tgetInstanceMetadata(): Promise<{\n\t\tinstanceId: string;\n\t\tstatus: number;\n\t\tcreatedOn: string;\n\t}>;\n\treadDetailedLogs(): Promise<\n\t\tArray<{\n\t\t\tid: number;\n\t\t\ttimestamp: string;\n\t\t\tevent: number;\n\t\t\tgroup: string | null;\n\t\t\ttarget: string | null;\n\t\t\tmetadata: Record<string, unknown>;\n\t\t}>\n\t>;\n}\n\n// InstanceEvent enum values\nconst EVT = {\n\tWORKFLOW_QUEUED: 0,\n\tWORKFLOW_START: 1,\n\tWORKFLOW_SUCCESS: 2,\n\tWORKFLOW_FAILURE: 3,\n\tWORKFLOW_TERMINATED: 4,\n\tSTEP_START: 5,\n\tSTEP_SUCCESS: 6,\n\tSTEP_FAILURE: 7,\n\tSLEEP_START: 8,\n\tSLEEP_COMPLETE: 9,\n\tATTEMPT_START: 10,\n\tATTEMPT_SUCCESS: 11,\n\tATTEMPT_FAILURE: 12,\n\tWAIT_START: 14,\n\tWAIT_COMPLETE: 15,\n\tWAIT_TIMED_OUT: 16,\n} as const;\n\n// ---------------------------------------------------------------------------\n// Status counts cache \u2014 avoids resolving ALL Engine DOs on every page load.\n// Invalidated when file count changes or after 30s TTL.\n// ---------------------------------------------------------------------------\n\ninterface StatusCountsCache {\n\tcounts: Record<string, number>;\n\tfileCount: number;\n\ttimestamp: number;\n}\n\nconst STATUS_COUNTS_TTL_MS = 30_000;\nconst statusCountsCache = new Map<string, StatusCountsCache>();\n\nasync function getStatusCounts(\n\tworkflowName: string,\n\tsqliteFiles: DirectoryEntry[],\n\tengineNamespace: DurableObjectNamespace | null\n): Promise<Record<string, number>> {\n\tconst cached = statusCountsCache.get(workflowName);\n\tconst now = Date.now();\n\n\t// Return cached if file count matches and TTL hasn't expired\n\tif (\n\t\tcached &&\n\t\tcached.fileCount === sqliteFiles.length &&\n\t\tnow - cached.timestamp < STATUS_COUNTS_TTL_MS\n\t) {\n\t\treturn cached.counts;\n\t}\n\n\t// Resolve all statuses\n\tconst counts: Record<string, number> = {};\n\tif (engineNamespace) {\n\t\tconst results = await Promise.allSettled(\n\t\t\tsqliteFiles.map(async (entry) => {\n\t\t\t\tconst hexId = entry.name.replace(/\\.sqlite$/, \"\");\n\t\t\t\tconst stubId = engineNamespace.idFromString(hexId);\n\t\t\t\tconst stub = engineNamespace.get(stubId) as unknown as EngineStub;\n\t\t\t\tconst metadata = await stub.getInstanceMetadata();\n\t\t\t\treturn STATUS_NAMES[metadata.status] ?? \"unknown\";\n\t\t\t})\n\t\t);\n\t\tfor (const result of results) {\n\t\t\tconst statusName =\n\t\t\t\tresult.status === \"fulfilled\" ? result.value : \"unknown\";\n\t\t\tcounts[statusName] = (counts[statusName] ?? 0) + 1;\n\t\t}\n\t}\n\n\tstatusCountsCache.set(workflowName, {\n\t\tcounts,\n\t\tfileCount: sqliteFiles.length,\n\t\ttimestamp: now,\n\t});\n\n\treturn counts;\n}\n\nconst STATUS_NAMES: Record<number, string> = {\n\t0: \"queued\",\n\t1: \"running\",\n\t2: \"paused\",\n\t3: \"errored\",\n\t4: \"terminated\",\n\t5: \"complete\",\n\t6: \"waitingForPause\",\n\t7: \"waiting\",\n};\n\n// ============================================================================\n// Helper Functions\n// ============================================================================\n\n/**\n * Get the Engine DO namespace for a workflow.\n * Returns the raw DurableObjectNamespace, allowing direct access via\n * idFromString(). Same pattern as getDOBinding() in do.ts.\n */\nfunction getEngineNamespace(\n\tenv: Env,\n\tworkflowName: string\n): DurableObjectNamespace | null {\n\tconst info = env.LOCAL_EXPLORER_BINDING_MAP.workflows[workflowName];\n\tif (!info) {\n\t\treturn null;\n\t}\n\treturn env[info.engineBinding] as DurableObjectNamespace;\n}\n\n/**\n * Get the Workflow proxy binding for a workflow.\n * Used for operations that go through the standard Workflow interface (create).\n */\nfunction getWorkflowBinding(env: Env, workflowName: string): Workflow | null {\n\tconst info = env.LOCAL_EXPLORER_BINDING_MAP.workflows[workflowName];\n\tif (!info) {\n\t\treturn null;\n\t}\n\treturn env[info.binding] as Workflow;\n}\n\nfunction getLocalWorkflows(env: Env): WorkflowsWorkflow[] {\n\tconst workflowBindingMap = env.LOCAL_EXPLORER_BINDING_MAP.workflows;\n\treturn Object.values(workflowBindingMap).map((info) => ({\n\t\tname: info.name,\n\t\tclass_name: info.className,\n\t\tscript_name: info.scriptName,\n\t}));\n}\n\n// Cache workflow-to-peer URL mapping (avoids N+1 peer requests)\nconst workflowOwnerCache = new Map<\n\tstring,\n\t{ url: string | null; timestamp: number }\n>();\nconst OWNER_CACHE_TTL_MS = 30_000;\n\nasync function findWorkflowOwner(\n\tc: AppContext,\n\tworkflowName: string\n): Promise<string | null> {\n\tconst cached = workflowOwnerCache.get(workflowName);\n\tif (cached && Date.now() - cached.timestamp < OWNER_CACHE_TTL_MS) {\n\t\treturn cached.url;\n\t}\n\n\tconst peerUrls = await getPeerUrlsIfAggregating(c);\n\tif (peerUrls.length === 0) {\n\t\treturn null;\n\t}\n\n\tconst responses = await Promise.all(\n\t\tpeerUrls.map(async (url) => {\n\t\t\tconst response = await fetchFromPeer(url, \"/workflows\");\n\t\t\tif (!response?.ok) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tconst data = (await response.json()) as {\n\t\t\t\tresult?: Array<{ name: string }>;\n\t\t\t};\n\t\t\tconst found = data.result?.some((wf) => wf.name === workflowName);\n\t\t\treturn found ? url : null;\n\t\t})\n\t);\n\n\tconst owner = responses.find((url) => url !== null) ?? null;\n\tworkflowOwnerCache.set(workflowName, { url: owner, timestamp: Date.now() });\n\treturn owner;\n}\n\n// ============================================================================\n// API Handlers\n// ============================================================================\n\n/**\n * Lists all workflows available across all connected instances.\n */\nexport async function listWorkflows(c: AppContext): Promise<Response> {\n\tconst localWorkflows = getLocalWorkflows(c.env);\n\tconst aggregatedWorkflows = await aggregateListResults(\n\t\tc,\n\t\tlocalWorkflows,\n\t\t\"/workflows\"\n\t);\n\n\t// Deduplicate by name \u2014 first occurrence wins (local takes priority)\n\tconst seen = new Set<string>();\n\tconst allWorkflows = aggregatedWorkflows.filter((wf) => {\n\t\tif (seen.has(wf.name)) {\n\t\t\treturn false;\n\t\t}\n\t\tseen.add(wf.name);\n\t\treturn true;\n\t});\n\n\treturn c.json({\n\t\t...wrapResponse(allWorkflows),\n\t\tresult_info: { count: allWorkflows.length },\n\t});\n}\n\n/**\n * Get details of a specific workflow, including instance status counts.\n */\nexport async function getWorkflowDetails(\n\tc: AppContext,\n\tworkflowName: string\n): Promise<Response> {\n\tconst info = c.env.LOCAL_EXPLORER_BINDING_MAP.workflows[workflowName];\n\n\tif (!info) {\n\t\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\t\tif (ownerMiniflare) {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\townerMiniflare,\n\t\t\t\t`/workflows/${encodeURIComponent(workflowName)}`\n\t\t\t);\n\t\t\tif (response) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\t// Get instance files from loopback for status counts\n\tlet statusCounts: Record<string, number> = {\n\t\tcomplete: 0,\n\t\terrored: 0,\n\t\tpaused: 0,\n\t\tqueued: 0,\n\t\trunning: 0,\n\t\tterminated: 0,\n\t\twaiting: 0,\n\t\twaitingForPause: 0,\n\t};\n\n\tif (c.env.MINIFLARE_LOOPBACK !== undefined) {\n\t\tconst encodedName = encodeURIComponent(workflowName);\n\t\tconst loopbackUrl = `http://localhost/core/workflow-storage/${encodedName}`;\n\t\tconst response = await c.env.MINIFLARE_LOOPBACK.fetch(loopbackUrl);\n\n\t\tif (response.ok) {\n\t\t\tconst files = (await response.json()) as DirectoryEntry[];\n\t\t\tconst sqliteFiles = files.filter(\n\t\t\t\t(entry) =>\n\t\t\t\t\tentry.type === \"file\" &&\n\t\t\t\t\tentry.name.endsWith(\".sqlite\") &&\n\t\t\t\t\tentry.name !== \"metadata.sqlite\"\n\t\t\t);\n\n\t\t\tconst engineNamespace = getEngineNamespace(c.env, workflowName);\n\t\t\tconst counts = await getStatusCounts(\n\t\t\t\tworkflowName,\n\t\t\t\tsqliteFiles,\n\t\t\t\tengineNamespace\n\t\t\t);\n\t\t\tstatusCounts = { ...statusCounts, ...counts };\n\t\t}\n\t}\n\n\treturn c.json(\n\t\twrapResponse({\n\t\t\tname: info.name,\n\t\t\tclass_name: info.className,\n\t\t\tscript_name: info.scriptName,\n\t\t\tinstances: statusCounts,\n\t\t})\n\t);\n}\n\n/**\n * Delete all instances of a workflow by removing all .sqlite files\n * from the persistence directory via the loopback.\n */\nexport async function deleteWorkflow(\n\tc: AppContext,\n\tworkflowName: string\n): Promise<Response> {\n\tconst info = c.env.LOCAL_EXPLORER_BINDING_MAP.workflows[workflowName];\n\n\tif (!info) {\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\tif (c.env.MINIFLARE_LOOPBACK === undefined) {\n\t\treturn errorResponse(500, 10001, \"Loopback service not available\");\n\t}\n\n\tconst encodedName = encodeURIComponent(workflowName);\n\tconst loopbackUrl = `http://localhost/core/workflow-storage/${encodedName}`;\n\n\tawait c.env.MINIFLARE_LOOPBACK.fetch(loopbackUrl, { method: \"DELETE\" });\n\n\tstatusCountsCache.delete(workflowName);\n\n\treturn c.json(wrapResponse({ status: \"ok\", success: true }));\n}\n\ntype ListInstancesQuery = NonNullable<\n\tz.output<typeof zWorkflowsListInstancesData>[\"query\"]\n>;\n\n/**\n * Lists instances of a workflow with server-side pagination.\n *\n * Sorting uses birthtimeMs from the filesystem (cheap, no DO wakeup).\n * Only the current page's instances are resolved via Engine DO for metadata.\n */\nexport async function listWorkflowInstances(\n\tc: AppContext,\n\tworkflowName: string,\n\tquery: ListInstancesQuery\n): Promise<Response> {\n\tconst { page = 1, per_page: perPage = 25, status: statusFilter } = query;\n\n\tconst workflowExists =\n\t\tc.env.LOCAL_EXPLORER_BINDING_MAP.workflows[workflowName];\n\n\tif (workflowExists) {\n\t\treturn executeListWorkflowInstances(c, workflowName, {\n\t\t\tpage,\n\t\t\tperPage,\n\t\t\tstatusFilter,\n\t\t});\n\t}\n\n\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\tif (ownerMiniflare) {\n\t\tconst params = new URLSearchParams();\n\t\tparams.set(\"page\", String(page));\n\t\tparams.set(\"per_page\", String(perPage));\n\t\tif (statusFilter) {\n\t\t\tparams.set(\"status\", statusFilter);\n\t\t}\n\t\tconst peerPath = `/workflows/${encodeURIComponent(workflowName)}/instances?${params.toString()}`;\n\t\tconst response = await fetchFromPeer(ownerMiniflare, peerPath);\n\t\tif (response) {\n\t\t\treturn response;\n\t\t}\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t`Workflow '${workflowName}' not found.`\n\t);\n}\n\n/**\n * List workflow instances with server-side pagination.\n *\n * 1. Loopback returns all .sqlite files with birthtimeMs (cheap fs.stat)\n * 2. Sort by birthtimeMs descending (newest first) \u2014 no DO wakeup needed\n * 3. Slice to the requested page\n * 4. Resolve metadata (ID, status, createdOn) only for that page via Engine DO\n */\nasync function executeListWorkflowInstances(\n\tc: AppContext,\n\tworkflowName: string,\n\toptions: { page: number; perPage: number; statusFilter?: string }\n): Promise<Response> {\n\tconst { page, perPage, statusFilter } = options;\n\n\tif (c.env.MINIFLARE_LOOPBACK === undefined) {\n\t\treturn errorResponse(500, 10001, \"Loopback service not available\");\n\t}\n\n\tconst encodedName = encodeURIComponent(workflowName);\n\tconst loopbackUrl = `http://localhost/core/workflow-storage/${encodedName}`;\n\tconst response = await c.env.MINIFLARE_LOOPBACK.fetch(loopbackUrl);\n\n\tif (!response.ok) {\n\t\tif (response.status === 404) {\n\t\t\treturn c.json({\n\t\t\t\t...wrapResponse([]),\n\t\t\t\tresult_info: {\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tper_page: perPage,\n\t\t\t\t\ttotal_count: 0,\n\t\t\t\t\ttotal_pages: 0,\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t\treturn errorResponse(\n\t\t\t500,\n\t\t\t10001,\n\t\t\t`Failed to read workflow storage: ${response.statusText}`\n\t\t);\n\t}\n\n\tconst files = (await response.json()) as DirectoryEntry[];\n\n\t// Filter to .sqlite files, sort by file creation time (newest first)\n\tconst sqliteFiles = files\n\t\t.filter(\n\t\t\t(entry) =>\n\t\t\t\tentry.type === \"file\" &&\n\t\t\t\tentry.name.endsWith(\".sqlite\") &&\n\t\t\t\tentry.name !== \"metadata.sqlite\"\n\t\t)\n\t\t.sort((a, b) => b.birthtimeMs - a.birthtimeMs);\n\n\tconst engineNamespace = getEngineNamespace(c.env, workflowName);\n\n\t// Get cached status counts (resolves all DOs only on first load or after TTL/file count change)\n\tconst statusCounts = await getStatusCounts(\n\t\tworkflowName,\n\t\tsqliteFiles,\n\t\tengineNamespace\n\t);\n\n\t// Helper to resolve a single file's metadata\n\tasync function resolveInstance(entry: DirectoryEntry) {\n\t\tconst hexId = entry.name.replace(/\\.sqlite$/, \"\");\n\t\tif (!engineNamespace) {\n\t\t\treturn {\n\t\t\t\tid: hexId,\n\t\t\t\tstatus: undefined as string | undefined,\n\t\t\t\tcreated_on: undefined as string | undefined,\n\t\t\t};\n\t\t}\n\t\ttry {\n\t\t\tconst stubId = engineNamespace.idFromString(hexId);\n\t\t\tconst stub = engineNamespace.get(stubId) as unknown as EngineStub;\n\t\t\tconst metadata = await stub.getInstanceMetadata();\n\t\t\treturn {\n\t\t\t\tid: metadata.instanceId || hexId,\n\t\t\t\tstatus:\n\t\t\t\t\t(STATUS_NAMES[metadata.status] as string | undefined) ?? \"unknown\",\n\t\t\t\tcreated_on: metadata.createdOn || undefined,\n\t\t\t};\n\t\t} catch {\n\t\t\treturn { id: hexId, status: undefined, created_on: undefined };\n\t\t}\n\t}\n\n\tlet instances: Array<{ id: string; status?: string; created_on?: string }>;\n\tlet totalCount: number;\n\n\tif (statusFilter) {\n\t\t// Status filter requires resolving ALL instances to filter server-side\n\t\tconst allResolved = await Promise.all(sqliteFiles.map(resolveInstance));\n\t\tconst filtered = allResolved.filter((inst) => inst.status === statusFilter);\n\t\ttotalCount = filtered.length;\n\t\tconst offset = (page - 1) * perPage;\n\t\tinstances = filtered.slice(offset, offset + perPage);\n\t} else {\n\t\t// No filter \u2014 only resolve the current page (efficient)\n\t\ttotalCount = sqliteFiles.length;\n\t\tconst offset = (page - 1) * perPage;\n\t\tconst pageFiles = sqliteFiles.slice(offset, offset + perPage);\n\t\tinstances = await Promise.all(pageFiles.map(resolveInstance));\n\t}\n\n\tconst totalPages = Math.max(1, Math.ceil(totalCount / perPage));\n\n\t// Clean undefined fields from response\n\tconst cleanInstances = instances.map(({ id, status, created_on }) => ({\n\t\tid,\n\t\t...(status !== undefined ? { status } : {}),\n\t\t...(created_on ? { created_on } : {}),\n\t}));\n\n\treturn c.json({\n\t\t...wrapResponse(cleanInstances),\n\t\tresult_info: {\n\t\t\tpage,\n\t\t\tper_page: perPage,\n\t\t\ttotal_count: totalCount,\n\t\t\ttotal_pages: totalPages,\n\t\t\tstatus_counts: statusCounts,\n\t\t},\n\t});\n}\n\n/**\n * Get detailed status of a specific workflow instance.\n *\n * The instanceId is the Engine DO hex ID. Uses the Engine DO namespace\n * with idFromString() to address the existing DO, then calls\n * getInstanceMetadata() and readLogs() via RPC.\n *\n * Safe because the Engine DO has no alarms and its constructor is\n * idempotent (CREATE TABLE IF NOT EXISTS).\n */\nexport async function getWorkflowInstanceDetails(\n\tc: AppContext,\n\tworkflowName: string,\n\tinstanceId: string\n): Promise<Response> {\n\tconst engineNamespace = getEngineNamespace(c.env, workflowName);\n\n\tif (engineNamespace) {\n\t\treturn executeGetInstanceDetails(engineNamespace, instanceId, c);\n\t}\n\n\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\tif (ownerMiniflare) {\n\t\tconst response = await fetchFromPeer(\n\t\t\townerMiniflare,\n\t\t\t`/workflows/${encodeURIComponent(workflowName)}/instances/${encodeURIComponent(instanceId)}`\n\t\t);\n\t\tif (response) {\n\t\t\treturn response;\n\t\t}\n\t}\n\n\treturn errorResponse(\n\t\t404,\n\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t`Workflow '${workflowName}' not found.`\n\t);\n}\n\n/**\n * Get instance details via the Engine DO directly.\n *\n * Accepts either a real instance ID or a hex DO ID:\n * - Real instance ID (e.g. \"my-instance\"): uses idFromName() \u2014 same mapping\n *   the workflow engine used to create the DO.\n * - Hex DO ID (64-char hex string): uses idFromString() for direct access.\n */\nasync function executeGetInstanceDetails(\n\tengineNamespace: DurableObjectNamespace,\n\tinstanceId: string,\n\tc: AppContext\n): Promise<Response> {\n\ttry {\n\t\tconst isHexId = /^[0-9a-f]{64}$/i.test(instanceId);\n\t\tconst stubId = isHexId\n\t\t\t? engineNamespace.idFromString(instanceId)\n\t\t\t: engineNamespace.idFromName(instanceId);\n\t\tconst stub = engineNamespace.get(stubId) as unknown as EngineStub;\n\n\t\tconst metadata = await stub.getInstanceMetadata();\n\n\t\tif (!metadata.instanceId) {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t\t`Workflow instance '${instanceId}' not found.`\n\t\t\t);\n\t\t}\n\n\t\tconst logs = await stub.readDetailedLogs();\n\n\t\t// Extract workflow-level events\n\t\tconst queuedLog = logs.find((l) => l.event === EVT.WORKFLOW_QUEUED);\n\t\tconst startLog = logs.find((l) => l.event === EVT.WORKFLOW_START);\n\t\tconst successLog = logs.find((l) => l.event === EVT.WORKFLOW_SUCCESS);\n\t\tconst failureLog = logs.find((l) => l.event === EVT.WORKFLOW_FAILURE);\n\t\tconst terminatedLog = logs.find((l) => l.event === EVT.WORKFLOW_TERMINATED);\n\n\t\tconst endLog = successLog ?? failureLog ?? terminatedLog;\n\n\t\t// Reconstruct steps grouped by groupKey\n\t\tconst stepGroups = new Map<string, typeof logs>();\n\t\tfor (const log of logs) {\n\t\t\tif (log.group) {\n\t\t\t\tconst group = stepGroups.get(log.group) ?? [];\n\t\t\t\tgroup.push(log);\n\t\t\t\tstepGroups.set(log.group, group);\n\t\t\t}\n\t\t}\n\n\t\tconst steps: Array<Record<string, unknown>> = [];\n\t\tfor (const [, groupLogs] of stepGroups) {\n\t\t\tconst firstLog = groupLogs[0];\n\t\t\tconst name = firstLog.target ?? \"\";\n\n\t\t\tconst stepStart = groupLogs.find((l) => l.event === EVT.STEP_START);\n\t\t\tconst stepSuccess = groupLogs.find((l) => l.event === EVT.STEP_SUCCESS);\n\t\t\tconst stepFailure = groupLogs.find((l) => l.event === EVT.STEP_FAILURE);\n\t\t\tconst sleepStart = groupLogs.find((l) => l.event === EVT.SLEEP_START);\n\t\t\tconst sleepComplete = groupLogs.find(\n\t\t\t\t(l) => l.event === EVT.SLEEP_COMPLETE\n\t\t\t);\n\t\t\tconst waitStart = groupLogs.find((l) => l.event === EVT.WAIT_START);\n\t\t\tconst waitComplete = groupLogs.find((l) => l.event === EVT.WAIT_COMPLETE);\n\t\t\tconst waitTimedOut = groupLogs.find(\n\t\t\t\t(l) => l.event === EVT.WAIT_TIMED_OUT\n\t\t\t);\n\n\t\t\tif (sleepStart) {\n\t\t\t\t// Sleep step\n\t\t\t\tsteps.push({\n\t\t\t\t\tname,\n\t\t\t\t\tstart: sleepStart.timestamp,\n\t\t\t\t\tend: sleepComplete?.timestamp ?? null,\n\t\t\t\t\tfinished: !!sleepComplete,\n\t\t\t\t\ttype: \"sleep\",\n\t\t\t\t\terror: null,\n\t\t\t\t});\n\t\t\t} else if (waitStart) {\n\t\t\t\t// WaitForEvent step\n\t\t\t\tconst waitEnd = waitComplete ?? waitTimedOut;\n\t\t\t\t// WAIT_TIMED_OUT metadata is { name, message } directly\n\t\t\t\tconst waitError = waitTimedOut?.metadata as\n\t\t\t\t\t| { name?: string; message?: string }\n\t\t\t\t\t| undefined;\n\t\t\t\t// WAIT_COMPLETE metadata is { timestamp, payload, type }\n\t\t\t\tconst waitMeta = waitComplete?.metadata as\n\t\t\t\t\t| { timestamp?: string; payload?: unknown; type?: string }\n\t\t\t\t\t| undefined;\n\t\t\t\tsteps.push({\n\t\t\t\t\tname,\n\t\t\t\t\tstart: waitStart.timestamp,\n\t\t\t\t\tend: waitEnd?.timestamp ?? null,\n\t\t\t\t\tfinished: !!waitEnd,\n\t\t\t\t\ttype: \"waitForEvent\",\n\t\t\t\t\terror: waitError\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tname: waitError.name ?? \"Error\",\n\t\t\t\t\t\t\t\tmessage: waitError.message ?? \"\",\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t\t\toutput: waitComplete\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\ttype: waitMeta?.type ?? \"\",\n\t\t\t\t\t\t\t\tpayload: waitMeta?.payload ?? {},\n\t\t\t\t\t\t\t\ttimestamp: waitMeta?.timestamp ?? null,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: null,\n\t\t\t\t});\n\t\t\t} else if (stepStart) {\n\t\t\t\t// Regular step (step.do) with attempts\n\t\t\t\tconst attempts: Array<Record<string, unknown>> = [];\n\t\t\t\tconst attemptStarts = groupLogs.filter(\n\t\t\t\t\t(l) => l.event === EVT.ATTEMPT_START\n\t\t\t\t);\n\t\t\t\tconst attemptSuccesses = groupLogs.filter(\n\t\t\t\t\t(l) => l.event === EVT.ATTEMPT_SUCCESS\n\t\t\t\t);\n\t\t\t\tconst attemptFailures = groupLogs.filter(\n\t\t\t\t\t(l) => l.event === EVT.ATTEMPT_FAILURE\n\t\t\t\t);\n\n\t\t\t\tfor (const aStart of attemptStarts) {\n\t\t\t\t\tconst attemptNum = (aStart.metadata as Record<string, unknown>)\n\t\t\t\t\t\t.attempt as number;\n\t\t\t\t\tconst aSuccess = attemptSuccesses.find(\n\t\t\t\t\t\t(l) =>\n\t\t\t\t\t\t\t(l.metadata as Record<string, unknown>).attempt === attemptNum\n\t\t\t\t\t);\n\t\t\t\t\tconst aFailure = attemptFailures.find(\n\t\t\t\t\t\t(l) =>\n\t\t\t\t\t\t\t(l.metadata as Record<string, unknown>).attempt === attemptNum\n\t\t\t\t\t);\n\t\t\t\t\tconst aEnd = aSuccess ?? aFailure;\n\n\t\t\t\t\tattempts.push({\n\t\t\t\t\t\tstart: aStart.timestamp,\n\t\t\t\t\t\tend: aEnd?.timestamp ?? null,\n\t\t\t\t\t\tsuccess: aSuccess ? true : aFailure ? false : null,\n\t\t\t\t\t\terror: aFailure\n\t\t\t\t\t\t\t? ((aFailure.metadata as Record<string, unknown>).error ?? null)\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tconst stepEnd = stepSuccess ?? stepFailure;\n\t\t\t\tsteps.push({\n\t\t\t\t\tname,\n\t\t\t\t\tstart: stepStart.timestamp,\n\t\t\t\t\tend: stepEnd?.timestamp ?? null,\n\t\t\t\t\tsuccess: stepSuccess ? true : stepFailure ? false : null,\n\t\t\t\t\ttype: \"step\",\n\t\t\t\t\toutput: stepSuccess?.metadata?.result ?? undefined,\n\t\t\t\t\tconfig: stepStart.metadata?.config ?? null,\n\t\t\t\t\tattempts,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn c.json(\n\t\t\twrapResponse({\n\t\t\t\tstatus: STATUS_NAMES[metadata.status] ?? \"unknown\",\n\t\t\t\tparams: queuedLog?.metadata?.params ?? null,\n\t\t\t\tqueued: queuedLog?.timestamp ?? null,\n\t\t\t\tstart: startLog?.timestamp ?? null,\n\t\t\t\tend: endLog?.timestamp ?? null,\n\t\t\t\toutput: successLog?.metadata?.result ?? null,\n\t\t\t\terror: failureLog\n\t\t\t\t\t? ((failureLog.metadata as Record<string, unknown>).error ?? null)\n\t\t\t\t\t: null,\n\t\t\t\tsteps,\n\t\t\t\tstep_count: steps.length,\n\t\t\t})\n\t\t);\n\t} catch (error) {\n\t\tconst message =\n\t\t\terror instanceof Error ? error.message : \"Instance not found\";\n\n\t\tif (\n\t\t\tmessage === \"instance.not_found\" ||\n\t\t\tmessage === \"Engine was never started\"\n\t\t) {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t\t`Workflow instance '${instanceId}' not found.`\n\t\t\t);\n\t\t}\n\n\t\treturn errorResponse(500, 10001, message);\n\t}\n}\n\n/**\n * Create a new workflow instance.\n *\n * Uses the Workflow proxy binding to call workflow.create(), which is\n * part of the standard Workflow interface. Accepts an optional instance\n * ID and optional params payload.\n */\nexport async function createWorkflowInstance(\n\tc: AppContext,\n\tworkflowName: string\n): Promise<Response> {\n\tconst workflow = getWorkflowBinding(c.env, workflowName);\n\n\tif (!workflow) {\n\t\t// Try peer\n\t\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\t\tif (ownerMiniflare) {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\townerMiniflare,\n\t\t\t\t`/workflows/${encodeURIComponent(workflowName)}/instances`,\n\t\t\t\t{\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\t\tbody: await c.req.text(),\n\t\t\t\t}\n\t\t\t);\n\t\t\tif (response) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\ttry {\n\t\tlet body: { id?: string; params?: unknown } = {};\n\t\ttry {\n\t\t\tbody = await c.req.json();\n\t\t} catch {\n\t\t\t// Empty body is fine \u2014 id and params are optional\n\t\t}\n\n\t\tconst result = await workflow.create({\n\t\t\tid: body.id,\n\t\t\tparams: body.params,\n\t\t});\n\n\t\tstatusCountsCache.delete(workflowName);\n\t\treturn c.json(wrapResponse({ id: result.id }));\n\t} catch (error) {\n\t\tconst message =\n\t\t\terror instanceof Error ? error.message : \"Failed to create instance\";\n\t\treturn errorResponse(500, 10001, message);\n\t}\n}\n\n/**\n * Change the status of a workflow instance (pause, resume, restart, terminate).\n *\n * Uses the Workflow proxy binding to call the corresponding method on the\n * WorkflowHandle, which is part of the standard Workflow interface.\n */\nexport async function changeWorkflowInstanceStatus(\n\tc: AppContext,\n\tworkflowName: string,\n\tinstanceId: string,\n\tbody: WorkflowsChangeInstanceStatusData[\"body\"]\n): Promise<Response> {\n\tconst workflow = getWorkflowBinding(c.env, workflowName);\n\n\tif (!workflow) {\n\t\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\t\tif (ownerMiniflare) {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\townerMiniflare,\n\t\t\t\t`/workflows/${encodeURIComponent(workflowName)}/instances/${encodeURIComponent(instanceId)}/status`,\n\t\t\t\t{\n\t\t\t\t\tmethod: \"PATCH\",\n\t\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\t}\n\t\t\t);\n\t\t\tif (response) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\ttry {\n\t\tconst { action } = body;\n\n\t\tif (![\"pause\", \"resume\", \"restart\", \"terminate\"].includes(action)) {\n\t\t\treturn errorResponse(\n\t\t\t\t400,\n\t\t\t\t10001,\n\t\t\t\t`Invalid action '${action}'. Must be one of: pause, resume, restart, terminate.`\n\t\t\t);\n\t\t}\n\n\t\tif (body.rollback !== undefined && action !== \"terminate\") {\n\t\t\treturn errorResponse(\n\t\t\t\t400,\n\t\t\t\t10001,\n\t\t\t\t\"'rollback' is only valid when terminating.\"\n\t\t\t);\n\t\t}\n\n\t\tconst handle = await workflow.get(instanceId);\n\n\t\tswitch (action) {\n\t\t\tcase \"pause\":\n\t\t\t\tawait handle.pause();\n\t\t\t\tbreak;\n\t\t\tcase \"resume\":\n\t\t\t\tawait handle.resume();\n\t\t\t\tbreak;\n\t\t\tcase \"restart\": {\n\t\t\t\tif (body.from && !body.from.name) {\n\t\t\t\t\treturn errorResponse(\n\t\t\t\t\t\t400,\n\t\t\t\t\t\t10001,\n\t\t\t\t\t\t\"'from.name' is required when restarting from a specific step.\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tconst opts = body.from ? { from: body.from } : undefined;\n\t\t\t\t// TODO(vaish): remove cast once @cloudflare/workers-types ships restart options\n\t\t\t\tawait (handle as unknown as WorkflowHandle).restart(opts);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"terminate\":\n\t\t\t\t// TODO(vaish): remove cast once @cloudflare/workers-types ships terminate options\n\t\t\t\tawait (handle as unknown as WorkflowHandle).terminate(\n\t\t\t\t\tbody.rollback === true ? { rollback: true } : undefined\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t}\n\n\t\tstatusCountsCache.delete(workflowName);\n\t\treturn c.json(wrapResponse({ success: true }));\n\t} catch (error) {\n\t\tconst message =\n\t\t\terror instanceof Error ? error.message : \"Failed to change status\";\n\n\t\tif (message === \"instance.not_found\") {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t\t`Workflow instance '${instanceId}' not found.`\n\t\t\t);\n\t\t}\n\n\t\treturn errorResponse(500, 10001, message);\n\t}\n}\n\n/**\n * Delete a workflow instance by removing its .sqlite persistence files.\n *\n * Converts the instance ID to a hex DO ID via idFromName(), then calls the\n * loopback to delete the .sqlite (and -shm/-wal) files from disk.\n */\nexport async function deleteWorkflowInstance(\n\tc: AppContext,\n\tworkflowName: string,\n\tinstanceId: string\n): Promise<Response> {\n\tconst engineNamespace = getEngineNamespace(c.env, workflowName);\n\n\tif (!engineNamespace) {\n\t\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\t\tif (ownerMiniflare) {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\townerMiniflare,\n\t\t\t\t`/workflows/${encodeURIComponent(workflowName)}/instances/${encodeURIComponent(instanceId)}`,\n\t\t\t\t{ method: \"DELETE\" }\n\t\t\t);\n\t\t\tif (response) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\tif (c.env.MINIFLARE_LOOPBACK === undefined) {\n\t\treturn errorResponse(500, 10001, \"Loopback service not available\");\n\t}\n\n\t// Convert instance ID to hex DO ID.\n\t// If it's already a 64-char hex string, use it directly.\n\t// Otherwise, use idFromName() which is how the engine created the DO.\n\tconst isHexId = /^[0-9a-f]{64}$/i.test(instanceId);\n\tconst hexId = isHexId\n\t\t? instanceId\n\t\t: engineNamespace.idFromName(instanceId).toString();\n\n\tconst encodedName = encodeURIComponent(workflowName);\n\tconst encodedHexId = encodeURIComponent(hexId);\n\tconst loopbackUrl = `http://localhost/core/workflow-storage/${encodedName}/${encodedHexId}`;\n\n\tconst response = await c.env.MINIFLARE_LOOPBACK.fetch(loopbackUrl, {\n\t\tmethod: \"DELETE\",\n\t});\n\n\tif (!response.ok) {\n\t\tif (response.status === 404) {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t\t`Workflow instance '${instanceId}' not found.`\n\t\t\t);\n\t\t}\n\t\treturn errorResponse(500, 10001, \"Failed to delete instance\");\n\t}\n\n\tstatusCountsCache.delete(workflowName);\n\treturn c.json(wrapResponse({ success: true }));\n}\n\n/**\n * Send an event to a workflow instance.\n *\n * Uses the Workflow proxy binding to call handle.sendEvent({ type, payload }).\n */\nexport async function sendWorkflowInstanceEvent(\n\tc: AppContext,\n\tworkflowName: string,\n\tinstanceId: string,\n\teventType: string\n): Promise<Response> {\n\tconst workflow = getWorkflowBinding(c.env, workflowName);\n\n\tif (!workflow) {\n\t\tconst ownerMiniflare = await findWorkflowOwner(c, workflowName);\n\t\tif (ownerMiniflare) {\n\t\t\tconst response = await fetchFromPeer(\n\t\t\t\townerMiniflare,\n\t\t\t\t`/workflows/${encodeURIComponent(workflowName)}/instances/${encodeURIComponent(instanceId)}/events/${encodeURIComponent(eventType)}`,\n\t\t\t\t{\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\theaders: { \"Content-Type\": \"application/json\" },\n\t\t\t\t\tbody: await c.req.text(),\n\t\t\t\t}\n\t\t\t);\n\t\t\tif (response) {\n\t\t\t\treturn response;\n\t\t\t}\n\t\t}\n\n\t\treturn errorResponse(\n\t\t\t404,\n\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t`Workflow '${workflowName}' not found.`\n\t\t);\n\t}\n\n\ttry {\n\t\tlet payload: unknown = undefined;\n\t\ttry {\n\t\t\tpayload = await c.req.json();\n\t\t} catch {\n\t\t\t// Empty body is fine \u2014 payload is optional\n\t\t}\n\n\t\tconst handle = (await workflow.get(\n\t\t\tinstanceId\n\t\t)) as unknown as WorkflowHandle;\n\t\tawait handle.sendEvent({ payload, type: eventType });\n\n\t\treturn c.json(wrapResponse({ success: true }));\n\t} catch (error) {\n\t\tconst message =\n\t\t\terror instanceof Error ? error.message : \"Failed to send event\";\n\n\t\tif (message === \"instance.not_found\") {\n\t\t\treturn errorResponse(\n\t\t\t\t404,\n\t\t\t\tWORKFLOW_ERROR_NOT_FOUND,\n\t\t\t\t`Workflow instance '${instanceId}' not found.`\n\t\t\t);\n\t\t}\n\n\t\treturn errorResponse(500, 10001, message);\n\t}\n}\n", "/**\n * Route patterns to telemetry names mapping.\n * Order matters - more specific patterns must come first.\n */\nconst ROUTE_PATTERNS: [RegExp, string][] = [\n\t[/^\\/storage\\/kv\\/namespaces\\/[^/]+\\/bulk\\/get$/, \"kv.bulk_get\"],\n\t[/^\\/storage\\/kv\\/namespaces\\/[^/]+\\/values\\/[^/]+$/, \"kv.value\"],\n\t[/^\\/storage\\/kv\\/namespaces\\/[^/]+\\/keys$/, \"kv.keys\"],\n\t[/^\\/storage\\/kv\\/namespaces$/, \"kv.namespaces\"],\n\t[/^\\/d1\\/database\\/[^/]+\\/raw$/, \"d1.query\"],\n\t[/^\\/d1\\/database$/, \"d1.databases\"],\n\t[/^\\/workers\\/durable_objects\\/namespaces\\/[^/]+\\/query$/, \"do.query\"],\n\t[/^\\/workers\\/durable_objects\\/namespaces\\/[^/]+\\/objects$/, \"do.objects\"],\n\t[/^\\/workers\\/durable_objects\\/namespaces$/, \"do.namespaces\"],\n\t[/^\\/r2\\/buckets\\/[^/]+\\/objects\\/[^/]+$/, \"r2.object\"],\n\t[/^\\/r2\\/buckets\\/[^/]+\\/objects$/, \"r2.objects\"],\n\t[/^\\/r2\\/buckets\\/[^/]+$/, \"r2.bucket\"],\n\t[/^\\/r2\\/buckets$/, \"r2.buckets\"],\n\t[\n\t\t/^\\/workflows\\/[^/]+\\/instances\\/[^/]+\\/events\\/[^/]+$/,\n\t\t\"workflows.instance.event\",\n\t],\n\t[\n\t\t/^\\/workflows\\/[^/]+\\/instances\\/[^/]+\\/status$/,\n\t\t\"workflows.instance.status\",\n\t],\n\t[/^\\/workflows\\/[^/]+\\/instances\\/[^/]+$/, \"workflows.instance\"],\n\t[/^\\/workflows\\/[^/]+\\/instances$/, \"workflows.instances\"],\n\t[/^\\/workflows\\/[^/]+$/, \"workflows.details\"],\n\t[/^\\/workflows$/, \"workflows.list\"],\n\t[/^\\/local\\/observability\\/query$/, \"observability.query\"],\n\t[/^\\/local\\/observability\\/clear$/, \"observability.clear\"],\n\t[/^\\/local\\/workers$/, \"local.workers\"],\n];\n\n/**\n * Convert API path to sanitized route name.\n * Strips IDs and converts to dot notation.\n */\nexport function getRouteName(path: string): string {\n\t// Remove /cdn-cgi/explorer/api prefix\n\tconst apiPath = path.replace(/^\\/cdn-cgi\\/explorer\\/api/, \"\");\n\n\tfor (const [pattern, name] of ROUTE_PATTERNS) {\n\t\tif (pattern.test(apiPath)) {\n\t\t\treturn name;\n\t\t}\n\t}\n\n\treturn \"unknown\";\n}\n", "import { NO_AGGREGATE_HEADER } from \"./aggregation\";\nimport { getRouteName } from \"./route-names\";\nimport type { AppContext } from \"./common\";\nimport type { Next } from \"hono\";\n\nexport { getRouteName };\n\nconst SPARROW_URL = \"https://sparrow.cloudflare.com\";\n\n// Injected at build time\ndeclare const SPARROW_SOURCE_KEY: string;\n\ninterface TelemetryEvent {\n\tevent: string;\n\tdeviceId: string;\n\ttimestamp: number;\n\tproperties: Record<string, unknown>;\n}\n\nfunction sendTelemetryEvent(\n\tdeviceId: string,\n\tevent: string,\n\tproperties: Record<string, unknown>\n): Promise<void> {\n\tconst body: TelemetryEvent = {\n\t\tevent,\n\t\tdeviceId,\n\t\ttimestamp: Date.now(),\n\t\tproperties,\n\t};\n\n\treturn fetch(`${SPARROW_URL}/api/v1/event`, {\n\t\tmethod: \"POST\",\n\t\theaders: {\n\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\"Sparrow-Source-Key\": SPARROW_SOURCE_KEY,\n\t\t},\n\t\tbody: JSON.stringify(body),\n\t}).then(\n\t\t() => {},\n\t\t// fail silently\n\t\t() => {}\n\t);\n}\n\nexport async function telemetryMiddleware(\n\tc: AppContext,\n\tnext: Next\n): Promise<void> {\n\tawait next();\n\n\tif (\n\t\t!c.res.ok ||\n\t\t!SPARROW_SOURCE_KEY ||\n\t\t!c.env.MINIFLARE_TELEMETRY_CONFIG.enabled ||\n\t\t// Skip telemetry for aggregation calls between instances\n\t\tc.req.raw.headers.has(NO_AGGREGATE_HEADER) ||\n\t\t!c.env.MINIFLARE_TELEMETRY_CONFIG.deviceId\n\t) {\n\t\treturn;\n\t}\n\n\tconst route = `${getRouteName(c.req.path)}.${c.req.method.toLowerCase()}`;\n\tconst userAgent = c.req.header(\"User-Agent\") ?? \"unknown\";\n\n\t// Base properties for all routes\n\tconst properties: Record<string, unknown> = {\n\t\tuserAgent,\n\t};\n\n\t// Special handling for GET /local/workers - add binding counts\n\tif (route === \"local.workers.get\") {\n\t\ttry {\n\t\t\tconst clonedResponse = c.res.clone();\n\t\t\tconst data = (await clonedResponse.json()) as {\n\t\t\t\tresult?: Array<{ bindings?: Record<string, unknown[]> }>;\n\t\t\t};\n\t\t\tconst workers = data.result ?? [];\n\n\t\t\tlet kvCount = 0;\n\t\t\tlet d1Count = 0;\n\t\t\tlet r2Count = 0;\n\t\t\tlet doCount = 0;\n\t\t\tlet workflowsCount = 0;\n\t\t\tfor (const worker of workers) {\n\t\t\t\tif (worker.bindings) {\n\t\t\t\t\tkvCount += worker.bindings.kv?.length ?? 0;\n\t\t\t\t\td1Count += worker.bindings.d1?.length ?? 0;\n\t\t\t\t\tr2Count += worker.bindings.r2?.length ?? 0;\n\t\t\t\t\tdoCount += worker.bindings.do?.length ?? 0;\n\t\t\t\t\tworkflowsCount += worker.bindings.workflows?.length ?? 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tproperties.workerCount = workers.length;\n\t\t\tproperties.kvCount = kvCount;\n\t\t\tproperties.d1Count = d1Count;\n\t\t\tproperties.r2Count = r2Count;\n\t\t\tproperties.doCount = doCount;\n\t\t\tproperties.workflowsCount = workflowsCount;\n\t\t} catch {}\n\t}\n\n\tconst telemetryPromise = sendTelemetryEvent(\n\t\tc.env.MINIFLARE_TELEMETRY_CONFIG.deviceId,\n\t\t`localapi.${route}`,\n\t\tproperties\n\t);\n\n\t// Use waitUntil to keep the Worker alive until the telemetry fetch completes\n\tc.executionCtx.waitUntil(telemetryPromise);\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAMA,aAAS,OAAO;AACd,WAAK,SAAS,uBAAO,OAAO,IAAI,GAChC,KAAK,cAAc,uBAAO,OAAO,IAAI;AAErC,eAAS,IAAI,GAAG,IAAI,UAAU,QAAQ;AACpC,aAAK,OAAO,UAAU,CAAC,CAAC;AAG1B,WAAK,SAAS,KAAK,OAAO,KAAK,IAAI,GACnC,KAAK,UAAU,KAAK,QAAQ,KAAK,IAAI,GACrC,KAAK,eAAe,KAAK,aAAa,KAAK,IAAI;AAAA,IACjD;AAqBA,SAAK,UAAU,SAAS,SAAS,SAAS,OAAO;AAC/C,eAAS,QAAQ,SAAS;AACxB,YAAI,aAAa,QAAQ,IAAI,EAAE,IAAI,SAAS,GAAG;AAC7C,iBAAO,EAAE,YAAY;AAAA,QACvB,CAAC;AACD,eAAO,KAAK,YAAY;AAExB,iBAAS,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;AAC1C,cAAM,MAAM,WAAW,CAAC;AAIxB,cAAI,IAAI,CAAC,MAAM,KAIf;AAAA,gBAAI,CAAC,SAAU,OAAO,KAAK;AACzB,oBAAM,IAAI;AAAA,gBACR,oCAAoC,MACpC,uBAAuB,KAAK,OAAO,GAAG,IAAI,WAAW,OACrD,2DAA2D,MAC3D,wCAAwC,OAAO;AAAA,cACjD;AAGF,iBAAK,OAAO,GAAG,IAAI;AAAA;AAAA,QACrB;AAGA,YAAI,SAAS,CAAC,KAAK,YAAY,IAAI,GAAG;AACpC,cAAM,MAAM,WAAW,CAAC;AAC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M,WAAW,OADA,MAAM,SAAS,MAAM,oCAAoC,GAC1C,KAAqB,GAG/C,eAAsC,gBAC1C,OAAO,CAAC,SAAS,SAAS,IAAI,CAAC,EAC/B,IAAI,CAAC,UACE;AAAA,MACN,QAAQ;AAAA,MACR;AAAA,MACA,UAAU,mBAAmB,IAAI;AAAA,IAClC,EACA,GAGI,WAAW,MAAM,yBAAyB,CAAC,GAC3C,cAAc,MAAM,QAAQ;AAAA,MACjC,SAAS,IAAI,OAAO,QAAQ;AAC3B,YAAM,eAAe,MAAM,cAAc,KAAK,gBAAgB;AAC9D,YAAI,CAAC,cAAc,GAAI,QAAO,CAAC;AAC/B,YAAI;AAKH,mBAJc,MAAM,aAAa,KAAK,GAIzB,UAAU,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,QAAQ,GAAM,EAAE;AAAA,QAChE,QAAQ;AACP,iBAAO,CAAC;AAAA,QACT;AAAA,MACD,CAAC;AAAA,IACF,GAEM,aAAa,CAAC,GAAG,cAAc,GAAG,YAAY,KAAK,CAAC;AAC1D,WAAO,EAAE,KAAK,aAAa,UAAU,CAAC;AAAA,EACvC,SAAS,KAAK;AACb,QAAM,UACL,eAAe,QAAQ,IAAI,UAAU;AACtC,WAAO,cAAc,KAAK,KAAO,OAAO;AAAA,EACzC;AACD,CAAC;AAED,IAAO,0BAAQ;",
  "names": ["raw", "app", "env", "Hono", "util", "objectUtil", "errorUtil", "errorMap", "ctx", "result", "issues", "elements", "processed", "result", "r", "ZodFirstPartyTypeKind", "env", "env", "env", "env", "env", "obj", "env", "response", "EXPLORER_API_PATH", "Hono", "mime"]
}
