@flowrunner/cli 0.1.11 → 0.1.12-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/ai-docs/instructions/service-code-format/01-service-structure.md +1 -0
  2. package/ai-docs/instructions/service-code-format/06-oauth2.md +20 -1
  3. package/ai-docs/instructions/service-code-format/09-realtime-triggers.md +89 -5
  4. package/ai-docs/instructions/service-code-format/11-output-model.md +1 -1
  5. package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +6 -3
  6. package/dist/cli.js +134 -10409
  7. package/dist/cli.js.map +4 -4
  8. package/dist/index.js +127 -10378
  9. package/dist/index.js.map +4 -4
  10. package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  11. package/dist/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +8 -1
  12. package/dist/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +6 -2
  13. package/dist/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  14. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  15. package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  16. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +8 -8
  17. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  18. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  19. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  20. package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
  21. package/package.json +4 -1
  22. package/runtime/index.js +105 -10366
  23. package/runtime/index.js.map +4 -4
  24. package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  25. package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +8 -1
  26. package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +6 -2
  27. package/runtime/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  28. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  29. package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  30. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +8 -8
  31. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  32. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  33. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  34. package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../node_modules/delayed-stream/lib/delayed_stream.js", "../../../node_modules/combined-stream/lib/combined_stream.js", "../../../node_modules/mime-types/node_modules/mime-db/db.json", "../../../node_modules/mime-types/node_modules/mime-db/index.js", "../../../node_modules/mime-types/index.js", "../../../node_modules/asynckit/lib/defer.js", "../../../node_modules/asynckit/lib/async.js", "../../../node_modules/asynckit/lib/abort.js", "../../../node_modules/asynckit/lib/iterate.js", "../../../node_modules/asynckit/lib/state.js", "../../../node_modules/asynckit/lib/terminator.js", "../../../node_modules/asynckit/parallel.js", "../../../node_modules/asynckit/serialOrdered.js", "../../../node_modules/asynckit/serial.js", "../../../node_modules/asynckit/index.js", "../../../node_modules/function-bind/implementation.js", "../../../node_modules/function-bind/index.js", "../../../node_modules/hasown/index.js", "../../../node_modules/es-object-atoms/index.js", "../../../node_modules/es-errors/index.js", "../../../node_modules/es-errors/eval.js", "../../../node_modules/es-errors/range.js", "../../../node_modules/es-errors/ref.js", "../../../node_modules/es-errors/syntax.js", "../../../node_modules/es-errors/type.js", "../../../node_modules/es-errors/uri.js", "../../../node_modules/math-intrinsics/abs.js", "../../../node_modules/math-intrinsics/floor.js", "../../../node_modules/math-intrinsics/max.js", "../../../node_modules/math-intrinsics/min.js", "../../../node_modules/math-intrinsics/pow.js", "../../../node_modules/math-intrinsics/round.js", "../../../node_modules/math-intrinsics/isNaN.js", "../../../node_modules/math-intrinsics/sign.js", "../../../node_modules/gopd/gOPD.js", "../../../node_modules/gopd/index.js", "../../../node_modules/es-define-property/index.js", "../../../node_modules/has-symbols/shams.js", "../../../node_modules/has-symbols/index.js", "../../../node_modules/get-proto/Reflect.getPrototypeOf.js", "../../../node_modules/get-proto/Object.getPrototypeOf.js", "../../../node_modules/call-bind-apply-helpers/functionCall.js", "../../../node_modules/call-bind-apply-helpers/functionApply.js", "../../../node_modules/call-bind-apply-helpers/reflectApply.js", "../../../node_modules/call-bind-apply-helpers/actualApply.js", "../../../node_modules/call-bind-apply-helpers/index.js", "../../../node_modules/dunder-proto/get.js", "../../../node_modules/get-proto/index.js", "../../../node_modules/get-intrinsic/index.js", "../../../node_modules/has-tostringtag/shams.js", "../../../node_modules/es-set-tostringtag/index.js", "../../../node_modules/form-data/lib/populate.js", "../../../node_modules/form-data/node_modules/safe-buffer/index.js", "../../../node_modules/form-data/lib/form_data.js", "../../../node_modules/backendless-request/lib/utils.js", "../../../node_modules/backendless-request/lib/error.js", "../../../node_modules/backendless-request/lib/client-node.js", "../../../node_modules/backendless-request/lib/event-emitter.js", "../../../node_modules/backendless-request/lib/qs.js", "../../../node_modules/backendless-request/lib/request.js", "../../../node_modules/backendless-request/lib/client-browser.js", "../../../node_modules/backendless-request/lib/index.js", "../src/runtime/index.ts", "../../../flow-extension-runner/src/namespace.ts", "../../../flow-extension-runner/src/errors/base.ts", "../../../flow-extension-runner/src/errors/codes.ts", "../../../flow-extension-runner/src/errors/errors.ts", "../../../flow-extension-runner/src/v2/loaders/loader-owner.ts", "../../../flow-extension-runner/src/v2/params/schema/assert-object-schema.ts", "../../../flow-extension-runner/src/v2/params/widget-types.ts", "../../../flow-extension-runner/src/v2/params/schema/introspect.ts", "../../../flow-extension-runner/src/v2/params/schema/assert-supported-schema.ts", "../../../flow-extension-runner/src/v2/params/schema/dates.ts", "../../../flow-extension-runner/src/v2/params/schema/labels.ts", "../../../flow-extension-runner/src/v2/params/schema/field-plan.ts", "../../../flow-extension-runner/src/v2/params/schema/coerce.ts", "../../../flow-extension-runner/src/v2/params/schema/defaults.ts", "../../../flow-extension-runner/src/v2/params/schema/messages.ts", "../../../flow-extension-runner/src/v2/params/schema/normalize.ts", "../../../flow-extension-runner/src/v2/params/schema/parse.ts", "../../../flow-extension-runner/src/v2/params/params.ts", "../../../flow-extension-runner/src/v2/params/config-params.ts", "../../../flow-extension-runner/src/v2/params/method-params.ts", "../../../flow-extension-runner/src/v2/params/zod.ts", "../../../flow-extension-runner/src/v2/params/files-options.ts", "../../../flow-extension-runner/src/v2/params/json/values.ts", "../../../flow-extension-runner/src/v2/params/json/checks.ts", "../../../flow-extension-runner/src/v2/params/json/types.ts", "../../../flow-extension-runner/src/v2/params/json/decode.ts", "../../../flow-extension-runner/src/v2/params/json/encode.ts", "../../../flow-extension-runner/src/v2/context/method-input.ts", "../../../flow-extension-runner/src/v2/method.ts", "../../../flow-extension-runner/src/common/constants.ts", "../../../flow-extension-runner/src/v2/model/field-mapper.ts", "../../../flow-extension-runner/src/v2/model/method-model.ts", "../../../flow-extension-runner/src/v2/model/params-model.ts", "../../../flow-extension-runner/src/v2/result.ts", "../../../flow-extension-runner/src/v2/actions/action-method.ts", "../../../flow-extension-runner/src/common/context-files.ts", "../../../flow-extension-runner/src/v2/context/logger.ts", "../../../flow-extension-runner/src/v2/context/proxies.ts", "../../../flow-extension-runner/src/v2/context/execution-context.ts", "../../../flow-extension-runner/src/v2/dictionaries/payload-schema.ts", "../../../flow-extension-runner/src/v2/dictionaries/dictionary-method.ts", "../../../flow-extension-runner/src/v2/loaders/payload-schema.ts", "../../../flow-extension-runner/src/v2/loaders/loader-method.ts", "../../../flow-extension-runner/src/v2/oauth/oauth2.ts", "../../../flow-extension-runner/src/v2/oauth/method-names.ts", "../../../flow-extension-runner/src/v2/oauth/system-params.ts", "../../../flow-extension-runner/src/v2/polling-triggers/method-names.ts", "../../../flow-extension-runner/src/v2/polling-triggers/system-params.ts", "../../../flow-extension-runner/src/v2/polling-triggers/polling-triggers.ts", "../../../flow-extension-runner/src/v2/path.ts", "../../../flow-extension-runner/src/v2/polling-triggers/mechanisms.ts", "../../../flow-extension-runner/src/v2/polling-triggers/trigger-method.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/method-names.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/system-params.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/verify.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/realtime-setup.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/trigger-method.ts", "../../../flow-extension-runner/src/v2/system-method.ts", "../../../flow-extension-runner/src/v2/extension.ts", "../../../flow-extension-runner/src/v2/registry.ts", "../../../flow-extension-runner/src/v2/create-extension.ts", "../../../flow-extension-runner/src/v2/crypto.ts", "../../../flow-extension-runner/src/common/config.ts", "../../../flow-extension-runner/src/common/context.ts", "../../../flow-extension-runner/src/v1/config.ts", "../../../flow-extension-runner/src/v1/constants.ts", "../../../flow-extension-runner/src/v1/namespace.ts", "../../../flow-extension-runner/src/v1/service.ts", "../../../flow-extension-runner/src/v2/index.ts", "../../../flow-extension-runner/src/index.ts", "../../../jsdoc-parser/src/custom-type-defs/files.ts", "../../../jsdoc-parser/src/lib.ts", "../../../jsdoc-parser/src/index.ts"],
4
- "sourcesContent": ["var Stream = require('stream').Stream;\nvar util = require('util');\n\nmodule.exports = DelayedStream;\nfunction DelayedStream() {\n this.source = null;\n this.dataSize = 0;\n this.maxDataSize = 1024 * 1024;\n this.pauseStream = true;\n\n this._maxDataSizeExceeded = false;\n this._released = false;\n this._bufferedEvents = [];\n}\nutil.inherits(DelayedStream, Stream);\n\nDelayedStream.create = function(source, options) {\n var delayedStream = new this();\n\n options = options || {};\n for (var option in options) {\n delayedStream[option] = options[option];\n }\n\n delayedStream.source = source;\n\n var realEmit = source.emit;\n source.emit = function() {\n delayedStream._handleEmit(arguments);\n return realEmit.apply(source, arguments);\n };\n\n source.on('error', function() {});\n if (delayedStream.pauseStream) {\n source.pause();\n }\n\n return delayedStream;\n};\n\nObject.defineProperty(DelayedStream.prototype, 'readable', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.source.readable;\n }\n});\n\nDelayedStream.prototype.setEncoding = function() {\n return this.source.setEncoding.apply(this.source, arguments);\n};\n\nDelayedStream.prototype.resume = function() {\n if (!this._released) {\n this.release();\n }\n\n this.source.resume();\n};\n\nDelayedStream.prototype.pause = function() {\n this.source.pause();\n};\n\nDelayedStream.prototype.release = function() {\n this._released = true;\n\n this._bufferedEvents.forEach(function(args) {\n this.emit.apply(this, args);\n }.bind(this));\n this._bufferedEvents = [];\n};\n\nDelayedStream.prototype.pipe = function() {\n var r = Stream.prototype.pipe.apply(this, arguments);\n this.resume();\n return r;\n};\n\nDelayedStream.prototype._handleEmit = function(args) {\n if (this._released) {\n this.emit.apply(this, args);\n return;\n }\n\n if (args[0] === 'data') {\n this.dataSize += args[1].length;\n this._checkIfMaxDataSizeExceeded();\n }\n\n this._bufferedEvents.push(args);\n};\n\nDelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {\n if (this._maxDataSizeExceeded) {\n return;\n }\n\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n this._maxDataSizeExceeded = true;\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'\n this.emit('error', new Error(message));\n};\n", "var util = require('util');\nvar Stream = require('stream').Stream;\nvar DelayedStream = require('delayed-stream');\n\nmodule.exports = CombinedStream;\nfunction CombinedStream() {\n this.writable = false;\n this.readable = true;\n this.dataSize = 0;\n this.maxDataSize = 2 * 1024 * 1024;\n this.pauseStreams = true;\n\n this._released = false;\n this._streams = [];\n this._currentStream = null;\n this._insideLoop = false;\n this._pendingNext = false;\n}\nutil.inherits(CombinedStream, Stream);\n\nCombinedStream.create = function(options) {\n var combinedStream = new this();\n\n options = options || {};\n for (var option in options) {\n combinedStream[option] = options[option];\n }\n\n return combinedStream;\n};\n\nCombinedStream.isStreamLike = function(stream) {\n return (typeof stream !== 'function')\n && (typeof stream !== 'string')\n && (typeof stream !== 'boolean')\n && (typeof stream !== 'number')\n && (!Buffer.isBuffer(stream));\n};\n\nCombinedStream.prototype.append = function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n\n if (isStreamLike) {\n if (!(stream instanceof DelayedStream)) {\n var newStream = DelayedStream.create(stream, {\n maxDataSize: Infinity,\n pauseStream: this.pauseStreams,\n });\n stream.on('data', this._checkDataSize.bind(this));\n stream = newStream;\n }\n\n this._handleErrors(stream);\n\n if (this.pauseStreams) {\n stream.pause();\n }\n }\n\n this._streams.push(stream);\n return this;\n};\n\nCombinedStream.prototype.pipe = function(dest, options) {\n Stream.prototype.pipe.call(this, dest, options);\n this.resume();\n return dest;\n};\n\nCombinedStream.prototype._getNext = function() {\n this._currentStream = null;\n\n if (this._insideLoop) {\n this._pendingNext = true;\n return; // defer call\n }\n\n this._insideLoop = true;\n try {\n do {\n this._pendingNext = false;\n this._realGetNext();\n } while (this._pendingNext);\n } finally {\n this._insideLoop = false;\n }\n};\n\nCombinedStream.prototype._realGetNext = function() {\n var stream = this._streams.shift();\n\n\n if (typeof stream == 'undefined') {\n this.end();\n return;\n }\n\n if (typeof stream !== 'function') {\n this._pipeNext(stream);\n return;\n }\n\n var getStream = stream;\n getStream(function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('data', this._checkDataSize.bind(this));\n this._handleErrors(stream);\n }\n\n this._pipeNext(stream);\n }.bind(this));\n};\n\nCombinedStream.prototype._pipeNext = function(stream) {\n this._currentStream = stream;\n\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('end', this._getNext.bind(this));\n stream.pipe(this, {end: false});\n return;\n }\n\n var value = stream;\n this.write(value);\n this._getNext();\n};\n\nCombinedStream.prototype._handleErrors = function(stream) {\n var self = this;\n stream.on('error', function(err) {\n self._emitError(err);\n });\n};\n\nCombinedStream.prototype.write = function(data) {\n this.emit('data', data);\n};\n\nCombinedStream.prototype.pause = function() {\n if (!this.pauseStreams) {\n return;\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();\n this.emit('pause');\n};\n\nCombinedStream.prototype.resume = function() {\n if (!this._released) {\n this._released = true;\n this.writable = true;\n this._getNext();\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();\n this.emit('resume');\n};\n\nCombinedStream.prototype.end = function() {\n this._reset();\n this.emit('end');\n};\n\nCombinedStream.prototype.destroy = function() {\n this._reset();\n this.emit('close');\n};\n\nCombinedStream.prototype._reset = function() {\n this.writable = false;\n this._streams = [];\n this._currentStream = null;\n};\n\nCombinedStream.prototype._checkDataSize = function() {\n this._updateDataSize();\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';\n this._emitError(new Error(message));\n};\n\nCombinedStream.prototype._updateDataSize = function() {\n this.dataSize = 0;\n\n var self = this;\n this._streams.forEach(function(stream) {\n if (!stream.dataSize) {\n return;\n }\n\n self.dataSize += stream.dataSize;\n });\n\n if (this._currentStream && this._currentStream.dataSize) {\n this.dataSize += this._currentStream.dataSize;\n }\n};\n\nCombinedStream.prototype._emitError = function(err) {\n this._reset();\n this.emit('error', err);\n};\n", "{\n \"application/1d-interleaved-parityfec\": {\n \"source\": \"iana\"\n },\n \"application/3gpdash-qoe-report+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/3gpp-ims+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/3gpphal+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/3gpphalforms+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/a2l\": {\n \"source\": \"iana\"\n },\n \"application/ace+cbor\": {\n \"source\": \"iana\"\n },\n \"application/activemessage\": {\n \"source\": \"iana\"\n },\n \"application/activity+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-costmap+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-costmapfilter+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-directory+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-endpointcost+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-endpointcostparams+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-endpointprop+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-endpointpropparams+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-error+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-networkmap+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-networkmapfilter+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-updatestreamcontrol+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/alto-updatestreamparams+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/aml\": {\n \"source\": \"iana\"\n },\n \"application/andrew-inset\": {\n \"source\": \"iana\",\n \"extensions\": [\"ez\"]\n },\n \"application/applefile\": {\n \"source\": \"iana\"\n },\n \"application/applixware\": {\n \"source\": \"apache\",\n \"extensions\": [\"aw\"]\n },\n \"application/at+jwt\": {\n \"source\": \"iana\"\n },\n \"application/atf\": {\n \"source\": \"iana\"\n },\n \"application/atfx\": {\n \"source\": \"iana\"\n },\n \"application/atom+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"atom\"]\n },\n \"application/atomcat+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"atomcat\"]\n },\n \"application/atomdeleted+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"atomdeleted\"]\n },\n \"application/atomicmail\": {\n \"source\": \"iana\"\n },\n \"application/atomsvc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"atomsvc\"]\n },\n \"application/atsc-dwd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"dwd\"]\n },\n \"application/atsc-dynamic-event-message\": {\n \"source\": \"iana\"\n },\n \"application/atsc-held+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"held\"]\n },\n \"application/atsc-rdt+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/atsc-rsat+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rsat\"]\n },\n \"application/atxml\": {\n \"source\": \"iana\"\n },\n \"application/auth-policy+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/bacnet-xdd+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/batch-smtp\": {\n \"source\": \"iana\"\n },\n \"application/bdoc\": {\n \"compressible\": false,\n \"extensions\": [\"bdoc\"]\n },\n \"application/beep+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/calendar+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/calendar+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xcs\"]\n },\n \"application/call-completion\": {\n \"source\": \"iana\"\n },\n \"application/cals-1840\": {\n \"source\": \"iana\"\n },\n \"application/captive+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cbor\": {\n \"source\": \"iana\"\n },\n \"application/cbor-seq\": {\n \"source\": \"iana\"\n },\n \"application/cccex\": {\n \"source\": \"iana\"\n },\n \"application/ccmp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/ccxml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ccxml\"]\n },\n \"application/cdfx+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"cdfx\"]\n },\n \"application/cdmi-capability\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdmia\"]\n },\n \"application/cdmi-container\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdmic\"]\n },\n \"application/cdmi-domain\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdmid\"]\n },\n \"application/cdmi-object\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdmio\"]\n },\n \"application/cdmi-queue\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdmiq\"]\n },\n \"application/cdni\": {\n \"source\": \"iana\"\n },\n \"application/cea\": {\n \"source\": \"iana\"\n },\n \"application/cea-2018+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cellml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cfw\": {\n \"source\": \"iana\"\n },\n \"application/city+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/clr\": {\n \"source\": \"iana\"\n },\n \"application/clue+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/clue_info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cms\": {\n \"source\": \"iana\"\n },\n \"application/cnrp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/coap-group+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/coap-payload\": {\n \"source\": \"iana\"\n },\n \"application/commonground\": {\n \"source\": \"iana\"\n },\n \"application/conference-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cose\": {\n \"source\": \"iana\"\n },\n \"application/cose-key\": {\n \"source\": \"iana\"\n },\n \"application/cose-key-set\": {\n \"source\": \"iana\"\n },\n \"application/cpl+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"cpl\"]\n },\n \"application/csrattrs\": {\n \"source\": \"iana\"\n },\n \"application/csta+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cstadata+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/csvm+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/cu-seeme\": {\n \"source\": \"apache\",\n \"extensions\": [\"cu\"]\n },\n \"application/cwt\": {\n \"source\": \"iana\"\n },\n \"application/cybercash\": {\n \"source\": \"iana\"\n },\n \"application/dart\": {\n \"compressible\": true\n },\n \"application/dash+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mpd\"]\n },\n \"application/dash-patch+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mpp\"]\n },\n \"application/dashdelta\": {\n \"source\": \"iana\"\n },\n \"application/davmount+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"davmount\"]\n },\n \"application/dca-rft\": {\n \"source\": \"iana\"\n },\n \"application/dcd\": {\n \"source\": \"iana\"\n },\n \"application/dec-dx\": {\n \"source\": \"iana\"\n },\n \"application/dialog-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/dicom\": {\n \"source\": \"iana\"\n },\n \"application/dicom+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/dicom+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/dii\": {\n \"source\": \"iana\"\n },\n \"application/dit\": {\n \"source\": \"iana\"\n },\n \"application/dns\": {\n \"source\": \"iana\"\n },\n \"application/dns+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/dns-message\": {\n \"source\": \"iana\"\n },\n \"application/docbook+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"dbk\"]\n },\n \"application/dots+cbor\": {\n \"source\": \"iana\"\n },\n \"application/dskpp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/dssc+der\": {\n \"source\": \"iana\",\n \"extensions\": [\"dssc\"]\n },\n \"application/dssc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xdssc\"]\n },\n \"application/dvcs\": {\n \"source\": \"iana\"\n },\n \"application/ecmascript\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"es\",\"ecma\"]\n },\n \"application/edi-consent\": {\n \"source\": \"iana\"\n },\n \"application/edi-x12\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/edifact\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/efi\": {\n \"source\": \"iana\"\n },\n \"application/elm+json\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/elm+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.cap+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/emergencycalldata.comment+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.control+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.deviceinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.ecall.msd\": {\n \"source\": \"iana\"\n },\n \"application/emergencycalldata.providerinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.serviceinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.subscriberinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emergencycalldata.veds+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/emma+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"emma\"]\n },\n \"application/emotionml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"emotionml\"]\n },\n \"application/encaprtp\": {\n \"source\": \"iana\"\n },\n \"application/epp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/epub+zip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"epub\"]\n },\n \"application/eshop\": {\n \"source\": \"iana\"\n },\n \"application/exi\": {\n \"source\": \"iana\",\n \"extensions\": [\"exi\"]\n },\n \"application/expect-ct-report+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/express\": {\n \"source\": \"iana\",\n \"extensions\": [\"exp\"]\n },\n \"application/fastinfoset\": {\n \"source\": \"iana\"\n },\n \"application/fastsoap\": {\n \"source\": \"iana\"\n },\n \"application/fdt+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"fdt\"]\n },\n \"application/fhir+json\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/fhir+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/fido.trusted-apps+json\": {\n \"compressible\": true\n },\n \"application/fits\": {\n \"source\": \"iana\"\n },\n \"application/flexfec\": {\n \"source\": \"iana\"\n },\n \"application/font-sfnt\": {\n \"source\": \"iana\"\n },\n \"application/font-tdpfr\": {\n \"source\": \"iana\",\n \"extensions\": [\"pfr\"]\n },\n \"application/font-woff\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/framework-attributes+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/geo+json\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"geojson\"]\n },\n \"application/geo+json-seq\": {\n \"source\": \"iana\"\n },\n \"application/geopackage+sqlite3\": {\n \"source\": \"iana\"\n },\n \"application/geoxacml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/gltf-buffer\": {\n \"source\": \"iana\"\n },\n \"application/gml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"gml\"]\n },\n \"application/gpx+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"gpx\"]\n },\n \"application/gxf\": {\n \"source\": \"apache\",\n \"extensions\": [\"gxf\"]\n },\n \"application/gzip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"gz\"]\n },\n \"application/h224\": {\n \"source\": \"iana\"\n },\n \"application/held+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/hjson\": {\n \"extensions\": [\"hjson\"]\n },\n \"application/http\": {\n \"source\": \"iana\"\n },\n \"application/hyperstudio\": {\n \"source\": \"iana\",\n \"extensions\": [\"stk\"]\n },\n \"application/ibe-key-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/ibe-pkg-reply+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/ibe-pp-data\": {\n \"source\": \"iana\"\n },\n \"application/iges\": {\n \"source\": \"iana\"\n },\n \"application/im-iscomposing+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/index\": {\n \"source\": \"iana\"\n },\n \"application/index.cmd\": {\n \"source\": \"iana\"\n },\n \"application/index.obj\": {\n \"source\": \"iana\"\n },\n \"application/index.response\": {\n \"source\": \"iana\"\n },\n \"application/index.vnd\": {\n \"source\": \"iana\"\n },\n \"application/inkml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ink\",\"inkml\"]\n },\n \"application/iotp\": {\n \"source\": \"iana\"\n },\n \"application/ipfix\": {\n \"source\": \"iana\",\n \"extensions\": [\"ipfix\"]\n },\n \"application/ipp\": {\n \"source\": \"iana\"\n },\n \"application/isup\": {\n \"source\": \"iana\"\n },\n \"application/its+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"its\"]\n },\n \"application/java-archive\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"jar\",\"war\",\"ear\"]\n },\n \"application/java-serialized-object\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"ser\"]\n },\n \"application/java-vm\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"class\"]\n },\n \"application/javascript\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"js\",\"mjs\"]\n },\n \"application/jf2feed+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/jose\": {\n \"source\": \"iana\"\n },\n \"application/jose+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/jrd+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/jscalendar+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/json\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"json\",\"map\"]\n },\n \"application/json-patch+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/json-seq\": {\n \"source\": \"iana\"\n },\n \"application/json5\": {\n \"extensions\": [\"json5\"]\n },\n \"application/jsonml+json\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"jsonml\"]\n },\n \"application/jwk+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/jwk-set+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/jwt\": {\n \"source\": \"iana\"\n },\n \"application/kpml-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/kpml-response+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/ld+json\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"jsonld\"]\n },\n \"application/lgr+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"lgr\"]\n },\n \"application/link-format\": {\n \"source\": \"iana\"\n },\n \"application/load-control+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/lost+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"lostxml\"]\n },\n \"application/lostsync+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/lpf+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/lxf\": {\n \"source\": \"iana\"\n },\n \"application/mac-binhex40\": {\n \"source\": \"iana\",\n \"extensions\": [\"hqx\"]\n },\n \"application/mac-compactpro\": {\n \"source\": \"apache\",\n \"extensions\": [\"cpt\"]\n },\n \"application/macwriteii\": {\n \"source\": \"iana\"\n },\n \"application/mads+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mads\"]\n },\n \"application/manifest+json\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"webmanifest\"]\n },\n \"application/marc\": {\n \"source\": \"iana\",\n \"extensions\": [\"mrc\"]\n },\n \"application/marcxml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mrcx\"]\n },\n \"application/mathematica\": {\n \"source\": \"iana\",\n \"extensions\": [\"ma\",\"nb\",\"mb\"]\n },\n \"application/mathml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mathml\"]\n },\n \"application/mathml-content+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mathml-presentation+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-associated-procedure-description+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-deregister+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-envelope+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-msk+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-msk-response+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-protection-description+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-reception-report+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-register+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-register-response+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-schedule+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbms-user-service-description+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mbox\": {\n \"source\": \"iana\",\n \"extensions\": [\"mbox\"]\n },\n \"application/media-policy-dataset+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mpf\"]\n },\n \"application/media_control+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mediaservercontrol+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mscml\"]\n },\n \"application/merge-patch+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/metalink+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"metalink\"]\n },\n \"application/metalink4+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"meta4\"]\n },\n \"application/mets+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mets\"]\n },\n \"application/mf4\": {\n \"source\": \"iana\"\n },\n \"application/mikey\": {\n \"source\": \"iana\"\n },\n \"application/mipc\": {\n \"source\": \"iana\"\n },\n \"application/missing-blocks+cbor-seq\": {\n \"source\": \"iana\"\n },\n \"application/mmt-aei+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"maei\"]\n },\n \"application/mmt-usd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"musd\"]\n },\n \"application/mods+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mods\"]\n },\n \"application/moss-keys\": {\n \"source\": \"iana\"\n },\n \"application/moss-signature\": {\n \"source\": \"iana\"\n },\n \"application/mosskey-data\": {\n \"source\": \"iana\"\n },\n \"application/mosskey-request\": {\n \"source\": \"iana\"\n },\n \"application/mp21\": {\n \"source\": \"iana\",\n \"extensions\": [\"m21\",\"mp21\"]\n },\n \"application/mp4\": {\n \"source\": \"iana\",\n \"extensions\": [\"mp4s\",\"m4p\"]\n },\n \"application/mpeg4-generic\": {\n \"source\": \"iana\"\n },\n \"application/mpeg4-iod\": {\n \"source\": \"iana\"\n },\n \"application/mpeg4-iod-xmt\": {\n \"source\": \"iana\"\n },\n \"application/mrb-consumer+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/mrb-publish+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/msc-ivr+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/msc-mixer+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/msword\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"doc\",\"dot\"]\n },\n \"application/mud+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/multipart-core\": {\n \"source\": \"iana\"\n },\n \"application/mxf\": {\n \"source\": \"iana\",\n \"extensions\": [\"mxf\"]\n },\n \"application/n-quads\": {\n \"source\": \"iana\",\n \"extensions\": [\"nq\"]\n },\n \"application/n-triples\": {\n \"source\": \"iana\",\n \"extensions\": [\"nt\"]\n },\n \"application/nasdata\": {\n \"source\": \"iana\"\n },\n \"application/news-checkgroups\": {\n \"source\": \"iana\",\n \"charset\": \"US-ASCII\"\n },\n \"application/news-groupinfo\": {\n \"source\": \"iana\",\n \"charset\": \"US-ASCII\"\n },\n \"application/news-transmission\": {\n \"source\": \"iana\"\n },\n \"application/nlsml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/node\": {\n \"source\": \"iana\",\n \"extensions\": [\"cjs\"]\n },\n \"application/nss\": {\n \"source\": \"iana\"\n },\n \"application/oauth-authz-req+jwt\": {\n \"source\": \"iana\"\n },\n \"application/oblivious-dns-message\": {\n \"source\": \"iana\"\n },\n \"application/ocsp-request\": {\n \"source\": \"iana\"\n },\n \"application/ocsp-response\": {\n \"source\": \"iana\"\n },\n \"application/octet-stream\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"bin\",\"dms\",\"lrf\",\"mar\",\"so\",\"dist\",\"distz\",\"pkg\",\"bpk\",\"dump\",\"elc\",\"deploy\",\"exe\",\"dll\",\"deb\",\"dmg\",\"iso\",\"img\",\"msi\",\"msp\",\"msm\",\"buffer\"]\n },\n \"application/oda\": {\n \"source\": \"iana\",\n \"extensions\": [\"oda\"]\n },\n \"application/odm+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/odx\": {\n \"source\": \"iana\"\n },\n \"application/oebps-package+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"opf\"]\n },\n \"application/ogg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"ogx\"]\n },\n \"application/omdoc+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"omdoc\"]\n },\n \"application/onenote\": {\n \"source\": \"apache\",\n \"extensions\": [\"onetoc\",\"onetoc2\",\"onetmp\",\"onepkg\"]\n },\n \"application/opc-nodeset+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/oscore\": {\n \"source\": \"iana\"\n },\n \"application/oxps\": {\n \"source\": \"iana\",\n \"extensions\": [\"oxps\"]\n },\n \"application/p21\": {\n \"source\": \"iana\"\n },\n \"application/p21+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/p2p-overlay+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"relo\"]\n },\n \"application/parityfec\": {\n \"source\": \"iana\"\n },\n \"application/passport\": {\n \"source\": \"iana\"\n },\n \"application/patch-ops-error+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xer\"]\n },\n \"application/pdf\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"pdf\"]\n },\n \"application/pdx\": {\n \"source\": \"iana\"\n },\n \"application/pem-certificate-chain\": {\n \"source\": \"iana\"\n },\n \"application/pgp-encrypted\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"pgp\"]\n },\n \"application/pgp-keys\": {\n \"source\": \"iana\",\n \"extensions\": [\"asc\"]\n },\n \"application/pgp-signature\": {\n \"source\": \"iana\",\n \"extensions\": [\"asc\",\"sig\"]\n },\n \"application/pics-rules\": {\n \"source\": \"apache\",\n \"extensions\": [\"prf\"]\n },\n \"application/pidf+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/pidf-diff+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/pkcs10\": {\n \"source\": \"iana\",\n \"extensions\": [\"p10\"]\n },\n \"application/pkcs12\": {\n \"source\": \"iana\"\n },\n \"application/pkcs7-mime\": {\n \"source\": \"iana\",\n \"extensions\": [\"p7m\",\"p7c\"]\n },\n \"application/pkcs7-signature\": {\n \"source\": \"iana\",\n \"extensions\": [\"p7s\"]\n },\n \"application/pkcs8\": {\n \"source\": \"iana\",\n \"extensions\": [\"p8\"]\n },\n \"application/pkcs8-encrypted\": {\n \"source\": \"iana\"\n },\n \"application/pkix-attr-cert\": {\n \"source\": \"iana\",\n \"extensions\": [\"ac\"]\n },\n \"application/pkix-cert\": {\n \"source\": \"iana\",\n \"extensions\": [\"cer\"]\n },\n \"application/pkix-crl\": {\n \"source\": \"iana\",\n \"extensions\": [\"crl\"]\n },\n \"application/pkix-pkipath\": {\n \"source\": \"iana\",\n \"extensions\": [\"pkipath\"]\n },\n \"application/pkixcmp\": {\n \"source\": \"iana\",\n \"extensions\": [\"pki\"]\n },\n \"application/pls+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"pls\"]\n },\n \"application/poc-settings+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/postscript\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ai\",\"eps\",\"ps\"]\n },\n \"application/ppsp-tracker+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/problem+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/problem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/provenance+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"provx\"]\n },\n \"application/prs.alvestrand.titrax-sheet\": {\n \"source\": \"iana\"\n },\n \"application/prs.cww\": {\n \"source\": \"iana\",\n \"extensions\": [\"cww\"]\n },\n \"application/prs.cyn\": {\n \"source\": \"iana\",\n \"charset\": \"7-BIT\"\n },\n \"application/prs.hpub+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/prs.nprend\": {\n \"source\": \"iana\"\n },\n \"application/prs.plucker\": {\n \"source\": \"iana\"\n },\n \"application/prs.rdf-xml-crypt\": {\n \"source\": \"iana\"\n },\n \"application/prs.xsf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/pskc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"pskcxml\"]\n },\n \"application/pvd+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/qsig\": {\n \"source\": \"iana\"\n },\n \"application/raml+yaml\": {\n \"compressible\": true,\n \"extensions\": [\"raml\"]\n },\n \"application/raptorfec\": {\n \"source\": \"iana\"\n },\n \"application/rdap+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/rdf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rdf\",\"owl\"]\n },\n \"application/reginfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rif\"]\n },\n \"application/relax-ng-compact-syntax\": {\n \"source\": \"iana\",\n \"extensions\": [\"rnc\"]\n },\n \"application/remote-printing\": {\n \"source\": \"iana\"\n },\n \"application/reputon+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/resource-lists+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rl\"]\n },\n \"application/resource-lists-diff+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rld\"]\n },\n \"application/rfc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/riscos\": {\n \"source\": \"iana\"\n },\n \"application/rlmi+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/rls-services+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rs\"]\n },\n \"application/route-apd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rapd\"]\n },\n \"application/route-s-tsid+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"sls\"]\n },\n \"application/route-usd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rusd\"]\n },\n \"application/rpki-ghostbusters\": {\n \"source\": \"iana\",\n \"extensions\": [\"gbr\"]\n },\n \"application/rpki-manifest\": {\n \"source\": \"iana\",\n \"extensions\": [\"mft\"]\n },\n \"application/rpki-publication\": {\n \"source\": \"iana\"\n },\n \"application/rpki-roa\": {\n \"source\": \"iana\",\n \"extensions\": [\"roa\"]\n },\n \"application/rpki-updown\": {\n \"source\": \"iana\"\n },\n \"application/rsd+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"rsd\"]\n },\n \"application/rss+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"rss\"]\n },\n \"application/rtf\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rtf\"]\n },\n \"application/rtploopback\": {\n \"source\": \"iana\"\n },\n \"application/rtx\": {\n \"source\": \"iana\"\n },\n \"application/samlassertion+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/samlmetadata+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sarif+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sarif-external-properties+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sbe\": {\n \"source\": \"iana\"\n },\n \"application/sbml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"sbml\"]\n },\n \"application/scaip+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/scim+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/scvp-cv-request\": {\n \"source\": \"iana\",\n \"extensions\": [\"scq\"]\n },\n \"application/scvp-cv-response\": {\n \"source\": \"iana\",\n \"extensions\": [\"scs\"]\n },\n \"application/scvp-vp-request\": {\n \"source\": \"iana\",\n \"extensions\": [\"spq\"]\n },\n \"application/scvp-vp-response\": {\n \"source\": \"iana\",\n \"extensions\": [\"spp\"]\n },\n \"application/sdp\": {\n \"source\": \"iana\",\n \"extensions\": [\"sdp\"]\n },\n \"application/secevent+jwt\": {\n \"source\": \"iana\"\n },\n \"application/senml+cbor\": {\n \"source\": \"iana\"\n },\n \"application/senml+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/senml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"senmlx\"]\n },\n \"application/senml-etch+cbor\": {\n \"source\": \"iana\"\n },\n \"application/senml-etch+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/senml-exi\": {\n \"source\": \"iana\"\n },\n \"application/sensml+cbor\": {\n \"source\": \"iana\"\n },\n \"application/sensml+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sensml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"sensmlx\"]\n },\n \"application/sensml-exi\": {\n \"source\": \"iana\"\n },\n \"application/sep+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sep-exi\": {\n \"source\": \"iana\"\n },\n \"application/session-info\": {\n \"source\": \"iana\"\n },\n \"application/set-payment\": {\n \"source\": \"iana\"\n },\n \"application/set-payment-initiation\": {\n \"source\": \"iana\",\n \"extensions\": [\"setpay\"]\n },\n \"application/set-registration\": {\n \"source\": \"iana\"\n },\n \"application/set-registration-initiation\": {\n \"source\": \"iana\",\n \"extensions\": [\"setreg\"]\n },\n \"application/sgml\": {\n \"source\": \"iana\"\n },\n \"application/sgml-open-catalog\": {\n \"source\": \"iana\"\n },\n \"application/shf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"shf\"]\n },\n \"application/sieve\": {\n \"source\": \"iana\",\n \"extensions\": [\"siv\",\"sieve\"]\n },\n \"application/simple-filter+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/simple-message-summary\": {\n \"source\": \"iana\"\n },\n \"application/simplesymbolcontainer\": {\n \"source\": \"iana\"\n },\n \"application/sipc\": {\n \"source\": \"iana\"\n },\n \"application/slate\": {\n \"source\": \"iana\"\n },\n \"application/smil\": {\n \"source\": \"iana\"\n },\n \"application/smil+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"smi\",\"smil\"]\n },\n \"application/smpte336m\": {\n \"source\": \"iana\"\n },\n \"application/soap+fastinfoset\": {\n \"source\": \"iana\"\n },\n \"application/soap+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sparql-query\": {\n \"source\": \"iana\",\n \"extensions\": [\"rq\"]\n },\n \"application/sparql-results+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"srx\"]\n },\n \"application/spdx+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/spirits-event+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/sql\": {\n \"source\": \"iana\"\n },\n \"application/srgs\": {\n \"source\": \"iana\",\n \"extensions\": [\"gram\"]\n },\n \"application/srgs+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"grxml\"]\n },\n \"application/sru+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"sru\"]\n },\n \"application/ssdl+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"ssdl\"]\n },\n \"application/ssml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ssml\"]\n },\n \"application/stix+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/swid+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"swidtag\"]\n },\n \"application/tamp-apex-update\": {\n \"source\": \"iana\"\n },\n \"application/tamp-apex-update-confirm\": {\n \"source\": \"iana\"\n },\n \"application/tamp-community-update\": {\n \"source\": \"iana\"\n },\n \"application/tamp-community-update-confirm\": {\n \"source\": \"iana\"\n },\n \"application/tamp-error\": {\n \"source\": \"iana\"\n },\n \"application/tamp-sequence-adjust\": {\n \"source\": \"iana\"\n },\n \"application/tamp-sequence-adjust-confirm\": {\n \"source\": \"iana\"\n },\n \"application/tamp-status-query\": {\n \"source\": \"iana\"\n },\n \"application/tamp-status-response\": {\n \"source\": \"iana\"\n },\n \"application/tamp-update\": {\n \"source\": \"iana\"\n },\n \"application/tamp-update-confirm\": {\n \"source\": \"iana\"\n },\n \"application/tar\": {\n \"compressible\": true\n },\n \"application/taxii+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/td+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/tei+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"tei\",\"teicorpus\"]\n },\n \"application/tetra_isi\": {\n \"source\": \"iana\"\n },\n \"application/thraud+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"tfi\"]\n },\n \"application/timestamp-query\": {\n \"source\": \"iana\"\n },\n \"application/timestamp-reply\": {\n \"source\": \"iana\"\n },\n \"application/timestamped-data\": {\n \"source\": \"iana\",\n \"extensions\": [\"tsd\"]\n },\n \"application/tlsrpt+gzip\": {\n \"source\": \"iana\"\n },\n \"application/tlsrpt+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/tnauthlist\": {\n \"source\": \"iana\"\n },\n \"application/token-introspection+jwt\": {\n \"source\": \"iana\"\n },\n \"application/toml\": {\n \"compressible\": true,\n \"extensions\": [\"toml\"]\n },\n \"application/trickle-ice-sdpfrag\": {\n \"source\": \"iana\"\n },\n \"application/trig\": {\n \"source\": \"iana\",\n \"extensions\": [\"trig\"]\n },\n \"application/ttml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ttml\"]\n },\n \"application/tve-trigger\": {\n \"source\": \"iana\"\n },\n \"application/tzif\": {\n \"source\": \"iana\"\n },\n \"application/tzif-leap\": {\n \"source\": \"iana\"\n },\n \"application/ubjson\": {\n \"compressible\": false,\n \"extensions\": [\"ubj\"]\n },\n \"application/ulpfec\": {\n \"source\": \"iana\"\n },\n \"application/urc-grpsheet+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/urc-ressheet+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rsheet\"]\n },\n \"application/urc-targetdesc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"td\"]\n },\n \"application/urc-uisocketdesc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vcard+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vcard+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vemmi\": {\n \"source\": \"iana\"\n },\n \"application/vividence.scriptfile\": {\n \"source\": \"apache\"\n },\n \"application/vnd.1000minds.decision-model+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"1km\"]\n },\n \"application/vnd.3gpp-prose+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp-prose-pc3ch+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp-v2x-local-service-information\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.5gnas\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.access-transfer-events+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.bsf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.gmop+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.gtpc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.interworking-data\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.lpp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.mc-signalling-ear\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.mcdata-affiliation-command+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcdata-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcdata-payload\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.mcdata-service-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcdata-signalling\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.mcdata-ue-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcdata-user-profile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-affiliation-command+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-floor-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-location-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-mbms-usage-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-service-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-signed+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-ue-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-ue-init-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcptt-user-profile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-affiliation-command+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-affiliation-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-location-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-mbms-usage-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-service-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-transmission-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-ue-config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mcvideo-user-profile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.mid-call+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.ngap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.pfcp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.pic-bw-large\": {\n \"source\": \"iana\",\n \"extensions\": [\"plb\"]\n },\n \"application/vnd.3gpp.pic-bw-small\": {\n \"source\": \"iana\",\n \"extensions\": [\"psb\"]\n },\n \"application/vnd.3gpp.pic-bw-var\": {\n \"source\": \"iana\",\n \"extensions\": [\"pvb\"]\n },\n \"application/vnd.3gpp.s1ap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.sms\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp.sms+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.srvcc-ext+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.srvcc-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.state-and-event-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp.ussd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp2.bcmcsinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.3gpp2.sms\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3gpp2.tcap\": {\n \"source\": \"iana\",\n \"extensions\": [\"tcap\"]\n },\n \"application/vnd.3lightssoftware.imagescal\": {\n \"source\": \"iana\"\n },\n \"application/vnd.3m.post-it-notes\": {\n \"source\": \"iana\",\n \"extensions\": [\"pwn\"]\n },\n \"application/vnd.accpac.simply.aso\": {\n \"source\": \"iana\",\n \"extensions\": [\"aso\"]\n },\n \"application/vnd.accpac.simply.imp\": {\n \"source\": \"iana\",\n \"extensions\": [\"imp\"]\n },\n \"application/vnd.acucobol\": {\n \"source\": \"iana\",\n \"extensions\": [\"acu\"]\n },\n \"application/vnd.acucorp\": {\n \"source\": \"iana\",\n \"extensions\": [\"atc\",\"acutc\"]\n },\n \"application/vnd.adobe.air-application-installer-package+zip\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"air\"]\n },\n \"application/vnd.adobe.flash.movie\": {\n \"source\": \"iana\"\n },\n \"application/vnd.adobe.formscentral.fcdt\": {\n \"source\": \"iana\",\n \"extensions\": [\"fcdt\"]\n },\n \"application/vnd.adobe.fxp\": {\n \"source\": \"iana\",\n \"extensions\": [\"fxp\",\"fxpl\"]\n },\n \"application/vnd.adobe.partial-upload\": {\n \"source\": \"iana\"\n },\n \"application/vnd.adobe.xdp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xdp\"]\n },\n \"application/vnd.adobe.xfdf\": {\n \"source\": \"iana\",\n \"extensions\": [\"xfdf\"]\n },\n \"application/vnd.aether.imp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.afplinedata\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.afplinedata-pagedef\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.cmoca-cmresource\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.foca-charset\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.foca-codedfont\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.foca-codepage\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-cmtable\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-formdef\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-mediummap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-objectcontainer\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-overlay\": {\n \"source\": \"iana\"\n },\n \"application/vnd.afpc.modca-pagesegment\": {\n \"source\": \"iana\"\n },\n \"application/vnd.age\": {\n \"source\": \"iana\",\n \"extensions\": [\"age\"]\n },\n \"application/vnd.ah-barcode\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ahead.space\": {\n \"source\": \"iana\",\n \"extensions\": [\"ahead\"]\n },\n \"application/vnd.airzip.filesecure.azf\": {\n \"source\": \"iana\",\n \"extensions\": [\"azf\"]\n },\n \"application/vnd.airzip.filesecure.azs\": {\n \"source\": \"iana\",\n \"extensions\": [\"azs\"]\n },\n \"application/vnd.amadeus+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.amazon.ebook\": {\n \"source\": \"apache\",\n \"extensions\": [\"azw\"]\n },\n \"application/vnd.amazon.mobi8-ebook\": {\n \"source\": \"iana\"\n },\n \"application/vnd.americandynamics.acc\": {\n \"source\": \"iana\",\n \"extensions\": [\"acc\"]\n },\n \"application/vnd.amiga.ami\": {\n \"source\": \"iana\",\n \"extensions\": [\"ami\"]\n },\n \"application/vnd.amundsen.maze+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.android.ota\": {\n \"source\": \"iana\"\n },\n \"application/vnd.android.package-archive\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"apk\"]\n },\n \"application/vnd.anki\": {\n \"source\": \"iana\"\n },\n \"application/vnd.anser-web-certificate-issue-initiation\": {\n \"source\": \"iana\",\n \"extensions\": [\"cii\"]\n },\n \"application/vnd.anser-web-funds-transfer-initiation\": {\n \"source\": \"apache\",\n \"extensions\": [\"fti\"]\n },\n \"application/vnd.antix.game-component\": {\n \"source\": \"iana\",\n \"extensions\": [\"atx\"]\n },\n \"application/vnd.apache.arrow.file\": {\n \"source\": \"iana\"\n },\n \"application/vnd.apache.arrow.stream\": {\n \"source\": \"iana\"\n },\n \"application/vnd.apache.thrift.binary\": {\n \"source\": \"iana\"\n },\n \"application/vnd.apache.thrift.compact\": {\n \"source\": \"iana\"\n },\n \"application/vnd.apache.thrift.json\": {\n \"source\": \"iana\"\n },\n \"application/vnd.api+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.aplextor.warrp+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.apothekende.reservation+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.apple.installer+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mpkg\"]\n },\n \"application/vnd.apple.keynote\": {\n \"source\": \"iana\",\n \"extensions\": [\"key\"]\n },\n \"application/vnd.apple.mpegurl\": {\n \"source\": \"iana\",\n \"extensions\": [\"m3u8\"]\n },\n \"application/vnd.apple.numbers\": {\n \"source\": \"iana\",\n \"extensions\": [\"numbers\"]\n },\n \"application/vnd.apple.pages\": {\n \"source\": \"iana\",\n \"extensions\": [\"pages\"]\n },\n \"application/vnd.apple.pkpass\": {\n \"compressible\": false,\n \"extensions\": [\"pkpass\"]\n },\n \"application/vnd.arastra.swi\": {\n \"source\": \"iana\"\n },\n \"application/vnd.aristanetworks.swi\": {\n \"source\": \"iana\",\n \"extensions\": [\"swi\"]\n },\n \"application/vnd.artisan+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.artsquare\": {\n \"source\": \"iana\"\n },\n \"application/vnd.astraea-software.iota\": {\n \"source\": \"iana\",\n \"extensions\": [\"iota\"]\n },\n \"application/vnd.audiograph\": {\n \"source\": \"iana\",\n \"extensions\": [\"aep\"]\n },\n \"application/vnd.autopackage\": {\n \"source\": \"iana\"\n },\n \"application/vnd.avalon+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.avistar+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.balsamiq.bmml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"bmml\"]\n },\n \"application/vnd.balsamiq.bmpr\": {\n \"source\": \"iana\"\n },\n \"application/vnd.banana-accounting\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bbf.usp.error\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bbf.usp.msg\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bbf.usp.msg+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.bekitzur-stech+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.bint.med-content\": {\n \"source\": \"iana\"\n },\n \"application/vnd.biopax.rdf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.blink-idb-value-wrapper\": {\n \"source\": \"iana\"\n },\n \"application/vnd.blueice.multipass\": {\n \"source\": \"iana\",\n \"extensions\": [\"mpm\"]\n },\n \"application/vnd.bluetooth.ep.oob\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bluetooth.le.oob\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bmi\": {\n \"source\": \"iana\",\n \"extensions\": [\"bmi\"]\n },\n \"application/vnd.bpf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.bpf3\": {\n \"source\": \"iana\"\n },\n \"application/vnd.businessobjects\": {\n \"source\": \"iana\",\n \"extensions\": [\"rep\"]\n },\n \"application/vnd.byu.uapi+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cab-jscript\": {\n \"source\": \"iana\"\n },\n \"application/vnd.canon-cpdl\": {\n \"source\": \"iana\"\n },\n \"application/vnd.canon-lips\": {\n \"source\": \"iana\"\n },\n \"application/vnd.capasystems-pg+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cendio.thinlinc.clientconf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.century-systems.tcp_stream\": {\n \"source\": \"iana\"\n },\n \"application/vnd.chemdraw+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"cdxml\"]\n },\n \"application/vnd.chess-pgn\": {\n \"source\": \"iana\"\n },\n \"application/vnd.chipnuts.karaoke-mmd\": {\n \"source\": \"iana\",\n \"extensions\": [\"mmd\"]\n },\n \"application/vnd.ciedi\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cinderella\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdy\"]\n },\n \"application/vnd.cirpack.isdn-ext\": {\n \"source\": \"iana\"\n },\n \"application/vnd.citationstyles.style+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"csl\"]\n },\n \"application/vnd.claymore\": {\n \"source\": \"iana\",\n \"extensions\": [\"cla\"]\n },\n \"application/vnd.cloanto.rp9\": {\n \"source\": \"iana\",\n \"extensions\": [\"rp9\"]\n },\n \"application/vnd.clonk.c4group\": {\n \"source\": \"iana\",\n \"extensions\": [\"c4g\",\"c4d\",\"c4f\",\"c4p\",\"c4u\"]\n },\n \"application/vnd.cluetrust.cartomobile-config\": {\n \"source\": \"iana\",\n \"extensions\": [\"c11amc\"]\n },\n \"application/vnd.cluetrust.cartomobile-config-pkg\": {\n \"source\": \"iana\",\n \"extensions\": [\"c11amz\"]\n },\n \"application/vnd.coffeescript\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.document\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.document-template\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.presentation\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.presentation-template\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.spreadsheet\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collabio.xodocuments.spreadsheet-template\": {\n \"source\": \"iana\"\n },\n \"application/vnd.collection+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.collection.doc+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.collection.next+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.comicbook+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.comicbook-rar\": {\n \"source\": \"iana\"\n },\n \"application/vnd.commerce-battelle\": {\n \"source\": \"iana\"\n },\n \"application/vnd.commonspace\": {\n \"source\": \"iana\",\n \"extensions\": [\"csp\"]\n },\n \"application/vnd.contact.cmsg\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdbcmsg\"]\n },\n \"application/vnd.coreos.ignition+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cosmocaller\": {\n \"source\": \"iana\",\n \"extensions\": [\"cmc\"]\n },\n \"application/vnd.crick.clicker\": {\n \"source\": \"iana\",\n \"extensions\": [\"clkx\"]\n },\n \"application/vnd.crick.clicker.keyboard\": {\n \"source\": \"iana\",\n \"extensions\": [\"clkk\"]\n },\n \"application/vnd.crick.clicker.palette\": {\n \"source\": \"iana\",\n \"extensions\": [\"clkp\"]\n },\n \"application/vnd.crick.clicker.template\": {\n \"source\": \"iana\",\n \"extensions\": [\"clkt\"]\n },\n \"application/vnd.crick.clicker.wordbank\": {\n \"source\": \"iana\",\n \"extensions\": [\"clkw\"]\n },\n \"application/vnd.criticaltools.wbs+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wbs\"]\n },\n \"application/vnd.cryptii.pipe+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.crypto-shade-file\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cryptomator.encrypted\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cryptomator.vault\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ctc-posml\": {\n \"source\": \"iana\",\n \"extensions\": [\"pml\"]\n },\n \"application/vnd.ctct.ws+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cups-pdf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cups-postscript\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cups-ppd\": {\n \"source\": \"iana\",\n \"extensions\": [\"ppd\"]\n },\n \"application/vnd.cups-raster\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cups-raw\": {\n \"source\": \"iana\"\n },\n \"application/vnd.curl\": {\n \"source\": \"iana\"\n },\n \"application/vnd.curl.car\": {\n \"source\": \"apache\",\n \"extensions\": [\"car\"]\n },\n \"application/vnd.curl.pcurl\": {\n \"source\": \"apache\",\n \"extensions\": [\"pcurl\"]\n },\n \"application/vnd.cyan.dean.root+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cybank\": {\n \"source\": \"iana\"\n },\n \"application/vnd.cyclonedx+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.cyclonedx+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.d2l.coursepackage1p0+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.d3m-dataset\": {\n \"source\": \"iana\"\n },\n \"application/vnd.d3m-problem\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dart\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"dart\"]\n },\n \"application/vnd.data-vision.rdz\": {\n \"source\": \"iana\",\n \"extensions\": [\"rdz\"]\n },\n \"application/vnd.datapackage+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dataresource+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dbf\": {\n \"source\": \"iana\",\n \"extensions\": [\"dbf\"]\n },\n \"application/vnd.debian.binary-package\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dece.data\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvf\",\"uvvf\",\"uvd\",\"uvvd\"]\n },\n \"application/vnd.dece.ttml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"uvt\",\"uvvt\"]\n },\n \"application/vnd.dece.unspecified\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvx\",\"uvvx\"]\n },\n \"application/vnd.dece.zip\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvz\",\"uvvz\"]\n },\n \"application/vnd.denovo.fcselayout-link\": {\n \"source\": \"iana\",\n \"extensions\": [\"fe_launch\"]\n },\n \"application/vnd.desmume.movie\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dir-bi.plate-dl-nosuffix\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dm.delegation+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dna\": {\n \"source\": \"iana\",\n \"extensions\": [\"dna\"]\n },\n \"application/vnd.document+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dolby.mlp\": {\n \"source\": \"apache\",\n \"extensions\": [\"mlp\"]\n },\n \"application/vnd.dolby.mobile.1\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dolby.mobile.2\": {\n \"source\": \"iana\"\n },\n \"application/vnd.doremir.scorecloud-binary-document\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dpgraph\": {\n \"source\": \"iana\",\n \"extensions\": [\"dpg\"]\n },\n \"application/vnd.dreamfactory\": {\n \"source\": \"iana\",\n \"extensions\": [\"dfac\"]\n },\n \"application/vnd.drive+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ds-keypoint\": {\n \"source\": \"apache\",\n \"extensions\": [\"kpxx\"]\n },\n \"application/vnd.dtg.local\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dtg.local.flash\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dtg.local.html\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ait\": {\n \"source\": \"iana\",\n \"extensions\": [\"ait\"]\n },\n \"application/vnd.dvb.dvbisl+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.dvbj\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.esgcontainer\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ipdcdftnotifaccess\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ipdcesgaccess\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ipdcesgaccess2\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ipdcesgpdd\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.ipdcroaming\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.iptv.alfec-base\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.iptv.alfec-enhancement\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.notif-aggregate-root+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-container+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-generic+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-ia-msglist+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-ia-registration-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-ia-registration-response+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.notif-init+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.dvb.pfr\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dvb.service\": {\n \"source\": \"iana\",\n \"extensions\": [\"svc\"]\n },\n \"application/vnd.dxr\": {\n \"source\": \"iana\"\n },\n \"application/vnd.dynageo\": {\n \"source\": \"iana\",\n \"extensions\": [\"geo\"]\n },\n \"application/vnd.dzr\": {\n \"source\": \"iana\"\n },\n \"application/vnd.easykaraoke.cdgdownload\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecdis-update\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecip.rlp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.eclipse.ditto+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ecowin.chart\": {\n \"source\": \"iana\",\n \"extensions\": [\"mag\"]\n },\n \"application/vnd.ecowin.filerequest\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecowin.fileupdate\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecowin.series\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecowin.seriesrequest\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ecowin.seriesupdate\": {\n \"source\": \"iana\"\n },\n \"application/vnd.efi.img\": {\n \"source\": \"iana\"\n },\n \"application/vnd.efi.iso\": {\n \"source\": \"iana\"\n },\n \"application/vnd.emclient.accessrequest+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.enliven\": {\n \"source\": \"iana\",\n \"extensions\": [\"nml\"]\n },\n \"application/vnd.enphase.envoy\": {\n \"source\": \"iana\"\n },\n \"application/vnd.eprints.data+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.epson.esf\": {\n \"source\": \"iana\",\n \"extensions\": [\"esf\"]\n },\n \"application/vnd.epson.msf\": {\n \"source\": \"iana\",\n \"extensions\": [\"msf\"]\n },\n \"application/vnd.epson.quickanime\": {\n \"source\": \"iana\",\n \"extensions\": [\"qam\"]\n },\n \"application/vnd.epson.salt\": {\n \"source\": \"iana\",\n \"extensions\": [\"slt\"]\n },\n \"application/vnd.epson.ssf\": {\n \"source\": \"iana\",\n \"extensions\": [\"ssf\"]\n },\n \"application/vnd.ericsson.quickcall\": {\n \"source\": \"iana\"\n },\n \"application/vnd.espass-espass+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.eszigno3+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"es3\",\"et3\"]\n },\n \"application/vnd.etsi.aoc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.asic-e+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.etsi.asic-s+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.etsi.cug+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvcommand+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvdiscovery+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvprofile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvsad-bc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvsad-cod+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvsad-npvr+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvservice+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvsync+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.iptvueprofile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.mcid+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.mheg5\": {\n \"source\": \"iana\"\n },\n \"application/vnd.etsi.overload-control-policy-dataset+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.pstn+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.sci+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.simservs+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.timestamp-token\": {\n \"source\": \"iana\"\n },\n \"application/vnd.etsi.tsl+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.etsi.tsl.der\": {\n \"source\": \"iana\"\n },\n \"application/vnd.eu.kasparian.car+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.eudora.data\": {\n \"source\": \"iana\"\n },\n \"application/vnd.evolv.ecig.profile\": {\n \"source\": \"iana\"\n },\n \"application/vnd.evolv.ecig.settings\": {\n \"source\": \"iana\"\n },\n \"application/vnd.evolv.ecig.theme\": {\n \"source\": \"iana\"\n },\n \"application/vnd.exstream-empower+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.exstream-package\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ezpix-album\": {\n \"source\": \"iana\",\n \"extensions\": [\"ez2\"]\n },\n \"application/vnd.ezpix-package\": {\n \"source\": \"iana\",\n \"extensions\": [\"ez3\"]\n },\n \"application/vnd.f-secure.mobile\": {\n \"source\": \"iana\"\n },\n \"application/vnd.familysearch.gedcom+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.fastcopy-disk-image\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fdf\": {\n \"source\": \"iana\",\n \"extensions\": [\"fdf\"]\n },\n \"application/vnd.fdsn.mseed\": {\n \"source\": \"iana\",\n \"extensions\": [\"mseed\"]\n },\n \"application/vnd.fdsn.seed\": {\n \"source\": \"iana\",\n \"extensions\": [\"seed\",\"dataless\"]\n },\n \"application/vnd.ffsns\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ficlab.flb+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.filmit.zfc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fints\": {\n \"source\": \"iana\"\n },\n \"application/vnd.firemonkeys.cloudcell\": {\n \"source\": \"iana\"\n },\n \"application/vnd.flographit\": {\n \"source\": \"iana\",\n \"extensions\": [\"gph\"]\n },\n \"application/vnd.fluxtime.clip\": {\n \"source\": \"iana\",\n \"extensions\": [\"ftc\"]\n },\n \"application/vnd.font-fontforge-sfd\": {\n \"source\": \"iana\"\n },\n \"application/vnd.framemaker\": {\n \"source\": \"iana\",\n \"extensions\": [\"fm\",\"frame\",\"maker\",\"book\"]\n },\n \"application/vnd.frogans.fnc\": {\n \"source\": \"iana\",\n \"extensions\": [\"fnc\"]\n },\n \"application/vnd.frogans.ltf\": {\n \"source\": \"iana\",\n \"extensions\": [\"ltf\"]\n },\n \"application/vnd.fsc.weblaunch\": {\n \"source\": \"iana\",\n \"extensions\": [\"fsc\"]\n },\n \"application/vnd.fujifilm.fb.docuworks\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujifilm.fb.docuworks.binder\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujifilm.fb.docuworks.container\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujifilm.fb.jfi+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.fujitsu.oasys\": {\n \"source\": \"iana\",\n \"extensions\": [\"oas\"]\n },\n \"application/vnd.fujitsu.oasys2\": {\n \"source\": \"iana\",\n \"extensions\": [\"oa2\"]\n },\n \"application/vnd.fujitsu.oasys3\": {\n \"source\": \"iana\",\n \"extensions\": [\"oa3\"]\n },\n \"application/vnd.fujitsu.oasysgp\": {\n \"source\": \"iana\",\n \"extensions\": [\"fg5\"]\n },\n \"application/vnd.fujitsu.oasysprs\": {\n \"source\": \"iana\",\n \"extensions\": [\"bh2\"]\n },\n \"application/vnd.fujixerox.art-ex\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujixerox.art4\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujixerox.ddd\": {\n \"source\": \"iana\",\n \"extensions\": [\"ddd\"]\n },\n \"application/vnd.fujixerox.docuworks\": {\n \"source\": \"iana\",\n \"extensions\": [\"xdw\"]\n },\n \"application/vnd.fujixerox.docuworks.binder\": {\n \"source\": \"iana\",\n \"extensions\": [\"xbd\"]\n },\n \"application/vnd.fujixerox.docuworks.container\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fujixerox.hbpl\": {\n \"source\": \"iana\"\n },\n \"application/vnd.fut-misnet\": {\n \"source\": \"iana\"\n },\n \"application/vnd.futoin+cbor\": {\n \"source\": \"iana\"\n },\n \"application/vnd.futoin+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.fuzzysheet\": {\n \"source\": \"iana\",\n \"extensions\": [\"fzs\"]\n },\n \"application/vnd.genomatix.tuxedo\": {\n \"source\": \"iana\",\n \"extensions\": [\"txd\"]\n },\n \"application/vnd.gentics.grd+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.geo+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.geocube+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.geogebra.file\": {\n \"source\": \"iana\",\n \"extensions\": [\"ggb\"]\n },\n \"application/vnd.geogebra.slides\": {\n \"source\": \"iana\"\n },\n \"application/vnd.geogebra.tool\": {\n \"source\": \"iana\",\n \"extensions\": [\"ggt\"]\n },\n \"application/vnd.geometry-explorer\": {\n \"source\": \"iana\",\n \"extensions\": [\"gex\",\"gre\"]\n },\n \"application/vnd.geonext\": {\n \"source\": \"iana\",\n \"extensions\": [\"gxt\"]\n },\n \"application/vnd.geoplan\": {\n \"source\": \"iana\",\n \"extensions\": [\"g2w\"]\n },\n \"application/vnd.geospace\": {\n \"source\": \"iana\",\n \"extensions\": [\"g3w\"]\n },\n \"application/vnd.gerber\": {\n \"source\": \"iana\"\n },\n \"application/vnd.globalplatform.card-content-mgt\": {\n \"source\": \"iana\"\n },\n \"application/vnd.globalplatform.card-content-mgt-response\": {\n \"source\": \"iana\"\n },\n \"application/vnd.gmx\": {\n \"source\": \"iana\",\n \"extensions\": [\"gmx\"]\n },\n \"application/vnd.google-apps.document\": {\n \"compressible\": false,\n \"extensions\": [\"gdoc\"]\n },\n \"application/vnd.google-apps.presentation\": {\n \"compressible\": false,\n \"extensions\": [\"gslides\"]\n },\n \"application/vnd.google-apps.spreadsheet\": {\n \"compressible\": false,\n \"extensions\": [\"gsheet\"]\n },\n \"application/vnd.google-earth.kml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"kml\"]\n },\n \"application/vnd.google-earth.kmz\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"kmz\"]\n },\n \"application/vnd.gov.sk.e-form+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.gov.sk.e-form+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.gov.sk.xmldatacontainer+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.grafeq\": {\n \"source\": \"iana\",\n \"extensions\": [\"gqf\",\"gqs\"]\n },\n \"application/vnd.gridmp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.groove-account\": {\n \"source\": \"iana\",\n \"extensions\": [\"gac\"]\n },\n \"application/vnd.groove-help\": {\n \"source\": \"iana\",\n \"extensions\": [\"ghf\"]\n },\n \"application/vnd.groove-identity-message\": {\n \"source\": \"iana\",\n \"extensions\": [\"gim\"]\n },\n \"application/vnd.groove-injector\": {\n \"source\": \"iana\",\n \"extensions\": [\"grv\"]\n },\n \"application/vnd.groove-tool-message\": {\n \"source\": \"iana\",\n \"extensions\": [\"gtm\"]\n },\n \"application/vnd.groove-tool-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"tpl\"]\n },\n \"application/vnd.groove-vcard\": {\n \"source\": \"iana\",\n \"extensions\": [\"vcg\"]\n },\n \"application/vnd.hal+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hal+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"hal\"]\n },\n \"application/vnd.handheld-entertainment+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"zmm\"]\n },\n \"application/vnd.hbci\": {\n \"source\": \"iana\",\n \"extensions\": [\"hbci\"]\n },\n \"application/vnd.hc+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hcl-bireports\": {\n \"source\": \"iana\"\n },\n \"application/vnd.hdt\": {\n \"source\": \"iana\"\n },\n \"application/vnd.heroku+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hhe.lesson-player\": {\n \"source\": \"iana\",\n \"extensions\": [\"les\"]\n },\n \"application/vnd.hl7cda+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.hl7v2+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.hp-hpgl\": {\n \"source\": \"iana\",\n \"extensions\": [\"hpgl\"]\n },\n \"application/vnd.hp-hpid\": {\n \"source\": \"iana\",\n \"extensions\": [\"hpid\"]\n },\n \"application/vnd.hp-hps\": {\n \"source\": \"iana\",\n \"extensions\": [\"hps\"]\n },\n \"application/vnd.hp-jlyt\": {\n \"source\": \"iana\",\n \"extensions\": [\"jlt\"]\n },\n \"application/vnd.hp-pcl\": {\n \"source\": \"iana\",\n \"extensions\": [\"pcl\"]\n },\n \"application/vnd.hp-pclxl\": {\n \"source\": \"iana\",\n \"extensions\": [\"pclxl\"]\n },\n \"application/vnd.httphone\": {\n \"source\": \"iana\"\n },\n \"application/vnd.hydrostatix.sof-data\": {\n \"source\": \"iana\",\n \"extensions\": [\"sfd-hdstx\"]\n },\n \"application/vnd.hyper+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hyper-item+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hyperdrive+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.hzn-3d-crossword\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ibm.afplinedata\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ibm.electronic-media\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ibm.minipay\": {\n \"source\": \"iana\",\n \"extensions\": [\"mpy\"]\n },\n \"application/vnd.ibm.modcap\": {\n \"source\": \"iana\",\n \"extensions\": [\"afp\",\"listafp\",\"list3820\"]\n },\n \"application/vnd.ibm.rights-management\": {\n \"source\": \"iana\",\n \"extensions\": [\"irm\"]\n },\n \"application/vnd.ibm.secure-container\": {\n \"source\": \"iana\",\n \"extensions\": [\"sc\"]\n },\n \"application/vnd.iccprofile\": {\n \"source\": \"iana\",\n \"extensions\": [\"icc\",\"icm\"]\n },\n \"application/vnd.ieee.1905\": {\n \"source\": \"iana\"\n },\n \"application/vnd.igloader\": {\n \"source\": \"iana\",\n \"extensions\": [\"igl\"]\n },\n \"application/vnd.imagemeter.folder+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.imagemeter.image+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.immervision-ivp\": {\n \"source\": \"iana\",\n \"extensions\": [\"ivp\"]\n },\n \"application/vnd.immervision-ivu\": {\n \"source\": \"iana\",\n \"extensions\": [\"ivu\"]\n },\n \"application/vnd.ims.imsccv1p1\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ims.imsccv1p2\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ims.imsccv1p3\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ims.lis.v2.result+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ims.lti.v2.toolconsumerprofile+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ims.lti.v2.toolproxy+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ims.lti.v2.toolproxy.id+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ims.lti.v2.toolsettings+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ims.lti.v2.toolsettings.simple+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.informedcontrol.rms+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.informix-visionary\": {\n \"source\": \"iana\"\n },\n \"application/vnd.infotech.project\": {\n \"source\": \"iana\"\n },\n \"application/vnd.infotech.project+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.innopath.wamp.notification\": {\n \"source\": \"iana\"\n },\n \"application/vnd.insors.igm\": {\n \"source\": \"iana\",\n \"extensions\": [\"igm\"]\n },\n \"application/vnd.intercon.formnet\": {\n \"source\": \"iana\",\n \"extensions\": [\"xpw\",\"xpx\"]\n },\n \"application/vnd.intergeo\": {\n \"source\": \"iana\",\n \"extensions\": [\"i2g\"]\n },\n \"application/vnd.intertrust.digibox\": {\n \"source\": \"iana\"\n },\n \"application/vnd.intertrust.nncp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.intu.qbo\": {\n \"source\": \"iana\",\n \"extensions\": [\"qbo\"]\n },\n \"application/vnd.intu.qfx\": {\n \"source\": \"iana\",\n \"extensions\": [\"qfx\"]\n },\n \"application/vnd.iptc.g2.catalogitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.conceptitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.knowledgeitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.newsitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.newsmessage+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.packageitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.iptc.g2.planningitem+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ipunplugged.rcprofile\": {\n \"source\": \"iana\",\n \"extensions\": [\"rcprofile\"]\n },\n \"application/vnd.irepository.package+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"irp\"]\n },\n \"application/vnd.is-xpr\": {\n \"source\": \"iana\",\n \"extensions\": [\"xpr\"]\n },\n \"application/vnd.isac.fcs\": {\n \"source\": \"iana\",\n \"extensions\": [\"fcs\"]\n },\n \"application/vnd.iso11783-10+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.jam\": {\n \"source\": \"iana\",\n \"extensions\": [\"jam\"]\n },\n \"application/vnd.japannet-directory-service\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-jpnstore-wakeup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-payment-wakeup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-registration\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-registration-wakeup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-setstore-wakeup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-verification\": {\n \"source\": \"iana\"\n },\n \"application/vnd.japannet-verification-wakeup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.jcp.javame.midlet-rms\": {\n \"source\": \"iana\",\n \"extensions\": [\"rms\"]\n },\n \"application/vnd.jisp\": {\n \"source\": \"iana\",\n \"extensions\": [\"jisp\"]\n },\n \"application/vnd.joost.joda-archive\": {\n \"source\": \"iana\",\n \"extensions\": [\"joda\"]\n },\n \"application/vnd.jsk.isdn-ngn\": {\n \"source\": \"iana\"\n },\n \"application/vnd.kahootz\": {\n \"source\": \"iana\",\n \"extensions\": [\"ktz\",\"ktr\"]\n },\n \"application/vnd.kde.karbon\": {\n \"source\": \"iana\",\n \"extensions\": [\"karbon\"]\n },\n \"application/vnd.kde.kchart\": {\n \"source\": \"iana\",\n \"extensions\": [\"chrt\"]\n },\n \"application/vnd.kde.kformula\": {\n \"source\": \"iana\",\n \"extensions\": [\"kfo\"]\n },\n \"application/vnd.kde.kivio\": {\n \"source\": \"iana\",\n \"extensions\": [\"flw\"]\n },\n \"application/vnd.kde.kontour\": {\n \"source\": \"iana\",\n \"extensions\": [\"kon\"]\n },\n \"application/vnd.kde.kpresenter\": {\n \"source\": \"iana\",\n \"extensions\": [\"kpr\",\"kpt\"]\n },\n \"application/vnd.kde.kspread\": {\n \"source\": \"iana\",\n \"extensions\": [\"ksp\"]\n },\n \"application/vnd.kde.kword\": {\n \"source\": \"iana\",\n \"extensions\": [\"kwd\",\"kwt\"]\n },\n \"application/vnd.kenameaapp\": {\n \"source\": \"iana\",\n \"extensions\": [\"htke\"]\n },\n \"application/vnd.kidspiration\": {\n \"source\": \"iana\",\n \"extensions\": [\"kia\"]\n },\n \"application/vnd.kinar\": {\n \"source\": \"iana\",\n \"extensions\": [\"kne\",\"knp\"]\n },\n \"application/vnd.koan\": {\n \"source\": \"iana\",\n \"extensions\": [\"skp\",\"skd\",\"skt\",\"skm\"]\n },\n \"application/vnd.kodak-descriptor\": {\n \"source\": \"iana\",\n \"extensions\": [\"sse\"]\n },\n \"application/vnd.las\": {\n \"source\": \"iana\"\n },\n \"application/vnd.las.las+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.las.las+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"lasxml\"]\n },\n \"application/vnd.laszip\": {\n \"source\": \"iana\"\n },\n \"application/vnd.leap+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.liberty-request+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.llamagraphics.life-balance.desktop\": {\n \"source\": \"iana\",\n \"extensions\": [\"lbd\"]\n },\n \"application/vnd.llamagraphics.life-balance.exchange+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"lbe\"]\n },\n \"application/vnd.logipipe.circuit+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.loom\": {\n \"source\": \"iana\"\n },\n \"application/vnd.lotus-1-2-3\": {\n \"source\": \"iana\",\n \"extensions\": [\"123\"]\n },\n \"application/vnd.lotus-approach\": {\n \"source\": \"iana\",\n \"extensions\": [\"apr\"]\n },\n \"application/vnd.lotus-freelance\": {\n \"source\": \"iana\",\n \"extensions\": [\"pre\"]\n },\n \"application/vnd.lotus-notes\": {\n \"source\": \"iana\",\n \"extensions\": [\"nsf\"]\n },\n \"application/vnd.lotus-organizer\": {\n \"source\": \"iana\",\n \"extensions\": [\"org\"]\n },\n \"application/vnd.lotus-screencam\": {\n \"source\": \"iana\",\n \"extensions\": [\"scm\"]\n },\n \"application/vnd.lotus-wordpro\": {\n \"source\": \"iana\",\n \"extensions\": [\"lwp\"]\n },\n \"application/vnd.macports.portpkg\": {\n \"source\": \"iana\",\n \"extensions\": [\"portpkg\"]\n },\n \"application/vnd.mapbox-vector-tile\": {\n \"source\": \"iana\",\n \"extensions\": [\"mvt\"]\n },\n \"application/vnd.marlin.drm.actiontoken+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.marlin.drm.conftoken+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.marlin.drm.license+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.marlin.drm.mdcf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mason+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.maxar.archive.3tz+zip\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"application/vnd.maxmind.maxmind-db\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mcd\": {\n \"source\": \"iana\",\n \"extensions\": [\"mcd\"]\n },\n \"application/vnd.medcalcdata\": {\n \"source\": \"iana\",\n \"extensions\": [\"mc1\"]\n },\n \"application/vnd.mediastation.cdkey\": {\n \"source\": \"iana\",\n \"extensions\": [\"cdkey\"]\n },\n \"application/vnd.meridian-slingshot\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mfer\": {\n \"source\": \"iana\",\n \"extensions\": [\"mwf\"]\n },\n \"application/vnd.mfmp\": {\n \"source\": \"iana\",\n \"extensions\": [\"mfm\"]\n },\n \"application/vnd.micro+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.micrografx.flo\": {\n \"source\": \"iana\",\n \"extensions\": [\"flo\"]\n },\n \"application/vnd.micrografx.igx\": {\n \"source\": \"iana\",\n \"extensions\": [\"igx\"]\n },\n \"application/vnd.microsoft.portable-executable\": {\n \"source\": \"iana\"\n },\n \"application/vnd.microsoft.windows.thumbnail-cache\": {\n \"source\": \"iana\"\n },\n \"application/vnd.miele+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.mif\": {\n \"source\": \"iana\",\n \"extensions\": [\"mif\"]\n },\n \"application/vnd.minisoft-hp3000-save\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mitsubishi.misty-guard.trustweb\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mobius.daf\": {\n \"source\": \"iana\",\n \"extensions\": [\"daf\"]\n },\n \"application/vnd.mobius.dis\": {\n \"source\": \"iana\",\n \"extensions\": [\"dis\"]\n },\n \"application/vnd.mobius.mbk\": {\n \"source\": \"iana\",\n \"extensions\": [\"mbk\"]\n },\n \"application/vnd.mobius.mqy\": {\n \"source\": \"iana\",\n \"extensions\": [\"mqy\"]\n },\n \"application/vnd.mobius.msl\": {\n \"source\": \"iana\",\n \"extensions\": [\"msl\"]\n },\n \"application/vnd.mobius.plc\": {\n \"source\": \"iana\",\n \"extensions\": [\"plc\"]\n },\n \"application/vnd.mobius.txf\": {\n \"source\": \"iana\",\n \"extensions\": [\"txf\"]\n },\n \"application/vnd.mophun.application\": {\n \"source\": \"iana\",\n \"extensions\": [\"mpn\"]\n },\n \"application/vnd.mophun.certificate\": {\n \"source\": \"iana\",\n \"extensions\": [\"mpc\"]\n },\n \"application/vnd.motorola.flexsuite\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.adsi\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.fis\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.gotap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.kmr\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.ttc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.flexsuite.wem\": {\n \"source\": \"iana\"\n },\n \"application/vnd.motorola.iprm\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mozilla.xul+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xul\"]\n },\n \"application/vnd.ms-3mfdocument\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-artgalry\": {\n \"source\": \"iana\",\n \"extensions\": [\"cil\"]\n },\n \"application/vnd.ms-asf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-cab-compressed\": {\n \"source\": \"iana\",\n \"extensions\": [\"cab\"]\n },\n \"application/vnd.ms-color.iccprofile\": {\n \"source\": \"apache\"\n },\n \"application/vnd.ms-excel\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"xls\",\"xlm\",\"xla\",\"xlc\",\"xlt\",\"xlw\"]\n },\n \"application/vnd.ms-excel.addin.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"xlam\"]\n },\n \"application/vnd.ms-excel.sheet.binary.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"xlsb\"]\n },\n \"application/vnd.ms-excel.sheet.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"xlsm\"]\n },\n \"application/vnd.ms-excel.template.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"xltm\"]\n },\n \"application/vnd.ms-fontobject\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"eot\"]\n },\n \"application/vnd.ms-htmlhelp\": {\n \"source\": \"iana\",\n \"extensions\": [\"chm\"]\n },\n \"application/vnd.ms-ims\": {\n \"source\": \"iana\",\n \"extensions\": [\"ims\"]\n },\n \"application/vnd.ms-lrm\": {\n \"source\": \"iana\",\n \"extensions\": [\"lrm\"]\n },\n \"application/vnd.ms-office.activex+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ms-officetheme\": {\n \"source\": \"iana\",\n \"extensions\": [\"thmx\"]\n },\n \"application/vnd.ms-opentype\": {\n \"source\": \"apache\",\n \"compressible\": true\n },\n \"application/vnd.ms-outlook\": {\n \"compressible\": false,\n \"extensions\": [\"msg\"]\n },\n \"application/vnd.ms-package.obfuscated-opentype\": {\n \"source\": \"apache\"\n },\n \"application/vnd.ms-pki.seccat\": {\n \"source\": \"apache\",\n \"extensions\": [\"cat\"]\n },\n \"application/vnd.ms-pki.stl\": {\n \"source\": \"apache\",\n \"extensions\": [\"stl\"]\n },\n \"application/vnd.ms-playready.initiator+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ms-powerpoint\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"ppt\",\"pps\",\"pot\"]\n },\n \"application/vnd.ms-powerpoint.addin.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"ppam\"]\n },\n \"application/vnd.ms-powerpoint.presentation.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"pptm\"]\n },\n \"application/vnd.ms-powerpoint.slide.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"sldm\"]\n },\n \"application/vnd.ms-powerpoint.slideshow.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"ppsm\"]\n },\n \"application/vnd.ms-powerpoint.template.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"potm\"]\n },\n \"application/vnd.ms-printdevicecapabilities+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ms-printing.printticket+xml\": {\n \"source\": \"apache\",\n \"compressible\": true\n },\n \"application/vnd.ms-printschematicket+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ms-project\": {\n \"source\": \"iana\",\n \"extensions\": [\"mpp\",\"mpt\"]\n },\n \"application/vnd.ms-tnef\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-windows.devicepairing\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-windows.nwprinting.oob\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-windows.printerpairing\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-windows.wsd.oob\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-wmdrm.lic-chlg-req\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-wmdrm.lic-resp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-wmdrm.meter-chlg-req\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-wmdrm.meter-resp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ms-word.document.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"docm\"]\n },\n \"application/vnd.ms-word.template.macroenabled.12\": {\n \"source\": \"iana\",\n \"extensions\": [\"dotm\"]\n },\n \"application/vnd.ms-works\": {\n \"source\": \"iana\",\n \"extensions\": [\"wps\",\"wks\",\"wcm\",\"wdb\"]\n },\n \"application/vnd.ms-wpl\": {\n \"source\": \"iana\",\n \"extensions\": [\"wpl\"]\n },\n \"application/vnd.ms-xpsdocument\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"xps\"]\n },\n \"application/vnd.msa-disk-image\": {\n \"source\": \"iana\"\n },\n \"application/vnd.mseq\": {\n \"source\": \"iana\",\n \"extensions\": [\"mseq\"]\n },\n \"application/vnd.msign\": {\n \"source\": \"iana\"\n },\n \"application/vnd.multiad.creator\": {\n \"source\": \"iana\"\n },\n \"application/vnd.multiad.creator.cif\": {\n \"source\": \"iana\"\n },\n \"application/vnd.music-niff\": {\n \"source\": \"iana\"\n },\n \"application/vnd.musician\": {\n \"source\": \"iana\",\n \"extensions\": [\"mus\"]\n },\n \"application/vnd.muvee.style\": {\n \"source\": \"iana\",\n \"extensions\": [\"msty\"]\n },\n \"application/vnd.mynfc\": {\n \"source\": \"iana\",\n \"extensions\": [\"taglet\"]\n },\n \"application/vnd.nacamar.ybrid+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.ncd.control\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ncd.reference\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nearst.inv+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nebumind.line\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nervana\": {\n \"source\": \"iana\"\n },\n \"application/vnd.netfpx\": {\n \"source\": \"iana\"\n },\n \"application/vnd.neurolanguage.nlu\": {\n \"source\": \"iana\",\n \"extensions\": [\"nlu\"]\n },\n \"application/vnd.nimn\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nintendo.nitro.rom\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nintendo.snes.rom\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nitf\": {\n \"source\": \"iana\",\n \"extensions\": [\"ntf\",\"nitf\"]\n },\n \"application/vnd.noblenet-directory\": {\n \"source\": \"iana\",\n \"extensions\": [\"nnd\"]\n },\n \"application/vnd.noblenet-sealer\": {\n \"source\": \"iana\",\n \"extensions\": [\"nns\"]\n },\n \"application/vnd.noblenet-web\": {\n \"source\": \"iana\",\n \"extensions\": [\"nnw\"]\n },\n \"application/vnd.nokia.catalogs\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.conml+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.conml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nokia.iptv.config+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nokia.isds-radio-presets\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.landmark+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.landmark+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nokia.landmarkcollection+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nokia.n-gage.ac+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ac\"]\n },\n \"application/vnd.nokia.n-gage.data\": {\n \"source\": \"iana\",\n \"extensions\": [\"ngdat\"]\n },\n \"application/vnd.nokia.n-gage.symbian.install\": {\n \"source\": \"iana\",\n \"extensions\": [\"n-gage\"]\n },\n \"application/vnd.nokia.ncd\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.pcd+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.nokia.pcd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.nokia.radio-preset\": {\n \"source\": \"iana\",\n \"extensions\": [\"rpst\"]\n },\n \"application/vnd.nokia.radio-presets\": {\n \"source\": \"iana\",\n \"extensions\": [\"rpss\"]\n },\n \"application/vnd.novadigm.edm\": {\n \"source\": \"iana\",\n \"extensions\": [\"edm\"]\n },\n \"application/vnd.novadigm.edx\": {\n \"source\": \"iana\",\n \"extensions\": [\"edx\"]\n },\n \"application/vnd.novadigm.ext\": {\n \"source\": \"iana\",\n \"extensions\": [\"ext\"]\n },\n \"application/vnd.ntt-local.content-share\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ntt-local.file-transfer\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ntt-local.ogw_remote-access\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ntt-local.sip-ta_remote\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ntt-local.sip-ta_tcp_stream\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oasis.opendocument.chart\": {\n \"source\": \"iana\",\n \"extensions\": [\"odc\"]\n },\n \"application/vnd.oasis.opendocument.chart-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"otc\"]\n },\n \"application/vnd.oasis.opendocument.database\": {\n \"source\": \"iana\",\n \"extensions\": [\"odb\"]\n },\n \"application/vnd.oasis.opendocument.formula\": {\n \"source\": \"iana\",\n \"extensions\": [\"odf\"]\n },\n \"application/vnd.oasis.opendocument.formula-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"odft\"]\n },\n \"application/vnd.oasis.opendocument.graphics\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"odg\"]\n },\n \"application/vnd.oasis.opendocument.graphics-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"otg\"]\n },\n \"application/vnd.oasis.opendocument.image\": {\n \"source\": \"iana\",\n \"extensions\": [\"odi\"]\n },\n \"application/vnd.oasis.opendocument.image-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"oti\"]\n },\n \"application/vnd.oasis.opendocument.presentation\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"odp\"]\n },\n \"application/vnd.oasis.opendocument.presentation-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"otp\"]\n },\n \"application/vnd.oasis.opendocument.spreadsheet\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"ods\"]\n },\n \"application/vnd.oasis.opendocument.spreadsheet-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"ots\"]\n },\n \"application/vnd.oasis.opendocument.text\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"odt\"]\n },\n \"application/vnd.oasis.opendocument.text-master\": {\n \"source\": \"iana\",\n \"extensions\": [\"odm\"]\n },\n \"application/vnd.oasis.opendocument.text-template\": {\n \"source\": \"iana\",\n \"extensions\": [\"ott\"]\n },\n \"application/vnd.oasis.opendocument.text-web\": {\n \"source\": \"iana\",\n \"extensions\": [\"oth\"]\n },\n \"application/vnd.obn\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ocf+cbor\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oci.image.manifest.v1+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oftn.l10n+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.contentaccessdownload+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.contentaccessstreaming+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.cspg-hexbinary\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oipf.dae.svg+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.dae.xhtml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.mippvcontrolmessage+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.pae.gem\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oipf.spdiscovery+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.spdlist+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.ueprofile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oipf.userprofile+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.olpc-sugar\": {\n \"source\": \"iana\",\n \"extensions\": [\"xo\"]\n },\n \"application/vnd.oma-scws-config\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma-scws-http-request\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma-scws-http-response\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.associated-procedure-parameter+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.drm-trigger+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.imd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.ltkm\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.notification+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.provisioningtrigger\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.sgboot\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.sgdd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.sgdu\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.simple-symbol-container\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.bcast.smartcard-trigger+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.sprov+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.bcast.stkm\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.cab-address-book+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.cab-feature-handler+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.cab-pcc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.cab-subs-invite+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.cab-user-prefs+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.dcd\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.dcdc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.dd2+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"dd2\"]\n },\n \"application/vnd.oma.drm.risd+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.group-usage-list+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.lwm2m+cbor\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.lwm2m+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.lwm2m+tlv\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.pal+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.poc.detailed-progress-report+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.poc.final-report+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.poc.groups+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.poc.invocation-descriptor+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.poc.optimized-progress-report+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.push\": {\n \"source\": \"iana\"\n },\n \"application/vnd.oma.scidm.messages+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oma.xcap-directory+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.omads-email+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.omads-file+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.omads-folder+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.omaloc-supl-init\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepager\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepagertamp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepagertamx\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepagertat\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepagertatp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.onepagertatx\": {\n \"source\": \"iana\"\n },\n \"application/vnd.openblox.game+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"obgx\"]\n },\n \"application/vnd.openblox.game-binary\": {\n \"source\": \"iana\"\n },\n \"application/vnd.openeye.oeb\": {\n \"source\": \"iana\"\n },\n \"application/vnd.openofficeorg.extension\": {\n \"source\": \"apache\",\n \"extensions\": [\"oxt\"]\n },\n \"application/vnd.openstreetmap.data+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"osm\"]\n },\n \"application/vnd.opentimestamps.ots\": {\n \"source\": \"iana\"\n },\n \"application/vnd.openxmlformats-officedocument.custom-properties+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.customxmlproperties+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawing+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.chart+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.extended-properties+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.comments+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.presentation\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"pptx\"]\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slide\": {\n \"source\": \"iana\",\n \"extensions\": [\"sldx\"]\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slide+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slideshow\": {\n \"source\": \"iana\",\n \"extensions\": [\"ppsx\"]\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.tags+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.template\": {\n \"source\": \"iana\",\n \"extensions\": [\"potx\"]\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"xlsx\"]\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\": {\n \"source\": \"iana\",\n \"extensions\": [\"xltx\"]\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.theme+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.themeoverride+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.vmldrawing\": {\n \"source\": \"iana\"\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"docx\"]\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.template\": {\n \"source\": \"iana\",\n \"extensions\": [\"dotx\"]\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-package.core-properties+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.openxmlformats-package.relationships+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oracle.resource+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.orange.indata\": {\n \"source\": \"iana\"\n },\n \"application/vnd.osa.netdeploy\": {\n \"source\": \"iana\"\n },\n \"application/vnd.osgeo.mapguide.package\": {\n \"source\": \"iana\",\n \"extensions\": [\"mgp\"]\n },\n \"application/vnd.osgi.bundle\": {\n \"source\": \"iana\"\n },\n \"application/vnd.osgi.dp\": {\n \"source\": \"iana\",\n \"extensions\": [\"dp\"]\n },\n \"application/vnd.osgi.subsystem\": {\n \"source\": \"iana\",\n \"extensions\": [\"esa\"]\n },\n \"application/vnd.otps.ct-kip+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.oxli.countgraph\": {\n \"source\": \"iana\"\n },\n \"application/vnd.pagerduty+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.palm\": {\n \"source\": \"iana\",\n \"extensions\": [\"pdb\",\"pqa\",\"oprc\"]\n },\n \"application/vnd.panoply\": {\n \"source\": \"iana\"\n },\n \"application/vnd.paos.xml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.patentdive\": {\n \"source\": \"iana\"\n },\n \"application/vnd.patientecommsdoc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.pawaafile\": {\n \"source\": \"iana\",\n \"extensions\": [\"paw\"]\n },\n \"application/vnd.pcos\": {\n \"source\": \"iana\"\n },\n \"application/vnd.pg.format\": {\n \"source\": \"iana\",\n \"extensions\": [\"str\"]\n },\n \"application/vnd.pg.osasli\": {\n \"source\": \"iana\",\n \"extensions\": [\"ei6\"]\n },\n \"application/vnd.piaccess.application-licence\": {\n \"source\": \"iana\"\n },\n \"application/vnd.picsel\": {\n \"source\": \"iana\",\n \"extensions\": [\"efif\"]\n },\n \"application/vnd.pmi.widget\": {\n \"source\": \"iana\",\n \"extensions\": [\"wg\"]\n },\n \"application/vnd.poc.group-advertisement+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.pocketlearn\": {\n \"source\": \"iana\",\n \"extensions\": [\"plf\"]\n },\n \"application/vnd.powerbuilder6\": {\n \"source\": \"iana\",\n \"extensions\": [\"pbd\"]\n },\n \"application/vnd.powerbuilder6-s\": {\n \"source\": \"iana\"\n },\n \"application/vnd.powerbuilder7\": {\n \"source\": \"iana\"\n },\n \"application/vnd.powerbuilder7-s\": {\n \"source\": \"iana\"\n },\n \"application/vnd.powerbuilder75\": {\n \"source\": \"iana\"\n },\n \"application/vnd.powerbuilder75-s\": {\n \"source\": \"iana\"\n },\n \"application/vnd.preminet\": {\n \"source\": \"iana\"\n },\n \"application/vnd.previewsystems.box\": {\n \"source\": \"iana\",\n \"extensions\": [\"box\"]\n },\n \"application/vnd.proteus.magazine\": {\n \"source\": \"iana\",\n \"extensions\": [\"mgz\"]\n },\n \"application/vnd.psfs\": {\n \"source\": \"iana\"\n },\n \"application/vnd.publishare-delta-tree\": {\n \"source\": \"iana\",\n \"extensions\": [\"qps\"]\n },\n \"application/vnd.pvi.ptid1\": {\n \"source\": \"iana\",\n \"extensions\": [\"ptid\"]\n },\n \"application/vnd.pwg-multiplexed\": {\n \"source\": \"iana\"\n },\n \"application/vnd.pwg-xhtml-print+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.qualcomm.brew-app-res\": {\n \"source\": \"iana\"\n },\n \"application/vnd.quarantainenet\": {\n \"source\": \"iana\"\n },\n \"application/vnd.quark.quarkxpress\": {\n \"source\": \"iana\",\n \"extensions\": [\"qxd\",\"qxt\",\"qwd\",\"qwt\",\"qxl\",\"qxb\"]\n },\n \"application/vnd.quobject-quoxdocument\": {\n \"source\": \"iana\"\n },\n \"application/vnd.radisys.moml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-audit+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-audit-conf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-audit-conn+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-audit-dialog+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-audit-stream+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-conf+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-base+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-fax-detect+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-fax-sendrecv+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-group+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-speech+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.radisys.msml-dialog-transform+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.rainstor.data\": {\n \"source\": \"iana\"\n },\n \"application/vnd.rapid\": {\n \"source\": \"iana\"\n },\n \"application/vnd.rar\": {\n \"source\": \"iana\",\n \"extensions\": [\"rar\"]\n },\n \"application/vnd.realvnc.bed\": {\n \"source\": \"iana\",\n \"extensions\": [\"bed\"]\n },\n \"application/vnd.recordare.musicxml\": {\n \"source\": \"iana\",\n \"extensions\": [\"mxl\"]\n },\n \"application/vnd.recordare.musicxml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"musicxml\"]\n },\n \"application/vnd.renlearn.rlprint\": {\n \"source\": \"iana\"\n },\n \"application/vnd.resilient.logic\": {\n \"source\": \"iana\"\n },\n \"application/vnd.restful+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.rig.cryptonote\": {\n \"source\": \"iana\",\n \"extensions\": [\"cryptonote\"]\n },\n \"application/vnd.rim.cod\": {\n \"source\": \"apache\",\n \"extensions\": [\"cod\"]\n },\n \"application/vnd.rn-realmedia\": {\n \"source\": \"apache\",\n \"extensions\": [\"rm\"]\n },\n \"application/vnd.rn-realmedia-vbr\": {\n \"source\": \"apache\",\n \"extensions\": [\"rmvb\"]\n },\n \"application/vnd.route66.link66+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"link66\"]\n },\n \"application/vnd.rs-274x\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ruckus.download\": {\n \"source\": \"iana\"\n },\n \"application/vnd.s3sms\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sailingtracker.track\": {\n \"source\": \"iana\",\n \"extensions\": [\"st\"]\n },\n \"application/vnd.sar\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sbm.cid\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sbm.mid2\": {\n \"source\": \"iana\"\n },\n \"application/vnd.scribus\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.3df\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.csf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.doc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.eml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.mht\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.net\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.ppt\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.tiff\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealed.xls\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealedmedia.softseal.html\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sealedmedia.softseal.pdf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.seemail\": {\n \"source\": \"iana\",\n \"extensions\": [\"see\"]\n },\n \"application/vnd.seis+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.sema\": {\n \"source\": \"iana\",\n \"extensions\": [\"sema\"]\n },\n \"application/vnd.semd\": {\n \"source\": \"iana\",\n \"extensions\": [\"semd\"]\n },\n \"application/vnd.semf\": {\n \"source\": \"iana\",\n \"extensions\": [\"semf\"]\n },\n \"application/vnd.shade-save-file\": {\n \"source\": \"iana\"\n },\n \"application/vnd.shana.informed.formdata\": {\n \"source\": \"iana\",\n \"extensions\": [\"ifm\"]\n },\n \"application/vnd.shana.informed.formtemplate\": {\n \"source\": \"iana\",\n \"extensions\": [\"itp\"]\n },\n \"application/vnd.shana.informed.interchange\": {\n \"source\": \"iana\",\n \"extensions\": [\"iif\"]\n },\n \"application/vnd.shana.informed.package\": {\n \"source\": \"iana\",\n \"extensions\": [\"ipk\"]\n },\n \"application/vnd.shootproof+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.shopkick+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.shp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.shx\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sigrok.session\": {\n \"source\": \"iana\"\n },\n \"application/vnd.simtech-mindmapper\": {\n \"source\": \"iana\",\n \"extensions\": [\"twd\",\"twds\"]\n },\n \"application/vnd.siren+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.smaf\": {\n \"source\": \"iana\",\n \"extensions\": [\"mmf\"]\n },\n \"application/vnd.smart.notebook\": {\n \"source\": \"iana\"\n },\n \"application/vnd.smart.teacher\": {\n \"source\": \"iana\",\n \"extensions\": [\"teacher\"]\n },\n \"application/vnd.snesdev-page-table\": {\n \"source\": \"iana\"\n },\n \"application/vnd.software602.filler.form+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"fo\"]\n },\n \"application/vnd.software602.filler.form-xml-zip\": {\n \"source\": \"iana\"\n },\n \"application/vnd.solent.sdkm+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"sdkm\",\"sdkd\"]\n },\n \"application/vnd.spotfire.dxp\": {\n \"source\": \"iana\",\n \"extensions\": [\"dxp\"]\n },\n \"application/vnd.spotfire.sfs\": {\n \"source\": \"iana\",\n \"extensions\": [\"sfs\"]\n },\n \"application/vnd.sqlite3\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sss-cod\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sss-dtf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sss-ntf\": {\n \"source\": \"iana\"\n },\n \"application/vnd.stardivision.calc\": {\n \"source\": \"apache\",\n \"extensions\": [\"sdc\"]\n },\n \"application/vnd.stardivision.draw\": {\n \"source\": \"apache\",\n \"extensions\": [\"sda\"]\n },\n \"application/vnd.stardivision.impress\": {\n \"source\": \"apache\",\n \"extensions\": [\"sdd\"]\n },\n \"application/vnd.stardivision.math\": {\n \"source\": \"apache\",\n \"extensions\": [\"smf\"]\n },\n \"application/vnd.stardivision.writer\": {\n \"source\": \"apache\",\n \"extensions\": [\"sdw\",\"vor\"]\n },\n \"application/vnd.stardivision.writer-global\": {\n \"source\": \"apache\",\n \"extensions\": [\"sgl\"]\n },\n \"application/vnd.stepmania.package\": {\n \"source\": \"iana\",\n \"extensions\": [\"smzip\"]\n },\n \"application/vnd.stepmania.stepchart\": {\n \"source\": \"iana\",\n \"extensions\": [\"sm\"]\n },\n \"application/vnd.street-stream\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sun.wadl+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wadl\"]\n },\n \"application/vnd.sun.xml.calc\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxc\"]\n },\n \"application/vnd.sun.xml.calc.template\": {\n \"source\": \"apache\",\n \"extensions\": [\"stc\"]\n },\n \"application/vnd.sun.xml.draw\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxd\"]\n },\n \"application/vnd.sun.xml.draw.template\": {\n \"source\": \"apache\",\n \"extensions\": [\"std\"]\n },\n \"application/vnd.sun.xml.impress\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxi\"]\n },\n \"application/vnd.sun.xml.impress.template\": {\n \"source\": \"apache\",\n \"extensions\": [\"sti\"]\n },\n \"application/vnd.sun.xml.math\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxm\"]\n },\n \"application/vnd.sun.xml.writer\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxw\"]\n },\n \"application/vnd.sun.xml.writer.global\": {\n \"source\": \"apache\",\n \"extensions\": [\"sxg\"]\n },\n \"application/vnd.sun.xml.writer.template\": {\n \"source\": \"apache\",\n \"extensions\": [\"stw\"]\n },\n \"application/vnd.sus-calendar\": {\n \"source\": \"iana\",\n \"extensions\": [\"sus\",\"susp\"]\n },\n \"application/vnd.svd\": {\n \"source\": \"iana\",\n \"extensions\": [\"svd\"]\n },\n \"application/vnd.swiftview-ics\": {\n \"source\": \"iana\"\n },\n \"application/vnd.sycle+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.syft+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.symbian.install\": {\n \"source\": \"apache\",\n \"extensions\": [\"sis\",\"sisx\"]\n },\n \"application/vnd.syncml+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"xsm\"]\n },\n \"application/vnd.syncml.dm+wbxml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"extensions\": [\"bdm\"]\n },\n \"application/vnd.syncml.dm+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"xdm\"]\n },\n \"application/vnd.syncml.dm.notification\": {\n \"source\": \"iana\"\n },\n \"application/vnd.syncml.dmddf+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.syncml.dmddf+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"ddf\"]\n },\n \"application/vnd.syncml.dmtnds+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.syncml.dmtnds+xml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true\n },\n \"application/vnd.syncml.ds.notification\": {\n \"source\": \"iana\"\n },\n \"application/vnd.tableschema+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.tao.intent-module-archive\": {\n \"source\": \"iana\",\n \"extensions\": [\"tao\"]\n },\n \"application/vnd.tcpdump.pcap\": {\n \"source\": \"iana\",\n \"extensions\": [\"pcap\",\"cap\",\"dmp\"]\n },\n \"application/vnd.think-cell.ppttc+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.tmd.mediaflex.api+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.tml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.tmobile-livetv\": {\n \"source\": \"iana\",\n \"extensions\": [\"tmo\"]\n },\n \"application/vnd.tri.onesource\": {\n \"source\": \"iana\"\n },\n \"application/vnd.trid.tpt\": {\n \"source\": \"iana\",\n \"extensions\": [\"tpt\"]\n },\n \"application/vnd.triscape.mxs\": {\n \"source\": \"iana\",\n \"extensions\": [\"mxs\"]\n },\n \"application/vnd.trueapp\": {\n \"source\": \"iana\",\n \"extensions\": [\"tra\"]\n },\n \"application/vnd.truedoc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ubisoft.webplayer\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ufdl\": {\n \"source\": \"iana\",\n \"extensions\": [\"ufd\",\"ufdl\"]\n },\n \"application/vnd.uiq.theme\": {\n \"source\": \"iana\",\n \"extensions\": [\"utz\"]\n },\n \"application/vnd.umajin\": {\n \"source\": \"iana\",\n \"extensions\": [\"umj\"]\n },\n \"application/vnd.unity\": {\n \"source\": \"iana\",\n \"extensions\": [\"unityweb\"]\n },\n \"application/vnd.uoml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"uoml\"]\n },\n \"application/vnd.uplanet.alert\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.alert-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.bearer-choice\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.bearer-choice-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.cacheop\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.cacheop-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.channel\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.channel-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.list\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.list-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.listcmd\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.listcmd-wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uplanet.signal\": {\n \"source\": \"iana\"\n },\n \"application/vnd.uri-map\": {\n \"source\": \"iana\"\n },\n \"application/vnd.valve.source.material\": {\n \"source\": \"iana\"\n },\n \"application/vnd.vcx\": {\n \"source\": \"iana\",\n \"extensions\": [\"vcx\"]\n },\n \"application/vnd.vd-study\": {\n \"source\": \"iana\"\n },\n \"application/vnd.vectorworks\": {\n \"source\": \"iana\"\n },\n \"application/vnd.vel+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.verimatrix.vcas\": {\n \"source\": \"iana\"\n },\n \"application/vnd.veritone.aion+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.veryant.thin\": {\n \"source\": \"iana\"\n },\n \"application/vnd.ves.encrypted\": {\n \"source\": \"iana\"\n },\n \"application/vnd.vidsoft.vidconference\": {\n \"source\": \"iana\"\n },\n \"application/vnd.visio\": {\n \"source\": \"iana\",\n \"extensions\": [\"vsd\",\"vst\",\"vss\",\"vsw\"]\n },\n \"application/vnd.visionary\": {\n \"source\": \"iana\",\n \"extensions\": [\"vis\"]\n },\n \"application/vnd.vividence.scriptfile\": {\n \"source\": \"iana\"\n },\n \"application/vnd.vsf\": {\n \"source\": \"iana\",\n \"extensions\": [\"vsf\"]\n },\n \"application/vnd.wap.sic\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wap.slc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wap.wbxml\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"extensions\": [\"wbxml\"]\n },\n \"application/vnd.wap.wmlc\": {\n \"source\": \"iana\",\n \"extensions\": [\"wmlc\"]\n },\n \"application/vnd.wap.wmlscriptc\": {\n \"source\": \"iana\",\n \"extensions\": [\"wmlsc\"]\n },\n \"application/vnd.webturbo\": {\n \"source\": \"iana\",\n \"extensions\": [\"wtb\"]\n },\n \"application/vnd.wfa.dpp\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wfa.p2p\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wfa.wsc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.windows.devicepairing\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wmc\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wmf.bootstrap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wolfram.mathematica\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wolfram.mathematica.package\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wolfram.player\": {\n \"source\": \"iana\",\n \"extensions\": [\"nbp\"]\n },\n \"application/vnd.wordperfect\": {\n \"source\": \"iana\",\n \"extensions\": [\"wpd\"]\n },\n \"application/vnd.wqd\": {\n \"source\": \"iana\",\n \"extensions\": [\"wqd\"]\n },\n \"application/vnd.wrq-hp3000-labelled\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wt.stf\": {\n \"source\": \"iana\",\n \"extensions\": [\"stf\"]\n },\n \"application/vnd.wv.csp+wbxml\": {\n \"source\": \"iana\"\n },\n \"application/vnd.wv.csp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.wv.ssp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.xacml+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.xara\": {\n \"source\": \"iana\",\n \"extensions\": [\"xar\"]\n },\n \"application/vnd.xfdl\": {\n \"source\": \"iana\",\n \"extensions\": [\"xfdl\"]\n },\n \"application/vnd.xfdl.webform\": {\n \"source\": \"iana\"\n },\n \"application/vnd.xmi+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vnd.xmpie.cpkg\": {\n \"source\": \"iana\"\n },\n \"application/vnd.xmpie.dpkg\": {\n \"source\": \"iana\"\n },\n \"application/vnd.xmpie.plan\": {\n \"source\": \"iana\"\n },\n \"application/vnd.xmpie.ppkg\": {\n \"source\": \"iana\"\n },\n \"application/vnd.xmpie.xlim\": {\n \"source\": \"iana\"\n },\n \"application/vnd.yamaha.hv-dic\": {\n \"source\": \"iana\",\n \"extensions\": [\"hvd\"]\n },\n \"application/vnd.yamaha.hv-script\": {\n \"source\": \"iana\",\n \"extensions\": [\"hvs\"]\n },\n \"application/vnd.yamaha.hv-voice\": {\n \"source\": \"iana\",\n \"extensions\": [\"hvp\"]\n },\n \"application/vnd.yamaha.openscoreformat\": {\n \"source\": \"iana\",\n \"extensions\": [\"osf\"]\n },\n \"application/vnd.yamaha.openscoreformat.osfpvg+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"osfpvg\"]\n },\n \"application/vnd.yamaha.remote-setup\": {\n \"source\": \"iana\"\n },\n \"application/vnd.yamaha.smaf-audio\": {\n \"source\": \"iana\",\n \"extensions\": [\"saf\"]\n },\n \"application/vnd.yamaha.smaf-phrase\": {\n \"source\": \"iana\",\n \"extensions\": [\"spf\"]\n },\n \"application/vnd.yamaha.through-ngn\": {\n \"source\": \"iana\"\n },\n \"application/vnd.yamaha.tunnel-udpencap\": {\n \"source\": \"iana\"\n },\n \"application/vnd.yaoweme\": {\n \"source\": \"iana\"\n },\n \"application/vnd.yellowriver-custom-menu\": {\n \"source\": \"iana\",\n \"extensions\": [\"cmp\"]\n },\n \"application/vnd.youtube.yt\": {\n \"source\": \"iana\"\n },\n \"application/vnd.zul\": {\n \"source\": \"iana\",\n \"extensions\": [\"zir\",\"zirz\"]\n },\n \"application/vnd.zzazz.deck+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"zaz\"]\n },\n \"application/voicexml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"vxml\"]\n },\n \"application/voucher-cms+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/vq-rtcpxr\": {\n \"source\": \"iana\"\n },\n \"application/wasm\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wasm\"]\n },\n \"application/watcherinfo+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wif\"]\n },\n \"application/webpush-options+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/whoispp-query\": {\n \"source\": \"iana\"\n },\n \"application/whoispp-response\": {\n \"source\": \"iana\"\n },\n \"application/widget\": {\n \"source\": \"iana\",\n \"extensions\": [\"wgt\"]\n },\n \"application/winhlp\": {\n \"source\": \"apache\",\n \"extensions\": [\"hlp\"]\n },\n \"application/wita\": {\n \"source\": \"iana\"\n },\n \"application/wordperfect5.1\": {\n \"source\": \"iana\"\n },\n \"application/wsdl+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wsdl\"]\n },\n \"application/wspolicy+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"wspolicy\"]\n },\n \"application/x-7z-compressed\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"7z\"]\n },\n \"application/x-abiword\": {\n \"source\": \"apache\",\n \"extensions\": [\"abw\"]\n },\n \"application/x-ace-compressed\": {\n \"source\": \"apache\",\n \"extensions\": [\"ace\"]\n },\n \"application/x-amf\": {\n \"source\": \"apache\"\n },\n \"application/x-apple-diskimage\": {\n \"source\": \"apache\",\n \"extensions\": [\"dmg\"]\n },\n \"application/x-arj\": {\n \"compressible\": false,\n \"extensions\": [\"arj\"]\n },\n \"application/x-authorware-bin\": {\n \"source\": \"apache\",\n \"extensions\": [\"aab\",\"x32\",\"u32\",\"vox\"]\n },\n \"application/x-authorware-map\": {\n \"source\": \"apache\",\n \"extensions\": [\"aam\"]\n },\n \"application/x-authorware-seg\": {\n \"source\": \"apache\",\n \"extensions\": [\"aas\"]\n },\n \"application/x-bcpio\": {\n \"source\": \"apache\",\n \"extensions\": [\"bcpio\"]\n },\n \"application/x-bdoc\": {\n \"compressible\": false,\n \"extensions\": [\"bdoc\"]\n },\n \"application/x-bittorrent\": {\n \"source\": \"apache\",\n \"extensions\": [\"torrent\"]\n },\n \"application/x-blorb\": {\n \"source\": \"apache\",\n \"extensions\": [\"blb\",\"blorb\"]\n },\n \"application/x-bzip\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"bz\"]\n },\n \"application/x-bzip2\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"bz2\",\"boz\"]\n },\n \"application/x-cbr\": {\n \"source\": \"apache\",\n \"extensions\": [\"cbr\",\"cba\",\"cbt\",\"cbz\",\"cb7\"]\n },\n \"application/x-cdlink\": {\n \"source\": \"apache\",\n \"extensions\": [\"vcd\"]\n },\n \"application/x-cfs-compressed\": {\n \"source\": \"apache\",\n \"extensions\": [\"cfs\"]\n },\n \"application/x-chat\": {\n \"source\": \"apache\",\n \"extensions\": [\"chat\"]\n },\n \"application/x-chess-pgn\": {\n \"source\": \"apache\",\n \"extensions\": [\"pgn\"]\n },\n \"application/x-chrome-extension\": {\n \"extensions\": [\"crx\"]\n },\n \"application/x-cocoa\": {\n \"source\": \"nginx\",\n \"extensions\": [\"cco\"]\n },\n \"application/x-compress\": {\n \"source\": \"apache\"\n },\n \"application/x-conference\": {\n \"source\": \"apache\",\n \"extensions\": [\"nsc\"]\n },\n \"application/x-cpio\": {\n \"source\": \"apache\",\n \"extensions\": [\"cpio\"]\n },\n \"application/x-csh\": {\n \"source\": \"apache\",\n \"extensions\": [\"csh\"]\n },\n \"application/x-deb\": {\n \"compressible\": false\n },\n \"application/x-debian-package\": {\n \"source\": \"apache\",\n \"extensions\": [\"deb\",\"udeb\"]\n },\n \"application/x-dgc-compressed\": {\n \"source\": \"apache\",\n \"extensions\": [\"dgc\"]\n },\n \"application/x-director\": {\n \"source\": \"apache\",\n \"extensions\": [\"dir\",\"dcr\",\"dxr\",\"cst\",\"cct\",\"cxt\",\"w3d\",\"fgd\",\"swa\"]\n },\n \"application/x-doom\": {\n \"source\": \"apache\",\n \"extensions\": [\"wad\"]\n },\n \"application/x-dtbncx+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"ncx\"]\n },\n \"application/x-dtbook+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"dtb\"]\n },\n \"application/x-dtbresource+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"res\"]\n },\n \"application/x-dvi\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"dvi\"]\n },\n \"application/x-envoy\": {\n \"source\": \"apache\",\n \"extensions\": [\"evy\"]\n },\n \"application/x-eva\": {\n \"source\": \"apache\",\n \"extensions\": [\"eva\"]\n },\n \"application/x-font-bdf\": {\n \"source\": \"apache\",\n \"extensions\": [\"bdf\"]\n },\n \"application/x-font-dos\": {\n \"source\": \"apache\"\n },\n \"application/x-font-framemaker\": {\n \"source\": \"apache\"\n },\n \"application/x-font-ghostscript\": {\n \"source\": \"apache\",\n \"extensions\": [\"gsf\"]\n },\n \"application/x-font-libgrx\": {\n \"source\": \"apache\"\n },\n \"application/x-font-linux-psf\": {\n \"source\": \"apache\",\n \"extensions\": [\"psf\"]\n },\n \"application/x-font-pcf\": {\n \"source\": \"apache\",\n \"extensions\": [\"pcf\"]\n },\n \"application/x-font-snf\": {\n \"source\": \"apache\",\n \"extensions\": [\"snf\"]\n },\n \"application/x-font-speedo\": {\n \"source\": \"apache\"\n },\n \"application/x-font-sunos-news\": {\n \"source\": \"apache\"\n },\n \"application/x-font-type1\": {\n \"source\": \"apache\",\n \"extensions\": [\"pfa\",\"pfb\",\"pfm\",\"afm\"]\n },\n \"application/x-font-vfont\": {\n \"source\": \"apache\"\n },\n \"application/x-freearc\": {\n \"source\": \"apache\",\n \"extensions\": [\"arc\"]\n },\n \"application/x-futuresplash\": {\n \"source\": \"apache\",\n \"extensions\": [\"spl\"]\n },\n \"application/x-gca-compressed\": {\n \"source\": \"apache\",\n \"extensions\": [\"gca\"]\n },\n \"application/x-glulx\": {\n \"source\": \"apache\",\n \"extensions\": [\"ulx\"]\n },\n \"application/x-gnumeric\": {\n \"source\": \"apache\",\n \"extensions\": [\"gnumeric\"]\n },\n \"application/x-gramps-xml\": {\n \"source\": \"apache\",\n \"extensions\": [\"gramps\"]\n },\n \"application/x-gtar\": {\n \"source\": \"apache\",\n \"extensions\": [\"gtar\"]\n },\n \"application/x-gzip\": {\n \"source\": \"apache\"\n },\n \"application/x-hdf\": {\n \"source\": \"apache\",\n \"extensions\": [\"hdf\"]\n },\n \"application/x-httpd-php\": {\n \"compressible\": true,\n \"extensions\": [\"php\"]\n },\n \"application/x-install-instructions\": {\n \"source\": \"apache\",\n \"extensions\": [\"install\"]\n },\n \"application/x-iso9660-image\": {\n \"source\": \"apache\",\n \"extensions\": [\"iso\"]\n },\n \"application/x-iwork-keynote-sffkey\": {\n \"extensions\": [\"key\"]\n },\n \"application/x-iwork-numbers-sffnumbers\": {\n \"extensions\": [\"numbers\"]\n },\n \"application/x-iwork-pages-sffpages\": {\n \"extensions\": [\"pages\"]\n },\n \"application/x-java-archive-diff\": {\n \"source\": \"nginx\",\n \"extensions\": [\"jardiff\"]\n },\n \"application/x-java-jnlp-file\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"jnlp\"]\n },\n \"application/x-javascript\": {\n \"compressible\": true\n },\n \"application/x-keepass2\": {\n \"extensions\": [\"kdbx\"]\n },\n \"application/x-latex\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"latex\"]\n },\n \"application/x-lua-bytecode\": {\n \"extensions\": [\"luac\"]\n },\n \"application/x-lzh-compressed\": {\n \"source\": \"apache\",\n \"extensions\": [\"lzh\",\"lha\"]\n },\n \"application/x-makeself\": {\n \"source\": \"nginx\",\n \"extensions\": [\"run\"]\n },\n \"application/x-mie\": {\n \"source\": \"apache\",\n \"extensions\": [\"mie\"]\n },\n \"application/x-mobipocket-ebook\": {\n \"source\": \"apache\",\n \"extensions\": [\"prc\",\"mobi\"]\n },\n \"application/x-mpegurl\": {\n \"compressible\": false\n },\n \"application/x-ms-application\": {\n \"source\": \"apache\",\n \"extensions\": [\"application\"]\n },\n \"application/x-ms-shortcut\": {\n \"source\": \"apache\",\n \"extensions\": [\"lnk\"]\n },\n \"application/x-ms-wmd\": {\n \"source\": \"apache\",\n \"extensions\": [\"wmd\"]\n },\n \"application/x-ms-wmz\": {\n \"source\": \"apache\",\n \"extensions\": [\"wmz\"]\n },\n \"application/x-ms-xbap\": {\n \"source\": \"apache\",\n \"extensions\": [\"xbap\"]\n },\n \"application/x-msaccess\": {\n \"source\": \"apache\",\n \"extensions\": [\"mdb\"]\n },\n \"application/x-msbinder\": {\n \"source\": \"apache\",\n \"extensions\": [\"obd\"]\n },\n \"application/x-mscardfile\": {\n \"source\": \"apache\",\n \"extensions\": [\"crd\"]\n },\n \"application/x-msclip\": {\n \"source\": \"apache\",\n \"extensions\": [\"clp\"]\n },\n \"application/x-msdos-program\": {\n \"extensions\": [\"exe\"]\n },\n \"application/x-msdownload\": {\n \"source\": \"apache\",\n \"extensions\": [\"exe\",\"dll\",\"com\",\"bat\",\"msi\"]\n },\n \"application/x-msmediaview\": {\n \"source\": \"apache\",\n \"extensions\": [\"mvb\",\"m13\",\"m14\"]\n },\n \"application/x-msmetafile\": {\n \"source\": \"apache\",\n \"extensions\": [\"wmf\",\"wmz\",\"emf\",\"emz\"]\n },\n \"application/x-msmoney\": {\n \"source\": \"apache\",\n \"extensions\": [\"mny\"]\n },\n \"application/x-mspublisher\": {\n \"source\": \"apache\",\n \"extensions\": [\"pub\"]\n },\n \"application/x-msschedule\": {\n \"source\": \"apache\",\n \"extensions\": [\"scd\"]\n },\n \"application/x-msterminal\": {\n \"source\": \"apache\",\n \"extensions\": [\"trm\"]\n },\n \"application/x-mswrite\": {\n \"source\": \"apache\",\n \"extensions\": [\"wri\"]\n },\n \"application/x-netcdf\": {\n \"source\": \"apache\",\n \"extensions\": [\"nc\",\"cdf\"]\n },\n \"application/x-ns-proxy-autoconfig\": {\n \"compressible\": true,\n \"extensions\": [\"pac\"]\n },\n \"application/x-nzb\": {\n \"source\": \"apache\",\n \"extensions\": [\"nzb\"]\n },\n \"application/x-perl\": {\n \"source\": \"nginx\",\n \"extensions\": [\"pl\",\"pm\"]\n },\n \"application/x-pilot\": {\n \"source\": \"nginx\",\n \"extensions\": [\"prc\",\"pdb\"]\n },\n \"application/x-pkcs12\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"p12\",\"pfx\"]\n },\n \"application/x-pkcs7-certificates\": {\n \"source\": \"apache\",\n \"extensions\": [\"p7b\",\"spc\"]\n },\n \"application/x-pkcs7-certreqresp\": {\n \"source\": \"apache\",\n \"extensions\": [\"p7r\"]\n },\n \"application/x-pki-message\": {\n \"source\": \"iana\"\n },\n \"application/x-rar-compressed\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"rar\"]\n },\n \"application/x-redhat-package-manager\": {\n \"source\": \"nginx\",\n \"extensions\": [\"rpm\"]\n },\n \"application/x-research-info-systems\": {\n \"source\": \"apache\",\n \"extensions\": [\"ris\"]\n },\n \"application/x-sea\": {\n \"source\": \"nginx\",\n \"extensions\": [\"sea\"]\n },\n \"application/x-sh\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"sh\"]\n },\n \"application/x-shar\": {\n \"source\": \"apache\",\n \"extensions\": [\"shar\"]\n },\n \"application/x-shockwave-flash\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"swf\"]\n },\n \"application/x-silverlight-app\": {\n \"source\": \"apache\",\n \"extensions\": [\"xap\"]\n },\n \"application/x-sql\": {\n \"source\": \"apache\",\n \"extensions\": [\"sql\"]\n },\n \"application/x-stuffit\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"sit\"]\n },\n \"application/x-stuffitx\": {\n \"source\": \"apache\",\n \"extensions\": [\"sitx\"]\n },\n \"application/x-subrip\": {\n \"source\": \"apache\",\n \"extensions\": [\"srt\"]\n },\n \"application/x-sv4cpio\": {\n \"source\": \"apache\",\n \"extensions\": [\"sv4cpio\"]\n },\n \"application/x-sv4crc\": {\n \"source\": \"apache\",\n \"extensions\": [\"sv4crc\"]\n },\n \"application/x-t3vm-image\": {\n \"source\": \"apache\",\n \"extensions\": [\"t3\"]\n },\n \"application/x-tads\": {\n \"source\": \"apache\",\n \"extensions\": [\"gam\"]\n },\n \"application/x-tar\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"tar\"]\n },\n \"application/x-tcl\": {\n \"source\": \"apache\",\n \"extensions\": [\"tcl\",\"tk\"]\n },\n \"application/x-tex\": {\n \"source\": \"apache\",\n \"extensions\": [\"tex\"]\n },\n \"application/x-tex-tfm\": {\n \"source\": \"apache\",\n \"extensions\": [\"tfm\"]\n },\n \"application/x-texinfo\": {\n \"source\": \"apache\",\n \"extensions\": [\"texinfo\",\"texi\"]\n },\n \"application/x-tgif\": {\n \"source\": \"apache\",\n \"extensions\": [\"obj\"]\n },\n \"application/x-ustar\": {\n \"source\": \"apache\",\n \"extensions\": [\"ustar\"]\n },\n \"application/x-virtualbox-hdd\": {\n \"compressible\": true,\n \"extensions\": [\"hdd\"]\n },\n \"application/x-virtualbox-ova\": {\n \"compressible\": true,\n \"extensions\": [\"ova\"]\n },\n \"application/x-virtualbox-ovf\": {\n \"compressible\": true,\n \"extensions\": [\"ovf\"]\n },\n \"application/x-virtualbox-vbox\": {\n \"compressible\": true,\n \"extensions\": [\"vbox\"]\n },\n \"application/x-virtualbox-vbox-extpack\": {\n \"compressible\": false,\n \"extensions\": [\"vbox-extpack\"]\n },\n \"application/x-virtualbox-vdi\": {\n \"compressible\": true,\n \"extensions\": [\"vdi\"]\n },\n \"application/x-virtualbox-vhd\": {\n \"compressible\": true,\n \"extensions\": [\"vhd\"]\n },\n \"application/x-virtualbox-vmdk\": {\n \"compressible\": true,\n \"extensions\": [\"vmdk\"]\n },\n \"application/x-wais-source\": {\n \"source\": \"apache\",\n \"extensions\": [\"src\"]\n },\n \"application/x-web-app-manifest+json\": {\n \"compressible\": true,\n \"extensions\": [\"webapp\"]\n },\n \"application/x-www-form-urlencoded\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/x-x509-ca-cert\": {\n \"source\": \"iana\",\n \"extensions\": [\"der\",\"crt\",\"pem\"]\n },\n \"application/x-x509-ca-ra-cert\": {\n \"source\": \"iana\"\n },\n \"application/x-x509-next-ca-cert\": {\n \"source\": \"iana\"\n },\n \"application/x-xfig\": {\n \"source\": \"apache\",\n \"extensions\": [\"fig\"]\n },\n \"application/x-xliff+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"xlf\"]\n },\n \"application/x-xpinstall\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"xpi\"]\n },\n \"application/x-xz\": {\n \"source\": \"apache\",\n \"extensions\": [\"xz\"]\n },\n \"application/x-zmachine\": {\n \"source\": \"apache\",\n \"extensions\": [\"z1\",\"z2\",\"z3\",\"z4\",\"z5\",\"z6\",\"z7\",\"z8\"]\n },\n \"application/x400-bp\": {\n \"source\": \"iana\"\n },\n \"application/xacml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xaml+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"xaml\"]\n },\n \"application/xcap-att+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xav\"]\n },\n \"application/xcap-caps+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xca\"]\n },\n \"application/xcap-diff+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xdf\"]\n },\n \"application/xcap-el+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xel\"]\n },\n \"application/xcap-error+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xcap-ns+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xns\"]\n },\n \"application/xcon-conference-info+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xcon-conference-info-diff+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xenc+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xenc\"]\n },\n \"application/xhtml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xhtml\",\"xht\"]\n },\n \"application/xhtml-voice+xml\": {\n \"source\": \"apache\",\n \"compressible\": true\n },\n \"application/xliff+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xlf\"]\n },\n \"application/xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xml\",\"xsl\",\"xsd\",\"rng\"]\n },\n \"application/xml-dtd\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"dtd\"]\n },\n \"application/xml-external-parsed-entity\": {\n \"source\": \"iana\"\n },\n \"application/xml-patch+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xmpp+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/xop+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xop\"]\n },\n \"application/xproc+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"xpl\"]\n },\n \"application/xslt+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xsl\",\"xslt\"]\n },\n \"application/xspf+xml\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"xspf\"]\n },\n \"application/xv+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"mxml\",\"xhvml\",\"xvml\",\"xvm\"]\n },\n \"application/yang\": {\n \"source\": \"iana\",\n \"extensions\": [\"yang\"]\n },\n \"application/yang-data+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/yang-data+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/yang-patch+json\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/yang-patch+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"application/yin+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"yin\"]\n },\n \"application/zip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"zip\"]\n },\n \"application/zlib\": {\n \"source\": \"iana\"\n },\n \"application/zstd\": {\n \"source\": \"iana\"\n },\n \"audio/1d-interleaved-parityfec\": {\n \"source\": \"iana\"\n },\n \"audio/32kadpcm\": {\n \"source\": \"iana\"\n },\n \"audio/3gpp\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"3gpp\"]\n },\n \"audio/3gpp2\": {\n \"source\": \"iana\"\n },\n \"audio/aac\": {\n \"source\": \"iana\"\n },\n \"audio/ac3\": {\n \"source\": \"iana\"\n },\n \"audio/adpcm\": {\n \"source\": \"apache\",\n \"extensions\": [\"adp\"]\n },\n \"audio/amr\": {\n \"source\": \"iana\",\n \"extensions\": [\"amr\"]\n },\n \"audio/amr-wb\": {\n \"source\": \"iana\"\n },\n \"audio/amr-wb+\": {\n \"source\": \"iana\"\n },\n \"audio/aptx\": {\n \"source\": \"iana\"\n },\n \"audio/asc\": {\n \"source\": \"iana\"\n },\n \"audio/atrac-advanced-lossless\": {\n \"source\": \"iana\"\n },\n \"audio/atrac-x\": {\n \"source\": \"iana\"\n },\n \"audio/atrac3\": {\n \"source\": \"iana\"\n },\n \"audio/basic\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"au\",\"snd\"]\n },\n \"audio/bv16\": {\n \"source\": \"iana\"\n },\n \"audio/bv32\": {\n \"source\": \"iana\"\n },\n \"audio/clearmode\": {\n \"source\": \"iana\"\n },\n \"audio/cn\": {\n \"source\": \"iana\"\n },\n \"audio/dat12\": {\n \"source\": \"iana\"\n },\n \"audio/dls\": {\n \"source\": \"iana\"\n },\n \"audio/dsr-es201108\": {\n \"source\": \"iana\"\n },\n \"audio/dsr-es202050\": {\n \"source\": \"iana\"\n },\n \"audio/dsr-es202211\": {\n \"source\": \"iana\"\n },\n \"audio/dsr-es202212\": {\n \"source\": \"iana\"\n },\n \"audio/dv\": {\n \"source\": \"iana\"\n },\n \"audio/dvi4\": {\n \"source\": \"iana\"\n },\n \"audio/eac3\": {\n \"source\": \"iana\"\n },\n \"audio/encaprtp\": {\n \"source\": \"iana\"\n },\n \"audio/evrc\": {\n \"source\": \"iana\"\n },\n \"audio/evrc-qcp\": {\n \"source\": \"iana\"\n },\n \"audio/evrc0\": {\n \"source\": \"iana\"\n },\n \"audio/evrc1\": {\n \"source\": \"iana\"\n },\n \"audio/evrcb\": {\n \"source\": \"iana\"\n },\n \"audio/evrcb0\": {\n \"source\": \"iana\"\n },\n \"audio/evrcb1\": {\n \"source\": \"iana\"\n },\n \"audio/evrcnw\": {\n \"source\": \"iana\"\n },\n \"audio/evrcnw0\": {\n \"source\": \"iana\"\n },\n \"audio/evrcnw1\": {\n \"source\": \"iana\"\n },\n \"audio/evrcwb\": {\n \"source\": \"iana\"\n },\n \"audio/evrcwb0\": {\n \"source\": \"iana\"\n },\n \"audio/evrcwb1\": {\n \"source\": \"iana\"\n },\n \"audio/evs\": {\n \"source\": \"iana\"\n },\n \"audio/flexfec\": {\n \"source\": \"iana\"\n },\n \"audio/fwdred\": {\n \"source\": \"iana\"\n },\n \"audio/g711-0\": {\n \"source\": \"iana\"\n },\n \"audio/g719\": {\n \"source\": \"iana\"\n },\n \"audio/g722\": {\n \"source\": \"iana\"\n },\n \"audio/g7221\": {\n \"source\": \"iana\"\n },\n \"audio/g723\": {\n \"source\": \"iana\"\n },\n \"audio/g726-16\": {\n \"source\": \"iana\"\n },\n \"audio/g726-24\": {\n \"source\": \"iana\"\n },\n \"audio/g726-32\": {\n \"source\": \"iana\"\n },\n \"audio/g726-40\": {\n \"source\": \"iana\"\n },\n \"audio/g728\": {\n \"source\": \"iana\"\n },\n \"audio/g729\": {\n \"source\": \"iana\"\n },\n \"audio/g7291\": {\n \"source\": \"iana\"\n },\n \"audio/g729d\": {\n \"source\": \"iana\"\n },\n \"audio/g729e\": {\n \"source\": \"iana\"\n },\n \"audio/gsm\": {\n \"source\": \"iana\"\n },\n \"audio/gsm-efr\": {\n \"source\": \"iana\"\n },\n \"audio/gsm-hr-08\": {\n \"source\": \"iana\"\n },\n \"audio/ilbc\": {\n \"source\": \"iana\"\n },\n \"audio/ip-mr_v2.5\": {\n \"source\": \"iana\"\n },\n \"audio/isac\": {\n \"source\": \"apache\"\n },\n \"audio/l16\": {\n \"source\": \"iana\"\n },\n \"audio/l20\": {\n \"source\": \"iana\"\n },\n \"audio/l24\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"audio/l8\": {\n \"source\": \"iana\"\n },\n \"audio/lpc\": {\n \"source\": \"iana\"\n },\n \"audio/melp\": {\n \"source\": \"iana\"\n },\n \"audio/melp1200\": {\n \"source\": \"iana\"\n },\n \"audio/melp2400\": {\n \"source\": \"iana\"\n },\n \"audio/melp600\": {\n \"source\": \"iana\"\n },\n \"audio/mhas\": {\n \"source\": \"iana\"\n },\n \"audio/midi\": {\n \"source\": \"apache\",\n \"extensions\": [\"mid\",\"midi\",\"kar\",\"rmi\"]\n },\n \"audio/mobile-xmf\": {\n \"source\": \"iana\",\n \"extensions\": [\"mxmf\"]\n },\n \"audio/mp3\": {\n \"compressible\": false,\n \"extensions\": [\"mp3\"]\n },\n \"audio/mp4\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"m4a\",\"mp4a\"]\n },\n \"audio/mp4a-latm\": {\n \"source\": \"iana\"\n },\n \"audio/mpa\": {\n \"source\": \"iana\"\n },\n \"audio/mpa-robust\": {\n \"source\": \"iana\"\n },\n \"audio/mpeg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"mpga\",\"mp2\",\"mp2a\",\"mp3\",\"m2a\",\"m3a\"]\n },\n \"audio/mpeg4-generic\": {\n \"source\": \"iana\"\n },\n \"audio/musepack\": {\n \"source\": \"apache\"\n },\n \"audio/ogg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"oga\",\"ogg\",\"spx\",\"opus\"]\n },\n \"audio/opus\": {\n \"source\": \"iana\"\n },\n \"audio/parityfec\": {\n \"source\": \"iana\"\n },\n \"audio/pcma\": {\n \"source\": \"iana\"\n },\n \"audio/pcma-wb\": {\n \"source\": \"iana\"\n },\n \"audio/pcmu\": {\n \"source\": \"iana\"\n },\n \"audio/pcmu-wb\": {\n \"source\": \"iana\"\n },\n \"audio/prs.sid\": {\n \"source\": \"iana\"\n },\n \"audio/qcelp\": {\n \"source\": \"iana\"\n },\n \"audio/raptorfec\": {\n \"source\": \"iana\"\n },\n \"audio/red\": {\n \"source\": \"iana\"\n },\n \"audio/rtp-enc-aescm128\": {\n \"source\": \"iana\"\n },\n \"audio/rtp-midi\": {\n \"source\": \"iana\"\n },\n \"audio/rtploopback\": {\n \"source\": \"iana\"\n },\n \"audio/rtx\": {\n \"source\": \"iana\"\n },\n \"audio/s3m\": {\n \"source\": \"apache\",\n \"extensions\": [\"s3m\"]\n },\n \"audio/scip\": {\n \"source\": \"iana\"\n },\n \"audio/silk\": {\n \"source\": \"apache\",\n \"extensions\": [\"sil\"]\n },\n \"audio/smv\": {\n \"source\": \"iana\"\n },\n \"audio/smv-qcp\": {\n \"source\": \"iana\"\n },\n \"audio/smv0\": {\n \"source\": \"iana\"\n },\n \"audio/sofa\": {\n \"source\": \"iana\"\n },\n \"audio/sp-midi\": {\n \"source\": \"iana\"\n },\n \"audio/speex\": {\n \"source\": \"iana\"\n },\n \"audio/t140c\": {\n \"source\": \"iana\"\n },\n \"audio/t38\": {\n \"source\": \"iana\"\n },\n \"audio/telephone-event\": {\n \"source\": \"iana\"\n },\n \"audio/tetra_acelp\": {\n \"source\": \"iana\"\n },\n \"audio/tetra_acelp_bb\": {\n \"source\": \"iana\"\n },\n \"audio/tone\": {\n \"source\": \"iana\"\n },\n \"audio/tsvcis\": {\n \"source\": \"iana\"\n },\n \"audio/uemclip\": {\n \"source\": \"iana\"\n },\n \"audio/ulpfec\": {\n \"source\": \"iana\"\n },\n \"audio/usac\": {\n \"source\": \"iana\"\n },\n \"audio/vdvi\": {\n \"source\": \"iana\"\n },\n \"audio/vmr-wb\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.3gpp.iufp\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.4sb\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.audiokoz\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.celp\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.cisco.nse\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.cmles.radio-events\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.cns.anp1\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.cns.inf1\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dece.audio\": {\n \"source\": \"iana\",\n \"extensions\": [\"uva\",\"uvva\"]\n },\n \"audio/vnd.digital-winds\": {\n \"source\": \"iana\",\n \"extensions\": [\"eol\"]\n },\n \"audio/vnd.dlna.adts\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.heaac.1\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.heaac.2\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.mlp\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.mps\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.pl2\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.pl2x\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.pl2z\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dolby.pulse.1\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dra\": {\n \"source\": \"iana\",\n \"extensions\": [\"dra\"]\n },\n \"audio/vnd.dts\": {\n \"source\": \"iana\",\n \"extensions\": [\"dts\"]\n },\n \"audio/vnd.dts.hd\": {\n \"source\": \"iana\",\n \"extensions\": [\"dtshd\"]\n },\n \"audio/vnd.dts.uhd\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.dvb.file\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.everad.plj\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.hns.audio\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.lucent.voice\": {\n \"source\": \"iana\",\n \"extensions\": [\"lvp\"]\n },\n \"audio/vnd.ms-playready.media.pya\": {\n \"source\": \"iana\",\n \"extensions\": [\"pya\"]\n },\n \"audio/vnd.nokia.mobile-xmf\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.nortel.vbk\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.nuera.ecelp4800\": {\n \"source\": \"iana\",\n \"extensions\": [\"ecelp4800\"]\n },\n \"audio/vnd.nuera.ecelp7470\": {\n \"source\": \"iana\",\n \"extensions\": [\"ecelp7470\"]\n },\n \"audio/vnd.nuera.ecelp9600\": {\n \"source\": \"iana\",\n \"extensions\": [\"ecelp9600\"]\n },\n \"audio/vnd.octel.sbc\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.presonus.multitrack\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.qcelp\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.rhetorex.32kadpcm\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.rip\": {\n \"source\": \"iana\",\n \"extensions\": [\"rip\"]\n },\n \"audio/vnd.rn-realaudio\": {\n \"compressible\": false\n },\n \"audio/vnd.sealedmedia.softseal.mpeg\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.vmx.cvsd\": {\n \"source\": \"iana\"\n },\n \"audio/vnd.wave\": {\n \"compressible\": false\n },\n \"audio/vorbis\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"audio/vorbis-config\": {\n \"source\": \"iana\"\n },\n \"audio/wav\": {\n \"compressible\": false,\n \"extensions\": [\"wav\"]\n },\n \"audio/wave\": {\n \"compressible\": false,\n \"extensions\": [\"wav\"]\n },\n \"audio/webm\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"weba\"]\n },\n \"audio/x-aac\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"aac\"]\n },\n \"audio/x-aiff\": {\n \"source\": \"apache\",\n \"extensions\": [\"aif\",\"aiff\",\"aifc\"]\n },\n \"audio/x-caf\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"caf\"]\n },\n \"audio/x-flac\": {\n \"source\": \"apache\",\n \"extensions\": [\"flac\"]\n },\n \"audio/x-m4a\": {\n \"source\": \"nginx\",\n \"extensions\": [\"m4a\"]\n },\n \"audio/x-matroska\": {\n \"source\": \"apache\",\n \"extensions\": [\"mka\"]\n },\n \"audio/x-mpegurl\": {\n \"source\": \"apache\",\n \"extensions\": [\"m3u\"]\n },\n \"audio/x-ms-wax\": {\n \"source\": \"apache\",\n \"extensions\": [\"wax\"]\n },\n \"audio/x-ms-wma\": {\n \"source\": \"apache\",\n \"extensions\": [\"wma\"]\n },\n \"audio/x-pn-realaudio\": {\n \"source\": \"apache\",\n \"extensions\": [\"ram\",\"ra\"]\n },\n \"audio/x-pn-realaudio-plugin\": {\n \"source\": \"apache\",\n \"extensions\": [\"rmp\"]\n },\n \"audio/x-realaudio\": {\n \"source\": \"nginx\",\n \"extensions\": [\"ra\"]\n },\n \"audio/x-tta\": {\n \"source\": \"apache\"\n },\n \"audio/x-wav\": {\n \"source\": \"apache\",\n \"extensions\": [\"wav\"]\n },\n \"audio/xm\": {\n \"source\": \"apache\",\n \"extensions\": [\"xm\"]\n },\n \"chemical/x-cdx\": {\n \"source\": \"apache\",\n \"extensions\": [\"cdx\"]\n },\n \"chemical/x-cif\": {\n \"source\": \"apache\",\n \"extensions\": [\"cif\"]\n },\n \"chemical/x-cmdf\": {\n \"source\": \"apache\",\n \"extensions\": [\"cmdf\"]\n },\n \"chemical/x-cml\": {\n \"source\": \"apache\",\n \"extensions\": [\"cml\"]\n },\n \"chemical/x-csml\": {\n \"source\": \"apache\",\n \"extensions\": [\"csml\"]\n },\n \"chemical/x-pdb\": {\n \"source\": \"apache\"\n },\n \"chemical/x-xyz\": {\n \"source\": \"apache\",\n \"extensions\": [\"xyz\"]\n },\n \"font/collection\": {\n \"source\": \"iana\",\n \"extensions\": [\"ttc\"]\n },\n \"font/otf\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"otf\"]\n },\n \"font/sfnt\": {\n \"source\": \"iana\"\n },\n \"font/ttf\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ttf\"]\n },\n \"font/woff\": {\n \"source\": \"iana\",\n \"extensions\": [\"woff\"]\n },\n \"font/woff2\": {\n \"source\": \"iana\",\n \"extensions\": [\"woff2\"]\n },\n \"image/aces\": {\n \"source\": \"iana\",\n \"extensions\": [\"exr\"]\n },\n \"image/apng\": {\n \"compressible\": false,\n \"extensions\": [\"apng\"]\n },\n \"image/avci\": {\n \"source\": \"iana\",\n \"extensions\": [\"avci\"]\n },\n \"image/avcs\": {\n \"source\": \"iana\",\n \"extensions\": [\"avcs\"]\n },\n \"image/avif\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"avif\"]\n },\n \"image/bmp\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"bmp\"]\n },\n \"image/cgm\": {\n \"source\": \"iana\",\n \"extensions\": [\"cgm\"]\n },\n \"image/dicom-rle\": {\n \"source\": \"iana\",\n \"extensions\": [\"drle\"]\n },\n \"image/emf\": {\n \"source\": \"iana\",\n \"extensions\": [\"emf\"]\n },\n \"image/fits\": {\n \"source\": \"iana\",\n \"extensions\": [\"fits\"]\n },\n \"image/g3fax\": {\n \"source\": \"iana\",\n \"extensions\": [\"g3\"]\n },\n \"image/gif\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"gif\"]\n },\n \"image/heic\": {\n \"source\": \"iana\",\n \"extensions\": [\"heic\"]\n },\n \"image/heic-sequence\": {\n \"source\": \"iana\",\n \"extensions\": [\"heics\"]\n },\n \"image/heif\": {\n \"source\": \"iana\",\n \"extensions\": [\"heif\"]\n },\n \"image/heif-sequence\": {\n \"source\": \"iana\",\n \"extensions\": [\"heifs\"]\n },\n \"image/hej2k\": {\n \"source\": \"iana\",\n \"extensions\": [\"hej2\"]\n },\n \"image/hsj2\": {\n \"source\": \"iana\",\n \"extensions\": [\"hsj2\"]\n },\n \"image/ief\": {\n \"source\": \"iana\",\n \"extensions\": [\"ief\"]\n },\n \"image/jls\": {\n \"source\": \"iana\",\n \"extensions\": [\"jls\"]\n },\n \"image/jp2\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"jp2\",\"jpg2\"]\n },\n \"image/jpeg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"jpeg\",\"jpg\",\"jpe\"]\n },\n \"image/jph\": {\n \"source\": \"iana\",\n \"extensions\": [\"jph\"]\n },\n \"image/jphc\": {\n \"source\": \"iana\",\n \"extensions\": [\"jhc\"]\n },\n \"image/jpm\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"jpm\"]\n },\n \"image/jpx\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"jpx\",\"jpf\"]\n },\n \"image/jxr\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxr\"]\n },\n \"image/jxra\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxra\"]\n },\n \"image/jxrs\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxrs\"]\n },\n \"image/jxs\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxs\"]\n },\n \"image/jxsc\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxsc\"]\n },\n \"image/jxsi\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxsi\"]\n },\n \"image/jxss\": {\n \"source\": \"iana\",\n \"extensions\": [\"jxss\"]\n },\n \"image/ktx\": {\n \"source\": \"iana\",\n \"extensions\": [\"ktx\"]\n },\n \"image/ktx2\": {\n \"source\": \"iana\",\n \"extensions\": [\"ktx2\"]\n },\n \"image/naplps\": {\n \"source\": \"iana\"\n },\n \"image/pjpeg\": {\n \"compressible\": false\n },\n \"image/png\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"png\"]\n },\n \"image/prs.btif\": {\n \"source\": \"iana\",\n \"extensions\": [\"btif\"]\n },\n \"image/prs.pti\": {\n \"source\": \"iana\",\n \"extensions\": [\"pti\"]\n },\n \"image/pwg-raster\": {\n \"source\": \"iana\"\n },\n \"image/sgi\": {\n \"source\": \"apache\",\n \"extensions\": [\"sgi\"]\n },\n \"image/svg+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"svg\",\"svgz\"]\n },\n \"image/t38\": {\n \"source\": \"iana\",\n \"extensions\": [\"t38\"]\n },\n \"image/tiff\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"tif\",\"tiff\"]\n },\n \"image/tiff-fx\": {\n \"source\": \"iana\",\n \"extensions\": [\"tfx\"]\n },\n \"image/vnd.adobe.photoshop\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"psd\"]\n },\n \"image/vnd.airzip.accelerator.azv\": {\n \"source\": \"iana\",\n \"extensions\": [\"azv\"]\n },\n \"image/vnd.cns.inf2\": {\n \"source\": \"iana\"\n },\n \"image/vnd.dece.graphic\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvi\",\"uvvi\",\"uvg\",\"uvvg\"]\n },\n \"image/vnd.djvu\": {\n \"source\": \"iana\",\n \"extensions\": [\"djvu\",\"djv\"]\n },\n \"image/vnd.dvb.subtitle\": {\n \"source\": \"iana\",\n \"extensions\": [\"sub\"]\n },\n \"image/vnd.dwg\": {\n \"source\": \"iana\",\n \"extensions\": [\"dwg\"]\n },\n \"image/vnd.dxf\": {\n \"source\": \"iana\",\n \"extensions\": [\"dxf\"]\n },\n \"image/vnd.fastbidsheet\": {\n \"source\": \"iana\",\n \"extensions\": [\"fbs\"]\n },\n \"image/vnd.fpx\": {\n \"source\": \"iana\",\n \"extensions\": [\"fpx\"]\n },\n \"image/vnd.fst\": {\n \"source\": \"iana\",\n \"extensions\": [\"fst\"]\n },\n \"image/vnd.fujixerox.edmics-mmr\": {\n \"source\": \"iana\",\n \"extensions\": [\"mmr\"]\n },\n \"image/vnd.fujixerox.edmics-rlc\": {\n \"source\": \"iana\",\n \"extensions\": [\"rlc\"]\n },\n \"image/vnd.globalgraphics.pgb\": {\n \"source\": \"iana\"\n },\n \"image/vnd.microsoft.icon\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"ico\"]\n },\n \"image/vnd.mix\": {\n \"source\": \"iana\"\n },\n \"image/vnd.mozilla.apng\": {\n \"source\": \"iana\"\n },\n \"image/vnd.ms-dds\": {\n \"compressible\": true,\n \"extensions\": [\"dds\"]\n },\n \"image/vnd.ms-modi\": {\n \"source\": \"iana\",\n \"extensions\": [\"mdi\"]\n },\n \"image/vnd.ms-photo\": {\n \"source\": \"apache\",\n \"extensions\": [\"wdp\"]\n },\n \"image/vnd.net-fpx\": {\n \"source\": \"iana\",\n \"extensions\": [\"npx\"]\n },\n \"image/vnd.pco.b16\": {\n \"source\": \"iana\",\n \"extensions\": [\"b16\"]\n },\n \"image/vnd.radiance\": {\n \"source\": \"iana\"\n },\n \"image/vnd.sealed.png\": {\n \"source\": \"iana\"\n },\n \"image/vnd.sealedmedia.softseal.gif\": {\n \"source\": \"iana\"\n },\n \"image/vnd.sealedmedia.softseal.jpg\": {\n \"source\": \"iana\"\n },\n \"image/vnd.svf\": {\n \"source\": \"iana\"\n },\n \"image/vnd.tencent.tap\": {\n \"source\": \"iana\",\n \"extensions\": [\"tap\"]\n },\n \"image/vnd.valve.source.texture\": {\n \"source\": \"iana\",\n \"extensions\": [\"vtf\"]\n },\n \"image/vnd.wap.wbmp\": {\n \"source\": \"iana\",\n \"extensions\": [\"wbmp\"]\n },\n \"image/vnd.xiff\": {\n \"source\": \"iana\",\n \"extensions\": [\"xif\"]\n },\n \"image/vnd.zbrush.pcx\": {\n \"source\": \"iana\",\n \"extensions\": [\"pcx\"]\n },\n \"image/webp\": {\n \"source\": \"apache\",\n \"extensions\": [\"webp\"]\n },\n \"image/wmf\": {\n \"source\": \"iana\",\n \"extensions\": [\"wmf\"]\n },\n \"image/x-3ds\": {\n \"source\": \"apache\",\n \"extensions\": [\"3ds\"]\n },\n \"image/x-cmu-raster\": {\n \"source\": \"apache\",\n \"extensions\": [\"ras\"]\n },\n \"image/x-cmx\": {\n \"source\": \"apache\",\n \"extensions\": [\"cmx\"]\n },\n \"image/x-freehand\": {\n \"source\": \"apache\",\n \"extensions\": [\"fh\",\"fhc\",\"fh4\",\"fh5\",\"fh7\"]\n },\n \"image/x-icon\": {\n \"source\": \"apache\",\n \"compressible\": true,\n \"extensions\": [\"ico\"]\n },\n \"image/x-jng\": {\n \"source\": \"nginx\",\n \"extensions\": [\"jng\"]\n },\n \"image/x-mrsid-image\": {\n \"source\": \"apache\",\n \"extensions\": [\"sid\"]\n },\n \"image/x-ms-bmp\": {\n \"source\": \"nginx\",\n \"compressible\": true,\n \"extensions\": [\"bmp\"]\n },\n \"image/x-pcx\": {\n \"source\": \"apache\",\n \"extensions\": [\"pcx\"]\n },\n \"image/x-pict\": {\n \"source\": \"apache\",\n \"extensions\": [\"pic\",\"pct\"]\n },\n \"image/x-portable-anymap\": {\n \"source\": \"apache\",\n \"extensions\": [\"pnm\"]\n },\n \"image/x-portable-bitmap\": {\n \"source\": \"apache\",\n \"extensions\": [\"pbm\"]\n },\n \"image/x-portable-graymap\": {\n \"source\": \"apache\",\n \"extensions\": [\"pgm\"]\n },\n \"image/x-portable-pixmap\": {\n \"source\": \"apache\",\n \"extensions\": [\"ppm\"]\n },\n \"image/x-rgb\": {\n \"source\": \"apache\",\n \"extensions\": [\"rgb\"]\n },\n \"image/x-tga\": {\n \"source\": \"apache\",\n \"extensions\": [\"tga\"]\n },\n \"image/x-xbitmap\": {\n \"source\": \"apache\",\n \"extensions\": [\"xbm\"]\n },\n \"image/x-xcf\": {\n \"compressible\": false\n },\n \"image/x-xpixmap\": {\n \"source\": \"apache\",\n \"extensions\": [\"xpm\"]\n },\n \"image/x-xwindowdump\": {\n \"source\": \"apache\",\n \"extensions\": [\"xwd\"]\n },\n \"message/cpim\": {\n \"source\": \"iana\"\n },\n \"message/delivery-status\": {\n \"source\": \"iana\"\n },\n \"message/disposition-notification\": {\n \"source\": \"iana\",\n \"extensions\": [\n \"disposition-notification\"\n ]\n },\n \"message/external-body\": {\n \"source\": \"iana\"\n },\n \"message/feedback-report\": {\n \"source\": \"iana\"\n },\n \"message/global\": {\n \"source\": \"iana\",\n \"extensions\": [\"u8msg\"]\n },\n \"message/global-delivery-status\": {\n \"source\": \"iana\",\n \"extensions\": [\"u8dsn\"]\n },\n \"message/global-disposition-notification\": {\n \"source\": \"iana\",\n \"extensions\": [\"u8mdn\"]\n },\n \"message/global-headers\": {\n \"source\": \"iana\",\n \"extensions\": [\"u8hdr\"]\n },\n \"message/http\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"message/imdn+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"message/news\": {\n \"source\": \"iana\"\n },\n \"message/partial\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"message/rfc822\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"eml\",\"mime\"]\n },\n \"message/s-http\": {\n \"source\": \"iana\"\n },\n \"message/sip\": {\n \"source\": \"iana\"\n },\n \"message/sipfrag\": {\n \"source\": \"iana\"\n },\n \"message/tracking-status\": {\n \"source\": \"iana\"\n },\n \"message/vnd.si.simp\": {\n \"source\": \"iana\"\n },\n \"message/vnd.wfa.wsc\": {\n \"source\": \"iana\",\n \"extensions\": [\"wsc\"]\n },\n \"model/3mf\": {\n \"source\": \"iana\",\n \"extensions\": [\"3mf\"]\n },\n \"model/e57\": {\n \"source\": \"iana\"\n },\n \"model/gltf+json\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"gltf\"]\n },\n \"model/gltf-binary\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"glb\"]\n },\n \"model/iges\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"igs\",\"iges\"]\n },\n \"model/mesh\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"msh\",\"mesh\",\"silo\"]\n },\n \"model/mtl\": {\n \"source\": \"iana\",\n \"extensions\": [\"mtl\"]\n },\n \"model/obj\": {\n \"source\": \"iana\",\n \"extensions\": [\"obj\"]\n },\n \"model/step\": {\n \"source\": \"iana\"\n },\n \"model/step+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"stpx\"]\n },\n \"model/step+zip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"stpz\"]\n },\n \"model/step-xml+zip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"stpxz\"]\n },\n \"model/stl\": {\n \"source\": \"iana\",\n \"extensions\": [\"stl\"]\n },\n \"model/vnd.collada+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"dae\"]\n },\n \"model/vnd.dwf\": {\n \"source\": \"iana\",\n \"extensions\": [\"dwf\"]\n },\n \"model/vnd.flatland.3dml\": {\n \"source\": \"iana\"\n },\n \"model/vnd.gdl\": {\n \"source\": \"iana\",\n \"extensions\": [\"gdl\"]\n },\n \"model/vnd.gs-gdl\": {\n \"source\": \"apache\"\n },\n \"model/vnd.gs.gdl\": {\n \"source\": \"iana\"\n },\n \"model/vnd.gtw\": {\n \"source\": \"iana\",\n \"extensions\": [\"gtw\"]\n },\n \"model/vnd.moml+xml\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"model/vnd.mts\": {\n \"source\": \"iana\",\n \"extensions\": [\"mts\"]\n },\n \"model/vnd.opengex\": {\n \"source\": \"iana\",\n \"extensions\": [\"ogex\"]\n },\n \"model/vnd.parasolid.transmit.binary\": {\n \"source\": \"iana\",\n \"extensions\": [\"x_b\"]\n },\n \"model/vnd.parasolid.transmit.text\": {\n \"source\": \"iana\",\n \"extensions\": [\"x_t\"]\n },\n \"model/vnd.pytha.pyox\": {\n \"source\": \"iana\"\n },\n \"model/vnd.rosette.annotated-data-model\": {\n \"source\": \"iana\"\n },\n \"model/vnd.sap.vds\": {\n \"source\": \"iana\",\n \"extensions\": [\"vds\"]\n },\n \"model/vnd.usdz+zip\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"usdz\"]\n },\n \"model/vnd.valve.source.compiled-map\": {\n \"source\": \"iana\",\n \"extensions\": [\"bsp\"]\n },\n \"model/vnd.vtu\": {\n \"source\": \"iana\",\n \"extensions\": [\"vtu\"]\n },\n \"model/vrml\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"wrl\",\"vrml\"]\n },\n \"model/x3d+binary\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"x3db\",\"x3dbz\"]\n },\n \"model/x3d+fastinfoset\": {\n \"source\": \"iana\",\n \"extensions\": [\"x3db\"]\n },\n \"model/x3d+vrml\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"x3dv\",\"x3dvz\"]\n },\n \"model/x3d+xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"x3d\",\"x3dz\"]\n },\n \"model/x3d-vrml\": {\n \"source\": \"iana\",\n \"extensions\": [\"x3dv\"]\n },\n \"multipart/alternative\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"multipart/appledouble\": {\n \"source\": \"iana\"\n },\n \"multipart/byteranges\": {\n \"source\": \"iana\"\n },\n \"multipart/digest\": {\n \"source\": \"iana\"\n },\n \"multipart/encrypted\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"multipart/form-data\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"multipart/header-set\": {\n \"source\": \"iana\"\n },\n \"multipart/mixed\": {\n \"source\": \"iana\"\n },\n \"multipart/multilingual\": {\n \"source\": \"iana\"\n },\n \"multipart/parallel\": {\n \"source\": \"iana\"\n },\n \"multipart/related\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"multipart/report\": {\n \"source\": \"iana\"\n },\n \"multipart/signed\": {\n \"source\": \"iana\",\n \"compressible\": false\n },\n \"multipart/vnd.bint.med-plus\": {\n \"source\": \"iana\"\n },\n \"multipart/voice-message\": {\n \"source\": \"iana\"\n },\n \"multipart/x-mixed-replace\": {\n \"source\": \"iana\"\n },\n \"text/1d-interleaved-parityfec\": {\n \"source\": \"iana\"\n },\n \"text/cache-manifest\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"appcache\",\"manifest\"]\n },\n \"text/calendar\": {\n \"source\": \"iana\",\n \"extensions\": [\"ics\",\"ifb\"]\n },\n \"text/calender\": {\n \"compressible\": true\n },\n \"text/cmd\": {\n \"compressible\": true\n },\n \"text/coffeescript\": {\n \"extensions\": [\"coffee\",\"litcoffee\"]\n },\n \"text/cql\": {\n \"source\": \"iana\"\n },\n \"text/cql-expression\": {\n \"source\": \"iana\"\n },\n \"text/cql-identifier\": {\n \"source\": \"iana\"\n },\n \"text/css\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"css\"]\n },\n \"text/csv\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"csv\"]\n },\n \"text/csv-schema\": {\n \"source\": \"iana\"\n },\n \"text/directory\": {\n \"source\": \"iana\"\n },\n \"text/dns\": {\n \"source\": \"iana\"\n },\n \"text/ecmascript\": {\n \"source\": \"iana\"\n },\n \"text/encaprtp\": {\n \"source\": \"iana\"\n },\n \"text/enriched\": {\n \"source\": \"iana\"\n },\n \"text/fhirpath\": {\n \"source\": \"iana\"\n },\n \"text/flexfec\": {\n \"source\": \"iana\"\n },\n \"text/fwdred\": {\n \"source\": \"iana\"\n },\n \"text/gff3\": {\n \"source\": \"iana\"\n },\n \"text/grammar-ref-list\": {\n \"source\": \"iana\"\n },\n \"text/html\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"html\",\"htm\",\"shtml\"]\n },\n \"text/jade\": {\n \"extensions\": [\"jade\"]\n },\n \"text/javascript\": {\n \"source\": \"iana\",\n \"compressible\": true\n },\n \"text/jcr-cnd\": {\n \"source\": \"iana\"\n },\n \"text/jsx\": {\n \"compressible\": true,\n \"extensions\": [\"jsx\"]\n },\n \"text/less\": {\n \"compressible\": true,\n \"extensions\": [\"less\"]\n },\n \"text/markdown\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"markdown\",\"md\"]\n },\n \"text/mathml\": {\n \"source\": \"nginx\",\n \"extensions\": [\"mml\"]\n },\n \"text/mdx\": {\n \"compressible\": true,\n \"extensions\": [\"mdx\"]\n },\n \"text/mizar\": {\n \"source\": \"iana\"\n },\n \"text/n3\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"n3\"]\n },\n \"text/parameters\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\"\n },\n \"text/parityfec\": {\n \"source\": \"iana\"\n },\n \"text/plain\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"txt\",\"text\",\"conf\",\"def\",\"list\",\"log\",\"in\",\"ini\"]\n },\n \"text/provenance-notation\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\"\n },\n \"text/prs.fallenstein.rst\": {\n \"source\": \"iana\"\n },\n \"text/prs.lines.tag\": {\n \"source\": \"iana\",\n \"extensions\": [\"dsc\"]\n },\n \"text/prs.prop.logic\": {\n \"source\": \"iana\"\n },\n \"text/raptorfec\": {\n \"source\": \"iana\"\n },\n \"text/red\": {\n \"source\": \"iana\"\n },\n \"text/rfc822-headers\": {\n \"source\": \"iana\"\n },\n \"text/richtext\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rtx\"]\n },\n \"text/rtf\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"rtf\"]\n },\n \"text/rtp-enc-aescm128\": {\n \"source\": \"iana\"\n },\n \"text/rtploopback\": {\n \"source\": \"iana\"\n },\n \"text/rtx\": {\n \"source\": \"iana\"\n },\n \"text/sgml\": {\n \"source\": \"iana\",\n \"extensions\": [\"sgml\",\"sgm\"]\n },\n \"text/shaclc\": {\n \"source\": \"iana\"\n },\n \"text/shex\": {\n \"source\": \"iana\",\n \"extensions\": [\"shex\"]\n },\n \"text/slim\": {\n \"extensions\": [\"slim\",\"slm\"]\n },\n \"text/spdx\": {\n \"source\": \"iana\",\n \"extensions\": [\"spdx\"]\n },\n \"text/strings\": {\n \"source\": \"iana\"\n },\n \"text/stylus\": {\n \"extensions\": [\"stylus\",\"styl\"]\n },\n \"text/t140\": {\n \"source\": \"iana\"\n },\n \"text/tab-separated-values\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"tsv\"]\n },\n \"text/troff\": {\n \"source\": \"iana\",\n \"extensions\": [\"t\",\"tr\",\"roff\",\"man\",\"me\",\"ms\"]\n },\n \"text/turtle\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"extensions\": [\"ttl\"]\n },\n \"text/ulpfec\": {\n \"source\": \"iana\"\n },\n \"text/uri-list\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"uri\",\"uris\",\"urls\"]\n },\n \"text/vcard\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"vcard\"]\n },\n \"text/vnd.a\": {\n \"source\": \"iana\"\n },\n \"text/vnd.abc\": {\n \"source\": \"iana\"\n },\n \"text/vnd.ascii-art\": {\n \"source\": \"iana\"\n },\n \"text/vnd.curl\": {\n \"source\": \"iana\",\n \"extensions\": [\"curl\"]\n },\n \"text/vnd.curl.dcurl\": {\n \"source\": \"apache\",\n \"extensions\": [\"dcurl\"]\n },\n \"text/vnd.curl.mcurl\": {\n \"source\": \"apache\",\n \"extensions\": [\"mcurl\"]\n },\n \"text/vnd.curl.scurl\": {\n \"source\": \"apache\",\n \"extensions\": [\"scurl\"]\n },\n \"text/vnd.debian.copyright\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\"\n },\n \"text/vnd.dmclientscript\": {\n \"source\": \"iana\"\n },\n \"text/vnd.dvb.subtitle\": {\n \"source\": \"iana\",\n \"extensions\": [\"sub\"]\n },\n \"text/vnd.esmertec.theme-descriptor\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\"\n },\n \"text/vnd.familysearch.gedcom\": {\n \"source\": \"iana\",\n \"extensions\": [\"ged\"]\n },\n \"text/vnd.ficlab.flt\": {\n \"source\": \"iana\"\n },\n \"text/vnd.fly\": {\n \"source\": \"iana\",\n \"extensions\": [\"fly\"]\n },\n \"text/vnd.fmi.flexstor\": {\n \"source\": \"iana\",\n \"extensions\": [\"flx\"]\n },\n \"text/vnd.gml\": {\n \"source\": \"iana\"\n },\n \"text/vnd.graphviz\": {\n \"source\": \"iana\",\n \"extensions\": [\"gv\"]\n },\n \"text/vnd.hans\": {\n \"source\": \"iana\"\n },\n \"text/vnd.hgl\": {\n \"source\": \"iana\"\n },\n \"text/vnd.in3d.3dml\": {\n \"source\": \"iana\",\n \"extensions\": [\"3dml\"]\n },\n \"text/vnd.in3d.spot\": {\n \"source\": \"iana\",\n \"extensions\": [\"spot\"]\n },\n \"text/vnd.iptc.newsml\": {\n \"source\": \"iana\"\n },\n \"text/vnd.iptc.nitf\": {\n \"source\": \"iana\"\n },\n \"text/vnd.latex-z\": {\n \"source\": \"iana\"\n },\n \"text/vnd.motorola.reflex\": {\n \"source\": \"iana\"\n },\n \"text/vnd.ms-mediapackage\": {\n \"source\": \"iana\"\n },\n \"text/vnd.net2phone.commcenter.command\": {\n \"source\": \"iana\"\n },\n \"text/vnd.radisys.msml-basic-layout\": {\n \"source\": \"iana\"\n },\n \"text/vnd.senx.warpscript\": {\n \"source\": \"iana\"\n },\n \"text/vnd.si.uricatalogue\": {\n \"source\": \"iana\"\n },\n \"text/vnd.sosi\": {\n \"source\": \"iana\"\n },\n \"text/vnd.sun.j2me.app-descriptor\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"extensions\": [\"jad\"]\n },\n \"text/vnd.trolltech.linguist\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\"\n },\n \"text/vnd.wap.si\": {\n \"source\": \"iana\"\n },\n \"text/vnd.wap.sl\": {\n \"source\": \"iana\"\n },\n \"text/vnd.wap.wml\": {\n \"source\": \"iana\",\n \"extensions\": [\"wml\"]\n },\n \"text/vnd.wap.wmlscript\": {\n \"source\": \"iana\",\n \"extensions\": [\"wmls\"]\n },\n \"text/vtt\": {\n \"source\": \"iana\",\n \"charset\": \"UTF-8\",\n \"compressible\": true,\n \"extensions\": [\"vtt\"]\n },\n \"text/x-asm\": {\n \"source\": \"apache\",\n \"extensions\": [\"s\",\"asm\"]\n },\n \"text/x-c\": {\n \"source\": \"apache\",\n \"extensions\": [\"c\",\"cc\",\"cxx\",\"cpp\",\"h\",\"hh\",\"dic\"]\n },\n \"text/x-component\": {\n \"source\": \"nginx\",\n \"extensions\": [\"htc\"]\n },\n \"text/x-fortran\": {\n \"source\": \"apache\",\n \"extensions\": [\"f\",\"for\",\"f77\",\"f90\"]\n },\n \"text/x-gwt-rpc\": {\n \"compressible\": true\n },\n \"text/x-handlebars-template\": {\n \"extensions\": [\"hbs\"]\n },\n \"text/x-java-source\": {\n \"source\": \"apache\",\n \"extensions\": [\"java\"]\n },\n \"text/x-jquery-tmpl\": {\n \"compressible\": true\n },\n \"text/x-lua\": {\n \"extensions\": [\"lua\"]\n },\n \"text/x-markdown\": {\n \"compressible\": true,\n \"extensions\": [\"mkd\"]\n },\n \"text/x-nfo\": {\n \"source\": \"apache\",\n \"extensions\": [\"nfo\"]\n },\n \"text/x-opml\": {\n \"source\": \"apache\",\n \"extensions\": [\"opml\"]\n },\n \"text/x-org\": {\n \"compressible\": true,\n \"extensions\": [\"org\"]\n },\n \"text/x-pascal\": {\n \"source\": \"apache\",\n \"extensions\": [\"p\",\"pas\"]\n },\n \"text/x-processing\": {\n \"compressible\": true,\n \"extensions\": [\"pde\"]\n },\n \"text/x-sass\": {\n \"extensions\": [\"sass\"]\n },\n \"text/x-scss\": {\n \"extensions\": [\"scss\"]\n },\n \"text/x-setext\": {\n \"source\": \"apache\",\n \"extensions\": [\"etx\"]\n },\n \"text/x-sfv\": {\n \"source\": \"apache\",\n \"extensions\": [\"sfv\"]\n },\n \"text/x-suse-ymp\": {\n \"compressible\": true,\n \"extensions\": [\"ymp\"]\n },\n \"text/x-uuencode\": {\n \"source\": \"apache\",\n \"extensions\": [\"uu\"]\n },\n \"text/x-vcalendar\": {\n \"source\": \"apache\",\n \"extensions\": [\"vcs\"]\n },\n \"text/x-vcard\": {\n \"source\": \"apache\",\n \"extensions\": [\"vcf\"]\n },\n \"text/xml\": {\n \"source\": \"iana\",\n \"compressible\": true,\n \"extensions\": [\"xml\"]\n },\n \"text/xml-external-parsed-entity\": {\n \"source\": \"iana\"\n },\n \"text/yaml\": {\n \"compressible\": true,\n \"extensions\": [\"yaml\",\"yml\"]\n },\n \"video/1d-interleaved-parityfec\": {\n \"source\": \"iana\"\n },\n \"video/3gpp\": {\n \"source\": \"iana\",\n \"extensions\": [\"3gp\",\"3gpp\"]\n },\n \"video/3gpp-tt\": {\n \"source\": \"iana\"\n },\n \"video/3gpp2\": {\n \"source\": \"iana\",\n \"extensions\": [\"3g2\"]\n },\n \"video/av1\": {\n \"source\": \"iana\"\n },\n \"video/bmpeg\": {\n \"source\": \"iana\"\n },\n \"video/bt656\": {\n \"source\": \"iana\"\n },\n \"video/celb\": {\n \"source\": \"iana\"\n },\n \"video/dv\": {\n \"source\": \"iana\"\n },\n \"video/encaprtp\": {\n \"source\": \"iana\"\n },\n \"video/ffv1\": {\n \"source\": \"iana\"\n },\n \"video/flexfec\": {\n \"source\": \"iana\"\n },\n \"video/h261\": {\n \"source\": \"iana\",\n \"extensions\": [\"h261\"]\n },\n \"video/h263\": {\n \"source\": \"iana\",\n \"extensions\": [\"h263\"]\n },\n \"video/h263-1998\": {\n \"source\": \"iana\"\n },\n \"video/h263-2000\": {\n \"source\": \"iana\"\n },\n \"video/h264\": {\n \"source\": \"iana\",\n \"extensions\": [\"h264\"]\n },\n \"video/h264-rcdo\": {\n \"source\": \"iana\"\n },\n \"video/h264-svc\": {\n \"source\": \"iana\"\n },\n \"video/h265\": {\n \"source\": \"iana\"\n },\n \"video/iso.segment\": {\n \"source\": \"iana\",\n \"extensions\": [\"m4s\"]\n },\n \"video/jpeg\": {\n \"source\": \"iana\",\n \"extensions\": [\"jpgv\"]\n },\n \"video/jpeg2000\": {\n \"source\": \"iana\"\n },\n \"video/jpm\": {\n \"source\": \"apache\",\n \"extensions\": [\"jpm\",\"jpgm\"]\n },\n \"video/jxsv\": {\n \"source\": \"iana\"\n },\n \"video/mj2\": {\n \"source\": \"iana\",\n \"extensions\": [\"mj2\",\"mjp2\"]\n },\n \"video/mp1s\": {\n \"source\": \"iana\"\n },\n \"video/mp2p\": {\n \"source\": \"iana\"\n },\n \"video/mp2t\": {\n \"source\": \"iana\",\n \"extensions\": [\"ts\"]\n },\n \"video/mp4\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"mp4\",\"mp4v\",\"mpg4\"]\n },\n \"video/mp4v-es\": {\n \"source\": \"iana\"\n },\n \"video/mpeg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"mpeg\",\"mpg\",\"mpe\",\"m1v\",\"m2v\"]\n },\n \"video/mpeg4-generic\": {\n \"source\": \"iana\"\n },\n \"video/mpv\": {\n \"source\": \"iana\"\n },\n \"video/nv\": {\n \"source\": \"iana\"\n },\n \"video/ogg\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"ogv\"]\n },\n \"video/parityfec\": {\n \"source\": \"iana\"\n },\n \"video/pointer\": {\n \"source\": \"iana\"\n },\n \"video/quicktime\": {\n \"source\": \"iana\",\n \"compressible\": false,\n \"extensions\": [\"qt\",\"mov\"]\n },\n \"video/raptorfec\": {\n \"source\": \"iana\"\n },\n \"video/raw\": {\n \"source\": \"iana\"\n },\n \"video/rtp-enc-aescm128\": {\n \"source\": \"iana\"\n },\n \"video/rtploopback\": {\n \"source\": \"iana\"\n },\n \"video/rtx\": {\n \"source\": \"iana\"\n },\n \"video/scip\": {\n \"source\": \"iana\"\n },\n \"video/smpte291\": {\n \"source\": \"iana\"\n },\n \"video/smpte292m\": {\n \"source\": \"iana\"\n },\n \"video/ulpfec\": {\n \"source\": \"iana\"\n },\n \"video/vc1\": {\n \"source\": \"iana\"\n },\n \"video/vc2\": {\n \"source\": \"iana\"\n },\n \"video/vnd.cctv\": {\n \"source\": \"iana\"\n },\n \"video/vnd.dece.hd\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvh\",\"uvvh\"]\n },\n \"video/vnd.dece.mobile\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvm\",\"uvvm\"]\n },\n \"video/vnd.dece.mp4\": {\n \"source\": \"iana\"\n },\n \"video/vnd.dece.pd\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvp\",\"uvvp\"]\n },\n \"video/vnd.dece.sd\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvs\",\"uvvs\"]\n },\n \"video/vnd.dece.video\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvv\",\"uvvv\"]\n },\n \"video/vnd.directv.mpeg\": {\n \"source\": \"iana\"\n },\n \"video/vnd.directv.mpeg-tts\": {\n \"source\": \"iana\"\n },\n \"video/vnd.dlna.mpeg-tts\": {\n \"source\": \"iana\"\n },\n \"video/vnd.dvb.file\": {\n \"source\": \"iana\",\n \"extensions\": [\"dvb\"]\n },\n \"video/vnd.fvt\": {\n \"source\": \"iana\",\n \"extensions\": [\"fvt\"]\n },\n \"video/vnd.hns.video\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.1dparityfec-1010\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.1dparityfec-2005\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.2dparityfec-1010\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.2dparityfec-2005\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.ttsavc\": {\n \"source\": \"iana\"\n },\n \"video/vnd.iptvforum.ttsmpeg2\": {\n \"source\": \"iana\"\n },\n \"video/vnd.motorola.video\": {\n \"source\": \"iana\"\n },\n \"video/vnd.motorola.videop\": {\n \"source\": \"iana\"\n },\n \"video/vnd.mpegurl\": {\n \"source\": \"iana\",\n \"extensions\": [\"mxu\",\"m4u\"]\n },\n \"video/vnd.ms-playready.media.pyv\": {\n \"source\": \"iana\",\n \"extensions\": [\"pyv\"]\n },\n \"video/vnd.nokia.interleaved-multimedia\": {\n \"source\": \"iana\"\n },\n \"video/vnd.nokia.mp4vr\": {\n \"source\": \"iana\"\n },\n \"video/vnd.nokia.videovoip\": {\n \"source\": \"iana\"\n },\n \"video/vnd.objectvideo\": {\n \"source\": \"iana\"\n },\n \"video/vnd.radgamettools.bink\": {\n \"source\": \"iana\"\n },\n \"video/vnd.radgamettools.smacker\": {\n \"source\": \"iana\"\n },\n \"video/vnd.sealed.mpeg1\": {\n \"source\": \"iana\"\n },\n \"video/vnd.sealed.mpeg4\": {\n \"source\": \"iana\"\n },\n \"video/vnd.sealed.swf\": {\n \"source\": \"iana\"\n },\n \"video/vnd.sealedmedia.softseal.mov\": {\n \"source\": \"iana\"\n },\n \"video/vnd.uvvu.mp4\": {\n \"source\": \"iana\",\n \"extensions\": [\"uvu\",\"uvvu\"]\n },\n \"video/vnd.vivo\": {\n \"source\": \"iana\",\n \"extensions\": [\"viv\"]\n },\n \"video/vnd.youtube.yt\": {\n \"source\": \"iana\"\n },\n \"video/vp8\": {\n \"source\": \"iana\"\n },\n \"video/vp9\": {\n \"source\": \"iana\"\n },\n \"video/webm\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"webm\"]\n },\n \"video/x-f4v\": {\n \"source\": \"apache\",\n \"extensions\": [\"f4v\"]\n },\n \"video/x-fli\": {\n \"source\": \"apache\",\n \"extensions\": [\"fli\"]\n },\n \"video/x-flv\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"flv\"]\n },\n \"video/x-m4v\": {\n \"source\": \"apache\",\n \"extensions\": [\"m4v\"]\n },\n \"video/x-matroska\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"mkv\",\"mk3d\",\"mks\"]\n },\n \"video/x-mng\": {\n \"source\": \"apache\",\n \"extensions\": [\"mng\"]\n },\n \"video/x-ms-asf\": {\n \"source\": \"apache\",\n \"extensions\": [\"asf\",\"asx\"]\n },\n \"video/x-ms-vob\": {\n \"source\": \"apache\",\n \"extensions\": [\"vob\"]\n },\n \"video/x-ms-wm\": {\n \"source\": \"apache\",\n \"extensions\": [\"wm\"]\n },\n \"video/x-ms-wmv\": {\n \"source\": \"apache\",\n \"compressible\": false,\n \"extensions\": [\"wmv\"]\n },\n \"video/x-ms-wmx\": {\n \"source\": \"apache\",\n \"extensions\": [\"wmx\"]\n },\n \"video/x-ms-wvx\": {\n \"source\": \"apache\",\n \"extensions\": [\"wvx\"]\n },\n \"video/x-msvideo\": {\n \"source\": \"apache\",\n \"extensions\": [\"avi\"]\n },\n \"video/x-sgi-movie\": {\n \"source\": \"apache\",\n \"extensions\": [\"movie\"]\n },\n \"video/x-smv\": {\n \"source\": \"apache\",\n \"extensions\": [\"smv\"]\n },\n \"x-conference/x-cooltalk\": {\n \"source\": \"apache\",\n \"extensions\": [\"ice\"]\n },\n \"x-shader/x-fragment\": {\n \"compressible\": true\n },\n \"x-shader/x-vertex\": {\n \"compressible\": true\n }\n}\n", "/*!\n * mime-db\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015-2022 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n */\n\nmodule.exports = require('./db.json')\n", "/*!\n * mime-types\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar db = require('mime-db')\nvar extname = require('path').extname\n\n/**\n * Module variables.\n * @private\n */\n\nvar EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/\nvar TEXT_TYPE_REGEXP = /^text\\//i\n\n/**\n * Module exports.\n * @public\n */\n\nexports.charset = charset\nexports.charsets = { lookup: charset }\nexports.contentType = contentType\nexports.extension = extension\nexports.extensions = Object.create(null)\nexports.lookup = lookup\nexports.types = Object.create(null)\n\n// Populate the extensions/types maps\npopulateMaps(exports.extensions, exports.types)\n\n/**\n * Get the default charset for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction charset (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n var mime = match && db[match[1].toLowerCase()]\n\n if (mime && mime.charset) {\n return mime.charset\n }\n\n // default text/* to utf-8\n if (match && TEXT_TYPE_REGEXP.test(match[1])) {\n return 'UTF-8'\n }\n\n return false\n}\n\n/**\n * Create a full Content-Type header given a MIME type or extension.\n *\n * @param {string} str\n * @return {boolean|string}\n */\n\nfunction contentType (str) {\n // TODO: should this even be in this module?\n if (!str || typeof str !== 'string') {\n return false\n }\n\n var mime = str.indexOf('/') === -1\n ? exports.lookup(str)\n : str\n\n if (!mime) {\n return false\n }\n\n // TODO: use content-type or other module\n if (mime.indexOf('charset') === -1) {\n var charset = exports.charset(mime)\n if (charset) mime += '; charset=' + charset.toLowerCase()\n }\n\n return mime\n}\n\n/**\n * Get the default extension for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction extension (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n\n // get extensions\n var exts = match && exports.extensions[match[1].toLowerCase()]\n\n if (!exts || !exts.length) {\n return false\n }\n\n return exts[0]\n}\n\n/**\n * Lookup the MIME type for a file path/extension.\n *\n * @param {string} path\n * @return {boolean|string}\n */\n\nfunction lookup (path) {\n if (!path || typeof path !== 'string') {\n return false\n }\n\n // get the extension (\"ext\" or \".ext\" or full path)\n var extension = extname('x.' + path)\n .toLowerCase()\n .substr(1)\n\n if (!extension) {\n return false\n }\n\n return exports.types[extension] || false\n}\n\n/**\n * Populate the extensions and types maps.\n * @private\n */\n\nfunction populateMaps (extensions, types) {\n // source preference (least -> most)\n var preference = ['nginx', 'apache', undefined, 'iana']\n\n Object.keys(db).forEach(function forEachMimeType (type) {\n var mime = db[type]\n var exts = mime.extensions\n\n if (!exts || !exts.length) {\n return\n }\n\n // mime -> extensions\n extensions[type] = exts\n\n // extension -> mime\n for (var i = 0; i < exts.length; i++) {\n var extension = exts[i]\n\n if (types[extension]) {\n var from = preference.indexOf(db[types[extension]].source)\n var to = preference.indexOf(mime.source)\n\n if (types[extension] !== 'application/octet-stream' &&\n (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {\n // skip the remapping\n continue\n }\n }\n\n // set the extension -> mime\n types[extension] = type\n }\n })\n}\n", "module.exports = defer;\n\n/**\n * Runs provided function on next iteration of the event loop\n *\n * @param {function} fn - function to run\n */\nfunction defer(fn)\n{\n var nextTick = typeof setImmediate == 'function'\n ? setImmediate\n : (\n typeof process == 'object' && typeof process.nextTick == 'function'\n ? process.nextTick\n : null\n );\n\n if (nextTick)\n {\n nextTick(fn);\n }\n else\n {\n setTimeout(fn, 0);\n }\n}\n", "var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n", "// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n", "var async = require('./async.js')\n , abort = require('./abort.js')\n ;\n\n// API\nmodule.exports = iterate;\n\n/**\n * Iterates over each job object\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {object} state - current job status\n * @param {function} callback - invoked when all elements processed\n */\nfunction iterate(list, iterator, state, callback)\n{\n // store current index\n var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;\n\n state.jobs[key] = runJob(iterator, key, list[key], function(error, output)\n {\n // don't repeat yourself\n // skip secondary callbacks\n if (!(key in state.jobs))\n {\n return;\n }\n\n // clean up jobs\n delete state.jobs[key];\n\n if (error)\n {\n // don't process rest of the results\n // stop still active jobs\n // and reset the list\n abort(state);\n }\n else\n {\n state.results[key] = output;\n }\n\n // return salvaged results\n callback(error, state.results);\n });\n}\n\n/**\n * Runs iterator over provided job element\n *\n * @param {function} iterator - iterator to invoke\n * @param {string|number} key - key/index of the element in the list of jobs\n * @param {mixed} item - job description\n * @param {function} callback - invoked after iterator is done with the job\n * @returns {function|mixed} - job abort function or something else\n */\nfunction runJob(iterator, key, item, callback)\n{\n var aborter;\n\n // allow shortcut if iterator expects only two arguments\n if (iterator.length == 2)\n {\n aborter = iterator(item, async(callback));\n }\n // otherwise go with full three arguments\n else\n {\n aborter = iterator(item, key, async(callback));\n }\n\n return aborter;\n}\n", "// API\nmodule.exports = state;\n\n/**\n * Creates initial state object\n * for iteration over list\n *\n * @param {array|object} list - list to iterate over\n * @param {function|null} sortMethod - function to use for keys sort,\n * or `null` to keep them as is\n * @returns {object} - initial state object\n */\nfunction state(list, sortMethod)\n{\n var isNamedList = !Array.isArray(list)\n , initState =\n {\n index : 0,\n keyedList: isNamedList || sortMethod ? Object.keys(list) : null,\n jobs : {},\n results : isNamedList ? {} : [],\n size : isNamedList ? Object.keys(list).length : list.length\n }\n ;\n\n if (sortMethod)\n {\n // sort array keys based on it's values\n // sort object's keys just on own merit\n initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)\n {\n return sortMethod(list[a], list[b]);\n });\n }\n\n return initState;\n}\n", "var abort = require('./abort.js')\n , async = require('./async.js')\n ;\n\n// API\nmodule.exports = terminator;\n\n/**\n * Terminates jobs in the attached state context\n *\n * @this AsyncKitState#\n * @param {function} callback - final callback to invoke after termination\n */\nfunction terminator(callback)\n{\n if (!Object.keys(this.jobs).length)\n {\n return;\n }\n\n // fast forward iteration index\n this.index = this.size;\n\n // abort jobs\n abort(this);\n\n // send back results we have so far\n async(callback)(null, this.results);\n}\n", "var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = parallel;\n\n/**\n * Runs iterator over provided array elements in parallel\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction parallel(list, iterator, callback)\n{\n var state = initState(list);\n\n while (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, function(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n // looks like it's the last one\n if (Object.keys(state.jobs).length === 0)\n {\n callback(null, state.results);\n return;\n }\n });\n\n state.index++;\n }\n\n return terminator.bind(state, callback);\n}\n", "var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = serialOrdered;\n// sorting helpers\nmodule.exports.ascending = ascending;\nmodule.exports.descending = descending;\n\n/**\n * Runs iterator over provided sorted array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} sortMethod - custom sort function\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serialOrdered(list, iterator, sortMethod, callback)\n{\n var state = initState(list, sortMethod);\n\n iterate(list, iterator, state, function iteratorHandler(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n state.index++;\n\n // are we there yet?\n if (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, iteratorHandler);\n return;\n }\n\n // done here\n callback(null, state.results);\n });\n\n return terminator.bind(state, callback);\n}\n\n/*\n * -- Sort methods\n */\n\n/**\n * sort helper to sort array elements in ascending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction ascending(a, b)\n{\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\n/**\n * sort helper to sort array elements in descending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction descending(a, b)\n{\n return -1 * ascending(a, b);\n}\n", "var serialOrdered = require('./serialOrdered.js');\n\n// Public API\nmodule.exports = serial;\n\n/**\n * Runs iterator over provided array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serial(list, iterator, callback)\n{\n return serialOrdered(list, iterator, null, callback);\n}\n", "module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n", "'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n", "'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n", "'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n", "'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Object;\n", "'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n", "'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n", "'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n", "'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n", "'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n", "'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n", "'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n", "'use strict';\n\n/** @type {import('./abs')} */\nmodule.exports = Math.abs;\n", "'use strict';\n\n/** @type {import('./floor')} */\nmodule.exports = Math.floor;\n", "'use strict';\n\n/** @type {import('./max')} */\nmodule.exports = Math.max;\n", "'use strict';\n\n/** @type {import('./min')} */\nmodule.exports = Math.min;\n", "'use strict';\n\n/** @type {import('./pow')} */\nmodule.exports = Math.pow;\n", "'use strict';\n\n/** @type {import('./round')} */\nmodule.exports = Math.round;\n", "'use strict';\n\n/** @type {import('./isNaN')} */\nmodule.exports = Number.isNaN || function isNaN(a) {\n\treturn a !== a;\n};\n", "'use strict';\n\nvar $isNaN = require('./isNaN');\n\n/** @type {import('./sign')} */\nmodule.exports = function sign(number) {\n\tif ($isNaN(number) || number === 0) {\n\t\treturn number;\n\t}\n\treturn number < 0 ? -1 : +1;\n};\n", "'use strict';\n\n/** @type {import('./gOPD')} */\nmodule.exports = Object.getOwnPropertyDescriptor;\n", "'use strict';\n\n/** @type {import('.')} */\nvar $gOPD = require('./gOPD');\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n", "'use strict';\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n", "'use strict';\n\n/** @type {import('./shams')} */\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\t/** @type {{ [k in symbol]?: unknown }} */\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\n/** @type {import('./Reflect.getPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;\n", "'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.getPrototypeOf')} */\nmodule.exports = $Object.getPrototypeOf || null;\n", "'use strict';\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n", "'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n", "'use strict';\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n", "'use strict';\n\nvar bind = require('function-bind');\n\nvar $apply = require('./functionApply');\nvar $call = require('./functionCall');\nvar $reflectApply = require('./reflectApply');\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n", "'use strict';\n\nvar bind = require('function-bind');\nvar $TypeError = require('es-errors/type');\n\nvar $call = require('./functionCall');\nvar $actualApply = require('./actualApply');\n\n/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n", "'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n", "'use strict';\n\nvar reflectGetProto = require('./Reflect.getPrototypeOf');\nvar originalGetProto = require('./Object.getPrototypeOf');\n\nvar getDunderProto = require('dunder-proto/get');\n\n/** @type {import('.')} */\nmodule.exports = reflectGetProto\n\t? function getProto(O) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\treturn reflectGetProto(O);\n\t}\n\t: originalGetProto\n\t\t? function getProto(O) {\n\t\t\tif (!O || (typeof O !== 'object' && typeof O !== 'function')) {\n\t\t\t\tthrow new TypeError('getProto: not an object');\n\t\t\t}\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\treturn originalGetProto(O);\n\t\t}\n\t\t: getDunderProto\n\t\t\t? function getProto(O) {\n\t\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\t\treturn getDunderProto(O);\n\t\t\t}\n\t\t\t: null;\n", "'use strict';\n\nvar undefined;\n\nvar $Object = require('es-object-atoms');\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar abs = require('math-intrinsics/abs');\nvar floor = require('math-intrinsics/floor');\nvar max = require('math-intrinsics/max');\nvar min = require('math-intrinsics/min');\nvar pow = require('math-intrinsics/pow');\nvar round = require('math-intrinsics/round');\nvar sign = require('math-intrinsics/sign');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = require('gopd');\nvar $defineProperty = require('es-define-property');\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = require('get-proto');\nvar $ObjectGPO = require('get-proto/Object.getPrototypeOf');\nvar $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');\n\nvar $apply = require('call-bind-apply-helpers/functionApply');\nvar $call = require('call-bind-apply-helpers/functionCall');\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\n\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar hasOwn = require('hasown');\nvar $TypeError = require('es-errors/type');\n\nvar toStringTag = hasToStringTag ? Symbol.toStringTag : null;\n\n/** @type {import('.')} */\nmodule.exports = function setToStringTag(object, value) {\n\tvar overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;\n\tvar nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;\n\tif (\n\t\t(typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')\n\t\t|| (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')\n\t) {\n\t\tthrow new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');\n\t}\n\tif (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {\n\t\tif ($defineProperty) {\n\t\t\t$defineProperty(object, toStringTag, {\n\t\t\t\tconfigurable: !nonConfigurable,\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: value,\n\t\t\t\twritable: false\n\t\t\t});\n\t\t} else {\n\t\t\tobject[toStringTag] = value; // eslint-disable-line no-param-reassign\n\t\t}\n\t}\n};\n", "'use strict';\n\n// populates missing values\nmodule.exports = function (dst, src) {\n Object.keys(src).forEach(function (prop) {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n", "/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n", "'use strict';\n\nvar CombinedStream = require('combined-stream');\nvar util = require('util');\nvar path = require('path');\nvar http = require('http');\nvar https = require('https');\nvar parseUrl = require('url').parse;\nvar fs = require('fs');\nvar crypto = require('crypto');\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar hasOwn = require('hasown');\nvar setToStringTag = require('es-set-tostringtag');\nvar populate = require('./populate.js');\nvar Buffer = require('safe-buffer').Buffer;\n\n// escape CR/LF/`\"` so a name/filename can't inject headers or smuggle parts; matches the WHATWG HTML multipart/form-data encoding\nfunction escapeHeaderParam(str) {\n return String(str).replace(/\\r/g, '%0D').replace(/\\n/g, '%0A').replace(/\"/g, '%22');\n}\n\n/**\n * Create readable \"multipart/form-data\" streams.\n * Can be used to submit forms\n * and file uploads to other web applications.\n *\n * @constructor\n * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream\n */\nfunction FormData(options) {\n if (!(this instanceof FormData)) {\n return new FormData();\n }\n\n this._overheadLength = 0;\n this._valueLength = 0;\n this._valuesToMeasure = [];\n\n CombinedStream.call(this);\n\n options = options || {};\n for (var option in options) { // eslint-disable-line no-restricted-syntax\n this[option] = options[option];\n }\n}\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\n\nFormData.LINE_BREAK = '\\r\\n';\nFormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';\n\nFormData.prototype.append = function (field, value, options) {\n\n options = options || {};\n\n // allow filename as single option\n if (typeof options === 'string') {\n options = { filename: options };\n }\n\n var append = CombinedStream.prototype.append.bind(this);\n\n // all that streamy business can't handle numbers\n if (typeof value === 'number' || value == null) {\n value = String(value);\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (Array.isArray(value)) {\n /*\n * Please convert your array into string\n * the way web server expects it\n */\n this._error(new Error('Arrays are not supported.'));\n return;\n }\n\n var header = this._multiPartHeader(field, value, options);\n var footer = this._multiPartFooter();\n\n append(header);\n append(value);\n append(footer);\n\n // pass along options.knownLength\n this._trackLength(header, value, options);\n};\n\nFormData.prototype._trackLength = function (header, value, options) {\n var valueLength = 0;\n\n /*\n * used w/ getLengthSync(), when length is known.\n * e.g. for streaming directly from a remote server,\n * w/ a known file a size, and not wanting to wait for\n * incoming file to finish to get its size.\n */\n if (options.knownLength != null) {\n valueLength += Number(options.knownLength);\n } else if (Buffer.isBuffer(value)) {\n valueLength = value.length;\n } else if (typeof value === 'string') {\n valueLength = Buffer.byteLength(value);\n }\n\n this._valueLength += valueLength;\n\n // @check why add CRLF? does this account for custom/multiple CRLFs?\n this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response\n if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')))) {\n return;\n }\n\n // no need to bother with the length\n if (!options.knownLength) {\n this._valuesToMeasure.push(value);\n }\n};\n\nFormData.prototype._lengthRetriever = function (value, callback) {\n if (hasOwn(value, 'fd')) {\n\n /*\n * take read range into a account\n * `end` = Infinity \u2013> read file till the end\n *\n * TODO: Looks like there is bug in Node fs.createReadStream\n * it doesn't respect `end` options without `start` options\n * Fix it when node fixes it.\n * https://github.com/joyent/node/issues/7819\n */\n if (value.end != null && value.end !== Infinity && value.start != null) {\n\n /*\n * when end specified\n * no need to calculate range\n * inclusive, starts with 0\n */\n callback(null, value.end + 1 - (value.start ? value.start : 0));\n\n // not that fast snoopy\n } else {\n // still need to fetch file size from fs\n fs.stat(value.path, function (err, stat) {\n\n var fileSize;\n\n if (err) {\n callback(err);\n return;\n }\n\n // update final size based on the range options\n fileSize = stat.size - (value.start ? value.start : 0);\n callback(null, fileSize);\n });\n }\n\n // or http response\n } else if (hasOwn(value, 'httpVersion')) {\n callback(null, Number(value.headers['content-length']));\n\n // or request stream http://github.com/mikeal/request\n } else if (hasOwn(value, 'httpModule')) {\n // wait till response come back\n value.on('response', function (response) {\n value.pause();\n callback(null, Number(response.headers['content-length']));\n });\n value.resume();\n\n // something else\n } else {\n callback('Unknown stream');\n }\n};\n\nFormData.prototype._multiPartHeader = function (field, value, options) {\n /*\n * custom header specified (as string)?\n * it becomes responsible for boundary\n * (e.g. to handle extra CRLFs on .NET servers)\n */\n if (typeof options.header === 'string') {\n return options.header;\n }\n\n var contentDisposition = this._getContentDisposition(value, options);\n var contentType = this._getContentType(value, options);\n\n var contents = '';\n var headers = {\n // add custom disposition as third element or keep it two elements if not\n 'Content-Disposition': ['form-data', 'name=\"' + escapeHeaderParam(field) + '\"'].concat(contentDisposition || []),\n // if no content type. allow it to be empty array\n 'Content-Type': [].concat(contentType || []),\n };\n\n // allow custom headers.\n if (typeof options.header === 'object') {\n populate(headers, options.header);\n }\n\n var header;\n for (var prop in headers) { // eslint-disable-line no-restricted-syntax\n if (hasOwn(headers, prop)) {\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue; // eslint-disable-line no-continue, no-restricted-syntax\n }\n\n // convert all headers to arrays.\n if (!Array.isArray(header)) {\n header = [header];\n }\n\n // add non-empty headers.\n if (header.length) {\n contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;\n }\n }\n }\n\n return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;\n};\n\nFormData.prototype._getContentDisposition = function (value, options) {\n\n var filename,\n contentDisposition;\n if (typeof options.filepath === 'string') {\n // custom filepath for relative paths\n filename = path.normalize(options.filepath).replace(/\\\\/g, '/');\n } else if (options.filename || (value && (value.name || value.path))) {\n /*\n * custom filename take precedence\n * formidable and the browser add a name property\n * fs- and request- streams have path property\n */\n filename = path.basename(options.filename || (value && (value.name || value.path)));\n } else if (value && value.readable && hasOwn(value, 'httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + escapeHeaderParam(filename) + '\"';\n }\n\n return contentDisposition;\n};\n\nFormData.prototype._getContentType = function (value, options) {\n\n // use custom content-type above all\n var contentType = options.contentType;\n\n // or try `name` from formidable, browser\n if (!contentType && value && value.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {\n contentType = value.headers['content-type'];\n }\n\n // or guess it from the filepath or filename\n if (!contentType && (options.filepath || options.filename)) {\n contentType = mime.lookup(options.filepath || options.filename);\n }\n\n // fallback to the default content type if `value` is not simple value\n if (!contentType && value && typeof value === 'object') {\n contentType = FormData.DEFAULT_CONTENT_TYPE;\n }\n\n return contentType;\n};\n\nFormData.prototype._multiPartFooter = function () {\n return function (next) {\n var footer = FormData.LINE_BREAK;\n\n var lastPart = this._streams.length === 0;\n if (lastPart) {\n footer += this._lastBoundary();\n }\n\n next(footer);\n }.bind(this);\n};\n\nFormData.prototype._lastBoundary = function () {\n return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;\n};\n\nFormData.prototype.getHeaders = function (userHeaders) {\n var header;\n var formHeaders = {\n 'content-type': 'multipart/form-data; boundary=' + this.getBoundary(),\n };\n\n for (header in userHeaders) { // eslint-disable-line no-restricted-syntax\n if (hasOwn(userHeaders, header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function (boundary) {\n if (typeof boundary !== 'string') {\n throw new TypeError('FormData boundary must be a string');\n }\n this._boundary = boundary;\n};\n\nFormData.prototype.getBoundary = function () {\n if (!this._boundary) {\n this._generateBoundary();\n }\n\n return this._boundary;\n};\n\nFormData.prototype.getBuffer = function () {\n var dataBuffer = Buffer.alloc(0);\n var boundary = this.getBoundary();\n\n // Create the form content. Add Line breaks to the end of data.\n for (var i = 0, len = this._streams.length; i < len; i++) {\n if (typeof this._streams[i] !== 'function') {\n\n // Add content to the buffer.\n if (Buffer.isBuffer(this._streams[i])) {\n dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);\n } else {\n dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);\n }\n\n // Add break after content.\n if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {\n dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]);\n }\n }\n }\n\n // Add the footer and return the Buffer object.\n return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);\n};\n\nFormData.prototype._generateBoundary = function () {\n // This generates a 50 character boundary similar to those used by Firefox.\n\n // They are optimized for boyer-moore parsing.\n this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');\n};\n\n/*\n * Note: getLengthSync DOESN'T calculate streams length\n * As workaround one can calculate file size manually\n * and add it as knownLength option\n */\nFormData.prototype.getLengthSync = function () {\n var knownLength = this._overheadLength + this._valueLength;\n\n /*\n * Don't get confused, there are 3 \"internal\" streams for each keyval pair\n * so it basically checks if there is any value added to the form\n */\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n // https://github.com/form-data/form-data/issues/40\n if (!this.hasKnownLength()) {\n /*\n * Some async length retrievers are present\n * therefore synchronous length calculation is false.\n * Please use getLength(callback) to get proper length\n */\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\n};\n\n/*\n * Public API to check if length of added values is known\n * https://github.com/form-data/form-data/issues/196\n * https://github.com/form-data/form-data/issues/262\n */\nFormData.prototype.hasKnownLength = function () {\n var hasKnownLength = true;\n\n if (this._valuesToMeasure.length) {\n hasKnownLength = false;\n }\n\n return hasKnownLength;\n};\n\nFormData.prototype.getLength = function (cb) {\n var knownLength = this._overheadLength + this._valueLength;\n\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n if (!this._valuesToMeasure.length) {\n process.nextTick(cb.bind(this, null, knownLength));\n return;\n }\n\n asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) {\n if (err) {\n cb(err);\n return;\n }\n\n values.forEach(function (length) {\n knownLength += length;\n });\n\n cb(null, knownLength);\n });\n};\n\nFormData.prototype.submit = function (params, cb) {\n var request;\n var options;\n var defaults = { method: 'post' };\n\n /*\n * parse provided url if it's string\n * or treat it as options object\n */\n if (typeof params === 'string') {\n\n params = parseUrl(params);\n options = populate({\n port: params.port,\n path: params.pathname,\n host: params.hostname,\n protocol: params.protocol,\n }, defaults);\n\n // use custom params\n } else {\n\n options = populate(params, defaults);\n // if no port provided use default one\n if (!options.port) {\n options.port = options.protocol === 'https:' ? 443 : 80;\n }\n }\n\n // put that good code in getHeaders to some use\n options.headers = this.getHeaders(params.headers);\n\n // https if specified, fallback to http in any other case\n if (options.protocol === 'https:') {\n request = https.request(options);\n } else {\n request = http.request(options);\n }\n\n // get content length and fire away\n this.getLength(function (err, length) {\n if (err) {\n this._error(err);\n return;\n }\n\n // add content length\n request.setHeader('Content-Length', length);\n\n this.pipe(request);\n if (cb) {\n request.on('error', cb);\n request.on('response', cb.bind(this, null));\n }\n }.bind(this));\n\n return request;\n};\n\nFormData.prototype._error = function (err) {\n if (!this.error) {\n this.error = err;\n this.pause();\n this.emit('error', err);\n }\n};\n\nFormData.prototype.toString = function () {\n return '[object FormData]';\n};\nsetToStringTag(FormData, 'FormData');\n\nmodule.exports = FormData;\n", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.blobToFormPart = blobToFormPart;\nexports.castArray = void 0;\nexports.decodeBytes = decodeBytes;\nexports.ensureEncoding = ensureEncoding;\nexports.getFormData = getFormData;\nexports.isWebFormData = exports.isStream = exports.isObject = exports.isNodeJS = exports.isFormData = exports.isBytes = exports.isBrowser = exports.isBlob = void 0;\nexports.normalizeFormPart = normalizeFormPart;\nexports.normalizeTrailingSlashInPath = normalizeTrailingSlashInPath;\nexports.setFormData = setFormData;\nexports.toBytes = toBytes;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/**\n * Casts `value` as an array if it's not one.\n * Equivalent to lodash/castArray\n */\nvar castArray = exports.castArray = function castArray(value) {\n return Array.isArray(value) ? value : [value];\n};\nvar isObject = exports.isObject = function isObject(value) {\n return null != value && _typeof(value) === 'object';\n};\nvar isFormData = exports.isFormData = function isFormData(value) {\n if (!value) {\n return false;\n }\n var FormData = getFormData();\n if (value instanceof FormData) {\n return true;\n }\n return value && value.constructor && value.constructor.toString().trim().indexOf('function FormData') === 0;\n};\nvar isStream = exports.isStream = function isStream(value) {\n var stream = require('stream');\n return value instanceof stream.Stream;\n};\nvar isNodeJS = exports.isNodeJS = function isNodeJS() {\n return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;\n};\nvar isBrowser = exports.isBrowser = function isBrowser() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n};\nvar CustomFormData = null;\nfunction getFormData() {\n if (CustomFormData) {\n return CustomFormData;\n }\n return isNodeJS() || typeof FormData === 'undefined' ? require('form-data') : FormData;\n}\nfunction setFormData(value) {\n CustomFormData = value;\n}\n\n// @ : / # ? = $ & +\nvar SAFE_CHAR_CODES = ['%40', '%3A', '%2F', '%23', '%3F', '%3D', '%24', '%26', '%2B'];\nfunction safeEscape(str, charCodes) {\n var _char = charCodes[0];\n if (_char) {\n var tokens = str.split(_char).map(function (p) {\n return safeEscape(p, charCodes.slice(1));\n });\n return tokens.join(_char);\n }\n return encodeURI(str);\n}\nfunction ensureComponentEncoding(uriComponent) {\n if (uriComponent === decodeURI(uriComponent)) {\n return safeEscape(uriComponent, [].concat(SAFE_CHAR_CODES));\n }\n return uriComponent;\n}\nfunction encodePath(path) {\n return path.split('/').map(ensureComponentEncoding).join('/');\n}\nfunction ensureEncoding(path) {\n try {\n var url = new URL(path);\n return url.origin + encodePath(normalizeTrailingSlashInPath(path, url)) + url.search;\n } catch (_unused) {\n return encodePath(path);\n }\n}\nfunction normalizeTrailingSlashInPath(originPath, _ref) {\n var pathname = _ref.pathname;\n if (originPath.includes('?')) {\n originPath = originPath.split('?')[0];\n }\n var keepTrailingSlash = originPath.endsWith('/');\n return !keepTrailingSlash && pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;\n}\nvar isBytes = exports.isBytes = function isBytes(value) {\n return typeof Uint8Array !== 'undefined' && value instanceof Uint8Array;\n};\n\n/**\n * Normalizes a raw response body to bytes.\n *\n * A Buffer is a Uint8Array, so the check a caller needs is `instanceof Uint8Array` in both\n * environments, and the value we already have is handed back as is - no copy, these are file\n * payloads and a single one is routinely tens of MB.\n *\n * Everything else can only come from an empty response or from a replaced `Request.send`,\n * both of them cheap to convert. Anything that is not convertible is a broken contract and\n * throws rather than silently uploading wrong bytes.\n *\n * @param {*} value\n * @returns {Buffer|Uint8Array}\n */\nfunction toBytes(value) {\n if (isBytes(value)) {\n return value;\n }\n var hasBuffer = typeof Buffer !== 'undefined' && typeof Buffer.from === 'function';\n if (value === undefined || value === null || value === '') {\n return hasBuffer ? Buffer.alloc(0) : new Uint8Array(0);\n }\n if (typeof value === 'string') {\n return hasBuffer ? Buffer.from(value, 'utf8') : new TextEncoder().encode(value);\n }\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return hasBuffer ? Buffer.from(value) : new Uint8Array(value);\n }\n throw new Error('The response body can not be represented as bytes, ' + \"received \".concat(value === null ? 'null' : _typeof(value), \". \") + 'This happens when \"Request.send\" is replaced with an implementation ' + 'that does not return the raw body for a request made with \"toBuffer()\".');\n}\n\n/**\n * Decodes bytes to utf8 text, anything which is not bytes is passed through.\n *\n * Used for the error body of a raw request: a browser gets it as a Uint8Array, because\n * `responseType` is set for the whole response, and `String()` on a Uint8Array joins the byte\n * values with commas instead of decoding them\n *\n * @param {*} value\n * @returns {*}\n */\nfunction decodeBytes(value) {\n if (!isBytes(value)) {\n return value;\n }\n if (typeof Buffer !== 'undefined' && Buffer.isBuffer(value)) {\n return value.toString('utf8');\n }\n if (typeof TextDecoder !== 'undefined') {\n return new TextDecoder('utf8').decode(value);\n }\n return value;\n}\n\n/**\n * A Blob or a File, duck typed so that an instance coming from another realm is recognized too\n */\nvar isBlob = exports.isBlob = function isBlob(value) {\n return !!value && _typeof(value) === 'object' && typeof value.stream === 'function' && typeof value.arrayBuffer === 'function' && typeof value.size === 'number';\n};\n\n/**\n * The FormData of the WHATWG spec - the Node 18+ global one, or the browser one.\n *\n * The `form-data` npm package, which is what `Request.FormData` is in Node js, is a different\n * class with a different API and it is recognized by `isFormData`\n */\nvar isWebFormData = exports.isWebFormData = function isWebFormData(value) {\n return !!value && typeof value.append === 'function' && typeof value.getAll === 'function' && typeof value.forEach === 'function' && typeof value.getHeaders !== 'function';\n};\n\n/**\n * Turns a Blob or a File into something the `form-data` package can stream.\n *\n * The package accepts a Buffer or a stream and treats any other object as stream like, which\n * makes it throw \"source.on is not a function\" from inside `combined-stream` at append time.\n * A web stream is not that either, `Readable.fromWeb` bridges the two.\n *\n * `knownLength` is what keeps `form.getLength()` synchronous and the content-length header\n * correct, and the filename follows what a browser sends for a nameless Blob\n *\n * @param {Blob|File} blob\n * @returns {{ value: Object, options: Object }}\n */\nfunction blobToFormPart(blob) {\n var _require = require('stream'),\n Readable = _require.Readable;\n if (typeof Readable.fromWeb !== 'function') {\n throw new Error('A Blob can only be added to a form on Node 18 or newer, ' + 'pass a Buffer or a stream instead.');\n }\n var options = {\n knownLength: blob.size,\n filename: blob.name || 'blob'\n };\n if (blob.type) {\n options.contentType = blob.type;\n }\n return {\n value: Readable.fromWeb(blob.stream()),\n options: options\n };\n}\n\n/**\n * Prepares a value for `FormData#append` of the `form-data` package.\n *\n * Everything the package can not stream is either converted here or reported with an error which\n * names the field, instead of the \"source.on is not a function\"/\"Illegal invocation\" thrown from\n * deep inside `combined-stream` with nothing pointing at the value which caused it\n *\n * @param {String} key\n * @param {*} value\n * @returns {{ value: *, options: Object|undefined }}\n */\nfunction normalizeFormPart(key, value) {\n if (isBlob(value)) {\n return blobToFormPart(value);\n }\n if (isBytes(value) && typeof Buffer !== 'undefined' && !Buffer.isBuffer(value)) {\n // a Uint8Array is not a Buffer and the package treats it as a stream, the view is\n // wrapped without copying the bytes\n return {\n value: Buffer.from(value.buffer, value.byteOffset, value.byteLength)\n };\n }\n if (isObject(value) && !isStream(value) && !(typeof Buffer !== 'undefined' && Buffer.isBuffer(value))) {\n throw new Error(\"The form field \\\"\".concat(key, \"\\\" can not be sent, \") + \"expected a Buffer, a stream, a Blob or a primitive value, received \".concat(describeValue(value), \".\"));\n }\n return {\n value: value\n };\n}\nfunction describeValue(value) {\n if (Array.isArray(value)) {\n return 'an Array';\n }\n var name = value.constructor && value.constructor.name;\n return name ? \"an instance of \".concat(name) : 'an object';\n}", "\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TLSError = exports.ResponseError = void 0;\nexports.toTLSError = toTLSError;\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nvar ResponseError = exports.ResponseError = /*#__PURE__*/function (_Error) {\n _inherits(ResponseError, _Error);\n var _super = _createSuper(ResponseError);\n function ResponseError(response) {\n var _this;\n _classCallCheck(this, ResponseError);\n _this = _super.call(this);\n var error = parseError(response);\n _this.message = error.message || error;\n _this.code = error.code;\n _this.status = response.status;\n _this.headers = response.headers;\n _this.body = response.body;\n return _this;\n }\n return _createClass(ResponseError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nfunction parseError(res) {\n if (res.status === 502) {\n return 'No connection with server';\n }\n return res.body || \"Status Code \".concat(res.status, \" (\").concat(res.statusText, \")\");\n}\n\n/**\n * An error which is raised when a TLS connection can not be established.\n *\n * A raw TLS failure surfaces as an opaque socket error (ECONNRESET, EPROTO, an OpenSSL code),\n * which makes the most common operational failures - a missing, rejected or expired client\n * certificate - indistinguishable from a network problem.\n *\n * Never put any part of the certificate, the private key or the passphrase into the message,\n * the reasons below are the only text this error is built from.\n */\nvar TLSError = exports.TLSError = /*#__PURE__*/function (_Error2) {\n _inherits(TLSError, _Error2);\n var _super2 = _createSuper(TLSError);\n function TLSError(reason, cause) {\n var _this2;\n _classCallCheck(this, TLSError);\n _this2 = _super2.call(this, cause && cause.code ? \"\".concat(reason, \" (\").concat(cause.code, \")\") : reason);\n _this2.name = 'TLSError';\n _this2.code = cause && cause.code || 'TLS_ERROR';\n if (cause) {\n _this2.cause = cause;\n }\n return _this2;\n }\n return _createClass(TLSError);\n}( /*#__PURE__*/_wrapNativeSuper(Error)); // the local certificate/key material can not even be loaded, the connection is never attempted\nvar SECURE_CONTEXT_REASONS = [{\n match: /bad decrypt|bad password read|wrong final block length/i,\n reason: 'The private key could not be decrypted, the passphrase is missing or incorrect.'\n}, {\n match: /no start line|not enough data|PEM_read_bio|DECODER routines/i,\n reason: 'The client certificate or the private key is not valid PEM.'\n}, {\n match: /key values mismatch/i,\n reason: 'The private key does not match the client certificate.'\n}];\n\n// the server refused our client certificate during the handshake\nvar HANDSHAKE_ALERT_REASONS = [{\n // the server demands a client certificate before it looks at anything else, including auth\n match: /certificate[ _]required/i,\n reason: 'The server requires a client certificate and none was supplied.'\n}, {\n match: /certificate expired/i,\n reason: 'The server rejected the client certificate because it has expired.'\n}, {\n match: /certificate revoked/i,\n reason: 'The server rejected the client certificate because it has been revoked.'\n}, {\n match: /unknown ca/i,\n reason: 'The server does not trust the authority which issued the client certificate.'\n}, {\n match: /(bad|unsupported|unknown|no) certificate/i,\n reason: 'The server rejected the client certificate.'\n}, {\n match: /handshake failure/i,\n reason: 'The server rejected the TLS handshake, the client certificate is missing or was rejected.'\n}];\n\n// the certificate presented by the server could not be verified\nvar NO_CA_REASON = 'The server certificate could not be verified, a CA bundle may be required.';\nvar PEER_CERTIFICATE_REASONS = {\n CERT_HAS_EXPIRED: 'The server certificate has expired.',\n CERT_NOT_YET_VALID: 'The server certificate is not valid yet.',\n SELF_SIGNED_CERT_IN_CHAIN: 'The server certificate chain is self signed, a CA bundle may be required.',\n DEPTH_ZERO_SELF_SIGNED_CERT: 'The server certificate is self signed, a CA bundle may be required.',\n ERR_TLS_CERT_ALTNAME_INVALID: 'The server certificate does not match the requested host.',\n UNABLE_TO_VERIFY_LEAF_SIGNATURE: NO_CA_REASON,\n UNABLE_TO_GET_ISSUER_CERT_LOCALLY: NO_CA_REASON\n};\nfunction findReason(reasons, text) {\n var found = reasons.find(function (_ref) {\n var match = _ref.match;\n return match.test(text);\n });\n return found && found.reason;\n}\nfunction findPeerCertificateReason(code) {\n return code && PEER_CERTIFICATE_REASONS.hasOwnProperty(code) ? PEER_CERTIFICATE_REASONS[code] : undefined;\n}\n\n/**\n * Converts a low level socket/OpenSSL failure into a TLSError with an actionable message.\n *\n * @param {Error} error the error raised by the http client\n * @param {Boolean} withClientCert whether a client certificate was supplied for this request\n * @returns {TLSError|null} null when the error is not TLS related and should be reported as is\n */\nfunction toTLSError(error, withClientCert) {\n if (!error) {\n return null;\n }\n var text = \"\".concat(error.code || '', \" \").concat(error.message || '');\n var reason = findPeerCertificateReason(error.code) || findReason(SECURE_CONTEXT_REASONS, text) || findReason(HANDSHAKE_ALERT_REASONS, text);\n if (reason) {\n return new TLSError(reason, error);\n }\n\n // a server which demands a client certificate usually just drops the connection when it does not\n // get one it accepts, there is no alert to read, so this is the best guess we can offer\n if (withClientCert && (error.code === 'ECONNRESET' || error.code === 'EPROTO')) {\n return new TLSError('The connection was closed during the TLS handshake, ' + 'the client certificate was most likely missing, rejected or expired.', error);\n }\n return null;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sendNodeAPIRequest = sendNodeAPIRequest;\nvar _utils = require(\"./utils\");\nvar _error = require(\"./error\");\nfunction sendNodeAPIRequest(path, method, headers, body, encoding, timeout, withCredentials, tlsOptions) {\n return new Promise(function (resolve, reject) {\n var u = require('url').parse(path);\n var form = (0, _utils.isFormData)(body) && body;\n var https = u.protocol === 'https:';\n var options = {\n host: u.hostname,\n port: u.port || (https ? 443 : 80),\n path: (0, _utils.normalizeTrailingSlashInPath)(path, u) + (u.search || ''),\n method: method,\n headers: headers,\n timeout: timeout\n };\n if (typeof withCredentials === 'boolean') {\n options.withCredentials = withCredentials;\n }\n var withClientCert = !!(tlsOptions && (tlsOptions.cert || tlsOptions.key));\n if (tlsOptions) {\n if (!https) {\n // going ahead would silently drop the certificate and send the request in plain text,\n // there is no mutual TLS without TLS\n return reject(new _error.TLSError('A client certificate can only be used with an https:// URL.'));\n }\n Object.assign(options, tlsOptions);\n }\n\n // a TLS failure arrives here as an opaque socket/OpenSSL error, translate the ones we recognize\n var rejectWithError = function rejectWithError(error) {\n return reject((0, _error.toTLSError)(error, withClientCert) || error);\n };\n var _send = function _send() {\n var Buffer = require('buffer').Buffer;\n var httpClient = require(https ? 'https' : 'http');\n var req = httpClient.request(options, function (res) {\n var strings = [];\n var buffers = [];\n var bufferLength = 0;\n var body = '';\n var status = res.statusCode,\n statusText = res.statusMessage,\n headers = res.headers;\n res.on('data', function (chunk) {\n if (!Buffer.isBuffer(chunk)) {\n strings.push(chunk);\n } else if (chunk.length) {\n bufferLength += chunk.length;\n buffers.push(chunk);\n }\n });\n res.on('end', function () {\n if (bufferLength) {\n body = Buffer.concat(buffers, bufferLength);\n if (encoding != null) {\n body = body.toString(encoding);\n }\n } else if (strings.length) {\n body = strings.join();\n } else if (encoding == null) {\n // a raw request asked for bytes, and a 0 byte response is an empty buffer,\n // not the empty string the body is initialized with\n body = Buffer.alloc(0);\n }\n resolve({\n status: status,\n statusText: statusText,\n headers: headers,\n body: body\n });\n });\n res.on('error', rejectWithError);\n });\n req.on('error', rejectWithError);\n req.on('timeout', function () {\n req.destroy(new Error('Connection aborted due to timeout'));\n });\n if (body) {\n if ((0, _utils.isStream)(body)) {\n body.pipe(req);\n return;\n }\n req.write(body);\n }\n req.end();\n };\n\n // an unusable certificate/key/passphrase makes https.request() throw synchronously, and for a\n // form body _send() runs from a callback where a throw would escape the promise altogether\n var send = function send() {\n try {\n _send();\n } catch (error) {\n rejectWithError(error);\n }\n };\n if (form) {\n Object.assign(options.headers, form.getHeaders());\n form.getLength(function (err, length) {\n if (!err && !isNaN(length)) {\n options.headers['content-length'] = length;\n }\n send();\n });\n } else {\n if (body && !options.headers['content-length']) {\n var Buffer = require('buffer').Buffer;\n options.headers['content-length'] = Buffer.byteLength(body);\n }\n send();\n }\n });\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar EventEmitter = exports[\"default\"] = /*#__PURE__*/function () {\n function EventEmitter() {\n _classCallCheck(this, EventEmitter);\n this.events = {};\n }\n _createClass(EventEmitter, [{\n key: \"on\",\n value: function on(eventName, callback) {\n this.events[eventName] = this.events[eventName] || [];\n this.events[eventName].push(callback);\n return this;\n }\n }, {\n key: \"off\",\n value: function off(eventName, callback) {\n if (!eventName) {\n this.events = {};\n } else if (this.events[eventName]) {\n if (callback) {\n this.events[eventName] = this.events[eventName].filter(function (c) {\n return c !== callback;\n });\n } else {\n delete this.events[eventName];\n }\n }\n return this;\n }\n }, {\n key: \"emit\",\n value: function emit(eventName) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (this.events[eventName]) {\n this.events[eventName].forEach(function (callback) {\n return callback.apply(void 0, args);\n });\n }\n }\n }]);\n return EventEmitter;\n}();", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stringify = void 0;\nvar _utils = require(\"./utils\");\n/**\n * Produces a URL query string from a given obj by iterating through the object's \"own properties\".\n * @param {Object} obj\n * @returns {string}\n */\nvar stringify = exports.stringify = function stringify(obj) {\n var tokens = [];\n Object.keys(obj).forEach(function (key) {\n var value = obj[key];\n if (value !== undefined) {\n (0, _utils.castArray)(value).forEach(function (value) {\n tokens.push(\"\".concat(encodeURIComponent(key), \"=\").concat(encodeURIComponent(value)));\n });\n }\n });\n return tokens.join('&');\n};", "\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Request = void 0;\nvar _eventEmitter = _interopRequireDefault(require(\"./event-emitter\"));\nvar qs = _interopRequireWildcard(require(\"./qs\"));\nvar _utils = require(\"./utils\");\nvar _error = require(\"./error\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nvar CONTENT_TYPE_HEADER = 'Content-Type';\n\n// the only TLS options a caller may pass, everything else (rejectUnauthorized and friends) is\n// dropped on purpose so that a config blob can not weaken the connection by accident\nvar TLS_OPTION_KEYS = ['cert', 'key', 'passphrase', 'ca'];\nvar REQUEST_EVENT = 'request';\nvar RESPONSE_EVENT = 'response';\nvar ERROR_EVENT = 'error';\nvar DONE_EVENT = 'done';\nvar Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {\n _inherits(Request, _EventEmitter);\n var _super = _createSuper(Request);\n function Request(path, method, body) {\n var _this;\n _classCallCheck(this, Request);\n _this = _super.call(this);\n _this.method = method;\n _this.path = (0, _utils.ensureEncoding)(path);\n _this.body = body;\n _this.unwrap = true;\n _this.raw = false;\n _this.headers = {};\n _this.queryParams = {};\n _this.encoding = 'utf8';\n _this.timeout = 0;\n _this.withCredentials = null;\n\n // the private key is credential material, a non enumerable property keeps it out of\n // console.log(request)/JSON.stringify(request) in whatever logging a caller has around\n Object.defineProperty(_assertThisInitialized(_this), 'tlsOptions', {\n value: undefined,\n writable: true,\n enumerable: false,\n configurable: true\n });\n return _this;\n }\n\n /**\n * Sets a header\n *\n * @param {String|Object} key or map of headers\n * @param {String} [value]\n * @returns {Request}\n */\n _createClass(Request, [{\n key: \"set\",\n value: function set(key, value) {\n if ((0, _utils.isObject)(key)) {\n for (var headerName in key) {\n this.set(headerName, key[headerName]);\n }\n } else if (typeof value !== 'undefined') {\n this.headers[key] = value;\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('Authorization', `Basic ${basicAuth.token}`)\n *\n * @param {Object} [basicAuth]\n * @param {String} basicAuth.token\n * @returns {Request}\n */\n }, {\n key: \"basicAuth\",\n value: function basicAuth(_basicAuth) {\n if (_basicAuth) {\n this.set({\n Authorization: \"Basic \".concat(_basicAuth.token)\n });\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('auth-key', authKey)\n *\n * @param {String} [authKey]\n * @returns {Request}\n */\n }, {\n key: \"authKey\",\n value: function authKey(_authKey) {\n if (_authKey) {\n this.set({\n 'auth-key': _authKey\n });\n }\n return this;\n }\n\n /**\n * Attaches a TLS client certificate and private key to the request (mutual TLS).\n *\n * Works only for Node js, in a browser the client certificate is chosen by the browser itself.\n *\n * Calling the method several times merges the options, so the certificate and the key may come\n * from different places. Options other than the ones listed below are ignored.\n *\n * @param {Object} [tlsOptions]\n * @param {String|Buffer|Array} tlsOptions.cert PEM encoded client certificate (or chain)\n * @param {String|Buffer|Array} tlsOptions.key PEM encoded private key\n * @param {String} [tlsOptions.passphrase] passphrase of an encrypted private key\n * @param {String|Buffer|Array} [tlsOptions.ca] PEM encoded CA bundle to verify the server with\n * @returns {Request}\n */\n }, {\n key: \"cert\",\n value: function cert(tlsOptions) {\n var options = tlsOptions && pickTLSOptions(tlsOptions);\n if (options && Object.keys(options).length) {\n this.tlsOptions = _objectSpread(_objectSpread({}, this.tlsOptions), options);\n }\n return this;\n }\n\n /**\n * @param {Object} queryParams\n * @returns {Request}\n */\n }, {\n key: \"query\",\n value: function query(queryParams) {\n Object.assign(this.queryParams, queryParams);\n return this;\n }\n\n /**\n * Sets a multipart form as the request body.\n *\n * Accepts an instance of `Request.FormData`, a WHATWG `FormData` (the Node 18+ global one) and\n * a plain object. A Blob or a File, which the `form-data` package can not stream on its own,\n * is converted, and a value it can not send at all is reported with an error naming the field.\n *\n * @param {Object} form\n * @returns {Request}\n */\n }, {\n key: \"form\",\n value: function form(_form) {\n if (_form) {\n if ((0, _utils.isFormData)(_form)) {\n this.body = _form;\n } else if ((0, _utils.isWebFormData)(_form)) {\n this.body = toRequestFormData(_form);\n } else {\n var formData = new Request.FormData();\n var _loop = function _loop(formKey) {\n if (formKey) {\n (0, _utils.castArray)(_form[formKey]).forEach(function (formValue) {\n if (formValue && formValue.hasOwnProperty('value') && formValue.hasOwnProperty('options')) {\n appendFormPart(formData, formKey, formValue.value, formValue.options);\n } else {\n appendFormPart(formData, formKey, formValue);\n }\n });\n }\n };\n for (var formKey in _form) {\n _loop(formKey);\n }\n this.body = formData;\n }\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('Content-Type', value)\n *\n * @param {String} contentType\n * @returns {Request}\n */\n }, {\n key: \"type\",\n value: function type(contentType) {\n this.set(CONTENT_TYPE_HEADER, contentType);\n return this;\n }\n\n /**\n * Should we unwrap the response and return only body. true by default\n * @param {Boolean} unwrap\n * @returns {Request}\n */\n }, {\n key: \"unwrapBody\",\n value: function unwrapBody(unwrap) {\n this.unwrap = unwrap;\n return this;\n }\n\n /**\n * set encoding to response\n * works only for Node js\n *\n * @param {String} encoding\n * @returns {Request}\n */\n }, {\n key: \"setEncoding\",\n value: function setEncoding(encoding) {\n this.encoding = encoding;\n return this;\n }\n\n /**\n * Sends the request and resolves the response body as raw bytes.\n *\n * Unlike `setEncoding(null)` the result is guaranteed: a `Buffer` in Node js, a `Uint8Array`\n * in a browser (a Buffer is a Uint8Array, so `instanceof Uint8Array` holds in both), an empty\n * one for a 0 byte response, and never a value that `JSON.parse` got to first.\n *\n * The method is terminal, it implies a raw transfer and overrides whatever `setEncoding` was\n * given before it, so there is no need to call `setEncoding(null)` as well.\n *\n * An unsuccessful response is rejected the same way as for any other request, with the error\n * body still JSON parsed when it is JSON - a vendor answers a failed binary download with a\n * JSON error and `error.body.message` has to keep working.\n *\n * @returns {Promise<Buffer|Uint8Array>}\n */\n }, {\n key: \"toBuffer\",\n value: function toBuffer() {\n this.raw = true;\n this.encoding = null;\n this.promise = this.promise || this.send(this.body);\n return this.promise;\n }\n\n /**\n * set withCredentials option\n *\n * @param {Boolean} value\n * @returns {Request}\n */\n }, {\n key: \"setWithCredentials\",\n value: function setWithCredentials(value) {\n this.withCredentials = value;\n return this;\n }\n\n /**\n * A number specifying request timeout in milliseconds.\n * @param {Number} ms\n * @returns {Request}\n */\n }, {\n key: \"setTimeout\",\n value: function setTimeout(ms) {\n this.timeout = ms;\n return this;\n }\n\n /**\n * Sends the request\n *\n * @param {Object} body\n * @returns {Promise}\n */\n }, {\n key: \"send\",\n value: function send(body) {\n var _this2 = this;\n this.emit(REQUEST_EVENT, this);\n var path = this.path;\n var queryString = qs.stringify(this.queryParams);\n if (queryString) {\n path += '?' + queryString;\n }\n if (!(0, _utils.isFormData)(body) && (0, _utils.isWebFormData)(body)) {\n body = toRequestFormData(body);\n }\n var type = this.headers[CONTENT_TYPE_HEADER];\n if (!type && (0, _utils.isObject)(body) && !(0, _utils.isFormData)(body)) {\n this.type('application/json');\n }\n if (body) {\n var isJSON = this.headers[CONTENT_TYPE_HEADER] === 'application/json';\n body = isJSON && typeof body !== 'string' ? JSON.stringify(body) : body;\n }\n var unwrapBody = function unwrapBody(res) {\n return _this2.unwrap ? res.body : res;\n };\n if (Request.verbose) {\n console.log(this.method.toUpperCase(), decodeURIComponent(path), body, this.headers);\n }\n var withCredentials = typeof this.withCredentials === 'boolean' ? this.withCredentials : Request.withCredentials;\n var syncError = new Error();\n var request = Request.send(path, this.method.toUpperCase(), this.headers, body, this.encoding, this.timeout, withCredentials, this.tlsOptions).then(function (res) {\n return parseBody(res, _this2.raw);\n }).then(function (res) {\n return ensureRawBody(res, _this2.raw);\n }).then(checkStatus).then(unwrapBody)[\"catch\"](function (error) {\n error.stack = \"\".concat(error.stack).concat(syncError.stack);\n throw error;\n });\n request.then(function (result) {\n _this2.emit(RESPONSE_EVENT, result);\n _this2.emit(DONE_EVENT, null, result);\n })[\"catch\"](function (error) {\n _this2.emit(ERROR_EVENT, error);\n _this2.emit(DONE_EVENT, error);\n });\n return request;\n }\n\n /**\n * If you are too lazy to use method 'send', don't use it and stay cool :)\n *\n * @param {Function} successHandler\n * @param {Function} errorHandler\n * @returns {Promise}\n */\n }, {\n key: \"then\",\n value: function then(successHandler, errorHandler) {\n this.promise = this.promise || this.send(this.body);\n return this.promise.then(successHandler, errorHandler);\n }\n\n /**\n * @param {Function} errorHandler\n * @returns {Promise}\n */\n }, {\n key: \"catch\",\n value: function _catch(errorHandler) {\n this.promise = this.promise || this.send(this.body);\n return this.promise[\"catch\"](errorHandler);\n }\n }]);\n return Request;\n}(_eventEmitter[\"default\"]);\n/**\n * Keeps only the known TLS options and skips the empty ones,\n * `undefined` values would otherwise overwrite already collected options on a merge\n */\nfunction pickTLSOptions(tlsOptions) {\n var result = {};\n TLS_OPTION_KEYS.forEach(function (key) {\n if (tlsOptions[key] !== undefined && tlsOptions[key] !== null) {\n result[key] = tlsOptions[key];\n }\n });\n return result;\n}\n\n/**\n * Copies a WHATWG FormData into a `Request.FormData`.\n *\n * Iterating with `for (var key in webFormData)` , which is what a plain object gets, walks the\n * enumerable WebIDL operations of the prototype and appends `append`, `get`, `set`, `forEach` ...\n * as form parts, and streaming then calls one of them unbound\n */\nfunction toRequestFormData(webFormData) {\n var formData = new Request.FormData();\n webFormData.forEach(function (value, key) {\n return appendFormPart(formData, key, value);\n });\n return formData;\n}\nfunction appendFormPart(formData, key, value, options) {\n if (typeof formData.getHeaders !== 'function') {\n // a browser FormData, it takes a Blob, a File and a typed array natively\n return options ? formData.append(key, value, options) : formData.append(key, value);\n }\n var part = (0, _utils.normalizeFormPart)(key, value);\n var partOptions = _objectSpread(_objectSpread({}, part.options), options);\n if (Object.keys(partOptions).length) {\n formData.append(key, part.value, partOptions);\n } else {\n formData.append(key, part.value);\n }\n}\nfunction isSuccessStatus(status) {\n return status >= 200 && status < 300;\n}\n\n/**\n * `JSON.parse` coerces its argument with `String()`, so it destroys a body that was asked for as\n * raw bytes whenever those bytes happen to be valid JSON. A raw request skips it for a successful\n * response only, an error body keeps being parsed as it always was.\n */\nfunction parseBody(res, raw) {\n if (raw && isSuccessStatus(res.status)) {\n return res;\n }\n try {\n return _objectSpread(_objectSpread({}, res), {}, {\n body: JSON.parse(raw ? (0, _utils.decodeBytes)(res.body) : res.body)\n });\n } catch (e) {\n return res;\n }\n}\nfunction ensureRawBody(res, raw) {\n return raw && isSuccessStatus(res.status) ? _objectSpread(_objectSpread({}, res), {}, {\n body: (0, _utils.toBytes)(res.body)\n }) : res;\n}\n\n/**\n * Checks if a network request came back fine, and throws an error if not\n *\n * @param {object} response A response from a network request\n *\n * @return {object|undefined} Returns either the response, or throws an error\n */\nfunction checkStatus(response) {\n if (isSuccessStatus(response.status)) {\n return response;\n }\n throw new _error.ResponseError(response);\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sendXmlHttpRequest = sendXmlHttpRequest;\nvar _request2 = require(\"./request\");\nfunction sendXmlHttpRequest(path, method, headers, body, encoding, timeout, withCredentials) {\n return new Promise(function sendRequest(resolve, reject) {\n var request = new _request2.Request.XMLHttpRequest();\n request.timeout = timeout;\n if (!encoding) {\n request.responseType = 'arraybuffer';\n }\n request.open(method.toUpperCase(), path, true);\n if (typeof withCredentials === 'boolean') {\n request.withCredentials = withCredentials;\n }\n request.onload = function handleLoadEvent() {\n var headers = parseHeaders(request.getAllResponseHeaders());\n var _request = request,\n status = _request.status,\n statusText = _request.statusText;\n var result = {\n status: status,\n statusText: statusText,\n headers: headers\n };\n if (encoding) {\n // `responseType` was left as the default one for any encoding, XMLHttpRequest has no way\n // to decode an arbitrary charset, so the body is the text the browser decoded for us.\n // Wrapping that string into a Uint8Array, as it used to be for a non utf8 encoding,\n // produced an empty array and lost the response entirely\n result.body = request.response || request.responseText;\n } else {\n // `responseType` is 'arraybuffer' here, a 0 byte response has to stay bytes as well\n result.body = request.response ? new Uint8Array(request.response) : new Uint8Array(0);\n }\n resolve(result);\n request = null;\n };\n request.onerror = function handleErrorEvent() {\n reject(new Error('Network Error'));\n request = null;\n };\n request.ontimeout = function handleTimeout() {\n reject(new Error('Connection aborted due to timeout'));\n request = null;\n };\n Object.keys(headers).forEach(function (key) {\n request.setRequestHeader(key, headers[key]);\n });\n request.send(body);\n });\n}\nfunction parseHeaders(headersString) {\n var parsed = {};\n if (!headersString) {\n return parsed;\n }\n headersString.split('\\n').forEach(function (line) {\n var i = line.indexOf(':');\n var key = line.substr(0, i).trim();\n var val = line.substr(i + 1).trim();\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n return parsed;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _clientNode = require(\"./client-node\");\nvar _clientBrowser = require(\"./client-browser\");\nvar _request = require(\"./request\");\nvar _utils = require(\"./utils\");\nObject.defineProperty(_request.Request, 'FormData', {\n get: function get() {\n return (0, _utils.getFormData)();\n },\n set: function set(value) {\n (0, _utils.setFormData)(value);\n }\n});\n_request.Request.XMLHttpRequest = typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined;\n\n// `tlsOptions` is meaningful for the Node client only, XMLHttpRequest gives no control over the\n// client certificate - a browser picks it from the OS/browser keystore when a server asks for one\n_request.Request.send = function (path, method, headers, body, encoding, timeout, withCredentials, tlsOptions) {\n var sender = typeof _request.Request.XMLHttpRequest !== 'undefined' ? _clientBrowser.sendXmlHttpRequest : _clientNode.sendNodeAPIRequest;\n return sender(path, method, headers, body, encoding, timeout, withCredentials, tlsOptions);\n};\n_request.Request.verbose = false;\n_request.Request.withCredentials = false;\n_request.Request.methods = ['get', 'post', 'put', 'patch', 'delete', 'head', 'options'];\n_request.Request.methods.forEach(function (method) {\n _request.Request[method] = function (path, body) {\n return new _request.Request(path, method, body);\n };\n});\nexports = module.exports = _request.Request;\nvar _default = exports[\"default\"] = _request.Request;", "// Published as `@flowrunner/cli/runtime`. Bundled rather than shipped raw because it sits on\n// @flowrunner/flow-extension-runner and @flowrunner/jsdoc-parser, which are devDependencies; `jsdoc` and\n// `requizzle` stay real dependencies since the JSDoc parser shells out to them at runtime.\n//\n// This code IS the deployed definition, so a reimplementation in a consumer repo can drift \u2014 which makes a\n// parity report green but meaningless. Import from here instead.\n//\n// Importing installs `global.Flowrunner`. Entry-point paths are `require`d, so they must be absolute.\n\nexport type { ExtensionVersion, RunServiceMethodData } from '@flowrunner/flow-extension-runner'\nexport {\n buildServiceDefinition,\n detectVersion,\n getServiceConfigs,\n runServiceMethod,\n} from '@flowrunner/flow-extension-runner'\n\n// Registration is a require-time side effect, so this alone is a no-op against a cached module: detectVersion\n// then reports a v2 service as `v1` and buildServiceDefinition returns null, silently. Pair it with\n// `delete require.cache[require.resolve(entryPoint)]`.\nexport { resetRegistry } from '@flowrunner/flow-extension-runner/v2'\n\n// getServiceConfigs and buildServiceDefinition return types. SharedExtensionDefinition is NOT interchangeable\n// with the console's same-named model that parseJsDocToServiceJson returns \u2014 unassignable in both directions\n// (`serviceInfo.integrationIcon`, `metaInfo.sampleResultLoader`). Type a v1 parse with\n// `ReturnType<typeof parseJsDocToServiceJson>`.\nexport type { ConfigItem, SharedExtensionDefinition } from '@flowrunner/flow-extension-runner/v2'\nexport { parseJsDocToServiceJson } from '@flowrunner/jsdoc-parser'\n", "import BLRequest from 'backendless-request'\n\nimport type { FlowrunnerRuntime } from './global'\nimport { createExtension } from './v2/create-extension'\nimport { crypto } from './v2/crypto'\nimport { z } from './v2/params'\nimport { getExtension } from './v2/registry'\n\n// Installs the single global `Flowrunner` namespace shared by v1 and v2. Importing this module for its\n// side effect guarantees the global exists before any service module is required. The v1 registration\n// seam (`ServerCode`) starts null and is toggled per-require by v1/namespace.ts.\n\nconst flowrunnerRuntime: FlowrunnerRuntime = {\n Request: BLRequest,\n z,\n crypto,\n createExtension,\n getExtension,\n ServerCode: null,\n}\n\nglobal.Flowrunner = flowrunnerRuntime\n\nexport { flowrunnerRuntime }\n", "import type { FlowExtensionErrorCode } from './codes'\n\n// Base class for all flow-extension runtime errors. Mirrors the console's `ApiError` shape (statusCode +\n// type/code + message + details) so the server can map it straight onto an HTTP response, while staying\n// self-contained (the runner never imports the console workspace).\n\nexport interface FlowExtensionErrorJSON {\n name: string\n code: FlowExtensionErrorCode\n statusCode: number\n message: string\n details?: unknown\n}\n\nexport class FlowExtensionError<DetailsT = unknown> extends Error {\n // Discriminant that survives structured-clone / JSON across the worker boundary, where `instanceof` fails.\n readonly isFlowExtensionError = true\n\n constructor(\n public readonly code: FlowExtensionErrorCode,\n public readonly statusCode: number,\n message: string,\n public readonly details?: DetailsT\n ) {\n super(message)\n this.name = this.constructor.name\n\n // Maintains a proper stack trace for where the error was thrown (V8 only).\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor)\n }\n }\n\n toJSON(): FlowExtensionErrorJSON {\n return {\n name: this.name,\n code: this.code,\n statusCode: this.statusCode,\n message: this.message,\n details: this.details,\n }\n }\n}\n\n// True for a FlowExtensionError instance, or a plain object carrying the discriminant (e.g. after the error\n// crossed the worker IPC boundary and lost its prototype).\nexport function isFlowExtensionError(value: unknown): value is FlowExtensionError {\n if (value instanceof FlowExtensionError) {\n return true\n }\n\n return typeof value === 'object' &&\n value !== null &&\n (value as { isFlowExtensionError?: unknown }).isFlowExtensionError === true\n}\n", "// Stable, machine-readable codes for flow-extension runtime errors. These survive the worker \u2192 server IPC\n// boundary (as the error `code`), so the console and client can resolve/branch on the error type rather\n// than string-matching messages. Do not renumber/rename existing codes \u2014 they are part of the contract.\nexport const FlowExtensionErrorCodes = {\n // A method name that isn't a registered action/dictionary/trigger/SYSTEM method.\n UNKNOWN_METHOD: 'FR_EXT_UNKNOWN_METHOD',\n // A required named param (invocation / callbackObject / refreshToken) was absent from the method input.\n MISSING_METHOD_PARAM: 'FR_EXT_MISSING_METHOD_PARAM',\n // The method input failed its schema (action params, helper payload, SYSTEM invocation).\n INVALID_METHOD_INPUT: 'FR_EXT_INVALID_METHOD_INPUT',\n // A dictionary/loader `criteria` failed the declared criteria schema \u2014 reported apart from the payload so\n // the UI can point at the dependent fields instead of the whole call.\n INVALID_CRITERIA: 'FR_EXT_INVALID_CRITERIA',\n // Two registered items (action/dictionary/trigger) share an id.\n DUPLICATE_ITEM_ID: 'FR_EXT_DUPLICATE_ITEM_ID',\n // No v2 extension registered for the given serviceId after requiring the module.\n EXTENSION_NOT_REGISTERED: 'FR_EXT_NOT_REGISTERED',\n // A declared config value is missing or the wrong shape (see v2/schema/normalize).\n INVALID_CONFIG: 'FR_EXT_INVALID_CONFIG',\n // A schema slot that must be a z.object was declared as something else (see v2/schema/assert-object-schema).\n INVALID_SCHEMA: 'FR_EXT_INVALID_SCHEMA',\n // A polling trigger declared zero or multiple mechanisms, or is missing its fetch.\n INVALID_TRIGGER_CONFIG: 'FR_EXT_INVALID_TRIGGER_CONFIG',\n // A trigger dispatch referenced an unregistered trigger id.\n UNKNOWN_TRIGGER: 'FR_EXT_UNKNOWN_TRIGGER',\n // setupRealtimeTriggers is misconfigured (missing subscribe/unsubscribe, or declared twice).\n REALTIME_SETUP: 'FR_EXT_REALTIME_SETUP',\n // Inbound webhook failed signature verification.\n // setupOauth2 is misconfigured (e.g. declared twice).\n OAUTH_SETUP: 'FR_EXT_OAUTH_SETUP',\n // A handler accessed an opt-in feature (oauth/files) that the extension didn't enable.\n FEATURE_NOT_ENABLED: 'FR_EXT_FEATURE_NOT_ENABLED',\n // ...\n INVALID_DICTIONARY_OUTPUT_SCHEME: 'INVALID_DICTIONARY_OUTPUT_SCHEME',\n} as const\n\nexport type FlowExtensionErrorCode = (typeof FlowExtensionErrorCodes)[keyof typeof FlowExtensionErrorCodes]\n", "import { FlowExtensionError } from './base'\nimport { FlowExtensionErrorCodes } from './codes'\n\n// Concrete flow-extension errors. Messages are kept stable (callers/tests rely on them); the `code` is the\n// machine-resolvable identity.\n\nexport class UnknownMethodError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string) {\n super(\n FlowExtensionErrorCodes.UNKNOWN_METHOD,\n 404,\n `[flow-extension:${ serviceId }] unknown method \"${ methodName }\"`,\n { serviceId, methodName }\n )\n }\n}\n\nexport class MissingMethodParamError extends FlowExtensionError {\n constructor(serviceId: string, param: string) {\n super(\n FlowExtensionErrorCodes.MISSING_METHOD_PARAM,\n 400,\n `[flow-extension:${ serviceId }] missing required \"${ param }\" in method input`,\n { serviceId, param }\n )\n }\n}\n\n// A single schema violation, flattened out of zod so the details survive the worker IPC boundary.\nexport interface ValidationIssue {\n // Dot/bracket path inside the validated value ('' when the value itself is invalid).\n path: string\n message: string\n code?: string\n}\n\nfunction formatIssues(issues: ValidationIssue[]): string {\n return issues.map(issue => (issue.path ? `${ issue.path }: ${ issue.message }` : issue.message)).join('; ')\n}\n\n// A method was called with input that doesn't match its schema \u2014 action params, a helper `payload`, or a\n// SYSTEM method's invocation. `target` names the validated slot so the caller can point at it.\nexport class InvalidMethodInputError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string, target: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_METHOD_INPUT,\n 400,\n `[flow-extension:${ serviceId }] invalid ${ target } for method \"${ methodName }\" \u2014 ${ formatIssues(issues) }`,\n { serviceId, methodName, target, issues }\n )\n }\n}\n\n// The `criteria` of a dictionary/loader call failed its declared schema. Separate from the payload error so\n// the console can surface \"these dependent fields are wrong\" rather than \"the whole call is malformed\".\nexport class InvalidCriteriaError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_CRITERIA,\n 400,\n `[flow-extension:${ serviceId }] invalid criteria for method \"${ methodName }\" \u2014 ${ formatIssues(issues) }`,\n { serviceId, methodName, target: 'criteria', issues }\n )\n }\n}\n\nexport class DuplicateItemIdError extends FlowExtensionError {\n constructor(serviceId: string, id: string, kind: string) {\n super(\n FlowExtensionErrorCodes.DUPLICATE_ITEM_ID,\n 400,\n `[flow-extension:${ serviceId }] duplicate id \"${ id }\" (${ kind }) \u2014 ids must be unique across all registered items`,\n { serviceId, id, kind }\n )\n }\n}\n\nexport class ExtensionNotRegisteredError extends FlowExtensionError {\n constructor(serviceId: string, entryPoint?: string) {\n super(\n FlowExtensionErrorCodes.EXTENSION_NOT_REGISTERED,\n 404,\n `[flow-extension] no v2 extension registered for serviceId=\"${ serviceId }\"${ entryPoint ? ` (${ entryPoint })` : '' }`,\n { serviceId, entryPoint }\n )\n }\n}\n\nexport class InvalidConfigError extends FlowExtensionError {\n // Raised when the resolved `configItems` do not satisfy what the service declared. Carries one issue per\n // offending field, so the console can point at the config form rather than reporting the whole call.\n constructor(serviceId: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_CONFIG,\n 400,\n `[flow-extension:${ serviceId }] invalid config \u2014 ${ formatIssues(issues) }`,\n { serviceId, issues }\n )\n }\n}\n\nexport class InvalidSchemaError extends FlowExtensionError {\n // `message` is composed by the guard, which knows how to describe what was received and what to do\n // about it (see v2/schema/assert-object-schema.ts).\n constructor(message: string, details: Record<string, unknown>) {\n super(FlowExtensionErrorCodes.INVALID_SCHEMA, 400, message, details)\n }\n}\n\nexport class InvalidTriggerConfigError extends FlowExtensionError {\n // `message` carries the specifics (kept verbatim for existing tests).\n constructor(serviceId: string, message: string, details?: Record<string, unknown>) {\n super(FlowExtensionErrorCodes.INVALID_TRIGGER_CONFIG, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId, ...details })\n }\n}\n\nexport class UnknownTriggerError extends FlowExtensionError {\n constructor(serviceId: string, triggerId: string, kind = 'polling') {\n super(\n FlowExtensionErrorCodes.UNKNOWN_TRIGGER,\n 404,\n `[flow-extension:${ serviceId }] no ${ kind } trigger \"${ triggerId }\"`,\n { serviceId, triggerId, kind }\n )\n }\n}\n\nexport class RealtimeSetupError extends FlowExtensionError {\n constructor(serviceId: string, message: string) {\n super(FlowExtensionErrorCodes.REALTIME_SETUP, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId })\n }\n}\n\nexport class OAuthSetupError extends FlowExtensionError {\n constructor(serviceId: string, message: string) {\n super(FlowExtensionErrorCodes.OAUTH_SETUP, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId })\n }\n}\n\nexport class FeatureNotEnabledError extends FlowExtensionError {\n constructor(feature: string, hint: string) {\n super(\n FlowExtensionErrorCodes.FEATURE_NOT_ENABLED,\n 400,\n `[flow-extension] \"${ feature }\" is not enabled for this extension \u2014 ${ hint }`,\n { feature }\n )\n }\n}\n\nexport class InvalidDictionaryOutputScheme extends FlowExtensionError {\n constructor(serviceId: string, dictionaryName: string) {\n super(\n FlowExtensionErrorCodes.INVALID_DICTIONARY_OUTPUT_SCHEME,\n 400,\n `[flow-extension:${ serviceId }] dictionary \"${ dictionaryName }\" execution returns wrong result, it must result list of object {value, label, hist} or object {cursor:'string', items:[...]}`,\n { serviceId, dictionaryName }\n )\n }\n}\n", "import type { MethodParams } from '../params'\nimport type { ResultSpec } from '../result'\nimport type { DynamicPropsDef } from '../types'\n\n// What a generated loader needs from the item it belongs to. Actions, polling triggers and realtime\n// triggers can all declare a loader `result`, so this is the narrow contract between them and ../loaders \u2014\n// it keeps a loader from having to know which of the three registered it.\n//\n// All three method classes implement it directly \u2014 a loader is handed its owner, not a description of one.\n\n// The generated loader method names. Frozen \u2014 these are published method names, derived from the owner's id.\nexport const sampleResultLoaderName = (ownerId: string): string => `${ ownerId }_SampleResultLoader`\nexport const dynamicParamsLoaderName = (ownerId: string): string => `${ ownerId }_DynamicParams`\nexport const dynamicPropsLoaderName = (ownerId: string, field: string): string => `${ ownerId }_${ field }_DynamicProps`\n\nexport interface LoaderOwner {\n readonly id: string\n // The owner's grouping label; its loaders inherit it so they sort alongside it.\n readonly category: string\n readonly params: MethodParams\n readonly result: ResultSpec\n}\n\n// Only actions load params: `dynamicParams`, and `.dynamicProps()` on their top-level fields.\nexport interface ParamsLoaderOwner extends LoaderOwner {\n readonly dynamicParams?: DynamicPropsDef\n}\n", "import { InvalidSchemaError } from '../../../errors'\nimport type { SchemaSource } from '../types'\nimport type { AnyZod } from './introspect'\n\n// Every schema slot is OPTIONAL. Declare it and it must be a `z.object` \u2014 because that is the only thing the\n// runner can do anything with: a container of named fields to validate input against and publish as the\n// method's input model.\n//\n// Without this guard a wrong shape degrades SILENTLY. `params: z.string()` has no `.shape`, so the method\n// publishes no params, the console renders a node with no inputs, validation becomes a passthrough, and the\n// service deploys clean \u2014 the author finds out when the action cannot be called correctly in production.\n//\n// So the check runs at REGISTRATION time, while the service module is being `require`d. That means it fires\n// on the first call the CLI or console makes against the extension, including the `buildServiceDefinition`\n// that `flowrunner deploy` performs per service \u2014 so a bad schema stops the deploy instead of shipping.\n\n// Zod's single-child wrappers. An object inside one of these cannot serve as a container: the wrapper has no\n// `.shape` and no `.partial()`, so every field would be invisible.\nconst WRAPPERS = new Set(['optional', 'nullable', 'nullish', 'default', 'prefault'])\n\nconst typeOf = (value: unknown): string | undefined =>\n (value as AnyZod | undefined)?._zod?.def?.type as string | undefined\n\n// How to name what the author actually passed, in their own vocabulary.\nfunction describe(value: unknown): string {\n const type = typeOf(value)\n\n if (type) {\n if (WRAPPERS.has(type)) {\n const inner = typeOf((value as { _zod?: { def?: { innerType?: unknown } } })._zod?.def?.innerType)\n\n return `z.${ inner ?? 'unknown' }().${ type }()`\n }\n\n return `z.${ type }()`\n }\n\n if (value === null) {\n return 'null'\n }\n\n if (Array.isArray(value)) {\n return 'an array'\n }\n\n if (typeof value === 'object') {\n return 'a plain object'\n }\n\n return `a ${ typeof value }`\n}\n\n// The most useful next step for this particular mistake.\nfunction hint(value: unknown, slot: string, isReturn: boolean): string {\n const type = typeOf(value)\n\n if (type && WRAPPERS.has(type)) {\n return '; an object container cannot be optional \u2014 mark its fields optional instead'\n }\n\n if (!type && typeof value === 'object' && value !== null && !Array.isArray(value)) {\n return ' \u2014 did you forget to wrap it in z.object({ \u2026 })?'\n }\n\n // Every slot may simply be left out, which is usually what an author reaching for a non-object wanted.\n return isReturn ? '' : `; omit \\`${ slot }\\` entirely if there is nothing to declare`\n}\n\n/**\n * Throws unless `scheme` is a `z.object` (including `z.looseObject` / `z.strictObject`). `undefined` passes \u2014\n * an undeclared slot is legal everywhere.\n */\nexport function assertObjectSchema(scheme: unknown, source: SchemaSource): void {\n if (scheme == null || typeOf(scheme) === 'object') {\n return\n }\n\n const slot = source.slot ?? 'schema'\n const kind = source.kind ?? 'extension'\n // A slot spelled with parentheses is a function whose RETURN is being checked.\n const isReturn = slot.endsWith('()')\n // The extension itself has no item id to name; everything else does.\n const subject = source.itemId ? `${ kind } \"${ source.itemId }\": ` : ''\n const received = describe(scheme)\n\n // A params loader's `execute()` may also return a plain shape of zod fields, which the loader wraps itself.\n const expected = slot.endsWith('.execute()') ? 'a z.object({ \u2026 }) or a shape of zod fields' : 'a z.object({ \u2026 })'\n\n throw new InvalidSchemaError(\n `[flow-extension:${ source.serviceId }] ${ subject }\\`${ slot }\\` ${ isReturn ? 'must return' : 'must be' }` +\n ` ${ expected } \u2014 received ${ received }${ hint(scheme, slot, isReturn) }`,\n { serviceId: source.serviceId, kind, itemId: source.itemId, slot, received }\n )\n}\n", "/**\n * Platform param GROUPS \u2014 a whole `z.object` the runtime ships (see ./files-options.ts), not a control.\n *\n * They travel in the same `uiComponent.type` slot as a control token, so they belong in the map below. They\n * are named apart from it because **nothing renders a single input for one**: a consumer reads the token to\n * decide how to draw the whole group, and a registry of one-input-per-token has no entry for it.\n *\n * An author's own `z.object` carries none of these.\n */\nexport const FlowExtensionParamGroupTypes = {\n FILE_UPLOAD_OPTIONS: 'FILE_UPLOAD_OPTIONS',\n FILE_LIST_OPTIONS : 'FILE_LIST_OPTIONS',\n FILE_GET_OPTIONS : 'FILE_GET_OPTIONS',\n FILE_DELETE_OPTIONS: 'FILE_DELETE_OPTIONS',\n}\n\nexport const FlowExtensionParamWidgetTypes = {\n // Derived from a zod declaration \u2014 see `deriveWidget`.\n SINGLE_LINE_TEXT: 'SINGLE_LINE_TEXT',\n MULTI_LINE_TEXT : 'MULTI_LINE_TEXT',\n NUMERIC_STEPPER : 'NUMERIC_STEPPER',\n DATE_PICKER : 'DATE_PICKER',\n TOGGLE : 'TOGGLE',\n DROPDOWN : 'DROPDOWN',\n\n ...FlowExtensionParamGroupTypes,\n\n // legacy \u2014 no zod declaration produces these. They reach the console only from a legacy JSDoc-format\n // service, which writes `uiComponent` by hand. Kept because the console still renders them for an\n // already-installed extension.\n NUMERIC : 'NUMERIC',\n CHECKBOX : 'CHECKBOX',\n DATE_TIME_PICKER: 'DATE_TIME_PICKER',\n TIME_PICKER : 'TIME_PICKER',\n}\n\n/**\n * The widget tokens a declaration carries EXPLICITLY, as author metadata (`meta.frWidget`) \u2014 everything else\n * in the map above is DERIVED from the zod type by `deriveWidget`.\n *\n * `MULTI_LINE_TEXT` is `z.text()` / `z.json()`; the `FILE_*_OPTIONS` tokens name a platform param group.\n */\nexport type FrWidgetToken =\n | 'MULTI_LINE_TEXT'\n | 'FILE_UPLOAD_OPTIONS'\n | 'FILE_LIST_OPTIONS'\n | 'FILE_GET_OPTIONS'\n | 'FILE_DELETE_OPTIONS'\n\n/** The subset that names a platform param GROUP rather than a single control. */\nexport type FrGroupToken = Exclude<FrWidgetToken, 'MULTI_LINE_TEXT'>\n", "// Introspection over the extended zod schemas: walk a declared object's fields, unwrap the modifiers that do\n// not change what a field IS, collect merged author meta (outer wins), and derive the param type +\n// `uiComponent` widget. Everything here reads a schema and returns plain data \u2014 it is the layer both the\n// runner's model builder and the console's renderer sit on top of.\n//\n// This module DESCRIBES a schema; it never decides whether the schema is allowed. A declaration the runtime\n// cannot render is refused at registration by ./assert-supported-schema.ts, which reads `resolvedType` from\n// here. Keeping the two apart is what lets the runtime's own SYSTEM schemes \u2014 which model a wire contract\n// rather than a rendered form \u2014 be described by the same code that refuses an author writing the same thing\n// in a parameter.\nimport { FlowExtensionParamWidgetTypes } from '../widget-types'\nimport type { FrMeta } from '../zod'\n\nexport interface Inspected {\n // The unwrapped core schema (past the modifiers below).\n core: AnyZod\n // Core zod def type: 'string' | 'number' | 'boolean' | 'enum' | 'date' | 'object' | 'array' | \u2026\n // Defaulted to 'string' when the schema reports none, so every consumer has something to switch on.\n coreType: string\n // The SAME answer, undefined rather than defaulted. What the registration guard has to read: in `coreType`\n // \"declared nothing\" and \"declared a string\" are the same value, and a policy decision cannot conflate them.\n resolvedType?: string\n /**\n * A `z.union()`'s declared branches, outermost union only \u2014 `undefined` for everything else.\n *\n * `core` and `coreType` above have already been resolved to the FIRST branch, which is what publishes and\n * what picks the widget. That answer is right for every consumer that only needs a type, and wrong for the\n * two that must consider all of them: the registration guard has to refuse a union with an unsupported\n * branch, and coercion has to try each branch in turn. They read this.\n */\n branches?: AnyZod[]\n required: boolean\n defaultValue: unknown\n meta: FrMeta\n}\n\n// Structural zod shape \u2014 we read internals (`_zod.def`) rather than depend on zod's public generics.\nexport type AnyZod = {\n _zod?: { def?: Record<string, unknown> }\n meta?: () => Record<string, unknown> | undefined\n shape?: Record<string, AnyZod>\n options?: unknown[]\n}\n\nconst OPTIONAL_WRAPPERS = new Set(['optional', 'nullable', 'nullish'])\nexport const DEFAULT_WRAPPERS = new Set(['default', 'prefault'])\n\n/**\n * Modifiers that constrain or re-shape a value without changing what the AUTHOR declared it to be. The\n * runtime looks straight through them: they decide nothing about the widget, the published type, or which\n * coercion runs.\n *\n * - `readonly` \u2014 freezes zod's output; the declared type is the inner one.\n * - `pipe` \u2014 `.pipe(b)` and `.transform(fn)` both produce this. We follow `def.in`, the INPUT side, because\n * the published model describes **what a caller supplies**: it is what the console renders a form for, what\n * the AI-tool schema advertises, and what the coercion layer must convert to before zod sees the value.\n * What `execute` ends up receiving is the pipe's own business and is not a published fact.\n * - `lazy` \u2014 a thunk, for a recursive declaration.\n *\n * `.catch()` is deliberately NOT here. It is refused at registration instead (see\n * ./assert-supported-schema.ts): unwrapping it would fix the published type while leaving the declaration\n * silently substituting a fallback for invalid input, which is the more serious half of that defect.\n */\nexport const TRANSPARENT_WRAPPERS = new Set(['readonly', 'pipe', 'lazy'])\n\n// Where the schema inside a wrapper lives \u2014 it is not always `innerType`.\nexport function innerOf(def: Record<string, unknown>, type: string): AnyZod | undefined {\n if (type === 'pipe') {\n return def.in as AnyZod | undefined\n }\n\n if (type === 'lazy') {\n return (def.getter as (() => AnyZod) | undefined)?.()\n }\n\n return def.innerType as AnyZod | undefined\n}\n\n// A self-referential `z.lazy()` would peel forever. Nothing legitimate nests modifiers anywhere near this deep.\n// Shared with ../json/encode.ts, whose own wrapper walk has to stop on the same declarations this one does.\nexport const MAX_UNWRAP_DEPTH = 64\n\nexport function inspect(schema: AnyZod): Inspected {\n let current: AnyZod | undefined = schema\n // An `.optional()` / `.default()` seen OUTSIDE any `.nonoptional()`. The chain is walked outer\u2192inner and\n // the outermost modifier is the author's final word, so `.optional().nonoptional()` is required while\n // `.nonoptional().optional()` is not \u2014 `sealed` is what stops an inner one from speaking for an outer one.\n // Mirrors `declaredAbsence` in ./field-plan.ts, which has to reach the same answer.\n let optional = false\n let sealed = false\n let defaultValue: unknown\n let branches: AnyZod[] | undefined\n let depth = 0\n const metas: Record<string, unknown>[] = []\n\n while (current?._zod && depth++ < MAX_UNWRAP_DEPTH) {\n const meta = typeof current.meta === 'function' ? current.meta() : undefined\n\n if (meta) {\n metas.push(meta)\n }\n\n const def = current._zod.def || {}\n const type = def.type as string\n\n if (OPTIONAL_WRAPPERS.has(type)) {\n optional ||= !sealed\n current = def.innerType as AnyZod\n continue\n }\n\n if (DEFAULT_WRAPPERS.has(type)) {\n optional ||= !sealed\n\n if (defaultValue === undefined) {\n defaultValue = def.defaultValue\n }\n\n current = def.innerType as AnyZod\n continue\n }\n\n if (type === 'nonoptional') {\n sealed = true\n current = def.innerType as AnyZod\n continue\n }\n\n /**\n * A union resolves to its FIRST branch, and the branch list is carried on the result.\n *\n * \u26A0\uFE0F Declaration order is therefore published contract: `z.union([A, B])` and `z.union([B, A])` validate\n * identically and publish differently, and nothing in the source says so. It is documented in\n * service-code-format/02-zod-types.md; do not reorder a union's branches for readability.\n *\n * Only the OUTERMOST union is recorded \u2014 a nested one is resolved again when its own branch is walked.\n */\n if (type === 'union') {\n const options = def.options as AnyZod[] | undefined\n\n // A union with nothing in it resolves to nothing; leave it as the core so the guard reports it.\n if (!options?.length) {\n break\n }\n\n branches ??= options\n current = options[0]\n continue\n }\n\n if (TRANSPARENT_WRAPPERS.has(type)) {\n const inner = innerOf(def, type)\n\n // A wrapper we cannot see inside is the core as far as anything here is concerned; the guard reports it.\n if (!inner) {\n break\n }\n\n current = inner\n continue\n }\n\n break\n }\n\n // metas are collected outer\u2192inner; reverse so outer is applied last (wins) in the merge.\n const meta = Object.assign({}, ...metas.reverse()) as FrMeta\n const core = current as AnyZod\n const resolvedType = core?._zod?.def?.type as string | undefined\n\n return {\n core,\n coreType: resolvedType || 'string',\n resolvedType,\n required: !optional,\n defaultValue,\n meta,\n ...(branches ? { branches } : {}),\n }\n}\n\nexport interface WidgetInfo {\n paramType: string\n uiComponent?: Record<string, unknown>\n items?: { type: string }\n}\n\n/**\n * The runtime type of a `z.literal(\u2026)`, when every declared value agrees on one \u2014 `undefined` for a mixed\n * literal, which has neither a single widget nor a single conversion.\n *\n * Read by BOTH ends: `deriveWidget` publishes the type, ../schema/coerce.ts converts to it. They have to be\n * the same answer \u2014 a toggle the console draws for a field the runtime will not accept `'true'` for is the\n * defect this module exists to prevent \u2014 which is why the two read one function rather than each deciding.\n * `undefined` is what keeps a mixed literal out of coercion: stringifying the `1` in `z.literal(['a', 1])`\n * would turn a value the declaration accepts into one it rejects.\n */\n// `typeof` answers 'object' for null and 'function' for a function \u2014 neither is a widget, and `z.literal(null)`\n// drew an empty nested form before this was excluded. Only the scalar kinds name a real type.\nconst LITERAL_KINDS = new Set(['string', 'number', 'boolean', 'bigint'])\n\nexport function literalType(core: AnyZod): string | undefined {\n const values = (core._zod?.def?.values as unknown[] | undefined) ?? []\n const kinds = new Set(values.map(value => typeof value))\n const [kind] = [...kinds]\n\n return kinds.size === 1 && LITERAL_KINDS.has(kind) ? kind : undefined\n}\n\n// Derive the v1 param `type` + `uiComponent` from a core zod type (widget is derived from the type \u2014 there\n// is no `.uiComponent()` in v2). Tokens match the v1 conventions (MULTI_LINE_TEXT/NUMERIC_STEPPER/TOGGLE/\u2026).\n//\n// TOTAL by design: this is a projection, not a policy. It has to answer for the runtime's own SYSTEM schemes\n// too (see ../../model/params-model.ts `toOpaqueBodyParams`), which carry `z.unknown()` and loose records no\n// author would be allowed to declare in a parameter. What an AUTHOR may write is decided once, at\n// registration, by ./assert-supported-schema.ts.\nexport function deriveWidget(ins: Inspected): WidgetInfo {\n const { coreType, core, meta } = ins\n\n // `z.json()` \u2014 arbitrary JSON, typed into a textarea. Checked BEFORE the type switch because the\n // declaration underneath is `z.unknown()`: it has to accept the PARSED value once ./coerce.ts has run, so\n // the type says nothing about what the caller supplies. The meta does, and what the caller supplies is text.\n if (meta.frJson) {\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT } }\n }\n\n switch (coreType) {\n case 'string':\n if (meta.frWidget === FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT) {\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT } }\n }\n\n return { paramType: 'STRING' }\n\n case 'number':\n case 'bigint':\n return { paramType: 'NUMBER', uiComponent: { type: FlowExtensionParamWidgetTypes.NUMERIC_STEPPER } }\n\n case 'boolean':\n return { paramType: 'BOOLEAN', uiComponent: { type: FlowExtensionParamWidgetTypes.TOGGLE } }\n\n case 'date':\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.DATE_PICKER } }\n\n case 'enum': {\n // `.map({ Label: value })` shows labels; otherwise the enum options are the values.\n // The options are always the declared VALUES \u2014 that is what a flow element stores. `.labels()` adds a\n // display name per value, published as `{ value, label }` pairs the console renders directly.\n const declared = ((core.options ?? Object.values((core._zod?.def?.entries as Record<string, unknown>) ?? {})) as unknown[])\n .map(String)\n const labels = meta.frLabels\n const values: unknown[] = labels\n ? declared.map(value => ({ value, label: labels[value] ?? value }))\n : declared\n\n return { paramType: 'STRING', uiComponent: { type: 'DROPDOWN', options: { values } } }\n }\n\n // A literal is a one-value type, so it renders as whatever that value IS rather than always as text.\n // A mixed one has no such type and falls back to text.\n case 'literal':\n return deriveWidget({ ...ins, coreType: literalType(core) ?? 'string' })\n\n // A platform param GROUP names itself: the runtime's own file-options objects (../files-options.ts) carry\n // a token so a consumer can render the group as the thing it is instead of as an anonymous nested form.\n // An author's own `z.object` carries no marker and publishes exactly as it always has.\n case 'object':\n return meta.frWidget\n ? { paramType: 'OBJECT', uiComponent: { type: meta.frWidget } }\n : { paramType: 'OBJECT' }\n\n // A record is an OBJECT whose KEYS are open. The coercion layer has always walked it as one (see\n // ./coerce.ts); publishing it as one is the model catching up with the runtime.\n case 'record':\n return { paramType: 'OBJECT' }\n\n case 'array': {\n const element = core._zod?.def?.element as AnyZod | undefined\n const elementType = element ? deriveWidget(inspect(element)).paramType : 'STRING'\n\n return { paramType: 'LIST', items: { type: elementType } }\n }\n\n // `z.any()` / `z.unknown()` declare nothing to render or to convert \u2014 the pipeline passes them through\n // untouched, and the model has no better word for \"anything\" than the permissive one.\n case 'any':\n case 'unknown':\n return { paramType: 'STRING' }\n\n // Reached only by a runtime-owned scheme; an author's is refused at registration. Text is the permissive\n // answer for a SYSTEM param the console never draws.\n default:\n return { paramType: 'STRING' }\n }\n}\n\n// The declared fields of a z.object, in declaration order. Tolerates a missing/!object schema by returning\n// nothing \u2014 an undeclared slot is treated as \"no fields\" (see ../params.ts).\nexport function shapeEntries(schema: AnyZod | undefined): [name: string, schema: AnyZod][] {\n const shape = schema?.shape\n\n return shape && typeof shape === 'object' ? Object.entries(shape) : []\n}\n\n// The display labels a field declared with `.labels({ value: 'Label' })`, if any. Display only \u2014 nothing is\n// translated at runtime, because the value the element stored is already the value the handler wants.\nexport function fieldLabels(schema: AnyZod): Record<string, string> | undefined {\n return inspect(schema).meta.frLabels\n}\n", "import { InvalidSchemaError } from '../../../errors'\nimport type { SchemaSource } from '../types'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\n\n// The declared type surface, enforced. Sibling of ./assert-object-schema.ts \u2014 that one checks the CONTAINER\n// is a z.object, this one checks what is declared INSIDE it, at every depth.\n//\n// Why it exists: the runtime reads a zod declaration to decide the published type, the widget the console\n// draws, and which coercion runs before `execute`. Everything it cannot classify used to fall through to\n// `STRING`. That fallback is worse than it looks, because it fails in two places at once \u2014 the parameter is\n// published as text (a list stops being a list, a toggle becomes a text box) AND it drops out of the\n// coercion layer, so the string values a flow supplies are never converted. A `z.boolean().catch(false)`\n// bound to a template therefore hands `execute` `false` for an explicit `'true'`: exactly the legacy boolean\n// defect that v2's coercion layer exists to close.\n//\n// So an unrecognised declaration must be an ERROR, not a guess. The supported set below is closed and\n// documented (service-code-format/02-zod-types.md); a zod release that adds a modifier cannot silently\n// degrade a parameter, because the new name simply is not in it.\n//\n// Runs at REGISTRATION, while the service module is being required \u2014 the same moment, and for the same\n// reason, as the object-container check: it fires on the first call the CLI or console makes against the\n// extension, including the `buildServiceDefinition` behind `flowrunner deploy`, so a bad declaration stops\n// the deploy instead of shipping.\n\n/**\n * Slots held to the documented surface \u2014 everything an AUTHOR writes.\n *\n * The runtime's own SYSTEM schemes (`kind: 'system method'`) are deliberately exempt: they model the wire\n * contract of a platform call rather than a rendered form, and legitimately carry `z.unknown()` bodies and\n * loose records. So is the anonymous slot used for per-invocation payload parsing, which re-wraps a schema\n * that was already checked where it was declared.\n */\nconst GUARDED_KINDS = new Set(['action', 'dictionary', 'polling trigger', 'realtime trigger', 'extension'])\n\n/**\n * The core types the runtime can publish, render and coerce.\n *\n * `any` / `unknown` are in deliberately: they declare nothing, the pipeline passes them through untouched,\n * and that is a coherent thing for an author to want. Everything absent is absent on purpose \u2014 `tuple` and\n * `intersection` have no single widget, and a `catch` is refused with its own message below.\n *\n * `union` is not listed because it never reaches this check as itself: `inspect()` resolves it to its first\n * branch, so `resolvedType` is that branch's type. Its branches are each held to this same set \u2014 see\n * `assertField` \u2014 so a union containing a `z.tuple()` is still refused.\n */\nconst SUPPORTED_TYPES = new Set([\n 'string', 'number', 'bigint', 'boolean', 'date', 'enum', 'literal',\n 'object', 'array', 'record',\n // `z.union([T, z.null()])` is the union-shaped spelling of `.nullable()`, which is supported \u2014 refusing one\n // and not the other is a distinction without a difference. It is also a branch of zod's own `z.json()`.\n 'null',\n 'any', 'unknown',\n])\n\n// Named in the \"supported\" half of an error message, in the spelling an author writes. Kept in step with\n// `SUPPORTED_TYPES` above and with the table in service-code-format/02-zod-types.md \u2014 an author who hits this\n// error reads the message, then the doc, and a type missing from either reads as one they may not use.\nconst SUPPORTED_SPELLING = 'z.string(), z.number(), z.bigint(), z.boolean(), z.date(), z.enum([\u2026]), ' +\n 'z.literal(\u2026), z.object({ \u2026 }), z.array(\u2026), z.record(\u2026), z.union([\u2026]), z.null(), z.any(), z.unknown()'\n\nconst MODIFIER_SPELLING = '.optional(), .nullable(), .nullish(), .default(v), .prefault(v), .readonly(), ' +\n '.nonoptional(), .pipe(\u2026)/.transform(\u2026) and z.lazy(\u2026)'\n\n// `action \"sendMessage\": `params.tags[]`` \u2014 enough for an author to find the declaration without a stack trace.\nfunction subjectOf(source: SchemaSource, path: string): string {\n const kind = source.kind ?? 'extension'\n const subject = source.itemId ? `${ kind } \"${ source.itemId }\": ` : ''\n\n return `${ subject }\\`${ path }\\``\n}\n\nfunction refuse(message: string, source: SchemaSource, path: string, received: string): never {\n throw new InvalidSchemaError(\n `[flow-extension:${ source.serviceId }] ${ message }`,\n { serviceId: source.serviceId, kind: source.kind ?? 'extension', itemId: source.itemId, slot: source.slot, path, received }\n )\n}\n\n/**\n * `.catch(v)` gets its own refusal, because the fix is not \"use a supported type\" \u2014 the author's intent is\n * fine and the spelling is one character away.\n *\n * It is refused rather than unwrapped on purpose. Unwrapping would restore the published type and the\n * coercion, but the declaration would still SWALLOW invalid input: zod replaces anything that fails with the\n * fallback, so a value the user actually supplied is silently discarded instead of being reported back. No\n * parameter should do that. `.default(v)` expresses the same intent honestly \u2014 it supplies the fallback when\n * the value is ABSENT, and still rejects one that is present and wrong.\n */\nfunction refuseCatch(source: SchemaSource, path: string): never {\n refuse(\n `${ subjectOf(source, path) } uses \\`.catch(\u2026)\\`, which a parameter may not: it replaces an invalid value` +\n ' with the fallback instead of reporting it, and drops the field out of type coercion.' +\n ' Use `.default(v)` \u2014 same fallback when the value is absent, and a supplied-but-invalid one still fails.',\n source, path, 'catch'\n )\n}\n\nfunction refuseType(source: SchemaSource, path: string, type: string | undefined): never {\n const received = type ? `z.${ type }()` : 'a value that is not a zod schema'\n\n refuse(\n `${ subjectOf(source, path) } declares ${ received }, which the runtime cannot publish as a parameter` +\n ' \u2014 it has no widget, no published type and no coercion for it.' +\n ` Supported: ${ SUPPORTED_SPELLING }; each may carry ${ MODIFIER_SPELLING }.`,\n source, path, type ?? 'unknown'\n )\n}\n\nconst DYNAMIC_PROPS_FIX = 'Declare it as `z.looseObject({ \u2026 }).dynamicProps({ dependsOn, execute })`, or ' +\n '`z.array(z.looseObject({ \u2026 })).dynamicProps(\u2026)` for a list of objects.'\n\n// `z.looseObject()` keeps undeclared keys: its catchall is `z.unknown()`.\nfunction isLooseObject(schema: AnyZod | undefined): boolean {\n if (!schema) {\n return false\n }\n\n const ins = inspect(schema)\n const catchall = ins.core?._zod?.def?.catchall as AnyZod | undefined\n\n return ins.resolvedType === 'object' && catchall?._zod?.def?.type === 'unknown'\n}\n\n// Where `.dynamicProps()` may sit: a top-level field of an action's `params`. Everywhere else it would publish\n// a loader nothing calls \u2014 a nested field, a config item, dictionary criteria, a trigger, a loaded schema.\nfunction isDynamicPropsSlot(source: SchemaSource, topLevel: boolean): boolean {\n return topLevel && source.kind === 'action' && source.slot === 'params'\n}\n\n/**\n * A `.dynamicProps()` field, checked against its siblings.\n *\n * Every rule here is one an author would otherwise discover in the Flow Builder, as fields that never load or\n * values that silently vanish \u2014 so each is an error at registration, naming the fix.\n */\nfunction assertDynamicProps(schema: AnyZod, name: string, siblings: string[], source: SchemaSource, path: string): void {\n const ins = inspect(schema)\n const spec = ins.meta.frDynamicProps as { dependsOn?: unknown; execute?: unknown } | undefined\n\n if (!spec) {\n return\n }\n\n // A decoded schema carries the published ref (`{ id, dependsOn }`), not the author's spec; nothing to check.\n if (typeof (spec as { id?: unknown }).id === 'string' && !('execute' in spec)) {\n return\n }\n\n if (typeof spec.execute !== 'function') {\n refuse(`${ subjectOf(source, path) }: \\`.dynamicProps()\\` needs an \\`execute\\` function that returns the loaded fields.`,\n source, path, typeof spec.execute)\n }\n\n if (spec.dependsOn !== undefined && (!Array.isArray(spec.dependsOn) || spec.dependsOn.some(item => typeof item !== 'string'))) {\n refuse(`${ subjectOf(source, path) }: \\`.dynamicProps()\\` \\`dependsOn\\` must be an array of param names.`,\n source, path, 'dependsOn')\n }\n\n for (const dependency of (spec.dependsOn as string[] | undefined) ?? []) {\n if (dependency === name || !siblings.includes(dependency)) {\n refuse(\n `${ subjectOf(source, path) }: \\`.dynamicProps()\\` depends on \"${ dependency }\", which is not another param` +\n ` of this action. Name its sibling params: ${ siblings.filter(sibling => sibling !== name).join(', ') || 'none' }.`,\n source, path, dependency\n )\n }\n }\n\n if (ins.meta.frDictionary) {\n refuse(\n `${ subjectOf(source, path) } declares both \\`.dynamicProps()\\` and \\`.dictionary()\\`. A dictionary offers values` +\n ' for one field; dynamic props load the fields inside an object \u2014 use one or the other.',\n source, path, 'dictionary'\n )\n }\n\n const element = ins.resolvedType === 'array' ? ins.core?._zod?.def?.element as AnyZod | undefined : undefined\n\n if (!isLooseObject(schema) && !isLooseObject(element)) {\n refuse(\n `${ subjectOf(source, path) }: \\`.dynamicProps()\\` needs a loose object \u2014 the loaded fields are not declared,` +\n ` so a plain \\`z.object()\\` would strip them. ${ DYNAMIC_PROPS_FIX }`,\n source, path, ins.resolvedType ?? 'unknown'\n )\n }\n}\n\n// One declared field, then whatever it contains. `seen` stops a recursive `z.lazy()` from walking forever.\nfunction assertField(schema: AnyZod | undefined, source: SchemaSource, path: string, seen: Set<unknown>, topLevel = false): void {\n if (!schema || seen.has(schema)) {\n return\n }\n\n seen.add(schema)\n\n const ins = inspect(schema)\n\n if (ins.meta.frDynamicProps && !isDynamicPropsSlot(source, topLevel)) {\n refuse(\n `${ subjectOf(source, path) } uses \\`.dynamicProps()\\`, which is supported on top-level action params only.` +\n ' For a list of objects, put it on the array rather than on its element.',\n source, path, 'dynamicProps'\n )\n }\n\n if (ins.resolvedType === 'catch') {\n refuseCatch(source, path)\n }\n\n if (!ins.resolvedType || !SUPPORTED_TYPES.has(ins.resolvedType)) {\n refuseType(source, path, ins.resolvedType)\n }\n\n // Every branch of a union is a declaration in its own right. The union itself already passed the check\n // above AS ITS FIRST BRANCH, which says nothing about the others.\n if (ins.branches) {\n // Numbered, because the reported path is otherwise the field \u2014 and \"declares z.tuple()\" against a field\n // the author wrote as a union names a type they cannot find in their own declaration.\n ins.branches.forEach((branch, index) => assertField(branch, source, `${ path }|branch ${ index + 1 }`, seen))\n }\n\n const def = ins.core._zod?.def ?? {}\n\n // A container's contents are declarations in their own right and are held to the same rule \u2014 the defect\n // this guards against is no less silent one level down.\n if (ins.resolvedType === 'array') {\n assertField(def.element as AnyZod | undefined, source, `${ path }[]`, seen)\n }\n\n if (ins.resolvedType === 'record') {\n assertField(def.valueType as AnyZod | undefined, source, `${ path }{}`, seen)\n }\n\n if (ins.resolvedType === 'object') {\n for (const [name, property] of shapeEntries(ins.core)) {\n assertField(property, source, `${ path }.${ name }`, seen)\n }\n }\n}\n\n/**\n * Throws unless every field `scheme` declares, at every depth, is something the runtime can publish, render\n * and coerce. `undefined` passes \u2014 an undeclared slot is legal everywhere.\n *\n * Only author-declared slots are checked (see `GUARDED_KINDS`).\n */\nexport function assertSupportedSchema(scheme: unknown, source: SchemaSource): void {\n if (scheme == null || !source.kind || !GUARDED_KINDS.has(source.kind)) {\n return\n }\n\n const slot = source.slot ?? 'schema'\n const seen = new Set<unknown>()\n const fields = shapeEntries(scheme as AnyZod)\n const names = fields.map(([name]) => name)\n\n for (const [name, field] of fields) {\n assertField(field, source, `${ slot }.${ name }`, seen, true)\n\n if (isDynamicPropsSlot(source, true)) {\n assertDynamicProps(field, name, names, source, `${ slot }.${ name }`)\n }\n }\n}\n", "import type { AnyZod, Inspected } from './introspect'\n\n// Everything date-shaped, in one place: what counts as a valid date input, and what each date declaration\n// hands the handler.\n//\n// The input space is whatever JSON can carry, because every path into the runner is an HTTP body \u2014 a real\n// `Date` instance is not reachable. That is why `z.date()`, which demands one, could never be satisfied and\n// had to be exempted from validation entirely. It is no longer exempt; instead the value is converted for\n// CHECKING and the declaration decides what comes out:\n//\n// z.date() the input, unchanged \u2014 converting would invent a time of day and a timezone\n// z.coerce.date() a real Date \u2014 zod's own opt-in, and the only honest way to ask for one\n// z.iso.datetime() an ISO datetime string\n// z.iso.date() an ISO date string\n// z.iso.time() an ISO time string\n// z.iso.duration() strict: a duration is not a point in time, so there is nothing to narrow or widen\n\n// A date-only string, and a datetime whose date half we can take without parsing.\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/\nconst HAS_TIME = /^(\\d{4}-\\d{2}-\\d{2})[T ](.+)$/\n// The trailing zone on an extracted time \u2014 `z.iso.time()` rejects it.\nconst ZONE = /(Z|[+-]\\d{2}:?\\d{2})$/\n\nconst isNumeric = (value: string): boolean => value.trim() !== '' && Number.isFinite(Number(value.trim()))\n\n/**\n * Any date input \u2192 a `Date`, or `undefined` when it is not a date at all.\n *\n * A finite number is EPOCH MILLIS, which is what the console's date control stores; a numeric string is that\n * same number through a stringly-typed transport. Everything else that is a string is handed to `Date`.\n *\n * `new Date('nope')` returns a `Date` whose value is `NaN` \u2014 and `z.date()` accepts it \u2014 so an invalid date\n * has to be rejected here explicitly, or garbage would reach a handler looking like a date.\n */\nexport function toDate(value: unknown): Date | undefined {\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? undefined : value\n }\n\n if (typeof value === 'number') {\n return Number.isFinite(value) ? new Date(value) : undefined\n }\n\n if (typeof value !== 'string') {\n return undefined\n }\n\n const parsed = isNumeric(value) ? new Date(Number(value.trim())) : new Date(value)\n\n return Number.isNaN(parsed.getTime()) ? undefined : parsed\n}\n\n/**\n * A date input \u2192 the ISO shape the field declared.\n *\n * NARROWING IS LEXICAL. `'2024-06-01T23:00:00Z'` \u2192 `'2024-06-01'` takes the characters before the `T`;\n * parsing and reformatting would impose UTC, and in UTC+2 that instant is the 2nd, not the 1st. So a string\n * is sliced, never converted.\n *\n * Two conversions do assume UTC, and both are unavoidable:\n * \u2022 widening a date to a datetime invents a time of day (`'2024-06-01'` \u2192 `'2024-06-01T00:00:00Z'`)\n * \u2022 naming a date or a time from EPOCH MILLIS has to pick a wall clock \u2014 the same instant is 2024-06-01\n * in London and 2024-06-02 in Kiritimati\n *\n * `z.iso.datetime()` from millis is not in that class: the instant is preserved and UTC is merely which of\n * several equivalent spellings we emit.\n */\nexport function toIso(value: unknown, format: string): string | undefined {\n const text = typeof value === 'string' ? value.trim() : undefined\n // A string keeps its own wording wherever the shape can be reached by slicing it.\n const lexical = text && !isNumeric(text) ? sliceIso(text, format) : undefined\n\n if (lexical) {\n return lexical\n }\n\n const parsed = toDate(value)\n\n if (!parsed) {\n return undefined\n }\n\n const iso = parsed.toISOString()\n\n if (format === 'datetime') {\n return iso\n }\n\n if (format === 'date') {\n return iso.slice(0, 10)\n }\n\n if (format === 'time') {\n return iso.slice(11, 19)\n }\n\n return undefined\n}\n\n// The shape reachable from `text` without any timezone maths. `undefined` when slicing cannot get there.\nfunction sliceIso(text: string, format: string): string | undefined {\n const timed = HAS_TIME.exec(text)\n\n if (format === 'datetime') {\n // Already a datetime: keep the author's own spelling, offset and precision included.\n return timed ? text : undefined\n }\n\n if (format === 'date') {\n return timed ? timed[1] : DATE_ONLY.test(text) ? text : undefined\n }\n\n if (format === 'time') {\n const time = timed ? timed[2] : DATE_ONLY.test(text) ? undefined : text\n\n return time ? time.replace(ZONE, '') : undefined\n }\n\n return undefined\n}\n\n/** The zod format token a schema declared, if any: 'datetime' | 'date' | 'time' | 'duration' | \u2026 */\nexport const formatOf = (ins: Inspected): string | undefined =>\n (ins.core as { _zod?: { def?: { format?: string } } } | undefined)?._zod?.def?.format\n\n/** The ISO formats this module converts INTO. `duration` is absent on purpose \u2014 it stays strict. */\nexport const isConvertibleIso = (format?: string): boolean =>\n format === 'datetime' || format === 'date' || format === 'time'\n\n/**\n * True for `z.date()` and false for `z.coerce.date()`.\n *\n * `.coerce` is zod's own flag, set by `z.coerce.date()` and readable through the optional/nullable/default\n * wrappers \u2014 so the author's intent is a flag to look up rather than a heuristic to guess.\n */\nexport const passesDateThrough = (ins: Inspected): boolean =>\n ins.coreType === 'date' && !(ins.core as { _zod?: { def?: { coerce?: boolean } } })?._zod?.def?.coerce\n\n/** Whether a schema, at any depth, has a `z.date()` whose value must survive validation unchanged. */\nexport function hasPassThroughDate(schema: AnyZod | undefined, inspectSchema: (s: AnyZod) => Inspected,\n entriesOf: (s: AnyZod | undefined) => [string, AnyZod][]): boolean {\n if (!schema) {\n return false\n }\n\n const ins = inspectSchema(schema)\n\n if (passesDateThrough(ins)) {\n return true\n }\n\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n const children = [\n ...entriesOf(ins.core).map(([, child]) => child),\n ...(element ? [element] : []),\n ...(valueType ? [valueType] : []),\n // Every branch of a union, not just the one it resolved to. `z.union([z.number(), z.date()])` coerces\n // through the date branch at runtime, so the restore walk has to know a date is reachable here \u2014 or the\n // handler receives the converted `Date` instead of the string the host sent.\n ...(ins.branches ?? []),\n ]\n\n return children.some(child => hasPassThroughDate(child, inspectSchema, entriesOf))\n}\n", "import { type AnyZod, inspect } from './introspect'\n\n// A field's display NAME. Unlike its description (./defaults.ts), this is never derived from the\n// declaration: the field key already carries intent a type or format cannot \u2014 `contactEmail` reads as\n// \"Contact Email\", where a per-format label would flatten it to \"Email\" \u2014 so a generic fallback word would\n// only ever be a downgrade.\n\n// Words a title-cased label should shout rather than capitalise. Without these, `baseUrl` reads as\n// \"Base Url\" \u2014 derived-looking in exactly the way that makes an author go and write the label by hand.\nconst ACRONYMS = new Set(['id', 'url', 'urls', 'api', 'uri', 'ip', 'ipv4', 'ipv6', 'uuid', 'guid', 'jwt',\n 'sms', 'html', 'css', 'json', 'xml', 'csv', 'pdf', 'sql', 'ttl', 'sku', 'utm', 'cc', 'bcc', 'crm', 'db'])\n\n// A field key as a human label: `contactEmail` \u2192 \"Contact Email\", `base_url` \u2192 \"Base URL\".\nexport function humanizeKey(name: string): string {\n return name\n // split camelCase and consecutive-capital runs (`baseURL` \u2192 `base URL`)\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n .replace(/[_-]+/g, ' ')\n .trim()\n .split(/\\s+/)\n .filter(Boolean)\n .map(word => ACRONYMS.has(word.toLowerCase())\n ? word.toUpperCase()\n : word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')\n}\n\n// The label as the console should show it: the author's, else the field key made human.\nexport const labelOf = (name: string, schema: AnyZod): string =>\n inspect(schema).meta.title || humanizeKey(name) || name\n", "import { hasPassThroughDate, passesDateThrough } from './dates'\nimport { type AnyZod, DEFAULT_WRAPPERS, innerOf, inspect, shapeEntries, TRANSPARENT_WRAPPERS } from './introspect'\nimport { labelOf } from './labels'\n\n// What one declared field needs, worked out ONCE and reused for every invocation.\n//\n// The interesting part is `absence`. An author writes `.optional()` or `.nullable()` \u2014 whichever reads\n// naturally \u2014 and should not have to predict which absent form a client will send. So instead of reading the\n// wrapper chain, we ASK THE SCHEMA what it accepts: two `safeParse` probes settle it, and they are immune to\n// wrapper order (`.optional().nullable()` vs `.nullable().optional()`), to `.refine()` wrapping the type, and\n// to any modifier zod adds later. Introspection would have to keep up with all three.\n\nexport type AbsencePolicy =\n // The schema tolerates both forms, so whichever arrived is passed through (`.nullish()`).\n | 'as-received'\n // Only `undefined` is accepted (`.optional()`, `.default(v)`), so any absence becomes that.\n | 'undefined'\n // Only `null` is accepted (`.nullable()`), so any absence becomes that.\n | 'null'\n // Neither \u2014 the field has nothing to fall back on.\n | 'required'\n\nexport interface FieldPlan {\n name: string\n schema: AnyZod\n // The author's display name, used in messages. Falls back to the key.\n label: string\n // Core zod type past the wrappers: 'string' | 'number' | 'boolean' | 'enum' | 'date' | \u2026\n // For a union this is the FIRST branch's type \u2014 see `isUnion`.\n coreType: string\n /**\n * True when the declaration is a `z.union()`.\n *\n * Carried because `coreType` alone stops describing the field: a union resolves to its first branch, so a\n * `z.union([z.email(), z.literal('')])` reports `'string'` and would then treat a blank as a VALUE. It is\n * not one \u2014 `''` has always been absence on a union, which is exactly what makes the documented\n * \"blank means not set\" spelling (`z.union([z.url(), z.literal('')]).optional()`) work.\n */\n isUnion: boolean\n absence: AbsencePolicy\n // True when a declared `.default(v)` will absorb an absent value \u2014 which is also what lets a blank string\n // fall back to the default rather than surviving as `''`.\n absorbsBlank: boolean\n /**\n * True for a `z.date()` whose value must reach the handler UNCHANGED \u2014 validated through a converted copy,\n * handed over as the host sent it. False for `z.coerce.date()`, which the author asked to convert.\n *\n * Set when the field ITSELF is such a date; `restoresDates` covers one nested anywhere inside it.\n */\n passThroughDate: boolean\n // Whether anything at any depth needs that treatment, so the restore walk can be skipped entirely.\n restoresDates: boolean\n}\n\n// Ask the schema which absent forms it accepts. A probe can only throw for an async refinement placed\n// outside the modifier, in which case treating the field as required is the safe reading.\n/**\n * The absent forms the author DECLARED, read off the wrapper chain.\n *\n * Used only where the probe below cannot be trusted \u2014 see `probeAbsence`. It has to agree with the probe on\n * every schema the probe handles, which is why it treats `.default()` as accepting `undefined`: zod applies\n * a default to `undefined`, so that is what the probe observes too.\n */\nfunction declaredAbsence(schema: AnyZod): { absence: AbsencePolicy; absorbsBlank: boolean } {\n let current: AnyZod | undefined = schema\n let acceptsUndefined = false\n let acceptsNull = false\n let absorbsBlank = false\n // `.nonoptional()` re-asserts a requirement over whatever it wraps \u2014 an `.optional()` further in does not\n // undo it, so nothing after it may set a flag. Mirrors the same rule in ./introspect.ts `inspect`.\n let sealed = false\n\n while (current?._zod) {\n const def = current._zod.def ?? {}\n const type = def.type as string\n\n if (type === 'nonoptional') {\n sealed = true\n } else if (TRANSPARENT_WRAPPERS.has(type)) {\n // Says nothing about absence \u2014 look straight through it, exactly as `inspect` does.\n current = innerOf(def, type)\n continue\n } else if (sealed) {\n break\n } else if (type === 'optional') {\n acceptsUndefined = true\n } else if (type === 'nullable') {\n acceptsNull = true\n } else if (type === 'nullish') {\n acceptsUndefined = true\n acceptsNull = true\n } else if (DEFAULT_WRAPPERS.has(type)) {\n acceptsUndefined = true\n absorbsBlank = true\n } else {\n break\n }\n\n current = def.innerType as AnyZod\n }\n\n const absence: AbsencePolicy = acceptsUndefined && acceptsNull ? 'as-received'\n : acceptsUndefined ? 'undefined'\n : acceptsNull ? 'null'\n : 'required'\n\n return { absence, absorbsBlank }\n}\n\n// `z.coerce.*` converts an ABSENT value into a junk one rather than rejecting it \u2014 `new Date(null)` is the\n// epoch, `Number('')` is 0, `String(undefined)` is the text `'undefined'`, `Boolean(null)` is false. So a\n// coercing schema answers \"yes\" to the probe below for a field the author declared REQUIRED, and a blank\n// silently becomes 1970-01-01 or 0 instead of being reported. Where coercion is what makes the answer yes,\n// the declaration is the authority instead.\nfunction coerces(schema: AnyZod): boolean {\n return inspect(schema).core?._zod?.def?.coerce === true\n}\n\n/**\n * `z.json()` \u2014 the same problem as `z.coerce.*` above, from the other direction.\n *\n * It declares `z.unknown()` underneath, because what reaches the handler is a parsed JSON value and `null`\n * is one of those. The probe then sees a schema that accepts `null` and reads it as \"null is how this field\n * spells absence\", so a bare `z.json()` published as OPTIONAL \u2014 a field the author never marked optional and\n * which the runtime does in fact reject when it is missing.\n *\n * The probe cannot tell a legal value from an absent form by asking, so the declaration is the authority\n * here too: `.nonoptional()` on the helper means required, and an author's own `.optional()` sits outside it\n * and still wins.\n */\nconst parsesJson = (schema: AnyZod): boolean => !!inspect(schema).meta.frJson\n\nfunction probeAbsence(schema: AnyZod): { absence: AbsencePolicy; absorbsBlank: boolean } {\n if (coerces(schema) || parsesJson(schema)) {\n return declaredAbsence(schema)\n }\n\n const parse = (value: unknown): { success: boolean; data?: unknown } => {\n try {\n return (schema as unknown as { safeParse: (v: unknown) => { success: boolean; data?: unknown } }).safeParse(value)\n } catch {\n return { success: false }\n }\n }\n\n const asUndefined = parse(undefined)\n const asNull = parse(null)\n\n // \"Accepts both\" must win over \"has a default\": for `z.string().nullable().default('x')` the author said\n // null is meaningful, and zod applies the default to `undefined` on its own.\n const absence: AbsencePolicy = asUndefined.success && asNull.success ? 'as-received'\n : asUndefined.success ? 'undefined'\n : asNull.success ? 'null'\n : 'required'\n\n // A default reveals itself by yielding something other than what was fed in. This is also why a falsy\n // default (`''`, `0`, `false`) is detected correctly, where a truthiness check would drop it.\n return { absence, absorbsBlank: asUndefined.success && asUndefined.data !== undefined }\n}\n\n// Probing costs two `safeParse` calls, and the deep walk asks the same element or property schema once per\n// item. Schemas are stable objects built at registration, so the answer is cached against the schema itself.\nconst probeCache = new WeakMap<object, { absence: AbsencePolicy; absorbsBlank: boolean }>()\n\n/** The absent forms a schema accepts, at any depth. Same question `planField` asks for a top-level field. */\nexport function absenceOf(schema: AnyZod | undefined): { absence: AbsencePolicy; absorbsBlank: boolean } {\n if (!schema || typeof schema !== 'object') {\n return { absence: 'as-received', absorbsBlank: false }\n }\n\n const cached = probeCache.get(schema as object)\n\n if (cached) {\n return cached\n }\n\n const probed = probeAbsence(schema)\n\n probeCache.set(schema as object, probed)\n\n return probed\n}\n\nexport function planField(name: string, schema: AnyZod): FieldPlan {\n const ins = inspect(schema)\n const { absence, absorbsBlank } = probeAbsence(schema)\n\n return {\n name,\n schema,\n label: labelOf(name, schema),\n coreType: ins.coreType,\n isUnion : !!ins.branches,\n absence,\n absorbsBlank,\n passThroughDate: passesDateThrough(ins),\n restoresDates : hasPassThroughDate(schema, inspect, shapeEntries),\n }\n}\n", "import { formatOf, isConvertibleIso, toDate, toIso } from './dates'\nimport { absenceOf } from './field-plan'\nimport { type AnyZod, inspect, type Inspected, literalType, shapeEntries } from './introspect'\n\n// Step 2 of the pipeline: turn a transport value into the declared type.\n//\n// Coercion exists because the transport is stringly-typed. `toConfigType` maps `z.number()` to a *string*\n// config item \u2014 the config form has no numeric widget \u2014 so a number is stored and sent as `'123'`.\n// Expression-bound params do the same. Without this, every numeric config item would fail its own schema.\n//\n// Coerce only where the intent is unambiguous; anything else is an error rather than a guess. Note that\n// `z.coerce.*` is unusable here: `z.coerce.number().parse('')` is `0` and `z.coerce.boolean().parse('false')`\n// is `true`. This runs AFTER absence normalization, so a blank never reaches it.\n\nexport interface Coerced {\n ok: boolean\n value?: unknown\n // The zod type token the value should have been; ../schema/messages turns it into wording.\n expected?: string\n}\n\nconst ok = (value: unknown): Coerced => ({ ok: true, value })\nconst fail = (expected: string): Coerced => ({ ok: false, expected })\n\n// Matched after trim + lowercase. The test for ADDING a token, so the set has a stopping rule rather than\n// growing by precedent: it must have an unambiguous opposite, and the pair must both be listed. A word with\n// no opposite is a STATUS, not a boolean, and belongs in a `z.enum([...])`.\n//\n// Widening is only safe BECAUSE an unrecognised value fails (see `toBooleanValue`). Making an unknown default\n// to `false` \u2014 the partial hand-rolled allow-list this replaces \u2014 silently turns an explicit off into an on.\n//\n// The list is published to authors, so a change here is a change in three more places: the exhaustive pass in\n// `__tests__/configs-service.test.ts`, the table in `service-code-format/02-zod-types.md` (shipped inside the\n// CLI package), and the prose in `docs/guides/flow-extensions-custom/parameters-and-types.md`.\nconst TRUE = new Set(['true', '1', 'yes', 'y', 't', 'on', 'checked', 'enabled', 'enable', 'active'])\nconst FALSE = new Set(['false', '0', 'no', 'n', 'f', 'off', 'unchecked', 'disabled', 'disable', 'inactive'])\n\nfunction toStringValue(value: unknown): Coerced {\n if (typeof value === 'string') {\n return ok(value)\n }\n\n // A number or a boolean in a text field has one obvious text form. A structure does not \u2014 `String({})` is\n // '[object Object]' and `String([1,2])` is '1,2', which are artefacts of JS rather than what was meant.\n if (typeof value === 'boolean') {\n return ok(String(value))\n }\n\n return typeof value === 'number' && Number.isFinite(value) ? ok(String(value)) : fail('string')\n}\n\nfunction toNumberValue(value: unknown): Coerced {\n if (typeof value === 'number') {\n return Number.isFinite(value) ? ok(value) : fail('number')\n }\n\n if (typeof value !== 'string') {\n return fail('number')\n }\n\n // `Number('')` is 0 and `Number(' ')` is 0, so require actual digits. A blank has already been treated as\n // absence by this point; anything else non-numeric is a caller error.\n const parsed = Number(value.trim())\n\n return value.trim() !== '' && Number.isFinite(parsed) ? ok(parsed) : fail('number')\n}\n\n// `z.bigint()` wants an actual BigInt, so `Number()` would never satisfy it \u2014 a whole number is the only\n// input that can be converted without losing information.\nfunction toBigIntValue(value: unknown): Coerced {\n if (typeof value === 'bigint') {\n return ok(value)\n }\n\n if (typeof value === 'number') {\n return Number.isInteger(value) ? ok(BigInt(value)) : fail('bigint')\n }\n\n if (typeof value !== 'string' || value.trim() === '') {\n return fail('bigint')\n }\n\n try {\n return ok(BigInt(value.trim()))\n } catch {\n return fail('bigint')\n }\n}\n\nfunction toBooleanValue(value: unknown): Coerced {\n if (typeof value === 'boolean') {\n return ok(value)\n }\n\n if (typeof value === 'number') {\n return value === 1 ? ok(true) : value === 0 ? ok(false) : fail('boolean')\n }\n\n if (typeof value !== 'string') {\n return fail('boolean')\n }\n\n const lowered = value.trim().toLowerCase()\n\n return TRUE.has(lowered) ? ok(true) : FALSE.has(lowered) ? ok(false) : fail('boolean')\n}\n\n/**\n * `z.json()` \u2014 the transport carries text, the handler gets the structure.\n *\n * Parsing belongs here rather than in a `.transform()` for the reason the whole module exists: a failure has\n * to arrive as the same `Coerced` miss every other wrong-typed value produces, so it is reported against the\n * field by its label (\u00ABPayload\u00BB must be valid JSON) instead of escaping as a raw `SyntaxError` that names\n * neither the extension, the method, nor the parameter.\n */\nfunction toJsonValue(value: unknown): Coerced {\n // Already a structure. A flow can bind the parameter to an expression that evaluates to one, so the value\n // does not always arrive as text \u2014 and `JSON.parse({})` would throw on exactly the payload this type\n // exists to carry. Nothing to convert means nothing to do.\n if (typeof value !== 'string') {\n return ok(value)\n }\n\n try {\n return ok(JSON.parse(value))\n } catch {\n return fail('json')\n }\n}\n\n/**\n * Coerce one SCALAR `value` for a field whose core zod type is `coreType`. Types with no meaningful coercion\n * \u2014 enum, and everything the runtime does not special-case \u2014 pass through for the author's schema to judge:\n * membership is zod's job, not ours.\n *\n * Dates need the SCHEMA rather than the type name, because `z.date()`, `z.coerce.date()` and `z.iso.date()`\n * convert differently \u2014 see `coerceLeaf`.\n */\nexport function coerceValue(value: unknown, coreType: string): Coerced {\n if (coreType === 'string') {\n return toStringValue(value)\n }\n\n if (coreType === 'number') {\n return toNumberValue(value)\n }\n\n if (coreType === 'bigint') {\n return toBigIntValue(value)\n }\n\n if (coreType === 'boolean') {\n return toBooleanValue(value)\n }\n\n if (coreType === 'date') {\n const parsed = toDate(value)\n\n return parsed ? ok(parsed) : fail('date')\n }\n\n // An enum's options may be numbers declared as strings, so stringify a number and let zod check membership.\n if (coreType === 'enum' && typeof value === 'number') {\n return ok(String(value))\n }\n\n return ok(value)\n}\n\n/** Whether a schema accepts a value outright. A probe, so a throwing refinement reads as \"no\". */\nexport function accepts(schema: AnyZod, value: unknown): boolean {\n try {\n return !!(schema as unknown as { safeParse?: (v: unknown) => { success: boolean } })\n .safeParse?.(value)?.success\n } catch {\n return false\n }\n}\n\n/**\n * A union, resolved by TRYING its branches in declaration order \u2014 the first that coerces to something its\n * own branch accepts wins.\n *\n * Trying rather than picking is what keeps D1/D7 closed inside a union: a flow template supplies every value\n * as a string, so `z.union([z.boolean(), z.string()])` given `'true'` has to convert through the boolean\n * branch and succeed there. Picking the first branch blindly would hand `execute` the string.\n *\n * \u26A0\uFE0F **A permissive branch shadows every branch after it.** `z.union([z.string(), z.boolean()])` given\n * `'true'` matches the string branch as-is, so the boolean branch is never reached and `execute` receives\n * `'true'`. That is the same positional rule as publishing (both read declaration order, left to right),\n * which is why it was chosen \u2014 one mental model covers both. It is documented, and pinned by a test.\n *\n * When NO branch accepts it, the value is handed back untouched so the author's own union error is what the\n * user sees. This step never invents an error.\n */\nfunction coerceUnion(value: unknown, branches: AnyZod[]): unknown {\n for (const branch of branches) {\n const coerced = coerceDeep(value, branch)\n\n if (accepts(branch, coerced)) {\n return coerced\n }\n }\n\n return value\n}\n\n// The container types that DECLARE something about their contents, and so can be walked. Everything else \u2014\n// `unknown`, a bare `any` \u2014 declares nothing and is passed through as it arrived.\nconst CONTAINERS = new Set(['object', 'array', 'record'])\n\n/**\n * The same coercion, applied at every DEPTH \u2014 inside a declared object's properties and inside a list's\n * elements, not only at the top of a field.\n *\n * Without this a declaration means different things depending on where it sits: `z.string()` takes `42` at\n * the top level but `z.array(z.string())` rejects `[42]`, and `z.object({ zip: z.string() })` rejects\n * `{ zip: 12345 }`. The transport is no more type-faithful inside a container than outside one.\n *\n * The rule is simply: **walk whatever declares its contents, convert whatever declares a type, and leave\n * everything else alone.** A `z.record(z.string(), z.unknown())` therefore coerces nothing \u2014 not because\n * records are exempt, but because `unknown` declares no type to coerce to \u2014 while\n * `z.record(z.string(), z.number())` converts its values like any other declaration.\n *\n * BEST-EFFORT below the top level: a value that cannot be converted is left exactly as it arrived, for the\n * author's own schema to reject. That keeps the failure reported against the property that actually failed\n * (`tags.1`, `address.zip`) rather than as a coercion error naming the whole field, and it keeps this step\n * incapable of making anything stricter \u2014 it only ever converts.\n *\n * Absence is resolved at every depth too, by the same rule the top level uses: ask the sub-schema which\n * absent forms it accepts, and hand it the one it wants. Without that, `.optional()` means one thing on a\n * field and another inside a list \u2014 `z.array(z.string().optional())` would reject `[null]` while a bare\n * `z.string().optional()` accepts it.\n *\n * A sub-schema that accepts NO absent form is left exactly as it arrived, so zod raises it and the message\n * is built against the property that failed (`\u00ABCity\u00BB is required`) \u2014 this step never invents an error.\n */\nexport function coerceDeep(value: unknown, schema: AnyZod | undefined): unknown {\n if (!schema) {\n return value\n }\n\n const ins = inspect(schema)\n\n if (isBlank(value, ins, schema)) {\n return absentAs(schema, value)\n }\n\n if (value == null) {\n return value\n }\n\n // Before any type branch below: a union has no single type to walk, it has a list to try.\n if (ins.branches) {\n return coerceUnion(value, ins.branches)\n }\n\n if (ins.coreType === 'array') {\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n\n return Array.isArray(value) ? value.map(item => coerceDeep(item, element)) : value\n }\n\n if (ins.coreType === 'record') {\n if (typeof value !== 'object' || Array.isArray(value)) {\n return value\n }\n\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>).map(([key, item]) => [key, coerceDeep(item, valueType)])\n )\n }\n\n if (ins.coreType === 'object') {\n if (typeof value !== 'object' || Array.isArray(value)) {\n return value\n }\n\n const source = value as Record<string, unknown>\n // Only DECLARED properties are walked. An undeclared key is either stripped by zod or carried through\n // untouched by `z.looseObject`; either way the runtime has no declaration to coerce it against.\n const coerced: Record<string, unknown> = { ...source }\n\n for (const [name, property] of shapeEntries(ins.core)) {\n if (name in source) {\n coerced[name] = coerceDeep(source[name], property)\n }\n }\n\n return coerced\n }\n\n const result = coerceLeaf(value, ins)\n\n return result.ok ? result.value : value\n}\n\n/** True when a field's own type is a container this module walks rather than converts. */\nexport const isContainer = (coreType: string): boolean => CONTAINERS.has(coreType)\n\n/**\n * One leaf, converted for VALIDATION.\n *\n * Everything reaches zod as the type it declared: a date arrives as a `Date` whatever form the host sent, and\n * an ISO field arrives as a string in its own declared shape. What the HANDLER receives is a separate\n * question \u2014 a `z.date()` value is restored to the original afterwards (see ../normalize.ts).\n */\nexport function coerceLeaf(value: unknown, ins: Inspected): Coerced {\n // A union reaches here when its first branch is a scalar (that is what `isContainer` was asked about).\n // Always `ok`: an unmatched value is passed on for the author's union to reject with its own message.\n if (ins.branches) {\n return ok(coerceUnion(value, ins.branches))\n }\n\n // Ahead of every type branch below: `z.json()` declares `unknown`, so there is no core type to switch on.\n if (ins.meta.frJson) {\n return toJsonValue(value)\n }\n\n const format = formatOf(ins)\n\n if (ins.coreType === 'string' && isConvertibleIso(format)) {\n const iso = toIso(value, format as string)\n\n if (iso !== undefined) {\n return ok(iso)\n }\n\n // Nothing to reshape. A STRING is handed on unchanged so the format check speaks for itself \u2014 \"expects\n // an ISO date, e.g. 2024-01-01\" tells the author more than \"must be a date\", and it is what a blank or\n // a typo deserves. A non-string could never satisfy a string field at all, so it fails here.\n return typeof value === 'string' ? ok(value) : fail('date')\n }\n\n // A literal publishes as the type of its value (see ./introspect.ts `deriveWidget`), so it has to CONVERT\n // to that type as well. The console draws a toggle for `z.literal(true)` and the flow supplies the string\n // `'true'` like any other boolean; publishing a typed widget without the matching conversion would leave\n // the field unfillable from a flow. A mixed literal declares no single type and is passed through.\n if (ins.coreType === 'literal') {\n const declared = literalType(ins.core)\n\n return declared ? coerceValue(value, declared) : ok(value)\n }\n\n return coerceValue(value, ins.coreType)\n}\n\n// The same \"is this blank?\" rule the top-level pipeline applies (see ../schema/normalize.ts): `''` is a value\n// on a string unless a declared default can absorb it, and absence for every other type.\nfunction isBlank(value: unknown, ins: Inspected, schema: AnyZod): boolean {\n if (value === undefined || value === null) {\n return true\n }\n\n if (value !== '') {\n return false\n }\n\n // A union treats a blank as absence whatever its first branch resolved to. `''` is a value only on a plain\n // string type, and a union is not one \u2014 which is what makes `z.union([z.url(), z.literal('')]).optional()`\n // mean \"blank is not set\", the spelling the docs give for an optional formatted field.\n if (ins.branches) {\n return true\n }\n\n return ins.coreType !== 'string' || absenceOf(schema).absorbsBlank\n}\n\n// Hand the schema whichever absent form it accepts. `required` returns the value untouched, leaving zod to\n// report it against its own path.\nfunction absentAs(schema: AnyZod, value: unknown): unknown {\n const { absence } = absenceOf(schema)\n\n if (absence === 'required') {\n return value\n }\n\n if (absence === 'as-received') {\n return value === '' ? undefined : value\n }\n\n return absence === 'null' ? null : undefined\n}\n", "import { FlowExtensionParamWidgetTypes } from '../widget-types'\nimport { type AnyZod, inspect } from './introspect'\n\n// What a declaration explains about itself when the author wrote no `.describe()` \u2014 so `z.email()` stays a\n// legal one-liner and still renders with usable help text.\n//\n// These are applied at RENDER time, not baked into the published definition: the console derives them from\n// the schema the definition carries, so rewording an entry here reaches every already-deployed service\n// without a redeploy. `field-mapper` therefore publishes the author's description or nothing at all.\n//\n// Also read by ./messages.ts, which restates a format failure using the same wording the field advertises.\n//\n// Labels are NOT derived this way at all \u2014 see ./labels.ts for why the field key always wins.\n\n// Three maps rather than one, because the three key spaces overlap: `date` is both a zod format\n// (`z.iso.date()`) and a core type (`z.date()`). Kept separate, each stays a flat literal table and a\n// collision is impossible.\n\n/** `z.text()` \u2014 FlowRunner's own marker, the most specific thing a field can declare. */\nexport const WIDGET_DESCRIPTIONS: Record<string, string> = {\n [FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT]: 'Expects text; line breaks are allowed',\n}\n\n/**\n * `z.json()`. More specific than the widget it carries: it renders as the same textarea `z.text()` does, so\n * the widget wording would say \"line breaks are allowed\" and leave out the only rule that actually rejects\n * anything \u2014 that what is typed has to parse.\n */\nexport const JSON_DESCRIPTION = 'Expects JSON, e.g. {\"key\": \"value\"}'\n\n/**\n * The plain core type, when nothing more specific is declared.\n *\n * Only worth filling in where the widget does NOT already convey the type. `z.number()` earns one because a\n * number renders as a plain text field \u2014 there is no numeric widget \u2014 so \"Expects a number\" is real\n * information. `z.string()` and `z.boolean()` do not: the field is visibly a text box or a toggle, and\n * filling them would put generic prose under every field of every service, overwriting the meaningful empty\n * state that says \"the service author documented this\".\n */\nexport const TYPE_DESCRIPTIONS: Record<string, string> = {\n number : 'Expects a number',\n bigint : 'Expects a whole number',\n literal: 'Expects one fixed value',\n enum : 'Expects one of the listed options',\n // `z.date()` is deferred until the DATE type gets a widget; `z.iso.date()` is the working alternative.\n date : 'Expects a date',\n // string / boolean / array / object are deliberately absent \u2014 see above.\n}\n\n/**\n * A zod `format` token. Spelled out rather than composed \u2014 the wording is what a customer reads, so it\n * should be editable here without reasoning about how it is assembled. Every example is a value that\n * actually satisfies its helper.\n */\nexport const FORMAT_DESCRIPTIONS: Record<string, string> = {\n // \u2500\u2500 web \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n url : 'Expects a URL, e.g. https://example.com',\n email : 'Expects an email address, e.g. foo@bar.com',\n hostname : 'Expects a hostname, e.g. api.example.com',\n e164 : 'Expects a phone number in E.164 form, e.g. +14155552671',\n emoji : 'Expects an emoji, e.g. \uD83C\uDF89',\n // \u2500\u2500 identifiers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n uuid : 'Expects a UUID, e.g. 3f2504e0-4f89-11d3-9a0c-0305e82c3301',\n guid : 'Expects a GUID, e.g. 3f2504e0-4f89-11d3-9a0c-0305e82c3301',\n nanoid : 'Expects a Nano ID, e.g. V1StGXR8_Z5jdHi6B-myT',\n cuid : 'Expects a CUID, e.g. cjld2cyuq0000t3rmniod1foy',\n cuid2 : 'Expects a CUID2, e.g. tz4a98xxat96iws9zmbrgj3a',\n ulid : 'Expects a ULID, e.g. 01ARZ3NDEKTSV4RRFFQ69G5FAV',\n xid : 'Expects an XID, e.g. 9m4e2mr0ui3e8a215n4g',\n ksuid : 'Expects a KSUID, e.g. 0ujsswThIGTUYm2K8FjOOfXtY1K',\n // \u2500\u2500 ISO 8601 (z.iso.*) \u2014 a validated STRING, unlike the deferred z.date() \u2500\u2500\u2500\n datetime : 'Expects an ISO date and time, e.g. 2024-01-01T00:00:00Z',\n date : 'Expects an ISO date, e.g. 2024-01-01',\n time : 'Expects an ISO time, e.g. 12:30:00',\n duration : 'Expects an ISO duration, e.g. P3Y6M4D',\n // \u2500\u2500 encodings \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n base64 : 'Expects a base64 string, e.g. aGVsbG8=',\n base64url: 'Expects a base64url string, e.g. aGVsbG8',\n hex : 'Expects a hex string, e.g. deadbeef',\n jwt : 'Expects a JWT, e.g. eyJhbGciOiJIUzI1NiJ9.eyJhIjoxfQ.c2ln',\n // \u2500\u2500 network \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n ipv4 : 'Expects an IPv4 address, e.g. 192.168.0.1',\n ipv6 : 'Expects an IPv6 address, e.g. 2001:db8::1',\n cidrv4 : 'Expects an IPv4 range, e.g. 192.168.0.0/24',\n cidrv6 : 'Expects an IPv6 range, e.g. 2001:db8::/32',\n}\n\n/**\n * What a field's declaration explains about itself, most specific wins:\n *\n * 1. `z.json()` \u2014 the content rule, which outranks the widget it shares with `z.text()`\n * 2. a FlowRunner widget marker \u2014 `z.text()`, a string the console renders specially\n * 3. a zod `format` token \u2014 `z.email()`, `z.ipv4()`, `z.iso.date()`, \u2026\n * 4. the plain core type \u2014 `number`, `bigint`, `literal`, `enum`, `date`\n *\n * All three are read past the optional/nullable/default wrappers, so a modifier never changes the answer.\n */\nexport function describeField(schema: AnyZod): string | undefined {\n const ins = inspect(schema)\n const format = (ins.core as { _zod?: { def?: { format?: string } } } | undefined)?._zod?.def?.format\n\n if (ins.meta.frJson) {\n return JSON_DESCRIPTION\n }\n\n return WIDGET_DESCRIPTIONS[ins.meta.frWidget ?? ''] ??\n FORMAT_DESCRIPTIONS[format ?? ''] ??\n TYPE_DESCRIPTIONS[ins.coreType]\n}\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue } from '../types'\nimport { FORMAT_DESCRIPTIONS } from './defaults'\nimport type { FieldPlan } from './field-plan'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\nimport { labelOf } from './labels'\n\n// Step 3's output, made readable. Zod's defaults describe the parser's disappointment rather than the\n// author's mistake \u2014 \"Invalid input: expected string, received undefined\" \u2014 so each issue code is restated\n// against the field's own `.label()`. An author-supplied message (`z.string().min(3, 'Too short')`) is left\n// exactly as written; only zod's own wording is replaced.\n//\n// A failure can be DEEPER than the field: `address.city` inside an object, `tags.1` inside a list. Those are\n// named by walking the declaration down the issue's own path, so the message names the property the user has\n// to fix rather than the container it sits in.\n\n// zod's `format` tokens, in the author's vocabulary. A format it does not name (a bare `.regex()`, say) has\n// nothing worth restating, so it falls back to the generic wording.\n// zod's `expected` tokens, as the phrase that completes \"\u00ABLabel\u00BB must be \u2026\". Spelled out so the wording is\n// editable without composing articles.\nconst EXPECTED: Record<string, string> = {\n string : 'a string',\n number : 'a number',\n int : 'an integer',\n bigint : 'a whole number',\n boolean: 'true or false',\n date : 'a date',\n object : 'an object',\n array : 'an array',\n // `z.json()`. Not a zod token \u2014 ./coerce.ts raises it when the submitted text will not parse.\n json : 'valid JSON',\n}\n\nexport const requiredMessage = (plan: FieldPlan): string => `\u00AB${ plan.label }\u00BB is required`\n\nexport const invalidTypeMessage = (plan: FieldPlan, expected: string): string =>\n `\u00AB${ plan.label }\u00BB must be ${ EXPECTED[expected] ?? expected }`\n\n// What one issue is ABOUT: the deepest declared thing on its path, and the value that sits there.\ninterface IssueTarget {\n // How to name it: a nested property uses its own label; a list item names the list plus its position.\n label: string\n // The submitted value at that path \u2014 how \"left empty\" is told apart from \"wrong type\" below the top level,\n // where the absence pipeline never ran (it only normalizes the field, not the field's insides).\n value: unknown\n found: boolean\n}\n\nconst isIndex = (segment: string): boolean => /^\\d+$/.test(segment)\n\n/**\n * Walk the field's declaration and the submitted value together, one path segment at a time.\n *\n * Stops early if the path leads somewhere the declaration does not describe (a passthrough object, say) and\n * reports the deepest thing it did resolve \u2014 a slightly less specific label beats a wrong one.\n */\nfunction resolveTarget(plan: FieldPlan, segments: string[], fieldValue: unknown): IssueTarget {\n let schema: AnyZod | undefined = plan.schema\n let value: unknown = fieldValue\n let label = plan.label\n let found = true\n\n for (const segment of segments) {\n const core = schema ? inspect(schema).core : undefined\n const coreType = core ? inspect(schema as AnyZod).coreType : undefined\n\n value = value == null ? undefined : (value as Record<string, unknown>)[segment]\n\n if (coreType === 'array' && isIndex(segment)) {\n // A list item has no name of its own, so it borrows the list's and states its position. 1-based: the\n // message is read by whoever filled the form in, not by whoever indexed the array.\n label = `${ label } item ${ Number(segment) + 1 }`\n schema = core?._zod?.def?.element as AnyZod | undefined\n continue\n }\n\n const nested = shapeEntries(core).find(([name]) => name === segment)\n\n if (!nested) {\n found = false\n break\n }\n\n schema = nested[1]\n label = labelOf(segment, schema)\n }\n\n return { label, value, found }\n}\n\n/**\n * A range bound, as the author would recognise it.\n *\n * zod compares dates as instants, so `z.date().min(new Date('2024-01-01'))` reports its bound as\n * `1704067200000` \u2014 a number nobody typed. On a date field it is rendered back as an ISO string.\n */\nfunction bound(value: unknown, plan: FieldPlan): string {\n if (plan.coreType !== 'date' || typeof value !== 'number') {\n return String(value)\n }\n\n const asDate = new Date(value)\n\n return Number.isNaN(asDate.getTime()) ? String(value) : asDate.toISOString()\n}\n\n// A zod issue carrying a custom message the author wrote \u2014 nothing to restate.\nfunction isAuthored(issue: ZodIssue & { message?: string }): boolean {\n const message = issue.message ?? ''\n\n // Every zod default starts by naming the input or the constraint; an authored one is arbitrary prose.\n return !!message && !/^(Invalid|Too big|Too small|Unrecognized|Not multiple)/.test(message)\n}\n\n/**\n * Restate one zod issue for a field. `path` is the field key \u2014 issues from a nested object keep the zod path\n * appended, so a caller can still point at the exact property.\n */\nexport function toFieldIssue(\n plan: FieldPlan,\n issue: ZodIssue & { message?: string; expected?: string; minimum?: unknown; maximum?: unknown; values?: unknown[] },\n fieldValue?: unknown\n): ValidationIssue {\n const segments = (issue.path ?? []).map(String).filter(Boolean)\n const path = segments.length ? `${ plan.name }.${ segments.join('.') }` : plan.name\n const code = issue.code ?? 'custom'\n const target = resolveTarget(plan, segments, fieldValue)\n // `plan` carries the top-level label; below the top level the resolved target carries the right one.\n const named = { ...plan, label: target.label }\n\n if (isAuthored(issue)) {\n return { path, code, message: issue.message as string }\n }\n\n if (code === 'invalid_type') {\n // Absence reaching validation means nothing was there to fall back on. At the top level the pipeline has\n // already normalized absence, so zod's `received` settles it; deeper down nothing normalized the value,\n // so the submitted value itself is what says whether the field was left empty or filled in wrongly.\n const received = (issue as { received?: string }).received\n const absent = segments.length\n ? target.found && target.value == null\n : received === 'undefined' || received === 'null' || issue.expected === undefined\n\n return absent\n ? { path, code, message: requiredMessage(named) }\n : { path, code, message: invalidTypeMessage(named, issue.expected ?? '') }\n }\n\n if (code === 'too_small') {\n return { path, code, message: `\u00AB${ target.label }\u00BB must be at least ${ bound(issue.minimum, plan) }` }\n }\n\n if (code === 'too_big') {\n return { path, code, message: `\u00AB${ target.label }\u00BB must be at most ${ bound(issue.maximum, plan) }` }\n }\n\n if (code === 'invalid_value') {\n // zod reports the accepted set as `values`.\n const values = (issue.values ?? []).map(String)\n\n return { path, code, message: `\u00AB${ target.label }\u00BB must be one of: ${ values.join(', ') }` }\n }\n\n if (code === 'invalid_format') {\n // The format's own description already says what shape is expected, so restate that rather than\n // inventing a second phrasing for the same fact.\n const described = FORMAT_DESCRIPTIONS[(issue as { format?: string }).format ?? '']\n\n return described\n ? { path, code, message: `\u00AB${ target.label }\u00BB is invalid \u2014 ${ described.replace(/^Expects /, 'expects ') }` }\n : { path, code, message: `\u00AB${ target.label }\u00BB has an invalid format` }\n }\n\n return { path, code, message: `\u00AB${ target.label }\u00BB is invalid` }\n}\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue } from '../types'\nimport { accepts, coerceDeep, coerceLeaf, isContainer } from './coerce'\nimport { passesDateThrough } from './dates'\nimport type { FieldPlan } from './field-plan'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\nimport { invalidTypeMessage, requiredMessage, toFieldIssue } from './messages'\n\n// The pipeline, per field:\n//\n// 1. normalize absence \u2192 2. coerce to the declared type \u2192 3. validate (the author's own schema)\n//\n// The order is load-bearing. Absence first, or a blank becomes garbage (`Number('')` is 0). Validation last,\n// and against the author's schema unchanged, so `.min()`, `.max()`, `.int()`, `.regex()`, enum membership and\n// refinements all work natively \u2014 nothing here reimplements them.\n\nexport interface FieldResult {\n // Absent from the output entirely when the field resolved to \"not present\" and had nothing to stand in.\n value?: unknown\n present: boolean\n issues: ValidationIssue[]\n}\n\nconst resolved = (value: unknown): FieldResult => ({ value, present: true, issues: [] })\nconst rejected = (issues: ValidationIssue[]): FieldResult => ({ present: false, issues })\n\n// `undefined` and `null` are always absence. `''` is absence only where the type has no empty value, or\n// where a declared default can absorb it \u2014 on a string it is otherwise a real value.\nfunction isAbsent(value: unknown, plan: FieldPlan): boolean {\n if (value === undefined || value === null) {\n return true\n }\n\n if (value !== '') {\n return false\n }\n\n // Same rule the deep walk applies (see ./coerce.ts `isBlank`): `''` is a value only on a plain string\n // type. A union resolves to its first branch for publishing, but that must not turn a blank into a value.\n if (plan.isUnion) {\n return true\n }\n\n return plan.coreType !== 'string' || plan.absorbsBlank\n}\n\n// Absence becomes whichever form the schema accepts, so the author's choice of modifier decides what the\n// handler sees rather than what the client happened to send.\nfunction normalizeAbsence(value: unknown, plan: FieldPlan): FieldResult {\n if (plan.absence === 'required') {\n return rejected([{ path: plan.name, code: 'invalid_type', message: requiredMessage(plan) }])\n }\n\n if (plan.absence === 'as-received') {\n // `.nullish()` accepts both, so a blank collapses to `undefined` and the rest arrive as sent.\n return validate(value === '' ? undefined : value, plan)\n }\n\n return validate(plan.absence === 'null' ? null : undefined, plan)\n}\n\n// Step 3. Zod short-circuits on the absent form it accepts, so a constraint never fires on an absent value.\nfunction validate(value: unknown, plan: FieldPlan): FieldResult {\n const schema = plan.schema as unknown as {\n safeParse: (v: unknown) => { success: boolean; data?: unknown; error?: { issues?: ZodIssue[] } }\n }\n\n let result\n\n try {\n result = schema.safeParse(value)\n } catch {\n // An async refinement cannot be evaluated here; surface it as a plain failure rather than crashing.\n return rejected([{ path: plan.name, code: 'custom', message: `\u00AB${ plan.label }\u00BB could not be validated` }])\n }\n\n return result.success\n ? resolved(result.data)\n : rejected((result.error?.issues ?? []).map(issue => toFieldIssue(plan, issue, value)))\n}\n\nexport function normalizeField(value: unknown, plan: FieldPlan): FieldResult {\n if (isAbsent(value, plan)) {\n return normalizeAbsence(value, plan)\n }\n\n // A container is WALKED \u2014 its declared properties and its elements are coerced in place \u2014 where a scalar\n // is converted outright. A container that cannot be walked (a string where a list was declared) is passed\n // through for zod to reject as the wrong type.\n if (isContainer(plan.coreType)) {\n return restore(validate(coerceDeep(value, plan.schema), plan), value, plan)\n }\n\n const coerced = coerceLeaf(value, inspect(plan.schema))\n\n if (!coerced.ok) {\n return rejected([{\n path : plan.name,\n code : 'invalid_type',\n message: invalidTypeMessage(plan, coerced.expected as string),\n }])\n }\n\n return restore(validate(coerced.value, plan), value, plan)\n}\n\n/**\n * Give a `z.date()` back the value the host actually sent.\n *\n * Validation needs a real `Date` \u2014 `z.date()` accepts nothing else, and `.min()` / `.max()` compare instants\n * \u2014 but converting is not what the handler should see: `'2024-06-01'` becomes `2024-06-01T00:00:00.000Z`,\n * inventing a time of day and a timezone nobody chose. So the check runs on a converted copy and the\n * original is restored afterwards, at every depth.\n *\n * `z.coerce.date()` is untouched: the author asked for a `Date`, so zod's output stands.\n */\nfunction restore(result: FieldResult, original: unknown, plan: FieldPlan): FieldResult {\n if (!plan.restoresDates || !result.present || result.issues.length) {\n return result\n }\n\n if (plan.passThroughDate) {\n return resolved(original)\n }\n\n return resolved(restoreDeep(result.value, original, plan.schema))\n}\n\n// Walk zod's output and the submitted value together, taking the ORIGINAL wherever the declaration is a\n// pass-through date. Only declared shapes are walked \u2014 the same rule the coercion walk follows.\nfunction restoreDeep(output: unknown, original: unknown, schema: AnyZod | undefined): unknown {\n if (!schema || output == null || original == null) {\n return output\n }\n\n const ins = inspect(schema)\n\n if (passesDateThrough(ins)) {\n return original\n }\n\n // A union was coerced through whichever branch accepted the value, so the restore walk has to follow that\n // same branch \u2014 the resolved first one says nothing about which date, if any, the value actually took.\n if (ins.branches) {\n const branch = ins.branches.find(option => accepts(option, output))\n\n return branch ? restoreDeep(output, original, branch) : output\n }\n\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n\n if (ins.coreType === 'array' && element && Array.isArray(output) && Array.isArray(original)) {\n return output.map((item, index) => restoreDeep(item, original[index], element))\n }\n\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n\n if (ins.coreType === 'record' && valueType && isPlain(output) && isPlain(original)) {\n return Object.fromEntries(\n Object.entries(output).map(([key, item]) => [key, restoreDeep(item, original[key], valueType)])\n )\n }\n\n if (ins.coreType === 'object' && isPlain(output) && isPlain(original)) {\n const restored: Record<string, unknown> = { ...output }\n\n for (const [name, property] of shapeEntries(ins.core)) {\n if (name in output) {\n restored[name] = restoreDeep(output[name], original[name], property)\n }\n }\n\n return restored\n }\n\n return output\n}\n\nconst isPlain = (value: unknown): value is Record<string, unknown> =>\n !!value && typeof value === 'object' && !Array.isArray(value)\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue, ZodSchema } from '../types'\n\n// The zod-facing half of validation: run a schema over a value and flatten its issues. Deciding WHICH\n// schema and WHICH error a failure becomes is the caller's job (see ../params.ts) \u2014 this module only knows\n// how to ask zod and how to translate what it answers.\n//\n// This is the WRAPPER path: the runtime-owned `payload` / `invocation` / `callbackObject` a helper route or\n// SYSTEM seam is called with, rather than a field a person filled in. A failure here means the CALLER is\n// malformed, so there is no author label to restate against \u2014 but zod's own wording (\"Invalid input:\n// expected object, received string\") describes the parser rather than the mistake, so the shape of the\n// wrapper itself is restated against the param's name. Everything deeper keeps zod's message: it is a\n// runtime contract detail, and inventing wording for it would only obscure what actually arrived.\n\n// A `fail` callback owns the error identity; it never returns.\nexport type FailFn = (issues: ValidationIssue[]) => never\n\n// Matches ./messages.ts, so the two paths word the same expectation the same way.\nconst EXPECTED: Record<string, string> = {\n string : 'a string',\n number : 'a number',\n boolean: 'true or false',\n object : 'an object',\n array : 'an array',\n}\n\nexport function toIssues(error: { issues?: ZodIssue[] } | undefined, param?: string): ValidationIssue[] {\n return (error?.issues ?? []).map(issue => {\n const path = (issue.path ?? []).map(String).join('.')\n const expected = (issue as { expected?: string }).expected\n\n // Only the wrapper's own type is restated \u2014 a deeper path is left as zod put it.\n const restated = param && !path && issue.code === 'invalid_type' && expected\n ? `\u00AB${ param }\u00BB must be ${ EXPECTED[expected] ?? expected }`\n : undefined\n\n return { path, message: restated ?? issue.message ?? 'invalid value', code: issue.code }\n })\n}\n\n// Parse `value`, handing the flattened issues to `fail` (which throws). Schema-less slots pass through \u2014\n// authors may declare no params/criteria at all.\nexport function parseSchema<T>(\n schema: ZodSchema | undefined,\n value: unknown,\n fail: FailFn,\n param?: string\n): T {\n if (typeof schema?.safeParse !== 'function') {\n return value as T\n }\n\n const result = schema.safeParse(value)\n\n if (!result.success) {\n fail(toIssues(result.error, param))\n }\n\n return result.data as T\n}\n", "import type { ValidationIssue } from '../../errors'\nimport { assertObjectSchema } from './schema/assert-object-schema'\nimport { assertSupportedSchema } from './schema/assert-supported-schema'\nimport { type FieldPlan, planField } from './schema/field-plan'\nimport { type AnyZod, shapeEntries } from './schema/introspect'\nimport { normalizeField } from './schema/normalize'\nimport { type FailFn, parseSchema } from './schema/parse'\nimport type { NormalizedInput, SchemaSource, ZodSchema } from './types'\n\n// A declared schema slot, as the runner works with it. Two things live here and nowhere else: the author's\n// zod schema, and the operations the runner performs on it. Anything zod can already do is DELEGATED \u2014 this\n// is a wrapper, never a re-implementation. `MethodParams` (inputs) and `ConfigParams` (config) extend it.\n//\n// Every slot is optional: an undeclared one produces an instance with no `scheme` that answers \"no fields\"\n// and passes values through unparsed, so call sites never need an `if (params)` guard. But a slot that IS\n// declared must be a z.object \u2014 the constructor enforces that, so an instance is never half-usable.\n\nexport abstract class Params {\n readonly scheme?: ZodSchema\n\n // Derived once per declared slot, at registration. The absence policy comes from probing the schema, which\n // is two `safeParse` calls we would rather not repeat on every invocation.\n #plans?: FieldPlan[]\n\n protected constructor(scheme?: unknown, readonly source: SchemaSource = {}) {\n // Declared \u21D2 must be a z.object. Checked here so EVERY slot is covered by construction, and at\n // registration time rather than on some later invocation (see ./schema/assert-object-schema.ts).\n assertObjectSchema(scheme, source)\n // \u2026and every field inside it must be something the runtime can publish, render and coerce. Same moment,\n // same reason: a declaration the runner cannot classify is a wrong contract, not a rendering nicety\n // (see ./schema/assert-supported-schema.ts).\n assertSupportedSchema(scheme, source)\n\n this.scheme = (scheme ?? undefined) as ZodSchema | undefined\n }\n\n // The declared field names. This is what a `dependsOn` is derived from.\n keys(): string[] {\n return this.fields().map(([name]) => name)\n }\n\n // The declared fields, in declaration order. Public: a renderer needs them as much as the pipeline does.\n fields(): [name: string, schema: AnyZod][] {\n return shapeEntries(this.scheme as AnyZod | undefined)\n }\n\n protected plans(): FieldPlan[] {\n this.#plans ??= this.fields().map(([name, schema]) => planField(name, schema))\n\n return this.#plans\n }\n\n /**\n * Normalize, coerce and validate a whole input object against the declared fields.\n *\n * Only declared fields appear in the output \u2014 an undeclared key is dropped, as it always was. Every\n * declared field appears, holding whatever it resolved to, which for an absent `.optional()` is\n * `undefined`: the key is there, so a handler asks `params.x === undefined` rather than `'x' in params`.\n * A field is omitted only when it FAILED, and then the caller is looking at `issues` instead.\n *\n * Every field is attempted even after one fails, so the caller can report the whole form at once instead\n * of making a user fix one field per attempt.\n */\n normalizeInput(input?: Record<string, unknown>): NormalizedInput {\n const source = input ?? {}\n const values: Record<string, unknown> = {}\n const issues: ValidationIssue[] = []\n\n for (const plan of this.plans()) {\n const result = normalizeField(source[plan.name], plan)\n\n if (result.issues.length) {\n issues.push(...result.issues)\n } else if (result.present) {\n values[plan.name] = result.value\n }\n }\n\n return { values, issues }\n }\n\n // Strict: required fields enforced, unknown stripped. For input the flow engine produces against the\n // published model, where a violation is a real contract break.\n parse<T>(value: unknown, fail: FailFn): T {\n return parseSchema<T>(this.scheme, value, fail)\n }\n\n}\n", "import type { ServiceConfigsValues } from '../../common/constants'\nimport { InvalidConfigError } from '../../errors'\nimport { Params } from './params'\nimport type { SchemaSource } from './types'\n\n// The extension's `configItems` slot: its description for the console, and the resolution of a concrete\n// invocation's values.\n//\n// Resolution runs the shared normalize \u2192 coerce \u2192 validate pipeline (see ./params.ts and ./schema/normalize),\n// so `configItems` obeys exactly the same policy as every other declared slot. It replaces the v1\n// `prepareServiceConfig` for this format: that resolver routed by the `shared` flag and applied defaults by\n// truthiness, which silently dropped a falsy default and never type-checked anything.\n\nexport class ConfigParams extends Params {\n static of(scheme?: unknown, source: SchemaSource = {}): ConfigParams {\n return new ConfigParams(scheme, source)\n }\n\n static empty(): ConfigParams {\n return new ConfigParams(undefined)\n }\n\n /**\n * The effective config for one invocation.\n *\n * Fails with every offending field at once rather than the first, so a half-configured service reports its\n * whole form. A field the schema resolved to \"not present\" is simply absent from the result.\n */\n resolve(configs?: ServiceConfigsValues): ServiceConfigsValues {\n const { values, issues } = this.normalizeInput(configs)\n\n if (issues.length) {\n throw new InvalidConfigError(this.source.serviceId ?? 'unknown', issues)\n }\n\n return values\n }\n}\n", "import { Params } from './params'\nimport type { FailFn } from './schema/parse'\nimport type { SchemaSource } from './types'\n\n// Every input container a method declares: an action's or trigger's `params`, a dictionary's `criteria`,\n// a params loader's criteria, the fields a `.dynamicProps()` / `dynamicParams` `execute()` returns, and a SYSTEM method's\n// runtime-owned scheme. One class because they are the same thing \u2014 a z.object the runner validates input\n// against and publishes as the method's input model.\n\nexport class MethodParams extends Params {\n static of(scheme?: unknown, source: SchemaSource = {}): MethodParams {\n return new MethodParams(scheme, source)\n }\n\n // An undeclared slot. A real instance, so callers never branch on undefined.\n static empty(): MethodParams {\n return new MethodParams(undefined)\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Run the shared normalize \u2192 coerce \u2192 validate pipeline and hand the issues to `fail` (which throws).\n *\n * `carryUnknown` keeps the input's undeclared keys underneath the normalized ones. Two slots need it: an\n * action with `dynamicParams`, whose generated top-level fields are not in the static schema, and the\n * generated loaders, whose owner's `result` fn may read those same fields.\n */\n normalize<T extends Record<string, unknown>>(\n input: Record<string, unknown> | undefined,\n fail: FailFn,\n options: { carryUnknown?: boolean } = {}\n ): T {\n const { values, issues } = this.normalizeInput(input)\n\n if (issues.length) {\n fail(issues)\n }\n\n return (options.carryUnknown ? { ...input, ...values } : values) as T\n }\n}\n", "import { z as baseZod } from 'zod'\n\nimport {\n filesDeleteOptions,\n filesGetOptions,\n filesListOptions,\n filesUploadOptions,\n} from './files-options'\nimport { FlowExtensionParamWidgetTypes, type FrWidgetToken } from './widget-types'\n\n// The v2 authoring surface: real zod v4 extended with FlowRunner authoring plugins and custom types.\n// Exposed to services as `Flowrunner.z` (services do `const z = Flowrunner.z`) \u2014 see ../../namespace.ts.\n//\n// Author metadata is stored on the schema via zod's native `.meta()` (merges, immutable clone). Native\n// keys drive display (`title`, `description`, `examples`); FlowRunner-specific bits use `fr`-prefixed keys\n// so they never collide with zod/OpenAPI meta. The runner reads them back via ../schema/introspect.\n\n// A dictionary ref carried by `.dictionary(ref)` \u2014 returned from `ext.dictionary(...)` (see create-extension).\nexport interface DictionaryRef {\n id: string\n dependsOn?: string[]\n}\n\n/**\n * What `.dynamicProps()` takes: the sibling params whose values the loader receives as `criteria`, and the\n * handler that returns the field's inner fields \u2014 a zod shape or a `z.object`.\n *\n * Typed loosely here on purpose: this framework is self-contained (it also runs in the browser), so it cannot\n * name the runner's handler bag. The runner narrows `execute` where it has the extension's types\n * (`DynamicPropsDef` in ../types.ts).\n */\nexport interface DynamicPropsSpec {\n dependsOn?: string[]\n execute: (bag: any) => unknown\n}\n\n// A `.dynamicProps()` field as it reads after a round trip through the wire form: the loader method's name.\nexport interface DynamicPropsRef {\n id: string\n dependsOn: string[]\n}\n\n// FlowRunner meta keys attached by the plugins below.\nexport interface FrMeta {\n title?: string\n description?: string\n examples?: unknown[]\n frShared?: boolean\n frDictionary?: { id: string; dependsOn: string[] }\n frLabels?: Record<string, string>\n /** A widget token the declaration carries explicitly \u2014 see `FrWidgetToken` in ./widget-types.ts. */\n frWidget?: FrWidgetToken\n frSecret?: boolean\n /** `z.json()` \u2014 the value arrives as TEXT and is parsed before the handler sees it. See `json()` below. */\n frJson?: boolean\n /**\n * `.dynamicProps()` \u2014 the spec (holding the author's function) on a declared schema, the plain ref of the\n * method that runs it on a decoded one. Never encoded as the spec: see ./json/encode.ts.\n */\n frDynamicProps?: DynamicPropsSpec | DynamicPropsRef\n}\n\ndeclare module 'zod' {\n interface ZodType {\n /** Display label \u2192 native `meta.title`. */\n label(text: string): this\n /** Sample value \u2192 appended to native `meta.examples`. */\n example(value: unknown): this\n /** Mark a config field as shared (global) rather than per-app (OAuth client id/secret, secrets). */\n shared(): this\n /**\n * Mark a `z.string()` CONFIG field as sensitive: the console masks it and offers a reveal toggle.\n *\n * Display only. The value is stored, transmitted and validated exactly as it would be without it \u2014 this\n * hides a credential from a passer-by, it does not protect it.\n *\n * No effect anywhere else. Not on `z.text()`, which has no password mode; and not on an action or\n * trigger param, whose value lives in the flow definition and is readable through the API, so masking\n * its input would suggest a protection that is not there.\n */\n secret(): this\n /** Bind a param to a dictionary for dynamic options; auto-derives `dependsOn` from the dictionary criteria. */\n dictionary(ref: DictionaryRef): this\n /**\n * Show a human label per declared VALUE: `.labels({ asc: 'Ascending' })`.\n *\n * The flow element stores the VALUE, so renaming a label changes nothing that was saved \u2014 and the\n * handler receives the value it declared, with no translation step anywhere.\n */\n labels(byValue: Record<string, string>): this\n /**\n * Load this object's inner fields at design time from the values of other params:\n * `z.looseObject({}).dynamicProps({ dependsOn: ['tableName'], execute: async ({ criteria }) => ({ \u2026 }) })`.\n *\n * Top-level ACTION params only, on a `z.looseObject()` or a `z.array(z.looseObject())` \u2014 the loaded keys\n * are not in the declared schema, so a strict object would strip them. Checked when the service loads.\n */\n dynamicProps(spec: DynamicPropsSpec): this\n /** @deprecated Inverted and renamed \u2014 see `labels`. Throws, so the change cannot pass silently. */\n map(mapping: Record<string, unknown>): never\n }\n}\n\nlet extended = false\n\nfunction extendPrototype(): void {\n if (extended) {\n return\n }\n extended = true\n\n const proto = baseZod.ZodType.prototype as unknown as Record<string, unknown>\n\n proto.label = function label(this: baseZod.ZodType, text: string) {\n return this.meta({ title: text })\n }\n\n proto.example = function example(this: baseZod.ZodType, value: unknown) {\n const existing = (this.meta() as FrMeta | undefined)?.examples ?? []\n\n return this.meta({ examples: [...existing, value] })\n }\n\n proto.shared = function shared(this: baseZod.ZodType) {\n return this.meta({ frShared: true })\n }\n\n proto.secret = function secret(this: baseZod.ZodType) {\n return this.meta({ frSecret: true })\n }\n\n proto.dictionary = function dictionary(this: baseZod.ZodType, ref: DictionaryRef) {\n return this.meta({ frDictionary: { id: ref.id, dependsOn: ref.dependsOn ?? [] } })\n }\n\n proto.labels = function labels(this: baseZod.ZodType, byValue: Record<string, string>) {\n return this.meta({ frLabels: byValue })\n }\n\n // The spec is stored as given and never mutated: one spec may be shared by several fields and actions.\n proto.dynamicProps = function dynamicProps(this: baseZod.ZodType, spec: DynamicPropsSpec) {\n if (!spec || typeof spec !== 'object') {\n throw new Error(\n '`.dynamicProps()` takes `{ dependsOn, execute }` \u2014 the params the fields depend on, and a function that ' +\n 'returns them. e.g. .dynamicProps({ dependsOn: [\\'tableName\\'], execute: async ({ criteria }) => ({ \u2026 }) })'\n )\n }\n\n return this.meta({ frDynamicProps: spec })\n }\n\n /**\n * `.map({ Label: value })` declared the LABELS as the accepted values, so a flow element stored a display\n * string \u2014 renaming a label then broke every saved element that used it. `.labels()` inverts it: the enum\n * declares the values, the labels are display only.\n *\n * It throws rather than being quietly accepted because the two forms take the same shape of argument with\n * the opposite meaning. Silently reading an old `.map()` would store labels again; ignoring it would drop\n * the labels. A loud failure at registration is the only reading that cannot corrupt a flow.\n */\n proto.map = function map(this: baseZod.ZodType): never {\n throw new Error(\n '`.map({ Label: value })` has been replaced by `.labels({ value: \\'Label\\' })` \u2014 declare the VALUES in ' +\n 'the enum and the labels here, so a flow element stores the value and renaming a label is safe. ' +\n 'e.g. z.enum([\\'asc\\', \\'desc\\']).labels({ asc: \\'Ascending\\', desc: \\'Descending\\' })'\n )\n }\n}\n\nextendPrototype()\n\n// Custom type: multi-line text is a `z.string()` carrying a widget marker.\nfunction text() {\n\n return baseZod.string().meta({ frWidget: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT })\n}\n\n/**\n * Custom type: a parameter that takes arbitrary JSON.\n *\n * Three facts have to hold at once, and each picks one piece of this declaration:\n *\n * - **The console renders a textarea.** `frWidget` says so, and ../schema/introspect.ts publishes the\n * parameter as `STRING` \u2014 the model describes what a caller SUPPLIES, and what a caller supplies is text.\n * - **`execute` receives the parsed structure.** `frJson` tells ../schema/coerce.ts to `JSON.parse` the text\n * on the way in, so no service writes its own parse and none has to invent wording for text that is not\n * JSON. Coercion already sits between the transport and zod for exactly this kind of conversion \u2014 this is\n * the same arrangement as `z.string().pipe(z.coerce.number())`, with a fixed conversion.\n * - **The author's TYPE is the parsed value, not the text.** Hence `unknown` underneath: `z.infer` gives the\n * handler `unknown`, which is what it actually receives. Declaring `z.string()` here would publish and\n * coerce correctly and then lie to every author about what lands in `params`.\n *\n * \u26A0\uFE0F This SHADOWS zod's own `z.json()` (the namespace is `Object.create(baseZod)`). Deliberate, and safe\n * only because zod's version cannot currently be declared at all \u2014 it recurses until the stack is gone, and\n * the extension never registers (FR-3600). An author reaching for `z.json()` gets this one.\n */\nfunction json() {\n\n // `.nonoptional()` because `z.unknown()` accepts `undefined` on its own, and the console asks the same\n // absence probe the runtime resolves with (see ../model/field-mapper.ts `isRequired`) \u2014 so without it a\n // bare `z.json()` would publish as an OPTIONAL field and the runner would accept a missing value, which is\n // not what an author who did not write `.optional()` asked for. An author's own `.optional()` still wins:\n // it lands outside this, and the outermost modifier is the final word.\n return baseZod.unknown().nonoptional().meta({\n frWidget: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT,\n frJson : true,\n })\n}\n\n// NB: never mutate `baseZod` itself \u2014 zod's module exports are not extensible. The ESM build exposes\n// `z` as a frozen module namespace, and since zod 4.6.0 the CJS build freezes its exports too, so\n// `Object.assign(baseZod, ...)` throws \"Cannot add property text, object is not extensible\" at module\n// load \u2014 which takes down the whole extension worker thread before any service code runs. Layering the\n// additions onto a child object keeps every zod export reachable through the prototype chain while\n// leaving zod's own exports untouched.\n// The additions are DEFINED rather than assigned, for a second-order version of the same hazard: `json`\n// SHADOWS a zod export, `Object.assign` writes through plain assignment, and assignment respects the\n// PROTOTYPE's descriptor \u2014 zod's `json` is non-writable, so it throws \"Cannot assign to read only property\n// 'json'\" at module load and takes the worker down exactly as mutating `baseZod` would. `defineProperty`\n// creates an own property without consulting the prototype, which is what shadowing requires.\n//\n// `Omit` on the base is what makes `z.json()` unambiguous: intersecting the two signatures would leave zod's\n// recursive-JSON overload callable, and an author would get its type for our value.\nconst namespace = Object.create(baseZod) as typeof baseZod\n\n// The file-options groups are custom types in the same sense \u2014 see ./files-options.ts for why they are\n// shipped rather than hand-copied into each service.\nObject.defineProperties(namespace, {\n text: { value: text, enumerable: true },\n json: { value: json, enumerable: true },\n filesUploadOptions: { value: filesUploadOptions, enumerable: true },\n filesListOptions: { value: filesListOptions, enumerable: true },\n filesGetOptions: { value: filesGetOptions, enumerable: true },\n filesDeleteOptions: { value: filesDeleteOptions, enumerable: true },\n})\n\nexport const z = namespace as unknown as\n Omit<typeof baseZod, 'json'> & {\n text: typeof text\n json: typeof json\n filesUploadOptions: typeof filesUploadOptions\n filesListOptions: typeof filesListOptions\n filesGetOptions: typeof filesGetOptions\n filesDeleteOptions: typeof filesDeleteOptions\n }\n\nexport type ExtendedZod = typeof z\n", "import { z as baseZod } from 'zod'\n\nimport { FlowExtensionParamWidgetTypes, type FrGroupToken } from './widget-types'\n\n// The platform's own file-storage option groups, declared once and handed to services through\n// `Flowrunner.z` (see ./zod.ts) \u2014 the v2 counterpart of the built-in `FilesUploadOptions` /\n// `FilesListOptions` / `FilesGetOptions` / `FilesDeleteOptions` param types the v1 JSDoc parser registers\n// (`jsdoc-parser/src/custom-type-defs/files.ts`).\n//\n// **Why this is shipped rather than copied.** A v1 service names the type and gets the platform's values,\n// labels, descriptions and defaults; reword a label here and every v1 service picks it up on the next parse.\n// Without an equivalent, every v2 service that stores a file owns a private copy of the same ten lines \u2014\n// nothing propagates, and a copy that drifts publishes a field the runtime does not have. That is not\n// hypothetical: the v1 services that shadow the built-in with their own typedef publish a `directory` option\n// `uploadFile` silently drops.\n//\n// **The `include` argument.** v1 subsets a group at publish time with `@paramDef {\u2026 \"include\":[\"scope\"]}`,\n// and 706 of the catalog's 729 `@paramDef`s do. The factories below take that same list, so an existing\n// `@paramDef` translates by inspection and the published param comes out identical. No argument means every\n// field, matching v1's no-`include` behaviour.\n//\n// Two display differences from v1 are expected and harmless, because both are widgets the console resolves\n// to the same control: a plain string publishes no `uiComponent` at all (the v2 model omits display defaults\n// so they can be reworded without a redeploy \u2014 `SINGLE_LINE_TEXT` is the console's fallback), and a number\n// publishes `NUMERIC_STEPPER` where v1 hand-wrote the legacy `NUMERIC`. `scope`, the only field the catalog\n// actually exposes, is byte-identical \u2014 see `__tests__/files-options-schema.test.ts`.\n//\n// \u26A0\uFE0F Imports `zod` directly, never `./zod`, to keep the dependency one-way. The authoring plugins used below\n// (`.label()`) are installed on zod's prototype by ./zod.ts, which imports THIS module \u2014 safe because a\n// factory can only be reached through the namespace that module builds, so the plugins are always in place\n// by the time one runs.\n\n// Kept in step with `FileScope` in ../../common/context-files.ts, which cannot be imported here: it pulls in\n// the HTTP client, and the params framework is compiled into the console's browser bundle. A test asserts\n// the two agree.\nconst SCOPE_VALUES = ['WORKSPACE', 'FLOW', 'EXECUTION'] as const\n\n// `scope` is the one field shared by all four groups \u2014 and the only one the catalog exposes to flow authors.\nconst scope = () => baseZod.enum(SCOPE_VALUES)\n .label('Scope')\n .describe('Storage scope: WORKSPACE (shared across flows), FLOW (this flow only), EXECUTION (this run only)')\n .default('FLOW')\n\nconst ttl = () => baseZod.number()\n .label('URL TTL (seconds)')\n .describe('How long the download URL remains valid')\n .optional()\n\nconst generateUrl = () => baseZod.boolean()\n .label('Generate download URL')\n .describe('Include a pre-signed download URL in the response')\n .default(true)\n\n// A group is a table of FACTORIES, not of schemas: each call hands the service a fresh object, so one\n// service's `.optional()` or `.describe()` can never reach another's.\ntype FieldTable = Record<string, () => baseZod.ZodType>\n\nconst UPLOAD_FIELDS = {\n scope,\n filename: () => baseZod.string()\n .label('Filename')\n .describe('Custom filename (defaults to the original name if omitted)')\n .optional(),\n ttl,\n objectTtl: () => baseZod.number()\n .label('File TTL (seconds)')\n .describe('How long the file is kept in storage (omit for permanent storage)')\n .optional(),\n overwrite: () => baseZod.boolean()\n .label('Overwrite existing')\n .describe('Replace the file if one with the same name already exists')\n .optional(),\n generateUrl,\n} satisfies FieldTable\n\nconst LIST_FIELDS = {\n scope,\n limit: () => baseZod.number()\n .label('Limit')\n .describe('Maximum number of files to return')\n .optional(),\n ttl: () => baseZod.number()\n .label('URL TTL (seconds)')\n .describe('How long the download URLs remain valid')\n .optional(),\n generateUrl: () => baseZod.boolean()\n .label('Generate download URLs')\n .describe('Include pre-signed download URLs in the response')\n .default(true),\n cursor: () => baseZod.string()\n .label('Cursor')\n .describe('Pagination cursor from a previous response')\n .optional(),\n} satisfies FieldTable\n\nconst GET_FIELDS = {\n scope,\n ttl,\n generateUrl,\n} satisfies FieldTable\n\nconst DELETE_FIELDS = {\n scope,\n} satisfies FieldTable\n\n// The object a factory returns: the picked fields, each typed as its own factory declares it.\ntype Group<T extends FieldTable, K extends keyof T> = baseZod.ZodObject<{ [P in K]: ReturnType<T[P]> }>\n\n/**\n * Build one group, optionally subset to `include`.\n *\n * Two details reproduce v1 exactly (`jsdoc-parser/src/index.ts` `buildParam`): the result keeps the\n * CANONICAL field order rather than the order of `include` \u2014 so `['filename', 'scope']` still publishes\n * `scope` first \u2014 and an empty list is treated as no list, i.e. every field.\n *\n * An unknown name THROWS, where v1 silently published an empty object. A typo there is invisible until a\n * flow author opens the block and finds no settings at all; here it fails while the service registers, which\n * is the only moment anyone is looking.\n */\nfunction group<T extends FieldTable, K extends keyof T & string>(\n typeName: string,\n widget: FrGroupToken,\n table: T,\n include?: readonly K[]\n): Group<T, K> {\n const names = Object.keys(table)\n\n if (include?.length) {\n const unknown = include.filter(name => !names.includes(name))\n\n if (unknown.length) {\n throw new Error(\n `z.${ typeName }(): unknown field${ unknown.length > 1 ? 's' : '' } ${ unknown.map(n => `'${ n }'`).join(', ') }. ` +\n `Available fields: ${ names.join(', ') }.`\n )\n }\n }\n\n const selected = include?.length ? names.filter(name => include.includes(name as K)) : names\n\n const shape = Object.fromEntries(selected.map(name => [name, table[name]()]))\n\n // The group names itself in the published model (`uiComponent: { type: 'FILE_UPLOAD_OPTIONS' }`), so a\n // consumer can tell the platform's own options object from an anonymous one a service declared and render\n // it accordingly. See ../model/field-mapper.ts, which publishes it at every depth.\n return baseZod.object(shape).meta({ frWidget: widget }) as Group<T, K>\n}\n\nexport type FilesUploadOptionsField = keyof typeof UPLOAD_FIELDS & string\nexport type FilesListOptionsField = keyof typeof LIST_FIELDS & string\nexport type FilesGetOptionsField = keyof typeof GET_FIELDS & string\nexport type FilesDeleteOptionsField = keyof typeof DELETE_FIELDS & string\n\n/** Options for `ctx.files.uploadFile()`. `z.filesUploadOptions(['scope'])` is the form the catalog uses. */\nexport function filesUploadOptions<K extends FilesUploadOptionsField = FilesUploadOptionsField>(\n include?: readonly K[]\n): Group<typeof UPLOAD_FIELDS, K> {\n return group('filesUploadOptions', FlowExtensionParamWidgetTypes.FILE_UPLOAD_OPTIONS as FrGroupToken, UPLOAD_FIELDS, include)\n}\n\n/** Options for `ctx.files.list()`. */\nexport function filesListOptions<K extends FilesListOptionsField = FilesListOptionsField>(\n include?: readonly K[]\n): Group<typeof LIST_FIELDS, K> {\n return group('filesListOptions', FlowExtensionParamWidgetTypes.FILE_LIST_OPTIONS as FrGroupToken, LIST_FIELDS, include)\n}\n\n/** Options for `ctx.files.get()`. */\nexport function filesGetOptions<K extends FilesGetOptionsField = FilesGetOptionsField>(\n include?: readonly K[]\n): Group<typeof GET_FIELDS, K> {\n return group('filesGetOptions', FlowExtensionParamWidgetTypes.FILE_GET_OPTIONS as FrGroupToken, GET_FIELDS, include)\n}\n\n/** Options for `ctx.files.delete()`. */\nexport function filesDeleteOptions<K extends FilesDeleteOptionsField = FilesDeleteOptionsField>(\n include?: readonly K[]\n): Group<typeof DELETE_FIELDS, K> {\n return group('filesDeleteOptions', FlowExtensionParamWidgetTypes.FILE_DELETE_OPTIONS as FrGroupToken, DELETE_FIELDS, include)\n}\n\n// Exported for the test that keeps this table and `FileScope` in step.\nexport { SCOPE_VALUES }\n", "import type { JsonValue } from './types'\n\n// The two declarable primitives JSON has no room for. Boxed rather than stringified, so decoding can tell a\n// `BigInt('12')` from the string `'12'` \u2014 which matters, because `z.bigint()` rejects the string.\n\nconst isBox = (value: unknown, key: '$bigint' | '$date'): boolean =>\n !!value && typeof value === 'object' && key in (value as Record<string, unknown>)\n\n/** A declared value (a `.default()`, an enum member, a constraint bound) on its way out. */\nexport function toJsonValue(value: unknown): JsonValue {\n if (typeof value === 'bigint') {\n return { $bigint: value.toString() }\n }\n\n if (value instanceof Date) {\n return { $date: value.toISOString() }\n }\n\n if (Array.isArray(value)) {\n return value.map(toJsonValue)\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(Object.entries(value).map(([key, inner]) => [key, toJsonValue(inner)]))\n }\n\n return value as JsonValue\n}\n\n/** The same value on its way back in. */\nexport function fromJsonValue(value: JsonValue): unknown {\n if (isBox(value, '$bigint')) {\n return BigInt((value as { $bigint: string }).$bigint)\n }\n\n if (isBox(value, '$date')) {\n return new Date((value as { $date: string }).$date)\n }\n\n if (Array.isArray(value)) {\n return value.map(fromJsonValue)\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(Object.entries(value).map(([key, inner]) => [key, fromJsonValue(inner)]))\n }\n\n return value\n}\n", "import type { AnyZod } from '../schema/introspect'\nimport type { CheckJSON, FieldType, JsonValue, RegexJSON } from './types'\nimport { fromJsonValue, toJsonValue } from './values'\n\n// The constraint table, read in both directions from one place so encode and decode cannot drift.\n//\n// zod v4 keeps checks in `_zod.def.checks`, each with its own `_zod.def.check` discriminator. The names are\n// zod's internals rather than its API: `.min()` on a string is `min_length`, on a number `greater_than`, and\n// `.int()` is a `number_format`. Decoding goes back through the public API, where `.min()` covers both.\n\ninterface ZodCheckDef {\n check?: string\n format?: string\n minimum?: unknown\n maximum?: unknown\n length?: unknown\n value?: unknown\n inclusive?: boolean\n pattern?: RegExp\n prefix?: string\n suffix?: string\n includes?: string\n error?: unknown\n}\n\nconst defOf = (check: unknown): ZodCheckDef =>\n ((check as { _zod?: { def?: ZodCheckDef } } | undefined)?._zod?.def ?? {})\n\n/**\n * An author's own message, if they wrote one.\n *\n * zod normalizes a string message into a function, so the string is only reachable by CALLING it. A message\n * the author wrote as a function reads the issue and cannot be replayed here \u2014 the call is guarded and the\n * pipeline's own wording applies instead.\n */\nexport function messageOf(source: { error?: unknown }): string | undefined {\n const { error } = source\n\n if (typeof error === 'string') {\n return error\n }\n\n if (typeof error !== 'function') {\n return undefined\n }\n\n try {\n const produced = (error as (issue: unknown) => unknown)({ code: 'custom', input: undefined })\n\n return typeof produced === 'string' ? produced : undefined\n } catch {\n return undefined\n }\n}\n\nconst regexToJson = (pattern: RegExp): RegexJSON => ({ source: pattern.source, flags: pattern.flags })\n\n/** One zod check \u2192 its wire form, or `undefined` when it cannot cross (a function-backed check). */\nfunction encodeCheck(check: unknown): CheckJSON | undefined {\n const def = defOf(check)\n const message = messageOf(def)\n const at = (kind: CheckJSON['kind'], value?: JsonValue, exclusive?: true): CheckJSON => ({\n kind,\n ...(value === undefined ? {} : { value }),\n ...(exclusive ? { exclusive } : {}),\n ...(message ? { message } : {}),\n })\n\n switch (def.check) {\n // strings and arrays\n case 'min_length':\n return at('min', toJsonValue(def.minimum))\n case 'max_length':\n return at('max', toJsonValue(def.maximum))\n case 'length_equals':\n return at('length', toJsonValue(def.length))\n\n // numbers and bigints\n case 'greater_than':\n return at('min', toJsonValue(def.value), def.inclusive ? undefined : true)\n case 'less_than':\n return at('max', toJsonValue(def.value), def.inclusive ? undefined : true)\n case 'multiple_of':\n return at('multipleOf', toJsonValue(def.value))\n case 'number_format':\n // `.int()` \u2014 a format check rather than a range one.\n return def.format === 'safeint' || def.format === 'int32' ? at('int') : undefined\n\n // the string sub-formats that are checks rather than types\n case 'string_format':\n if (def.format === 'regex' && def.pattern) {\n return at('regex', regexToJson(def.pattern))\n }\n\n if (def.format === 'starts_with') {\n return at('startsWith', def.prefix ?? '')\n }\n\n if (def.format === 'ends_with') {\n return at('endsWith', def.suffix ?? '')\n }\n\n if (def.format === 'includes') {\n return at('includes', def.includes ?? '')\n }\n\n return undefined\n\n default:\n return undefined\n }\n}\n\nexport interface EncodedChecks {\n checks: CheckJSON[]\n unsupported: string[]\n}\n\n/** Every check a core schema carries. What cannot cross is NAMED rather than silently dropped. */\nexport function encodeChecks(core: AnyZod | undefined): EncodedChecks {\n const declared = (core?._zod?.def?.checks as unknown[] | undefined) ?? []\n const checks: CheckJSON[] = []\n const unsupported: string[] = []\n\n for (const check of declared) {\n const encoded = encodeCheck(check)\n\n if (encoded) {\n checks.push(encoded)\n continue\n }\n\n const def = defOf(check)\n\n unsupported.push(`check:${ def.check ?? 'unknown' }${ def.format ? `/${ def.format }` : '' }`)\n }\n\n return { checks, unsupported }\n}\n\n// A zod schema with the constraint methods the table above needs. Structural, so this file stays independent\n// of zod's generics \u2014 the methods exist on the string/number/array types that carry these checks.\ntype Constrainable = {\n min?: (value: never, message?: string) => Constrainable\n max?: (value: never, message?: string) => Constrainable\n gt?: (value: never, message?: string) => Constrainable\n lt?: (value: never, message?: string) => Constrainable\n length?: (value: number, message?: string) => Constrainable\n int?: (message?: string) => Constrainable\n multipleOf?: (value: never, message?: string) => Constrainable\n regex?: (pattern: RegExp, message?: string) => Constrainable\n startsWith?: (value: string, message?: string) => Constrainable\n endsWith?: (value: string, message?: string) => Constrainable\n includes?: (value: string, message?: string) => Constrainable\n}\n\n/**\n * Re-apply one wire check to a rebuilt schema.\n *\n * `type` decides nothing about WHICH method to call \u2014 `.min()` is `.min()` on a string, a number and an\n * array \u2014 it only guards the numeric-only ones. A check whose method is missing on this type is skipped\n * rather than thrown: a schema decoded slightly loose is the documented failure mode.\n */\nexport function applyCheck(schema: unknown, check: CheckJSON, type: FieldType): unknown {\n const target = schema as Constrainable\n const value = check.value === undefined ? undefined : fromJsonValue(check.value)\n const numeric = type === 'number' || type === 'bigint'\n const call = (\n method: keyof Constrainable,\n arg?: unknown\n ): unknown => {\n const fn = target[method]\n\n return typeof fn === 'function'\n ? (fn as (...args: unknown[]) => unknown).call(target, ...(arg === undefined ? [] : [arg]), check.message)\n : schema\n }\n\n switch (check.kind) {\n case 'min':\n return call(check.exclusive && numeric ? 'gt' : 'min', value)\n case 'max':\n return call(check.exclusive && numeric ? 'lt' : 'max', value)\n case 'length':\n return call('length', value)\n case 'int':\n return call('int')\n case 'multipleOf':\n return call('multipleOf', value)\n case 'regex': {\n const { source, flags } = (check.value ?? { source: '', flags: '' }) as unknown as RegexJSON\n\n return call('regex', new RegExp(source, flags))\n }\n case 'startsWith':\n return call('startsWith', value)\n case 'endsWith':\n return call('endsWith', value)\n case 'includes':\n return call('includes', value)\n default:\n return schema\n }\n}\n", "import type { FrWidgetToken } from '../widget-types'\n\n// The wire form of a declared schema.\n//\n// Written by the runner when a service is deployed or installed, stored on the definition, and read back by\n// the console \u2014 which rebuilds real zod from it (see ./decode.ts) and runs the SAME pipeline the runner runs.\n// That is the whole point: a form reports exactly the errors an execution would, because both sides validate\n// against the same schema rather than against two hand-kept descriptions of it.\n//\n// Hand-rolled rather than `z.toJSONSchema()`, because JSON Schema drops everything that makes a FlowRunner\n// field a FlowRunner field \u2014 `.label()`, `.shared()`, `.dictionary()`, `.map()`, an author's own check\n// message \u2014 and rebuilding zod from it would need a JSON-Schema interpreter anyway.\n\n// A value that survives JSON. The two primitives that do not are boxed (see ./encode.ts).\nexport type JsonValue =\n | string | number | boolean | null\n | { $bigint: string }\n | { $date: string }\n | JsonValue[]\n | { [key: string]: JsonValue }\n\n/** A constraint the author declared. `min`/`max` cover both length and magnitude \u2014 zod spells them alike. */\nexport interface CheckJSON {\n kind: 'min' | 'max' | 'length' | 'int' | 'multipleOf' | 'regex' | 'startsWith' | 'endsWith' | 'includes'\n value?: JsonValue\n // `.min(3)` is inclusive, `.gt(3)` is not. Absent means inclusive.\n exclusive?: true\n // An author's own message (`z.string().min(3, 'Too short')`), so the console words the failure the way the\n // runtime will. Absent \u21D2 the pipeline's own wording applies.\n message?: string\n}\n\n/** A serialized regex \u2014 `RegExp` itself is not JSON. Indexable so it satisfies `JsonValue`. */\nexport interface RegexJSON {\n [key: string]: JsonValue\n source: string\n flags: string\n}\n\n// The metadata an author attached. Native zod keys drive display; `fr`-prefixed keys are FlowRunner's.\nexport interface MetaJSON {\n title?: string\n description?: string\n examples?: JsonValue[]\n frShared?: boolean\n frWidget?: FrWidgetToken\n frSecret?: boolean\n frDictionary?: { id: string; dependsOn: string[] }\n frLabels?: Record<string, string>\n}\n\nexport type FieldType =\n | 'string' | 'number' | 'bigint' | 'boolean' | 'date'\n | 'enum' | 'literal' | 'object' | 'array' | 'record' | 'union'\n /**\n * Anything the encoder does not model \u2014 and also where a declared `z.any()` / `z.unknown()` legitimately\n * lands, since \"validates nothing\" is exactly what those two declare. The `unsupported` breadcrumb is what\n * separates the two cases: a modelling gap carries `['type:\u2026']`, a declared pass-through carries nothing.\n *\n * Decodes to `z.unknown()` either way, so it validates nothing.\n */\n | 'unknown'\n\nexport interface FieldJSON {\n name: string\n type: FieldType\n // A zod format token: 'email' | 'url' | 'ipv4' | 'datetime' | 'safeint' | \u2026\n format?: string\n // Accepts `undefined` / `null`. Recorded separately because they are separate modifiers, and the pipeline's\n // absence policy is derived by PROBING the rebuilt schema rather than by reading these back.\n optional?: true\n nullable?: true\n default?: JsonValue\n checks?: CheckJSON[]\n // enum members, or the literal's own value(s).\n values?: JsonValue[]\n meta?: MetaJSON\n // A schema-level message (`z.email('must be an email')`).\n message?: string\n // type === 'object'\n properties?: FieldJSON[]\n // type === 'array'\n element?: FieldJSON\n /**\n * type === 'union' \u2014 every declared branch, in declaration order.\n *\n * All of them are carried, not just the first. The first decides what the console DRAWS, but the rebuilt\n * schema has to accept everything the author's does: `json/types.ts`'s one-directional invariant is that a\n * decoded schema is never STRICTER than the author's, and encoding one branch would break it \u2014 the form\n * would reject a shape execution accepts.\n */\n options?: FieldJSON[]\n /**\n * type === 'record' \u2014 the schema its VALUES are held to. Keys are not modelled: the runtime only ever\n * walks a record's values (see ../schema/coerce.ts), and a decoded `z.record` therefore accepts any string\n * key, which keeps it no stricter than the author's.\n */\n value?: FieldJSON\n /**\n * What could not cross the wire \u2014 `['check:overwrite']`, `['wrapper:prefault']`, `['format:xyz']`.\n *\n * Functions cannot be serialized, so `.refine()`, `.transform()`, `.trim()` and friends are dropped. The\n * invariant that follows is deliberate and one-directional: **a decoded schema is never STRICTER than the\n * author's**. The console may therefore accept a value the runtime later rejects, but never reject one the\n * runtime would accept \u2014 and the runtime re-validates every invocation, so it stays the authority.\n */\n unsupported?: string[]\n // type === 'object' \u2014 a `z.looseObject()`: keys it does not declare are kept, not stripped. Without it a\n // decoded `.dynamicProps()` field would drop the fields loaded into it.\n loose?: true\n}\n\nexport interface ParamsSchemaJSON {\n // Bumped only for a breaking change to the shapes above. Stored payloads outlive the code that wrote them:\n // a definition is encoded once at deploy time and decoded by whatever console version is live later.\n v: 1\n fields: FieldJSON[]\n}\n\nexport const SCHEMA_JSON_VERSION = 1 as const\n", "import { z } from '../zod'\nimport { applyCheck } from './checks'\nimport { type FieldJSON, type ParamsSchemaJSON, SCHEMA_JSON_VERSION } from './types'\nimport { fromJsonValue } from './values'\n\n// Wire \u2192 zod. Rebuilt through the PUBLIC zod API (and through the FlowRunner-extended `z`, so `.meta()`\n// carries `frWidget` / `frDictionary` / `frLabels` back), which is what makes the result indistinguishable from\n// the author's own schema as far as the pipeline is concerned.\n\ntype AnySchema = { meta?: (value: Record<string, unknown>) => AnySchema }\n\n// A zod factory that takes an optional message, as every one of these does.\ntype Factory = (message?: string) => unknown\n\n/**\n * `format` \u2192 the constructor that produces it.\n *\n * Rebuilt with the real helper rather than as `z.string().regex(...)`, because the pipeline reads the format\n * token back off the schema \u2014 it is what picks the widget and what words an `invalid_format` failure.\n *\n * Guarded with `typeof`, so a token this zod release does not know degrades to a plain string instead of\n * throwing at decode time. Stored payloads outlive the code that wrote them.\n */\nconst FORMAT_FACTORIES: Record<string, Factory | undefined> = {\n url : z.url,\n email : z.email,\n hostname : z.hostname,\n e164 : z.e164,\n emoji : z.emoji,\n uuid : z.uuid,\n guid : z.guid,\n nanoid : z.nanoid,\n cuid : z.cuid,\n cuid2 : z.cuid2,\n ulid : z.ulid,\n xid : z.xid,\n ksuid : z.ksuid,\n base64 : z.base64,\n base64url: z.base64url,\n hex : z.hex,\n jwt : z.jwt,\n ipv4 : z.ipv4,\n ipv6 : z.ipv6,\n cidrv4 : z.cidrv4,\n cidrv6 : z.cidrv6,\n // z.iso.* \u2014 validated STRINGS, unlike the `date` core type below.\n datetime : z.iso?.datetime,\n date : z.iso?.date,\n time : z.iso?.time,\n duration : z.iso?.duration,\n}\n\nfunction decodeString(field: FieldJSON): unknown {\n const factory = field.format ? FORMAT_FACTORIES[field.format] : undefined\n\n return typeof factory === 'function' ? factory(field.message) : z.string(field.message)\n}\n\nfunction decodeBase(field: FieldJSON): unknown {\n switch (field.type) {\n case 'string':\n return decodeString(field)\n\n case 'number':\n // `z.int()` is `z.number()` carrying the `safeint` format, and the pipeline reads that token back.\n return field.format === 'safeint' || field.format === 'int32' ? z.int(field.message) : z.number(field.message)\n\n case 'bigint':\n return z.bigint(field.message)\n\n case 'boolean':\n return z.boolean(field.message)\n\n case 'date':\n return z.date(field.message)\n\n case 'enum':\n return z.enum((field.values ?? []).map(fromJsonValue) as string[], field.message)\n\n case 'literal':\n return z.literal((field.values ?? []).map(fromJsonValue) as (string | number | boolean)[], field.message)\n\n case 'object': {\n const shape = Object.fromEntries((field.properties ?? []).map(inner => [inner.name, decodeField(inner)]))\n\n // A loose object keeps the keys it does not declare \u2014 a `.dynamicProps()` field's loaded fields.\n return field.loose ? z.looseObject(shape) : z.object(shape)\n }\n\n case 'array':\n return z.array((field.element ? decodeField(field.element) : z.unknown()) as never)\n\n // Every branch, so the rebuild accepts everything the author's union does. A single branch would make\n // the console's form stricter than execution, which ./types.ts forbids in that direction.\n case 'union': {\n const options = (field.options ?? []).map(decodeField)\n\n return options.length ? z.union(options as never) : z.unknown()\n }\n\n // Keys are open, as they are in the declaration: only the VALUES were modelled (see ./types.ts), so the\n // rebuild accepts any string key and stays no stricter than the author's.\n case 'record':\n return z.record(z.string(), (field.value ? decodeField(field.value) : z.unknown()) as never)\n\n default:\n // A field the encoder could not model validates nothing rather than rejecting everything \u2014 the\n // decoded schema is never stricter than the author's (see ./types.ts).\n return z.unknown()\n }\n}\n\n/**\n * One field, rebuilt.\n *\n * Order is load-bearing:\n * 1. the base type \u2014 a format helper, not a hand-rolled regex\n * 2. the author's checks \u2014 `.min()`, `.regex()`, \u2026\n * 3. `.meta()` LAST of the three, because a check clones the schema and metadata does not follow the clone\n * 4. the modifiers, canonically: nullable \u2192 optional \u2192 default\n *\n * Step 4's canonical order is why the wire form can record modifiers as flags \u2014 see ./encode.ts.\n */\nexport function decodeField(field: FieldJSON): unknown {\n let schema = decodeBase(field)\n\n for (const check of field.checks ?? []) {\n schema = applyCheck(schema, check, field.type)\n }\n\n if (field.meta) {\n schema = (schema as AnySchema).meta?.(fromJsonValue(field.meta as never) as Record<string, unknown>) ?? schema\n }\n\n const modifiers = schema as {\n nullable: () => typeof modifiers\n optional: () => typeof modifiers\n default: (value: unknown) => typeof modifiers\n }\n\n let wrapped = modifiers\n\n if (field.nullable) {\n wrapped = wrapped.nullable()\n }\n\n if (field.optional) {\n wrapped = wrapped.optional()\n }\n\n if (field.default !== undefined) {\n wrapped = wrapped.default(fromJsonValue(field.default))\n }\n\n return wrapped\n}\n\n/**\n * A whole stored schema, rebuilt as the `z.object` every slot must be. Nothing usable in \u21D2 `undefined` out,\n * which callers already treat as \"this slot declares nothing\".\n *\n * An envelope whose `v` this build does not know is refused rather than read as if it were the current\n * shape. Stored payloads outlive the code that wrote them \u2014 a definition is encoded once at deploy time and\n * decoded by whatever is deployed later \u2014 so a future `v: 2` would otherwise be silently misread field by\n * field. Refusing degrades to \"no schema\" and the caller falls back to the legacy projection, which is the\n * same direction every other loss in this codec takes (see ./types.ts).\n */\nexport function decodeParams(json: ParamsSchemaJSON | null | undefined): unknown {\n if (!json?.fields || json.v !== SCHEMA_JSON_VERSION) {\n return undefined\n }\n\n return z.object(Object.fromEntries(json.fields.map(field => [field.name, decodeField(field)])))\n}\n", "import { type AnyZod, innerOf, inspect, MAX_UNWRAP_DEPTH, shapeEntries, TRANSPARENT_WRAPPERS } from '../schema/introspect'\nimport { encodeChecks, messageOf } from './checks'\nimport { type FieldJSON, type FieldType, type MetaJSON, type ParamsSchemaJSON, SCHEMA_JSON_VERSION } from './types'\nimport { toJsonValue } from './values'\n\n// zod \u2192 wire. Reads the same `_zod.def` internals the rest of the framework reads (see ../schema/introspect).\n\n/**\n * The core types with a wire form of their own.\n *\n * Kept in step with `SUPPORTED_TYPES` (../schema/assert-supported-schema.ts) \u2014 the set registration holds an\n * author to. `any` and `unknown` are supported declarations that deliberately have no form here: they model\n * \"anything\", which is what the `unknown` wire type already means, so they encode to it WITHOUT an\n * `unsupported` breadcrumb (see `problemsFor`).\n */\nconst FIELD_TYPES = new Set<string>([\n 'string', 'number', 'bigint', 'boolean', 'date', 'enum', 'literal', 'object', 'array', 'record',\n])\n\n// `union` is not in FIELD_TYPES: `inspect()` resolves a union to its first branch, so it never arrives as a\n// declared type. It is detected by the branch list instead (see `encodeField`).\nconst UNION_TYPE = 'union' as FieldType\n\n// Declarations whose whole content is \"no constraint\". They encode as `unknown` legitimately, not as a gap.\nconst PASS_THROUGH_TYPES = new Set(['any', 'unknown'])\n\n// Wrappers whose effect the wire form records as a flag, and the one that cannot be recorded at all.\nconst WRAPPERS = new Set(['optional', 'nullable', 'default'])\n\ninterface Unwrapped {\n optional: boolean\n nullable: boolean\n defaultValue: unknown\n hasDefault: boolean\n unsupported: string[]\n}\n\n/**\n * Peel the modifier chain, recording WHICH modifiers were present rather than their order.\n *\n * This walk answers only \"which absence modifiers were declared\". **It does not decide the core type** \u2014\n * `inspect()` does, and `encodeField` reads it from there. Keeping a second opinion on the core here is what\n * let this module fall behind the rest of the framework once already: it kept its own narrower wrapper set,\n * so every declaration the type surface legitimized (`.readonly()`, `.pipe()`, `z.lazy()`, `.nonoptional()`,\n * `z.record()`) still crossed the wire as `unknown` while the published model had it right.\n *\n * Order is safe to lose because the pipeline derives its absence policy by probing the schema for the forms\n * it accepts (see ../schema/field-plan.ts), and the canonical order ./decode.ts rebuilds in preserves that\n * set for every combination \u2014 `.optional().nullable()` and `.nullable().optional()` accept the same things.\n */\nfunction unwrap(schema: AnyZod): Unwrapped {\n const result: Unwrapped = {\n optional: false,\n nullable: false,\n defaultValue: undefined,\n hasDefault: false,\n unsupported: [],\n }\n\n let current: AnyZod | undefined = schema\n // `.nonoptional()` re-asserts a requirement over whatever it wraps \u2014 mirrors ../schema/field-plan.ts.\n let sealed = false\n // The same bound `inspect()` puts on its own peel, for the same reason: a `z.lazy()` whose getter returns\n // another wrapper would unwrap forever, and nothing legitimate nests modifiers anywhere near this deep.\n let depth = 0\n\n while (current?._zod && depth++ < MAX_UNWRAP_DEPTH) {\n const def = current._zod.def ?? {}\n const type = def.type as string\n\n if (type === 'nonoptional') {\n sealed = true\n current = def.innerType as AnyZod\n continue\n }\n\n /**\n * Look STRAIGHT THROUGH the modifiers that say nothing about absence \u2014 the same set `inspect()` and\n * `declaredAbsence` look through.\n *\n * Without this the walk stopped at the first one and lost every flag beneath it:\n * `z.string().optional().readonly()` encoded as a plain required string, so the console rebuilt a schema\n * that DEMANDED a value the runner accepts as absent \u2014 a form that can never be saved, and a violation\n * of the one-directional invariant in ./types.ts. The core type was moved to `inspect()` and this walk\n * was left behind; it is the same drift, one function along.\n */\n if (TRANSPARENT_WRAPPERS.has(type)) {\n current = innerOf(def, type)\n continue\n }\n\n if (sealed) {\n break\n }\n\n if (!WRAPPERS.has(type)) {\n // `.prefault()` runs before parsing rather than in place of an absent value \u2014 a different contract, so\n // it is named as unsupported instead of being flattened into `default`.\n if (type === 'prefault' || type === 'nullish') {\n result.unsupported.push(`wrapper:${ type }`)\n current = def.innerType as AnyZod\n continue\n }\n\n break\n }\n\n if (type === 'optional') {\n result.optional = true\n }\n\n if (type === 'nullable') {\n result.nullable = true\n }\n\n if (type === 'default' && !result.hasDefault) {\n result.hasDefault = true\n result.defaultValue = def.defaultValue\n }\n\n current = def.innerType as AnyZod\n }\n\n return result\n}\n\n/**\n * What the caller knows that the framework cannot: the name of the method that loads a field's\n * `.dynamicProps()`. The framework does not import the runner's naming (it also runs in the browser), so the\n * runner passes it in when it publishes an owner's params.\n */\nexport interface EncodeParamsOptions {\n loaderIdOf?: (fieldName: string) => string\n}\n\n// A `.dynamicProps()` spec still holds the author's `execute` function; a decoded one is already a plain ref.\nfunction isDynamicPropsSpec(value: unknown): value is { dependsOn?: string[]; execute: unknown } {\n return !!value && typeof value === 'object' && typeof (value as { execute?: unknown }).execute === 'function'\n}\n\nfunction hasFunction(value: unknown, depth = 0): boolean {\n if (typeof value === 'function') {\n return true\n }\n\n if (!value || typeof value !== 'object' || depth > MAX_UNWRAP_DEPTH) {\n return false\n }\n\n return Object.values(value as Record<string, unknown>).some(inner => hasFunction(inner, depth + 1))\n}\n\n/**\n * Author metadata, dropping the keys that carry no meaning on the wire. `frLabels` values are declared by the\n * author and may be any JSON; `frDictionary` is a plain ref; `frDynamicProps` is published as the ref\n * `{ id, dependsOn }` of the method that loads the field's inner fields \u2014 its `execute` stays in the runner.\n *\n * A function anywhere else in meta THROWS: `toJsonValue` passes a function through untouched and JSON then\n * drops it silently, so the field would publish without what the function stood for and nobody would notice.\n */\nfunction encodeMeta(meta: Record<string, unknown>, field: string, loaderId?: string): MetaJSON | undefined {\n let source = meta\n\n if (isDynamicPropsSpec(meta.frDynamicProps)) {\n if (!loaderId) {\n throw new Error(`Cannot encode \"${ field }\": its \\`.dynamicProps()\\` has no loader method to publish.`)\n }\n\n source = { ...meta, frDynamicProps: { id: loaderId, dependsOn: meta.frDynamicProps.dependsOn ?? [] } }\n }\n\n if (hasFunction(source)) {\n throw new Error(`Cannot encode \"${ field }\": its metadata holds a function, which has no wire form.`)\n }\n\n const encoded = toJsonValue(source) as MetaJSON\n\n return Object.keys(encoded).length ? encoded : undefined\n}\n\n// `z.looseObject()` keeps the keys it does not declare \u2014 the catchall is `z.unknown()`.\nfunction isLoose(core: AnyZod | undefined): boolean {\n const catchall = core?._zod?.def?.catchall as AnyZod | undefined\n\n return catchall?._zod?.def?.type === 'unknown'\n}\n\n// enum members live in a `{ key: value }` map; a literal keeps its own `values` array.\nfunction encodeValues(core: AnyZod | undefined, type: FieldType): FieldJSON['values'] {\n if (type === 'enum') {\n const entries = (core?._zod?.def?.entries as Record<string, unknown> | undefined) ?? {}\n\n return Object.values(entries).map(toJsonValue)\n }\n\n if (type === 'literal') {\n const values = (core?._zod?.def?.values as unknown[] | undefined) ?? []\n\n return values.map(toJsonValue)\n }\n\n return undefined\n}\n\n/**\n * One declared field \u2192 its wire form.\n *\n * `seen` holds the declarations this field is currently INSIDE \u2014 the ancestors on the walk, not everything\n * already encoded \u2014 so a schema that legitimately appears twice side by side is still encoded twice. It is\n * added before descending and removed after, which makes the check below a cycle test rather than a\n * deduplication.\n */\nexport function encodeField(name: string, schema: AnyZod, seen: Set<unknown> = new Set(), loaderId?: string): FieldJSON {\n /**\n * A self-referential declaration contains itself, so the structural walk below has no bottom.\n *\n * `const Tree = z.lazy(() => z.union([z.string(), z.array(Tree)]))` encodes its union, whose array branch\n * has `Tree` as its element, whose union has an array branch\u2026 \u2014 and since a `z.lazy()` getter REBUILDS its\n * schema on every call, each level allocates a fresh one and the stack is gone in milliseconds. That was\n * FR-3600: a `RangeError` naming no extension, method or parameter, with the extension never registering.\n * The recursion is structural rather than data-driven, so remembering the ancestors is enough to stop it.\n *\n * The wire form has no way to SAY \"and here it is again\" \u2014 ./decode.ts rebuilds a finite schema \u2014 so the\n * repeat is encoded as the pass-through it has to become, with a breadcrumb saying why. Everything above\n * the cycle still crosses intact: `Tree` publishes as the string its first branch declares, and the parts\n * of the declaration that are not recursive keep their own types.\n */\n if (seen.has(schema)) {\n return { name, type: 'unknown', unsupported: ['recursion'] }\n }\n\n seen.add(schema)\n\n const { optional, nullable, defaultValue, hasDefault, unsupported } = unwrap(schema)\n // The core, and the type of it, from the one place that decides that for the whole framework.\n const ins = inspect(schema)\n const core = ins.core\n const declaredType = ins.branches ? UNION_TYPE : ins.resolvedType ?? 'unknown'\n const type = (ins.branches || FIELD_TYPES.has(declaredType) ? declaredType : 'unknown') as FieldType\n // `core` is a union's FIRST BRANCH, so its format/checks/message describe that branch and not the union.\n // Encoding them onto the union node would hand `decodeField` constraints to apply to a `ZodUnion`: today\n // they no-op because a union has no `.min()`, which is luck rather than design \u2014 the first one that did\n // map to a real method would make the rebuild reject what a later branch accepts. The branches carry their\n // own constraints in `options`, which is where they belong.\n const isUnion = !!ins.branches\n const format = isUnion ? undefined : core?._zod?.def?.format as string | undefined\n const { checks, unsupported: checkIssues } = isUnion ? { checks: [], unsupported: [] } : encodeChecks(core)\n const meta = encodeMeta(ins.meta as Record<string, unknown>, name, loaderId)\n const message = isUnion ? undefined : messageOf((core?._zod?.def ?? {}) as { error?: unknown })\n const values = encodeValues(core, type)\n const problems = [...unsupported, ...checkIssues]\n\n // `unknown` reached by a declaration that MEANS \"anything\" is the wire form working, not failing.\n if (type === 'unknown' && !PASS_THROUGH_TYPES.has(declaredType)) {\n problems.push(`type:${ declaredType }`)\n }\n\n const encoded: FieldJSON = {\n name,\n type,\n ...(format ? { format } : {}),\n ...(optional ? { optional: true as const } : {}),\n ...(nullable ? { nullable: true as const } : {}),\n ...(hasDefault ? { default: toJsonValue(defaultValue) } : {}),\n ...(checks.length ? { checks } : {}),\n ...(values?.length ? { values } : {}),\n ...(meta ? { meta } : {}),\n ...(message ? { message } : {}),\n ...(type === 'object' && isLoose(core) ? { loose: true as const } : {}),\n ...(type === 'object' ? { properties: shapeEntries(core).map(([key, inner]) => encodeField(key, inner, seen)) } : {}),\n ...(type === 'array' ? { element: encodeField('', core?._zod?.def?.element as AnyZod, seen) } : {}),\n ...(type === 'record' ? { value: encodeField('', core?._zod?.def?.valueType as AnyZod, seen) } : {}),\n ...(ins.branches ? { options: ins.branches.map(branch => encodeField('', branch, seen)) } : {}),\n ...(problems.length ? { unsupported: problems } : {}),\n }\n\n // Off the walk again: the field is fully encoded, so this declaration is no longer an ancestor of anything.\n seen.delete(schema)\n\n return encoded\n}\n\n/**\n * A whole declared slot \u2192 its wire form. `null` for an undeclared slot, which is legal everywhere: a method\n * with no params publishes no schema rather than an empty one.\n *\n * Takes `unknown` because this is a boundary: callers hold a schema through whichever view they happen to\n * have (`Params.scheme`, an author's `z.object`, a decoded rebuild), and none of those structural views are\n * assignable to each other. Narrowing once here beats a cast at every call site.\n */\nexport function encodeParams(scheme: unknown, options: EncodeParamsOptions = {}): ParamsSchemaJSON | null {\n const schema = scheme as AnyZod | undefined\n\n if (!schema?._zod) {\n return null\n }\n\n return {\n v: SCHEMA_JSON_VERSION,\n fields: shapeEntries(schema).map(([name, field]) => encodeField(name, field, new Set(), options.loaderIdOf?.(name))),\n }\n}\n", "import { InvalidCriteriaError, InvalidMethodInputError, MissingMethodParamError } from '../../errors'\nimport { type FailFn, MethodParams, parseSchema } from '../params'\nimport type { ZodSchema } from '../types'\n\n// One invocation's `methodData`, and the two ways the runner reads it.\n//\n// A method's input is keyed by its declared param names (see the console's execution controller). SYSTEM\n// methods carry a single well-known param, helper methods a `payload`. Pulling one out and validating it are\n// separate failures on purpose:\n// \u2022 the param is absent \u2192 MissingMethodParamError \u2014 the CALL is malformed\n// \u2022 the param's value is invalid \u2192 InvalidMethodInputError \u2014 the VALUE is malformed, with issue paths\n// relative to that param\n// Criteria always fail as InvalidCriteriaError so the console can point at the dependent fields instead of\n// reporting the whole call as broken; the two `invalid*` factories below are how a caller picks which.\n\nexport class MethodInput {\n constructor(\n readonly serviceId: string,\n readonly methodName: string,\n private readonly data: Record<string, unknown> = {}\n ) {}\n\n // Extract a declared param. Absent is loud rather than silently defaulted \u2014 a missing param means a\n // malformed call, and failing here surfaces it at the source.\n require<T>(param: string): T {\n const value = (this.data ?? {})[param]\n\n if (value == null) {\n throw new MissingMethodParamError(this.serviceId, param)\n }\n\n return value as T\n }\n\n /**\n * Extract a declared param and validate its value against the schema that owns it.\n *\n * An OBJECT schema \u2014 every runtime-owned wrapper (`callbackObject`, `invocation`, `payload`) \u2014 goes\n * through the same per-field pipeline every author-declared slot uses, so `.optional()` means one thing\n * everywhere: a blank arrives as absence whether the host sent `null`, `''` or nothing at all.\n *\n * That consistency is the point. While these wrappers were parsed by a bare `safeParse`, `.optional()`\n * rejected `null` here while accepting it everywhere else, and each field had to be remembered as\n * `.nullish()` the first time a host sent a null \u2014 which is how `state` on the OAuth callback stayed\n * broken for a non-PKCE provider, where the console legitimately has no verifier to hand back.\n *\n * `carryUnknown` preserves the passthrough these schemas declare with `z.looseObject`: a host may send\n * fields a given milestone does not model yet, and dropping them silently would be worse.\n */\n parseField<T>(param: string, schema?: ZodSchema): T {\n const value = this.require<unknown>(param)\n const fail = this.invalidInput(param)\n\n // A wrapper that is not an object at all fails as the WRAPPER, not field by field: iterating declared\n // fields over a string would report \"\u00ABSearch\u00BB must be a string\" for a payload that was never an object.\n const isObject = !!value && typeof value === 'object' && !Array.isArray(value)\n\n if (!schema?.shape || !isObject) {\n return parseSchema<T>(schema, value, fail, param)\n }\n\n return MethodParams.of(schema).normalize<Record<string, unknown>>(\n value as Record<string, unknown>,\n fail,\n { carryUnknown: true }\n ) as T\n }\n\n // \u2500\u2500 failure identities, for the slots a caller parses itself \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // `target` names the slot that failed \u2014 a param name, or 'params' / 'triggerData' for the whole input.\n invalidInput(target: string): FailFn {\n return issues => {\n throw new InvalidMethodInputError(this.serviceId, this.methodName, target, issues)\n }\n }\n\n invalidCriteria(): FailFn {\n return issues => {\n throw new InvalidCriteriaError(this.serviceId, this.methodName, issues)\n }\n }\n}\n", "import type { ExecutionContext } from './context/execution-context'\nimport { MethodInput } from './context/method-input'\nimport type { Extension } from './extension'\nimport type { SharedExtensionMethod } from './model/model-types'\n\n// One callable method of an extension. Every kind \u2014 action, dictionary, generated loader, SYSTEM seam \u2014\n// answers the same three questions, which is the whole dispatch and model-build contract:\n//\n// toModel() what the console/flow-engine sees in `methodsMap`\n// validate(input) what this kind accepts, and how a bad call fails\n// execute(params) what running it does\n//\n// So dispatch is a map lookup plus `execute(validate(input))`, and building the definition is one pass over\n// `extension.methods()`. Adding a kind means adding a subclass, not editing a chain of `if`s.\n\nexport abstract class ExtensionMethod {\n constructor(protected readonly extension: Extension) {}\n\n // The published method name \u2014 the key in `methodsMap`, and what the flow engine invokes.\n abstract get name(): string\n\n // The v1 kind token: ACTION | DICTIONARY | POLLING_TRIGGER | REALTIME_TRIGGER | SYSTEM |\n // SAMPLE_RESULT_LOADER | PARAM_SCHEMA_DEFINITION.\n abstract get registerAs(): string\n\n abstract toModel(): SharedExtensionMethod\n\n // Extra OAuth scopes this method needs. Only the author-declared kinds can carry any; the generated\n // loaders and the SYSTEM seams never do.\n get oauth2Scopes(): string[] {\n return []\n }\n\n /**\n * Whether this method appears in the published `methodsMap`. Almost always yes \u2014 but the realtime refresh\n * seam is callable whether or not the author declared a `refresh` handler (the runtime answers `{}` when\n * they did not), while only being ADVERTISED when they did. Callable and advertised are therefore two\n * different questions, and this is the second one.\n */\n get published(): boolean {\n return true\n }\n\n // Turn raw `methodData` into whatever `execute` takes. The default accepts anything \u2014 a kind with no\n // declared input has nothing to check.\n validate(methodData: Record<string, unknown>): unknown {\n return methodData\n }\n\n // May return a promise or a plain value; the caller awaits either way, so a synchronous handler is not\n // forced through an async wrapper.\n abstract execute(params: unknown, ctx: ExecutionContext): unknown\n\n protected input(methodData: Record<string, unknown>): MethodInput {\n return new MethodInput(this.extension.id, this.name, methodData)\n }\n}\n", "// Version-agnostic config constants shared by v1 and v2.\n\nexport type ServiceConfigsValues = Record<string, unknown>\n\nexport const ServiceConfigItemTypes = {\n STRING: 'string',\n BOOL: 'bool',\n DATE: 'date',\n CHOICE: 'choice',\n TEXT: 'text',\n} as const\n\nexport type ServiceConfigItemType = (typeof ServiceConfigItemTypes)[keyof typeof ServiceConfigItemTypes]\n", "import { ServiceConfigItemTypes } from '../../common/constants'\nimport type { ConfigItem } from '../../common/types'\nimport { absenceOf } from '../params/schema/field-plan'\nimport { type AnyZod, deriveWidget, inspect, type Inspected, shapeEntries } from '../params/schema/introspect'\nimport { labelOf } from '../params/schema/labels'\nimport { FlowExtensionParamWidgetTypes } from '../params/widget-types'\nimport type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// One declared field \u2194 one entry of the v1 output model. Every mapping the runner performs on a single zod\n// field lives here; ./params-model.ts iterates a `Params`' declared shape and collects what these return.\n//\n// Where a field's DISPLAY metadata (label / uiComponent / dictionary / dependsOn) ends up depends on its\n// depth, matching the v1 jsdoc-parser layout: a top-level param carries structure only and publishes its\n// display side through `metaInfo.args` (\u2192 fieldToArg), while a nested property inlines both. That is the\n// single `nested` flag below \u2014 the two used to be near-duplicate functions.\n//\n// Display metadata is published EXACTLY as the author wrote it. What a bare `z.email()` should show when the\n// author wrote no label and no description is decided when the field is RENDERED, from the schema the\n// definition now carries (see ../params/schema/defaults.ts) \u2014 so those defaults can be reworded without\n// every service having to be redeployed to pick the change up.\n\n// The description as the console should show it: the author's, or nothing. An empty string is meaningful \u2014\n// it says \"the author documented nothing here\", which is what lets the renderer supply its own default.\nconst descriptionOf = (schema: AnyZod): string =>\n inspect(schema).meta.description || ''\n\n/**\n * Whether the console should mark the field mandatory \u2014 asked of the SAME probe the runtime resolves absence\n * with (see ../params/schema/field-plan.ts), not of the wrapper chain.\n *\n * They are two ways of asking one question, and only one of them is authoritative: the runtime decides what\n * it accepts by parsing, so publishing anything else lets the form demand a value the runner would have let\n * through, or leave optional one it will reject. Reading the same answer is what keeps the two from drifting.\n */\nconst isRequired = (schema: AnyZod): boolean =>\n absenceOf(schema).absence === 'required'\n\n// Whether the field is one of the platform's own param groups \u2014 an object that arrived with a widget token\n// on it, which only ../params/files-options.ts produces.\nconst isParamGroup = (ins: Inspected): boolean =>\n ins.coreType === 'object' && !!ins.meta.frWidget\n\nexport interface FieldToParamOptions {\n nested?: boolean\n}\n\nexport function fieldToParam(name: string, schema: AnyZod, options: FieldToParamOptions = {}): SharedExtensionParam {\n const ins = inspect(schema)\n const widget = deriveWidget(ins)\n\n const param: SharedExtensionParam = {\n name,\n required: isRequired(schema),\n description: descriptionOf(schema),\n type: widget.paramType,\n }\n\n /**\n * A platform param GROUP names itself on the param, at every depth.\n *\n * It is the one piece of `uiComponent` that is not display metadata derived from the field's type \u2014 the\n * rule below, which sends a top-level param's display side to `metaInfo.args`, is about how ONE CONTROL\n * should look. This says what the param IS: the runtime's own file-options object rather than an anonymous\n * `z.object` a service happened to declare (see ../params/files-options.ts). A consumer that walks\n * `bodyParams` alone can act on it, and it survives being nested inside another object.\n *\n * It is published through `metaInfo.args` as well, by `fieldToArg` below, because that is where the flow\n * designer reads a top-level param's `uiComponent` from.\n */\n if (isParamGroup(ins) && widget.uiComponent) {\n param.uiComponent = widget.uiComponent\n }\n\n if (options.nested) {\n param.label = labelOf(name, schema)\n\n if (widget.uiComponent) {\n param.uiComponent = widget.uiComponent\n }\n\n if (ins.meta.frDictionary) {\n param.dictionary = ins.meta.frDictionary.id\n\n if (ins.meta.frDictionary.dependsOn.length) {\n param.dependsOn = ins.meta.frDictionary.dependsOn\n }\n }\n }\n\n if (ins.defaultValue !== undefined) {\n param.defaultValue = ins.defaultValue\n }\n\n if (widget.items) {\n param.items = widget.items\n }\n\n // Only a z.object HAS declared properties. A record publishes as OBJECT too, but its keys are open \u2014 there\n // is no field list to publish, and an empty one would read as \"this object has no fields\".\n if (ins.coreType === 'object') {\n param.properties = propertiesOf(ins.core)\n }\n\n /**\n * A LIST of objects publishes the ELEMENT's fields as the param's own `properties`, next to `items`.\n *\n * That looks redundant next to `items.type` until you see what reads it: the console decides a list is a\n * repeatable row editor rather than a single expression box by testing `paramDefinition.properties` (see\n * flow-builder's `getAvailableStructureTypes`), and then renders one input per entry in it. With only\n * `items: { type: 'OBJECT' }` to go on it has no fields to draw and falls back to one text box \u2014 the\n * author's declared structure is simply invisible.\n *\n * The legacy JSDoc format has always published it this way, so this is the v2 model matching a contract\n * the console already implements rather than a new one.\n */\n if (widget.paramType === 'LIST' && widget.items?.type === 'OBJECT') {\n param.properties = propertiesOf(elementOf(ins.core))\n }\n\n return param\n}\n\n// The element schema of a declared array, past its own modifiers.\nfunction elementOf(arrayCore: AnyZod | undefined): AnyZod | undefined {\n const element = arrayCore?._zod?.def?.element as AnyZod | undefined\n\n return element ? inspect(element).core : undefined\n}\n\n// The nested properties of an OBJECT field \u2014 its core schema's own shape, each mapped in nested form.\nexport function propertiesOf(objectCore: AnyZod | undefined): SharedExtensionParam[] {\n return shapeEntries(objectCore).map(([name, schema]) => fieldToParam(name, schema, { nested: true }))\n}\n\n// The display half of a top-level param: what `metaInfo.args[name]` carries.\nexport function fieldToArg(name: string, schema: AnyZod): SharedExtensionMetaInfoArg {\n const ins = inspect(schema)\n const arg: SharedExtensionMetaInfoArg = { label: labelOf(name, schema) }\n // A LIST's display metadata describes ONE ITEM, not the list: the console renders a repeatable editor and\n // draws each entry with this control. So `z.array(z.enum([\u2026]))` advertises the element's dropdown, and\n // `z.array(z.string().dictionary(ref))` advertises the element's dictionary \u2014 which is what the console\n // has always expected here, and what makes a list of choices a list of choices rather than a text box.\n const display = ins.coreType === 'array' ? elementDisplay(ins) : ins\n const widget = deriveWidget(display)\n\n if (display.meta.frDictionary) {\n arg.dictionary = display.meta.frDictionary.id\n\n if (display.meta.frDictionary.dependsOn.length) {\n arg.dependsOn = display.meta.frDictionary.dependsOn\n }\n }\n\n if (widget.uiComponent) {\n arg.uiComponent = widget.uiComponent\n }\n\n return arg\n}\n\n/**\n * What a list should ADVERTISE: its element's declaration, falling back to the list's own.\n *\n * The fallback matters for `z.array(z.string()).dictionary(ref)` \u2014 binding the list rather than the element\n * reads just as naturally to an author, and both forms mean the same thing.\n */\nfunction elementDisplay(list: Inspected): Inspected {\n const element = list.core?._zod?.def?.element as AnyZod | undefined\n const inspected = element ? inspect(element) : undefined\n\n if (!inspected) {\n return list\n }\n\n return inspected.meta.frDictionary || deriveWidget(inspected).uiComponent\n ? inspected\n : { ...inspected, meta: { ...inspected.meta, ...list.meta } }\n}\n\n// \u2500\u2500 config items \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nfunction toConfigType(coreType: string, frWidget?: string): ConfigItem['type'] {\n if (coreType === 'boolean') {\n return ServiceConfigItemTypes.BOOL\n }\n\n if (coreType === 'date') {\n return ServiceConfigItemTypes.DATE\n }\n\n if (coreType === 'enum') {\n return ServiceConfigItemTypes.CHOICE\n }\n\n if (frWidget === FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT) {\n return ServiceConfigItemTypes.TEXT\n }\n\n return ServiceConfigItemTypes.STRING\n}\n\n// A config field \u2192 the v1 `ConfigItem` the console renders. `.shared()` marks it global rather than per-app.\nexport function fieldToConfigItem(name: string, schema: AnyZod): ConfigItem {\n const ins = inspect(schema)\n\n return {\n name,\n type: toConfigType(ins.coreType, ins.meta.frWidget),\n shared: !!ins.meta.frShared,\n required: isRequired(schema),\n description: descriptionOf(schema),\n label: labelOf(name, schema),\n defaultValue: ins.defaultValue,\n options: ins.coreType === 'enum' ? ((ins.core.options as string[]) ?? []) : [],\n }\n}\n\n", "import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// Shared pieces of the v1 method model \u2014 the shapes several kinds emit identically.\n\n// Every helper-route method (dictionaries, the generated loaders, and the OAuth/trigger SYSTEM methods) is\n// invoked with a single wrapper param \u2014 `payload` or `invocation` \u2014 via the console's helper-method route.\n// The method itself carries no per-field model params, so its input scheme is just that wrapper.\nexport function opaqueParam(name: string, type = 'OBJECT'): SharedExtensionParam {\n return { name, required: false, description: '', type }\n}\n\n// Describe a method's params in `metaInfo.args` (mirroring how actions describe theirs) so the method\n// advertises a labelled input instead of an empty `args` \u2014 consumers (AI tools, the console UI) rely on it.\nexport function argsFromParams(params: SharedExtensionParam[]): Record<string, SharedExtensionMetaInfoArg> {\n const args: Record<string, SharedExtensionMetaInfoArg> = {}\n\n for (const param of params) {\n const arg: SharedExtensionMetaInfoArg = { label: param.label ?? param.name }\n\n if (param.uiComponent) {\n arg.uiComponent = param.uiComponent\n }\n\n if (param.dictionary) {\n arg.dictionary = param.dictionary\n }\n\n if (param.dependsOn) {\n arg.dependsOn = param.dependsOn\n }\n\n args[param.name] = arg\n }\n\n return args\n}\n", "import type { ConfigItem } from '../../common/types'\nimport type { ConfigParams, MethodParams, Params } from '../params'\nimport { fieldToArg, fieldToConfigItem, fieldToParam, propertiesOf } from './field-mapper'\nimport { opaqueParam } from './method-model'\nimport type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// The v1 output model of a declared schema \u2014 `bodyParams`, `metaInfo.args`, `ConfigItem[]`.\n//\n// These are free functions rather than methods on `Params` on purpose: the params framework is consumed by\n// the console as well as the runner (it renders and validates the same schemas in the browser), and the v1\n// console model is meaningless there. So the framework describes a schema, and this module \u2014 which belongs\n// to the runner's output model \u2014 projects that description into the shapes v1 consumers expect.\n\n// Top-level params: structure only. Display metadata is published through `toArgs()`.\nexport function toBodyParams(params: MethodParams): SharedExtensionParam[] {\n return params.fields().map(([name, schema]) => fieldToParam(name, schema))\n}\n\n// `metaInfo.args` \u2014 the display half of the same fields.\nexport function toArgs(params: MethodParams): Record<string, SharedExtensionMetaInfoArg> {\n return Object.fromEntries(params.fields().map(([name, schema]) => [name, fieldToArg(name, schema)]))\n}\n\n/**\n * Top-level params rendered OPAQUELY: one entry per declared key, typed from its schema, with no recursion\n * into nested properties and nothing ever marked required.\n *\n * This is the SYSTEM seam's model shape. Those methods are invoked by the runtime with a whole invocation\n * object, never through a rendered form, so publishing their internals would be noise \u2014 and the v1 seam they\n * must stay compatible with declares them exactly this way.\n */\nexport function toOpaqueBodyParams(params: MethodParams): SharedExtensionParam[] {\n return params.fields().map(([name, schema]) => opaqueParam(name, fieldToParam(name, schema).type))\n}\n\n// The same fields as NESTED properties: display metadata inlined on each one. Used where the schema\n// describes the inside of a wrapper param rather than a method's top level (e.g. a dictionary's `criteria`\n// inside its `payload`).\nexport function toProperties(params: Params): SharedExtensionParam[] {\n return propertiesOf(params.scheme as Parameters<typeof propertiesOf>[0])\n}\n\n// The config descriptions the console renders. `.shared()` fields are marked shared (\u2192\n// sharedConfigDescriptions downstream); the rest are per-app.\nexport function toConfigItems(config: ConfigParams): ConfigItem[] {\n return config.fields().map(([name, schema]) => fieldToConfigItem(name, schema))\n}\n", "import { sampleResultLoaderName } from './loaders/loader-owner'\nimport type { SharedExtensionMetaInfo } from './model/model-types'\nimport type { MethodParams } from './params'\n\n// A declared `result`. Not a schema slot \u2014 it is a UNION zod cannot represent (a literal sample value, a zod\n// schema carrying `.example()`, or a loader fn that derives the sample from the current params), so it gets\n// its own wrapper rather than living in ../params.ts.\n//\n// It answers two questions for every owner (actions, both trigger kinds, dictionaries): what `returnType`\n// the method publishes, and where its sample comes from \u2014 an inline `sampleResult`, or a generated\n// SAMPLE_RESULT_LOADER method the console calls with the params filled in so far.\n\n// The loader is called with the owner's handler bag plus the current params.\ntype LoaderFn = (bag: object) => unknown\n\nfunction inferReturnType(value: unknown): string {\n if (Array.isArray(value)) {\n return 'LIST'\n }\n\n if (value && typeof value === 'object') {\n return 'OBJECT'\n }\n\n if (typeof value === 'string') {\n return 'STRING'\n }\n\n return 'VOID'\n}\n\nfunction isZodSchema(value: unknown): boolean {\n return !!value && typeof value === 'object' && '_zod' in (value as Record<string, unknown>)\n}\n\n// A zod `result` carries its sample in `.example(...)` \u2192 native `meta.examples`; the last one wins.\nfunction schemaExample(schema: { meta?: () => { examples?: unknown[] } | undefined }): unknown {\n const examples = typeof schema.meta === 'function' ? schema.meta()?.examples : undefined\n\n return examples && examples.length ? examples[examples.length - 1] : null\n}\n\nexport class ResultSpec {\n static from(result: unknown): ResultSpec {\n return new ResultSpec(result)\n }\n\n private constructor(private readonly declared: unknown) {}\n\n // The sample is not knowable statically \u2014 it comes from a generated loader method instead.\n get isLoader(): boolean {\n return typeof this.declared === 'function'\n }\n\n get returnType(): string {\n if (this.isLoader || isZodSchema(this.declared)) {\n return 'OBJECT'\n }\n\n return inferReturnType(this.declared)\n }\n\n // Whether anything was declared at all \u2014 a dictionary with no `result` still publishes OBJECT.\n get isDeclared(): boolean {\n return this.declared !== undefined\n }\n\n // The inline sample, or null when there is none (loader form, or an undeclared result).\n #sampleResult(): unknown {\n if (this.isLoader) {\n return null\n }\n\n if (isZodSchema(this.declared)) {\n return schemaExample(this.declared as { meta?: () => { examples?: unknown[] } | undefined })\n }\n\n return this.declared ?? null\n }\n\n // The `metaInfo` halves that describe the output. In loader form the sample is replaced by a reference to\n // the generated method, which depends on every param of its owner (any of them can change the shape).\n toMetaInfo(ownerId: string, params: MethodParams): Pick<SharedExtensionMetaInfo, 'sampleResult' | 'sampleResultLoader'> {\n if (this.isLoader) {\n return {\n sampleResult: null,\n sampleResultLoader: { methodName: sampleResultLoaderName(ownerId), dependsOn: params.keys() },\n }\n }\n\n return { sampleResult: this.#sampleResult(), sampleResultLoader: null }\n }\n\n // Run the loader form against a handler bag carrying the current params.\n async runLoader(bag: object): Promise<unknown> {\n return (this.declared as LoaderFn)(bag)\n }\n}\n", "import { InvalidSchemaError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { dynamicParamsLoaderName, dynamicPropsLoaderName, type ParamsLoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMetaInfo, SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, inspect, MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport type { ActionProps, DynamicPropsDef } from '../types'\n\n// An action \u2014 the primary operation a service exposes (07-actions.md). Its `params` are the method input\n// itself, keyed by param name, and its handler receives them already parsed.\n\nexport class ActionMethod extends ExtensionMethod implements ParamsLoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n readonly dynamicParams?: DynamicPropsDef\n\n constructor(extension: Extension, private readonly props: ActionProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, { serviceId: extension.id, kind: 'action', itemId: props.id, slot: 'params' })\n this.result = ResultSpec.from(props.result)\n this.dynamicParams = props.dynamicParams ? this.#checkDynamicParams(props.dynamicParams) : undefined\n }\n\n /**\n * `dynamicParams` takes the same `{ dependsOn, execute }` as `.dynamicProps()`. The old\n * `{ criteria, resolve }` shape is refused by name, so a service written against it fails at load with the\n * fix rather than publishing a loader that never runs.\n */\n #checkDynamicParams(def: DynamicPropsDef): DynamicPropsDef {\n const source = { serviceId: this.extension.id, kind: 'action', itemId: this.props.id, slot: 'dynamicParams' }\n const fail = (message: string, received: unknown): never => {\n throw new InvalidSchemaError(`[flow-extension:${ this.extension.id }] action \"${ this.props.id }\": ${ message }`, { ...source, received })\n }\n const legacy = def as unknown as { criteria?: unknown; resolve?: unknown }\n\n if (legacy.resolve !== undefined || legacy.criteria !== undefined) {\n fail(\n '`dynamicParams: { criteria, resolve }` has been replaced by `dynamicParams: { dependsOn, execute }` \u2014 ' +\n 'name the params it depends on and return the loaded fields from `execute`. ' +\n 'e.g. dynamicParams: { dependsOn: [\\'tableName\\'], execute: async ({ criteria }) => ({ name: z.string() }) }',\n 'criteria/resolve'\n )\n }\n\n if (typeof def.execute !== 'function') {\n fail('`dynamicParams` needs an `execute` function that returns the loaded params.', typeof def.execute)\n }\n\n if (def.dependsOn !== undefined && (!Array.isArray(def.dependsOn) || def.dependsOn.some(item => typeof item !== 'string'))) {\n fail('`dynamicParams.dependsOn` must be an array of param names.', def.dependsOn)\n }\n\n const declared = this.params.keys()\n\n for (const dependency of def.dependsOn ?? []) {\n if (!declared.includes(dependency)) {\n fail(\n `\\`dynamicParams\\` depends on \"${ dependency }\", which the action does not declare in \\`params\\`. ` +\n `Declared: ${ declared.join(', ') || 'none' }.`,\n dependency\n )\n }\n }\n\n return def\n }\n\n /**\n * The top-level params declared with `.dynamicProps()`, and the def each one carries. Placement and shape\n * were checked when `params` was built (see ../params/schema/assert-supported-schema.ts).\n */\n dynamicPropsFields(): [name: string, def: DynamicPropsDef][] {\n return this.params.fields().flatMap(([name, schema]) => {\n const def = inspect(schema).meta.frDynamicProps\n\n // A decoded ref (`{ id, dependsOn }`) has no handler to run; anything else was checked to be a spec\n return def && !(typeof (def as { id?: unknown }).id === 'string' && !('execute' in def))\n ? [[name, def as DynamicPropsDef] as [string, DynamicPropsDef]]\n : []\n })\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'ACTION'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n hasDynamicParams(): boolean {\n return !!this.props.dynamicParams\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Normalize, coerce and validate against the declared `params` \u2014 the same pipeline every other declared\n * slot uses, so an author expresses optionality in the schema and nowhere else.\n *\n * An action with `dynamicParams` carries the input's undeclared keys through, since its loaded top-level\n * fields are not in the static schema. A `.dynamicProps()` field needs nothing here: it is a loose object,\n * which keeps the loaded keys inside it.\n */\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n return this.params.normalize<Record<string, unknown>>(\n methodData,\n this.input(methodData).invalidInput('params'),\n { carryUnknown: this.hasDynamicParams() }\n )\n }\n\n execute(params: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.props.execute(ctx.bagWith({ params }))\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n const args = toArgs(this.params)\n const metaInfo: SharedExtensionMetaInfo = {\n args,\n ...this.result.toMetaInfo(this.id, this.params),\n }\n\n // The Flow Builder loads a param's inner fields from `args[name].schemaLoader` \u2014 the key v1 uses for the\n // same thing, so both render through one path.\n for (const [name, def] of this.dynamicPropsFields()) {\n args[name] = { ...args[name], schemaLoader: dynamicPropsLoaderName(this.id, name), dependsOn: def.dependsOn ?? [] }\n }\n\n if (this.dynamicParams) {\n metaInfo.dynamicParams = {\n methodName: dynamicParamsLoaderName(this.id),\n dependsOn: this.dynamicParams.dependsOn ?? [],\n }\n }\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme, { loaderIdOf: name => dynamicPropsLoaderName(this.id, name) }),\n metaInfo,\n }\n }\n}\n", "import BLRequest from 'backendless-request'\n\nexport const FileScope = {\n WORKSPACE: 'WORKSPACE',\n FLOW: 'FLOW',\n EXECUTION: 'EXECUTION',\n} as const\n\nexport type FileScope = (typeof FileScope)[keyof typeof FileScope]\n\n// The scope namespace as handlers receive it (`filesScope` in the bag), so author code names a layer instead\n// of spelling the string: `files.list({ scope: filesScope.WORKSPACE })`.\nexport type FileScopes = typeof FileScope\n\ntype FileScopePath = 'workspace' | 'flow' | 'execution'\n\nfunction toScopePath(scope: FileScope): FileScopePath {\n return scope.toLowerCase() as FileScopePath\n}\n\ntype CollectionFn = (flowId: string | null, executionId: string | null) => string\ntype FileFn = (filename: string, flowId: string | null, executionId: string | null) => string\n\nconst collectionPathByScope: Record<FileScopePath, CollectionFn> = {\n workspace: () => '/workspace',\n flow: flowId => {\n if (!flowId) {\n throw new Error('Flow scope requires flowId')\n }\n\n return `/flow/${ flowId }`\n },\n execution: (flowId, executionId) => {\n if (!flowId || !executionId) {\n throw new Error('Execution scope requires flowId and executionId')\n }\n\n return `/flow/${ flowId }/execution/${ executionId }`\n },\n}\n\nconst filePathByScope: Record<FileScopePath, FileFn> = {\n workspace: filename => `/workspace/${ filename }`,\n flow: (filename, flowId) => {\n if (!flowId) {\n throw new Error('Flow scope requires flowId')\n }\n\n return `/flow/${ flowId }/${ filename }`\n },\n execution: (filename, flowId, executionId) => {\n if (!flowId || !executionId) {\n throw new Error('Execution scope requires flowId and executionId')\n }\n\n return `/flow/${ flowId }/execution/${ executionId }/${ filename }`\n },\n}\n\nexport interface FlowrunnerContextFilesOptions {\n serverURL: string\n appId: string\n apiKey: string\n //\n runtimeKey: string\n //\n flowId?: string | null\n executionId?: string | null\n //\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n}\n\nexport interface UploadFileOptions {\n scope?: FileScope\n filename?: string\n ttl?: number\n generateUrl?: boolean\n objectTtl?: number\n overwrite?: boolean\n}\n\nexport interface ListOptions {\n scope?: FileScope\n ttl?: number\n generateUrl?: boolean\n limit?: number\n cursor?: string\n}\n\nexport interface GetOptions {\n scope?: FileScope\n ttl?: number\n generateUrl?: boolean\n}\n\nexport interface DeleteOptions {\n scope?: FileScope\n}\n\nexport interface UploadResult {\n key: string\n filename: string\n url: string\n size: number\n urlExpiresAt: string\n objectExpiresAt: string | null\n overwritten: boolean\n}\n\nexport interface FileInfo {\n key: string\n filename: string\n url: string\n size: number\n createdAt: string\n urlExpiresAt: string\n objectExpiresAt: string | null\n}\n\nexport interface ListResult {\n files: FileInfo[]\n cursor: string | null\n hasMore: boolean\n}\n\nexport interface DeleteResult {\n key: string\n freedBytes: number\n deleted: boolean\n}\n\nexport interface UsageResult {\n workspaceId: string\n usedBytes: number\n quotaBytes: number\n usedFormatted: string\n quotaFormatted: string\n utilizationPercent: number\n fileCount: number\n}\n\n// The file-service contract as HANDLERS see it (`ctx.files`) \u2014 the five methods, nothing about transport.\n// `FlowrunnerContextFiles` below is the implementation that talks to the console; a host may supply its\n// own via `runServiceMethod({ createFiles })`, which is how an e2e harness points file storage at a local\n// S3 without the runner knowing. Keep this in step with the class.\nexport interface FilesApi {\n uploadFile(file: Buffer | Uint8Array, options?: UploadFileOptions): Promise<UploadResult>\n list(options?: ListOptions): Promise<ListResult>\n get(filename: string, options?: GetOptions): Promise<FileInfo>\n delete(filename: string, options?: DeleteOptions): Promise<DeleteResult>\n usage(): Promise<UsageResult>\n}\n\nfunction cleanParams(params: Record<string, unknown>): Record<string, unknown> {\n return Object.fromEntries(\n Object.entries(params).filter(([, v]) => v !== undefined && v !== null)\n )\n}\n\n// Minimal shape of the node `form-data` instance BLRequest.FormData produces at\n// runtime \u2014 its append(name, value, options) signature differs from the DOM type.\ntype MultipartForm = {\n append: (name: string, value: unknown, options?: { filename?: string }) => void\n}\n\nfunction appendFormParams(form: MultipartForm, params: Record<string, unknown>): void {\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null) {\n form.append(key, String(value))\n }\n }\n}\n\nexport class FlowrunnerContextFiles implements FilesApi {\n appId: string\n apiKey: string\n runtimeKey: string\n serverURL: string\n flowId: string | null\n executionId: string | null\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n\n constructor({\n appId,\n apiKey,\n runtimeKey,\n serverURL,\n flowId,\n executionId,\n retrieveNewS3Token,\n }: FlowrunnerContextFilesOptions) {\n this.appId = appId\n this.apiKey = apiKey\n this.runtimeKey = runtimeKey\n this.serverURL = serverURL\n this.flowId = flowId ?? null\n this.executionId = executionId ?? null\n\n this.retrieveNewS3Token = retrieveNewS3Token\n }\n\n get base(): string {\n return `${ this.serverURL }/${ this.appId }/${ this.apiKey }/v1/files`\n }\n\n private collectionPath(scope: FileScopePath): string {\n return this.base + collectionPathByScope[scope](this.flowId, this.executionId)\n }\n\n private filePath(filename: string, scope: FileScopePath): string {\n return this.base + filePathByScope[scope](encodeURIComponent(filename), this.flowId, this.executionId)\n }\n\n private async resolveFilesS3Token(): Promise<string> {\n const { filesS3Token } = await this.retrieveNewS3Token(this.runtimeKey)\n\n return filesS3Token\n }\n\n private async request<T>(method: string, url: string, body?: unknown, params?: Record<string, unknown>): Promise<T> {\n const token = await this.resolveFilesS3Token()\n\n const httpMethod = method.toLowerCase() as 'get' | 'post' | 'put' | 'patch' | 'delete'\n\n let req = BLRequest[httpMethod](url)\n .set('Authorization', `Bearer ${ token }`)\n\n if (params) {\n req = req.query(cleanParams(params))\n }\n\n // `.form()` returns a chainable request; `.send()` returns a promise directly.\n // The request instance is itself thenable, so returning it awaits the response.\n if (BLRequest.FormData && body instanceof BLRequest.FormData) {\n return req.form(body as unknown as Record<string, unknown>) as unknown as Promise<T>\n }\n\n if (body) {\n return req.send(body) as Promise<T>\n }\n\n return req as unknown as Promise<T>\n }\n\n async uploadFile(file: Buffer | Uint8Array, options: UploadFileOptions = {}): Promise<UploadResult> {\n const { scope = FileScope.FLOW, filename, ttl, generateUrl = true, objectTtl, overwrite } = options\n const scopePath = toScopePath(scope)\n\n // BLRequest.FormData is the node `form-data` instance at runtime (see MultipartForm) \u2014\n // cast to that shape to append a Buffer + filename.\n const form = new BLRequest.FormData!() as unknown as MultipartForm\n\n form.append('file', Buffer.from(file), { filename: filename ?? 'file' })\n appendFormParams(form, { filename, ttl, generateUrl, objectTtl, overwrite })\n\n return this.request<UploadResult>('POST', this.collectionPath(scopePath), form)\n }\n\n async list(options: ListOptions = {}): Promise<ListResult> {\n const { scope = FileScope.FLOW, ttl, generateUrl, limit, cursor } = options\n const scopePath = toScopePath(scope)\n\n return this.request<ListResult>('GET', this.collectionPath(scopePath), undefined, cleanParams({\n ttl,\n generateUrl,\n limit,\n cursor,\n }))\n }\n\n async get(filename: string, options: GetOptions = {}): Promise<FileInfo> {\n const { scope = FileScope.FLOW, ttl, generateUrl } = options\n const scopePath = toScopePath(scope)\n\n return this.request<FileInfo>('GET', this.filePath(filename, scopePath), undefined, cleanParams({\n ttl,\n generateUrl,\n }))\n }\n\n async delete(filename: string, options: DeleteOptions = {}): Promise<DeleteResult> {\n const { scope = FileScope.FLOW } = options\n\n return this.request<DeleteResult>('DELETE', this.filePath(filename, toScopePath(scope)))\n }\n\n async usage(): Promise<UsageResult> {\n return this.request<UsageResult>('GET', `${ this.collectionPath('workspace') }/usage`)\n }\n}\n", "import type { Logger } from '../types'\n\n// Default runtime logger handed to service handlers as `logger`. Service code uses `logger.debug/info`\n// for redacted tracing; only warn/error surface to the console by default (matching the no-bare-console\n// policy). A host can supply its own Logger to route these elsewhere.\n \nexport const defaultLogger: Logger = {\n debug: () => {},\n info: () => {},\n warn: (...args: unknown[]) => console.warn(...args),\n error: (...args: unknown[]) => console.error(...args),\n}\n \n", "import { FeatureNotEnabledError } from '../../errors'\n\n// Throwing proxies for opt-in features (oauth / files). When a feature isn't enabled, its slot in the\n// handler bag is a proxy that throws on ANY access \u2014 so accidental use fails loudly at the call site\n// instead of silently no-op'ing or reading `undefined`. See 10-files-api.md and 06-oauth2.md.\n\nexport function createThrowingProxy(feature: string, hint: string): Record<string, never> {\n const fail = (): never => {\n throw new FeatureNotEnabledError(feature, hint)\n }\n\n return new Proxy(\n {},\n {\n get(_target, prop) {\n // Let promise-unwrapping / stringification probe the proxy without throwing.\n if (prop === 'then' || prop === Symbol.toPrimitive || prop === Symbol.toStringTag) {\n return undefined\n }\n\n return fail()\n },\n apply: fail,\n has: fail,\n }\n ) as Record<string, never>\n}\n", "import type { ServiceConfigsValues } from '../../common/constants'\nimport { type FilesApi,FileScope, type FileScopes } from '../../common/context-files'\nimport type { Extension } from '../extension'\nimport type { OAuthBag } from '../oauth/types'\nimport type { HandlerBag, Logger } from '../types'\nimport { defaultLogger } from './logger'\nimport { createThrowingProxy } from './proxies'\n\n// One invocation's resolved surroundings, and the `bag` handlers see (07-actions.md): the resolved `config`,\n// the `initContext` return as `context`, `oauth`, the bound `apiRequest`, `files`, `filesScope`, `logger`,\n// and `helpers`.\n//\n// Everything is derived LAZILY and memoized per instance. That matters because the OAuth callback needs a\n// second context bound to the freshly-obtained token (`withAccessToken`), and used to rebuild the whole bag\n// from scratch each time it asked \u2014 resolving config, running `initContext` and re-running the `helpers`\n// factory up to three times per callback. Now each context resolves each of those once, and a differently\n// tokened context is an explicit second instance rather than an implicit rebuild.\n//\n// `toBag()` returns a PLAIN OBJECT. Author code never receives a class instance \u2014 that is the frozen\n// handler contract.\n\nexport interface ExecutionContextOptions {\n configs?: ServiceConfigsValues\n accessToken?: string\n logger?: Logger\n // Provisioned by the caller only when the extension declares `usesFileStorage`; otherwise the bag's\n // `files` slot is a proxy that throws on any access.\n files?: unknown\n}\n\nexport class ExecutionContext {\n readonly #extension: Extension\n readonly #options: ExecutionContextOptions\n\n #config?: Record<string, unknown>\n #context?: unknown\n #oauth?: OAuthBag\n #apiRequest?: HandlerBag['apiRequest']\n #bag?: HandlerBag\n\n constructor(extension: Extension, options: ExecutionContextOptions = {}) {\n this.#extension = extension\n this.#options = options\n }\n\n get logger(): Logger {\n return this.#options.logger ?? defaultLogger\n }\n\n get config(): Record<string, unknown> {\n this.#config ??= this.#extension.config.resolve(this.#options.configs)\n\n return this.#config\n }\n\n // The header access token plus its deserialized composite payload \u2014 or a throwing proxy when the\n // extension never declared oauth, so accidental use fails loudly at the call site.\n get oauth(): OAuthBag {\n this.#oauth ??= this.#extension.oauth\n ? this.#extension.oauth.buildBag(this.#options.accessToken)\n : (createThrowingProxy('oauth', 'declare ext.setupOauth2(...) first') as OAuthBag)\n\n return this.#oauth\n }\n\n // The scope names, so a handler writes `filesScope.WORKSPACE` instead of the bare string. Deliberately NOT\n // gated on `usesFileStorage`: it is a set of constants, not a capability, and it is useful for building a\n // scope value to pass around even where no file call happens. Reaching for `files` without the opt-in still\n // fails loudly on its own.\n get filesScope(): FileScopes {\n return FileScope\n }\n\n // The proxy stands in for the real client and throws on ANY access, so handlers see one type either way.\n get files(): FilesApi {\n return (this.#props.usesFileStorage && this.#options.files\n ? this.#options.files\n : createThrowingProxy('files', 'set usesFileStorage:true in createExtension first')) as FilesApi\n }\n\n get context(): unknown {\n this.#context ??= this.#props.initContext\n ? this.#props.initContext({ config: this.config, oauth: this.oauth })\n : {}\n\n return this.#context\n }\n\n // The author's own `apiRequest`, with `context` + `logger` injected so handlers don't pass them. Both are\n // read at CALL time, off this context.\n get apiRequest(): HandlerBag['apiRequest'] {\n if (!this.#props.apiRequest) {\n return undefined as unknown as HandlerBag['apiRequest']\n }\n\n this.#apiRequest ??= ((arg: Record<string, unknown>) =>\n (this.#props.apiRequest as (a: unknown) => unknown)({\n ...arg,\n context: this.context,\n logger: this.logger,\n })) as HandlerBag['apiRequest']\n\n return this.#apiRequest\n }\n\n // The bag every handler receives. Memoized: one bag per context, so the `helpers` factory runs once.\n toBag(): HandlerBag {\n if (this.#bag) {\n return this.#bag\n }\n\n const bag = {\n config: this.config,\n context: this.context,\n oauth: this.oauth,\n apiRequest: this.apiRequest,\n files: this.files,\n filesScope: this.filesScope,\n logger: this.logger,\n } as HandlerBag\n\n // Published before `helpers` is attached: the factory receives the bag it is about to complete, and\n // anything it captures sees the finished object.\n this.#bag = bag\n bag.helpers = this.#props.helpers ? this.#props.helpers(bag) : undefined\n\n return bag\n }\n\n // A handler's bag plus whatever its kind adds \u2014 `params`, `criteria`, `providerEventData`, \u2026 Always a\n // fresh object, so a handler cannot mutate the shared bag.\n bagWith<T extends object>(extra: T): HandlerBag & T {\n return { ...this.toBag(), ...extra }\n }\n\n // A sibling context bound to a different access token \u2014 the OAuth callback runs its identity lookup\n // against the token it just obtained. Everything else (config source, files client, logger) is shared.\n withAccessToken(accessToken?: string): ExecutionContext {\n return new ExecutionContext(this.#extension, { ...this.#options, accessToken })\n }\n\n get #props() {\n return this.#extension.props\n }\n}\n", "import { z } from '../params'\n\n// The console's helper-method route invokes a dictionary with `methodData = { payload }`, where the payload\n// is `{ search, cursor, criteria }`: `search` and `cursor` are universal (the runtime always provides them),\n// `criteria` carries the current values of the params this dictionary depends on. LOOSE, like every wrapper\n// the runtime owns \u2014 unmodelled fields ride through rather than being silently dropped.\nexport const DictionaryPayloadSchema = z.looseObject({\n search: z.string().optional(),\n cursor: z.union([z.string(), z.number()]).nullish(),\n criteria: z.record(z.string(), z.unknown()).optional(),\n})\n\nexport interface DictionaryPayload {\n search?: string\n cursor?: unknown\n criteria: Record<string, unknown>\n}\n", "import { InvalidDictionaryOutputScheme } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod, SharedExtensionParam } from '../model/model-types'\nimport { toProperties } from '../model/params-model'\nimport { MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport type { DictionaryProps, DictionaryResult } from '../types'\nimport { type DictionaryPayload, DictionaryPayloadSchema } from './payload-schema'\n\n// A dictionary \u2014 the dynamic option source behind a param (05-dictionaries.md). Invoked through the\n// console's helper-method route while a user fills a form, and answers `{ items, cursor }`.\n\nexport class DictionaryMethod extends ExtensionMethod {\n readonly criteria: MethodParams\n readonly result: ResultSpec\n\n constructor(extension: Extension, private readonly props: DictionaryProps) {\n super(extension)\n\n this.criteria = MethodParams.of(props.criteria, {\n serviceId: extension.id,\n kind: 'dictionary',\n itemId: props.id,\n slot: 'criteria',\n })\n this.result = ResultSpec.from(props.result)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'DICTIONARY'\n }\n\n // Optional on a dictionary (unlike an action), so `''` when undeclared. Also satisfies `LoaderOwner`, so a\n // generated loader inherits it the same way an action's does.\n get category(): string {\n return this.props.category ?? ''\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // The params a dictionary-bound field depends on \u2014 derived from the criteria, never hand-written.\n get dependsOn(): string[] {\n return this.criteria.keys()\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Two-stage: the `{ search, cursor, criteria }` envelope the runtime owns, then the author-declared\n // criteria through the shared pipeline \u2014 reported as a criteria failure so the console can point at the\n // dependent fields rather than the whole call.\n validate(methodData: Record<string, unknown>): DictionaryPayload {\n const input = this.input(methodData)\n const payload = input.parseField<DictionaryPayload>('payload', DictionaryPayloadSchema)\n const criteria = this.criteria.normalize<Record<string, unknown>>(payload.criteria, input.invalidCriteria())\n\n return {\n search: payload.search,\n cursor: payload.cursor,\n criteria,\n }\n }\n\n // Authors may answer with the bare item list; the runtime contract is `{ cursor, items }`.\n async execute(payload: DictionaryPayload, ctx: ExecutionContext): Promise<DictionaryResult> {\n const result = await this.props.execute(ctx.bagWith(payload))\n\n if (Array.isArray(result)) {\n return { cursor: null, items: result }\n }\n\n if (result && typeof result === 'object' && Array.isArray(result.items)) {\n return { cursor: result.cursor, items: result.items }\n }\n\n throw new InvalidDictionaryOutputScheme(this.extension.id, this.name)\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n // Dictionaries are surfaced to the UI and to AI tools, so they need a human label. Fall back to the id.\n operationName: this.props.label ?? this.id,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart,\n colorEnd,\n customIcon: '',\n // A dictionary returns a `{ items, cursor }` OBJECT; default to OBJECT when no explicit sample is given.\n returnType: this.result.isDeclared ? this.result.returnType : 'OBJECT',\n queryParams: [],\n bodyParams: [this.#payloadParam()],\n // The `payload` wrapper's display label lives here (the bodyParam itself stays label-free, matching v1).\n metaInfo: {\n args: { payload: { label: 'Payload' } },\n ...this.result.toMetaInfo(this.id, this.criteria),\n },\n }\n }\n\n // Describe the full payload shape so the method advertises a complete, labelled input scheme (nested\n // props inline their own labels \u2014 mirroring the v1 jsdoc-parser layout).\n #payloadParam(): SharedExtensionParam {\n const properties: SharedExtensionParam[] = [\n { name: 'search', required: false, description: 'Optional search string to filter results.', type: 'STRING', label: 'Search' },\n { name: 'cursor', required: false, description: 'Pagination offset for retrieving the next page of results.', type: 'STRING', label: 'Cursor' },\n ]\n\n const criteriaProps = toProperties(this.criteria)\n\n if (criteriaProps.length) {\n properties.push({\n name: 'criteria',\n required: false,\n description: 'Current values of the params this dictionary depends on.',\n type: 'OBJECT',\n properties: criteriaProps,\n })\n }\n\n return {\n name: 'payload',\n required: false,\n description: 'Contains optional search string and pagination cursor.',\n type: 'OBJECT',\n properties,\n }\n }\n}\n", "import { z } from '../params'\n\n// The console's helper-method route invokes a loader with `methodData = { payload }`, and a loader's\n// payload is `{ criteria }` \u2014 the current values of the params it depends on. LOOSE, like every wrapper the\n// runtime owns: the console may send fields a given milestone doesn't model yet, and dropping them silently\n// would be worse than carrying them through.\nexport const LoaderPayloadSchema = z.looseObject({\n criteria: z.record(z.string(), z.unknown()).optional(),\n})\n", "import { InvalidSchemaError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { ExtensionMethod } from '../method'\nimport { argsFromParams, opaqueParam } from '../model/method-model'\nimport type { SharedExtensionMethod, SharedExtensionParam } from '../model/model-types'\nimport { toProperties } from '../model/params-model'\nimport { type AnyZod, encodeParams, inspect, MethodParams, type ParamsSchemaJSON, shapeEntries, z } from '../params'\nimport type { DynamicPropsDef, LoadedParamsSchema } from '../types'\nimport {\n dynamicParamsLoaderName,\n dynamicPropsLoaderName,\n type LoaderOwner,\n type ParamsLoaderOwner,\n sampleResultLoaderName,\n} from './loader-owner'\nimport { LoaderPayloadSchema } from './payload-schema'\n\n// The methods the RUNTIME generates from what an author declared \u2014 never written by hand:\n//\n// result: fn \u2192 a SAMPLE_RESULT_LOADER the console calls to preview the output shape\n// dynamicParams \u2192 a PARAM_SCHEMA_DEFINITION that loads extra top-level params\n// field.dynamicProps(def) \u2192 a PARAM_SCHEMA_DEFINITION that loads the fields inside that one param\n//\n// All are invoked with `{ payload: { criteria } }` \u2014 the values of the params they depend on. They obey the\n// same policy as every other declared slot, so a sample-result loader (whose criteria ARE its owner's params)\n// only resolves once the owner's required params are filled.\n\nabstract class LoaderMethod extends ExtensionMethod {\n constructor(extension: Extension, protected readonly owner: LoaderOwner) {\n super(extension)\n }\n\n // The params this loader's criteria are checked against.\n protected abstract get criteria(): MethodParams\n\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n const input = this.input(methodData)\n const payload = input.parseField<{ criteria?: Record<string, unknown> }>('payload', LoaderPayloadSchema)\n\n return this.criteria.normalize(payload.criteria, input.invalidCriteria(), { carryUnknown: this.carryUnknown })\n }\n\n // Whether the criteria's undeclared keys ride through to the handler.\n protected get carryUnknown(): boolean {\n return true\n }\n\n // Internal (SYSTEM-like): no icon, no colours, no sample. Its params are left opaque in the model \u2014 it is\n // invoked with `{ criteria }` at runtime, not through a rendered form.\n toModel(): SharedExtensionMethod {\n const bodyParams: SharedExtensionParam[] = [opaqueParam('payload')]\n\n return {\n name: this.name,\n operationName: this.name,\n description: '',\n registerAs: this.registerAs,\n category: this.owner.category,\n colorStart: '',\n colorEnd: '',\n customIcon: undefined,\n returnType: this.returnType,\n queryParams: [],\n bodyParams,\n metaInfo: { args: argsFromParams(bodyParams), sampleResult: null, sampleResultLoader: null },\n }\n }\n\n protected abstract get returnType(): string\n}\n\n// Derives the sample output from the params filled in so far \u2014 for shapes that aren't known statically\n// (user-defined fields, a record whose columns depend on which table was picked).\nexport class SampleResultLoaderMethod extends LoaderMethod {\n get name(): string {\n return sampleResultLoaderName(this.owner.id)\n }\n\n get registerAs(): string {\n return 'SAMPLE_RESULT_LOADER'\n }\n\n protected get returnType(): string {\n return 'OBJECT'\n }\n\n // The sample varies with ANY param of the owner, so all of them are its criteria. Undeclared keys ride\n // through too: the node's other params come along, and the owner's `result` fn may read fields its\n // `dynamicParams` loaded.\n protected get criteria(): MethodParams {\n return this.owner.params\n }\n\n execute(criteria: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.owner.result.runLoader(ctx.bagWith({ params: criteria }))\n }\n}\n\n/**\n * What a params loader responds with: the loaded fields as encoded zod \u2014 for the console forms, which build\n * their widgets and validation from it \u2014 and the same fields as a param list with display metadata inline,\n * for the Flow Builder, which draws every v2 action from the list. Both come from one schema, so they cannot\n * disagree. A static action publishes the same pair (`paramsSchema`, and `bodyParams` + `args`).\n */\nexport interface LoadedParams {\n paramsSchema: ParamsSchemaJSON | null\n params: SharedExtensionParam[]\n}\n\n// A zod schema, rather than a plain shape of them.\nconst isZod = (value: unknown): boolean => !!(value as AnyZod | undefined)?._zod\n\n/**\n * A params loader: runs a `DynamicPropsDef` and responds with the fields it returned.\n *\n * Its criteria are exactly the owner's params named in `dependsOn`, checked by their own schemas \u2014 so a value\n * arrives coerced, as it would in the action's handler, and a loader cannot read a param it did not name (the\n * console would not reload it when that param changes).\n */\nabstract class ParamsLoaderMethod extends LoaderMethod {\n #criteria?: MethodParams\n\n constructor(extension: Extension, protected readonly owner: ParamsLoaderOwner, protected readonly def: DynamicPropsDef) {\n super(extension, owner)\n }\n\n get registerAs(): string {\n return 'PARAM_SCHEMA_DEFINITION'\n }\n\n protected get returnType(): string {\n return 'OBJECT'\n }\n\n protected get carryUnknown(): boolean {\n return false\n }\n\n // Built unguarded: the picked fields were already checked on the owner, and a picked sibling may itself\n // carry `.dynamicProps()`, which the guard only allows in an action's own `params`.\n protected get criteria(): MethodParams {\n const dependsOn = this.def.dependsOn ?? []\n\n this.#criteria ??= MethodParams.of(\n z.object(Object.fromEntries(this.owner.params.fields().filter(([name]) => dependsOn.includes(name)))),\n { serviceId: this.extension.id, kind: 'loader criteria', itemId: this.name }\n )\n\n return this.#criteria\n }\n\n // Where the returned schema is reported, in the author's words: `dynamicParams.execute()`.\n protected abstract get slot(): string\n\n // Fields the returned ones may not repeat, and that are published ahead of them.\n protected abstract get staticFields(): [string, AnyZod][]\n\n async execute(criteria: Record<string, unknown>, ctx: ExecutionContext): Promise<LoadedParams> {\n const loaded = await this.def.execute(ctx.bagWith({ criteria }))\n const params = this.toParams(loaded)\n\n return { paramsSchema: encodeParams(params.scheme), params: toProperties(params) }\n }\n\n // A plain shape is wrapped in `z.object()`; anything else that is not a `z.object` is refused by the same\n // guards a declared params slot goes through.\n protected toParams(loaded: LoadedParamsSchema): MethodParams {\n const source = { serviceId: this.extension.id, kind: 'action', itemId: this.owner.id, slot: this.slot }\n const schema = loaded && typeof loaded === 'object' && !isZod(loaded) ? z.object(loaded as Record<string, never>) : loaded\n const returned = MethodParams.of(schema, source)\n const staticFields = this.staticFields\n\n if (!staticFields.length) {\n return returned\n }\n\n const staticNames = new Set(staticFields.map(([name]) => name))\n const repeated = returned.keys().filter(name => staticNames.has(name))\n\n if (repeated.length) {\n throw new InvalidSchemaError(\n `[flow-extension:${ this.extension.id }] action \"${ this.owner.id }\": \\`${ this.slot }\\` returned ` +\n `${ repeated.map(name => `\"${ name }\"`).join(', ') }, which ${ repeated.length > 1 ? 'are' : 'is' } already ` +\n 'declared statically. A loaded field may not replace a declared one \u2014 rename it.',\n { ...source, received: repeated }\n )\n }\n\n return MethodParams.of(z.object(Object.fromEntries([...staticFields, ...returned.fields()])), source)\n }\n}\n\n// Loads additional top-level params of an action. They are spread into the action's input next to the static\n// params, so a loaded field may not repeat a static one.\nexport class DynamicParamsLoaderMethod extends ParamsLoaderMethod {\n constructor(extension: Extension, owner: ParamsLoaderOwner) {\n super(extension, owner, owner.dynamicParams!)\n }\n\n get name(): string {\n return dynamicParamsLoaderName(this.owner.id)\n }\n\n protected get slot(): string {\n return 'dynamicParams.execute()'\n }\n\n protected get staticFields(): [string, AnyZod][] {\n return []\n }\n\n protected toParams(loaded: LoadedParamsSchema): MethodParams {\n const params = super.toParams(loaded)\n const declared = new Set(this.owner.params.keys())\n const shadowing = params.keys().filter(name => declared.has(name))\n\n if (shadowing.length) {\n throw new InvalidSchemaError(\n `[flow-extension:${ this.extension.id }] action \"${ this.owner.id }\": \\`${ this.slot }\\` returned ` +\n `${ shadowing.map(name => `\"${ name }\"`).join(', ') }, which the action already declares in \\`params\\`. ` +\n 'A loaded param may not shadow a declared one \u2014 rename it.',\n { serviceId: this.extension.id, kind: 'action', itemId: this.owner.id, slot: this.slot, received: shadowing }\n )\n }\n\n return params\n }\n}\n\n/**\n * Loads the fields inside one top-level param declared with `.dynamicProps()` \u2014 a `z.looseObject()`, or a\n * list of them.\n *\n * The field's own declared keys are published FIRST and the loaded ones after: the Flow Builder replaces the\n * field's inner list with this response, so leaving them out would hide fields the author declared.\n */\nexport class DynamicPropsLoaderMethod extends ParamsLoaderMethod {\n constructor(extension: Extension, owner: ParamsLoaderOwner, private readonly field: string, def: DynamicPropsDef) {\n super(extension, owner, def)\n }\n\n get name(): string {\n return dynamicPropsLoaderName(this.owner.id, this.field)\n }\n\n protected get slot(): string {\n return `params.${ this.field }.dynamicProps().execute()`\n }\n\n protected get staticFields(): [string, AnyZod][] {\n const schema = this.owner.params.fields().find(([name]) => name === this.field)?.[1]\n const ins = inspect(schema as AnyZod)\n const object = ins.resolvedType === 'array' ? ins.core?._zod?.def?.element as AnyZod | undefined : schema\n\n return shapeEntries(inspect(object as AnyZod).core)\n }\n}\n", "import crypto from 'crypto'\n\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport type { SystemMethodSpec } from '../system-method'\nimport { OAUTH_SYSTEM_METHODS } from './method-names'\nimport { OAuthCallbackObjectSchema, RefreshTokenSchema } from './system-params'\nimport type {\n OAuth2Props,\n OAuthBag,\n OAuthCallbackObject,\n OAuthCallbackResult,\n OAuthRefreshResult,\n} from './types'\n\n// `ext.setupOauth2(...)` \u2014 the OAuth2 subsystem (06-oauth2.md). Declarative for the common case, with an\n// escape hatch per step for providers that deviate. It owns the three v1 SYSTEM methods, the frozen runtime\n// seam the platform drives:\n//\n// getOAuth2ConnectionURL (GET) \u2192 where to send the user\n// executeCallback (POST) \u2192 trade the code for a token, and name the connection\n// refreshToken (PUT) \u2192 trade a refresh token for the next access token\n\nexport class OAuth2 {\n constructor(private readonly extension: Extension, private readonly props: OAuth2Props) {\n this.#registerSystemMethods()\n }\n\n // The handler bag's `oauth`: the header access token, plus its deserialized composite payload when the\n // author declared a deserializer (the pattern for providers whose \"token\" carries a realm or instance id).\n buildBag(accessToken?: string): OAuthBag {\n const token = this.props.deserializeToken && accessToken != null\n ? this.props.deserializeToken(accessToken)\n : undefined\n\n return { accessToken, token }\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 return \u00B7 handler, in one table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n const { CONNECTION_URL, EXECUTE_CALLBACK, REFRESH_TOKEN } = OAUTH_SYSTEM_METHODS\n\n // Every step runs where no usable access token exists yet \u2014 connect precedes one entirely, and the\n // callback and refresh are what PRODUCE the next one \u2014 so each sees a TOKENLESS context. The single\n // exception is the callback's identity lookup, which must use the token it just obtained (#handleCallback).\n const anonymous = (ctx: ExecutionContext): ExecutionContext => ctx.withAccessToken(undefined)\n\n this.extension.registerSystemMethods([\n {\n name: CONNECTION_URL,\n // Takes no input at all \u2014 no scheme.\n returnType: 'STRING',\n run: (_params, ctx) => this.#connectionUrl(anonymous(ctx), this.#composeScopes()),\n },\n {\n name: EXECUTE_CALLBACK,\n scheme: z.object({ callbackObject: OAuthCallbackObjectSchema }),\n run: ({ callbackObject }, ctx) => this.#handleCallback(callbackObject as OAuthCallbackObject, anonymous(ctx)),\n },\n {\n name: REFRESH_TOKEN,\n scheme: z.object({ refreshToken: RefreshTokenSchema }),\n run: ({ refreshToken }, ctx) => this.#refresh(refreshToken as string, anonymous(ctx)),\n },\n ] satisfies SystemMethodSpec[])\n }\n\n /**\n * The scopes to ask the user for: the base set \u222A every registered item's `oauth2Scopes`.\n *\n * Composed ON DEMAND, when the connect step actually runs, and never stored. `setupOauth2(...)` may be\n * called BEFORE the actions and triggers that carry scopes are registered \u2014 a service file is free to\n * order those however it likes \u2014 so a set computed at setup time would silently omit whatever registered\n * afterwards, and the user would be sent to a consent screen missing permissions the service needs.\n */\n #composeScopes(): string[] {\n return [...new Set([...(this.props.scopes ?? []), ...this.extension.declaredOAuthScopes()])]\n }\n\n // \u2500\u2500 the three steps \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #connectionUrl(ctx: ExecutionContext, scopes: string[]): Promise<string> {\n if (this.props.getConnectionURL) {\n return this.props.getConnectionURL(ctx.bagWith({ scopes }))\n }\n\n const { id } = this.#clientCreds(ctx.config)\n const params = new URLSearchParams({ client_id: id, response_type: 'code', scope: scopes.join(' ') })\n\n if (this.props.pkce) {\n // The verifier round-trips through `state`, which the console hands back on the callback.\n const verifier = crypto.randomBytes(32).toString('base64url')\n\n params.set('code_challenge', crypto.createHash('sha256').update(verifier).digest('base64url'))\n params.set('code_challenge_method', 'S256')\n params.set('state', verifier)\n }\n\n return `${ this.props.authorizeUrl }?${ params.toString() }`\n }\n\n async #handleCallback(callbackObject: OAuthCallbackObject, ctx: ExecutionContext): Promise<OAuthCallbackResult> {\n if (this.props.executeCallback) {\n return this.props.executeCallback(ctx.bagWith({ callbackObject }))\n }\n\n const tokenResponse = await this.#exchangeToken(ctx.config, {\n grant_type: 'authorization_code',\n code: callbackObject.code ?? '',\n redirect_uri: callbackObject.redirectURI ?? '',\n ...(callbackObject.state ? { code_verifier: callbackObject.state } : {}),\n })\n\n const accessToken = tokenResponse.access_token as string\n const refreshToken = tokenResponse.refresh_token as string | undefined\n\n // Identity lookup runs against the freshly-obtained token \u2014 the one exception to the tokenless rule.\n let identity: { name?: string; imageUrl?: string | null; userData?: unknown } = {}\n\n if (this.props.identityRequest) {\n const raw = await this.props.identityRequest(ctx.withAccessToken(accessToken).toBag())\n\n identity = this.props.identity ? this.props.identity(raw) : {}\n }\n\n return {\n token: this.#serialize(accessToken, refreshToken, identity.userData),\n expirationInSeconds: tokenResponse.expires_in as number | undefined,\n refreshToken,\n connectionIdentityName: identity.name || 'Unknown Account',\n connectionIdentityImageURL: identity.imageUrl ?? null,\n overwrite: true,\n userData: identity.userData,\n }\n }\n\n async #refresh(currentRefreshToken: string, ctx: ExecutionContext): Promise<OAuthRefreshResult> {\n if (this.props.refreshToken) {\n return this.props.refreshToken(ctx.bagWith({ refreshToken: currentRefreshToken }))\n }\n\n const tokenResponse = await this.#exchangeToken(ctx.config, {\n grant_type: 'refresh_token',\n refresh_token: currentRefreshToken,\n })\n\n // Providers that rotate refresh tokens send a new one; those that don't leave the current one valid.\n const nextRefresh = (tokenResponse.refresh_token as string | undefined) ?? currentRefreshToken\n\n return {\n token: this.#serialize(tokenResponse.access_token as string, nextRefresh),\n expirationInSeconds: tokenResponse.expires_in as number | undefined,\n refreshToken: nextRefresh,\n }\n }\n\n // \u2500\u2500 token exchange \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #serialize(accessToken: string, refreshToken?: string, userData?: unknown): string {\n return this.props.serializeToken\n ? this.props.serializeToken({ accessToken, refreshToken, userData })\n : accessToken\n }\n\n #clientCreds(config: Record<string, unknown>): { id: string; secret: string } {\n return {\n id: String(config[this.props.clientIdConfig ?? 'clientId'] ?? ''),\n secret: String(config[this.props.clientSecretConfig ?? 'clientSecret'] ?? ''),\n }\n }\n\n // x-www-form-urlencoded token exchange against `tokenUrl`; client creds go in the Basic header\n // (`clientAuth: 'basic'`) or the body (default).\n async #exchangeToken(config: Record<string, unknown>, body: Record<string, string>): Promise<Record<string, unknown>> {\n const { id, secret } = this.#clientCreds(config)\n const params = new URLSearchParams(body)\n const headers: Record<string, string> = { 'Content-Type': 'application/x-www-form-urlencoded' }\n\n if (this.props.clientAuth === 'basic') {\n headers.Authorization = `Basic ${ Buffer.from(`${ id }:${ secret }`).toString('base64') }`\n } else {\n params.set('client_id', id)\n params.set('client_secret', secret)\n }\n\n return Flowrunner.Request\n .post(this.props.tokenUrl as string)\n .set(headers)\n .send(params.toString()) as Promise<Record<string, unknown>>\n }\n}\n", "// The three runtime-owned OAuth SYSTEM methods \u2014 the frozen v1 seam. Do not rename: these are published\n// method names the platform invokes by string.\nexport const OAUTH_SYSTEM_METHODS = {\n CONNECTION_URL: 'getOAuth2ConnectionURL',\n EXECUTE_CALLBACK: 'executeCallback',\n REFRESH_TOKEN: 'refreshToken',\n} as const\n", "import { z } from '../params'\n\n// The input each OAuth SYSTEM method carries. Runtime-owned, not author-declared. LOOSE where the producer\n// is the console's OAuth controller: it may send fields a given milestone doesn't model yet, and dropping\n// them silently would be worse than carrying them through.\n\nexport const OAuthCallbackObjectSchema = z.looseObject({\n code: z.string().optional(),\n redirectURI: z.string().optional(),\n // The PKCE verifier round-trips through `state`.\n state: z.string().optional(),\n})\n\nexport const RefreshTokenSchema = z.string().min(1)\n", "// The single runtime-owned SYSTEM method shared by every polling trigger of a service; the runtime invokes\n// it on each tick and it routes by `invocation.eventName`. Frozen \u2014 a published method name.\nexport const POLLING_SYSTEM_METHOD = 'handleTriggerPollingForEvent'\n", "import { z } from '../params'\n\n// The invocation the runtime hands to the polling SYSTEM method on each tick. Runtime-owned, not\n// author-declared. LOOSE: the flow engine may send fields a given milestone doesn't model yet.\nexport const PollingInvocationSchema = z.looseObject({\n eventName: z.string().min(1),\n // The trigger instance's configured params \u2014 validated against the trigger's own schema separately.\n triggerData: z.record(z.string(), z.unknown()).optional(),\n state: z.record(z.string(), z.unknown()).nullish(),\n learningMode: z.boolean().optional(),\n connectionId: z.string().nullish(),\n})\n", "import { UnknownTriggerError } from '../../errors'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport type { SystemMethodSpec } from '../system-method'\nimport { POLLING_SYSTEM_METHOD } from './method-names'\nimport { PollingInvocationSchema } from './system-params'\nimport type { PollingTriggerMethod } from './trigger-method'\nimport type { PollingInvocation } from './types'\n\n// The polling triggers a service declares, as a set.\n//\n// The SYSTEM seam that drives them belongs HERE rather than to any one trigger: the runtime ticks a single\n// `handleTriggerPollingForEvent` and this routes it by `eventName`. Registering it on the first trigger\n// added is what makes it exist exactly when at least one trigger does \u2014 the model no longer needs a\n// separate \"are there any?\" check, because the method is simply there or not.\n\nexport class PollingTriggers {\n readonly #triggers = new Map<string, PollingTriggerMethod>()\n\n constructor(private readonly extension: Extension) {}\n\n get size(): number {\n return this.#triggers.size\n }\n\n get(id: string): PollingTriggerMethod | undefined {\n return this.#triggers.get(id)\n }\n\n all(): PollingTriggerMethod[] {\n return [...this.#triggers.values()]\n }\n\n add(trigger: PollingTriggerMethod): void {\n const first = this.size === 0\n\n this.#triggers.set(trigger.id, trigger)\n\n if (first) {\n this.#registerSystemMethods()\n }\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 handler, in one place \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n this.extension.registerSystemMethods([{\n name: POLLING_SYSTEM_METHOD,\n scheme: z.object({ invocation: PollingInvocationSchema }),\n run: ({ invocation }, ctx) => {\n const value = invocation as PollingInvocation\n const trigger = this.get(value.eventName)\n\n if (!trigger) {\n throw new UnknownTriggerError(this.extension.id, value.eventName, 'polling')\n }\n\n return trigger.poll(value, ctx)\n },\n } satisfies SystemMethodSpec])\n }\n}\n", "// Read a dot-notation path (`a.b.c`) from a nested object; returns undefined if any segment is missing.\n// Shared by dictionaries/triggers for field-path config (dedupe/watermark `by`, match paths, extract*).\nexport function getPath(source: unknown, path: string): unknown {\n return path.split('.').reduce<unknown>(\n (acc, key) => (acc == null ? acc : (acc as Record<string, unknown>)[key]),\n source\n )\n}\n", "import { InvalidTriggerConfigError } from '../../errors'\nimport { getPath } from '../path'\nimport type { HandlerBag } from '../types'\nimport type {\n DedupeConfig,\n PollingInvocation,\n PollingPollBag,\n PollingResult,\n PollingTriggerProps,\n WatermarkConfig,\n} from './types'\n\n// How a polling trigger decides what is NEW (08-polling-triggers.md). Three strategies, of which an author\n// declares exactly one:\n//\n// dedupe \u2014 remember the ids already seen, emit the rest (unordered feeds, no reliable timestamp)\n// watermark \u2014 remember the newest marker, emit anything past it (ordered feeds with a cursor field)\n// poll \u2014 the author owns the whole { events, state } contract (escape hatch)\n//\n// The first two share a lifecycle the base class owns, so a strategy only implements its own delta:\n// \u2022 first poll (no state) \u2192 SEED the state, emit nothing (wiring up must not fire a run)\n// \u2022 learningMode \u2192 emit the fetched head, state null (a sample for setup; nothing persisted)\n// \u2022 thereafter \u2192 emit the delta, advance the state\n//\n// The runtime drives the interval and the persistence; this file only computes `{ events, state }`.\n\n// What one invocation gives a strategy to work with.\ninterface PollCycle {\n bag: HandlerBag\n params: Record<string, unknown>\n isLearningMode: boolean\n state: Record<string, unknown> | null\n}\n\ntype FetchFn = (bag: HandlerBag & { params: Record<string, unknown>; isLearningMode: boolean }) =>\n unknown[] | Promise<unknown[]>\n\nexport abstract class PollingMechanism {\n /**\n * Pick the strategy an author declared, rejecting the combinations that cannot work. Runs at REGISTRATION\n * time, so a misconfigured trigger fails while the service module is being required rather than on some\n * later tick in production.\n */\n static from(props: PollingTriggerProps, serviceId: string): PollingMechanism {\n const declared = (['dedupe', 'watermark', 'poll'] as const)\n .filter(key => props[key] != null)\n\n if (declared.length !== 1) {\n throw new InvalidTriggerConfigError(\n serviceId,\n `polling trigger \"${ props.id }\" must declare exactly one of dedupe|watermark|poll (got: ${ declared.join(', ') || 'none' })`,\n { triggerId: props.id }\n )\n }\n\n if (props.poll) {\n return new CustomPollMechanism(props.poll)\n }\n\n // dedupe and watermark both filter a fetched list \u2014 without `fetch` there is nothing to filter.\n if (typeof props.fetch !== 'function') {\n throw new InvalidTriggerConfigError(\n serviceId,\n `polling trigger \"${ props.id }\" with dedupe/watermark requires a fetch(...) function`,\n { triggerId: props.id }\n )\n }\n\n return props.dedupe\n ? new DedupeMechanism(props.fetch as FetchFn, props.dedupe)\n : new WatermarkMechanism(props.fetch as FetchFn, props.watermark!)\n }\n\n run(invocation: PollingInvocation, bag: HandlerBag): Promise<PollingResult> {\n return this.poll({\n bag,\n params: invocation.triggerData ?? {},\n isLearningMode: !!invocation.learningMode,\n state: invocation.state ?? null,\n })\n }\n\n protected abstract poll(cycle: PollCycle): Promise<PollingResult>\n}\n\n// The escape hatch: the author owns fetching, comparison and state.\nclass CustomPollMechanism extends PollingMechanism {\n constructor(private readonly fn: NonNullable<PollingTriggerProps['poll']>) {\n super()\n }\n\n protected async poll({ bag, params, state, isLearningMode }: PollCycle): Promise<PollingResult> {\n return this.fn({ ...bag, params, state, isLearningMode } as PollingPollBag)\n }\n}\n\n// The shared lifecycle of the two strategies that filter a fetched list.\nabstract class FetchingMechanism extends PollingMechanism {\n constructor(private readonly fetch: FetchFn) {\n super()\n }\n\n protected async poll({ bag, params, state, isLearningMode }: PollCycle): Promise<PollingResult> {\n const items = await this.fetch({ ...bag, params, isLearningMode })\n\n // Learning mode: emit the fetched head as the sample; do not persist state.\n if (isLearningMode) {\n return { events: items, state: null }\n }\n\n return this.delta(items, state, params)\n }\n\n // What is new since `state`, and the state to remember next time.\n protected abstract delta(\n items: unknown[],\n state: Record<string, unknown> | null,\n params: Record<string, unknown>\n ): PollingResult\n}\n\n// \u2500\u2500 dedupe (seen-set) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nclass DedupeMechanism extends FetchingMechanism {\n readonly #by: (item: unknown) => unknown\n readonly #stateKey: string\n readonly #max: number\n\n constructor(fetch: FetchFn, config: DedupeConfig) {\n super(fetch)\n\n if (typeof config === 'function') {\n this.#by = config\n this.#stateKey = 'seen'\n this.#max = 500\n } else if (typeof config === 'string') {\n this.#by = item => getPath(item, config)\n this.#stateKey = 'seen'\n this.#max = 500\n } else {\n this.#by = typeof config.by === 'function' ? config.by : (item: unknown) => getPath(item, config.by as string)\n this.#stateKey = config.stateKey ?? 'seen'\n this.#max = config.max ?? 500\n }\n }\n\n protected delta(items: unknown[], state: Record<string, unknown> | null): PollingResult {\n const currentIds = items.map(this.#by).map(id => `${ id }`)\n\n // Seed on first poll: remember ids, emit nothing.\n if (!state?.[this.#stateKey]) {\n return { events: [], state: { [this.#stateKey]: this.#buildSeen([], currentIds) } }\n }\n\n const seen = toSeenList(state[this.#stateKey])\n const seenSet = new Set(seen)\n const events = items.filter((_item, index) => !seenSet.has(currentIds[index]))\n\n return { events, state: { [this.#stateKey]: this.#buildSeen(seen, currentIds) } }\n }\n\n // Bounded id list, oldest first, keeping the most-recent `max` ids. An id fetched again moves to the end,\n // so an item that is still in the feed is never the one evicted. It is a list, not an `{ id: 1 }` map: a\n // map orders integer-like keys numerically, which evicted the SMALLEST id instead of the oldest one.\n #buildSeen(seen: string[], currentIds: string[]): string[] {\n const fetched = new Set(currentIds)\n\n return [...seen.filter(id => !fetched.has(id)), ...fetched].slice(-this.#max)\n }\n}\n\n// State persisted before the list format is an `{ id: 1 }` map. It is still read so a live trigger keeps\n// its seen ids across the upgrade; its order is lost, which only matters until the next `max` ids roll in.\nconst toSeenList = (value: unknown): string[] => {\n return Array.isArray(value)\n ? value.map(id => `${ id }`)\n : Object.keys(value as Record<string, unknown>)\n}\n\n// \u2500\u2500 watermark (marker) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n// Markers are compared with JS relational ordering, which is exactly what lets one `by` field work whether\n// the provider hands out ISO timestamps, sortable ids or plain numbers \u2014 the author never declares which.\nconst isNewer = (value: unknown, marker: unknown): boolean => (value as string) > (marker as string)\n\nclass WatermarkMechanism extends FetchingMechanism {\n readonly #stateKey: string\n\n constructor(fetch: FetchFn, private readonly config: WatermarkConfig) {\n super(fetch)\n\n this.#stateKey = config.stateKey ?? 'watermark'\n }\n\n protected delta(\n items: unknown[],\n state: Record<string, unknown> | null,\n params: Record<string, unknown>\n ): PollingResult {\n const valueOf = (item: unknown): unknown =>\n typeof this.config.by === 'function' ? this.config.by(item, { params }) : getPath(item, this.config.by)\n\n const advance = (start: unknown): unknown =>\n items.reduce((max, item) => {\n const value = valueOf(item)\n\n if (value == null) {\n return max\n }\n\n return max == null || isNewer(value, max) ? value : max\n }, start)\n\n // Seed on first poll: store the newest marker, emit nothing.\n if (state?.[this.#stateKey] === undefined || state?.[this.#stateKey] === null) {\n return { events: [], state: { [this.#stateKey]: advance(undefined) } }\n }\n\n const marker = state[this.#stateKey]\n const events: unknown[] = []\n\n for (const item of items) {\n const value = valueOf(item)\n\n if (value != null && isNewer(value, marker)) {\n events.push(item)\n } else if (this.config.sortedDesc) {\n // newest-first list \u2192 the first non-newer item means the rest are older too.\n break\n }\n }\n\n return { events, state: { [this.#stateKey]: advance(marker) } }\n }\n}\n", "import { UnknownMethodError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport type { LoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport { PollingMechanism } from './mechanisms'\nimport type { PollingInvocation, PollingResult, PollingTriggerProps } from './types'\n\n// A polling trigger (08-polling-triggers.md). It is a published method \u2014 the console renders it as a start\n// node with its own params and sample result \u2014 but it is NOT invocable by name: the runtime reaches it\n// through the shared polling SYSTEM method, which routes by `eventName` (see ./polling-triggers.ts).\n\nexport class PollingTriggerMethod extends ExtensionMethod implements LoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n readonly mechanism: PollingMechanism\n\n constructor(extension: Extension, private readonly props: PollingTriggerProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, {\n serviceId: extension.id,\n kind: 'polling trigger',\n itemId: props.id,\n slot: 'params',\n })\n this.result = ResultSpec.from(props.result)\n // Validates the declared combination \u2014 see PollingMechanism.from.\n this.mechanism = PollingMechanism.from(props, extension.id)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'POLLING_TRIGGER'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Not dispatchable by name \u2014 the platform ticks `handleTriggerPollingForEvent` instead, so a call that\n // lands here is a caller using the trigger id as if it were an action.\n execute(): never {\n throw new UnknownMethodError(this.extension.id, this.name)\n }\n\n // One tick for this trigger, with its instance params already validated.\n poll(invocation: PollingInvocation, ctx: ExecutionContext): Promise<PollingResult> {\n return this.mechanism.run(\n { ...invocation, triggerData: this.#triggerData(invocation.triggerData) },\n ctx.toBag()\n )\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme),\n metaInfo: { args: toArgs(this.params), ...this.result.toMetaInfo(this.id, this.params) },\n }\n }\n\n // A trigger instance's configured params, through the same pipeline as everything else. A saved instance\n // missing a required param therefore fails the poll rather than polling with `undefined` \u2014 the trigger\n // genuinely cannot work without it. Unknown fields ride through to the handler.\n #triggerData(data: Record<string, unknown> = {}): Record<string, unknown> {\n return this.params.normalize(data, this.input(data).invalidInput('triggerData'), { carryUnknown: true })\n }\n}\n", "// The five runtime-owned realtime SYSTEM methods \u2014 the frozen v1 webhook lifecycle seam. Do not rename:\n// these are published method names the platform invokes by string.\nexport const REALTIME_SYSTEM_METHODS = {\n UPSERT: 'handleTriggerUpsertWebhook',\n RESOLVE: 'handleTriggerResolveEvents',\n SELECT: 'handleTriggerSelectMatched',\n DELETE: 'handleTriggerDeleteWebhook',\n REFRESH: 'handleTriggerRefreshWebhook',\n} as const\n", "import { z } from '../params'\n\n// The invocation shapes the runtime hands to the realtime SYSTEM methods (v1-compatible). Runtime-owned,\n// not author-declared, and all LOOSE: the flow engine may send fields a given milestone doesn't model yet,\n// and dropping them silently would be worse than carrying them through.\n\nconst anyRecord = () => z.record(z.string(), z.unknown())\n\nconst SubscriptionEventSchema = z.looseObject({\n name: z.string().min(1),\n triggerData: anyRecord().optional(),\n})\n\n// upsert + refresh \u2014 both subscribe the callback URL for a set of trigger instances.\nexport const RealtimeSubscriptionInvocationSchema = z.looseObject({\n callbackUrl: z.string().min(1),\n events: z.array(SubscriptionEventSchema).default([]),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// delete \u2014 the webhook is torn down from its stored data; the callback URL is informational.\nexport const RealtimeDeleteInvocationSchema = z.looseObject({\n callbackUrl: z.string().optional(),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// resolve \u2014 the raw inbound HTTP delivery, plus the webhook document persisted at subscription time.\n// `webhookData` is NULLISH on purpose: the platform looks the document up per workspace, so a delivery\n// arriving on the general callback of a service that is not app-hosted carries none, and neither does one\n// for which no document exists (yet).\nexport const RealtimeInboundInvocationSchema = z.looseObject({\n headers: anyRecord().optional(),\n queryParams: anyRecord().optional(),\n body: z.unknown(),\n rawBody: z.string().optional(),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// select \u2014 one resolved event fanned out over the registered trigger instances. `webhookData` rides along\n// for the same reason it does on resolve, and is READ-ONLY here too: this seam answers with matched ids and\n// enriched data, never with a new document.\nexport const RealtimeSelectInvocationSchema = z.looseObject({\n eventName: z.string().min(1),\n eventData: z.unknown(),\n webhookData: anyRecord().nullish(),\n triggers: z.array(z.looseObject({\n id: z.string().min(1),\n // A partially-configured instance is legal \u2014 `match` treats an empty param as \"matches all\".\n data: anyRecord().optional(),\n })).default([]),\n})\n", "import type { RealtimeVerify } from './types'\n\n// The declarative inbound-signature check (09-realtime-triggers.md): HMAC the raw body with a secret drawn\n// from config, compare it in constant time to the header the provider sent, and \u2014 when the provider stamps\n// its deliveries \u2014 reject anything too old to be a live event rather than a replay.\n//\n// Services cannot `require` node modules, so the primitives come from `Flowrunner.crypto` (see ../crypto).\n// An author who needs something this shape cannot express writes `verifyRequest` instead.\n\nexport function verifyDeclarative(\n verify: RealtimeVerify,\n rawBody: string | undefined,\n headers: Record<string, unknown>,\n config: Record<string, unknown>,\n // The stored webhook document of this delivery \u2014 `null` when none. A provider that mints the signing\n // secret at registration time keeps it here, so `secret` has to be able to read it.\n webhookData: unknown\n): boolean {\n const provided = (headers[verify.header] ?? headers[verify.header.toLowerCase()]) as string | undefined\n\n if (!provided) {\n return false\n }\n\n const secret = verify.secret(config, { webhookData })\n const computed = Flowrunner.crypto.hmac(verify.algo, secret, rawBody ?? '', verify.encoding)\n\n if (!Flowrunner.crypto.timingSafeEqual(provided, computed)) {\n return false\n }\n\n if (verify.freshness && verify.timestampHeader) {\n const timestamp = headers[verify.timestampHeader] as string | undefined\n\n if (timestamp && Flowrunner.crypto.ageSeconds(timestamp) > verify.freshness) {\n return false\n }\n }\n\n return true\n}\n", "import { RealtimeSetupError, UnknownTriggerError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport { getPath } from '../path'\nimport type { SystemMethodSpec } from '../system-method'\nimport type { AnySchema, ProviderPayload } from '../types'\nimport { REALTIME_SYSTEM_METHODS } from './method-names'\nimport {\n RealtimeDeleteInvocationSchema,\n RealtimeInboundInvocationSchema,\n RealtimeSelectInvocationSchema,\n RealtimeSubscriptionInvocationSchema,\n} from './system-params'\nimport type { RealtimeInvocation, RealtimeSetupProps, RealtimeSubTrigger } from './types'\nimport { verifyDeclarative } from './verify'\n\n// `ext.setupRealtimeTriggers(...)` \u2014 the webhook plumbing shared by every realtime trigger of a service\n// (09-realtime-triggers.md). The author writes declarative config plus lifecycle functions; this owns the\n// five v1 SYSTEM methods and drives them:\n//\n// handleTriggerUpsertWebhook \u2192 subscribe register the callback URL with the provider\n// handleTriggerDeleteWebhook \u2192 unsubscribe tear it down\n// handleTriggerRefreshWebhook \u2192 refresh (optional) renew a subscription that expires\n// handleTriggerResolveEvents \u2192 handshake \u2192 verify \u2192 route shape one inbound delivery into events\n// handleTriggerSelectMatched \u2192 per-instance match pick which configured instances fire\n//\n// Splitting resolve from select is what keeps the expensive work rare: resolve runs once per delivery and\n// touches no API, select runs per event and may enrich once, only if something actually matched.\n\n// Read a `string | fn` extractor against the request body.\nfunction readExtract(\n extract: string | ((bag: { requestBody: ProviderPayload }) => unknown) | undefined,\n body: unknown\n): unknown {\n if (typeof extract === 'function') {\n return extract({ requestBody: body })\n }\n\n if (typeof extract === 'string') {\n return getPath(body, extract)\n }\n\n return undefined\n}\n\nfunction isEmptyBody(body: unknown): boolean {\n return body == null || (typeof body === 'object' && Object.keys(body as object).length === 0)\n}\n\nexport class RealtimeSetup {\n constructor(private readonly extension: Extension, private readonly props: RealtimeSetupProps) {\n if (typeof props.subscribe !== 'function' || typeof props.unsubscribe !== 'function') {\n throw new RealtimeSetupError(extension.id, 'setupRealtimeTriggers requires subscribe and unsubscribe functions')\n }\n\n this.#registerSystemMethods()\n }\n\n get scope(): RealtimeSetupProps['scope'] {\n return this.props.scope\n }\n\n get hasRefresh(): boolean {\n return typeof this.props.refresh === 'function'\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 handler, in one table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n const M = REALTIME_SYSTEM_METHODS\n\n // Every realtime SYSTEM method takes the same single `invocation` param; only its shape differs.\n const spec = (\n name: string,\n schema: AnySchema,\n run: (invocation: RealtimeInvocation, ctx: ExecutionContext) => unknown,\n published = true\n ): SystemMethodSpec => ({\n name,\n scheme: z.object({ invocation: schema }),\n published,\n run: ({ invocation }, ctx) => run(invocation as RealtimeInvocation, ctx),\n })\n\n this.extension.registerSystemMethods([\n spec(M.UPSERT, RealtimeSubscriptionInvocationSchema, (i, ctx) => this.#subscribe(i, ctx)),\n spec(M.DELETE, RealtimeDeleteInvocationSchema, (i, ctx) => this.#unsubscribe(i, ctx)),\n spec(M.RESOLVE, RealtimeInboundInvocationSchema, (i, ctx) => this.#resolve(i, ctx)),\n spec(M.SELECT, RealtimeSelectInvocationSchema, (i, ctx) => this.#selectMatched(i, ctx)),\n // Refresh stays CALLABLE either way \u2014 it answers `{}` when no handler was declared \u2014 but is only\n // advertised in the model when the author actually declared one.\n spec(M.REFRESH, RealtimeSubscriptionInvocationSchema, (i, ctx) => this.#refresh(i, ctx), this.hasRefresh),\n ])\n }\n\n // \u2500\u2500 subscription lifecycle \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #subscribe(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const result = await this.props.subscribe(ctx.bagWith({\n callbackUrl: invocation.callbackUrl as string,\n triggers: this.#toSubTriggers(invocation.events),\n webhookData: invocation.webhookData ?? null,\n connectionId: invocation.connectionId,\n }))\n\n return {\n webhookData: result?.webhookData,\n eventScopeId: result?.eventScopeId,\n refreshIntervalInSeconds: result?.refreshIntervalInSeconds,\n }\n }\n\n async #unsubscribe(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const result = await this.props.unsubscribe(ctx.bagWith({\n callbackUrl: invocation.callbackUrl,\n webhookData: invocation.webhookData,\n connectionId: invocation.connectionId,\n }))\n\n return { webhookData: result?.webhookData ?? {} }\n }\n\n async #refresh(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n if (!this.props.refresh) {\n return {}\n }\n\n const result = await this.props.refresh(ctx.bagWith({\n callbackUrl: invocation.callbackUrl as string,\n triggers: this.#toSubTriggers(invocation.events),\n webhookData: invocation.webhookData,\n }))\n\n return { webhookData: result?.webhookData, refreshIntervalInSeconds: result?.refreshIntervalInSeconds }\n }\n\n // v1 upsert/refresh hand over events [{ name, triggerData }]. A trigger that declares provider event\n // names expands to one entry EACH, which is what a provider's subscribe API actually wants.\n //\n // A trigger that declares NONE still gets an entry. `providerEventName` is a ROUTING declaration and this\n // is a LIFECYCLE seam: an extension that resolves its own events (`resolveEvents`) legitimately has nothing to\n // route by, yet its triggers still run and `subscribe`/`refresh` still have to reconcile them. Gating the\n // bag on the routing declaration handed such a service an empty bag on every subscribe \u2014 silently, since\n // an empty subscription is a perfectly well-formed result.\n //\n // NOTHING is dropped here. A `name` resolving to no trigger THROWS, because this is the CONTROL PLANE:\n // upsert/refresh are initiated by FlowRunner itself, something is waiting on the result, and no third\n // party is affected \u2014 so an error reaches a place where it can be acted on. `subscribe` is the seam that\n // registers with the PROVIDER, so a dropped entry meant a flow that reported LIVE while its trigger was\n // never subscribed \u2014 silent, and indistinguishable from a working flow that simply never fired. One throw\n // does block the rest of the batch from subscribing, and that is the intent: a flow refusing to start\n // beats a live flow with half its triggers registered. (The data plane is ruled the other way \u2014 see\n // `#selectMatched`, which declines rather than throws because nothing is waiting on it.)\n #toSubTriggers(events: RealtimeInvocation['events'] = []): RealtimeSubTrigger[] {\n const subTriggers: RealtimeSubTrigger[] = []\n\n for (const event of events) {\n const trigger = this.extension.findRealtimeTrigger(event.name)\n\n if (!trigger) {\n throw new UnknownTriggerError(this.extension.id, event.name, 'realtime')\n }\n\n const params = event.triggerData ?? {}\n const providerEventNames = trigger.providerEventNames(params)\n\n // No placeholder: a `providerEventName` the provider has never heard of would reach `subscribe`, the\n // seam that calls the provider's own subscription API. A missing field an author can test for is safer.\n if (!providerEventNames.length) {\n subTriggers.push({ id: event.name, params })\n continue\n }\n\n for (const providerEventName of providerEventNames) {\n subTriggers.push({ id: event.name, params, providerEventName })\n }\n }\n\n return subTriggers\n }\n\n // \u2500\u2500 inbound delivery \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #resolve(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const headers = invocation.headers ?? {}\n const body = invocation.body\n const rawBody = invocation.rawBody\n // The document `subscribe` returned, as the platform stored it \u2014 the only way state registered with the\n // provider (a signing secret, an external webhook id) reaches the delivery it describes. Normalized to\n // `null` so every inbound seam reports \"nothing stored\" the one way, rather than `undefined` here and\n // `null` there depending on whether the platform sent the field or sent it empty.\n const webhookData = invocation.webhookData ?? null\n\n // 1. Endpoint-verification handshake (challenge/echo). Anything returned \u2192 ack without processing.\n if (this.props.handshake) {\n const result = await this.props.handshake(ctx.bagWith({ requestBody: body, headers, rawBody, webhookData }))\n\n if (result && (\n result.responseToExternalService !== undefined || result.responseHeaders || result.responseToWebhook\n )) {\n // Both shapes travel, exactly as the author wrote them. `responseToWebhook` is the newer, fuller\n // one, but the platform does not understand it yet \u2014 so translating the older pair into it would\n // drop the response of every service already using it. The platform picks whichever it supports.\n return {\n handshake: true,\n responseToExternalService: result.responseToExternalService,\n responseHeaders: result.responseHeaders,\n responseToWebhook: result.responseToWebhook,\n }\n }\n }\n\n // Empty-body deliveries are auto-acked.\n if (isEmptyBody(body)) {\n return { handshake: true, events: [] }\n }\n\n // 2. Signature verification (escape hatch or declarative). Reject on failure \u2014 by RETURNING a 401,\n // never by throwing.\n //\n // A forged delivery is a normal, expected outcome of a public callback URL, not a runtime failure. A\n // throw leaves the pod with a 4xx, which the platform reads as \"the invocation failed\" rather than \"the\n // extension answered 401\" \u2014 so the provider receives a 500. That fails exactly the validation this is\n // for: Xero's Intent to Receive sends a deliberately mis-signed delivery and requires a 401 back.\n //\n // Empty `rawBody` rather than `body`: a rejection carries no content, and `body` is always JSON, so an\n // empty string there would arrive quoted.\n if (!await this.#verify(rawBody, headers, webhookData, ctx)) {\n ctx.logger.warn(`[flow-extension:${ this.extension.id }] webhook signature verification failed \u2014 answering 401`)\n\n return { events: [], responseToWebhook: { httpStatus: 401, rawBody: '' } }\n }\n\n // 3. Escape hatch for irregular/multi-shape payloads \u2014 emits v1 events directly.\n if (this.props.resolveEvents) {\n const result = await this.props.resolveEvents(ctx.bagWith({\n rawBody,\n headers,\n query: invocation.queryParams ?? {},\n body,\n webhookData,\n connectionId: invocation.connectionId,\n }))\n\n return {\n handshake: result.handshake,\n responseToExternalService: result.responseToExternalService,\n responseHeaders: result.responseHeaders,\n responseToWebhook: result.responseToWebhook,\n eventScopeId: result.eventScopeId,\n events: (result.events ?? []).map(event => ({ name: event.id, data: event.providerEventData })),\n }\n }\n\n // 4. Declarative routing: discriminator \u2192 every trigger claiming it; build providerEventData.\n const eventName = readExtract(this.props.extractProviderEventName, body)\n\n if (eventName == null) {\n return { events: [] }\n }\n\n const baseData = this.props.extractProviderEventData\n ? readExtract(this.props.extractProviderEventData, body)\n : body\n const events: { name: string; data: unknown }[] = []\n\n for (const trigger of this.extension.realtimeTriggers()) {\n if (!trigger.claims(eventName as string)) {\n continue\n }\n\n const extra = trigger.extendEventData(body, baseData as Record<string, unknown>)\n\n events.push({ name: trigger.id, data: extra ? { ...(baseData as object), ...extra } : baseData })\n }\n\n const eventScopeId = this.props.scopeAt ? getPath(body, this.props.scopeAt) : undefined\n\n return { events, eventScopeId, connectionId: invocation.connectionId }\n }\n\n // The author's own check wins; otherwise the declarative one; otherwise nothing was asked for.\n async #verify(\n rawBody: string | undefined,\n headers: Record<string, unknown>,\n webhookData: unknown,\n ctx: ExecutionContext\n ): Promise<boolean> {\n if (this.props.verifyRequest) {\n return !!await this.props.verifyRequest(ctx.bagWith({ rawBody, headers, webhookData, config: ctx.config }))\n }\n\n if (this.props.verify) {\n return verifyDeclarative(this.props.verify, rawBody, headers, ctx.config, webhookData)\n }\n\n return true\n }\n\n // Fan one resolved event out over the configured instances of its trigger. An `eventName` this service\n // does not declare is DECLINED outright \u2014 `{ ids: [], enrichedEventData: null }`, no instance offered up\n // and no per-event seam run. That is deliberately not the same case as a trigger which declares no\n // `match`: `matches()` already answers \"fires always\" for that one, so resolve the name FIRST and never\n // let the two share a branch.\n //\n // Declining is the GUARANTEE here, not an accident of a past fix, and it is why this seam is ruled the\n // opposite way to `#toSubTriggers`. This is the DATA PLANE: the platform has already answered the\n // provider and detached this work, so a throw reaches nobody \u2014 and worse, it aborts every remaining event\n // of the same delivery, dropping the good ones beside the stale name.\n async #selectMatched(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n // `eventName` is in practice always present \u2014 RealtimeSelectInvocationSchema declares it\n // `z.string().min(1)`, so SystemMethod.validate rejects a missing one before this runs. The shared\n // invocation bag cannot say so (the other four SYSTEM methods carry no event name), and an absent name\n // is not a trigger id either way, so it folds into the same decline rather than earning a branch.\n const trigger = invocation.eventName ? this.extension.findRealtimeTrigger(invocation.eventName) : undefined\n\n if (!trigger) {\n return { ids: [], enrichedEventData: null }\n }\n\n const eventData = invocation.eventData\n // Read-only here, exactly as on resolve: `match` and `extendResult` may consult what the subscription\n // registered, and neither can write it back \u2014 this seam's answer is ids and enriched data, nothing else.\n const webhookData = invocation.webhookData ?? null\n const ids = (invocation.triggers ?? [])\n .filter(instance => trigger.matches(instance.data ?? {}, eventData, webhookData))\n .map(instance => instance.id)\n\n // extendResult runs ONCE if any instance matched \u2014 the only per-event place that may call the API.\n const enrichedEventData = ids.length && trigger.hasExtendResult()\n ? await trigger.extendResult(eventData, ctx, webhookData)\n : null\n\n return { ids, enrichedEventData }\n }\n}\n", "import { UnknownMethodError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport type { LoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, MethodParams } from '../params'\nimport { getPath } from '../path'\nimport { ResultSpec } from '../result'\nimport type { ProviderPayload } from '../types'\nimport type { RealtimeTriggerProps } from './types'\n\n// A realtime (webhook) trigger (09-realtime-triggers.md). Like a polling trigger it is a published method\n// the console renders as a start node, but is NOT invocable by name \u2014 the runtime reaches it through the\n// realtime SYSTEM seam (see ./realtime-setup.ts), which routes inbound deliveries to it.\n//\n// Its three author hooks answer three different questions, at three different moments:\n// providerEventNames which provider events is this trigger about? (routing, per delivery)\n// matches does THIS configured instance care about it? (fan-out, per instance)\n// extendResult what extra data should the event carry? (once, if anything matched)\n\nexport class RealtimeTriggerMethod extends ExtensionMethod implements LoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n\n constructor(extension: Extension, private readonly props: RealtimeTriggerProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, {\n serviceId: extension.id,\n kind: 'realtime trigger',\n itemId: props.id,\n slot: 'params',\n })\n this.result = ResultSpec.from(props.result)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'REALTIME_TRIGGER'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // Not dispatchable by name \u2014 inbound deliveries arrive through the realtime SYSTEM methods.\n execute(): never {\n throw new UnknownMethodError(this.extension.id, this.name)\n }\n\n // \u2500\u2500 routing \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // The provider event(s) this trigger claims. The fn form depends on instance params (unusual for routing)\n // \u2014 best-effort with the params given.\n providerEventNames(params: Record<string, unknown> = {}): string[] {\n const declared = this.props.providerEventName\n\n if (typeof declared === 'function') {\n return declared({ params }) ?? []\n }\n\n if (Array.isArray(declared)) {\n return declared\n }\n\n return declared ? [declared] : []\n }\n\n claims(providerEventName: string): boolean {\n return this.providerEventNames().includes(providerEventName)\n }\n\n // Per-trigger enrichment of the shaped event data, before instances are matched against it.\n extendEventData(requestBody: ProviderPayload, providerEventData: ProviderPayload): Record<string, unknown> | undefined {\n return this.props.extendEventData?.({ requestBody, providerEventData })\n }\n\n /**\n * Whether one CONFIGURED INSTANCE of this trigger cares about an event. Declarative form: type-coerced\n * equality per filled param, where an empty param means \"any\" \u2014 that is what lets a user leave a filter\n * blank and receive everything. Predicate form: the author decides. No `match` at all: always fires.\n *\n * `webhookData` is handed to the predicate form to be READ \u2014 an instance filter that depends on what the\n * subscription registered (a tenant id, a resource the webhook was scoped to) has nowhere else to get it.\n * Returning a new document is not a thing this seam can do; only subscribe/refresh/unsubscribe persist.\n */\n matches(\n params: Record<string, unknown>,\n providerEventData: ProviderPayload,\n webhookData: ProviderPayload = null\n ): boolean {\n const match = this.props.match\n\n if (!match) {\n return true\n }\n\n if (typeof match === 'function') {\n return !!match({ params, providerEventData, webhookData })\n }\n\n for (const [paramKey, path] of Object.entries(match)) {\n const paramValue = params[paramKey]\n\n if (paramValue == null || paramValue === '') {\n continue\n }\n\n if (`${ paramValue }` !== `${ getPath(providerEventData, path) }`) {\n return false\n }\n }\n\n return true\n }\n\n // Runs ONCE per event if any instance matched \u2014 the only per-event place that may call the provider API.\n // It reads `webhookData` (an access token or external id the subscription stored) but cannot change it.\n extendResult(\n providerEventData: ProviderPayload,\n ctx: ExecutionContext,\n webhookData: ProviderPayload = null\n ): Promise<unknown> | unknown {\n return this.props.extendResult?.(ctx.bagWith({ providerEventData, webhookData }))\n }\n\n hasExtendResult(): boolean {\n return typeof this.props.extendResult === 'function'\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme),\n metaInfo: { args: toArgs(this.params), ...this.result.toMetaInfo(this.id, this.params) },\n }\n }\n}\n", "import type { ExecutionContext } from './context/execution-context'\nimport type { Extension } from './extension'\nimport { ExtensionMethod } from './method'\nimport { argsFromParams } from './model/method-model'\nimport type { SharedExtensionMethod } from './model/model-types'\nimport { toOpaqueBodyParams } from './model/params-model'\nimport type { ZodSchema } from './params'\nimport { MethodParams } from './params'\nimport type { AnySchema } from './types'\n\n// The runtime-owned methods \u2014 the frozen v1 seam the platform calls rather than a flow: the OAuth connect /\n// callback / refresh steps, the polling tick, and the five realtime webhook lifecycle hooks. An author\n// never writes one; they exist because a feature was set up.\n//\n// Mechanically they are all the same: a runtime-owned params scheme, a SYSTEM model entry, and a handler.\n// Only the handler differs \u2014 so there is ONE class, driven by a spec, and each feature declares its own\n// specs in one place (see each owner's `#registerSystemMethods`). That single row now holds every fact\n// about a SYSTEM method: its name, its input contract, its model shape, and what it does.\n\nexport interface SystemMethodSpec {\n name: string\n /**\n * The params this method takes, as a normal z.object. Today every SYSTEM method happens to declare\n * exactly ONE property (`invocation` / `callbackObject` / `refreshToken`) \u2014 but that is a fact about the\n * current seam, not a constraint of the machinery: a second property needs no change here. Omit entirely\n * for a method that takes no input (getOAuth2ConnectionURL).\n */\n scheme?: AnySchema\n // The v1 `returnType` token. OBJECT for everything but the connect step, which answers a URL.\n returnType?: string\n // Set false for a seam that must stay callable without being advertised (see ExtensionMethod.published).\n published?: boolean\n // Receives the validated params, exactly as an action's handler receives its own.\n run: (params: Record<string, unknown>, ctx: ExecutionContext) => unknown\n}\n\nexport class SystemMethod extends ExtensionMethod {\n readonly params: MethodParams\n\n constructor(extension: Extension, private readonly spec: SystemMethodSpec) {\n super(extension)\n\n this.params = MethodParams.of(spec.scheme, { serviceId: extension.id, kind: 'system method', itemId: spec.name, slot: 'scheme' })\n }\n\n get name(): string {\n return this.spec.name\n }\n\n get registerAs(): string {\n return 'SYSTEM'\n }\n\n get published(): boolean {\n return this.spec.published ?? true\n }\n\n /**\n * FIELD-BY-FIELD validation: every declared param is required, then checked against its OWN schema. The\n * input here is a wrapper carrying named params rather than the params themselves \u2014 `{ invocation }` /\n * `{ callbackObject }` / `{ refreshToken }` are separate method params.\n *\n * Deliberately not one `parse(methodData)` over the whole object, because two failures must stay\n * distinguishable: an ABSENT param is a malformed call (MissingMethodParamError naming the param), while a\n * bad VALUE is a malformed value (InvalidMethodInputError whose issue paths are relative to that param,\n * not to `methodData`). A whole-object parse would flatten both into the second, with `invocation.` in\n * front of every path.\n */\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n const input = this.input(methodData)\n const parsed: Record<string, unknown> = {}\n\n for (const [name, schema] of this.params.fields()) {\n parsed[name] = input.parseField(name, schema as ZodSchema)\n }\n\n return parsed\n }\n\n execute(params: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.spec.run(params, ctx)\n }\n\n toModel(): SharedExtensionMethod {\n const bodyParams = toOpaqueBodyParams(this.params)\n\n return {\n name: this.name,\n operationName: this.name,\n description: '',\n registerAs: this.registerAs,\n category: '',\n colorStart: '',\n colorEnd: '',\n customIcon: undefined,\n returnType: this.spec.returnType ?? 'OBJECT',\n queryParams: [],\n bodyParams,\n metaInfo: { args: argsFromParams(bodyParams), sampleResult: null, sampleResultLoader: null },\n }\n }\n}\n", "import type { ConfigItem } from '../common/types'\nimport { DuplicateItemIdError, OAuthSetupError, RealtimeSetupError, UnknownMethodError } from '../errors'\nimport { ActionMethod } from './actions/action-method'\nimport { ExecutionContext, type ExecutionContextOptions } from './context/execution-context'\nimport { DictionaryMethod } from './dictionaries/dictionary-method'\nimport { DynamicParamsLoaderMethod, DynamicPropsLoaderMethod, SampleResultLoaderMethod } from './loaders/loader-method'\nimport type { LoaderOwner } from './loaders/loader-owner'\nimport type { ExtensionMethod } from './method'\nimport type { SharedExtensionDefinition, SharedExtensionMethod, SharedExtensionServiceInfo } from './model/model-types'\nimport { toConfigItems } from './model/params-model'\nimport { OAuth2 } from './oauth/oauth2'\nimport type { OAuth2Props } from './oauth/types'\nimport type { DictionaryRef } from './params'\nimport { ConfigParams, encodeParams } from './params'\nimport { PollingTriggers } from './polling-triggers/polling-triggers'\nimport { PollingTriggerMethod } from './polling-triggers/trigger-method'\nimport type { PollingTriggerProps } from './polling-triggers/types'\nimport { RealtimeSetup } from './realtime-triggers/realtime-setup'\nimport { RealtimeTriggerMethod } from './realtime-triggers/trigger-method'\nimport type { RealtimeSetupProps, RealtimeTriggerProps } from './realtime-triggers/types'\nimport { SystemMethod, type SystemMethodSpec } from './system-method'\nimport type { ActionProps, DictionaryProps, ExtensionProps } from './types'\n\n// One registered extension: everything a service declared, and everything the runner does with it. The\n// composition root \u2014 `Flowrunner.createExtension(props)` builds one, the registry stores it, and every\n// caller (definition build, config resolution, method dispatch) goes through it rather than reaching into a\n// bag of Maps.\n//\n// Registration happens once, while the service module is being `require`d, and is validated as it goes: ids\n// must be unique across ALL item kinds, a polling trigger must declare exactly one mechanism, and the\n// opt-in features can only be set up once. An authoring mistake therefore surfaces from the first call the\n// console or CLI makes against the extension, naming what has to be fixed.\n\nexport class Extension {\n readonly #props: ExtensionProps\n readonly #config: ConfigParams\n readonly #methods = new Map<string, ExtensionMethod>()\n readonly #pollingTriggers = new PollingTriggers(this)\n readonly #realtimeTriggers = new Map<string, RealtimeTriggerMethod>()\n readonly #usedIds = new Set<string>()\n #oauth?: OAuth2\n #realtime?: RealtimeSetup\n\n constructor(props: ExtensionProps) {\n this.#props = props\n // Eager: `configItems` is validated as the extension registers, like every other declared slot. Leaving\n // it lazy would let a bad one hide behind handlers that never happen to read config.\n this.#config = ConfigParams.of(props.configItems, { serviceId: props.id, kind: 'extension', slot: 'configItems' })\n }\n\n get id(): string {\n return this.#props.id\n }\n\n get props(): ExtensionProps {\n return this.#props\n }\n\n // The declared `configItems`, mapped once per extension rather than per invocation.\n get config(): ConfigParams {\n return this.#config\n }\n\n get oauth(): OAuth2 | undefined {\n return this.#oauth\n }\n\n get realtime(): RealtimeSetup | undefined {\n return this.#realtime\n }\n\n realtimeTriggers(): RealtimeTriggerMethod[] {\n return [...this.#realtimeTriggers.values()]\n }\n\n findRealtimeTrigger(id: string): RealtimeTriggerMethod | undefined {\n return this.#realtimeTriggers.get(id)\n }\n\n get pollingTriggers(): PollingTriggers {\n return this.#pollingTriggers\n }\n\n // The extension-level colours every item falls back to.\n get appearanceColors(): [string, string] {\n const [start = '', end = ''] = this.props.appearanceColors ?? []\n\n return [start, end]\n }\n\n // \u2500\u2500 authoring-time registration \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n registerDictionary(props: DictionaryProps): DictionaryRef {\n const dictionary = new DictionaryMethod(this, props)\n\n this.#addMethod(dictionary, 'dictionary')\n\n // The ref threaded into `.dictionary(ref)` on a param; carries the auto-derived dependsOn.\n return { id: props.id, dependsOn: dictionary.dependsOn }\n }\n\n registerAction(props: ActionProps): void {\n const action = new ActionMethod(this, props)\n\n this.#addMethod(action, 'action')\n\n this.#registerSampleResultLoader(action, 'sample-result loader')\n\n // `dynamicParams` \u2192 a PARAM_SCHEMA_DEFINITION method that loads extra top-level params from criteria.\n if (action.hasDynamicParams()) {\n this.#addMethod(new DynamicParamsLoaderMethod(this, action), 'dynamic params loader')\n }\n\n // `.dynamicProps()` on a param \u2192 a PARAM_SCHEMA_DEFINITION method per param, loading its inner fields.\n // One per USE: a def shared by two actions yields two methods.\n for (const [field, def] of action.dynamicPropsFields()) {\n this.#addMethod(new DynamicPropsLoaderMethod(this, action, field, def), 'dynamic props loader')\n }\n }\n\n registerPollingTrigger(props: PollingTriggerProps): void {\n // Claim the id before constructing, so a duplicate id is reported ahead of a bad mechanism.\n this.#claimId(props.id, 'polling trigger')\n\n const trigger = new PollingTriggerMethod(this, props)\n\n this.#putMethod(trigger)\n this.#pollingTriggers.add(trigger)\n this.#registerSampleResultLoader(trigger, 'sample-result loader')\n }\n\n registerRealtimeTrigger(props: RealtimeTriggerProps): void {\n this.#claimId(props.id, 'realtime trigger')\n\n const trigger = new RealtimeTriggerMethod(this, props)\n\n this.#putMethod(trigger)\n this.#realtimeTriggers.set(trigger.id, trigger)\n this.#registerSampleResultLoader(trigger, 'sample-result loader')\n }\n\n setupRealtime(props: RealtimeSetupProps): void {\n if (this.#realtime) {\n throw new RealtimeSetupError(this.id, 'setupRealtimeTriggers(...) called more than once')\n }\n\n // The setup validates itself and publishes its SYSTEM methods as it is constructed.\n this.#realtime = new RealtimeSetup(this, props)\n }\n\n setupOAuth2(props: OAuth2Props): void {\n if (this.#oauth) {\n throw new OAuthSetupError(this.id, 'setupOauth2(...) called more than once')\n }\n\n // Like RealtimeSetup, it publishes its SYSTEM methods as it is constructed.\n this.#oauth = new OAuth2(this, props)\n }\n\n // Publish a feature's runtime-owned methods. Called by each subsystem as it is set up, so a SYSTEM method\n // exists exactly when the feature behind it does \u2014 and an id that collides with an author's own item is\n // caught here, loudly, instead of one silently shadowing the other.\n registerSystemMethods(specs: SystemMethodSpec[]): void {\n for (const spec of specs) {\n this.#addMethod(new SystemMethod(this, spec), 'system method')\n }\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Every method this extension publishes, in registration order.\n methods(): ExtensionMethod[] {\n return [...this.#methods.values()]\n }\n\n findMethod(name: string): ExtensionMethod | undefined {\n return this.#methods.get(name)\n }\n\n getMethod(name: string): ExtensionMethod {\n const method = this.findMethod(name)\n\n if (!method) {\n throw new UnknownMethodError(this.id, name)\n }\n\n return method\n }\n\n createContext(options: ExecutionContextOptions = {}): ExecutionContext {\n return new ExecutionContext(this, options)\n }\n\n // Dispatch: find the method, let it check its own input, run it. Every kind \u2014 action, dictionary,\n // generated loader, SYSTEM seam \u2014 arrives here through the same three steps.\n async run(methodName: string, methodData: Record<string, unknown>, ctx: ExecutionContext): Promise<unknown> {\n const method = this.getMethod(methodName)\n\n return method.execute(method.validate(methodData ?? {}), ctx)\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toConfigItems(): ConfigItem[] {\n return toConfigItems(this.config)\n }\n\n toServiceInfo(): SharedExtensionServiceInfo {\n return {\n serviceClassName: this.props.id,\n integrationName: this.props.name,\n integrationIcon: this.props.logo ?? null,\n description: this.props.description || null,\n integrationTriggersScope: this.#realtime?.scope ?? null,\n requireOAuth: this.#oauth ? true : undefined,\n }\n }\n\n /**\n * The published model \u2014 the v2 analogue of jsdoc-parser's `parseJsDocToServiceJson`, and the same\n * `{ serviceInfo, methodsMap }` shape the console consumes for a v1 service.\n *\n * Every method describes itself, so this is one pass with no per-kind branches: what a service publishes\n * is exactly what it registered.\n */\n toDefinition(): SharedExtensionDefinition {\n const methodsMap: Record<string, SharedExtensionMethod> = {}\n\n for (const method of this.methods()) {\n if (method.published) {\n methodsMap[method.name] = method.toModel()\n }\n }\n\n return {\n runnerVersion: 'v2', //TODO: temp\n serviceInfo: this.toServiceInfo(),\n methodsMap,\n configSchema: encodeParams(this.config.scheme),\n }\n }\n\n // \u2500\u2500 queries \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // The `oauth2Scopes` every registered method declares, in registration order. The base set and the\n // dedupe live with the OAuth subsystem that consumes them (see OAuth2.#composeScopes).\n declaredOAuthScopes(): string[] {\n return this.methods().flatMap(method => method.oauth2Scopes)\n }\n\n // \u2500\u2500 private \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Every registered item is keyed by `id` (= the v1 method name, frozen for back-compat), and the ids must\n // be unique across ALL kinds \u2014 including the loader methods the runtime generates from them.\n #claimId(id: string, kind: string): void {\n if (!id) {\n throw new Error(`[flow-extension:${ this.id }] a ${ kind } was registered without an id`)\n }\n\n if (this.#usedIds.has(id)) {\n throw new DuplicateItemIdError(this.id, id, kind)\n }\n\n this.#usedIds.add(id)\n }\n\n #addMethod(method: ExtensionMethod, kind: string): void {\n this.#claimId(method.name, kind)\n this.#putMethod(method)\n }\n\n #putMethod(method: ExtensionMethod): void {\n this.#methods.set(method.name, method)\n }\n\n // A loader `result` fn \u2192 a SAMPLE_RESULT_LOADER method. Actions and both trigger kinds can declare one,\n // and each satisfies LoaderOwner directly.\n #registerSampleResultLoader(owner: LoaderOwner, kind: string): void {\n if (owner.result.isLoader) {\n this.#addMethod(new SampleResultLoaderMethod(this, owner), kind)\n }\n }\n\n}\n", "import { ExtensionNotRegisteredError } from '../errors'\nimport type { Extension } from './extension'\n\n// The process-wide registry of v2 extensions, keyed by service id. Mirrors the v1 `services` map in\n// v1/namespace.ts: a service module registers once at require time (via Flowrunner.createExtension) and the\n// entry persists across the require cache, so re-requiring the same module is a cheap no-op. Version\n// detection (../index.ts) checks `registry.get(serviceId)` after a module is required \u2014 a hit means v2.\n\nexport class ExtensionRegistry {\n readonly #extensions = new Map<string, Extension>()\n\n register(extension: Extension): void {\n this.#extensions.set(extension.id, extension)\n }\n\n get(id: string): Extension | undefined {\n return this.#extensions.get(id)\n }\n\n all(): Extension[] {\n return [...this.#extensions.values()]\n }\n\n /**\n * The extension for `id`, requiring its module first if it hasn't registered yet. Registration is a\n * require-time side effect and the require cache is shared, so this is a no-op once loaded.\n *\n * The shared namespace must already be installed (../namespace) \u2014 callers reach here via ../index.ts,\n * which imports it.\n */\n load(id: string, entryPointPath: string): Extension {\n if (!this.get(id)) {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(entryPointPath)\n }\n\n const extension = this.get(id)\n\n if (!extension) {\n throw new ExtensionNotRegisteredError(id, entryPointPath)\n }\n\n return extension\n }\n\n // Test-only: clear the registry between isolated cases.\n reset(): void {\n this.#extensions.clear()\n }\n}\n\nexport const registry = new ExtensionRegistry()\n\n// Function-shaped accessors, kept because they are the package's published surface.\nexport function getExtension(id: string): Extension | undefined {\n return registry.get(id)\n}\n\nexport function getAllExtensions(): Extension[] {\n return registry.all()\n}\n\nexport function resetRegistry(): void {\n registry.reset()\n}\n", "import { Extension } from './extension'\nimport type { OAuth2Props } from './oauth/types'\nimport type { DictionaryRef } from './params'\nimport type { PollingTriggerProps } from './polling-triggers/types'\nimport type { RealtimeSetupProps, RealtimeTriggerProps } from './realtime-triggers/types'\nimport { registry } from './registry'\nimport type {\n ActionProps,\n AnySchema,\n ApiRequestFn,\n DictionaryProps,\n ExtensionApi,\n ExtensionProps,\n ShapeOf,\n} from './types'\n\n// `Flowrunner.createExtension(props)` \u2014 the v2 factory. Builds the Extension, registers it, and returns the\n// `ext` handle: the authoring-facing fa\u00E7ade whose registrars delegate straight to the Extension, which owns\n// the validation and the runtime-generated loader methods (see ./extension.ts).\n\n// Generic so an author's own types reach their handlers: `configItems` / `initContext` / `helpers` /\n// `apiRequest` are inferred here once, and the returned `ext` threads them into every registrar (which\n// then infers its own params). The body works against the erased props, since none of that matters to the\n// runtime \u2014 the single cast on the way out is where the author's shape is re-attached.\nexport function createExtension<\n TConfigSchema extends AnySchema = AnySchema,\n TContext = Record<string, unknown>,\n THelpers = Record<string, unknown>,\n TApiRequest extends ApiRequestFn = ApiRequestFn,\n>(\n props: ExtensionProps<TConfigSchema, TContext, THelpers, TApiRequest>\n): ExtensionApi<ShapeOf<TConfigSchema, TContext, THelpers, TApiRequest>> {\n const extension = new Extension(props as unknown as ExtensionProps)\n\n const api = {\n dictionary(dictionaryProps: DictionaryProps): DictionaryRef {\n return extension.registerDictionary(dictionaryProps)\n },\n\n addAction(actionProps: ActionProps): void {\n extension.registerAction(actionProps)\n },\n\n addPollingTrigger(triggerProps: PollingTriggerProps): void {\n extension.registerPollingTrigger(triggerProps)\n },\n\n setupRealtimeTriggers(realtimeProps: RealtimeSetupProps): void {\n extension.setupRealtime(realtimeProps)\n },\n\n addRealtimeTrigger(triggerProps: RealtimeTriggerProps): void {\n extension.registerRealtimeTrigger(triggerProps)\n },\n\n setupOauth2(oauthProps: OAuth2Props): void {\n extension.setupOAuth2(oauthProps)\n },\n\n extension,\n }\n\n registry.register(extension)\n\n return api as unknown as ExtensionApi<ShapeOf<TConfigSchema, TContext, THelpers, TApiRequest>>\n}\n", "import nodeCrypto from 'crypto'\n\n// Runtime crypto helpers exposed to service code as `Flowrunner.crypto` \u2014 realtime `verify`/`verifyRequest`\n// signature checks (09-realtime-triggers.md). Services can't `require` node modules, so HMAC, constant-time\n// comparison, and timestamp freshness live here.\n\nexport interface FlowrunnerCrypto {\n hmac(algo: string, key: string, data: string, encoding?: 'hex' | 'base64'): string\n timingSafeEqual(a: unknown, b: unknown): boolean\n ageSeconds(timestamp: string | number): number\n}\n\nexport const crypto: FlowrunnerCrypto = {\n hmac(algo, key, data, encoding = 'hex') {\n return nodeCrypto.createHmac(algo, key).update(data ?? '').digest(encoding)\n },\n\n // Constant-time string comparison; false (not throw) on nullish/length-mismatch so callers can `return`.\n timingSafeEqual(a, b) {\n if (typeof a !== 'string' || typeof b !== 'string') {\n return false\n }\n\n const bufferA = Buffer.from(a)\n const bufferB = Buffer.from(b)\n\n if (bufferA.length !== bufferB.length) {\n return false\n }\n\n try {\n return nodeCrypto.timingSafeEqual(bufferA, bufferB)\n } catch {\n return false\n }\n },\n\n // Seconds since `timestamp` (ISO string, or epoch seconds/ms \u2014 magnitude-detected).\n ageSeconds(timestamp) {\n const numeric = typeof timestamp === 'number' ? timestamp : Date.parse(timestamp) || Number(timestamp)\n const milliseconds = numeric < 1e12 ? numeric * 1000 : numeric\n\n return (Date.now() - milliseconds) / 1000\n },\n}\n", "import { type ServiceConfigItemType, ServiceConfigItemTypes, type ServiceConfigsValues } from './constants'\nimport type { ConfigItem } from './types'\n\ntype ConfigValueAdapter = {\n deserialize: (v: unknown) => unknown,\n isEmpty: (v: unknown) => boolean\n}\n\n// Keyed by item type with a mandatory `default` fallback; only types that need\n// special handling are listed, so a lookup by any ServiceConfigItemType may miss\n// and fall through to `default`.\nconst ConfigValueAdapters: Partial<Record<ServiceConfigItemType, ConfigValueAdapter>> & { default: ConfigValueAdapter } = {\n [ServiceConfigItemTypes.BOOL]: {\n deserialize: value => typeof value === 'string' ? value === 'true' : !!value,\n isEmpty: value => typeof value !== 'boolean',\n },\n\n default: {\n deserialize: value => value,\n isEmpty: value => !value,\n },\n}\n\n/**\n * Resolve the effective config values for a service instance: for each declared item take its value from the\n * single `configs` bag, deserialize it with the type adapter, and fall back to the item's default when empty.\n *\n * ONE bag on purpose. `shared` is a UI directive \u2014 it decides who fills a value in and in which dialog \u2014 so\n * it has no business steering resolution. A service installed as a custom extension has no shared tier at\n * all: the customer fills in every item in one dialog. Whoever runs a *shared* extension merges the two\n * tiers before calling in; everyone else passes the single bag they already have.\n */\nexport function prepareServiceConfig(configItems: ConfigItem[], configs: ServiceConfigsValues = {}): ServiceConfigsValues {\n const targetConfig: ServiceConfigsValues = {}\n\n for (const configItem of configItems) {\n const configName = configItem.name\n const configType = configItem.type\n\n const adapter = ConfigValueAdapters[configType] || ConfigValueAdapters.default\n\n targetConfig[configName] = adapter.deserialize(configs[configName])\n\n if (!adapter.isEmpty(targetConfig[configName])) {\n continue\n }\n\n const defaultConfig = adapter.deserialize(configItem.defaultValue)\n\n if (!adapter.isEmpty(defaultConfig)) {\n targetConfig[configName] = defaultConfig\n }\n }\n\n return targetConfig\n}\n", "import { FlowrunnerContextFiles, type FlowrunnerContextFilesOptions } from './context-files'\n\nexport type FlowrunnerContextOptions = FlowrunnerContextFilesOptions\n\nexport class FlowrunnerContext {\n Files: FlowrunnerContextFiles\n\n constructor(options: FlowrunnerContextOptions) {\n this.Files = new FlowrunnerContextFiles(options)\n }\n}\n", "import { ServiceConfigItemTypes } from '../common/constants'\nimport type { ConfigItem } from '../common/types'\nimport type { ConfigItemSource } from './types'\n\n// Normalize the raw descriptors a v1 service declares via `addService` into the canonical `ConfigItem`\n// shape returned to the console (resolving legacy `hint`/`displayName` aliases and filling defaults).\nexport function normalizeConfigItems(sourceConfigItems?: ConfigItemSource[]): ConfigItem[] {\n return sourceConfigItems?.map(item => ({\n name: item.name,\n type: item.type || ServiceConfigItemTypes.STRING,\n shared: !!item.shared,\n required: !!item.required,\n description: item.description || item.hint || '',\n label: item.label || item.displayName || item.name,\n defaultValue: item.defaultValue,\n options: item.options || [],\n })) || []\n}\n", "// v1-only runtime constants: the method-invocation arg shapes, the OAuth header the v1 service reads\n// tokens from, and the service-class constructor type used by the ServerCode registration seam.\n\nexport type MethodRequestArgumentsMap = Record<string, unknown>\nexport type MethodRequestArgumentsList = unknown[]\n\nexport const OAUTH_ACCESS_TOKEN_HEADER = 'oauth-access-token'\n\nexport type ServiceClassType = new (...args: unknown[]) => object;\n", "import '../namespace'\n\nimport { ServiceConfigItemTypes } from '../common/constants'\nimport type { ConfigItem } from '../common/types'\nimport { normalizeConfigItems } from './config'\nimport { type ServiceClassType } from './constants'\nimport type { ConfigItemSource } from './types'\n\n// The shared global `Flowrunner` is installed by ../namespace (imported above for its side effect). This\n// module owns only the v1 registration seam: `createFlowrunnerSandboxV1` toggles `Flowrunner.ServerCode` for\n// the duration of a v1 require so the required module's `addService(...)` call lands in the `services` map.\n\ninterface RegisteredService {\n ServiceClass: ServiceClassType\n configItems: ConfigItem[]\n}\n\nconst services = new Map<string, RegisteredService>()\n\nexport function createFlowrunnerSandboxV1(serviceId: string, cb: () => void): RegisteredService | undefined {\n global.Flowrunner.ServerCode = {\n addService(ServiceClass: ServiceClassType, sourceConfigItems?: ConfigItemSource[]) {\n services.set(serviceId, {\n ServiceClass,\n configItems: normalizeConfigItems(sourceConfigItems),\n })\n },\n\n ConfigItems: {\n TYPES: ServiceConfigItemTypes,\n },\n }\n\n try {\n cb()\n } finally {\n global.Flowrunner.ServerCode = null\n }\n\n return services.get(serviceId)\n}\n\n", "import { prepareServiceConfig } from '../common/config'\nimport { type ServiceConfigsValues } from '../common/constants'\nimport { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context'\nimport type { FilesApi } from '../common/context-files'\nimport type { ConfigItem } from '../common/types'\nimport {\n type MethodRequestArgumentsList,\n type MethodRequestArgumentsMap,\n OAUTH_ACCESS_TOKEN_HEADER,\n} from './constants'\nimport { createFlowrunnerSandboxV1 } from './namespace'\n\nfunction requireService(serviceId: string, serviceEntryPointPath: string) {\n const registered = createFlowrunnerSandboxV1(serviceId, () => {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(serviceEntryPointPath)\n })\n\n if (!registered?.ServiceClass) {\n throw new Error(`There is no registered ServiceClass serviceEntryPointPath=\"${ serviceEntryPointPath }\"`)\n }\n\n return registered\n}\n\ntype CreateRuntimeContextData = {\n serverURL: string,\n appId: string,\n apiKey: string,\n //\n runtimeKey: string,\n //\n flowId: string,\n executionId: string\n //\n accessToken?: string\n //\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n //\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n\n}\n\n// `flowrunner` is typed by the surface a service actually touches \u2014 `this.flowrunner.Files` \u2014 rather than by\n// the concrete FlowrunnerContext, so a host-supplied client (see `createFiles`) is assignable here too.\ntype FlowrunnerRuntimeContext = {\n flowrunner: { Files: FilesApi }\n httpHeaders: {\n [OAUTH_ACCESS_TOKEN_HEADER]?: string\n }\n}\n\nfunction createRuntimeContext(data: CreateRuntimeContextData): FlowrunnerRuntimeContext {\n const { serverURL, appId, apiKey, runtimeKey, flowId, executionId, accessToken, retrieveNewS3Token } = data\n\n const filesOptions: FlowrunnerContextOptions = {\n serverURL,\n appId,\n apiKey,\n //\n runtimeKey,\n //\n flowId,\n executionId,\n //\n retrieveNewS3Token,\n }\n\n // A v1 service has no `usesFileStorage` opt-in \u2014 `this.flowrunner.Files` is always live \u2014 so a\n // host-supplied client replaces it unconditionally. (v2 consults `createFiles` only when the extension\n // declares `usesFileStorage`, because that is what decides between a real client and the throwing proxy.)\n const flowrunnerContext: FlowrunnerRuntimeContext['flowrunner'] = data.createFiles\n ? { Files: data.createFiles(filesOptions) }\n : new FlowrunnerContext(filesOptions)\n\n const httpHeaders: FlowrunnerRuntimeContext['httpHeaders'] = {}\n\n if (accessToken) {\n httpHeaders[OAUTH_ACCESS_TOKEN_HEADER] = accessToken\n }\n\n return {\n httpHeaders,\n flowrunner: flowrunnerContext,\n }\n}\n\nfunction initServiceInstance(\n serviceId: string,\n serviceEntryPointPath: string,\n configs: ServiceConfigsValues | undefined,\n context: FlowrunnerRuntimeContext\n) {\n const { ServiceClass, configItems } = requireService(serviceId, serviceEntryPointPath)\n\n const config = prepareServiceConfig(configItems, configs)\n\n const service = new ServiceClass(config, context)\n\n Object.assign(service, {\n config,\n flowrunner: context.flowrunner,\n request: {\n context,\n headers: context.httpHeaders,\n },\n })\n\n return service\n}\n\nexport function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[] {\n const { configItems } = requireService(serviceId, serviceEntryPointPath)\n\n return configItems\n}\n\ntype RunServiceMethodData = {\n serviceId: string,\n serviceEntryPointPath: string,\n configs?: ServiceConfigsValues\n methodName: string\n methodData?: MethodRequestArgumentsMap,\n methodArgs?: MethodRequestArgumentsList\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n // Replaces `this.flowrunner.Files` for this invocation. The default talks to the console over HTTP; a host\n // may build its own against different storage (a legacy-service test mocking the Files API, an e2e harness\n // pointing at a local S3) without the runner or the service knowing.\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n executionContext: {\n runtimeKey: string\n accessToken: string\n appId: string\n apiKey: string\n serverURL: string\n flowId: string\n executionId: string\n }\n}\n\nexport async function runServiceMethod(data: RunServiceMethodData): Promise<unknown> {\n const {\n serviceId,\n serviceEntryPointPath,\n configs,\n methodName,\n methodArgs,\n retrieveNewS3Token,\n createFiles,\n } = data\n const { accessToken, runtimeKey, appId, apiKey, serverURL, flowId, executionId } = data.executionContext\n\n const context = createRuntimeContext({\n serverURL,\n appId,\n apiKey,\n //\n runtimeKey,\n //\n flowId,\n executionId,\n //\n accessToken,\n //\n retrieveNewS3Token,\n //\n createFiles,\n })\n\n const serviceInstance = initServiceInstance(serviceId, serviceEntryPointPath, configs, context)\n\n const invoke = (serviceInstance as Record<string, (...args: unknown[]) => unknown>)[methodName]\n\n return invoke.apply(serviceInstance, methodArgs || [])\n}\n\n", "// Public surface of the v2 (declarative, zod-based) extension runtime. Mirrors the v1 entry points\n// (getServiceConfigs / runServiceMethod) plus buildServiceDefinition \u2014 the v2 analogue of jsdoc-parser\n// that produces the same SharedExtensionDefinition model. Version-agnostic callers go through ../index.ts;\n// this module is only reached once a service has been detected as v2.\n\nimport { type ServiceConfigsValues } from '../common/constants'\nimport { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context'\nimport type { FilesApi } from '../common/context-files'\nimport type { ConfigItem } from '../common/types'\nimport type { SharedExtensionDefinition } from './model/model-types'\nimport { registry } from './registry'\nimport type { Logger } from './types'\n\nexport type { ConfigItem } from '../common/types'\nexport type { SharedExtensionDefinition } from './model/model-types'\n\n// The registry and what it holds. `getExtension` is how ../index.ts detects a v2 service; `resetRegistry`\n// lets a test harness isolate cases (@flowrunner/cli/runtime re-exports it).\nexport { ExecutionContext } from './context/execution-context'\nexport { Extension } from './extension'\nexport { getAllExtensions, getExtension, resetRegistry } from './registry'\n\n// The invocation/result shapes a host may need to type a call against the trigger seams.\nexport type { PollingInvocation, PollingResult } from './polling-triggers/types'\nexport type { RealtimeInvocation } from './realtime-triggers/types'\nexport type { HandlerBag, Logger } from './types'\n\nexport interface RunServiceMethodData {\n serviceId: string\n serviceEntryPointPath: string\n configs?: ServiceConfigsValues\n methodName: string\n methodData?: Record<string, unknown>\n methodArgs?: unknown[]\n logger?: Logger\n retrieveNewS3Token: (runtimeKey: string) => Promise<{ filesS3Token: string }>\n // Replaces the file-service client for this invocation. The default talks to the console over HTTP; a\n // host may build its own against different storage (an e2e harness pointing `ctx.files` at a local S3,\n // say) without the runner or the service knowing. Only consulted when the extension declares\n // `usesFileStorage` \u2014 the throwing proxy is unaffected.\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n executionContext: {\n runtimeKey: string\n accessToken: string\n appId: string\n apiKey: string\n serverURL: string\n flowId: string\n executionId: string\n }\n}\n\nexport function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[] {\n return registry.load(serviceId, serviceEntryPointPath).toConfigItems()\n}\n\nexport function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition {\n return registry.load(serviceId, serviceEntryPointPath).toDefinition()\n}\n\n// The stock file-service client: the console's REST API at `{serverURL}/{appId}/{apiKey}/v1/files`.\nconst defaultCreateFiles = (options: FlowrunnerContextOptions): FilesApi => new FlowrunnerContext(options).Files\n\nexport async function runServiceMethod(data: RunServiceMethodData): Promise<unknown> {\n const { serviceId, serviceEntryPointPath, executionContext, retrieveNewS3Token, methodName } = data\n\n const methodData = data.methodData || {}\n\n const { serverURL, appId, apiKey, runtimeKey, flowId, executionId, accessToken } = executionContext\n\n const extension = registry.load(serviceId, serviceEntryPointPath)\n\n const filesOptions: FlowrunnerContextOptions = {\n serverURL,\n appId,\n apiKey,\n runtimeKey,\n flowId,\n executionId,\n retrieveNewS3Token,\n }\n\n const files = extension.props.usesFileStorage\n ? (data.createFiles ?? defaultCreateFiles)(filesOptions)\n : undefined\n\n const ctx = extension.createContext({ configs: data.configs, accessToken, logger: data.logger, files })\n\n return extension.run(methodName, methodData, ctx)\n}\n", "// Version-agnostic entry point for the flow-extension runner.\n//\n// Consumers import { getServiceConfigs, runServiceMethod } from\n// '@flowrunner/flow-extension-runner' without knowing the extension format version. This module requires\n// the service module once (in the v1 ServerCode sandbox so v1 modules register), then branches on whether\n// the module registered a v2 extension: a hit in the v2 registry \u21D2 v2, otherwise v1.\n\nimport './namespace'\n\nimport * as v1 from './v1'\nimport { createFlowrunnerSandboxV1 } from './v1/namespace'\nimport * as v2 from './v2'\n\nexport * from './errors'\nexport type { RunServiceMethodData } from './v2'\n\n// The file-storage contract and its value shapes, so a host can build its own `ctx.files` for\n// `runServiceMethod({ createFiles })` \u2014 see FilesApi in ./common/context-files.\nexport type { FlowrunnerContextOptions } from './common/context'\nexport type {\n DeleteOptions,\n DeleteResult,\n FileInfo,\n FilesApi,\n GetOptions,\n ListOptions,\n ListResult,\n UploadFileOptions,\n UploadResult,\n UsageResult,\n} from './common/context-files'\nexport { FileScope } from './common/context-files'\n\nexport type ExtensionVersion = 'v1' | 'v2'\n\nexport {\n createFlowrunnerSandboxV1,\n}\n\n// Require the module through the v1 sandbox (harmless for v2 \u2014 it just runs createExtension), then detect.\n// The require is cached, so the subsequent v1/v2 call re-requires for free.\nexport function detectVersion(serviceId: string, serviceEntryPointPath: string): ExtensionVersion {\n createFlowrunnerSandboxV1(serviceId, () => {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(serviceEntryPointPath)\n })\n\n return v2.getExtension(serviceId) ? 'v2' : 'v1'\n}\n\nexport function getServiceConfigs(\n serviceId: string,\n serviceEntryPointPath: string\n): ReturnType<typeof v1.getServiceConfigs> {\n return detectVersion(serviceId, serviceEntryPointPath) === 'v2'\n ? v2.getServiceConfigs(serviceId, serviceEntryPointPath)\n : v1.getServiceConfigs(serviceId, serviceEntryPointPath)\n}\n\nexport async function runServiceMethod(data: v2.RunServiceMethodData): Promise<unknown> {\n const frameworkVersion = detectVersion(data.serviceId, data.serviceEntryPointPath)\n\n const result = frameworkVersion === 'v2'\n ? await v2.runServiceMethod(data)\n : await v1.runServiceMethod(data as Parameters<typeof v1.runServiceMethod>[0])\n\n // console.log('got result:', JSON.stringify({\n // frameworkVersion,\n // serviceId: data.serviceId,\n // methodName: data.methodName,\n // methodData: data.methodData,\n // methodArgs: data.methodArgs,\n // result,\n // }, null, 2))\n\n return result\n}\n\n// Build the SharedExtensionDefinition model (serviceInfo + methodsMap). v2 derives it from the declarative\n// definition; v1 services are modeled by the jsdoc-parser, so this only serves v2 (returns null for v1).\nexport function buildServiceDefinition(\n serviceId: string,\n serviceEntryPointPath: string\n): v2.SharedExtensionDefinition | null {\n return detectVersion(serviceId, serviceEntryPointPath) === 'v2'\n ? v2.buildServiceDefinition(serviceId, serviceEntryPointPath)\n : null\n}\n", "import { type SharedExtensionMethodParam } from '@shared/scheme'\n\nimport type { TypedefsMap } from '../types'\n\nconst SCOPE_FIELD: SharedExtensionMethodParam = {\n name : 'scope',\n type : 'String',\n required : false,\n label : 'Scope',\n description : 'Storage scope: WORKSPACE (shared across flows), FLOW (this flow only), EXECUTION (this run only)',\n uiComponent : { type: 'DROPDOWN', options: { values: ['WORKSPACE', 'FLOW', 'EXECUTION'] } },\n defaultValue: 'FLOW',\n}\n\nexport const filesTypeDefs: TypedefsMap = {\n FilesUploadOptions: [\n SCOPE_FIELD,\n {\n name : 'filename',\n type : 'String',\n required : false,\n label : 'Filename',\n description: 'Custom filename (defaults to the original name if omitted)',\n uiComponent: { type: 'SINGLE_LINE_TEXT' },\n },\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URL remains valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'objectTtl',\n type : 'Number',\n required : false,\n label : 'File TTL (seconds)',\n description: 'How long the file is kept in storage (omit for permanent storage)',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'overwrite',\n type : 'Boolean',\n required : false,\n label : 'Overwrite existing',\n description: 'Replace the file if one with the same name already exists',\n uiComponent: { type: 'TOGGLE' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URL',\n description : 'Include a pre-signed download URL in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n ],\n\n FilesListOptions: [\n SCOPE_FIELD,\n {\n name : 'limit',\n type : 'Number',\n required : false,\n label : 'Limit',\n description: 'Maximum number of files to return',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URLs remain valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URLs',\n description : 'Include pre-signed download URLs in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n {\n name : 'cursor',\n type : 'String',\n required : false,\n label : 'Cursor',\n description: 'Pagination cursor from a previous response',\n uiComponent: { type: 'SINGLE_LINE_TEXT' },\n },\n ],\n\n FilesGetOptions: [\n SCOPE_FIELD,\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URL remains valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URL',\n description : 'Include a pre-signed download URL in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n ],\n\n FilesDeleteOptions: [\n SCOPE_FIELD,\n ],\n}\n", "/* eslint-disable @typescript-eslint/no-require-imports */\nimport fs from 'fs'\nimport path from 'path'\n\n// ============================================================================\n// JSDoc programmatic parser (adapted from JS-Code-Runner)\n// ============================================================================\n\nexport interface DocletTag {\n originalTitle: string\n value?: string\n text?: string\n}\n\ninterface DocletParam {\n name: string\n type?: { names?: string[] }\n optional?: boolean\n description?: string\n}\n\ninterface DocletProperty {\n name: string\n type?: { names?: string[] }\n optional?: boolean\n description?: string\n}\n\nexport interface Doclet {\n kind: string\n name: string\n memberof?: string\n scope?: string\n description?: string\n tags?: DocletTag[]\n params?: DocletParam[]\n properties?: DocletProperty[]\n returns?: { type?: { names?: string[] } }[]\n access?: string\n}\n\nfunction resolveJSDocPath(): string {\n const jsDocHolders = require.resolve.paths('jsdoc/lib') || []\n const jsDocPaths = jsDocHolders.map((p: string) => path.join(p, 'jsdoc/lib'))\n\n for (let i = 0; i < jsDocPaths.length; i++) {\n if (fs.existsSync(jsDocPaths[i])) {\n return jsDocPaths[i]\n }\n }\n\n throw new Error('Can not resolve path to JSDoc module.')\n}\n\nconst jsdocPath = resolveJSDocPath()\nconst jsdocModulePath = (mod: string) => path.join(jsdocPath, ...mod.split('/'))\n\nlet _jsdocRequire: NodeRequire\n\nconst jsdocRequire = (modulePath: string) => {\n if (!_jsdocRequire) {\n _jsdocRequire = require('requizzle')({\n infect: true,\n requirePaths: { before: [jsdocPath] },\n })\n\n const Config = _jsdocRequire(jsdocModulePath('jsdoc/config'))\n const env = _jsdocRequire(jsdocModulePath('jsdoc/env'))\n env.conf = new Config().get()\n }\n\n return _jsdocRequire(jsdocModulePath(modulePath))\n}\n\n/**\n * Parse a JS file using jsdoc programmatically and return the doclets array.\n */\nexport function parseJSDoc(filePath: string): Doclet[] {\n const parser = jsdocRequire('jsdoc/src/parser').createParser()\n const handlers = jsdocRequire('jsdoc/src/handlers')\n\n handlers.attachTo(parser)\n\n return parser.parse([filePath])\n}\n", "import {\n type SharedExtensionDefinition,\n type SharedExtensionMetaInfo,\n type SharedExtensionMetaInfoArg,\n type SharedExtensionMethod,\n type SharedExtensionMethodParam,\n type SharedExtensionServiceInfo,\n} from '@shared/scheme'\n\nimport { filesTypeDefs } from './custom-type-defs/files'\nimport type { Doclet, DocletTag } from './lib'\nimport { parseJSDoc } from './lib'\nimport type { TypedefsMap } from './types'\n\n// ============================================================================\n// Internal types\n// ============================================================================\n\ninterface ParsedJSDocsResult {\n serviceInfo: SharedExtensionServiceInfo | null\n methods: MethodInfo[]\n typedefsMap: TypedefsMap\n}\n\ninterface MethodInfo extends Omit<SharedExtensionMethod, 'bodyParams' | 'queryParams' | 'metaInfo'> {\n // name: string\n // description: string\n // returnType: string\n // registerAs: string\n // colorStart: string\n // colorEnd: string\n private: boolean\n // operationName: string\n // customIcon: string\n // category: string\n sampleResult: SharedExtensionMethod['metaInfo']['sampleResult']\n sampleResultLoader: SharedExtensionMethod['metaInfo']['sampleResultLoader']\n route?: string\n routeStr: string\n paramDefs: SharedExtensionMethod['bodyParams']\n}\n\ntype TagCallback = (title: string, value: string, tag: DocletTag) => void\n\n// ============================================================================\n// customTypeDef \u2014 registry of built-in reusable param groups.\n// To add a new domain: create custom-type-defs/<domain>.ts and spread it here.\n// ============================================================================\n\nconst customTypeDef: TypedefsMap = {\n FilesUploadOptions: filesTypeDefs.FilesUploadOptions,\n FilesListOptions: filesTypeDefs.FilesListOptions,\n FilesGetOptions: filesTypeDefs.FilesGetOptions,\n FilesDeleteOptions: filesTypeDefs.FilesDeleteOptions,\n}\n\ntype TagProcessor<T> = (target: T, tagValue: string) => void\n\n// ============================================================================\n// Doclet extraction\n// ============================================================================\n\n/**\n * Find the main service class from doclets.\n * Looks for a class with @integrationName tag, or falls back to the last non-Error class.\n */\nfunction findServiceClassName(doclets: Doclet[]): string | null {\n const withIntegration = doclets\n .find(d => {\n if (d.kind === 'class' && d.tags) {\n return d.tags.find(t => t.originalTitle === 'integrationName')\n }\n })\n\n if (withIntegration) {\n return withIntegration.name\n }\n\n return null\n}\n\n/**\n * Parse a JS file, extract the service class, and return normalized doclets.\n */\nfunction parseJSDocs(filePath: string): ParsedJSDocsResult {\n const doclets = parseJSDoc(filePath)\n const className = findServiceClassName(doclets)\n\n let serviceInfo: SharedExtensionServiceInfo | null = null\n\n const methods: MethodInfo[] = []\n\n const typedefsMap: TypedefsMap = {}\n\n doclets.forEach(d => {\n if (d.kind === 'class' && d.name === className) {\n serviceInfo = composeServiceInfo(d)\n } else if (d.kind === 'function' && d.memberof === className && d.scope === 'instance') {\n methods.push(composeMethod(d))\n } else if (d.kind === 'typedef') {\n const typedefParams = collectTypedef(d)\n\n if (typedefParams) {\n typedefsMap[d.name] = typedefParams\n }\n }\n })\n\n return {\n serviceInfo,\n methods,\n // Extension-defined typedefs override built-ins so authors can customise if needed\n typedefsMap: { ...customTypeDef, ...typedefsMap },\n }\n}\n\nconst ServiceInfoTagsProcessors: Record<string, TagProcessor<SharedExtensionServiceInfo>> = {\n integrationName: (serviceInfo, tagValue) => {\n serviceInfo.integrationName = tagValue || undefined as unknown as string\n },\n\n integrationIcon: (serviceInfo, tagValue) => {\n serviceInfo.integrationIcon = tagValue || null\n },\n\n requireOAuth: serviceInfo => {\n serviceInfo.requireOAuth = true\n },\n\n integrationTriggersScope: (serviceInfo, tagValue) => {\n serviceInfo.integrationTriggersScope = tagValue || null\n },\n}\n\nfunction composeServiceInfo(d: Doclet): SharedExtensionServiceInfo {\n const serviceInfo: SharedExtensionServiceInfo = {\n serviceClassName: d.name,\n integrationName: d.name,\n integrationIcon: null,\n requireOAuth: undefined,\n integrationTriggersScope: null,\n }\n\n iterateTags(d.tags, (tagName, tagValue) => {\n if (ServiceInfoTagsProcessors[tagName]) {\n ServiceInfoTagsProcessors[tagName](serviceInfo, tagValue)\n }\n })\n\n return serviceInfo\n}\n\nfunction iterateTags(tags: DocletTag[] | undefined, cb: TagCallback): void {\n if (tags) {\n tags.forEach(tag => {\n const title = tag.originalTitle\n const value = tag.value || tag.text || ''\n\n cb(title, value, tag)\n })\n }\n}\n\nconst MethodTagsProcessors: Record<string, TagProcessor<MethodInfo>> = {\n paramDef: (methodInfo, tagValue) => {\n if (tagValue) {\n const parsedValue = parseJSON(tagValue)\n\n if (parsedValue) {\n methodInfo.paramDefs.push(parsedValue as SharedExtensionMethodParam)\n }\n }\n },\n\n route: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.route = tagValue\n }\n },\n\n registerAs: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.registerAs = tagValue\n }\n },\n\n operationName: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.operationName = tagValue\n }\n },\n\n customIcon: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.customIcon = tagValue\n }\n },\n\n category: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.category = tagValue\n }\n },\n\n description: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.description = tagValue\n }\n },\n\n appearanceColor: (methodInfo, tagValue) => {\n if (tagValue) {\n const colors = extractColors(tagValue)\n\n methodInfo.colorStart = colors.colorStart\n methodInfo.colorEnd = colors.colorEnd\n }\n },\n\n private: methodInfo => {\n methodInfo.private = true\n },\n\n sampleResult: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.sampleResult = parseJSON(tagValue)\n }\n },\n\n sampleResultLoader: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.sampleResultLoader = parseJSON(tagValue) as SharedExtensionMetaInfo['sampleResultLoader']\n }\n },\n}\n\nfunction composeMethod(m: Doclet): MethodInfo {\n const methodInfo: MethodInfo = {\n name: m.name,\n description: m.description || '',\n returnType: mapReturnType(m.returns?.[0].type?.names?.[0]),\n registerAs: '',\n colorStart: '',\n colorEnd: '',\n private: m.access === 'private',\n operationName: m.name,\n customIcon: '',\n category: '',\n sampleResult: null,\n sampleResultLoader: null,\n routeStr: '',\n paramDefs: [],\n }\n\n if (m.params) {\n m.params.forEach(p => {\n methodInfo.paramDefs.push({\n name: p.name,\n type: p.type?.names?.[0] || 'String',\n required: !p.optional,\n })\n })\n }\n\n iterateTags(m.tags, (tagName, tagValue) => {\n if (MethodTagsProcessors[tagName]) {\n MethodTagsProcessors[tagName](methodInfo, tagValue)\n }\n })\n\n return methodInfo\n}\n\n// ============================================================================\n// Type mapping\n// ============================================================================\n\nconst PRIMITIVES = ['String', 'Object', 'Boolean', 'Number']\n\nconst ParamTypesMap: Record<string, string> = {\n String: 'STRING',\n Object: 'OBJECT',\n Boolean: 'BOOLEAN',\n Number: 'NUMBER',\n}\n\nfunction mapParamType(type: string | undefined): string {\n if (!type) {\n return 'STRING'\n }\n\n if (type.startsWith('Array')) {\n return 'LIST'\n }\n\n return ParamTypesMap[type] || 'STRING'\n}\n\nfunction mapReturnType(type: string | undefined): string {\n if (type) {\n if (type === 'Array' || type.startsWith('Array.') || type.startsWith('Array<')) return 'LIST'\n if (type === 'Object') return 'OBJECT'\n if (type === 'String') return 'STRING'\n }\n\n return 'VOID'\n}\n\n// ============================================================================\n// Typedef map (from @paramDef tags on typedefs)\n// ============================================================================\n\nfunction collectTypedef(d: Doclet): SharedExtensionMethodParam[] | undefined {\n const defs: SharedExtensionMethodParam[] = []\n\n iterateTags(d.tags, (title, value) => {\n if (title === 'paramDef') {\n const parsedValue = parseJSON(value)\n\n if (parsedValue) {\n defs.push(parsedValue as SharedExtensionMethodParam)\n }\n }\n })\n\n if (d.properties) {\n d.properties.forEach(property => {\n // JSDoc may omit the type on a @property line \u2014 preserved as-is at runtime\n const type = property?.type?.names?.[0] as string\n\n defs.push({\n name: property.name,\n required: !property.optional,\n description: property.description,\n type,\n })\n })\n }\n\n if (defs.length > 0) {\n return defs\n }\n}\n\n// ============================================================================\n// Param building (resolves typedefs)\n// ============================================================================\n\nfunction buildParam(paramDef: SharedExtensionMethodParam, typedefsMap: TypedefsMap, nested = false): SharedExtensionMethodParam {\n const isCustomType = !nested &&\n paramDef.type &&\n !PRIMITIVES.includes(paramDef.type) &&\n !paramDef.type.startsWith('Array')\n\n let properties: SharedExtensionMethodParam[] | undefined\n\n if (isCustomType && typedefsMap[paramDef.type!]) {\n let subDefs = typedefsMap[paramDef.type!]\n\n if (paramDef.include?.length) {\n const includeSet = new Set(paramDef.include)\n\n subDefs = subDefs.filter(sd => includeSet.has(sd.name))\n }\n\n if (subDefs.length > 0) {\n properties = subDefs.map(sp => buildParam(sp, typedefsMap, true))\n }\n }\n\n const param: SharedExtensionMethodParam = {\n name: paramDef.name,\n required: paramDef.required || false,\n description: paramDef.description || '',\n type: isCustomType ? 'OBJECT' : mapParamType(paramDef.type),\n }\n\n if (nested) {\n if (paramDef.label !== undefined) {\n param.label = paramDef.label\n }\n\n if (paramDef.uiComponent !== undefined) {\n param.uiComponent = paramDef.uiComponent\n }\n\n if (paramDef.dependsOn !== undefined) {\n param.dependsOn = paramDef.dependsOn\n }\n\n if (paramDef.dictionary !== undefined) {\n param.dictionary = paramDef.dictionary\n }\n\n if (paramDef.defaultValue !== undefined) {\n param.defaultValue = paramDef.defaultValue\n }\n }\n\n if (properties && properties.length > 0) {\n param.properties = properties\n }\n\n if (param.type === 'LIST') {\n param.items = { type: 'OBJECT' }\n }\n\n return param\n}\n\n// ============================================================================\n// MetaInfo args\n// ============================================================================\n\nfunction buildMetaInfoArgs(paramDefs: SharedExtensionMethodParam[], typedefsMap: TypedefsMap): Record<string, SharedExtensionMetaInfoArg> {\n const args: Record<string, SharedExtensionMetaInfoArg> = {}\n\n for (const pd of paramDefs) {\n const isCustomType = pd.type &&\n !PRIMITIVES.includes(pd.type) &&\n !pd.type.startsWith('Array')\n\n if (isCustomType && typedefsMap[pd.type!]) {\n const entry: SharedExtensionMetaInfoArg = {}\n if (pd.label) entry.label = pd.label\n args[pd.name] = entry\n continue\n }\n\n const entry: SharedExtensionMetaInfoArg = {}\n\n if (pd.label) entry.label = pd.label\n if (pd.dictionary) entry.dictionary = pd.dictionary\n if (pd.dependsOn && pd.dependsOn.length > 0) entry.dependsOn = pd.dependsOn\n if (pd.uiComponent) entry.uiComponent = pd.uiComponent\n\n args[pd.name] = entry\n }\n\n return args\n}\n\n// ============================================================================\n// Colors\n// ============================================================================\n\nfunction extractColors(colorStr: string): { colorStart: string; colorEnd: string } {\n if (!colorStr) {\n return { colorStart: '', colorEnd: '' }\n }\n\n const colors = colorStr.split(/[,\\s]+/).map(c => c.trim()).filter(Boolean)\n\n return {\n colorStart: colors[0] || '',\n colorEnd: colors[1] || colors[0] || '',\n }\n}\n\n// ============================================================================\n// Service JSON builder \u2014 converts normalized parseJSDocs output to service JSON\n// ============================================================================\n\nfunction parseJSON(str: string): unknown {\n try {\n return JSON.parse(str)\n } catch {\n return null\n }\n}\n\nexport function parseJsDocToServiceJson(entryPoint: string): SharedExtensionDefinition {\n const { serviceInfo, methods, typedefsMap } = parseJSDocs(entryPoint)\n\n const methodsMap: SharedExtensionDefinition['methodsMap'] = {}\n\n for (const method of methods) {\n if (method.private) {\n continue\n }\n\n const {\n name,\n route,\n registerAs,\n colorStart,\n colorEnd,\n operationName,\n customIcon,\n category,\n description,\n sampleResult,\n sampleResultLoader,\n paramDefs,\n returnType,\n } = method\n\n const isSystem = registerAs === 'SYSTEM'\n\n // Determine HTTP method from @route for param placement\n const httpMethod = route\n ? route.split(/\\s+/)[0].toUpperCase()\n : name.startsWith('get') ? 'GET' : 'POST'\n\n const isQueryPlacement = httpMethod === 'GET'\n\n // Build params\n const params = paramDefs.map(pd => buildParam(pd, typedefsMap))\n\n const queryParams = isQueryPlacement ? params : []\n const bodyParams = isQueryPlacement ? [] : params\n\n // Build metaInfo \u2014 only from @paramDef, not from standard @param fallback\n const metaInfoArgs = paramDefs.length > 0\n ? buildMetaInfoArgs(paramDefs, typedefsMap)\n : {}\n\n methodsMap[name] = {\n colorStart,\n colorEnd,\n queryParams, // todo remove me\n bodyParams,\n customIcon: isSystem ? undefined : customIcon,\n registerAs,\n category,\n metaInfo: {\n args: metaInfoArgs,\n sampleResult: isSystem ? undefined : sampleResult,\n sampleResultLoader: (isSystem ? undefined : sampleResultLoader) as SharedExtensionMethod['metaInfo']['sampleResultLoader'],\n },\n returnType,\n description,\n operationName,\n name,\n }\n }\n\n return {\n runnerVersion: 'v1', //TODO: temp\n methodsMap,\n serviceInfo: serviceInfo!,\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,4DAAAA,UAAAC,SAAA;AAAA,QAAI,SAAS,QAAQ,QAAQ,EAAE;AAC/B,QAAI,OAAO,QAAQ,MAAM;AAEzB,IAAAA,QAAO,UAAU;AACjB,aAAS,gBAAgB;AACvB,WAAK,SAAS;AACd,WAAK,WAAW;AAChB,WAAK,cAAc,OAAO;AAC1B,WAAK,cAAc;AAEnB,WAAK,uBAAuB;AAC5B,WAAK,YAAY;AACjB,WAAK,kBAAkB,CAAC;AAAA,IAC1B;AACA,SAAK,SAAS,eAAe,MAAM;AAEnC,kBAAc,SAAS,SAAS,QAAQ,SAAS;AAC/C,UAAI,gBAAgB,IAAI,KAAK;AAE7B,gBAAU,WAAW,CAAC;AACtB,eAAS,UAAU,SAAS;AAC1B,sBAAc,MAAM,IAAI,QAAQ,MAAM;AAAA,MACxC;AAEA,oBAAc,SAAS;AAEvB,UAAI,WAAW,OAAO;AACtB,aAAO,OAAO,WAAW;AACvB,sBAAc,YAAY,SAAS;AACnC,eAAO,SAAS,MAAM,QAAQ,SAAS;AAAA,MACzC;AAEA,aAAO,GAAG,SAAS,WAAW;A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QAAI,OAAO,SAAS;AAClB;AAAA,IACF;AAEA,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI;AAEJ,UAAM,WAAW,eAAe;AAGhC,UAAM,aAAa,QACf,MAAM,MAAM,KAAK,EAAE,CAAC,EAAE,YAAY,IAClC,KAAK,WAAW,KAAK,IAAI,QAAQ;AAErC,UAAM,mBAAmB,eAAe;AAGxC,UAAM,SAAS,UAAU,IAAI,QAAM,WAAW,IAAI,WAAW,CAAC;AAE9D,UAAM,cAAc,mBAAmB,SAAS,CAAC;AACjD,UAAM,aAAa,mBAAmB,CAAC,IAAI;AAG3C,UAAM,eAAe,UAAU,SAAS,IACpC,kBAAkB,WAAW,WAAW,IACxC,CAAC;AAEL,eAAW,IAAI,IAAI;AAAA,MACjB;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MACA;AAAA,MACA,YAAY,WAAW,SAAY;AAAA,MACnC;AAAA,MACA;AAAA,MACA,UAAU;AAAA,QACR,MAAM;AAAA,QACN,cAAc,WAAW,SAAY;AAAA,QACrC,oBAAqB,WAAW,SAAY;AAAA,MAC9C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL,eAAe;AAAA;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;",
6
- "names": ["exports", "module", "exports", "module", "stream", "exports", "module", "exports", "module", "exports", "charset", "path", "extension", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "concatty", "slicy", "bound", "Empty", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "isNaN", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "undefined", "doEval", "stringToPath", "getBaseIntrinsic", "require_shams", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "Buffer", "exports", "module", "path", "fs", "crypto", "Buffer", "FormData", "exports", "o", "castArray", "isObject", "isFormData", "FormData", "isStream", "isNodeJS", "isBrowser", "path", "isBytes", "isBlob", "isWebFormData", "exports", "o", "hint", "_wrapNativeSuper", "Class", "_construct", "Parent", "args", "_setPrototypeOf", "p", "_getPrototypeOf", "ResponseError", "TLSError", "text", "exports", "path", "rejectWithError", "_send", "Buffer", "body", "headers", "send", "exports", "o", "hint", "EventEmitter", "exports", "stringify", "value", "exports", "o", "_getRequireWildcardCache", "nodeInterop", "r", "hint", "_setPrototypeOf", "p", "_getPrototypeOf", "Request", "path", "_loop", "formKey", "unwrap", "setTimeout", "unwrapBody", "exports", "path", "headers", "exports", "module", "path", "buildServiceDefinition", "getServiceConfigs", "runServiceMethod", "import_backendless_request", "hint", "meta", "path", "text", "path", "EXPECTED", "path", "fail", "fail", "fail", "import_zod", "baseZod", "baseZod", "text", "toJsonValue", "toJsonValue", "WRAPPERS", "toJsonValue", "fail", "fail", "scope", "BLRequest", "ttl", "generateUrl", "hint", "fail", "crypto", "path", "path", "import_crypto", "crypto", "nodeCrypto", "BLRequest", "crypto", "getServiceConfigs", "runServiceMethod", "getServiceConfigs", "runServiceMethod", "buildServiceDefinition", "import_path", "path", "fs", "entry"]
3
+ "sources": ["../../../node_modules/backendless-request/lib/utils.js", "../../../node_modules/backendless-request/lib/error.js", "../../../node_modules/backendless-request/lib/client-node.js", "../../../node_modules/backendless-request/lib/event-emitter.js", "../../../node_modules/backendless-request/lib/qs.js", "../../../node_modules/backendless-request/lib/request.js", "../../../node_modules/backendless-request/lib/client-browser.js", "../../../node_modules/backendless-request/lib/index.js", "../src/runtime/index.ts", "../../../flow-extension-runner/src/namespace.ts", "../../../flow-extension-runner/src/errors/base.ts", "../../../flow-extension-runner/src/errors/codes.ts", "../../../flow-extension-runner/src/errors/errors.ts", "../../../flow-extension-runner/src/v2/loaders/loader-owner.ts", "../../../flow-extension-runner/src/v2/params/schema/assert-object-schema.ts", "../../../flow-extension-runner/src/v2/params/widget-types.ts", "../../../flow-extension-runner/src/v2/params/schema/introspect.ts", "../../../flow-extension-runner/src/v2/params/schema/assert-supported-schema.ts", "../../../flow-extension-runner/src/v2/params/schema/dates.ts", "../../../flow-extension-runner/src/v2/params/schema/labels.ts", "../../../flow-extension-runner/src/v2/params/schema/field-plan.ts", "../../../flow-extension-runner/src/v2/params/schema/coerce.ts", "../../../flow-extension-runner/src/v2/params/schema/defaults.ts", "../../../flow-extension-runner/src/v2/params/schema/messages.ts", "../../../flow-extension-runner/src/v2/params/schema/normalize.ts", "../../../flow-extension-runner/src/v2/params/schema/parse.ts", "../../../flow-extension-runner/src/v2/params/params.ts", "../../../flow-extension-runner/src/v2/params/config-params.ts", "../../../flow-extension-runner/src/v2/params/method-params.ts", "../../../flow-extension-runner/src/v2/params/zod.ts", "../../../flow-extension-runner/src/v2/params/files-options.ts", "../../../flow-extension-runner/src/v2/params/json/values.ts", "../../../flow-extension-runner/src/v2/params/json/checks.ts", "../../../flow-extension-runner/src/v2/params/json/types.ts", "../../../flow-extension-runner/src/v2/params/json/decode.ts", "../../../flow-extension-runner/src/v2/params/json/encode.ts", "../../../flow-extension-runner/src/v2/context/method-input.ts", "../../../flow-extension-runner/src/v2/method.ts", "../../../flow-extension-runner/src/common/constants.ts", "../../../flow-extension-runner/src/v2/model/field-mapper.ts", "../../../flow-extension-runner/src/v2/model/method-model.ts", "../../../flow-extension-runner/src/v2/model/params-model.ts", "../../../flow-extension-runner/src/v2/result.ts", "../../../flow-extension-runner/src/v2/actions/action-method.ts", "../../../flow-extension-runner/src/common/context-files.ts", "../../../flow-extension-runner/src/v2/context/logger.ts", "../../../flow-extension-runner/src/v2/context/proxies.ts", "../../../flow-extension-runner/src/v2/context/execution-context.ts", "../../../flow-extension-runner/src/v2/dictionaries/payload-schema.ts", "../../../flow-extension-runner/src/v2/dictionaries/dictionary-method.ts", "../../../flow-extension-runner/src/v2/loaders/payload-schema.ts", "../../../flow-extension-runner/src/v2/loaders/loader-method.ts", "../../../flow-extension-runner/src/v2/oauth/oauth2.ts", "../../../flow-extension-runner/src/v2/oauth/method-names.ts", "../../../flow-extension-runner/src/v2/oauth/system-params.ts", "../../../flow-extension-runner/src/v2/polling-triggers/method-names.ts", "../../../flow-extension-runner/src/v2/polling-triggers/system-params.ts", "../../../flow-extension-runner/src/v2/polling-triggers/polling-triggers.ts", "../../../flow-extension-runner/src/v2/path.ts", "../../../flow-extension-runner/src/v2/polling-triggers/mechanisms.ts", "../../../flow-extension-runner/src/v2/polling-triggers/trigger-method.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/method-names.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/system-params.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/verify.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/realtime-setup.ts", "../../../flow-extension-runner/src/v2/realtime-triggers/trigger-method.ts", "../../../flow-extension-runner/src/v2/system-method.ts", "../../../flow-extension-runner/src/v2/extension.ts", "../../../flow-extension-runner/src/v2/registry.ts", "../../../flow-extension-runner/src/v2/create-extension.ts", "../../../flow-extension-runner/src/v2/crypto.ts", "../../../flow-extension-runner/src/common/config.ts", "../../../flow-extension-runner/src/common/context.ts", "../../../flow-extension-runner/src/v1/config.ts", "../../../flow-extension-runner/src/v1/constants.ts", "../../../flow-extension-runner/src/v1/namespace.ts", "../../../flow-extension-runner/src/v1/service.ts", "../../../flow-extension-runner/src/v2/index.ts", "../../../flow-extension-runner/src/index.ts", "../../../jsdoc-parser/src/custom-type-defs/files.ts", "../../../jsdoc-parser/src/lib.ts", "../../../jsdoc-parser/src/index.ts"],
4
+ "sourcesContent": ["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.blobToFormPart = blobToFormPart;\nexports.castArray = void 0;\nexports.decodeBytes = decodeBytes;\nexports.ensureEncoding = ensureEncoding;\nexports.getFormData = getFormData;\nexports.isWebFormData = exports.isStream = exports.isObject = exports.isNodeJS = exports.isFormData = exports.isBytes = exports.isBrowser = exports.isBlob = void 0;\nexports.normalizeFormPart = normalizeFormPart;\nexports.normalizeTrailingSlashInPath = normalizeTrailingSlashInPath;\nexports.setFormData = setFormData;\nexports.toBytes = toBytes;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/**\n * Casts `value` as an array if it's not one.\n * Equivalent to lodash/castArray\n */\nvar castArray = exports.castArray = function castArray(value) {\n return Array.isArray(value) ? value : [value];\n};\nvar isObject = exports.isObject = function isObject(value) {\n return null != value && _typeof(value) === 'object';\n};\nvar isFormData = exports.isFormData = function isFormData(value) {\n if (!value) {\n return false;\n }\n var FormData = getFormData();\n if (value instanceof FormData) {\n return true;\n }\n return value && value.constructor && value.constructor.toString().trim().indexOf('function FormData') === 0;\n};\nvar isStream = exports.isStream = function isStream(value) {\n var stream = require('stream');\n return value instanceof stream.Stream;\n};\nvar isNodeJS = exports.isNodeJS = function isNodeJS() {\n return typeof process !== 'undefined' && process.versions != null && process.versions.node != null;\n};\nvar isBrowser = exports.isBrowser = function isBrowser() {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n};\nvar CustomFormData = null;\nfunction getFormData() {\n if (CustomFormData) {\n return CustomFormData;\n }\n return isNodeJS() || typeof FormData === 'undefined' ? require('form-data') : FormData;\n}\nfunction setFormData(value) {\n CustomFormData = value;\n}\n\n// @ : / # ? = $ & +\nvar SAFE_CHAR_CODES = ['%40', '%3A', '%2F', '%23', '%3F', '%3D', '%24', '%26', '%2B'];\nfunction safeEscape(str, charCodes) {\n var _char = charCodes[0];\n if (_char) {\n var tokens = str.split(_char).map(function (p) {\n return safeEscape(p, charCodes.slice(1));\n });\n return tokens.join(_char);\n }\n return encodeURI(str);\n}\nfunction ensureComponentEncoding(uriComponent) {\n if (uriComponent === decodeURI(uriComponent)) {\n return safeEscape(uriComponent, [].concat(SAFE_CHAR_CODES));\n }\n return uriComponent;\n}\nfunction encodePath(path) {\n return path.split('/').map(ensureComponentEncoding).join('/');\n}\nfunction ensureEncoding(path) {\n try {\n var url = new URL(path);\n return url.origin + encodePath(normalizeTrailingSlashInPath(path, url)) + url.search;\n } catch (_unused) {\n return encodePath(path);\n }\n}\nfunction normalizeTrailingSlashInPath(originPath, _ref) {\n var pathname = _ref.pathname;\n if (originPath.includes('?')) {\n originPath = originPath.split('?')[0];\n }\n var keepTrailingSlash = originPath.endsWith('/');\n return !keepTrailingSlash && pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;\n}\nvar isBytes = exports.isBytes = function isBytes(value) {\n return typeof Uint8Array !== 'undefined' && value instanceof Uint8Array;\n};\n\n/**\n * Normalizes a raw response body to bytes.\n *\n * A Buffer is a Uint8Array, so the check a caller needs is `instanceof Uint8Array` in both\n * environments, and the value we already have is handed back as is - no copy, these are file\n * payloads and a single one is routinely tens of MB.\n *\n * Everything else can only come from an empty response or from a replaced `Request.send`,\n * both of them cheap to convert. Anything that is not convertible is a broken contract and\n * throws rather than silently uploading wrong bytes.\n *\n * @param {*} value\n * @returns {Buffer|Uint8Array}\n */\nfunction toBytes(value) {\n if (isBytes(value)) {\n return value;\n }\n var hasBuffer = typeof Buffer !== 'undefined' && typeof Buffer.from === 'function';\n if (value === undefined || value === null || value === '') {\n return hasBuffer ? Buffer.alloc(0) : new Uint8Array(0);\n }\n if (typeof value === 'string') {\n return hasBuffer ? Buffer.from(value, 'utf8') : new TextEncoder().encode(value);\n }\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return hasBuffer ? Buffer.from(value) : new Uint8Array(value);\n }\n throw new Error('The response body can not be represented as bytes, ' + \"received \".concat(value === null ? 'null' : _typeof(value), \". \") + 'This happens when \"Request.send\" is replaced with an implementation ' + 'that does not return the raw body for a request made with \"toBuffer()\".');\n}\n\n/**\n * Decodes bytes to utf8 text, anything which is not bytes is passed through.\n *\n * Used for the error body of a raw request: a browser gets it as a Uint8Array, because\n * `responseType` is set for the whole response, and `String()` on a Uint8Array joins the byte\n * values with commas instead of decoding them\n *\n * @param {*} value\n * @returns {*}\n */\nfunction decodeBytes(value) {\n if (!isBytes(value)) {\n return value;\n }\n if (typeof Buffer !== 'undefined' && Buffer.isBuffer(value)) {\n return value.toString('utf8');\n }\n if (typeof TextDecoder !== 'undefined') {\n return new TextDecoder('utf8').decode(value);\n }\n return value;\n}\n\n/**\n * A Blob or a File, duck typed so that an instance coming from another realm is recognized too\n */\nvar isBlob = exports.isBlob = function isBlob(value) {\n return !!value && _typeof(value) === 'object' && typeof value.stream === 'function' && typeof value.arrayBuffer === 'function' && typeof value.size === 'number';\n};\n\n/**\n * The FormData of the WHATWG spec - the Node 18+ global one, or the browser one.\n *\n * The `form-data` npm package, which is what `Request.FormData` is in Node js, is a different\n * class with a different API and it is recognized by `isFormData`\n */\nvar isWebFormData = exports.isWebFormData = function isWebFormData(value) {\n return !!value && typeof value.append === 'function' && typeof value.getAll === 'function' && typeof value.forEach === 'function' && typeof value.getHeaders !== 'function';\n};\n\n/**\n * Turns a Blob or a File into something the `form-data` package can stream.\n *\n * The package accepts a Buffer or a stream and treats any other object as stream like, which\n * makes it throw \"source.on is not a function\" from inside `combined-stream` at append time.\n * A web stream is not that either, `Readable.fromWeb` bridges the two.\n *\n * `knownLength` is what keeps `form.getLength()` synchronous and the content-length header\n * correct, and the filename follows what a browser sends for a nameless Blob\n *\n * @param {Blob|File} blob\n * @returns {{ value: Object, options: Object }}\n */\nfunction blobToFormPart(blob) {\n var _require = require('stream'),\n Readable = _require.Readable;\n if (typeof Readable.fromWeb !== 'function') {\n throw new Error('A Blob can only be added to a form on Node 18 or newer, ' + 'pass a Buffer or a stream instead.');\n }\n var options = {\n knownLength: blob.size,\n filename: blob.name || 'blob'\n };\n if (blob.type) {\n options.contentType = blob.type;\n }\n return {\n value: Readable.fromWeb(blob.stream()),\n options: options\n };\n}\n\n/**\n * Prepares a value for `FormData#append` of the `form-data` package.\n *\n * Everything the package can not stream is either converted here or reported with an error which\n * names the field, instead of the \"source.on is not a function\"/\"Illegal invocation\" thrown from\n * deep inside `combined-stream` with nothing pointing at the value which caused it\n *\n * @param {String} key\n * @param {*} value\n * @returns {{ value: *, options: Object|undefined }}\n */\nfunction normalizeFormPart(key, value) {\n if (isBlob(value)) {\n return blobToFormPart(value);\n }\n if (isBytes(value) && typeof Buffer !== 'undefined' && !Buffer.isBuffer(value)) {\n // a Uint8Array is not a Buffer and the package treats it as a stream, the view is\n // wrapped without copying the bytes\n return {\n value: Buffer.from(value.buffer, value.byteOffset, value.byteLength)\n };\n }\n if (isObject(value) && !isStream(value) && !(typeof Buffer !== 'undefined' && Buffer.isBuffer(value))) {\n throw new Error(\"The form field \\\"\".concat(key, \"\\\" can not be sent, \") + \"expected a Buffer, a stream, a Blob or a primitive value, received \".concat(describeValue(value), \".\"));\n }\n return {\n value: value\n };\n}\nfunction describeValue(value) {\n if (Array.isArray(value)) {\n return 'an Array';\n }\n var name = value.constructor && value.constructor.name;\n return name ? \"an instance of \".concat(name) : 'an object';\n}", "\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.TLSError = exports.ResponseError = void 0;\nexports.toTLSError = toTLSError;\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nvar ResponseError = exports.ResponseError = /*#__PURE__*/function (_Error) {\n _inherits(ResponseError, _Error);\n var _super = _createSuper(ResponseError);\n function ResponseError(response) {\n var _this;\n _classCallCheck(this, ResponseError);\n _this = _super.call(this);\n var error = parseError(response);\n _this.message = error.message || error;\n _this.code = error.code;\n _this.status = response.status;\n _this.headers = response.headers;\n _this.body = response.body;\n return _this;\n }\n return _createClass(ResponseError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nfunction parseError(res) {\n if (res.status === 502) {\n return 'No connection with server';\n }\n return res.body || \"Status Code \".concat(res.status, \" (\").concat(res.statusText, \")\");\n}\n\n/**\n * An error which is raised when a TLS connection can not be established.\n *\n * A raw TLS failure surfaces as an opaque socket error (ECONNRESET, EPROTO, an OpenSSL code),\n * which makes the most common operational failures - a missing, rejected or expired client\n * certificate - indistinguishable from a network problem.\n *\n * Never put any part of the certificate, the private key or the passphrase into the message,\n * the reasons below are the only text this error is built from.\n */\nvar TLSError = exports.TLSError = /*#__PURE__*/function (_Error2) {\n _inherits(TLSError, _Error2);\n var _super2 = _createSuper(TLSError);\n function TLSError(reason, cause) {\n var _this2;\n _classCallCheck(this, TLSError);\n _this2 = _super2.call(this, cause && cause.code ? \"\".concat(reason, \" (\").concat(cause.code, \")\") : reason);\n _this2.name = 'TLSError';\n _this2.code = cause && cause.code || 'TLS_ERROR';\n if (cause) {\n _this2.cause = cause;\n }\n return _this2;\n }\n return _createClass(TLSError);\n}( /*#__PURE__*/_wrapNativeSuper(Error)); // the local certificate/key material can not even be loaded, the connection is never attempted\nvar SECURE_CONTEXT_REASONS = [{\n match: /bad decrypt|bad password read|wrong final block length/i,\n reason: 'The private key could not be decrypted, the passphrase is missing or incorrect.'\n}, {\n match: /no start line|not enough data|PEM_read_bio|DECODER routines/i,\n reason: 'The client certificate or the private key is not valid PEM.'\n}, {\n match: /key values mismatch/i,\n reason: 'The private key does not match the client certificate.'\n}];\n\n// the server refused our client certificate during the handshake\nvar HANDSHAKE_ALERT_REASONS = [{\n // the server demands a client certificate before it looks at anything else, including auth\n match: /certificate[ _]required/i,\n reason: 'The server requires a client certificate and none was supplied.'\n}, {\n match: /certificate expired/i,\n reason: 'The server rejected the client certificate because it has expired.'\n}, {\n match: /certificate revoked/i,\n reason: 'The server rejected the client certificate because it has been revoked.'\n}, {\n match: /unknown ca/i,\n reason: 'The server does not trust the authority which issued the client certificate.'\n}, {\n match: /(bad|unsupported|unknown|no) certificate/i,\n reason: 'The server rejected the client certificate.'\n}, {\n match: /handshake failure/i,\n reason: 'The server rejected the TLS handshake, the client certificate is missing or was rejected.'\n}];\n\n// the certificate presented by the server could not be verified\nvar NO_CA_REASON = 'The server certificate could not be verified, a CA bundle may be required.';\nvar PEER_CERTIFICATE_REASONS = {\n CERT_HAS_EXPIRED: 'The server certificate has expired.',\n CERT_NOT_YET_VALID: 'The server certificate is not valid yet.',\n SELF_SIGNED_CERT_IN_CHAIN: 'The server certificate chain is self signed, a CA bundle may be required.',\n DEPTH_ZERO_SELF_SIGNED_CERT: 'The server certificate is self signed, a CA bundle may be required.',\n ERR_TLS_CERT_ALTNAME_INVALID: 'The server certificate does not match the requested host.',\n UNABLE_TO_VERIFY_LEAF_SIGNATURE: NO_CA_REASON,\n UNABLE_TO_GET_ISSUER_CERT_LOCALLY: NO_CA_REASON\n};\nfunction findReason(reasons, text) {\n var found = reasons.find(function (_ref) {\n var match = _ref.match;\n return match.test(text);\n });\n return found && found.reason;\n}\nfunction findPeerCertificateReason(code) {\n return code && PEER_CERTIFICATE_REASONS.hasOwnProperty(code) ? PEER_CERTIFICATE_REASONS[code] : undefined;\n}\n\n/**\n * Converts a low level socket/OpenSSL failure into a TLSError with an actionable message.\n *\n * @param {Error} error the error raised by the http client\n * @param {Boolean} withClientCert whether a client certificate was supplied for this request\n * @returns {TLSError|null} null when the error is not TLS related and should be reported as is\n */\nfunction toTLSError(error, withClientCert) {\n if (!error) {\n return null;\n }\n var text = \"\".concat(error.code || '', \" \").concat(error.message || '');\n var reason = findPeerCertificateReason(error.code) || findReason(SECURE_CONTEXT_REASONS, text) || findReason(HANDSHAKE_ALERT_REASONS, text);\n if (reason) {\n return new TLSError(reason, error);\n }\n\n // a server which demands a client certificate usually just drops the connection when it does not\n // get one it accepts, there is no alert to read, so this is the best guess we can offer\n if (withClientCert && (error.code === 'ECONNRESET' || error.code === 'EPROTO')) {\n return new TLSError('The connection was closed during the TLS handshake, ' + 'the client certificate was most likely missing, rejected or expired.', error);\n }\n return null;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sendNodeAPIRequest = sendNodeAPIRequest;\nvar _utils = require(\"./utils\");\nvar _error = require(\"./error\");\nfunction sendNodeAPIRequest(path, method, headers, body, encoding, timeout, withCredentials, tlsOptions) {\n return new Promise(function (resolve, reject) {\n var u = require('url').parse(path);\n var form = (0, _utils.isFormData)(body) && body;\n var https = u.protocol === 'https:';\n var options = {\n host: u.hostname,\n port: u.port || (https ? 443 : 80),\n path: (0, _utils.normalizeTrailingSlashInPath)(path, u) + (u.search || ''),\n method: method,\n headers: headers,\n timeout: timeout\n };\n if (typeof withCredentials === 'boolean') {\n options.withCredentials = withCredentials;\n }\n var withClientCert = !!(tlsOptions && (tlsOptions.cert || tlsOptions.key));\n if (tlsOptions) {\n if (!https) {\n // going ahead would silently drop the certificate and send the request in plain text,\n // there is no mutual TLS without TLS\n return reject(new _error.TLSError('A client certificate can only be used with an https:// URL.'));\n }\n Object.assign(options, tlsOptions);\n }\n\n // a TLS failure arrives here as an opaque socket/OpenSSL error, translate the ones we recognize\n var rejectWithError = function rejectWithError(error) {\n return reject((0, _error.toTLSError)(error, withClientCert) || error);\n };\n var _send = function _send() {\n var Buffer = require('buffer').Buffer;\n var httpClient = require(https ? 'https' : 'http');\n var req = httpClient.request(options, function (res) {\n var strings = [];\n var buffers = [];\n var bufferLength = 0;\n var body = '';\n var status = res.statusCode,\n statusText = res.statusMessage,\n headers = res.headers;\n res.on('data', function (chunk) {\n if (!Buffer.isBuffer(chunk)) {\n strings.push(chunk);\n } else if (chunk.length) {\n bufferLength += chunk.length;\n buffers.push(chunk);\n }\n });\n res.on('end', function () {\n if (bufferLength) {\n body = Buffer.concat(buffers, bufferLength);\n if (encoding != null) {\n body = body.toString(encoding);\n }\n } else if (strings.length) {\n body = strings.join();\n } else if (encoding == null) {\n // a raw request asked for bytes, and a 0 byte response is an empty buffer,\n // not the empty string the body is initialized with\n body = Buffer.alloc(0);\n }\n resolve({\n status: status,\n statusText: statusText,\n headers: headers,\n body: body\n });\n });\n res.on('error', rejectWithError);\n });\n req.on('error', rejectWithError);\n req.on('timeout', function () {\n req.destroy(new Error('Connection aborted due to timeout'));\n });\n if (body) {\n if ((0, _utils.isStream)(body)) {\n body.pipe(req);\n return;\n }\n req.write(body);\n }\n req.end();\n };\n\n // an unusable certificate/key/passphrase makes https.request() throw synchronously, and for a\n // form body _send() runs from a callback where a throw would escape the promise altogether\n var send = function send() {\n try {\n _send();\n } catch (error) {\n rejectWithError(error);\n }\n };\n if (form) {\n Object.assign(options.headers, form.getHeaders());\n form.getLength(function (err, length) {\n if (!err && !isNaN(length)) {\n options.headers['content-length'] = length;\n }\n send();\n });\n } else {\n if (body && !options.headers['content-length']) {\n var Buffer = require('buffer').Buffer;\n options.headers['content-length'] = Buffer.byteLength(body);\n }\n send();\n }\n });\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar EventEmitter = exports[\"default\"] = /*#__PURE__*/function () {\n function EventEmitter() {\n _classCallCheck(this, EventEmitter);\n this.events = {};\n }\n _createClass(EventEmitter, [{\n key: \"on\",\n value: function on(eventName, callback) {\n this.events[eventName] = this.events[eventName] || [];\n this.events[eventName].push(callback);\n return this;\n }\n }, {\n key: \"off\",\n value: function off(eventName, callback) {\n if (!eventName) {\n this.events = {};\n } else if (this.events[eventName]) {\n if (callback) {\n this.events[eventName] = this.events[eventName].filter(function (c) {\n return c !== callback;\n });\n } else {\n delete this.events[eventName];\n }\n }\n return this;\n }\n }, {\n key: \"emit\",\n value: function emit(eventName) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n if (this.events[eventName]) {\n this.events[eventName].forEach(function (callback) {\n return callback.apply(void 0, args);\n });\n }\n }\n }]);\n return EventEmitter;\n}();", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stringify = void 0;\nvar _utils = require(\"./utils\");\n/**\n * Produces a URL query string from a given obj by iterating through the object's \"own properties\".\n * @param {Object} obj\n * @returns {string}\n */\nvar stringify = exports.stringify = function stringify(obj) {\n var tokens = [];\n Object.keys(obj).forEach(function (key) {\n var value = obj[key];\n if (value !== undefined) {\n (0, _utils.castArray)(value).forEach(function (value) {\n tokens.push(\"\".concat(encodeURIComponent(key), \"=\").concat(encodeURIComponent(value)));\n });\n }\n });\n return tokens.join('&');\n};", "\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Request = void 0;\nvar _eventEmitter = _interopRequireDefault(require(\"./event-emitter\"));\nvar qs = _interopRequireWildcard(require(\"./qs\"));\nvar _utils = require(\"./utils\");\nvar _error = require(\"./error\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nvar CONTENT_TYPE_HEADER = 'Content-Type';\n\n// the only TLS options a caller may pass, everything else (rejectUnauthorized and friends) is\n// dropped on purpose so that a config blob can not weaken the connection by accident\nvar TLS_OPTION_KEYS = ['cert', 'key', 'passphrase', 'ca'];\nvar REQUEST_EVENT = 'request';\nvar RESPONSE_EVENT = 'response';\nvar ERROR_EVENT = 'error';\nvar DONE_EVENT = 'done';\nvar Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {\n _inherits(Request, _EventEmitter);\n var _super = _createSuper(Request);\n function Request(path, method, body) {\n var _this;\n _classCallCheck(this, Request);\n _this = _super.call(this);\n _this.method = method;\n _this.path = (0, _utils.ensureEncoding)(path);\n _this.body = body;\n _this.unwrap = true;\n _this.raw = false;\n _this.headers = {};\n _this.queryParams = {};\n _this.encoding = 'utf8';\n _this.timeout = 0;\n _this.withCredentials = null;\n\n // the private key is credential material, a non enumerable property keeps it out of\n // console.log(request)/JSON.stringify(request) in whatever logging a caller has around\n Object.defineProperty(_assertThisInitialized(_this), 'tlsOptions', {\n value: undefined,\n writable: true,\n enumerable: false,\n configurable: true\n });\n return _this;\n }\n\n /**\n * Sets a header\n *\n * @param {String|Object} key or map of headers\n * @param {String} [value]\n * @returns {Request}\n */\n _createClass(Request, [{\n key: \"set\",\n value: function set(key, value) {\n if ((0, _utils.isObject)(key)) {\n for (var headerName in key) {\n this.set(headerName, key[headerName]);\n }\n } else if (typeof value !== 'undefined') {\n this.headers[key] = value;\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('Authorization', `Basic ${basicAuth.token}`)\n *\n * @param {Object} [basicAuth]\n * @param {String} basicAuth.token\n * @returns {Request}\n */\n }, {\n key: \"basicAuth\",\n value: function basicAuth(_basicAuth) {\n if (_basicAuth) {\n this.set({\n Authorization: \"Basic \".concat(_basicAuth.token)\n });\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('auth-key', authKey)\n *\n * @param {String} [authKey]\n * @returns {Request}\n */\n }, {\n key: \"authKey\",\n value: function authKey(_authKey) {\n if (_authKey) {\n this.set({\n 'auth-key': _authKey\n });\n }\n return this;\n }\n\n /**\n * Attaches a TLS client certificate and private key to the request (mutual TLS).\n *\n * Works only for Node js, in a browser the client certificate is chosen by the browser itself.\n *\n * Calling the method several times merges the options, so the certificate and the key may come\n * from different places. Options other than the ones listed below are ignored.\n *\n * @param {Object} [tlsOptions]\n * @param {String|Buffer|Array} tlsOptions.cert PEM encoded client certificate (or chain)\n * @param {String|Buffer|Array} tlsOptions.key PEM encoded private key\n * @param {String} [tlsOptions.passphrase] passphrase of an encrypted private key\n * @param {String|Buffer|Array} [tlsOptions.ca] PEM encoded CA bundle to verify the server with\n * @returns {Request}\n */\n }, {\n key: \"cert\",\n value: function cert(tlsOptions) {\n var options = tlsOptions && pickTLSOptions(tlsOptions);\n if (options && Object.keys(options).length) {\n this.tlsOptions = _objectSpread(_objectSpread({}, this.tlsOptions), options);\n }\n return this;\n }\n\n /**\n * @param {Object} queryParams\n * @returns {Request}\n */\n }, {\n key: \"query\",\n value: function query(queryParams) {\n Object.assign(this.queryParams, queryParams);\n return this;\n }\n\n /**\n * Sets a multipart form as the request body.\n *\n * Accepts an instance of `Request.FormData`, a WHATWG `FormData` (the Node 18+ global one) and\n * a plain object. A Blob or a File, which the `form-data` package can not stream on its own,\n * is converted, and a value it can not send at all is reported with an error naming the field.\n *\n * @param {Object} form\n * @returns {Request}\n */\n }, {\n key: \"form\",\n value: function form(_form) {\n if (_form) {\n if ((0, _utils.isFormData)(_form)) {\n this.body = _form;\n } else if ((0, _utils.isWebFormData)(_form)) {\n this.body = toRequestFormData(_form);\n } else {\n var formData = new Request.FormData();\n var _loop = function _loop(formKey) {\n if (formKey) {\n (0, _utils.castArray)(_form[formKey]).forEach(function (formValue) {\n if (formValue && formValue.hasOwnProperty('value') && formValue.hasOwnProperty('options')) {\n appendFormPart(formData, formKey, formValue.value, formValue.options);\n } else {\n appendFormPart(formData, formKey, formValue);\n }\n });\n }\n };\n for (var formKey in _form) {\n _loop(formKey);\n }\n this.body = formData;\n }\n }\n return this;\n }\n\n /**\n * Shortcut for req.set('Content-Type', value)\n *\n * @param {String} contentType\n * @returns {Request}\n */\n }, {\n key: \"type\",\n value: function type(contentType) {\n this.set(CONTENT_TYPE_HEADER, contentType);\n return this;\n }\n\n /**\n * Should we unwrap the response and return only body. true by default\n * @param {Boolean} unwrap\n * @returns {Request}\n */\n }, {\n key: \"unwrapBody\",\n value: function unwrapBody(unwrap) {\n this.unwrap = unwrap;\n return this;\n }\n\n /**\n * set encoding to response\n * works only for Node js\n *\n * @param {String} encoding\n * @returns {Request}\n */\n }, {\n key: \"setEncoding\",\n value: function setEncoding(encoding) {\n this.encoding = encoding;\n return this;\n }\n\n /**\n * Sends the request and resolves the response body as raw bytes.\n *\n * Unlike `setEncoding(null)` the result is guaranteed: a `Buffer` in Node js, a `Uint8Array`\n * in a browser (a Buffer is a Uint8Array, so `instanceof Uint8Array` holds in both), an empty\n * one for a 0 byte response, and never a value that `JSON.parse` got to first.\n *\n * The method is terminal, it implies a raw transfer and overrides whatever `setEncoding` was\n * given before it, so there is no need to call `setEncoding(null)` as well.\n *\n * An unsuccessful response is rejected the same way as for any other request, with the error\n * body still JSON parsed when it is JSON - a vendor answers a failed binary download with a\n * JSON error and `error.body.message` has to keep working.\n *\n * @returns {Promise<Buffer|Uint8Array>}\n */\n }, {\n key: \"toBuffer\",\n value: function toBuffer() {\n this.raw = true;\n this.encoding = null;\n this.promise = this.promise || this.send(this.body);\n return this.promise;\n }\n\n /**\n * set withCredentials option\n *\n * @param {Boolean} value\n * @returns {Request}\n */\n }, {\n key: \"setWithCredentials\",\n value: function setWithCredentials(value) {\n this.withCredentials = value;\n return this;\n }\n\n /**\n * A number specifying request timeout in milliseconds.\n * @param {Number} ms\n * @returns {Request}\n */\n }, {\n key: \"setTimeout\",\n value: function setTimeout(ms) {\n this.timeout = ms;\n return this;\n }\n\n /**\n * Sends the request\n *\n * @param {Object} body\n * @returns {Promise}\n */\n }, {\n key: \"send\",\n value: function send(body) {\n var _this2 = this;\n this.emit(REQUEST_EVENT, this);\n var path = this.path;\n var queryString = qs.stringify(this.queryParams);\n if (queryString) {\n path += '?' + queryString;\n }\n if (!(0, _utils.isFormData)(body) && (0, _utils.isWebFormData)(body)) {\n body = toRequestFormData(body);\n }\n var type = this.headers[CONTENT_TYPE_HEADER];\n if (!type && (0, _utils.isObject)(body) && !(0, _utils.isFormData)(body)) {\n this.type('application/json');\n }\n if (body) {\n var isJSON = this.headers[CONTENT_TYPE_HEADER] === 'application/json';\n body = isJSON && typeof body !== 'string' ? JSON.stringify(body) : body;\n }\n var unwrapBody = function unwrapBody(res) {\n return _this2.unwrap ? res.body : res;\n };\n if (Request.verbose) {\n console.log(this.method.toUpperCase(), decodeURIComponent(path), body, this.headers);\n }\n var withCredentials = typeof this.withCredentials === 'boolean' ? this.withCredentials : Request.withCredentials;\n var syncError = new Error();\n var request = Request.send(path, this.method.toUpperCase(), this.headers, body, this.encoding, this.timeout, withCredentials, this.tlsOptions).then(function (res) {\n return parseBody(res, _this2.raw);\n }).then(function (res) {\n return ensureRawBody(res, _this2.raw);\n }).then(checkStatus).then(unwrapBody)[\"catch\"](function (error) {\n error.stack = \"\".concat(error.stack).concat(syncError.stack);\n throw error;\n });\n request.then(function (result) {\n _this2.emit(RESPONSE_EVENT, result);\n _this2.emit(DONE_EVENT, null, result);\n })[\"catch\"](function (error) {\n _this2.emit(ERROR_EVENT, error);\n _this2.emit(DONE_EVENT, error);\n });\n return request;\n }\n\n /**\n * If you are too lazy to use method 'send', don't use it and stay cool :)\n *\n * @param {Function} successHandler\n * @param {Function} errorHandler\n * @returns {Promise}\n */\n }, {\n key: \"then\",\n value: function then(successHandler, errorHandler) {\n this.promise = this.promise || this.send(this.body);\n return this.promise.then(successHandler, errorHandler);\n }\n\n /**\n * @param {Function} errorHandler\n * @returns {Promise}\n */\n }, {\n key: \"catch\",\n value: function _catch(errorHandler) {\n this.promise = this.promise || this.send(this.body);\n return this.promise[\"catch\"](errorHandler);\n }\n }]);\n return Request;\n}(_eventEmitter[\"default\"]);\n/**\n * Keeps only the known TLS options and skips the empty ones,\n * `undefined` values would otherwise overwrite already collected options on a merge\n */\nfunction pickTLSOptions(tlsOptions) {\n var result = {};\n TLS_OPTION_KEYS.forEach(function (key) {\n if (tlsOptions[key] !== undefined && tlsOptions[key] !== null) {\n result[key] = tlsOptions[key];\n }\n });\n return result;\n}\n\n/**\n * Copies a WHATWG FormData into a `Request.FormData`.\n *\n * Iterating with `for (var key in webFormData)` , which is what a plain object gets, walks the\n * enumerable WebIDL operations of the prototype and appends `append`, `get`, `set`, `forEach` ...\n * as form parts, and streaming then calls one of them unbound\n */\nfunction toRequestFormData(webFormData) {\n var formData = new Request.FormData();\n webFormData.forEach(function (value, key) {\n return appendFormPart(formData, key, value);\n });\n return formData;\n}\nfunction appendFormPart(formData, key, value, options) {\n if (typeof formData.getHeaders !== 'function') {\n // a browser FormData, it takes a Blob, a File and a typed array natively\n return options ? formData.append(key, value, options) : formData.append(key, value);\n }\n var part = (0, _utils.normalizeFormPart)(key, value);\n var partOptions = _objectSpread(_objectSpread({}, part.options), options);\n if (Object.keys(partOptions).length) {\n formData.append(key, part.value, partOptions);\n } else {\n formData.append(key, part.value);\n }\n}\nfunction isSuccessStatus(status) {\n return status >= 200 && status < 300;\n}\n\n/**\n * `JSON.parse` coerces its argument with `String()`, so it destroys a body that was asked for as\n * raw bytes whenever those bytes happen to be valid JSON. A raw request skips it for a successful\n * response only, an error body keeps being parsed as it always was.\n */\nfunction parseBody(res, raw) {\n if (raw && isSuccessStatus(res.status)) {\n return res;\n }\n try {\n return _objectSpread(_objectSpread({}, res), {}, {\n body: JSON.parse(raw ? (0, _utils.decodeBytes)(res.body) : res.body)\n });\n } catch (e) {\n return res;\n }\n}\nfunction ensureRawBody(res, raw) {\n return raw && isSuccessStatus(res.status) ? _objectSpread(_objectSpread({}, res), {}, {\n body: (0, _utils.toBytes)(res.body)\n }) : res;\n}\n\n/**\n * Checks if a network request came back fine, and throws an error if not\n *\n * @param {object} response A response from a network request\n *\n * @return {object|undefined} Returns either the response, or throws an error\n */\nfunction checkStatus(response) {\n if (isSuccessStatus(response.status)) {\n return response;\n }\n throw new _error.ResponseError(response);\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sendXmlHttpRequest = sendXmlHttpRequest;\nvar _request2 = require(\"./request\");\nfunction sendXmlHttpRequest(path, method, headers, body, encoding, timeout, withCredentials) {\n return new Promise(function sendRequest(resolve, reject) {\n var request = new _request2.Request.XMLHttpRequest();\n request.timeout = timeout;\n if (!encoding) {\n request.responseType = 'arraybuffer';\n }\n request.open(method.toUpperCase(), path, true);\n if (typeof withCredentials === 'boolean') {\n request.withCredentials = withCredentials;\n }\n request.onload = function handleLoadEvent() {\n var headers = parseHeaders(request.getAllResponseHeaders());\n var _request = request,\n status = _request.status,\n statusText = _request.statusText;\n var result = {\n status: status,\n statusText: statusText,\n headers: headers\n };\n if (encoding) {\n // `responseType` was left as the default one for any encoding, XMLHttpRequest has no way\n // to decode an arbitrary charset, so the body is the text the browser decoded for us.\n // Wrapping that string into a Uint8Array, as it used to be for a non utf8 encoding,\n // produced an empty array and lost the response entirely\n result.body = request.response || request.responseText;\n } else {\n // `responseType` is 'arraybuffer' here, a 0 byte response has to stay bytes as well\n result.body = request.response ? new Uint8Array(request.response) : new Uint8Array(0);\n }\n resolve(result);\n request = null;\n };\n request.onerror = function handleErrorEvent() {\n reject(new Error('Network Error'));\n request = null;\n };\n request.ontimeout = function handleTimeout() {\n reject(new Error('Connection aborted due to timeout'));\n request = null;\n };\n Object.keys(headers).forEach(function (key) {\n request.setRequestHeader(key, headers[key]);\n });\n request.send(body);\n });\n}\nfunction parseHeaders(headersString) {\n var parsed = {};\n if (!headersString) {\n return parsed;\n }\n headersString.split('\\n').forEach(function (line) {\n var i = line.indexOf(':');\n var key = line.substr(0, i).trim();\n var val = line.substr(i + 1).trim();\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n return parsed;\n}", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _clientNode = require(\"./client-node\");\nvar _clientBrowser = require(\"./client-browser\");\nvar _request = require(\"./request\");\nvar _utils = require(\"./utils\");\nObject.defineProperty(_request.Request, 'FormData', {\n get: function get() {\n return (0, _utils.getFormData)();\n },\n set: function set(value) {\n (0, _utils.setFormData)(value);\n }\n});\n_request.Request.XMLHttpRequest = typeof XMLHttpRequest !== 'undefined' ? XMLHttpRequest : undefined;\n\n// `tlsOptions` is meaningful for the Node client only, XMLHttpRequest gives no control over the\n// client certificate - a browser picks it from the OS/browser keystore when a server asks for one\n_request.Request.send = function (path, method, headers, body, encoding, timeout, withCredentials, tlsOptions) {\n var sender = typeof _request.Request.XMLHttpRequest !== 'undefined' ? _clientBrowser.sendXmlHttpRequest : _clientNode.sendNodeAPIRequest;\n return sender(path, method, headers, body, encoding, timeout, withCredentials, tlsOptions);\n};\n_request.Request.verbose = false;\n_request.Request.withCredentials = false;\n_request.Request.methods = ['get', 'post', 'put', 'patch', 'delete', 'head', 'options'];\n_request.Request.methods.forEach(function (method) {\n _request.Request[method] = function (path, body) {\n return new _request.Request(path, method, body);\n };\n});\nexports = module.exports = _request.Request;\nvar _default = exports[\"default\"] = _request.Request;", "// Published as `@flowrunner/cli/runtime`. Bundled rather than shipped raw because it sits on\n// @flowrunner/flow-extension-runner and @flowrunner/jsdoc-parser, which are devDependencies; `jsdoc` and\n// `requizzle` stay real dependencies since the JSDoc parser shells out to them at runtime.\n//\n// This code IS the deployed definition, so a reimplementation in a consumer repo can drift \u2014 which makes a\n// parity report green but meaningless. Import from here instead.\n//\n// Importing installs `global.Flowrunner`. Entry-point paths are `require`d, so they must be absolute.\n\nexport type { ExtensionVersion, RunServiceMethodData } from '@flowrunner/flow-extension-runner'\nexport {\n buildServiceDefinition,\n detectVersion,\n getServiceConfigs,\n runServiceMethod,\n} from '@flowrunner/flow-extension-runner'\n\n// Registration is a require-time side effect, so this alone is a no-op against a cached module: detectVersion\n// then reports a v2 service as `v1` and buildServiceDefinition returns null, silently. Pair it with\n// `delete require.cache[require.resolve(entryPoint)]`.\nexport { resetRegistry } from '@flowrunner/flow-extension-runner/v2'\n\n// getServiceConfigs and buildServiceDefinition return types. SharedExtensionDefinition is NOT interchangeable\n// with the console's same-named model that parseJsDocToServiceJson returns \u2014 unassignable in both directions\n// (`serviceInfo.integrationIcon`, `metaInfo.sampleResultLoader`). Type a v1 parse with\n// `ReturnType<typeof parseJsDocToServiceJson>`.\nexport type { ConfigItem, SharedExtensionDefinition } from '@flowrunner/flow-extension-runner/v2'\nexport { parseJsDocToServiceJson } from '@flowrunner/jsdoc-parser'\n", "import BLRequest from 'backendless-request'\n\nimport type { FlowrunnerRuntime } from './global'\nimport { createExtension } from './v2/create-extension'\nimport { crypto } from './v2/crypto'\nimport { z } from './v2/params'\nimport { getExtension } from './v2/registry'\n\n// Installs the single global `Flowrunner` namespace shared by v1 and v2. Importing this module for its\n// side effect guarantees the global exists before any service module is required. The v1 registration\n// seam (`ServerCode`) starts null and is toggled per-require by v1/namespace.ts.\n\nconst flowrunnerRuntime: FlowrunnerRuntime = {\n Request: BLRequest,\n z,\n crypto,\n createExtension,\n getExtension,\n ServerCode: null,\n}\n\nglobal.Flowrunner = flowrunnerRuntime\n\nexport { flowrunnerRuntime }\n", "import type { FlowExtensionErrorCode } from './codes'\n\n// Base class for all flow-extension runtime errors. Mirrors the console's `ApiError` shape (statusCode +\n// type/code + message + details) so the server can map it straight onto an HTTP response, while staying\n// self-contained (the runner never imports the console workspace).\n\nexport interface FlowExtensionErrorJSON {\n name: string\n code: FlowExtensionErrorCode\n statusCode: number\n message: string\n details?: unknown\n}\n\nexport class FlowExtensionError<DetailsT = unknown> extends Error {\n // Discriminant that survives structured-clone / JSON across the worker boundary, where `instanceof` fails.\n readonly isFlowExtensionError = true\n\n constructor(\n public readonly code: FlowExtensionErrorCode,\n public readonly statusCode: number,\n message: string,\n public readonly details?: DetailsT\n ) {\n super(message)\n this.name = this.constructor.name\n\n // Maintains a proper stack trace for where the error was thrown (V8 only).\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor)\n }\n }\n\n toJSON(): FlowExtensionErrorJSON {\n return {\n name: this.name,\n code: this.code,\n statusCode: this.statusCode,\n message: this.message,\n details: this.details,\n }\n }\n}\n\n// True for a FlowExtensionError instance, or a plain object carrying the discriminant (e.g. after the error\n// crossed the worker IPC boundary and lost its prototype).\nexport function isFlowExtensionError(value: unknown): value is FlowExtensionError {\n if (value instanceof FlowExtensionError) {\n return true\n }\n\n return typeof value === 'object' &&\n value !== null &&\n (value as { isFlowExtensionError?: unknown }).isFlowExtensionError === true\n}\n", "// Stable, machine-readable codes for flow-extension runtime errors. These survive the worker \u2192 server IPC\n// boundary (as the error `code`), so the console and client can resolve/branch on the error type rather\n// than string-matching messages. Do not renumber/rename existing codes \u2014 they are part of the contract.\nexport const FlowExtensionErrorCodes = {\n // A method name that isn't a registered action/dictionary/trigger/SYSTEM method.\n UNKNOWN_METHOD: 'FR_EXT_UNKNOWN_METHOD',\n // A required named param (invocation / callbackObject / refreshToken) was absent from the method input.\n MISSING_METHOD_PARAM: 'FR_EXT_MISSING_METHOD_PARAM',\n // The method input failed its schema (action params, helper payload, SYSTEM invocation).\n INVALID_METHOD_INPUT: 'FR_EXT_INVALID_METHOD_INPUT',\n // A dictionary/loader `criteria` failed the declared criteria schema \u2014 reported apart from the payload so\n // the UI can point at the dependent fields instead of the whole call.\n INVALID_CRITERIA: 'FR_EXT_INVALID_CRITERIA',\n // Two registered items (action/dictionary/trigger) share an id.\n DUPLICATE_ITEM_ID: 'FR_EXT_DUPLICATE_ITEM_ID',\n // No v2 extension registered for the given serviceId after requiring the module.\n EXTENSION_NOT_REGISTERED: 'FR_EXT_NOT_REGISTERED',\n // A declared config value is missing or the wrong shape (see v2/schema/normalize).\n INVALID_CONFIG: 'FR_EXT_INVALID_CONFIG',\n // A schema slot that must be a z.object was declared as something else (see v2/schema/assert-object-schema).\n INVALID_SCHEMA: 'FR_EXT_INVALID_SCHEMA',\n // A polling trigger declared zero or multiple mechanisms, or is missing its fetch.\n INVALID_TRIGGER_CONFIG: 'FR_EXT_INVALID_TRIGGER_CONFIG',\n // A trigger dispatch referenced an unregistered trigger id.\n UNKNOWN_TRIGGER: 'FR_EXT_UNKNOWN_TRIGGER',\n // setupRealtimeTriggers is misconfigured (missing subscribe/unsubscribe, or declared twice).\n REALTIME_SETUP: 'FR_EXT_REALTIME_SETUP',\n // Inbound webhook failed signature verification.\n // setupOauth2 is misconfigured (e.g. declared twice).\n OAUTH_SETUP: 'FR_EXT_OAUTH_SETUP',\n // A handler accessed an opt-in feature (oauth/files) that the extension didn't enable.\n FEATURE_NOT_ENABLED: 'FR_EXT_FEATURE_NOT_ENABLED',\n // ...\n INVALID_DICTIONARY_OUTPUT_SCHEME: 'INVALID_DICTIONARY_OUTPUT_SCHEME',\n} as const\n\nexport type FlowExtensionErrorCode = (typeof FlowExtensionErrorCodes)[keyof typeof FlowExtensionErrorCodes]\n", "import { FlowExtensionError } from './base'\nimport { FlowExtensionErrorCodes } from './codes'\n\n// Concrete flow-extension errors. Messages are kept stable (callers/tests rely on them); the `code` is the\n// machine-resolvable identity.\n\nexport class UnknownMethodError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string) {\n super(\n FlowExtensionErrorCodes.UNKNOWN_METHOD,\n 404,\n `[flow-extension:${ serviceId }] unknown method \"${ methodName }\"`,\n { serviceId, methodName }\n )\n }\n}\n\nexport class MissingMethodParamError extends FlowExtensionError {\n constructor(serviceId: string, param: string) {\n super(\n FlowExtensionErrorCodes.MISSING_METHOD_PARAM,\n 400,\n `[flow-extension:${ serviceId }] missing required \"${ param }\" in method input`,\n { serviceId, param }\n )\n }\n}\n\n// A single schema violation, flattened out of zod so the details survive the worker IPC boundary.\nexport interface ValidationIssue {\n // Dot/bracket path inside the validated value ('' when the value itself is invalid).\n path: string\n message: string\n code?: string\n}\n\nfunction formatIssues(issues: ValidationIssue[]): string {\n return issues.map(issue => (issue.path ? `${ issue.path }: ${ issue.message }` : issue.message)).join('; ')\n}\n\n// A method was called with input that doesn't match its schema \u2014 action params, a helper `payload`, or a\n// SYSTEM method's invocation. `target` names the validated slot so the caller can point at it.\nexport class InvalidMethodInputError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string, target: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_METHOD_INPUT,\n 400,\n `[flow-extension:${ serviceId }] invalid ${ target } for method \"${ methodName }\" \u2014 ${ formatIssues(issues) }`,\n { serviceId, methodName, target, issues }\n )\n }\n}\n\n// The `criteria` of a dictionary/loader call failed its declared schema. Separate from the payload error so\n// the console can surface \"these dependent fields are wrong\" rather than \"the whole call is malformed\".\nexport class InvalidCriteriaError extends FlowExtensionError {\n constructor(serviceId: string, methodName: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_CRITERIA,\n 400,\n `[flow-extension:${ serviceId }] invalid criteria for method \"${ methodName }\" \u2014 ${ formatIssues(issues) }`,\n { serviceId, methodName, target: 'criteria', issues }\n )\n }\n}\n\nexport class DuplicateItemIdError extends FlowExtensionError {\n constructor(serviceId: string, id: string, kind: string) {\n super(\n FlowExtensionErrorCodes.DUPLICATE_ITEM_ID,\n 400,\n `[flow-extension:${ serviceId }] duplicate id \"${ id }\" (${ kind }) \u2014 ids must be unique across all registered items`,\n { serviceId, id, kind }\n )\n }\n}\n\nexport class ExtensionNotRegisteredError extends FlowExtensionError {\n constructor(serviceId: string, entryPoint?: string) {\n super(\n FlowExtensionErrorCodes.EXTENSION_NOT_REGISTERED,\n 404,\n `[flow-extension] no v2 extension registered for serviceId=\"${ serviceId }\"${ entryPoint ? ` (${ entryPoint })` : '' }`,\n { serviceId, entryPoint }\n )\n }\n}\n\nexport class InvalidConfigError extends FlowExtensionError {\n // Raised when the resolved `configItems` do not satisfy what the service declared. Carries one issue per\n // offending field, so the console can point at the config form rather than reporting the whole call.\n constructor(serviceId: string, issues: ValidationIssue[]) {\n super(\n FlowExtensionErrorCodes.INVALID_CONFIG,\n 400,\n `[flow-extension:${ serviceId }] invalid config \u2014 ${ formatIssues(issues) }`,\n { serviceId, issues }\n )\n }\n}\n\nexport class InvalidSchemaError extends FlowExtensionError {\n // `message` is composed by the guard, which knows how to describe what was received and what to do\n // about it (see v2/schema/assert-object-schema.ts).\n constructor(message: string, details: Record<string, unknown>) {\n super(FlowExtensionErrorCodes.INVALID_SCHEMA, 400, message, details)\n }\n}\n\nexport class InvalidTriggerConfigError extends FlowExtensionError {\n // `message` carries the specifics (kept verbatim for existing tests).\n constructor(serviceId: string, message: string, details?: Record<string, unknown>) {\n super(FlowExtensionErrorCodes.INVALID_TRIGGER_CONFIG, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId, ...details })\n }\n}\n\nexport class UnknownTriggerError extends FlowExtensionError {\n constructor(serviceId: string, triggerId: string, kind = 'polling') {\n super(\n FlowExtensionErrorCodes.UNKNOWN_TRIGGER,\n 404,\n `[flow-extension:${ serviceId }] no ${ kind } trigger \"${ triggerId }\"`,\n { serviceId, triggerId, kind }\n )\n }\n}\n\nexport class RealtimeSetupError extends FlowExtensionError {\n constructor(serviceId: string, message: string) {\n super(FlowExtensionErrorCodes.REALTIME_SETUP, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId })\n }\n}\n\nexport class OAuthSetupError extends FlowExtensionError {\n constructor(serviceId: string, message: string) {\n super(FlowExtensionErrorCodes.OAUTH_SETUP, 400, `[flow-extension:${ serviceId }] ${ message }`, { serviceId })\n }\n}\n\nexport class FeatureNotEnabledError extends FlowExtensionError {\n constructor(feature: string, hint: string) {\n super(\n FlowExtensionErrorCodes.FEATURE_NOT_ENABLED,\n 400,\n `[flow-extension] \"${ feature }\" is not enabled for this extension \u2014 ${ hint }`,\n { feature }\n )\n }\n}\n\nexport class InvalidDictionaryOutputScheme extends FlowExtensionError {\n constructor(serviceId: string, dictionaryName: string) {\n super(\n FlowExtensionErrorCodes.INVALID_DICTIONARY_OUTPUT_SCHEME,\n 400,\n `[flow-extension:${ serviceId }] dictionary \"${ dictionaryName }\" execution returns wrong result, it must result list of object {value, label, hist} or object {cursor:'string', items:[...]}`,\n { serviceId, dictionaryName }\n )\n }\n}\n", "import type { MethodParams } from '../params'\nimport type { ResultSpec } from '../result'\nimport type { DynamicPropsDef } from '../types'\n\n// What a generated loader needs from the item it belongs to. Actions, polling triggers and realtime\n// triggers can all declare a loader `result`, so this is the narrow contract between them and ../loaders \u2014\n// it keeps a loader from having to know which of the three registered it.\n//\n// All three method classes implement it directly \u2014 a loader is handed its owner, not a description of one.\n\n// The generated loader method names. Frozen \u2014 these are published method names, derived from the owner's id.\nexport const sampleResultLoaderName = (ownerId: string): string => `${ ownerId }_SampleResultLoader`\nexport const dynamicParamsLoaderName = (ownerId: string): string => `${ ownerId }_DynamicParams`\nexport const dynamicPropsLoaderName = (ownerId: string, field: string): string => `${ ownerId }_${ field }_DynamicProps`\n\nexport interface LoaderOwner {\n readonly id: string\n // The owner's grouping label; its loaders inherit it so they sort alongside it.\n readonly category: string\n readonly params: MethodParams\n readonly result: ResultSpec\n}\n\n// Only actions load params: `dynamicParams`, and `.dynamicProps()` on their top-level fields.\nexport interface ParamsLoaderOwner extends LoaderOwner {\n readonly dynamicParams?: DynamicPropsDef\n}\n", "import { InvalidSchemaError } from '../../../errors'\nimport type { SchemaSource } from '../types'\nimport type { AnyZod } from './introspect'\n\n// Every schema slot is OPTIONAL. Declare it and it must be a `z.object` \u2014 because that is the only thing the\n// runner can do anything with: a container of named fields to validate input against and publish as the\n// method's input model.\n//\n// Without this guard a wrong shape degrades SILENTLY. `params: z.string()` has no `.shape`, so the method\n// publishes no params, the console renders a node with no inputs, validation becomes a passthrough, and the\n// service deploys clean \u2014 the author finds out when the action cannot be called correctly in production.\n//\n// So the check runs at REGISTRATION time, while the service module is being `require`d. That means it fires\n// on the first call the CLI or console makes against the extension, including the `buildServiceDefinition`\n// that `flowrunner deploy` performs per service \u2014 so a bad schema stops the deploy instead of shipping.\n\n// Zod's single-child wrappers. An object inside one of these cannot serve as a container: the wrapper has no\n// `.shape` and no `.partial()`, so every field would be invisible.\nconst WRAPPERS = new Set(['optional', 'nullable', 'nullish', 'default', 'prefault'])\n\nconst typeOf = (value: unknown): string | undefined =>\n (value as AnyZod | undefined)?._zod?.def?.type as string | undefined\n\n// How to name what the author actually passed, in their own vocabulary.\nfunction describe(value: unknown): string {\n const type = typeOf(value)\n\n if (type) {\n if (WRAPPERS.has(type)) {\n const inner = typeOf((value as { _zod?: { def?: { innerType?: unknown } } })._zod?.def?.innerType)\n\n return `z.${ inner ?? 'unknown' }().${ type }()`\n }\n\n return `z.${ type }()`\n }\n\n if (value === null) {\n return 'null'\n }\n\n if (Array.isArray(value)) {\n return 'an array'\n }\n\n if (typeof value === 'object') {\n return 'a plain object'\n }\n\n return `a ${ typeof value }`\n}\n\n// The most useful next step for this particular mistake.\nfunction hint(value: unknown, slot: string, isReturn: boolean): string {\n const type = typeOf(value)\n\n if (type && WRAPPERS.has(type)) {\n return '; an object container cannot be optional \u2014 mark its fields optional instead'\n }\n\n if (!type && typeof value === 'object' && value !== null && !Array.isArray(value)) {\n return ' \u2014 did you forget to wrap it in z.object({ \u2026 })?'\n }\n\n // Every slot may simply be left out, which is usually what an author reaching for a non-object wanted.\n return isReturn ? '' : `; omit \\`${ slot }\\` entirely if there is nothing to declare`\n}\n\n/**\n * Throws unless `scheme` is a `z.object` (including `z.looseObject` / `z.strictObject`). `undefined` passes \u2014\n * an undeclared slot is legal everywhere.\n */\nexport function assertObjectSchema(scheme: unknown, source: SchemaSource): void {\n if (scheme == null || typeOf(scheme) === 'object') {\n return\n }\n\n const slot = source.slot ?? 'schema'\n const kind = source.kind ?? 'extension'\n // A slot spelled with parentheses is a function whose RETURN is being checked.\n const isReturn = slot.endsWith('()')\n // The extension itself has no item id to name; everything else does.\n const subject = source.itemId ? `${ kind } \"${ source.itemId }\": ` : ''\n const received = describe(scheme)\n\n // A params loader's `execute()` may also return a plain shape of zod fields, which the loader wraps itself.\n const expected = slot.endsWith('.execute()') ? 'a z.object({ \u2026 }) or a shape of zod fields' : 'a z.object({ \u2026 })'\n\n throw new InvalidSchemaError(\n `[flow-extension:${ source.serviceId }] ${ subject }\\`${ slot }\\` ${ isReturn ? 'must return' : 'must be' }` +\n ` ${ expected } \u2014 received ${ received }${ hint(scheme, slot, isReturn) }`,\n { serviceId: source.serviceId, kind, itemId: source.itemId, slot, received }\n )\n}\n", "/**\n * Platform param GROUPS \u2014 a whole `z.object` the runtime ships (see ./files-options.ts), not a control.\n *\n * They travel in the same `uiComponent.type` slot as a control token, so they belong in the map below. They\n * are named apart from it because **nothing renders a single input for one**: a consumer reads the token to\n * decide how to draw the whole group, and a registry of one-input-per-token has no entry for it.\n *\n * An author's own `z.object` carries none of these.\n */\nexport const FlowExtensionParamGroupTypes = {\n FILE_UPLOAD_OPTIONS: 'FILE_UPLOAD_OPTIONS',\n FILE_LIST_OPTIONS : 'FILE_LIST_OPTIONS',\n FILE_GET_OPTIONS : 'FILE_GET_OPTIONS',\n FILE_DELETE_OPTIONS: 'FILE_DELETE_OPTIONS',\n}\n\nexport const FlowExtensionParamWidgetTypes = {\n // Derived from a zod declaration \u2014 see `deriveWidget`.\n SINGLE_LINE_TEXT: 'SINGLE_LINE_TEXT',\n MULTI_LINE_TEXT : 'MULTI_LINE_TEXT',\n NUMERIC_STEPPER : 'NUMERIC_STEPPER',\n DATE_PICKER : 'DATE_PICKER',\n TOGGLE : 'TOGGLE',\n DROPDOWN : 'DROPDOWN',\n\n ...FlowExtensionParamGroupTypes,\n\n // legacy \u2014 no zod declaration produces these. They reach the console only from a legacy JSDoc-format\n // service, which writes `uiComponent` by hand. Kept because the console still renders them for an\n // already-installed extension.\n NUMERIC : 'NUMERIC',\n CHECKBOX : 'CHECKBOX',\n DATE_TIME_PICKER: 'DATE_TIME_PICKER',\n TIME_PICKER : 'TIME_PICKER',\n}\n\n/**\n * The widget tokens a declaration carries EXPLICITLY, as author metadata (`meta.frWidget`) \u2014 everything else\n * in the map above is DERIVED from the zod type by `deriveWidget`.\n *\n * `MULTI_LINE_TEXT` is `z.text()` / `z.json()`; the `FILE_*_OPTIONS` tokens name a platform param group.\n */\nexport type FrWidgetToken =\n | 'MULTI_LINE_TEXT'\n | 'FILE_UPLOAD_OPTIONS'\n | 'FILE_LIST_OPTIONS'\n | 'FILE_GET_OPTIONS'\n | 'FILE_DELETE_OPTIONS'\n\n/** The subset that names a platform param GROUP rather than a single control. */\nexport type FrGroupToken = Exclude<FrWidgetToken, 'MULTI_LINE_TEXT'>\n", "// Introspection over the extended zod schemas: walk a declared object's fields, unwrap the modifiers that do\n// not change what a field IS, collect merged author meta (outer wins), and derive the param type +\n// `uiComponent` widget. Everything here reads a schema and returns plain data \u2014 it is the layer both the\n// runner's model builder and the console's renderer sit on top of.\n//\n// This module DESCRIBES a schema; it never decides whether the schema is allowed. A declaration the runtime\n// cannot render is refused at registration by ./assert-supported-schema.ts, which reads `resolvedType` from\n// here. Keeping the two apart is what lets the runtime's own SYSTEM schemes \u2014 which model a wire contract\n// rather than a rendered form \u2014 be described by the same code that refuses an author writing the same thing\n// in a parameter.\nimport { FlowExtensionParamWidgetTypes } from '../widget-types'\nimport type { FrMeta } from '../zod'\n\nexport interface Inspected {\n // The unwrapped core schema (past the modifiers below).\n core: AnyZod\n // Core zod def type: 'string' | 'number' | 'boolean' | 'enum' | 'date' | 'object' | 'array' | \u2026\n // Defaulted to 'string' when the schema reports none, so every consumer has something to switch on.\n coreType: string\n // The SAME answer, undefined rather than defaulted. What the registration guard has to read: in `coreType`\n // \"declared nothing\" and \"declared a string\" are the same value, and a policy decision cannot conflate them.\n resolvedType?: string\n /**\n * A `z.union()`'s declared branches, outermost union only \u2014 `undefined` for everything else.\n *\n * `core` and `coreType` above have already been resolved to the FIRST branch, which is what publishes and\n * what picks the widget. That answer is right for every consumer that only needs a type, and wrong for the\n * two that must consider all of them: the registration guard has to refuse a union with an unsupported\n * branch, and coercion has to try each branch in turn. They read this.\n */\n branches?: AnyZod[]\n required: boolean\n defaultValue: unknown\n meta: FrMeta\n}\n\n// Structural zod shape \u2014 we read internals (`_zod.def`) rather than depend on zod's public generics.\nexport type AnyZod = {\n _zod?: { def?: Record<string, unknown> }\n meta?: () => Record<string, unknown> | undefined\n shape?: Record<string, AnyZod>\n options?: unknown[]\n}\n\nconst OPTIONAL_WRAPPERS = new Set(['optional', 'nullable', 'nullish'])\nexport const DEFAULT_WRAPPERS = new Set(['default', 'prefault'])\n\n/**\n * Modifiers that constrain or re-shape a value without changing what the AUTHOR declared it to be. The\n * runtime looks straight through them: they decide nothing about the widget, the published type, or which\n * coercion runs.\n *\n * - `readonly` \u2014 freezes zod's output; the declared type is the inner one.\n * - `pipe` \u2014 `.pipe(b)` and `.transform(fn)` both produce this. We follow `def.in`, the INPUT side, because\n * the published model describes **what a caller supplies**: it is what the console renders a form for, what\n * the AI-tool schema advertises, and what the coercion layer must convert to before zod sees the value.\n * What `execute` ends up receiving is the pipe's own business and is not a published fact.\n * - `lazy` \u2014 a thunk, for a recursive declaration.\n *\n * `.catch()` is deliberately NOT here. It is refused at registration instead (see\n * ./assert-supported-schema.ts): unwrapping it would fix the published type while leaving the declaration\n * silently substituting a fallback for invalid input, which is the more serious half of that defect.\n */\nexport const TRANSPARENT_WRAPPERS = new Set(['readonly', 'pipe', 'lazy'])\n\n// Where the schema inside a wrapper lives \u2014 it is not always `innerType`.\nexport function innerOf(def: Record<string, unknown>, type: string): AnyZod | undefined {\n if (type === 'pipe') {\n return def.in as AnyZod | undefined\n }\n\n if (type === 'lazy') {\n return (def.getter as (() => AnyZod) | undefined)?.()\n }\n\n return def.innerType as AnyZod | undefined\n}\n\n// A self-referential `z.lazy()` would peel forever. Nothing legitimate nests modifiers anywhere near this deep.\n// Shared with ../json/encode.ts, whose own wrapper walk has to stop on the same declarations this one does.\nexport const MAX_UNWRAP_DEPTH = 64\n\nexport function inspect(schema: AnyZod): Inspected {\n let current: AnyZod | undefined = schema\n // An `.optional()` / `.default()` seen OUTSIDE any `.nonoptional()`. The chain is walked outer\u2192inner and\n // the outermost modifier is the author's final word, so `.optional().nonoptional()` is required while\n // `.nonoptional().optional()` is not \u2014 `sealed` is what stops an inner one from speaking for an outer one.\n // Mirrors `declaredAbsence` in ./field-plan.ts, which has to reach the same answer.\n let optional = false\n let sealed = false\n let defaultValue: unknown\n let branches: AnyZod[] | undefined\n let depth = 0\n const metas: Record<string, unknown>[] = []\n\n while (current?._zod && depth++ < MAX_UNWRAP_DEPTH) {\n const meta = typeof current.meta === 'function' ? current.meta() : undefined\n\n if (meta) {\n metas.push(meta)\n }\n\n const def = current._zod.def || {}\n const type = def.type as string\n\n if (OPTIONAL_WRAPPERS.has(type)) {\n optional ||= !sealed\n current = def.innerType as AnyZod\n continue\n }\n\n if (DEFAULT_WRAPPERS.has(type)) {\n optional ||= !sealed\n\n if (defaultValue === undefined) {\n defaultValue = def.defaultValue\n }\n\n current = def.innerType as AnyZod\n continue\n }\n\n if (type === 'nonoptional') {\n sealed = true\n current = def.innerType as AnyZod\n continue\n }\n\n /**\n * A union resolves to its FIRST branch, and the branch list is carried on the result.\n *\n * \u26A0\uFE0F Declaration order is therefore published contract: `z.union([A, B])` and `z.union([B, A])` validate\n * identically and publish differently, and nothing in the source says so. It is documented in\n * service-code-format/02-zod-types.md; do not reorder a union's branches for readability.\n *\n * Only the OUTERMOST union is recorded \u2014 a nested one is resolved again when its own branch is walked.\n */\n if (type === 'union') {\n const options = def.options as AnyZod[] | undefined\n\n // A union with nothing in it resolves to nothing; leave it as the core so the guard reports it.\n if (!options?.length) {\n break\n }\n\n branches ??= options\n current = options[0]\n continue\n }\n\n if (TRANSPARENT_WRAPPERS.has(type)) {\n const inner = innerOf(def, type)\n\n // A wrapper we cannot see inside is the core as far as anything here is concerned; the guard reports it.\n if (!inner) {\n break\n }\n\n current = inner\n continue\n }\n\n break\n }\n\n // metas are collected outer\u2192inner; reverse so outer is applied last (wins) in the merge.\n const meta = Object.assign({}, ...metas.reverse()) as FrMeta\n const core = current as AnyZod\n const resolvedType = core?._zod?.def?.type as string | undefined\n\n return {\n core,\n coreType: resolvedType || 'string',\n resolvedType,\n required: !optional,\n defaultValue,\n meta,\n ...(branches ? { branches } : {}),\n }\n}\n\nexport interface WidgetInfo {\n paramType: string\n uiComponent?: Record<string, unknown>\n items?: { type: string }\n}\n\n/**\n * The runtime type of a `z.literal(\u2026)`, when every declared value agrees on one \u2014 `undefined` for a mixed\n * literal, which has neither a single widget nor a single conversion.\n *\n * Read by BOTH ends: `deriveWidget` publishes the type, ../schema/coerce.ts converts to it. They have to be\n * the same answer \u2014 a toggle the console draws for a field the runtime will not accept `'true'` for is the\n * defect this module exists to prevent \u2014 which is why the two read one function rather than each deciding.\n * `undefined` is what keeps a mixed literal out of coercion: stringifying the `1` in `z.literal(['a', 1])`\n * would turn a value the declaration accepts into one it rejects.\n */\n// `typeof` answers 'object' for null and 'function' for a function \u2014 neither is a widget, and `z.literal(null)`\n// drew an empty nested form before this was excluded. Only the scalar kinds name a real type.\nconst LITERAL_KINDS = new Set(['string', 'number', 'boolean', 'bigint'])\n\nexport function literalType(core: AnyZod): string | undefined {\n const values = (core._zod?.def?.values as unknown[] | undefined) ?? []\n const kinds = new Set(values.map(value => typeof value))\n const [kind] = [...kinds]\n\n return kinds.size === 1 && LITERAL_KINDS.has(kind) ? kind : undefined\n}\n\n// Derive the v1 param `type` + `uiComponent` from a core zod type (widget is derived from the type \u2014 there\n// is no `.uiComponent()` in v2). Tokens match the v1 conventions (MULTI_LINE_TEXT/NUMERIC_STEPPER/TOGGLE/\u2026).\n//\n// TOTAL by design: this is a projection, not a policy. It has to answer for the runtime's own SYSTEM schemes\n// too (see ../../model/params-model.ts `toOpaqueBodyParams`), which carry `z.unknown()` and loose records no\n// author would be allowed to declare in a parameter. What an AUTHOR may write is decided once, at\n// registration, by ./assert-supported-schema.ts.\nexport function deriveWidget(ins: Inspected): WidgetInfo {\n const { coreType, core, meta } = ins\n\n // `z.json()` \u2014 arbitrary JSON, typed into a textarea. Checked BEFORE the type switch because the\n // declaration underneath is `z.unknown()`: it has to accept the PARSED value once ./coerce.ts has run, so\n // the type says nothing about what the caller supplies. The meta does, and what the caller supplies is text.\n if (meta.frJson) {\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT } }\n }\n\n switch (coreType) {\n case 'string':\n if (meta.frWidget === FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT) {\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT } }\n }\n\n return { paramType: 'STRING' }\n\n case 'number':\n case 'bigint':\n return { paramType: 'NUMBER', uiComponent: { type: FlowExtensionParamWidgetTypes.NUMERIC_STEPPER } }\n\n case 'boolean':\n return { paramType: 'BOOLEAN', uiComponent: { type: FlowExtensionParamWidgetTypes.TOGGLE } }\n\n case 'date':\n return { paramType: 'STRING', uiComponent: { type: FlowExtensionParamWidgetTypes.DATE_PICKER } }\n\n case 'enum': {\n // `.map({ Label: value })` shows labels; otherwise the enum options are the values.\n // The options are always the declared VALUES \u2014 that is what a flow element stores. `.labels()` adds a\n // display name per value, published as `{ value, label }` pairs the console renders directly.\n const declared = ((core.options ?? Object.values((core._zod?.def?.entries as Record<string, unknown>) ?? {})) as unknown[])\n .map(String)\n const labels = meta.frLabels\n const values: unknown[] = labels\n ? declared.map(value => ({ value, label: labels[value] ?? value }))\n : declared\n\n return { paramType: 'STRING', uiComponent: { type: 'DROPDOWN', options: { values } } }\n }\n\n // A literal is a one-value type, so it renders as whatever that value IS rather than always as text.\n // A mixed one has no such type and falls back to text.\n case 'literal':\n return deriveWidget({ ...ins, coreType: literalType(core) ?? 'string' })\n\n // A platform param GROUP names itself: the runtime's own file-options objects (../files-options.ts) carry\n // a token so a consumer can render the group as the thing it is instead of as an anonymous nested form.\n // An author's own `z.object` carries no marker and publishes exactly as it always has.\n case 'object':\n return meta.frWidget\n ? { paramType: 'OBJECT', uiComponent: { type: meta.frWidget } }\n : { paramType: 'OBJECT' }\n\n // A record is an OBJECT whose KEYS are open. The coercion layer has always walked it as one (see\n // ./coerce.ts); publishing it as one is the model catching up with the runtime.\n case 'record':\n return { paramType: 'OBJECT' }\n\n case 'array': {\n const element = core._zod?.def?.element as AnyZod | undefined\n const elementType = element ? deriveWidget(inspect(element)).paramType : 'STRING'\n\n return { paramType: 'LIST', items: { type: elementType } }\n }\n\n // `z.any()` / `z.unknown()` declare nothing to render or to convert \u2014 the pipeline passes them through\n // untouched, and the model has no better word for \"anything\" than the permissive one.\n case 'any':\n case 'unknown':\n return { paramType: 'STRING' }\n\n // Reached only by a runtime-owned scheme; an author's is refused at registration. Text is the permissive\n // answer for a SYSTEM param the console never draws.\n default:\n return { paramType: 'STRING' }\n }\n}\n\n// The declared fields of a z.object, in declaration order. Tolerates a missing/!object schema by returning\n// nothing \u2014 an undeclared slot is treated as \"no fields\" (see ../params.ts).\nexport function shapeEntries(schema: AnyZod | undefined): [name: string, schema: AnyZod][] {\n const shape = schema?.shape\n\n return shape && typeof shape === 'object' ? Object.entries(shape) : []\n}\n\n// The display labels a field declared with `.labels({ value: 'Label' })`, if any. Display only \u2014 nothing is\n// translated at runtime, because the value the element stored is already the value the handler wants.\nexport function fieldLabels(schema: AnyZod): Record<string, string> | undefined {\n return inspect(schema).meta.frLabels\n}\n", "import { InvalidSchemaError } from '../../../errors'\nimport type { SchemaSource } from '../types'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\n\n// The declared type surface, enforced. Sibling of ./assert-object-schema.ts \u2014 that one checks the CONTAINER\n// is a z.object, this one checks what is declared INSIDE it, at every depth.\n//\n// Why it exists: the runtime reads a zod declaration to decide the published type, the widget the console\n// draws, and which coercion runs before `execute`. Everything it cannot classify used to fall through to\n// `STRING`. That fallback is worse than it looks, because it fails in two places at once \u2014 the parameter is\n// published as text (a list stops being a list, a toggle becomes a text box) AND it drops out of the\n// coercion layer, so the string values a flow supplies are never converted. A `z.boolean().catch(false)`\n// bound to a template therefore hands `execute` `false` for an explicit `'true'`: exactly the legacy boolean\n// defect that v2's coercion layer exists to close.\n//\n// So an unrecognised declaration must be an ERROR, not a guess. The supported set below is closed and\n// documented (service-code-format/02-zod-types.md); a zod release that adds a modifier cannot silently\n// degrade a parameter, because the new name simply is not in it.\n//\n// Runs at REGISTRATION, while the service module is being required \u2014 the same moment, and for the same\n// reason, as the object-container check: it fires on the first call the CLI or console makes against the\n// extension, including the `buildServiceDefinition` behind `flowrunner deploy`, so a bad declaration stops\n// the deploy instead of shipping.\n\n/**\n * Slots held to the documented surface \u2014 everything an AUTHOR writes.\n *\n * The runtime's own SYSTEM schemes (`kind: 'system method'`) are deliberately exempt: they model the wire\n * contract of a platform call rather than a rendered form, and legitimately carry `z.unknown()` bodies and\n * loose records. So is the anonymous slot used for per-invocation payload parsing, which re-wraps a schema\n * that was already checked where it was declared.\n */\nconst GUARDED_KINDS = new Set(['action', 'dictionary', 'polling trigger', 'realtime trigger', 'extension'])\n\n/**\n * The core types the runtime can publish, render and coerce.\n *\n * `any` / `unknown` are in deliberately: they declare nothing, the pipeline passes them through untouched,\n * and that is a coherent thing for an author to want. Everything absent is absent on purpose \u2014 `tuple` and\n * `intersection` have no single widget, and a `catch` is refused with its own message below.\n *\n * `union` is not listed because it never reaches this check as itself: `inspect()` resolves it to its first\n * branch, so `resolvedType` is that branch's type. Its branches are each held to this same set \u2014 see\n * `assertField` \u2014 so a union containing a `z.tuple()` is still refused.\n */\nconst SUPPORTED_TYPES = new Set([\n 'string', 'number', 'bigint', 'boolean', 'date', 'enum', 'literal',\n 'object', 'array', 'record',\n // `z.union([T, z.null()])` is the union-shaped spelling of `.nullable()`, which is supported \u2014 refusing one\n // and not the other is a distinction without a difference. It is also a branch of zod's own `z.json()`.\n 'null',\n 'any', 'unknown',\n])\n\n// Named in the \"supported\" half of an error message, in the spelling an author writes. Kept in step with\n// `SUPPORTED_TYPES` above and with the table in service-code-format/02-zod-types.md \u2014 an author who hits this\n// error reads the message, then the doc, and a type missing from either reads as one they may not use.\nconst SUPPORTED_SPELLING = 'z.string(), z.number(), z.bigint(), z.boolean(), z.date(), z.enum([\u2026]), ' +\n 'z.literal(\u2026), z.object({ \u2026 }), z.array(\u2026), z.record(\u2026), z.union([\u2026]), z.null(), z.any(), z.unknown()'\n\nconst MODIFIER_SPELLING = '.optional(), .nullable(), .nullish(), .default(v), .prefault(v), .readonly(), ' +\n '.nonoptional(), .pipe(\u2026)/.transform(\u2026) and z.lazy(\u2026)'\n\n// `action \"sendMessage\": `params.tags[]`` \u2014 enough for an author to find the declaration without a stack trace.\nfunction subjectOf(source: SchemaSource, path: string): string {\n const kind = source.kind ?? 'extension'\n const subject = source.itemId ? `${ kind } \"${ source.itemId }\": ` : ''\n\n return `${ subject }\\`${ path }\\``\n}\n\nfunction refuse(message: string, source: SchemaSource, path: string, received: string): never {\n throw new InvalidSchemaError(\n `[flow-extension:${ source.serviceId }] ${ message }`,\n { serviceId: source.serviceId, kind: source.kind ?? 'extension', itemId: source.itemId, slot: source.slot, path, received }\n )\n}\n\n/**\n * `.catch(v)` gets its own refusal, because the fix is not \"use a supported type\" \u2014 the author's intent is\n * fine and the spelling is one character away.\n *\n * It is refused rather than unwrapped on purpose. Unwrapping would restore the published type and the\n * coercion, but the declaration would still SWALLOW invalid input: zod replaces anything that fails with the\n * fallback, so a value the user actually supplied is silently discarded instead of being reported back. No\n * parameter should do that. `.default(v)` expresses the same intent honestly \u2014 it supplies the fallback when\n * the value is ABSENT, and still rejects one that is present and wrong.\n */\nfunction refuseCatch(source: SchemaSource, path: string): never {\n refuse(\n `${ subjectOf(source, path) } uses \\`.catch(\u2026)\\`, which a parameter may not: it replaces an invalid value` +\n ' with the fallback instead of reporting it, and drops the field out of type coercion.' +\n ' Use `.default(v)` \u2014 same fallback when the value is absent, and a supplied-but-invalid one still fails.',\n source, path, 'catch'\n )\n}\n\nfunction refuseType(source: SchemaSource, path: string, type: string | undefined): never {\n const received = type ? `z.${ type }()` : 'a value that is not a zod schema'\n\n refuse(\n `${ subjectOf(source, path) } declares ${ received }, which the runtime cannot publish as a parameter` +\n ' \u2014 it has no widget, no published type and no coercion for it.' +\n ` Supported: ${ SUPPORTED_SPELLING }; each may carry ${ MODIFIER_SPELLING }.`,\n source, path, type ?? 'unknown'\n )\n}\n\nconst DYNAMIC_PROPS_FIX = 'Declare it as `z.looseObject({ \u2026 }).dynamicProps({ dependsOn, execute })`, or ' +\n '`z.array(z.looseObject({ \u2026 })).dynamicProps(\u2026)` for a list of objects.'\n\n// `z.looseObject()` keeps undeclared keys: its catchall is `z.unknown()`.\nfunction isLooseObject(schema: AnyZod | undefined): boolean {\n if (!schema) {\n return false\n }\n\n const ins = inspect(schema)\n const catchall = ins.core?._zod?.def?.catchall as AnyZod | undefined\n\n return ins.resolvedType === 'object' && catchall?._zod?.def?.type === 'unknown'\n}\n\n// Where `.dynamicProps()` may sit: a top-level field of an action's `params`. Everywhere else it would publish\n// a loader nothing calls \u2014 a nested field, a config item, dictionary criteria, a trigger, a loaded schema.\nfunction isDynamicPropsSlot(source: SchemaSource, topLevel: boolean): boolean {\n return topLevel && source.kind === 'action' && source.slot === 'params'\n}\n\n/**\n * A `.dynamicProps()` field, checked against its siblings.\n *\n * Every rule here is one an author would otherwise discover in the Flow Builder, as fields that never load or\n * values that silently vanish \u2014 so each is an error at registration, naming the fix.\n */\nfunction assertDynamicProps(schema: AnyZod, name: string, siblings: string[], source: SchemaSource, path: string): void {\n const ins = inspect(schema)\n const spec = ins.meta.frDynamicProps as { dependsOn?: unknown; execute?: unknown } | undefined\n\n if (!spec) {\n return\n }\n\n // A decoded schema carries the published ref (`{ id, dependsOn }`), not the author's spec; nothing to check.\n if (typeof (spec as { id?: unknown }).id === 'string' && !('execute' in spec)) {\n return\n }\n\n if (typeof spec.execute !== 'function') {\n refuse(`${ subjectOf(source, path) }: \\`.dynamicProps()\\` needs an \\`execute\\` function that returns the loaded fields.`,\n source, path, typeof spec.execute)\n }\n\n if (spec.dependsOn !== undefined && (!Array.isArray(spec.dependsOn) || spec.dependsOn.some(item => typeof item !== 'string'))) {\n refuse(`${ subjectOf(source, path) }: \\`.dynamicProps()\\` \\`dependsOn\\` must be an array of param names.`,\n source, path, 'dependsOn')\n }\n\n for (const dependency of (spec.dependsOn as string[] | undefined) ?? []) {\n if (dependency === name || !siblings.includes(dependency)) {\n refuse(\n `${ subjectOf(source, path) }: \\`.dynamicProps()\\` depends on \"${ dependency }\", which is not another param` +\n ` of this action. Name its sibling params: ${ siblings.filter(sibling => sibling !== name).join(', ') || 'none' }.`,\n source, path, dependency\n )\n }\n }\n\n if (ins.meta.frDictionary) {\n refuse(\n `${ subjectOf(source, path) } declares both \\`.dynamicProps()\\` and \\`.dictionary()\\`. A dictionary offers values` +\n ' for one field; dynamic props load the fields inside an object \u2014 use one or the other.',\n source, path, 'dictionary'\n )\n }\n\n const element = ins.resolvedType === 'array' ? ins.core?._zod?.def?.element as AnyZod | undefined : undefined\n\n if (!isLooseObject(schema) && !isLooseObject(element)) {\n refuse(\n `${ subjectOf(source, path) }: \\`.dynamicProps()\\` needs a loose object \u2014 the loaded fields are not declared,` +\n ` so a plain \\`z.object()\\` would strip them. ${ DYNAMIC_PROPS_FIX }`,\n source, path, ins.resolvedType ?? 'unknown'\n )\n }\n}\n\n// One declared field, then whatever it contains. `seen` stops a recursive `z.lazy()` from walking forever.\nfunction assertField(schema: AnyZod | undefined, source: SchemaSource, path: string, seen: Set<unknown>, topLevel = false): void {\n if (!schema || seen.has(schema)) {\n return\n }\n\n seen.add(schema)\n\n const ins = inspect(schema)\n\n if (ins.meta.frDynamicProps && !isDynamicPropsSlot(source, topLevel)) {\n refuse(\n `${ subjectOf(source, path) } uses \\`.dynamicProps()\\`, which is supported on top-level action params only.` +\n ' For a list of objects, put it on the array rather than on its element.',\n source, path, 'dynamicProps'\n )\n }\n\n if (ins.resolvedType === 'catch') {\n refuseCatch(source, path)\n }\n\n if (!ins.resolvedType || !SUPPORTED_TYPES.has(ins.resolvedType)) {\n refuseType(source, path, ins.resolvedType)\n }\n\n // Every branch of a union is a declaration in its own right. The union itself already passed the check\n // above AS ITS FIRST BRANCH, which says nothing about the others.\n if (ins.branches) {\n // Numbered, because the reported path is otherwise the field \u2014 and \"declares z.tuple()\" against a field\n // the author wrote as a union names a type they cannot find in their own declaration.\n ins.branches.forEach((branch, index) => assertField(branch, source, `${ path }|branch ${ index + 1 }`, seen))\n }\n\n const def = ins.core._zod?.def ?? {}\n\n // A container's contents are declarations in their own right and are held to the same rule \u2014 the defect\n // this guards against is no less silent one level down.\n if (ins.resolvedType === 'array') {\n assertField(def.element as AnyZod | undefined, source, `${ path }[]`, seen)\n }\n\n if (ins.resolvedType === 'record') {\n assertField(def.valueType as AnyZod | undefined, source, `${ path }{}`, seen)\n }\n\n if (ins.resolvedType === 'object') {\n for (const [name, property] of shapeEntries(ins.core)) {\n assertField(property, source, `${ path }.${ name }`, seen)\n }\n }\n}\n\n/**\n * Throws unless every field `scheme` declares, at every depth, is something the runtime can publish, render\n * and coerce. `undefined` passes \u2014 an undeclared slot is legal everywhere.\n *\n * Only author-declared slots are checked (see `GUARDED_KINDS`).\n */\nexport function assertSupportedSchema(scheme: unknown, source: SchemaSource): void {\n if (scheme == null || !source.kind || !GUARDED_KINDS.has(source.kind)) {\n return\n }\n\n const slot = source.slot ?? 'schema'\n const seen = new Set<unknown>()\n const fields = shapeEntries(scheme as AnyZod)\n const names = fields.map(([name]) => name)\n\n for (const [name, field] of fields) {\n assertField(field, source, `${ slot }.${ name }`, seen, true)\n\n if (isDynamicPropsSlot(source, true)) {\n assertDynamicProps(field, name, names, source, `${ slot }.${ name }`)\n }\n }\n}\n", "import type { AnyZod, Inspected } from './introspect'\n\n// Everything date-shaped, in one place: what counts as a valid date input, and what each date declaration\n// hands the handler.\n//\n// The input space is whatever JSON can carry, because every path into the runner is an HTTP body \u2014 a real\n// `Date` instance is not reachable. That is why `z.date()`, which demands one, could never be satisfied and\n// had to be exempted from validation entirely. It is no longer exempt; instead the value is converted for\n// CHECKING and the declaration decides what comes out:\n//\n// z.date() the input, unchanged \u2014 converting would invent a time of day and a timezone\n// z.coerce.date() a real Date \u2014 zod's own opt-in, and the only honest way to ask for one\n// z.iso.datetime() an ISO datetime string\n// z.iso.date() an ISO date string\n// z.iso.time() an ISO time string\n// z.iso.duration() strict: a duration is not a point in time, so there is nothing to narrow or widen\n\n// A date-only string, and a datetime whose date half we can take without parsing.\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/\nconst HAS_TIME = /^(\\d{4}-\\d{2}-\\d{2})[T ](.+)$/\n// The trailing zone on an extracted time \u2014 `z.iso.time()` rejects it.\nconst ZONE = /(Z|[+-]\\d{2}:?\\d{2})$/\n\nconst isNumeric = (value: string): boolean => value.trim() !== '' && Number.isFinite(Number(value.trim()))\n\n/**\n * Any date input \u2192 a `Date`, or `undefined` when it is not a date at all.\n *\n * A finite number is EPOCH MILLIS, which is what the console's date control stores; a numeric string is that\n * same number through a stringly-typed transport. Everything else that is a string is handed to `Date`.\n *\n * `new Date('nope')` returns a `Date` whose value is `NaN` \u2014 and `z.date()` accepts it \u2014 so an invalid date\n * has to be rejected here explicitly, or garbage would reach a handler looking like a date.\n */\nexport function toDate(value: unknown): Date | undefined {\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? undefined : value\n }\n\n if (typeof value === 'number') {\n return Number.isFinite(value) ? new Date(value) : undefined\n }\n\n if (typeof value !== 'string') {\n return undefined\n }\n\n const parsed = isNumeric(value) ? new Date(Number(value.trim())) : new Date(value)\n\n return Number.isNaN(parsed.getTime()) ? undefined : parsed\n}\n\n/**\n * A date input \u2192 the ISO shape the field declared.\n *\n * NARROWING IS LEXICAL. `'2024-06-01T23:00:00Z'` \u2192 `'2024-06-01'` takes the characters before the `T`;\n * parsing and reformatting would impose UTC, and in UTC+2 that instant is the 2nd, not the 1st. So a string\n * is sliced, never converted.\n *\n * Two conversions do assume UTC, and both are unavoidable:\n * \u2022 widening a date to a datetime invents a time of day (`'2024-06-01'` \u2192 `'2024-06-01T00:00:00Z'`)\n * \u2022 naming a date or a time from EPOCH MILLIS has to pick a wall clock \u2014 the same instant is 2024-06-01\n * in London and 2024-06-02 in Kiritimati\n *\n * `z.iso.datetime()` from millis is not in that class: the instant is preserved and UTC is merely which of\n * several equivalent spellings we emit.\n */\nexport function toIso(value: unknown, format: string): string | undefined {\n const text = typeof value === 'string' ? value.trim() : undefined\n // A string keeps its own wording wherever the shape can be reached by slicing it.\n const lexical = text && !isNumeric(text) ? sliceIso(text, format) : undefined\n\n if (lexical) {\n return lexical\n }\n\n const parsed = toDate(value)\n\n if (!parsed) {\n return undefined\n }\n\n const iso = parsed.toISOString()\n\n if (format === 'datetime') {\n return iso\n }\n\n if (format === 'date') {\n return iso.slice(0, 10)\n }\n\n if (format === 'time') {\n return iso.slice(11, 19)\n }\n\n return undefined\n}\n\n// The shape reachable from `text` without any timezone maths. `undefined` when slicing cannot get there.\nfunction sliceIso(text: string, format: string): string | undefined {\n const timed = HAS_TIME.exec(text)\n\n if (format === 'datetime') {\n // Already a datetime: keep the author's own spelling, offset and precision included.\n return timed ? text : undefined\n }\n\n if (format === 'date') {\n return timed ? timed[1] : DATE_ONLY.test(text) ? text : undefined\n }\n\n if (format === 'time') {\n const time = timed ? timed[2] : DATE_ONLY.test(text) ? undefined : text\n\n return time ? time.replace(ZONE, '') : undefined\n }\n\n return undefined\n}\n\n/** The zod format token a schema declared, if any: 'datetime' | 'date' | 'time' | 'duration' | \u2026 */\nexport const formatOf = (ins: Inspected): string | undefined =>\n (ins.core as { _zod?: { def?: { format?: string } } } | undefined)?._zod?.def?.format\n\n/** The ISO formats this module converts INTO. `duration` is absent on purpose \u2014 it stays strict. */\nexport const isConvertibleIso = (format?: string): boolean =>\n format === 'datetime' || format === 'date' || format === 'time'\n\n/**\n * True for `z.date()` and false for `z.coerce.date()`.\n *\n * `.coerce` is zod's own flag, set by `z.coerce.date()` and readable through the optional/nullable/default\n * wrappers \u2014 so the author's intent is a flag to look up rather than a heuristic to guess.\n */\nexport const passesDateThrough = (ins: Inspected): boolean =>\n ins.coreType === 'date' && !(ins.core as { _zod?: { def?: { coerce?: boolean } } })?._zod?.def?.coerce\n\n/** Whether a schema, at any depth, has a `z.date()` whose value must survive validation unchanged. */\nexport function hasPassThroughDate(schema: AnyZod | undefined, inspectSchema: (s: AnyZod) => Inspected,\n entriesOf: (s: AnyZod | undefined) => [string, AnyZod][]): boolean {\n if (!schema) {\n return false\n }\n\n const ins = inspectSchema(schema)\n\n if (passesDateThrough(ins)) {\n return true\n }\n\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n const children = [\n ...entriesOf(ins.core).map(([, child]) => child),\n ...(element ? [element] : []),\n ...(valueType ? [valueType] : []),\n // Every branch of a union, not just the one it resolved to. `z.union([z.number(), z.date()])` coerces\n // through the date branch at runtime, so the restore walk has to know a date is reachable here \u2014 or the\n // handler receives the converted `Date` instead of the string the host sent.\n ...(ins.branches ?? []),\n ]\n\n return children.some(child => hasPassThroughDate(child, inspectSchema, entriesOf))\n}\n", "import { type AnyZod, inspect } from './introspect'\n\n// A field's display NAME. Unlike its description (./defaults.ts), this is never derived from the\n// declaration: the field key already carries intent a type or format cannot \u2014 `contactEmail` reads as\n// \"Contact Email\", where a per-format label would flatten it to \"Email\" \u2014 so a generic fallback word would\n// only ever be a downgrade.\n\n// Words a title-cased label should shout rather than capitalise. Without these, `baseUrl` reads as\n// \"Base Url\" \u2014 derived-looking in exactly the way that makes an author go and write the label by hand.\nconst ACRONYMS = new Set(['id', 'url', 'urls', 'api', 'uri', 'ip', 'ipv4', 'ipv6', 'uuid', 'guid', 'jwt',\n 'sms', 'html', 'css', 'json', 'xml', 'csv', 'pdf', 'sql', 'ttl', 'sku', 'utm', 'cc', 'bcc', 'crm', 'db'])\n\n// A field key as a human label: `contactEmail` \u2192 \"Contact Email\", `base_url` \u2192 \"Base URL\".\nexport function humanizeKey(name: string): string {\n return name\n // split camelCase and consecutive-capital runs (`baseURL` \u2192 `base URL`)\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n .replace(/[_-]+/g, ' ')\n .trim()\n .split(/\\s+/)\n .filter(Boolean)\n .map(word => ACRONYMS.has(word.toLowerCase())\n ? word.toUpperCase()\n : word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')\n}\n\n// The label as the console should show it: the author's, else the field key made human.\nexport const labelOf = (name: string, schema: AnyZod): string =>\n inspect(schema).meta.title || humanizeKey(name) || name\n", "import { hasPassThroughDate, passesDateThrough } from './dates'\nimport { type AnyZod, DEFAULT_WRAPPERS, innerOf, inspect, shapeEntries, TRANSPARENT_WRAPPERS } from './introspect'\nimport { labelOf } from './labels'\n\n// What one declared field needs, worked out ONCE and reused for every invocation.\n//\n// The interesting part is `absence`. An author writes `.optional()` or `.nullable()` \u2014 whichever reads\n// naturally \u2014 and should not have to predict which absent form a client will send. So instead of reading the\n// wrapper chain, we ASK THE SCHEMA what it accepts: two `safeParse` probes settle it, and they are immune to\n// wrapper order (`.optional().nullable()` vs `.nullable().optional()`), to `.refine()` wrapping the type, and\n// to any modifier zod adds later. Introspection would have to keep up with all three.\n\nexport type AbsencePolicy =\n // The schema tolerates both forms, so whichever arrived is passed through (`.nullish()`).\n | 'as-received'\n // Only `undefined` is accepted (`.optional()`, `.default(v)`), so any absence becomes that.\n | 'undefined'\n // Only `null` is accepted (`.nullable()`), so any absence becomes that.\n | 'null'\n // Neither \u2014 the field has nothing to fall back on.\n | 'required'\n\nexport interface FieldPlan {\n name: string\n schema: AnyZod\n // The author's display name, used in messages. Falls back to the key.\n label: string\n // Core zod type past the wrappers: 'string' | 'number' | 'boolean' | 'enum' | 'date' | \u2026\n // For a union this is the FIRST branch's type \u2014 see `isUnion`.\n coreType: string\n /**\n * True when the declaration is a `z.union()`.\n *\n * Carried because `coreType` alone stops describing the field: a union resolves to its first branch, so a\n * `z.union([z.email(), z.literal('')])` reports `'string'` and would then treat a blank as a VALUE. It is\n * not one \u2014 `''` has always been absence on a union, which is exactly what makes the documented\n * \"blank means not set\" spelling (`z.union([z.url(), z.literal('')]).optional()`) work.\n */\n isUnion: boolean\n absence: AbsencePolicy\n // True when a declared `.default(v)` will absorb an absent value \u2014 which is also what lets a blank string\n // fall back to the default rather than surviving as `''`.\n absorbsBlank: boolean\n /**\n * True for a `z.date()` whose value must reach the handler UNCHANGED \u2014 validated through a converted copy,\n * handed over as the host sent it. False for `z.coerce.date()`, which the author asked to convert.\n *\n * Set when the field ITSELF is such a date; `restoresDates` covers one nested anywhere inside it.\n */\n passThroughDate: boolean\n // Whether anything at any depth needs that treatment, so the restore walk can be skipped entirely.\n restoresDates: boolean\n}\n\n// Ask the schema which absent forms it accepts. A probe can only throw for an async refinement placed\n// outside the modifier, in which case treating the field as required is the safe reading.\n/**\n * The absent forms the author DECLARED, read off the wrapper chain.\n *\n * Used only where the probe below cannot be trusted \u2014 see `probeAbsence`. It has to agree with the probe on\n * every schema the probe handles, which is why it treats `.default()` as accepting `undefined`: zod applies\n * a default to `undefined`, so that is what the probe observes too.\n */\nfunction declaredAbsence(schema: AnyZod): { absence: AbsencePolicy; absorbsBlank: boolean } {\n let current: AnyZod | undefined = schema\n let acceptsUndefined = false\n let acceptsNull = false\n let absorbsBlank = false\n // `.nonoptional()` re-asserts a requirement over whatever it wraps \u2014 an `.optional()` further in does not\n // undo it, so nothing after it may set a flag. Mirrors the same rule in ./introspect.ts `inspect`.\n let sealed = false\n\n while (current?._zod) {\n const def = current._zod.def ?? {}\n const type = def.type as string\n\n if (type === 'nonoptional') {\n sealed = true\n } else if (TRANSPARENT_WRAPPERS.has(type)) {\n // Says nothing about absence \u2014 look straight through it, exactly as `inspect` does.\n current = innerOf(def, type)\n continue\n } else if (sealed) {\n break\n } else if (type === 'optional') {\n acceptsUndefined = true\n } else if (type === 'nullable') {\n acceptsNull = true\n } else if (type === 'nullish') {\n acceptsUndefined = true\n acceptsNull = true\n } else if (DEFAULT_WRAPPERS.has(type)) {\n acceptsUndefined = true\n absorbsBlank = true\n } else {\n break\n }\n\n current = def.innerType as AnyZod\n }\n\n const absence: AbsencePolicy = acceptsUndefined && acceptsNull ? 'as-received'\n : acceptsUndefined ? 'undefined'\n : acceptsNull ? 'null'\n : 'required'\n\n return { absence, absorbsBlank }\n}\n\n// `z.coerce.*` converts an ABSENT value into a junk one rather than rejecting it \u2014 `new Date(null)` is the\n// epoch, `Number('')` is 0, `String(undefined)` is the text `'undefined'`, `Boolean(null)` is false. So a\n// coercing schema answers \"yes\" to the probe below for a field the author declared REQUIRED, and a blank\n// silently becomes 1970-01-01 or 0 instead of being reported. Where coercion is what makes the answer yes,\n// the declaration is the authority instead.\nfunction coerces(schema: AnyZod): boolean {\n return inspect(schema).core?._zod?.def?.coerce === true\n}\n\n/**\n * `z.json()` \u2014 the same problem as `z.coerce.*` above, from the other direction.\n *\n * It declares `z.unknown()` underneath, because what reaches the handler is a parsed JSON value and `null`\n * is one of those. The probe then sees a schema that accepts `null` and reads it as \"null is how this field\n * spells absence\", so a bare `z.json()` published as OPTIONAL \u2014 a field the author never marked optional and\n * which the runtime does in fact reject when it is missing.\n *\n * The probe cannot tell a legal value from an absent form by asking, so the declaration is the authority\n * here too: `.nonoptional()` on the helper means required, and an author's own `.optional()` sits outside it\n * and still wins.\n */\nconst parsesJson = (schema: AnyZod): boolean => !!inspect(schema).meta.frJson\n\nfunction probeAbsence(schema: AnyZod): { absence: AbsencePolicy; absorbsBlank: boolean } {\n if (coerces(schema) || parsesJson(schema)) {\n return declaredAbsence(schema)\n }\n\n const parse = (value: unknown): { success: boolean; data?: unknown } => {\n try {\n return (schema as unknown as { safeParse: (v: unknown) => { success: boolean; data?: unknown } }).safeParse(value)\n } catch {\n return { success: false }\n }\n }\n\n const asUndefined = parse(undefined)\n const asNull = parse(null)\n\n // \"Accepts both\" must win over \"has a default\": for `z.string().nullable().default('x')` the author said\n // null is meaningful, and zod applies the default to `undefined` on its own.\n const absence: AbsencePolicy = asUndefined.success && asNull.success ? 'as-received'\n : asUndefined.success ? 'undefined'\n : asNull.success ? 'null'\n : 'required'\n\n // A default reveals itself by yielding something other than what was fed in. This is also why a falsy\n // default (`''`, `0`, `false`) is detected correctly, where a truthiness check would drop it.\n return { absence, absorbsBlank: asUndefined.success && asUndefined.data !== undefined }\n}\n\n// Probing costs two `safeParse` calls, and the deep walk asks the same element or property schema once per\n// item. Schemas are stable objects built at registration, so the answer is cached against the schema itself.\nconst probeCache = new WeakMap<object, { absence: AbsencePolicy; absorbsBlank: boolean }>()\n\n/** The absent forms a schema accepts, at any depth. Same question `planField` asks for a top-level field. */\nexport function absenceOf(schema: AnyZod | undefined): { absence: AbsencePolicy; absorbsBlank: boolean } {\n if (!schema || typeof schema !== 'object') {\n return { absence: 'as-received', absorbsBlank: false }\n }\n\n const cached = probeCache.get(schema as object)\n\n if (cached) {\n return cached\n }\n\n const probed = probeAbsence(schema)\n\n probeCache.set(schema as object, probed)\n\n return probed\n}\n\nexport function planField(name: string, schema: AnyZod): FieldPlan {\n const ins = inspect(schema)\n const { absence, absorbsBlank } = probeAbsence(schema)\n\n return {\n name,\n schema,\n label: labelOf(name, schema),\n coreType: ins.coreType,\n isUnion : !!ins.branches,\n absence,\n absorbsBlank,\n passThroughDate: passesDateThrough(ins),\n restoresDates : hasPassThroughDate(schema, inspect, shapeEntries),\n }\n}\n", "import { formatOf, isConvertibleIso, toDate, toIso } from './dates'\nimport { absenceOf } from './field-plan'\nimport { type AnyZod, inspect, type Inspected, literalType, shapeEntries } from './introspect'\n\n// Step 2 of the pipeline: turn a transport value into the declared type.\n//\n// Coercion exists because the transport is stringly-typed. `toConfigType` maps `z.number()` to a *string*\n// config item \u2014 the config form has no numeric widget \u2014 so a number is stored and sent as `'123'`.\n// Expression-bound params do the same. Without this, every numeric config item would fail its own schema.\n//\n// Coerce only where the intent is unambiguous; anything else is an error rather than a guess. Note that\n// `z.coerce.*` is unusable here: `z.coerce.number().parse('')` is `0` and `z.coerce.boolean().parse('false')`\n// is `true`. This runs AFTER absence normalization, so a blank never reaches it.\n\nexport interface Coerced {\n ok: boolean\n value?: unknown\n // The zod type token the value should have been; ../schema/messages turns it into wording.\n expected?: string\n}\n\nconst ok = (value: unknown): Coerced => ({ ok: true, value })\nconst fail = (expected: string): Coerced => ({ ok: false, expected })\n\n// Matched after trim + lowercase. The test for ADDING a token, so the set has a stopping rule rather than\n// growing by precedent: it must have an unambiguous opposite, and the pair must both be listed. A word with\n// no opposite is a STATUS, not a boolean, and belongs in a `z.enum([...])`.\n//\n// Widening is only safe BECAUSE an unrecognised value fails (see `toBooleanValue`). Making an unknown default\n// to `false` \u2014 the partial hand-rolled allow-list this replaces \u2014 silently turns an explicit off into an on.\n//\n// The list is published to authors, so a change here is a change in three more places: the exhaustive pass in\n// `__tests__/configs-service.test.ts`, the table in `service-code-format/02-zod-types.md` (shipped inside the\n// CLI package), and the prose in `docs/guides/flow-extensions-custom/parameters-and-types.md`.\nconst TRUE = new Set(['true', '1', 'yes', 'y', 't', 'on', 'checked', 'enabled', 'enable', 'active'])\nconst FALSE = new Set(['false', '0', 'no', 'n', 'f', 'off', 'unchecked', 'disabled', 'disable', 'inactive'])\n\nfunction toStringValue(value: unknown): Coerced {\n if (typeof value === 'string') {\n return ok(value)\n }\n\n // A number or a boolean in a text field has one obvious text form. A structure does not \u2014 `String({})` is\n // '[object Object]' and `String([1,2])` is '1,2', which are artefacts of JS rather than what was meant.\n if (typeof value === 'boolean') {\n return ok(String(value))\n }\n\n return typeof value === 'number' && Number.isFinite(value) ? ok(String(value)) : fail('string')\n}\n\nfunction toNumberValue(value: unknown): Coerced {\n if (typeof value === 'number') {\n return Number.isFinite(value) ? ok(value) : fail('number')\n }\n\n if (typeof value !== 'string') {\n return fail('number')\n }\n\n // `Number('')` is 0 and `Number(' ')` is 0, so require actual digits. A blank has already been treated as\n // absence by this point; anything else non-numeric is a caller error.\n const parsed = Number(value.trim())\n\n return value.trim() !== '' && Number.isFinite(parsed) ? ok(parsed) : fail('number')\n}\n\n// `z.bigint()` wants an actual BigInt, so `Number()` would never satisfy it \u2014 a whole number is the only\n// input that can be converted without losing information.\nfunction toBigIntValue(value: unknown): Coerced {\n if (typeof value === 'bigint') {\n return ok(value)\n }\n\n if (typeof value === 'number') {\n return Number.isInteger(value) ? ok(BigInt(value)) : fail('bigint')\n }\n\n if (typeof value !== 'string' || value.trim() === '') {\n return fail('bigint')\n }\n\n try {\n return ok(BigInt(value.trim()))\n } catch {\n return fail('bigint')\n }\n}\n\nfunction toBooleanValue(value: unknown): Coerced {\n if (typeof value === 'boolean') {\n return ok(value)\n }\n\n if (typeof value === 'number') {\n return value === 1 ? ok(true) : value === 0 ? ok(false) : fail('boolean')\n }\n\n if (typeof value !== 'string') {\n return fail('boolean')\n }\n\n const lowered = value.trim().toLowerCase()\n\n return TRUE.has(lowered) ? ok(true) : FALSE.has(lowered) ? ok(false) : fail('boolean')\n}\n\n/**\n * `z.json()` \u2014 the transport carries text, the handler gets the structure.\n *\n * Parsing belongs here rather than in a `.transform()` for the reason the whole module exists: a failure has\n * to arrive as the same `Coerced` miss every other wrong-typed value produces, so it is reported against the\n * field by its label (\u00ABPayload\u00BB must be valid JSON) instead of escaping as a raw `SyntaxError` that names\n * neither the extension, the method, nor the parameter.\n */\nfunction toJsonValue(value: unknown): Coerced {\n // Already a structure. A flow can bind the parameter to an expression that evaluates to one, so the value\n // does not always arrive as text \u2014 and `JSON.parse({})` would throw on exactly the payload this type\n // exists to carry. Nothing to convert means nothing to do.\n if (typeof value !== 'string') {\n return ok(value)\n }\n\n try {\n return ok(JSON.parse(value))\n } catch {\n return fail('json')\n }\n}\n\n/**\n * Coerce one SCALAR `value` for a field whose core zod type is `coreType`. Types with no meaningful coercion\n * \u2014 enum, and everything the runtime does not special-case \u2014 pass through for the author's schema to judge:\n * membership is zod's job, not ours.\n *\n * Dates need the SCHEMA rather than the type name, because `z.date()`, `z.coerce.date()` and `z.iso.date()`\n * convert differently \u2014 see `coerceLeaf`.\n */\nexport function coerceValue(value: unknown, coreType: string): Coerced {\n if (coreType === 'string') {\n return toStringValue(value)\n }\n\n if (coreType === 'number') {\n return toNumberValue(value)\n }\n\n if (coreType === 'bigint') {\n return toBigIntValue(value)\n }\n\n if (coreType === 'boolean') {\n return toBooleanValue(value)\n }\n\n if (coreType === 'date') {\n const parsed = toDate(value)\n\n return parsed ? ok(parsed) : fail('date')\n }\n\n // An enum's options may be numbers declared as strings, so stringify a number and let zod check membership.\n if (coreType === 'enum' && typeof value === 'number') {\n return ok(String(value))\n }\n\n return ok(value)\n}\n\n/** Whether a schema accepts a value outright. A probe, so a throwing refinement reads as \"no\". */\nexport function accepts(schema: AnyZod, value: unknown): boolean {\n try {\n return !!(schema as unknown as { safeParse?: (v: unknown) => { success: boolean } })\n .safeParse?.(value)?.success\n } catch {\n return false\n }\n}\n\n/**\n * A union, resolved by TRYING its branches in declaration order \u2014 the first that coerces to something its\n * own branch accepts wins.\n *\n * Trying rather than picking is what keeps D1/D7 closed inside a union: a flow template supplies every value\n * as a string, so `z.union([z.boolean(), z.string()])` given `'true'` has to convert through the boolean\n * branch and succeed there. Picking the first branch blindly would hand `execute` the string.\n *\n * \u26A0\uFE0F **A permissive branch shadows every branch after it.** `z.union([z.string(), z.boolean()])` given\n * `'true'` matches the string branch as-is, so the boolean branch is never reached and `execute` receives\n * `'true'`. That is the same positional rule as publishing (both read declaration order, left to right),\n * which is why it was chosen \u2014 one mental model covers both. It is documented, and pinned by a test.\n *\n * When NO branch accepts it, the value is handed back untouched so the author's own union error is what the\n * user sees. This step never invents an error.\n */\nfunction coerceUnion(value: unknown, branches: AnyZod[]): unknown {\n for (const branch of branches) {\n const coerced = coerceDeep(value, branch)\n\n if (accepts(branch, coerced)) {\n return coerced\n }\n }\n\n return value\n}\n\n// The container types that DECLARE something about their contents, and so can be walked. Everything else \u2014\n// `unknown`, a bare `any` \u2014 declares nothing and is passed through as it arrived.\nconst CONTAINERS = new Set(['object', 'array', 'record'])\n\n/**\n * The same coercion, applied at every DEPTH \u2014 inside a declared object's properties and inside a list's\n * elements, not only at the top of a field.\n *\n * Without this a declaration means different things depending on where it sits: `z.string()` takes `42` at\n * the top level but `z.array(z.string())` rejects `[42]`, and `z.object({ zip: z.string() })` rejects\n * `{ zip: 12345 }`. The transport is no more type-faithful inside a container than outside one.\n *\n * The rule is simply: **walk whatever declares its contents, convert whatever declares a type, and leave\n * everything else alone.** A `z.record(z.string(), z.unknown())` therefore coerces nothing \u2014 not because\n * records are exempt, but because `unknown` declares no type to coerce to \u2014 while\n * `z.record(z.string(), z.number())` converts its values like any other declaration.\n *\n * BEST-EFFORT below the top level: a value that cannot be converted is left exactly as it arrived, for the\n * author's own schema to reject. That keeps the failure reported against the property that actually failed\n * (`tags.1`, `address.zip`) rather than as a coercion error naming the whole field, and it keeps this step\n * incapable of making anything stricter \u2014 it only ever converts.\n *\n * Absence is resolved at every depth too, by the same rule the top level uses: ask the sub-schema which\n * absent forms it accepts, and hand it the one it wants. Without that, `.optional()` means one thing on a\n * field and another inside a list \u2014 `z.array(z.string().optional())` would reject `[null]` while a bare\n * `z.string().optional()` accepts it.\n *\n * A sub-schema that accepts NO absent form is left exactly as it arrived, so zod raises it and the message\n * is built against the property that failed (`\u00ABCity\u00BB is required`) \u2014 this step never invents an error.\n */\nexport function coerceDeep(value: unknown, schema: AnyZod | undefined): unknown {\n if (!schema) {\n return value\n }\n\n const ins = inspect(schema)\n\n if (isBlank(value, ins, schema)) {\n return absentAs(schema, value)\n }\n\n if (value == null) {\n return value\n }\n\n // Before any type branch below: a union has no single type to walk, it has a list to try.\n if (ins.branches) {\n return coerceUnion(value, ins.branches)\n }\n\n if (ins.coreType === 'array') {\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n\n return Array.isArray(value) ? value.map(item => coerceDeep(item, element)) : value\n }\n\n if (ins.coreType === 'record') {\n if (typeof value !== 'object' || Array.isArray(value)) {\n return value\n }\n\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>).map(([key, item]) => [key, coerceDeep(item, valueType)])\n )\n }\n\n if (ins.coreType === 'object') {\n if (typeof value !== 'object' || Array.isArray(value)) {\n return value\n }\n\n const source = value as Record<string, unknown>\n // Only DECLARED properties are walked. An undeclared key is either stripped by zod or carried through\n // untouched by `z.looseObject`; either way the runtime has no declaration to coerce it against.\n const coerced: Record<string, unknown> = { ...source }\n\n for (const [name, property] of shapeEntries(ins.core)) {\n if (name in source) {\n coerced[name] = coerceDeep(source[name], property)\n }\n }\n\n return coerced\n }\n\n const result = coerceLeaf(value, ins)\n\n return result.ok ? result.value : value\n}\n\n/** True when a field's own type is a container this module walks rather than converts. */\nexport const isContainer = (coreType: string): boolean => CONTAINERS.has(coreType)\n\n/**\n * One leaf, converted for VALIDATION.\n *\n * Everything reaches zod as the type it declared: a date arrives as a `Date` whatever form the host sent, and\n * an ISO field arrives as a string in its own declared shape. What the HANDLER receives is a separate\n * question \u2014 a `z.date()` value is restored to the original afterwards (see ../normalize.ts).\n */\nexport function coerceLeaf(value: unknown, ins: Inspected): Coerced {\n // A union reaches here when its first branch is a scalar (that is what `isContainer` was asked about).\n // Always `ok`: an unmatched value is passed on for the author's union to reject with its own message.\n if (ins.branches) {\n return ok(coerceUnion(value, ins.branches))\n }\n\n // Ahead of every type branch below: `z.json()` declares `unknown`, so there is no core type to switch on.\n if (ins.meta.frJson) {\n return toJsonValue(value)\n }\n\n const format = formatOf(ins)\n\n if (ins.coreType === 'string' && isConvertibleIso(format)) {\n const iso = toIso(value, format as string)\n\n if (iso !== undefined) {\n return ok(iso)\n }\n\n // Nothing to reshape. A STRING is handed on unchanged so the format check speaks for itself \u2014 \"expects\n // an ISO date, e.g. 2024-01-01\" tells the author more than \"must be a date\", and it is what a blank or\n // a typo deserves. A non-string could never satisfy a string field at all, so it fails here.\n return typeof value === 'string' ? ok(value) : fail('date')\n }\n\n // A literal publishes as the type of its value (see ./introspect.ts `deriveWidget`), so it has to CONVERT\n // to that type as well. The console draws a toggle for `z.literal(true)` and the flow supplies the string\n // `'true'` like any other boolean; publishing a typed widget without the matching conversion would leave\n // the field unfillable from a flow. A mixed literal declares no single type and is passed through.\n if (ins.coreType === 'literal') {\n const declared = literalType(ins.core)\n\n return declared ? coerceValue(value, declared) : ok(value)\n }\n\n return coerceValue(value, ins.coreType)\n}\n\n// The same \"is this blank?\" rule the top-level pipeline applies (see ../schema/normalize.ts): `''` is a value\n// on a string unless a declared default can absorb it, and absence for every other type.\nfunction isBlank(value: unknown, ins: Inspected, schema: AnyZod): boolean {\n if (value === undefined || value === null) {\n return true\n }\n\n if (value !== '') {\n return false\n }\n\n // A union treats a blank as absence whatever its first branch resolved to. `''` is a value only on a plain\n // string type, and a union is not one \u2014 which is what makes `z.union([z.url(), z.literal('')]).optional()`\n // mean \"blank is not set\", the spelling the docs give for an optional formatted field.\n if (ins.branches) {\n return true\n }\n\n return ins.coreType !== 'string' || absenceOf(schema).absorbsBlank\n}\n\n// Hand the schema whichever absent form it accepts. `required` returns the value untouched, leaving zod to\n// report it against its own path.\nfunction absentAs(schema: AnyZod, value: unknown): unknown {\n const { absence } = absenceOf(schema)\n\n if (absence === 'required') {\n return value\n }\n\n if (absence === 'as-received') {\n return value === '' ? undefined : value\n }\n\n return absence === 'null' ? null : undefined\n}\n", "import { FlowExtensionParamWidgetTypes } from '../widget-types'\nimport { type AnyZod, inspect } from './introspect'\n\n// What a declaration explains about itself when the author wrote no `.describe()` \u2014 so `z.email()` stays a\n// legal one-liner and still renders with usable help text.\n//\n// These are applied at RENDER time, not baked into the published definition: the console derives them from\n// the schema the definition carries, so rewording an entry here reaches every already-deployed service\n// without a redeploy. `field-mapper` therefore publishes the author's description or nothing at all.\n//\n// Also read by ./messages.ts, which restates a format failure using the same wording the field advertises.\n//\n// Labels are NOT derived this way at all \u2014 see ./labels.ts for why the field key always wins.\n\n// Three maps rather than one, because the three key spaces overlap: `date` is both a zod format\n// (`z.iso.date()`) and a core type (`z.date()`). Kept separate, each stays a flat literal table and a\n// collision is impossible.\n\n/** `z.text()` \u2014 FlowRunner's own marker, the most specific thing a field can declare. */\nexport const WIDGET_DESCRIPTIONS: Record<string, string> = {\n [FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT]: 'Expects text; line breaks are allowed',\n}\n\n/**\n * `z.json()`. More specific than the widget it carries: it renders as the same textarea `z.text()` does, so\n * the widget wording would say \"line breaks are allowed\" and leave out the only rule that actually rejects\n * anything \u2014 that what is typed has to parse.\n */\nexport const JSON_DESCRIPTION = 'Expects JSON, e.g. {\"key\": \"value\"}'\n\n/**\n * The plain core type, when nothing more specific is declared.\n *\n * Only worth filling in where the widget does NOT already convey the type. `z.number()` earns one because a\n * number renders as a plain text field \u2014 there is no numeric widget \u2014 so \"Expects a number\" is real\n * information. `z.string()` and `z.boolean()` do not: the field is visibly a text box or a toggle, and\n * filling them would put generic prose under every field of every service, overwriting the meaningful empty\n * state that says \"the service author documented this\".\n */\nexport const TYPE_DESCRIPTIONS: Record<string, string> = {\n number : 'Expects a number',\n bigint : 'Expects a whole number',\n literal: 'Expects one fixed value',\n enum : 'Expects one of the listed options',\n // `z.date()` is deferred until the DATE type gets a widget; `z.iso.date()` is the working alternative.\n date : 'Expects a date',\n // string / boolean / array / object are deliberately absent \u2014 see above.\n}\n\n/**\n * A zod `format` token. Spelled out rather than composed \u2014 the wording is what a customer reads, so it\n * should be editable here without reasoning about how it is assembled. Every example is a value that\n * actually satisfies its helper.\n */\nexport const FORMAT_DESCRIPTIONS: Record<string, string> = {\n // \u2500\u2500 web \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n url : 'Expects a URL, e.g. https://example.com',\n email : 'Expects an email address, e.g. foo@bar.com',\n hostname : 'Expects a hostname, e.g. api.example.com',\n e164 : 'Expects a phone number in E.164 form, e.g. +14155552671',\n emoji : 'Expects an emoji, e.g. \uD83C\uDF89',\n // \u2500\u2500 identifiers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n uuid : 'Expects a UUID, e.g. 3f2504e0-4f89-11d3-9a0c-0305e82c3301',\n guid : 'Expects a GUID, e.g. 3f2504e0-4f89-11d3-9a0c-0305e82c3301',\n nanoid : 'Expects a Nano ID, e.g. V1StGXR8_Z5jdHi6B-myT',\n cuid : 'Expects a CUID, e.g. cjld2cyuq0000t3rmniod1foy',\n cuid2 : 'Expects a CUID2, e.g. tz4a98xxat96iws9zmbrgj3a',\n ulid : 'Expects a ULID, e.g. 01ARZ3NDEKTSV4RRFFQ69G5FAV',\n xid : 'Expects an XID, e.g. 9m4e2mr0ui3e8a215n4g',\n ksuid : 'Expects a KSUID, e.g. 0ujsswThIGTUYm2K8FjOOfXtY1K',\n // \u2500\u2500 ISO 8601 (z.iso.*) \u2014 a validated STRING, unlike the deferred z.date() \u2500\u2500\u2500\n datetime : 'Expects an ISO date and time, e.g. 2024-01-01T00:00:00Z',\n date : 'Expects an ISO date, e.g. 2024-01-01',\n time : 'Expects an ISO time, e.g. 12:30:00',\n duration : 'Expects an ISO duration, e.g. P3Y6M4D',\n // \u2500\u2500 encodings \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n base64 : 'Expects a base64 string, e.g. aGVsbG8=',\n base64url: 'Expects a base64url string, e.g. aGVsbG8',\n hex : 'Expects a hex string, e.g. deadbeef',\n jwt : 'Expects a JWT, e.g. eyJhbGciOiJIUzI1NiJ9.eyJhIjoxfQ.c2ln',\n // \u2500\u2500 network \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n ipv4 : 'Expects an IPv4 address, e.g. 192.168.0.1',\n ipv6 : 'Expects an IPv6 address, e.g. 2001:db8::1',\n cidrv4 : 'Expects an IPv4 range, e.g. 192.168.0.0/24',\n cidrv6 : 'Expects an IPv6 range, e.g. 2001:db8::/32',\n}\n\n/**\n * What a field's declaration explains about itself, most specific wins:\n *\n * 1. `z.json()` \u2014 the content rule, which outranks the widget it shares with `z.text()`\n * 2. a FlowRunner widget marker \u2014 `z.text()`, a string the console renders specially\n * 3. a zod `format` token \u2014 `z.email()`, `z.ipv4()`, `z.iso.date()`, \u2026\n * 4. the plain core type \u2014 `number`, `bigint`, `literal`, `enum`, `date`\n *\n * All three are read past the optional/nullable/default wrappers, so a modifier never changes the answer.\n */\nexport function describeField(schema: AnyZod): string | undefined {\n const ins = inspect(schema)\n const format = (ins.core as { _zod?: { def?: { format?: string } } } | undefined)?._zod?.def?.format\n\n if (ins.meta.frJson) {\n return JSON_DESCRIPTION\n }\n\n return WIDGET_DESCRIPTIONS[ins.meta.frWidget ?? ''] ??\n FORMAT_DESCRIPTIONS[format ?? ''] ??\n TYPE_DESCRIPTIONS[ins.coreType]\n}\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue } from '../types'\nimport { FORMAT_DESCRIPTIONS } from './defaults'\nimport type { FieldPlan } from './field-plan'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\nimport { labelOf } from './labels'\n\n// Step 3's output, made readable. Zod's defaults describe the parser's disappointment rather than the\n// author's mistake \u2014 \"Invalid input: expected string, received undefined\" \u2014 so each issue code is restated\n// against the field's own `.label()`. An author-supplied message (`z.string().min(3, 'Too short')`) is left\n// exactly as written; only zod's own wording is replaced.\n//\n// A failure can be DEEPER than the field: `address.city` inside an object, `tags.1` inside a list. Those are\n// named by walking the declaration down the issue's own path, so the message names the property the user has\n// to fix rather than the container it sits in.\n\n// zod's `format` tokens, in the author's vocabulary. A format it does not name (a bare `.regex()`, say) has\n// nothing worth restating, so it falls back to the generic wording.\n// zod's `expected` tokens, as the phrase that completes \"\u00ABLabel\u00BB must be \u2026\". Spelled out so the wording is\n// editable without composing articles.\nconst EXPECTED: Record<string, string> = {\n string : 'a string',\n number : 'a number',\n int : 'an integer',\n bigint : 'a whole number',\n boolean: 'true or false',\n date : 'a date',\n object : 'an object',\n array : 'an array',\n // `z.json()`. Not a zod token \u2014 ./coerce.ts raises it when the submitted text will not parse.\n json : 'valid JSON',\n}\n\nexport const requiredMessage = (plan: FieldPlan): string => `\u00AB${ plan.label }\u00BB is required`\n\nexport const invalidTypeMessage = (plan: FieldPlan, expected: string): string =>\n `\u00AB${ plan.label }\u00BB must be ${ EXPECTED[expected] ?? expected }`\n\n// What one issue is ABOUT: the deepest declared thing on its path, and the value that sits there.\ninterface IssueTarget {\n // How to name it: a nested property uses its own label; a list item names the list plus its position.\n label: string\n // The submitted value at that path \u2014 how \"left empty\" is told apart from \"wrong type\" below the top level,\n // where the absence pipeline never ran (it only normalizes the field, not the field's insides).\n value: unknown\n found: boolean\n}\n\nconst isIndex = (segment: string): boolean => /^\\d+$/.test(segment)\n\n/**\n * Walk the field's declaration and the submitted value together, one path segment at a time.\n *\n * Stops early if the path leads somewhere the declaration does not describe (a passthrough object, say) and\n * reports the deepest thing it did resolve \u2014 a slightly less specific label beats a wrong one.\n */\nfunction resolveTarget(plan: FieldPlan, segments: string[], fieldValue: unknown): IssueTarget {\n let schema: AnyZod | undefined = plan.schema\n let value: unknown = fieldValue\n let label = plan.label\n let found = true\n\n for (const segment of segments) {\n const core = schema ? inspect(schema).core : undefined\n const coreType = core ? inspect(schema as AnyZod).coreType : undefined\n\n value = value == null ? undefined : (value as Record<string, unknown>)[segment]\n\n if (coreType === 'array' && isIndex(segment)) {\n // A list item has no name of its own, so it borrows the list's and states its position. 1-based: the\n // message is read by whoever filled the form in, not by whoever indexed the array.\n label = `${ label } item ${ Number(segment) + 1 }`\n schema = core?._zod?.def?.element as AnyZod | undefined\n continue\n }\n\n const nested = shapeEntries(core).find(([name]) => name === segment)\n\n if (!nested) {\n found = false\n break\n }\n\n schema = nested[1]\n label = labelOf(segment, schema)\n }\n\n return { label, value, found }\n}\n\n/**\n * A range bound, as the author would recognise it.\n *\n * zod compares dates as instants, so `z.date().min(new Date('2024-01-01'))` reports its bound as\n * `1704067200000` \u2014 a number nobody typed. On a date field it is rendered back as an ISO string.\n */\nfunction bound(value: unknown, plan: FieldPlan): string {\n if (plan.coreType !== 'date' || typeof value !== 'number') {\n return String(value)\n }\n\n const asDate = new Date(value)\n\n return Number.isNaN(asDate.getTime()) ? String(value) : asDate.toISOString()\n}\n\n// A zod issue carrying a custom message the author wrote \u2014 nothing to restate.\nfunction isAuthored(issue: ZodIssue & { message?: string }): boolean {\n const message = issue.message ?? ''\n\n // Every zod default starts by naming the input or the constraint; an authored one is arbitrary prose.\n return !!message && !/^(Invalid|Too big|Too small|Unrecognized|Not multiple)/.test(message)\n}\n\n/**\n * Restate one zod issue for a field. `path` is the field key \u2014 issues from a nested object keep the zod path\n * appended, so a caller can still point at the exact property.\n */\nexport function toFieldIssue(\n plan: FieldPlan,\n issue: ZodIssue & { message?: string; expected?: string; minimum?: unknown; maximum?: unknown; values?: unknown[] },\n fieldValue?: unknown\n): ValidationIssue {\n const segments = (issue.path ?? []).map(String).filter(Boolean)\n const path = segments.length ? `${ plan.name }.${ segments.join('.') }` : plan.name\n const code = issue.code ?? 'custom'\n const target = resolveTarget(plan, segments, fieldValue)\n // `plan` carries the top-level label; below the top level the resolved target carries the right one.\n const named = { ...plan, label: target.label }\n\n if (isAuthored(issue)) {\n return { path, code, message: issue.message as string }\n }\n\n if (code === 'invalid_type') {\n // Absence reaching validation means nothing was there to fall back on. At the top level the pipeline has\n // already normalized absence, so zod's `received` settles it; deeper down nothing normalized the value,\n // so the submitted value itself is what says whether the field was left empty or filled in wrongly.\n const received = (issue as { received?: string }).received\n const absent = segments.length\n ? target.found && target.value == null\n : received === 'undefined' || received === 'null' || issue.expected === undefined\n\n return absent\n ? { path, code, message: requiredMessage(named) }\n : { path, code, message: invalidTypeMessage(named, issue.expected ?? '') }\n }\n\n if (code === 'too_small') {\n return { path, code, message: `\u00AB${ target.label }\u00BB must be at least ${ bound(issue.minimum, plan) }` }\n }\n\n if (code === 'too_big') {\n return { path, code, message: `\u00AB${ target.label }\u00BB must be at most ${ bound(issue.maximum, plan) }` }\n }\n\n if (code === 'invalid_value') {\n // zod reports the accepted set as `values`.\n const values = (issue.values ?? []).map(String)\n\n return { path, code, message: `\u00AB${ target.label }\u00BB must be one of: ${ values.join(', ') }` }\n }\n\n if (code === 'invalid_format') {\n // The format's own description already says what shape is expected, so restate that rather than\n // inventing a second phrasing for the same fact.\n const described = FORMAT_DESCRIPTIONS[(issue as { format?: string }).format ?? '']\n\n return described\n ? { path, code, message: `\u00AB${ target.label }\u00BB is invalid \u2014 ${ described.replace(/^Expects /, 'expects ') }` }\n : { path, code, message: `\u00AB${ target.label }\u00BB has an invalid format` }\n }\n\n return { path, code, message: `\u00AB${ target.label }\u00BB is invalid` }\n}\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue } from '../types'\nimport { accepts, coerceDeep, coerceLeaf, isContainer } from './coerce'\nimport { passesDateThrough } from './dates'\nimport type { FieldPlan } from './field-plan'\nimport { type AnyZod, inspect, shapeEntries } from './introspect'\nimport { invalidTypeMessage, requiredMessage, toFieldIssue } from './messages'\n\n// The pipeline, per field:\n//\n// 1. normalize absence \u2192 2. coerce to the declared type \u2192 3. validate (the author's own schema)\n//\n// The order is load-bearing. Absence first, or a blank becomes garbage (`Number('')` is 0). Validation last,\n// and against the author's schema unchanged, so `.min()`, `.max()`, `.int()`, `.regex()`, enum membership and\n// refinements all work natively \u2014 nothing here reimplements them.\n\nexport interface FieldResult {\n // Absent from the output entirely when the field resolved to \"not present\" and had nothing to stand in.\n value?: unknown\n present: boolean\n issues: ValidationIssue[]\n}\n\nconst resolved = (value: unknown): FieldResult => ({ value, present: true, issues: [] })\nconst rejected = (issues: ValidationIssue[]): FieldResult => ({ present: false, issues })\n\n// `undefined` and `null` are always absence. `''` is absence only where the type has no empty value, or\n// where a declared default can absorb it \u2014 on a string it is otherwise a real value.\nfunction isAbsent(value: unknown, plan: FieldPlan): boolean {\n if (value === undefined || value === null) {\n return true\n }\n\n if (value !== '') {\n return false\n }\n\n // Same rule the deep walk applies (see ./coerce.ts `isBlank`): `''` is a value only on a plain string\n // type. A union resolves to its first branch for publishing, but that must not turn a blank into a value.\n if (plan.isUnion) {\n return true\n }\n\n return plan.coreType !== 'string' || plan.absorbsBlank\n}\n\n// Absence becomes whichever form the schema accepts, so the author's choice of modifier decides what the\n// handler sees rather than what the client happened to send.\nfunction normalizeAbsence(value: unknown, plan: FieldPlan): FieldResult {\n if (plan.absence === 'required') {\n return rejected([{ path: plan.name, code: 'invalid_type', message: requiredMessage(plan) }])\n }\n\n if (plan.absence === 'as-received') {\n // `.nullish()` accepts both, so a blank collapses to `undefined` and the rest arrive as sent.\n return validate(value === '' ? undefined : value, plan)\n }\n\n return validate(plan.absence === 'null' ? null : undefined, plan)\n}\n\n// Step 3. Zod short-circuits on the absent form it accepts, so a constraint never fires on an absent value.\nfunction validate(value: unknown, plan: FieldPlan): FieldResult {\n const schema = plan.schema as unknown as {\n safeParse: (v: unknown) => { success: boolean; data?: unknown; error?: { issues?: ZodIssue[] } }\n }\n\n let result\n\n try {\n result = schema.safeParse(value)\n } catch {\n // An async refinement cannot be evaluated here; surface it as a plain failure rather than crashing.\n return rejected([{ path: plan.name, code: 'custom', message: `\u00AB${ plan.label }\u00BB could not be validated` }])\n }\n\n return result.success\n ? resolved(result.data)\n : rejected((result.error?.issues ?? []).map(issue => toFieldIssue(plan, issue, value)))\n}\n\nexport function normalizeField(value: unknown, plan: FieldPlan): FieldResult {\n if (isAbsent(value, plan)) {\n return normalizeAbsence(value, plan)\n }\n\n // A container is WALKED \u2014 its declared properties and its elements are coerced in place \u2014 where a scalar\n // is converted outright. A container that cannot be walked (a string where a list was declared) is passed\n // through for zod to reject as the wrong type.\n if (isContainer(plan.coreType)) {\n return restore(validate(coerceDeep(value, plan.schema), plan), value, plan)\n }\n\n const coerced = coerceLeaf(value, inspect(plan.schema))\n\n if (!coerced.ok) {\n return rejected([{\n path : plan.name,\n code : 'invalid_type',\n message: invalidTypeMessage(plan, coerced.expected as string),\n }])\n }\n\n return restore(validate(coerced.value, plan), value, plan)\n}\n\n/**\n * Give a `z.date()` back the value the host actually sent.\n *\n * Validation needs a real `Date` \u2014 `z.date()` accepts nothing else, and `.min()` / `.max()` compare instants\n * \u2014 but converting is not what the handler should see: `'2024-06-01'` becomes `2024-06-01T00:00:00.000Z`,\n * inventing a time of day and a timezone nobody chose. So the check runs on a converted copy and the\n * original is restored afterwards, at every depth.\n *\n * `z.coerce.date()` is untouched: the author asked for a `Date`, so zod's output stands.\n */\nfunction restore(result: FieldResult, original: unknown, plan: FieldPlan): FieldResult {\n if (!plan.restoresDates || !result.present || result.issues.length) {\n return result\n }\n\n if (plan.passThroughDate) {\n return resolved(original)\n }\n\n return resolved(restoreDeep(result.value, original, plan.schema))\n}\n\n// Walk zod's output and the submitted value together, taking the ORIGINAL wherever the declaration is a\n// pass-through date. Only declared shapes are walked \u2014 the same rule the coercion walk follows.\nfunction restoreDeep(output: unknown, original: unknown, schema: AnyZod | undefined): unknown {\n if (!schema || output == null || original == null) {\n return output\n }\n\n const ins = inspect(schema)\n\n if (passesDateThrough(ins)) {\n return original\n }\n\n // A union was coerced through whichever branch accepted the value, so the restore walk has to follow that\n // same branch \u2014 the resolved first one says nothing about which date, if any, the value actually took.\n if (ins.branches) {\n const branch = ins.branches.find(option => accepts(option, output))\n\n return branch ? restoreDeep(output, original, branch) : output\n }\n\n const element = ins.core?._zod?.def?.element as AnyZod | undefined\n\n if (ins.coreType === 'array' && element && Array.isArray(output) && Array.isArray(original)) {\n return output.map((item, index) => restoreDeep(item, original[index], element))\n }\n\n const valueType = ins.core?._zod?.def?.valueType as AnyZod | undefined\n\n if (ins.coreType === 'record' && valueType && isPlain(output) && isPlain(original)) {\n return Object.fromEntries(\n Object.entries(output).map(([key, item]) => [key, restoreDeep(item, original[key], valueType)])\n )\n }\n\n if (ins.coreType === 'object' && isPlain(output) && isPlain(original)) {\n const restored: Record<string, unknown> = { ...output }\n\n for (const [name, property] of shapeEntries(ins.core)) {\n if (name in output) {\n restored[name] = restoreDeep(output[name], original[name], property)\n }\n }\n\n return restored\n }\n\n return output\n}\n\nconst isPlain = (value: unknown): value is Record<string, unknown> =>\n !!value && typeof value === 'object' && !Array.isArray(value)\n", "import type { ValidationIssue } from '../../../errors'\nimport type { ZodIssue, ZodSchema } from '../types'\n\n// The zod-facing half of validation: run a schema over a value and flatten its issues. Deciding WHICH\n// schema and WHICH error a failure becomes is the caller's job (see ../params.ts) \u2014 this module only knows\n// how to ask zod and how to translate what it answers.\n//\n// This is the WRAPPER path: the runtime-owned `payload` / `invocation` / `callbackObject` a helper route or\n// SYSTEM seam is called with, rather than a field a person filled in. A failure here means the CALLER is\n// malformed, so there is no author label to restate against \u2014 but zod's own wording (\"Invalid input:\n// expected object, received string\") describes the parser rather than the mistake, so the shape of the\n// wrapper itself is restated against the param's name. Everything deeper keeps zod's message: it is a\n// runtime contract detail, and inventing wording for it would only obscure what actually arrived.\n\n// A `fail` callback owns the error identity; it never returns.\nexport type FailFn = (issues: ValidationIssue[]) => never\n\n// Matches ./messages.ts, so the two paths word the same expectation the same way.\nconst EXPECTED: Record<string, string> = {\n string : 'a string',\n number : 'a number',\n boolean: 'true or false',\n object : 'an object',\n array : 'an array',\n}\n\nexport function toIssues(error: { issues?: ZodIssue[] } | undefined, param?: string): ValidationIssue[] {\n return (error?.issues ?? []).map(issue => {\n const path = (issue.path ?? []).map(String).join('.')\n const expected = (issue as { expected?: string }).expected\n\n // Only the wrapper's own type is restated \u2014 a deeper path is left as zod put it.\n const restated = param && !path && issue.code === 'invalid_type' && expected\n ? `\u00AB${ param }\u00BB must be ${ EXPECTED[expected] ?? expected }`\n : undefined\n\n return { path, message: restated ?? issue.message ?? 'invalid value', code: issue.code }\n })\n}\n\n// Parse `value`, handing the flattened issues to `fail` (which throws). Schema-less slots pass through \u2014\n// authors may declare no params/criteria at all.\nexport function parseSchema<T>(\n schema: ZodSchema | undefined,\n value: unknown,\n fail: FailFn,\n param?: string\n): T {\n if (typeof schema?.safeParse !== 'function') {\n return value as T\n }\n\n const result = schema.safeParse(value)\n\n if (!result.success) {\n fail(toIssues(result.error, param))\n }\n\n return result.data as T\n}\n", "import type { ValidationIssue } from '../../errors'\nimport { assertObjectSchema } from './schema/assert-object-schema'\nimport { assertSupportedSchema } from './schema/assert-supported-schema'\nimport { type FieldPlan, planField } from './schema/field-plan'\nimport { type AnyZod, shapeEntries } from './schema/introspect'\nimport { normalizeField } from './schema/normalize'\nimport { type FailFn, parseSchema } from './schema/parse'\nimport type { NormalizedInput, SchemaSource, ZodSchema } from './types'\n\n// A declared schema slot, as the runner works with it. Two things live here and nowhere else: the author's\n// zod schema, and the operations the runner performs on it. Anything zod can already do is DELEGATED \u2014 this\n// is a wrapper, never a re-implementation. `MethodParams` (inputs) and `ConfigParams` (config) extend it.\n//\n// Every slot is optional: an undeclared one produces an instance with no `scheme` that answers \"no fields\"\n// and passes values through unparsed, so call sites never need an `if (params)` guard. But a slot that IS\n// declared must be a z.object \u2014 the constructor enforces that, so an instance is never half-usable.\n\nexport abstract class Params {\n readonly scheme?: ZodSchema\n\n // Derived once per declared slot, at registration. The absence policy comes from probing the schema, which\n // is two `safeParse` calls we would rather not repeat on every invocation.\n #plans?: FieldPlan[]\n\n protected constructor(scheme?: unknown, readonly source: SchemaSource = {}) {\n // Declared \u21D2 must be a z.object. Checked here so EVERY slot is covered by construction, and at\n // registration time rather than on some later invocation (see ./schema/assert-object-schema.ts).\n assertObjectSchema(scheme, source)\n // \u2026and every field inside it must be something the runtime can publish, render and coerce. Same moment,\n // same reason: a declaration the runner cannot classify is a wrong contract, not a rendering nicety\n // (see ./schema/assert-supported-schema.ts).\n assertSupportedSchema(scheme, source)\n\n this.scheme = (scheme ?? undefined) as ZodSchema | undefined\n }\n\n // The declared field names. This is what a `dependsOn` is derived from.\n keys(): string[] {\n return this.fields().map(([name]) => name)\n }\n\n // The declared fields, in declaration order. Public: a renderer needs them as much as the pipeline does.\n fields(): [name: string, schema: AnyZod][] {\n return shapeEntries(this.scheme as AnyZod | undefined)\n }\n\n protected plans(): FieldPlan[] {\n this.#plans ??= this.fields().map(([name, schema]) => planField(name, schema))\n\n return this.#plans\n }\n\n /**\n * Normalize, coerce and validate a whole input object against the declared fields.\n *\n * Only declared fields appear in the output \u2014 an undeclared key is dropped, as it always was. Every\n * declared field appears, holding whatever it resolved to, which for an absent `.optional()` is\n * `undefined`: the key is there, so a handler asks `params.x === undefined` rather than `'x' in params`.\n * A field is omitted only when it FAILED, and then the caller is looking at `issues` instead.\n *\n * Every field is attempted even after one fails, so the caller can report the whole form at once instead\n * of making a user fix one field per attempt.\n */\n normalizeInput(input?: Record<string, unknown>): NormalizedInput {\n const source = input ?? {}\n const values: Record<string, unknown> = {}\n const issues: ValidationIssue[] = []\n\n for (const plan of this.plans()) {\n const result = normalizeField(source[plan.name], plan)\n\n if (result.issues.length) {\n issues.push(...result.issues)\n } else if (result.present) {\n values[plan.name] = result.value\n }\n }\n\n return { values, issues }\n }\n\n // Strict: required fields enforced, unknown stripped. For input the flow engine produces against the\n // published model, where a violation is a real contract break.\n parse<T>(value: unknown, fail: FailFn): T {\n return parseSchema<T>(this.scheme, value, fail)\n }\n\n}\n", "import type { ServiceConfigsValues } from '../../common/constants'\nimport { InvalidConfigError } from '../../errors'\nimport { Params } from './params'\nimport type { SchemaSource } from './types'\n\n// The extension's `configItems` slot: its description for the console, and the resolution of a concrete\n// invocation's values.\n//\n// Resolution runs the shared normalize \u2192 coerce \u2192 validate pipeline (see ./params.ts and ./schema/normalize),\n// so `configItems` obeys exactly the same policy as every other declared slot. It replaces the v1\n// `prepareServiceConfig` for this format: that resolver routed by the `shared` flag and applied defaults by\n// truthiness, which silently dropped a falsy default and never type-checked anything.\n\nexport class ConfigParams extends Params {\n static of(scheme?: unknown, source: SchemaSource = {}): ConfigParams {\n return new ConfigParams(scheme, source)\n }\n\n static empty(): ConfigParams {\n return new ConfigParams(undefined)\n }\n\n /**\n * The effective config for one invocation.\n *\n * Fails with every offending field at once rather than the first, so a half-configured service reports its\n * whole form. A field the schema resolved to \"not present\" is simply absent from the result.\n */\n resolve(configs?: ServiceConfigsValues): ServiceConfigsValues {\n const { values, issues } = this.normalizeInput(configs)\n\n if (issues.length) {\n throw new InvalidConfigError(this.source.serviceId ?? 'unknown', issues)\n }\n\n return values\n }\n}\n", "import { Params } from './params'\nimport type { FailFn } from './schema/parse'\nimport type { SchemaSource } from './types'\n\n// Every input container a method declares: an action's or trigger's `params`, a dictionary's `criteria`,\n// a params loader's criteria, the fields a `.dynamicProps()` / `dynamicParams` `execute()` returns, and a SYSTEM method's\n// runtime-owned scheme. One class because they are the same thing \u2014 a z.object the runner validates input\n// against and publishes as the method's input model.\n\nexport class MethodParams extends Params {\n static of(scheme?: unknown, source: SchemaSource = {}): MethodParams {\n return new MethodParams(scheme, source)\n }\n\n // An undeclared slot. A real instance, so callers never branch on undefined.\n static empty(): MethodParams {\n return new MethodParams(undefined)\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Run the shared normalize \u2192 coerce \u2192 validate pipeline and hand the issues to `fail` (which throws).\n *\n * `carryUnknown` keeps the input's undeclared keys underneath the normalized ones. Two slots need it: an\n * action with `dynamicParams`, whose generated top-level fields are not in the static schema, and the\n * generated loaders, whose owner's `result` fn may read those same fields.\n */\n normalize<T extends Record<string, unknown>>(\n input: Record<string, unknown> | undefined,\n fail: FailFn,\n options: { carryUnknown?: boolean } = {}\n ): T {\n const { values, issues } = this.normalizeInput(input)\n\n if (issues.length) {\n fail(issues)\n }\n\n return (options.carryUnknown ? { ...input, ...values } : values) as T\n }\n}\n", "import { z as baseZod } from 'zod'\n\nimport {\n filesDeleteOptions,\n filesGetOptions,\n filesListOptions,\n filesUploadOptions,\n} from './files-options'\nimport { FlowExtensionParamWidgetTypes, type FrWidgetToken } from './widget-types'\n\n// The v2 authoring surface: real zod v4 extended with FlowRunner authoring plugins and custom types.\n// Exposed to services as `Flowrunner.z` (services do `const z = Flowrunner.z`) \u2014 see ../../namespace.ts.\n//\n// Author metadata is stored on the schema via zod's native `.meta()` (merges, immutable clone). Native\n// keys drive display (`title`, `description`, `examples`); FlowRunner-specific bits use `fr`-prefixed keys\n// so they never collide with zod/OpenAPI meta. The runner reads them back via ../schema/introspect.\n\n// A dictionary ref carried by `.dictionary(ref)` \u2014 returned from `ext.dictionary(...)` (see create-extension).\nexport interface DictionaryRef {\n id: string\n dependsOn?: string[]\n}\n\n/**\n * What `.dynamicProps()` takes: the sibling params whose values the loader receives as `criteria`, and the\n * handler that returns the field's inner fields \u2014 a zod shape or a `z.object`.\n *\n * Typed loosely here on purpose: this framework is self-contained (it also runs in the browser), so it cannot\n * name the runner's handler bag. The runner narrows `execute` where it has the extension's types\n * (`DynamicPropsDef` in ../types.ts).\n */\nexport interface DynamicPropsSpec {\n dependsOn?: string[]\n execute: (bag: any) => unknown\n}\n\n// A `.dynamicProps()` field as it reads after a round trip through the wire form: the loader method's name.\nexport interface DynamicPropsRef {\n id: string\n dependsOn: string[]\n}\n\n// FlowRunner meta keys attached by the plugins below.\nexport interface FrMeta {\n title?: string\n description?: string\n examples?: unknown[]\n frShared?: boolean\n frDictionary?: { id: string; dependsOn: string[] }\n frLabels?: Record<string, string>\n /** A widget token the declaration carries explicitly \u2014 see `FrWidgetToken` in ./widget-types.ts. */\n frWidget?: FrWidgetToken\n frSecret?: boolean\n /** `z.json()` \u2014 the value arrives as TEXT and is parsed before the handler sees it. See `json()` below. */\n frJson?: boolean\n /**\n * `.dynamicProps()` \u2014 the spec (holding the author's function) on a declared schema, the plain ref of the\n * method that runs it on a decoded one. Never encoded as the spec: see ./json/encode.ts.\n */\n frDynamicProps?: DynamicPropsSpec | DynamicPropsRef\n}\n\ndeclare module 'zod' {\n interface ZodType {\n /** Display label \u2192 native `meta.title`. */\n label(text: string): this\n /** Sample value \u2192 appended to native `meta.examples`. */\n example(value: unknown): this\n /** Mark a config field as shared (global) rather than per-app (OAuth client id/secret, secrets). */\n shared(): this\n /**\n * Mark a `z.string()` CONFIG field as sensitive: the console masks it and offers a reveal toggle.\n *\n * Display only. The value is stored, transmitted and validated exactly as it would be without it \u2014 this\n * hides a credential from a passer-by, it does not protect it.\n *\n * No effect anywhere else. Not on `z.text()`, which has no password mode; and not on an action or\n * trigger param, whose value lives in the flow definition and is readable through the API, so masking\n * its input would suggest a protection that is not there.\n */\n secret(): this\n /** Bind a param to a dictionary for dynamic options; auto-derives `dependsOn` from the dictionary criteria. */\n dictionary(ref: DictionaryRef): this\n /**\n * Show a human label per declared VALUE: `.labels({ asc: 'Ascending' })`.\n *\n * The flow element stores the VALUE, so renaming a label changes nothing that was saved \u2014 and the\n * handler receives the value it declared, with no translation step anywhere.\n */\n labels(byValue: Record<string, string>): this\n /**\n * Load this object's inner fields at design time from the values of other params:\n * `z.looseObject({}).dynamicProps({ dependsOn: ['tableName'], execute: async ({ criteria }) => ({ \u2026 }) })`.\n *\n * Top-level ACTION params only, on a `z.looseObject()` or a `z.array(z.looseObject())` \u2014 the loaded keys\n * are not in the declared schema, so a strict object would strip them. Checked when the service loads.\n */\n dynamicProps(spec: DynamicPropsSpec): this\n /** @deprecated Inverted and renamed \u2014 see `labels`. Throws, so the change cannot pass silently. */\n map(mapping: Record<string, unknown>): never\n }\n}\n\nlet extended = false\n\nfunction extendPrototype(): void {\n if (extended) {\n return\n }\n extended = true\n\n const proto = baseZod.ZodType.prototype as unknown as Record<string, unknown>\n\n proto.label = function label(this: baseZod.ZodType, text: string) {\n return this.meta({ title: text })\n }\n\n proto.example = function example(this: baseZod.ZodType, value: unknown) {\n const existing = (this.meta() as FrMeta | undefined)?.examples ?? []\n\n return this.meta({ examples: [...existing, value] })\n }\n\n proto.shared = function shared(this: baseZod.ZodType) {\n return this.meta({ frShared: true })\n }\n\n proto.secret = function secret(this: baseZod.ZodType) {\n return this.meta({ frSecret: true })\n }\n\n proto.dictionary = function dictionary(this: baseZod.ZodType, ref: DictionaryRef) {\n return this.meta({ frDictionary: { id: ref.id, dependsOn: ref.dependsOn ?? [] } })\n }\n\n proto.labels = function labels(this: baseZod.ZodType, byValue: Record<string, string>) {\n return this.meta({ frLabels: byValue })\n }\n\n // The spec is stored as given and never mutated: one spec may be shared by several fields and actions.\n proto.dynamicProps = function dynamicProps(this: baseZod.ZodType, spec: DynamicPropsSpec) {\n if (!spec || typeof spec !== 'object') {\n throw new Error(\n '`.dynamicProps()` takes `{ dependsOn, execute }` \u2014 the params the fields depend on, and a function that ' +\n 'returns them. e.g. .dynamicProps({ dependsOn: [\\'tableName\\'], execute: async ({ criteria }) => ({ \u2026 }) })'\n )\n }\n\n return this.meta({ frDynamicProps: spec })\n }\n\n /**\n * `.map({ Label: value })` declared the LABELS as the accepted values, so a flow element stored a display\n * string \u2014 renaming a label then broke every saved element that used it. `.labels()` inverts it: the enum\n * declares the values, the labels are display only.\n *\n * It throws rather than being quietly accepted because the two forms take the same shape of argument with\n * the opposite meaning. Silently reading an old `.map()` would store labels again; ignoring it would drop\n * the labels. A loud failure at registration is the only reading that cannot corrupt a flow.\n */\n proto.map = function map(this: baseZod.ZodType): never {\n throw new Error(\n '`.map({ Label: value })` has been replaced by `.labels({ value: \\'Label\\' })` \u2014 declare the VALUES in ' +\n 'the enum and the labels here, so a flow element stores the value and renaming a label is safe. ' +\n 'e.g. z.enum([\\'asc\\', \\'desc\\']).labels({ asc: \\'Ascending\\', desc: \\'Descending\\' })'\n )\n }\n}\n\nextendPrototype()\n\n// Custom type: multi-line text is a `z.string()` carrying a widget marker.\nfunction text() {\n\n return baseZod.string().meta({ frWidget: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT })\n}\n\n/**\n * Custom type: a parameter that takes arbitrary JSON.\n *\n * Three facts have to hold at once, and each picks one piece of this declaration:\n *\n * - **The console renders a textarea.** `frWidget` says so, and ../schema/introspect.ts publishes the\n * parameter as `STRING` \u2014 the model describes what a caller SUPPLIES, and what a caller supplies is text.\n * - **`execute` receives the parsed structure.** `frJson` tells ../schema/coerce.ts to `JSON.parse` the text\n * on the way in, so no service writes its own parse and none has to invent wording for text that is not\n * JSON. Coercion already sits between the transport and zod for exactly this kind of conversion \u2014 this is\n * the same arrangement as `z.string().pipe(z.coerce.number())`, with a fixed conversion.\n * - **The author's TYPE is the parsed value, not the text.** Hence `unknown` underneath: `z.infer` gives the\n * handler `unknown`, which is what it actually receives. Declaring `z.string()` here would publish and\n * coerce correctly and then lie to every author about what lands in `params`.\n *\n * \u26A0\uFE0F This SHADOWS zod's own `z.json()` (the namespace is `Object.create(baseZod)`). Deliberate, and safe\n * only because zod's version cannot currently be declared at all \u2014 it recurses until the stack is gone, and\n * the extension never registers (FR-3600). An author reaching for `z.json()` gets this one.\n */\nfunction json() {\n\n // `.nonoptional()` because `z.unknown()` accepts `undefined` on its own, and the console asks the same\n // absence probe the runtime resolves with (see ../model/field-mapper.ts `isRequired`) \u2014 so without it a\n // bare `z.json()` would publish as an OPTIONAL field and the runner would accept a missing value, which is\n // not what an author who did not write `.optional()` asked for. An author's own `.optional()` still wins:\n // it lands outside this, and the outermost modifier is the final word.\n return baseZod.unknown().nonoptional().meta({\n frWidget: FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT,\n frJson : true,\n })\n}\n\n// NB: never mutate `baseZod` itself \u2014 zod's module exports are not extensible. The ESM build exposes\n// `z` as a frozen module namespace, and since zod 4.6.0 the CJS build freezes its exports too, so\n// `Object.assign(baseZod, ...)` throws \"Cannot add property text, object is not extensible\" at module\n// load \u2014 which takes down the whole extension worker thread before any service code runs. Layering the\n// additions onto a child object keeps every zod export reachable through the prototype chain while\n// leaving zod's own exports untouched.\n// The additions are DEFINED rather than assigned, for a second-order version of the same hazard: `json`\n// SHADOWS a zod export, `Object.assign` writes through plain assignment, and assignment respects the\n// PROTOTYPE's descriptor \u2014 zod's `json` is non-writable, so it throws \"Cannot assign to read only property\n// 'json'\" at module load and takes the worker down exactly as mutating `baseZod` would. `defineProperty`\n// creates an own property without consulting the prototype, which is what shadowing requires.\n//\n// `Omit` on the base is what makes `z.json()` unambiguous: intersecting the two signatures would leave zod's\n// recursive-JSON overload callable, and an author would get its type for our value.\nconst namespace = Object.create(baseZod) as typeof baseZod\n\n// The file-options groups are custom types in the same sense \u2014 see ./files-options.ts for why they are\n// shipped rather than hand-copied into each service.\nObject.defineProperties(namespace, {\n text: { value: text, enumerable: true },\n json: { value: json, enumerable: true },\n filesUploadOptions: { value: filesUploadOptions, enumerable: true },\n filesListOptions: { value: filesListOptions, enumerable: true },\n filesGetOptions: { value: filesGetOptions, enumerable: true },\n filesDeleteOptions: { value: filesDeleteOptions, enumerable: true },\n})\n\nexport const z = namespace as unknown as\n Omit<typeof baseZod, 'json'> & {\n text: typeof text\n json: typeof json\n filesUploadOptions: typeof filesUploadOptions\n filesListOptions: typeof filesListOptions\n filesGetOptions: typeof filesGetOptions\n filesDeleteOptions: typeof filesDeleteOptions\n }\n\nexport type ExtendedZod = typeof z\n", "import { z as baseZod } from 'zod'\n\nimport { FlowExtensionParamWidgetTypes, type FrGroupToken } from './widget-types'\n\n// The platform's own file-storage option groups, declared once and handed to services through\n// `Flowrunner.z` (see ./zod.ts) \u2014 the v2 counterpart of the built-in `FilesUploadOptions` /\n// `FilesListOptions` / `FilesGetOptions` / `FilesDeleteOptions` param types the v1 JSDoc parser registers\n// (`jsdoc-parser/src/custom-type-defs/files.ts`).\n//\n// **Why this is shipped rather than copied.** A v1 service names the type and gets the platform's values,\n// labels, descriptions and defaults; reword a label here and every v1 service picks it up on the next parse.\n// Without an equivalent, every v2 service that stores a file owns a private copy of the same ten lines \u2014\n// nothing propagates, and a copy that drifts publishes a field the runtime does not have. That is not\n// hypothetical: the v1 services that shadow the built-in with their own typedef publish a `directory` option\n// `uploadFile` silently drops.\n//\n// **The `include` argument.** v1 subsets a group at publish time with `@paramDef {\u2026 \"include\":[\"scope\"]}`,\n// and 706 of the catalog's 729 `@paramDef`s do. The factories below take that same list, so an existing\n// `@paramDef` translates by inspection and the published param comes out identical. No argument means every\n// field, matching v1's no-`include` behaviour.\n//\n// Two display differences from v1 are expected and harmless, because both are widgets the console resolves\n// to the same control: a plain string publishes no `uiComponent` at all (the v2 model omits display defaults\n// so they can be reworded without a redeploy \u2014 `SINGLE_LINE_TEXT` is the console's fallback), and a number\n// publishes `NUMERIC_STEPPER` where v1 hand-wrote the legacy `NUMERIC`. `scope`, the only field the catalog\n// actually exposes, is byte-identical \u2014 see `__tests__/files-options-schema.test.ts`.\n//\n// \u26A0\uFE0F Imports `zod` directly, never `./zod`, to keep the dependency one-way. The authoring plugins used below\n// (`.label()`) are installed on zod's prototype by ./zod.ts, which imports THIS module \u2014 safe because a\n// factory can only be reached through the namespace that module builds, so the plugins are always in place\n// by the time one runs.\n\n// Kept in step with `FileScope` in ../../common/context-files.ts, which cannot be imported here: it pulls in\n// the HTTP client, and the params framework is compiled into the console's browser bundle. A test asserts\n// the two agree.\nconst SCOPE_VALUES = ['WORKSPACE', 'FLOW', 'EXECUTION'] as const\n\n// `scope` is the one field shared by all four groups \u2014 and the only one the catalog exposes to flow authors.\nconst scope = () => baseZod.enum(SCOPE_VALUES)\n .label('Scope')\n .describe('Storage scope: WORKSPACE (shared across flows), FLOW (this flow only), EXECUTION (this run only)')\n .default('FLOW')\n\nconst ttl = () => baseZod.number()\n .label('URL TTL (seconds)')\n .describe('How long the download URL remains valid')\n .optional()\n\nconst generateUrl = () => baseZod.boolean()\n .label('Generate download URL')\n .describe('Include a pre-signed download URL in the response')\n .default(true)\n\n// A group is a table of FACTORIES, not of schemas: each call hands the service a fresh object, so one\n// service's `.optional()` or `.describe()` can never reach another's.\ntype FieldTable = Record<string, () => baseZod.ZodType>\n\nconst UPLOAD_FIELDS = {\n scope,\n filename: () => baseZod.string()\n .label('Filename')\n .describe('Custom filename (defaults to the original name if omitted)')\n .optional(),\n ttl,\n objectTtl: () => baseZod.number()\n .label('File TTL (seconds)')\n .describe('How long the file is kept in storage (omit for permanent storage)')\n .optional(),\n overwrite: () => baseZod.boolean()\n .label('Overwrite existing')\n .describe('Replace the file if one with the same name already exists')\n .optional(),\n generateUrl,\n} satisfies FieldTable\n\nconst LIST_FIELDS = {\n scope,\n limit: () => baseZod.number()\n .label('Limit')\n .describe('Maximum number of files to return')\n .optional(),\n ttl: () => baseZod.number()\n .label('URL TTL (seconds)')\n .describe('How long the download URLs remain valid')\n .optional(),\n generateUrl: () => baseZod.boolean()\n .label('Generate download URLs')\n .describe('Include pre-signed download URLs in the response')\n .default(true),\n cursor: () => baseZod.string()\n .label('Cursor')\n .describe('Pagination cursor from a previous response')\n .optional(),\n} satisfies FieldTable\n\nconst GET_FIELDS = {\n scope,\n ttl,\n generateUrl,\n} satisfies FieldTable\n\nconst DELETE_FIELDS = {\n scope,\n} satisfies FieldTable\n\n// The object a factory returns: the picked fields, each typed as its own factory declares it.\ntype Group<T extends FieldTable, K extends keyof T> = baseZod.ZodObject<{ [P in K]: ReturnType<T[P]> }>\n\n/**\n * Build one group, optionally subset to `include`.\n *\n * Two details reproduce v1 exactly (`jsdoc-parser/src/index.ts` `buildParam`): the result keeps the\n * CANONICAL field order rather than the order of `include` \u2014 so `['filename', 'scope']` still publishes\n * `scope` first \u2014 and an empty list is treated as no list, i.e. every field.\n *\n * An unknown name THROWS, where v1 silently published an empty object. A typo there is invisible until a\n * flow author opens the block and finds no settings at all; here it fails while the service registers, which\n * is the only moment anyone is looking.\n */\nfunction group<T extends FieldTable, K extends keyof T & string>(\n typeName: string,\n widget: FrGroupToken,\n table: T,\n include?: readonly K[]\n): Group<T, K> {\n const names = Object.keys(table)\n\n if (include?.length) {\n const unknown = include.filter(name => !names.includes(name))\n\n if (unknown.length) {\n throw new Error(\n `z.${ typeName }(): unknown field${ unknown.length > 1 ? 's' : '' } ${ unknown.map(n => `'${ n }'`).join(', ') }. ` +\n `Available fields: ${ names.join(', ') }.`\n )\n }\n }\n\n const selected = include?.length ? names.filter(name => include.includes(name as K)) : names\n\n const shape = Object.fromEntries(selected.map(name => [name, table[name]()]))\n\n // The group names itself in the published model (`uiComponent: { type: 'FILE_UPLOAD_OPTIONS' }`), so a\n // consumer can tell the platform's own options object from an anonymous one a service declared and render\n // it accordingly. See ../model/field-mapper.ts, which publishes it at every depth.\n return baseZod.object(shape).meta({ frWidget: widget }) as Group<T, K>\n}\n\nexport type FilesUploadOptionsField = keyof typeof UPLOAD_FIELDS & string\nexport type FilesListOptionsField = keyof typeof LIST_FIELDS & string\nexport type FilesGetOptionsField = keyof typeof GET_FIELDS & string\nexport type FilesDeleteOptionsField = keyof typeof DELETE_FIELDS & string\n\n/** Options for `ctx.files.uploadFile()`. `z.filesUploadOptions(['scope'])` is the form the catalog uses. */\nexport function filesUploadOptions<K extends FilesUploadOptionsField = FilesUploadOptionsField>(\n include?: readonly K[]\n): Group<typeof UPLOAD_FIELDS, K> {\n return group('filesUploadOptions', FlowExtensionParamWidgetTypes.FILE_UPLOAD_OPTIONS as FrGroupToken, UPLOAD_FIELDS, include)\n}\n\n/** Options for `ctx.files.list()`. */\nexport function filesListOptions<K extends FilesListOptionsField = FilesListOptionsField>(\n include?: readonly K[]\n): Group<typeof LIST_FIELDS, K> {\n return group('filesListOptions', FlowExtensionParamWidgetTypes.FILE_LIST_OPTIONS as FrGroupToken, LIST_FIELDS, include)\n}\n\n/** Options for `ctx.files.get()`. */\nexport function filesGetOptions<K extends FilesGetOptionsField = FilesGetOptionsField>(\n include?: readonly K[]\n): Group<typeof GET_FIELDS, K> {\n return group('filesGetOptions', FlowExtensionParamWidgetTypes.FILE_GET_OPTIONS as FrGroupToken, GET_FIELDS, include)\n}\n\n/** Options for `ctx.files.delete()`. */\nexport function filesDeleteOptions<K extends FilesDeleteOptionsField = FilesDeleteOptionsField>(\n include?: readonly K[]\n): Group<typeof DELETE_FIELDS, K> {\n return group('filesDeleteOptions', FlowExtensionParamWidgetTypes.FILE_DELETE_OPTIONS as FrGroupToken, DELETE_FIELDS, include)\n}\n\n// Exported for the test that keeps this table and `FileScope` in step.\nexport { SCOPE_VALUES }\n", "import type { JsonValue } from './types'\n\n// The two declarable primitives JSON has no room for. Boxed rather than stringified, so decoding can tell a\n// `BigInt('12')` from the string `'12'` \u2014 which matters, because `z.bigint()` rejects the string.\n\nconst isBox = (value: unknown, key: '$bigint' | '$date'): boolean =>\n !!value && typeof value === 'object' && key in (value as Record<string, unknown>)\n\n/** A declared value (a `.default()`, an enum member, a constraint bound) on its way out. */\nexport function toJsonValue(value: unknown): JsonValue {\n if (typeof value === 'bigint') {\n return { $bigint: value.toString() }\n }\n\n if (value instanceof Date) {\n return { $date: value.toISOString() }\n }\n\n if (Array.isArray(value)) {\n return value.map(toJsonValue)\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(Object.entries(value).map(([key, inner]) => [key, toJsonValue(inner)]))\n }\n\n return value as JsonValue\n}\n\n/** The same value on its way back in. */\nexport function fromJsonValue(value: JsonValue): unknown {\n if (isBox(value, '$bigint')) {\n return BigInt((value as { $bigint: string }).$bigint)\n }\n\n if (isBox(value, '$date')) {\n return new Date((value as { $date: string }).$date)\n }\n\n if (Array.isArray(value)) {\n return value.map(fromJsonValue)\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(Object.entries(value).map(([key, inner]) => [key, fromJsonValue(inner)]))\n }\n\n return value\n}\n", "import type { AnyZod } from '../schema/introspect'\nimport type { CheckJSON, FieldType, JsonValue, RegexJSON } from './types'\nimport { fromJsonValue, toJsonValue } from './values'\n\n// The constraint table, read in both directions from one place so encode and decode cannot drift.\n//\n// zod v4 keeps checks in `_zod.def.checks`, each with its own `_zod.def.check` discriminator. The names are\n// zod's internals rather than its API: `.min()` on a string is `min_length`, on a number `greater_than`, and\n// `.int()` is a `number_format`. Decoding goes back through the public API, where `.min()` covers both.\n\ninterface ZodCheckDef {\n check?: string\n format?: string\n minimum?: unknown\n maximum?: unknown\n length?: unknown\n value?: unknown\n inclusive?: boolean\n pattern?: RegExp\n prefix?: string\n suffix?: string\n includes?: string\n error?: unknown\n}\n\nconst defOf = (check: unknown): ZodCheckDef =>\n ((check as { _zod?: { def?: ZodCheckDef } } | undefined)?._zod?.def ?? {})\n\n/**\n * An author's own message, if they wrote one.\n *\n * zod normalizes a string message into a function, so the string is only reachable by CALLING it. A message\n * the author wrote as a function reads the issue and cannot be replayed here \u2014 the call is guarded and the\n * pipeline's own wording applies instead.\n */\nexport function messageOf(source: { error?: unknown }): string | undefined {\n const { error } = source\n\n if (typeof error === 'string') {\n return error\n }\n\n if (typeof error !== 'function') {\n return undefined\n }\n\n try {\n const produced = (error as (issue: unknown) => unknown)({ code: 'custom', input: undefined })\n\n return typeof produced === 'string' ? produced : undefined\n } catch {\n return undefined\n }\n}\n\nconst regexToJson = (pattern: RegExp): RegexJSON => ({ source: pattern.source, flags: pattern.flags })\n\n/** One zod check \u2192 its wire form, or `undefined` when it cannot cross (a function-backed check). */\nfunction encodeCheck(check: unknown): CheckJSON | undefined {\n const def = defOf(check)\n const message = messageOf(def)\n const at = (kind: CheckJSON['kind'], value?: JsonValue, exclusive?: true): CheckJSON => ({\n kind,\n ...(value === undefined ? {} : { value }),\n ...(exclusive ? { exclusive } : {}),\n ...(message ? { message } : {}),\n })\n\n switch (def.check) {\n // strings and arrays\n case 'min_length':\n return at('min', toJsonValue(def.minimum))\n case 'max_length':\n return at('max', toJsonValue(def.maximum))\n case 'length_equals':\n return at('length', toJsonValue(def.length))\n\n // numbers and bigints\n case 'greater_than':\n return at('min', toJsonValue(def.value), def.inclusive ? undefined : true)\n case 'less_than':\n return at('max', toJsonValue(def.value), def.inclusive ? undefined : true)\n case 'multiple_of':\n return at('multipleOf', toJsonValue(def.value))\n case 'number_format':\n // `.int()` \u2014 a format check rather than a range one.\n return def.format === 'safeint' || def.format === 'int32' ? at('int') : undefined\n\n // the string sub-formats that are checks rather than types\n case 'string_format':\n if (def.format === 'regex' && def.pattern) {\n return at('regex', regexToJson(def.pattern))\n }\n\n if (def.format === 'starts_with') {\n return at('startsWith', def.prefix ?? '')\n }\n\n if (def.format === 'ends_with') {\n return at('endsWith', def.suffix ?? '')\n }\n\n if (def.format === 'includes') {\n return at('includes', def.includes ?? '')\n }\n\n return undefined\n\n default:\n return undefined\n }\n}\n\nexport interface EncodedChecks {\n checks: CheckJSON[]\n unsupported: string[]\n}\n\n/** Every check a core schema carries. What cannot cross is NAMED rather than silently dropped. */\nexport function encodeChecks(core: AnyZod | undefined): EncodedChecks {\n const declared = (core?._zod?.def?.checks as unknown[] | undefined) ?? []\n const checks: CheckJSON[] = []\n const unsupported: string[] = []\n\n for (const check of declared) {\n const encoded = encodeCheck(check)\n\n if (encoded) {\n checks.push(encoded)\n continue\n }\n\n const def = defOf(check)\n\n unsupported.push(`check:${ def.check ?? 'unknown' }${ def.format ? `/${ def.format }` : '' }`)\n }\n\n return { checks, unsupported }\n}\n\n// A zod schema with the constraint methods the table above needs. Structural, so this file stays independent\n// of zod's generics \u2014 the methods exist on the string/number/array types that carry these checks.\ntype Constrainable = {\n min?: (value: never, message?: string) => Constrainable\n max?: (value: never, message?: string) => Constrainable\n gt?: (value: never, message?: string) => Constrainable\n lt?: (value: never, message?: string) => Constrainable\n length?: (value: number, message?: string) => Constrainable\n int?: (message?: string) => Constrainable\n multipleOf?: (value: never, message?: string) => Constrainable\n regex?: (pattern: RegExp, message?: string) => Constrainable\n startsWith?: (value: string, message?: string) => Constrainable\n endsWith?: (value: string, message?: string) => Constrainable\n includes?: (value: string, message?: string) => Constrainable\n}\n\n/**\n * Re-apply one wire check to a rebuilt schema.\n *\n * `type` decides nothing about WHICH method to call \u2014 `.min()` is `.min()` on a string, a number and an\n * array \u2014 it only guards the numeric-only ones. A check whose method is missing on this type is skipped\n * rather than thrown: a schema decoded slightly loose is the documented failure mode.\n */\nexport function applyCheck(schema: unknown, check: CheckJSON, type: FieldType): unknown {\n const target = schema as Constrainable\n const value = check.value === undefined ? undefined : fromJsonValue(check.value)\n const numeric = type === 'number' || type === 'bigint'\n const call = (\n method: keyof Constrainable,\n arg?: unknown\n ): unknown => {\n const fn = target[method]\n\n return typeof fn === 'function'\n ? (fn as (...args: unknown[]) => unknown).call(target, ...(arg === undefined ? [] : [arg]), check.message)\n : schema\n }\n\n switch (check.kind) {\n case 'min':\n return call(check.exclusive && numeric ? 'gt' : 'min', value)\n case 'max':\n return call(check.exclusive && numeric ? 'lt' : 'max', value)\n case 'length':\n return call('length', value)\n case 'int':\n return call('int')\n case 'multipleOf':\n return call('multipleOf', value)\n case 'regex': {\n const { source, flags } = (check.value ?? { source: '', flags: '' }) as unknown as RegexJSON\n\n return call('regex', new RegExp(source, flags))\n }\n case 'startsWith':\n return call('startsWith', value)\n case 'endsWith':\n return call('endsWith', value)\n case 'includes':\n return call('includes', value)\n default:\n return schema\n }\n}\n", "import type { FrWidgetToken } from '../widget-types'\n\n// The wire form of a declared schema.\n//\n// Written by the runner when a service is deployed or installed, stored on the definition, and read back by\n// the console \u2014 which rebuilds real zod from it (see ./decode.ts) and runs the SAME pipeline the runner runs.\n// That is the whole point: a form reports exactly the errors an execution would, because both sides validate\n// against the same schema rather than against two hand-kept descriptions of it.\n//\n// Hand-rolled rather than `z.toJSONSchema()`, because JSON Schema drops everything that makes a FlowRunner\n// field a FlowRunner field \u2014 `.label()`, `.shared()`, `.dictionary()`, `.map()`, an author's own check\n// message \u2014 and rebuilding zod from it would need a JSON-Schema interpreter anyway.\n\n// A value that survives JSON. The two primitives that do not are boxed (see ./encode.ts).\nexport type JsonValue =\n | string | number | boolean | null\n | { $bigint: string }\n | { $date: string }\n | JsonValue[]\n | { [key: string]: JsonValue }\n\n/** A constraint the author declared. `min`/`max` cover both length and magnitude \u2014 zod spells them alike. */\nexport interface CheckJSON {\n kind: 'min' | 'max' | 'length' | 'int' | 'multipleOf' | 'regex' | 'startsWith' | 'endsWith' | 'includes'\n value?: JsonValue\n // `.min(3)` is inclusive, `.gt(3)` is not. Absent means inclusive.\n exclusive?: true\n // An author's own message (`z.string().min(3, 'Too short')`), so the console words the failure the way the\n // runtime will. Absent \u21D2 the pipeline's own wording applies.\n message?: string\n}\n\n/** A serialized regex \u2014 `RegExp` itself is not JSON. Indexable so it satisfies `JsonValue`. */\nexport interface RegexJSON {\n [key: string]: JsonValue\n source: string\n flags: string\n}\n\n// The metadata an author attached. Native zod keys drive display; `fr`-prefixed keys are FlowRunner's.\nexport interface MetaJSON {\n title?: string\n description?: string\n examples?: JsonValue[]\n frShared?: boolean\n frWidget?: FrWidgetToken\n frSecret?: boolean\n frDictionary?: { id: string; dependsOn: string[] }\n frLabels?: Record<string, string>\n}\n\nexport type FieldType =\n | 'string' | 'number' | 'bigint' | 'boolean' | 'date'\n | 'enum' | 'literal' | 'object' | 'array' | 'record' | 'union'\n /**\n * Anything the encoder does not model \u2014 and also where a declared `z.any()` / `z.unknown()` legitimately\n * lands, since \"validates nothing\" is exactly what those two declare. The `unsupported` breadcrumb is what\n * separates the two cases: a modelling gap carries `['type:\u2026']`, a declared pass-through carries nothing.\n *\n * Decodes to `z.unknown()` either way, so it validates nothing.\n */\n | 'unknown'\n\nexport interface FieldJSON {\n name: string\n type: FieldType\n // A zod format token: 'email' | 'url' | 'ipv4' | 'datetime' | 'safeint' | \u2026\n format?: string\n // Accepts `undefined` / `null`. Recorded separately because they are separate modifiers, and the pipeline's\n // absence policy is derived by PROBING the rebuilt schema rather than by reading these back.\n optional?: true\n nullable?: true\n default?: JsonValue\n checks?: CheckJSON[]\n // enum members, or the literal's own value(s).\n values?: JsonValue[]\n meta?: MetaJSON\n // A schema-level message (`z.email('must be an email')`).\n message?: string\n // type === 'object'\n properties?: FieldJSON[]\n // type === 'array'\n element?: FieldJSON\n /**\n * type === 'union' \u2014 every declared branch, in declaration order.\n *\n * All of them are carried, not just the first. The first decides what the console DRAWS, but the rebuilt\n * schema has to accept everything the author's does: `json/types.ts`'s one-directional invariant is that a\n * decoded schema is never STRICTER than the author's, and encoding one branch would break it \u2014 the form\n * would reject a shape execution accepts.\n */\n options?: FieldJSON[]\n /**\n * type === 'record' \u2014 the schema its VALUES are held to. Keys are not modelled: the runtime only ever\n * walks a record's values (see ../schema/coerce.ts), and a decoded `z.record` therefore accepts any string\n * key, which keeps it no stricter than the author's.\n */\n value?: FieldJSON\n /**\n * What could not cross the wire \u2014 `['check:overwrite']`, `['wrapper:prefault']`, `['format:xyz']`.\n *\n * Functions cannot be serialized, so `.refine()`, `.transform()`, `.trim()` and friends are dropped. The\n * invariant that follows is deliberate and one-directional: **a decoded schema is never STRICTER than the\n * author's**. The console may therefore accept a value the runtime later rejects, but never reject one the\n * runtime would accept \u2014 and the runtime re-validates every invocation, so it stays the authority.\n */\n unsupported?: string[]\n // type === 'object' \u2014 a `z.looseObject()`: keys it does not declare are kept, not stripped. Without it a\n // decoded `.dynamicProps()` field would drop the fields loaded into it.\n loose?: true\n}\n\nexport interface ParamsSchemaJSON {\n // Bumped only for a breaking change to the shapes above. Stored payloads outlive the code that wrote them:\n // a definition is encoded once at deploy time and decoded by whatever console version is live later.\n v: 1\n fields: FieldJSON[]\n}\n\nexport const SCHEMA_JSON_VERSION = 1 as const\n", "import { z } from '../zod'\nimport { applyCheck } from './checks'\nimport { type FieldJSON, type ParamsSchemaJSON, SCHEMA_JSON_VERSION } from './types'\nimport { fromJsonValue } from './values'\n\n// Wire \u2192 zod. Rebuilt through the PUBLIC zod API (and through the FlowRunner-extended `z`, so `.meta()`\n// carries `frWidget` / `frDictionary` / `frLabels` back), which is what makes the result indistinguishable from\n// the author's own schema as far as the pipeline is concerned.\n\ntype AnySchema = { meta?: (value: Record<string, unknown>) => AnySchema }\n\n// A zod factory that takes an optional message, as every one of these does.\ntype Factory = (message?: string) => unknown\n\n/**\n * `format` \u2192 the constructor that produces it.\n *\n * Rebuilt with the real helper rather than as `z.string().regex(...)`, because the pipeline reads the format\n * token back off the schema \u2014 it is what picks the widget and what words an `invalid_format` failure.\n *\n * Guarded with `typeof`, so a token this zod release does not know degrades to a plain string instead of\n * throwing at decode time. Stored payloads outlive the code that wrote them.\n */\nconst FORMAT_FACTORIES: Record<string, Factory | undefined> = {\n url : z.url,\n email : z.email,\n hostname : z.hostname,\n e164 : z.e164,\n emoji : z.emoji,\n uuid : z.uuid,\n guid : z.guid,\n nanoid : z.nanoid,\n cuid : z.cuid,\n cuid2 : z.cuid2,\n ulid : z.ulid,\n xid : z.xid,\n ksuid : z.ksuid,\n base64 : z.base64,\n base64url: z.base64url,\n hex : z.hex,\n jwt : z.jwt,\n ipv4 : z.ipv4,\n ipv6 : z.ipv6,\n cidrv4 : z.cidrv4,\n cidrv6 : z.cidrv6,\n // z.iso.* \u2014 validated STRINGS, unlike the `date` core type below.\n datetime : z.iso?.datetime,\n date : z.iso?.date,\n time : z.iso?.time,\n duration : z.iso?.duration,\n}\n\nfunction decodeString(field: FieldJSON): unknown {\n const factory = field.format ? FORMAT_FACTORIES[field.format] : undefined\n\n return typeof factory === 'function' ? factory(field.message) : z.string(field.message)\n}\n\nfunction decodeBase(field: FieldJSON): unknown {\n switch (field.type) {\n case 'string':\n return decodeString(field)\n\n case 'number':\n // `z.int()` is `z.number()` carrying the `safeint` format, and the pipeline reads that token back.\n return field.format === 'safeint' || field.format === 'int32' ? z.int(field.message) : z.number(field.message)\n\n case 'bigint':\n return z.bigint(field.message)\n\n case 'boolean':\n return z.boolean(field.message)\n\n case 'date':\n return z.date(field.message)\n\n case 'enum':\n return z.enum((field.values ?? []).map(fromJsonValue) as string[], field.message)\n\n case 'literal':\n return z.literal((field.values ?? []).map(fromJsonValue) as (string | number | boolean)[], field.message)\n\n case 'object': {\n const shape = Object.fromEntries((field.properties ?? []).map(inner => [inner.name, decodeField(inner)]))\n\n // A loose object keeps the keys it does not declare \u2014 a `.dynamicProps()` field's loaded fields.\n return field.loose ? z.looseObject(shape) : z.object(shape)\n }\n\n case 'array':\n return z.array((field.element ? decodeField(field.element) : z.unknown()) as never)\n\n // Every branch, so the rebuild accepts everything the author's union does. A single branch would make\n // the console's form stricter than execution, which ./types.ts forbids in that direction.\n case 'union': {\n const options = (field.options ?? []).map(decodeField)\n\n return options.length ? z.union(options as never) : z.unknown()\n }\n\n // Keys are open, as they are in the declaration: only the VALUES were modelled (see ./types.ts), so the\n // rebuild accepts any string key and stays no stricter than the author's.\n case 'record':\n return z.record(z.string(), (field.value ? decodeField(field.value) : z.unknown()) as never)\n\n default:\n // A field the encoder could not model validates nothing rather than rejecting everything \u2014 the\n // decoded schema is never stricter than the author's (see ./types.ts).\n return z.unknown()\n }\n}\n\n/**\n * One field, rebuilt.\n *\n * Order is load-bearing:\n * 1. the base type \u2014 a format helper, not a hand-rolled regex\n * 2. the author's checks \u2014 `.min()`, `.regex()`, \u2026\n * 3. `.meta()` LAST of the three, because a check clones the schema and metadata does not follow the clone\n * 4. the modifiers, canonically: nullable \u2192 optional \u2192 default\n *\n * Step 4's canonical order is why the wire form can record modifiers as flags \u2014 see ./encode.ts.\n */\nexport function decodeField(field: FieldJSON): unknown {\n let schema = decodeBase(field)\n\n for (const check of field.checks ?? []) {\n schema = applyCheck(schema, check, field.type)\n }\n\n if (field.meta) {\n schema = (schema as AnySchema).meta?.(fromJsonValue(field.meta as never) as Record<string, unknown>) ?? schema\n }\n\n const modifiers = schema as {\n nullable: () => typeof modifiers\n optional: () => typeof modifiers\n default: (value: unknown) => typeof modifiers\n }\n\n let wrapped = modifiers\n\n if (field.nullable) {\n wrapped = wrapped.nullable()\n }\n\n if (field.optional) {\n wrapped = wrapped.optional()\n }\n\n if (field.default !== undefined) {\n wrapped = wrapped.default(fromJsonValue(field.default))\n }\n\n return wrapped\n}\n\n/**\n * A whole stored schema, rebuilt as the `z.object` every slot must be. Nothing usable in \u21D2 `undefined` out,\n * which callers already treat as \"this slot declares nothing\".\n *\n * An envelope whose `v` this build does not know is refused rather than read as if it were the current\n * shape. Stored payloads outlive the code that wrote them \u2014 a definition is encoded once at deploy time and\n * decoded by whatever is deployed later \u2014 so a future `v: 2` would otherwise be silently misread field by\n * field. Refusing degrades to \"no schema\" and the caller falls back to the legacy projection, which is the\n * same direction every other loss in this codec takes (see ./types.ts).\n */\nexport function decodeParams(json: ParamsSchemaJSON | null | undefined): unknown {\n if (!json?.fields || json.v !== SCHEMA_JSON_VERSION) {\n return undefined\n }\n\n return z.object(Object.fromEntries(json.fields.map(field => [field.name, decodeField(field)])))\n}\n", "import { type AnyZod, innerOf, inspect, MAX_UNWRAP_DEPTH, shapeEntries, TRANSPARENT_WRAPPERS } from '../schema/introspect'\nimport { encodeChecks, messageOf } from './checks'\nimport { type FieldJSON, type FieldType, type MetaJSON, type ParamsSchemaJSON, SCHEMA_JSON_VERSION } from './types'\nimport { toJsonValue } from './values'\n\n// zod \u2192 wire. Reads the same `_zod.def` internals the rest of the framework reads (see ../schema/introspect).\n\n/**\n * The core types with a wire form of their own.\n *\n * Kept in step with `SUPPORTED_TYPES` (../schema/assert-supported-schema.ts) \u2014 the set registration holds an\n * author to. `any` and `unknown` are supported declarations that deliberately have no form here: they model\n * \"anything\", which is what the `unknown` wire type already means, so they encode to it WITHOUT an\n * `unsupported` breadcrumb (see `problemsFor`).\n */\nconst FIELD_TYPES = new Set<string>([\n 'string', 'number', 'bigint', 'boolean', 'date', 'enum', 'literal', 'object', 'array', 'record',\n])\n\n// `union` is not in FIELD_TYPES: `inspect()` resolves a union to its first branch, so it never arrives as a\n// declared type. It is detected by the branch list instead (see `encodeField`).\nconst UNION_TYPE = 'union' as FieldType\n\n// Declarations whose whole content is \"no constraint\". They encode as `unknown` legitimately, not as a gap.\nconst PASS_THROUGH_TYPES = new Set(['any', 'unknown'])\n\n// Wrappers whose effect the wire form records as a flag, and the one that cannot be recorded at all.\nconst WRAPPERS = new Set(['optional', 'nullable', 'default'])\n\ninterface Unwrapped {\n optional: boolean\n nullable: boolean\n defaultValue: unknown\n hasDefault: boolean\n unsupported: string[]\n}\n\n/**\n * Peel the modifier chain, recording WHICH modifiers were present rather than their order.\n *\n * This walk answers only \"which absence modifiers were declared\". **It does not decide the core type** \u2014\n * `inspect()` does, and `encodeField` reads it from there. Keeping a second opinion on the core here is what\n * let this module fall behind the rest of the framework once already: it kept its own narrower wrapper set,\n * so every declaration the type surface legitimized (`.readonly()`, `.pipe()`, `z.lazy()`, `.nonoptional()`,\n * `z.record()`) still crossed the wire as `unknown` while the published model had it right.\n *\n * Order is safe to lose because the pipeline derives its absence policy by probing the schema for the forms\n * it accepts (see ../schema/field-plan.ts), and the canonical order ./decode.ts rebuilds in preserves that\n * set for every combination \u2014 `.optional().nullable()` and `.nullable().optional()` accept the same things.\n */\nfunction unwrap(schema: AnyZod): Unwrapped {\n const result: Unwrapped = {\n optional: false,\n nullable: false,\n defaultValue: undefined,\n hasDefault: false,\n unsupported: [],\n }\n\n let current: AnyZod | undefined = schema\n // `.nonoptional()` re-asserts a requirement over whatever it wraps \u2014 mirrors ../schema/field-plan.ts.\n let sealed = false\n // The same bound `inspect()` puts on its own peel, for the same reason: a `z.lazy()` whose getter returns\n // another wrapper would unwrap forever, and nothing legitimate nests modifiers anywhere near this deep.\n let depth = 0\n\n while (current?._zod && depth++ < MAX_UNWRAP_DEPTH) {\n const def = current._zod.def ?? {}\n const type = def.type as string\n\n if (type === 'nonoptional') {\n sealed = true\n current = def.innerType as AnyZod\n continue\n }\n\n /**\n * Look STRAIGHT THROUGH the modifiers that say nothing about absence \u2014 the same set `inspect()` and\n * `declaredAbsence` look through.\n *\n * Without this the walk stopped at the first one and lost every flag beneath it:\n * `z.string().optional().readonly()` encoded as a plain required string, so the console rebuilt a schema\n * that DEMANDED a value the runner accepts as absent \u2014 a form that can never be saved, and a violation\n * of the one-directional invariant in ./types.ts. The core type was moved to `inspect()` and this walk\n * was left behind; it is the same drift, one function along.\n */\n if (TRANSPARENT_WRAPPERS.has(type)) {\n current = innerOf(def, type)\n continue\n }\n\n if (sealed) {\n break\n }\n\n if (!WRAPPERS.has(type)) {\n // `.prefault()` runs before parsing rather than in place of an absent value \u2014 a different contract, so\n // it is named as unsupported instead of being flattened into `default`.\n if (type === 'prefault' || type === 'nullish') {\n result.unsupported.push(`wrapper:${ type }`)\n current = def.innerType as AnyZod\n continue\n }\n\n break\n }\n\n if (type === 'optional') {\n result.optional = true\n }\n\n if (type === 'nullable') {\n result.nullable = true\n }\n\n if (type === 'default' && !result.hasDefault) {\n result.hasDefault = true\n result.defaultValue = def.defaultValue\n }\n\n current = def.innerType as AnyZod\n }\n\n return result\n}\n\n/**\n * What the caller knows that the framework cannot: the name of the method that loads a field's\n * `.dynamicProps()`. The framework does not import the runner's naming (it also runs in the browser), so the\n * runner passes it in when it publishes an owner's params.\n */\nexport interface EncodeParamsOptions {\n loaderIdOf?: (fieldName: string) => string\n}\n\n// A `.dynamicProps()` spec still holds the author's `execute` function; a decoded one is already a plain ref.\nfunction isDynamicPropsSpec(value: unknown): value is { dependsOn?: string[]; execute: unknown } {\n return !!value && typeof value === 'object' && typeof (value as { execute?: unknown }).execute === 'function'\n}\n\nfunction hasFunction(value: unknown, depth = 0): boolean {\n if (typeof value === 'function') {\n return true\n }\n\n if (!value || typeof value !== 'object' || depth > MAX_UNWRAP_DEPTH) {\n return false\n }\n\n return Object.values(value as Record<string, unknown>).some(inner => hasFunction(inner, depth + 1))\n}\n\n/**\n * Author metadata, dropping the keys that carry no meaning on the wire. `frLabels` values are declared by the\n * author and may be any JSON; `frDictionary` is a plain ref; `frDynamicProps` is published as the ref\n * `{ id, dependsOn }` of the method that loads the field's inner fields \u2014 its `execute` stays in the runner.\n *\n * A function anywhere else in meta THROWS: `toJsonValue` passes a function through untouched and JSON then\n * drops it silently, so the field would publish without what the function stood for and nobody would notice.\n */\nfunction encodeMeta(meta: Record<string, unknown>, field: string, loaderId?: string): MetaJSON | undefined {\n let source = meta\n\n if (isDynamicPropsSpec(meta.frDynamicProps)) {\n if (!loaderId) {\n throw new Error(`Cannot encode \"${ field }\": its \\`.dynamicProps()\\` has no loader method to publish.`)\n }\n\n source = { ...meta, frDynamicProps: { id: loaderId, dependsOn: meta.frDynamicProps.dependsOn ?? [] } }\n }\n\n if (hasFunction(source)) {\n throw new Error(`Cannot encode \"${ field }\": its metadata holds a function, which has no wire form.`)\n }\n\n const encoded = toJsonValue(source) as MetaJSON\n\n return Object.keys(encoded).length ? encoded : undefined\n}\n\n// `z.looseObject()` keeps the keys it does not declare \u2014 the catchall is `z.unknown()`.\nfunction isLoose(core: AnyZod | undefined): boolean {\n const catchall = core?._zod?.def?.catchall as AnyZod | undefined\n\n return catchall?._zod?.def?.type === 'unknown'\n}\n\n// enum members live in a `{ key: value }` map; a literal keeps its own `values` array.\nfunction encodeValues(core: AnyZod | undefined, type: FieldType): FieldJSON['values'] {\n if (type === 'enum') {\n const entries = (core?._zod?.def?.entries as Record<string, unknown> | undefined) ?? {}\n\n return Object.values(entries).map(toJsonValue)\n }\n\n if (type === 'literal') {\n const values = (core?._zod?.def?.values as unknown[] | undefined) ?? []\n\n return values.map(toJsonValue)\n }\n\n return undefined\n}\n\n/**\n * One declared field \u2192 its wire form.\n *\n * `seen` holds the declarations this field is currently INSIDE \u2014 the ancestors on the walk, not everything\n * already encoded \u2014 so a schema that legitimately appears twice side by side is still encoded twice. It is\n * added before descending and removed after, which makes the check below a cycle test rather than a\n * deduplication.\n */\nexport function encodeField(name: string, schema: AnyZod, seen: Set<unknown> = new Set(), loaderId?: string): FieldJSON {\n /**\n * A self-referential declaration contains itself, so the structural walk below has no bottom.\n *\n * `const Tree = z.lazy(() => z.union([z.string(), z.array(Tree)]))` encodes its union, whose array branch\n * has `Tree` as its element, whose union has an array branch\u2026 \u2014 and since a `z.lazy()` getter REBUILDS its\n * schema on every call, each level allocates a fresh one and the stack is gone in milliseconds. That was\n * FR-3600: a `RangeError` naming no extension, method or parameter, with the extension never registering.\n * The recursion is structural rather than data-driven, so remembering the ancestors is enough to stop it.\n *\n * The wire form has no way to SAY \"and here it is again\" \u2014 ./decode.ts rebuilds a finite schema \u2014 so the\n * repeat is encoded as the pass-through it has to become, with a breadcrumb saying why. Everything above\n * the cycle still crosses intact: `Tree` publishes as the string its first branch declares, and the parts\n * of the declaration that are not recursive keep their own types.\n */\n if (seen.has(schema)) {\n return { name, type: 'unknown', unsupported: ['recursion'] }\n }\n\n seen.add(schema)\n\n const { optional, nullable, defaultValue, hasDefault, unsupported } = unwrap(schema)\n // The core, and the type of it, from the one place that decides that for the whole framework.\n const ins = inspect(schema)\n const core = ins.core\n const declaredType = ins.branches ? UNION_TYPE : ins.resolvedType ?? 'unknown'\n const type = (ins.branches || FIELD_TYPES.has(declaredType) ? declaredType : 'unknown') as FieldType\n // `core` is a union's FIRST BRANCH, so its format/checks/message describe that branch and not the union.\n // Encoding them onto the union node would hand `decodeField` constraints to apply to a `ZodUnion`: today\n // they no-op because a union has no `.min()`, which is luck rather than design \u2014 the first one that did\n // map to a real method would make the rebuild reject what a later branch accepts. The branches carry their\n // own constraints in `options`, which is where they belong.\n const isUnion = !!ins.branches\n const format = isUnion ? undefined : core?._zod?.def?.format as string | undefined\n const { checks, unsupported: checkIssues } = isUnion ? { checks: [], unsupported: [] } : encodeChecks(core)\n const meta = encodeMeta(ins.meta as Record<string, unknown>, name, loaderId)\n const message = isUnion ? undefined : messageOf((core?._zod?.def ?? {}) as { error?: unknown })\n const values = encodeValues(core, type)\n const problems = [...unsupported, ...checkIssues]\n\n // `unknown` reached by a declaration that MEANS \"anything\" is the wire form working, not failing.\n if (type === 'unknown' && !PASS_THROUGH_TYPES.has(declaredType)) {\n problems.push(`type:${ declaredType }`)\n }\n\n const encoded: FieldJSON = {\n name,\n type,\n ...(format ? { format } : {}),\n ...(optional ? { optional: true as const } : {}),\n ...(nullable ? { nullable: true as const } : {}),\n ...(hasDefault ? { default: toJsonValue(defaultValue) } : {}),\n ...(checks.length ? { checks } : {}),\n ...(values?.length ? { values } : {}),\n ...(meta ? { meta } : {}),\n ...(message ? { message } : {}),\n ...(type === 'object' && isLoose(core) ? { loose: true as const } : {}),\n ...(type === 'object' ? { properties: shapeEntries(core).map(([key, inner]) => encodeField(key, inner, seen)) } : {}),\n ...(type === 'array' ? { element: encodeField('', core?._zod?.def?.element as AnyZod, seen) } : {}),\n ...(type === 'record' ? { value: encodeField('', core?._zod?.def?.valueType as AnyZod, seen) } : {}),\n ...(ins.branches ? { options: ins.branches.map(branch => encodeField('', branch, seen)) } : {}),\n ...(problems.length ? { unsupported: problems } : {}),\n }\n\n // Off the walk again: the field is fully encoded, so this declaration is no longer an ancestor of anything.\n seen.delete(schema)\n\n return encoded\n}\n\n/**\n * A whole declared slot \u2192 its wire form. `null` for an undeclared slot, which is legal everywhere: a method\n * with no params publishes no schema rather than an empty one.\n *\n * Takes `unknown` because this is a boundary: callers hold a schema through whichever view they happen to\n * have (`Params.scheme`, an author's `z.object`, a decoded rebuild), and none of those structural views are\n * assignable to each other. Narrowing once here beats a cast at every call site.\n */\nexport function encodeParams(scheme: unknown, options: EncodeParamsOptions = {}): ParamsSchemaJSON | null {\n const schema = scheme as AnyZod | undefined\n\n if (!schema?._zod) {\n return null\n }\n\n return {\n v: SCHEMA_JSON_VERSION,\n fields: shapeEntries(schema).map(([name, field]) => encodeField(name, field, new Set(), options.loaderIdOf?.(name))),\n }\n}\n", "import { InvalidCriteriaError, InvalidMethodInputError, MissingMethodParamError } from '../../errors'\nimport { type FailFn, MethodParams, parseSchema } from '../params'\nimport type { ZodSchema } from '../types'\n\n// One invocation's `methodData`, and the two ways the runner reads it.\n//\n// A method's input is keyed by its declared param names (see the console's execution controller). SYSTEM\n// methods carry a single well-known param, helper methods a `payload`. Pulling one out and validating it are\n// separate failures on purpose:\n// \u2022 the param is absent \u2192 MissingMethodParamError \u2014 the CALL is malformed\n// \u2022 the param's value is invalid \u2192 InvalidMethodInputError \u2014 the VALUE is malformed, with issue paths\n// relative to that param\n// Criteria always fail as InvalidCriteriaError so the console can point at the dependent fields instead of\n// reporting the whole call as broken; the two `invalid*` factories below are how a caller picks which.\n\nexport class MethodInput {\n constructor(\n readonly serviceId: string,\n readonly methodName: string,\n private readonly data: Record<string, unknown> = {}\n ) {}\n\n // Extract a declared param. Absent is loud rather than silently defaulted \u2014 a missing param means a\n // malformed call, and failing here surfaces it at the source.\n require<T>(param: string): T {\n const value = (this.data ?? {})[param]\n\n if (value == null) {\n throw new MissingMethodParamError(this.serviceId, param)\n }\n\n return value as T\n }\n\n /**\n * Extract a declared param and validate its value against the schema that owns it.\n *\n * An OBJECT schema \u2014 every runtime-owned wrapper (`callbackObject`, `invocation`, `payload`) \u2014 goes\n * through the same per-field pipeline every author-declared slot uses, so `.optional()` means one thing\n * everywhere: a blank arrives as absence whether the host sent `null`, `''` or nothing at all.\n *\n * That consistency is the point. While these wrappers were parsed by a bare `safeParse`, `.optional()`\n * rejected `null` here while accepting it everywhere else, and each field had to be remembered as\n * `.nullish()` the first time a host sent a null \u2014 which is how `state` on the OAuth callback stayed\n * broken for a non-PKCE provider, where the console legitimately has no verifier to hand back.\n *\n * `carryUnknown` preserves the passthrough these schemas declare with `z.looseObject`: a host may send\n * fields a given milestone does not model yet, and dropping them silently would be worse.\n */\n parseField<T>(param: string, schema?: ZodSchema): T {\n const value = this.require<unknown>(param)\n const fail = this.invalidInput(param)\n\n // A wrapper that is not an object at all fails as the WRAPPER, not field by field: iterating declared\n // fields over a string would report \"\u00ABSearch\u00BB must be a string\" for a payload that was never an object.\n const isObject = !!value && typeof value === 'object' && !Array.isArray(value)\n\n if (!schema?.shape || !isObject) {\n return parseSchema<T>(schema, value, fail, param)\n }\n\n return MethodParams.of(schema).normalize<Record<string, unknown>>(\n value as Record<string, unknown>,\n fail,\n { carryUnknown: true }\n ) as T\n }\n\n // \u2500\u2500 failure identities, for the slots a caller parses itself \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // `target` names the slot that failed \u2014 a param name, or 'params' / 'triggerData' for the whole input.\n invalidInput(target: string): FailFn {\n return issues => {\n throw new InvalidMethodInputError(this.serviceId, this.methodName, target, issues)\n }\n }\n\n invalidCriteria(): FailFn {\n return issues => {\n throw new InvalidCriteriaError(this.serviceId, this.methodName, issues)\n }\n }\n}\n", "import type { ExecutionContext } from './context/execution-context'\nimport { MethodInput } from './context/method-input'\nimport type { Extension } from './extension'\nimport type { SharedExtensionMethod } from './model/model-types'\n\n// One callable method of an extension. Every kind \u2014 action, dictionary, generated loader, SYSTEM seam \u2014\n// answers the same three questions, which is the whole dispatch and model-build contract:\n//\n// toModel() what the console/flow-engine sees in `methodsMap`\n// validate(input) what this kind accepts, and how a bad call fails\n// execute(params) what running it does\n//\n// So dispatch is a map lookup plus `execute(validate(input))`, and building the definition is one pass over\n// `extension.methods()`. Adding a kind means adding a subclass, not editing a chain of `if`s.\n\nexport abstract class ExtensionMethod {\n constructor(protected readonly extension: Extension) {}\n\n // The published method name \u2014 the key in `methodsMap`, and what the flow engine invokes.\n abstract get name(): string\n\n // The v1 kind token: ACTION | DICTIONARY | POLLING_TRIGGER | REALTIME_TRIGGER | SYSTEM |\n // SAMPLE_RESULT_LOADER | PARAM_SCHEMA_DEFINITION.\n abstract get registerAs(): string\n\n abstract toModel(): SharedExtensionMethod\n\n // Extra OAuth scopes this method needs. Only the author-declared kinds can carry any; the generated\n // loaders and the SYSTEM seams never do.\n get oauth2Scopes(): string[] {\n return []\n }\n\n /**\n * Whether this method appears in the published `methodsMap`. Almost always yes \u2014 but the realtime refresh\n * seam is callable whether or not the author declared a `refresh` handler (the runtime answers `{}` when\n * they did not), while only being ADVERTISED when they did. Callable and advertised are therefore two\n * different questions, and this is the second one.\n */\n get published(): boolean {\n return true\n }\n\n // Turn raw `methodData` into whatever `execute` takes. The default accepts anything \u2014 a kind with no\n // declared input has nothing to check.\n validate(methodData: Record<string, unknown>): unknown {\n return methodData\n }\n\n // May return a promise or a plain value; the caller awaits either way, so a synchronous handler is not\n // forced through an async wrapper.\n abstract execute(params: unknown, ctx: ExecutionContext): unknown\n\n protected input(methodData: Record<string, unknown>): MethodInput {\n return new MethodInput(this.extension.id, this.name, methodData)\n }\n}\n", "// Version-agnostic config constants shared by v1 and v2.\n\nexport type ServiceConfigsValues = Record<string, unknown>\n\nexport const ServiceConfigItemTypes = {\n STRING: 'string',\n BOOL: 'bool',\n DATE: 'date',\n CHOICE: 'choice',\n TEXT: 'text',\n} as const\n\nexport type ServiceConfigItemType = (typeof ServiceConfigItemTypes)[keyof typeof ServiceConfigItemTypes]\n", "import { ServiceConfigItemTypes } from '../../common/constants'\nimport type { ConfigItem } from '../../common/types'\nimport { absenceOf } from '../params/schema/field-plan'\nimport { type AnyZod, deriveWidget, inspect, type Inspected, shapeEntries } from '../params/schema/introspect'\nimport { labelOf } from '../params/schema/labels'\nimport { FlowExtensionParamWidgetTypes } from '../params/widget-types'\nimport type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// One declared field \u2194 one entry of the v1 output model. Every mapping the runner performs on a single zod\n// field lives here; ./params-model.ts iterates a `Params`' declared shape and collects what these return.\n//\n// Where a field's DISPLAY metadata (label / uiComponent / dictionary / dependsOn) ends up depends on its\n// depth, matching the v1 jsdoc-parser layout: a top-level param carries structure only and publishes its\n// display side through `metaInfo.args` (\u2192 fieldToArg), while a nested property inlines both. That is the\n// single `nested` flag below \u2014 the two used to be near-duplicate functions.\n//\n// Display metadata is published EXACTLY as the author wrote it. What a bare `z.email()` should show when the\n// author wrote no label and no description is decided when the field is RENDERED, from the schema the\n// definition now carries (see ../params/schema/defaults.ts) \u2014 so those defaults can be reworded without\n// every service having to be redeployed to pick the change up.\n\n// The description as the console should show it: the author's, or nothing. An empty string is meaningful \u2014\n// it says \"the author documented nothing here\", which is what lets the renderer supply its own default.\nconst descriptionOf = (schema: AnyZod): string =>\n inspect(schema).meta.description || ''\n\n/**\n * Whether the console should mark the field mandatory \u2014 asked of the SAME probe the runtime resolves absence\n * with (see ../params/schema/field-plan.ts), not of the wrapper chain.\n *\n * They are two ways of asking one question, and only one of them is authoritative: the runtime decides what\n * it accepts by parsing, so publishing anything else lets the form demand a value the runner would have let\n * through, or leave optional one it will reject. Reading the same answer is what keeps the two from drifting.\n */\nconst isRequired = (schema: AnyZod): boolean =>\n absenceOf(schema).absence === 'required'\n\n// Whether the field is one of the platform's own param groups \u2014 an object that arrived with a widget token\n// on it, which only ../params/files-options.ts produces.\nconst isParamGroup = (ins: Inspected): boolean =>\n ins.coreType === 'object' && !!ins.meta.frWidget\n\nexport interface FieldToParamOptions {\n nested?: boolean\n}\n\nexport function fieldToParam(name: string, schema: AnyZod, options: FieldToParamOptions = {}): SharedExtensionParam {\n const ins = inspect(schema)\n const widget = deriveWidget(ins)\n\n const param: SharedExtensionParam = {\n name,\n required: isRequired(schema),\n description: descriptionOf(schema),\n type: widget.paramType,\n }\n\n /**\n * A platform param GROUP names itself on the param, at every depth.\n *\n * It is the one piece of `uiComponent` that is not display metadata derived from the field's type \u2014 the\n * rule below, which sends a top-level param's display side to `metaInfo.args`, is about how ONE CONTROL\n * should look. This says what the param IS: the runtime's own file-options object rather than an anonymous\n * `z.object` a service happened to declare (see ../params/files-options.ts). A consumer that walks\n * `bodyParams` alone can act on it, and it survives being nested inside another object.\n *\n * It is published through `metaInfo.args` as well, by `fieldToArg` below, because that is where the flow\n * designer reads a top-level param's `uiComponent` from.\n */\n if (isParamGroup(ins) && widget.uiComponent) {\n param.uiComponent = widget.uiComponent\n }\n\n if (options.nested) {\n param.label = labelOf(name, schema)\n\n if (widget.uiComponent) {\n param.uiComponent = widget.uiComponent\n }\n\n if (ins.meta.frDictionary) {\n param.dictionary = ins.meta.frDictionary.id\n\n if (ins.meta.frDictionary.dependsOn.length) {\n param.dependsOn = ins.meta.frDictionary.dependsOn\n }\n }\n }\n\n if (ins.defaultValue !== undefined) {\n param.defaultValue = ins.defaultValue\n }\n\n if (widget.items) {\n param.items = widget.items\n }\n\n // Only a z.object HAS declared properties. A record publishes as OBJECT too, but its keys are open \u2014 there\n // is no field list to publish, and an empty one would read as \"this object has no fields\".\n if (ins.coreType === 'object') {\n param.properties = propertiesOf(ins.core)\n }\n\n /**\n * A LIST of objects publishes the ELEMENT's fields as the param's own `properties`, next to `items`.\n *\n * That looks redundant next to `items.type` until you see what reads it: the console decides a list is a\n * repeatable row editor rather than a single expression box by testing `paramDefinition.properties` (see\n * flow-builder's `getAvailableStructureTypes`), and then renders one input per entry in it. With only\n * `items: { type: 'OBJECT' }` to go on it has no fields to draw and falls back to one text box \u2014 the\n * author's declared structure is simply invisible.\n *\n * The legacy JSDoc format has always published it this way, so this is the v2 model matching a contract\n * the console already implements rather than a new one.\n */\n if (widget.paramType === 'LIST' && widget.items?.type === 'OBJECT') {\n param.properties = propertiesOf(elementOf(ins.core))\n }\n\n return param\n}\n\n// The element schema of a declared array, past its own modifiers.\nfunction elementOf(arrayCore: AnyZod | undefined): AnyZod | undefined {\n const element = arrayCore?._zod?.def?.element as AnyZod | undefined\n\n return element ? inspect(element).core : undefined\n}\n\n// The nested properties of an OBJECT field \u2014 its core schema's own shape, each mapped in nested form.\nexport function propertiesOf(objectCore: AnyZod | undefined): SharedExtensionParam[] {\n return shapeEntries(objectCore).map(([name, schema]) => fieldToParam(name, schema, { nested: true }))\n}\n\n// The display half of a top-level param: what `metaInfo.args[name]` carries.\nexport function fieldToArg(name: string, schema: AnyZod): SharedExtensionMetaInfoArg {\n const ins = inspect(schema)\n const arg: SharedExtensionMetaInfoArg = { label: labelOf(name, schema) }\n // A LIST's display metadata describes ONE ITEM, not the list: the console renders a repeatable editor and\n // draws each entry with this control. So `z.array(z.enum([\u2026]))` advertises the element's dropdown, and\n // `z.array(z.string().dictionary(ref))` advertises the element's dictionary \u2014 which is what the console\n // has always expected here, and what makes a list of choices a list of choices rather than a text box.\n const display = ins.coreType === 'array' ? elementDisplay(ins) : ins\n const widget = deriveWidget(display)\n\n if (display.meta.frDictionary) {\n arg.dictionary = display.meta.frDictionary.id\n\n if (display.meta.frDictionary.dependsOn.length) {\n arg.dependsOn = display.meta.frDictionary.dependsOn\n }\n }\n\n if (widget.uiComponent) {\n arg.uiComponent = widget.uiComponent\n }\n\n return arg\n}\n\n/**\n * What a list should ADVERTISE: its element's declaration, falling back to the list's own.\n *\n * The fallback matters for `z.array(z.string()).dictionary(ref)` \u2014 binding the list rather than the element\n * reads just as naturally to an author, and both forms mean the same thing.\n */\nfunction elementDisplay(list: Inspected): Inspected {\n const element = list.core?._zod?.def?.element as AnyZod | undefined\n const inspected = element ? inspect(element) : undefined\n\n if (!inspected) {\n return list\n }\n\n return inspected.meta.frDictionary || deriveWidget(inspected).uiComponent\n ? inspected\n : { ...inspected, meta: { ...inspected.meta, ...list.meta } }\n}\n\n// \u2500\u2500 config items \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nfunction toConfigType(coreType: string, frWidget?: string): ConfigItem['type'] {\n if (coreType === 'boolean') {\n return ServiceConfigItemTypes.BOOL\n }\n\n if (coreType === 'date') {\n return ServiceConfigItemTypes.DATE\n }\n\n if (coreType === 'enum') {\n return ServiceConfigItemTypes.CHOICE\n }\n\n if (frWidget === FlowExtensionParamWidgetTypes.MULTI_LINE_TEXT) {\n return ServiceConfigItemTypes.TEXT\n }\n\n return ServiceConfigItemTypes.STRING\n}\n\n// A config field \u2192 the v1 `ConfigItem` the console renders. `.shared()` marks it global rather than per-app.\nexport function fieldToConfigItem(name: string, schema: AnyZod): ConfigItem {\n const ins = inspect(schema)\n\n return {\n name,\n type: toConfigType(ins.coreType, ins.meta.frWidget),\n shared: !!ins.meta.frShared,\n required: isRequired(schema),\n description: descriptionOf(schema),\n label: labelOf(name, schema),\n defaultValue: ins.defaultValue,\n options: ins.coreType === 'enum' ? ((ins.core.options as string[]) ?? []) : [],\n }\n}\n\n", "import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// Shared pieces of the v1 method model \u2014 the shapes several kinds emit identically.\n\n// Every helper-route method (dictionaries, the generated loaders, and the OAuth/trigger SYSTEM methods) is\n// invoked with a single wrapper param \u2014 `payload` or `invocation` \u2014 via the console's helper-method route.\n// The method itself carries no per-field model params, so its input scheme is just that wrapper.\nexport function opaqueParam(name: string, type = 'OBJECT'): SharedExtensionParam {\n return { name, required: false, description: '', type }\n}\n\n// Describe a method's params in `metaInfo.args` (mirroring how actions describe theirs) so the method\n// advertises a labelled input instead of an empty `args` \u2014 consumers (AI tools, the console UI) rely on it.\nexport function argsFromParams(params: SharedExtensionParam[]): Record<string, SharedExtensionMetaInfoArg> {\n const args: Record<string, SharedExtensionMetaInfoArg> = {}\n\n for (const param of params) {\n const arg: SharedExtensionMetaInfoArg = { label: param.label ?? param.name }\n\n if (param.uiComponent) {\n arg.uiComponent = param.uiComponent\n }\n\n if (param.dictionary) {\n arg.dictionary = param.dictionary\n }\n\n if (param.dependsOn) {\n arg.dependsOn = param.dependsOn\n }\n\n args[param.name] = arg\n }\n\n return args\n}\n", "import type { ConfigItem } from '../../common/types'\nimport type { ConfigParams, MethodParams, Params } from '../params'\nimport { fieldToArg, fieldToConfigItem, fieldToParam, propertiesOf } from './field-mapper'\nimport { opaqueParam } from './method-model'\nimport type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types'\n\n// The v1 output model of a declared schema \u2014 `bodyParams`, `metaInfo.args`, `ConfigItem[]`.\n//\n// These are free functions rather than methods on `Params` on purpose: the params framework is consumed by\n// the console as well as the runner (it renders and validates the same schemas in the browser), and the v1\n// console model is meaningless there. So the framework describes a schema, and this module \u2014 which belongs\n// to the runner's output model \u2014 projects that description into the shapes v1 consumers expect.\n\n// Top-level params: structure only. Display metadata is published through `toArgs()`.\nexport function toBodyParams(params: MethodParams): SharedExtensionParam[] {\n return params.fields().map(([name, schema]) => fieldToParam(name, schema))\n}\n\n// `metaInfo.args` \u2014 the display half of the same fields.\nexport function toArgs(params: MethodParams): Record<string, SharedExtensionMetaInfoArg> {\n return Object.fromEntries(params.fields().map(([name, schema]) => [name, fieldToArg(name, schema)]))\n}\n\n/**\n * Top-level params rendered OPAQUELY: one entry per declared key, typed from its schema, with no recursion\n * into nested properties and nothing ever marked required.\n *\n * This is the SYSTEM seam's model shape. Those methods are invoked by the runtime with a whole invocation\n * object, never through a rendered form, so publishing their internals would be noise \u2014 and the v1 seam they\n * must stay compatible with declares them exactly this way.\n */\nexport function toOpaqueBodyParams(params: MethodParams): SharedExtensionParam[] {\n return params.fields().map(([name, schema]) => opaqueParam(name, fieldToParam(name, schema).type))\n}\n\n// The same fields as NESTED properties: display metadata inlined on each one. Used where the schema\n// describes the inside of a wrapper param rather than a method's top level (e.g. a dictionary's `criteria`\n// inside its `payload`).\nexport function toProperties(params: Params): SharedExtensionParam[] {\n return propertiesOf(params.scheme as Parameters<typeof propertiesOf>[0])\n}\n\n// The config descriptions the console renders. `.shared()` fields are marked shared (\u2192\n// sharedConfigDescriptions downstream); the rest are per-app.\nexport function toConfigItems(config: ConfigParams): ConfigItem[] {\n return config.fields().map(([name, schema]) => fieldToConfigItem(name, schema))\n}\n", "import { sampleResultLoaderName } from './loaders/loader-owner'\nimport type { SharedExtensionMetaInfo } from './model/model-types'\nimport type { MethodParams } from './params'\n\n// A declared `result`. Not a schema slot \u2014 it is a UNION zod cannot represent (a literal sample value, a zod\n// schema carrying `.example()`, or a loader fn that derives the sample from the current params), so it gets\n// its own wrapper rather than living in ../params.ts.\n//\n// It answers two questions for every owner (actions, both trigger kinds, dictionaries): what `returnType`\n// the method publishes, and where its sample comes from \u2014 an inline `sampleResult`, or a generated\n// SAMPLE_RESULT_LOADER method the console calls with the params filled in so far.\n\n// The loader is called with the owner's handler bag plus the current params.\ntype LoaderFn = (bag: object) => unknown\n\nfunction inferReturnType(value: unknown): string {\n if (Array.isArray(value)) {\n return 'LIST'\n }\n\n if (value && typeof value === 'object') {\n return 'OBJECT'\n }\n\n if (typeof value === 'string') {\n return 'STRING'\n }\n\n return 'VOID'\n}\n\nfunction isZodSchema(value: unknown): boolean {\n return !!value && typeof value === 'object' && '_zod' in (value as Record<string, unknown>)\n}\n\n// A zod `result` carries its sample in `.example(...)` \u2192 native `meta.examples`; the last one wins.\nfunction schemaExample(schema: { meta?: () => { examples?: unknown[] } | undefined }): unknown {\n const examples = typeof schema.meta === 'function' ? schema.meta()?.examples : undefined\n\n return examples && examples.length ? examples[examples.length - 1] : null\n}\n\nexport class ResultSpec {\n static from(result: unknown): ResultSpec {\n return new ResultSpec(result)\n }\n\n private constructor(private readonly declared: unknown) {}\n\n // The sample is not knowable statically \u2014 it comes from a generated loader method instead.\n get isLoader(): boolean {\n return typeof this.declared === 'function'\n }\n\n get returnType(): string {\n if (this.isLoader || isZodSchema(this.declared)) {\n return 'OBJECT'\n }\n\n return inferReturnType(this.declared)\n }\n\n // Whether anything was declared at all \u2014 a dictionary with no `result` still publishes OBJECT.\n get isDeclared(): boolean {\n return this.declared !== undefined\n }\n\n // The inline sample, or null when there is none (loader form, or an undeclared result).\n #sampleResult(): unknown {\n if (this.isLoader) {\n return null\n }\n\n if (isZodSchema(this.declared)) {\n return schemaExample(this.declared as { meta?: () => { examples?: unknown[] } | undefined })\n }\n\n return this.declared ?? null\n }\n\n // The `metaInfo` halves that describe the output. In loader form the sample is replaced by a reference to\n // the generated method, which depends on every param of its owner (any of them can change the shape).\n toMetaInfo(ownerId: string, params: MethodParams): Pick<SharedExtensionMetaInfo, 'sampleResult' | 'sampleResultLoader'> {\n if (this.isLoader) {\n return {\n sampleResult: null,\n sampleResultLoader: { methodName: sampleResultLoaderName(ownerId), dependsOn: params.keys() },\n }\n }\n\n return { sampleResult: this.#sampleResult(), sampleResultLoader: null }\n }\n\n // Run the loader form against a handler bag carrying the current params.\n async runLoader(bag: object): Promise<unknown> {\n return (this.declared as LoaderFn)(bag)\n }\n}\n", "import { InvalidSchemaError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { dynamicParamsLoaderName, dynamicPropsLoaderName, type ParamsLoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMetaInfo, SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, inspect, MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport type { ActionProps, DynamicPropsDef } from '../types'\n\n// An action \u2014 the primary operation a service exposes (07-actions.md). Its `params` are the method input\n// itself, keyed by param name, and its handler receives them already parsed.\n\nexport class ActionMethod extends ExtensionMethod implements ParamsLoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n readonly dynamicParams?: DynamicPropsDef\n\n constructor(extension: Extension, private readonly props: ActionProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, { serviceId: extension.id, kind: 'action', itemId: props.id, slot: 'params' })\n this.result = ResultSpec.from(props.result)\n this.dynamicParams = props.dynamicParams ? this.#checkDynamicParams(props.dynamicParams) : undefined\n }\n\n /**\n * `dynamicParams` takes the same `{ dependsOn, execute }` as `.dynamicProps()`. The old\n * `{ criteria, resolve }` shape is refused by name, so a service written against it fails at load with the\n * fix rather than publishing a loader that never runs.\n */\n #checkDynamicParams(def: DynamicPropsDef): DynamicPropsDef {\n const source = { serviceId: this.extension.id, kind: 'action', itemId: this.props.id, slot: 'dynamicParams' }\n const fail = (message: string, received: unknown): never => {\n throw new InvalidSchemaError(`[flow-extension:${ this.extension.id }] action \"${ this.props.id }\": ${ message }`, { ...source, received })\n }\n const legacy = def as unknown as { criteria?: unknown; resolve?: unknown }\n\n if (legacy.resolve !== undefined || legacy.criteria !== undefined) {\n fail(\n '`dynamicParams: { criteria, resolve }` has been replaced by `dynamicParams: { dependsOn, execute }` \u2014 ' +\n 'name the params it depends on and return the loaded fields from `execute`. ' +\n 'e.g. dynamicParams: { dependsOn: [\\'tableName\\'], execute: async ({ criteria }) => ({ name: z.string() }) }',\n 'criteria/resolve'\n )\n }\n\n if (typeof def.execute !== 'function') {\n fail('`dynamicParams` needs an `execute` function that returns the loaded params.', typeof def.execute)\n }\n\n if (def.dependsOn !== undefined && (!Array.isArray(def.dependsOn) || def.dependsOn.some(item => typeof item !== 'string'))) {\n fail('`dynamicParams.dependsOn` must be an array of param names.', def.dependsOn)\n }\n\n const declared = this.params.keys()\n\n for (const dependency of def.dependsOn ?? []) {\n if (!declared.includes(dependency)) {\n fail(\n `\\`dynamicParams\\` depends on \"${ dependency }\", which the action does not declare in \\`params\\`. ` +\n `Declared: ${ declared.join(', ') || 'none' }.`,\n dependency\n )\n }\n }\n\n return def\n }\n\n /**\n * The top-level params declared with `.dynamicProps()`, and the def each one carries. Placement and shape\n * were checked when `params` was built (see ../params/schema/assert-supported-schema.ts).\n */\n dynamicPropsFields(): [name: string, def: DynamicPropsDef][] {\n return this.params.fields().flatMap(([name, schema]) => {\n const def = inspect(schema).meta.frDynamicProps\n\n // A decoded ref (`{ id, dependsOn }`) has no handler to run; anything else was checked to be a spec\n return def && !(typeof (def as { id?: unknown }).id === 'string' && !('execute' in def))\n ? [[name, def as DynamicPropsDef] as [string, DynamicPropsDef]]\n : []\n })\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'ACTION'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n hasDynamicParams(): boolean {\n return !!this.props.dynamicParams\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n /**\n * Normalize, coerce and validate against the declared `params` \u2014 the same pipeline every other declared\n * slot uses, so an author expresses optionality in the schema and nowhere else.\n *\n * An action with `dynamicParams` carries the input's undeclared keys through, since its loaded top-level\n * fields are not in the static schema. A `.dynamicProps()` field needs nothing here: it is a loose object,\n * which keeps the loaded keys inside it.\n */\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n return this.params.normalize<Record<string, unknown>>(\n methodData,\n this.input(methodData).invalidInput('params'),\n { carryUnknown: this.hasDynamicParams() }\n )\n }\n\n execute(params: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.props.execute(ctx.bagWith({ params }))\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n const args = toArgs(this.params)\n const metaInfo: SharedExtensionMetaInfo = {\n args,\n ...this.result.toMetaInfo(this.id, this.params),\n }\n\n // The Flow Builder loads a param's inner fields from `args[name].schemaLoader` \u2014 the key v1 uses for the\n // same thing, so both render through one path.\n for (const [name, def] of this.dynamicPropsFields()) {\n args[name] = { ...args[name], schemaLoader: dynamicPropsLoaderName(this.id, name), dependsOn: def.dependsOn ?? [] }\n }\n\n if (this.dynamicParams) {\n metaInfo.dynamicParams = {\n methodName: dynamicParamsLoaderName(this.id),\n dependsOn: this.dynamicParams.dependsOn ?? [],\n }\n }\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme, { loaderIdOf: name => dynamicPropsLoaderName(this.id, name) }),\n metaInfo,\n }\n }\n}\n", "import BLRequest from 'backendless-request'\n\nexport const FileScope = {\n WORKSPACE: 'WORKSPACE',\n FLOW: 'FLOW',\n EXECUTION: 'EXECUTION',\n} as const\n\nexport type FileScope = (typeof FileScope)[keyof typeof FileScope]\n\n// The scope namespace as handlers receive it (`filesScope` in the bag), so author code names a layer instead\n// of spelling the string: `files.list({ scope: filesScope.WORKSPACE })`.\nexport type FileScopes = typeof FileScope\n\ntype FileScopePath = 'workspace' | 'flow' | 'execution'\n\nfunction toScopePath(scope: FileScope): FileScopePath {\n return scope.toLowerCase() as FileScopePath\n}\n\ntype CollectionFn = (flowId: string | null, executionId: string | null) => string\ntype FileFn = (filename: string, flowId: string | null, executionId: string | null) => string\n\nconst collectionPathByScope: Record<FileScopePath, CollectionFn> = {\n workspace: () => '/workspace',\n flow: flowId => {\n if (!flowId) {\n throw new Error('Flow scope requires flowId')\n }\n\n return `/flow/${ flowId }`\n },\n execution: (flowId, executionId) => {\n if (!flowId || !executionId) {\n throw new Error('Execution scope requires flowId and executionId')\n }\n\n return `/flow/${ flowId }/execution/${ executionId }`\n },\n}\n\nconst filePathByScope: Record<FileScopePath, FileFn> = {\n workspace: filename => `/workspace/${ filename }`,\n flow: (filename, flowId) => {\n if (!flowId) {\n throw new Error('Flow scope requires flowId')\n }\n\n return `/flow/${ flowId }/${ filename }`\n },\n execution: (filename, flowId, executionId) => {\n if (!flowId || !executionId) {\n throw new Error('Execution scope requires flowId and executionId')\n }\n\n return `/flow/${ flowId }/execution/${ executionId }/${ filename }`\n },\n}\n\nexport interface FlowrunnerContextFilesOptions {\n serverURL: string\n appId: string\n apiKey: string\n //\n runtimeKey: string\n //\n flowId?: string | null\n executionId?: string | null\n //\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n}\n\nexport interface UploadFileOptions {\n scope?: FileScope\n filename?: string\n ttl?: number\n generateUrl?: boolean\n objectTtl?: number\n overwrite?: boolean\n}\n\nexport interface ListOptions {\n scope?: FileScope\n ttl?: number\n generateUrl?: boolean\n limit?: number\n cursor?: string\n}\n\nexport interface GetOptions {\n scope?: FileScope\n ttl?: number\n generateUrl?: boolean\n}\n\nexport interface DeleteOptions {\n scope?: FileScope\n}\n\nexport interface UploadResult {\n key: string\n filename: string\n url: string\n size: number\n urlExpiresAt: string\n objectExpiresAt: string | null\n overwritten: boolean\n}\n\nexport interface FileInfo {\n key: string\n filename: string\n url: string\n size: number\n createdAt: string\n urlExpiresAt: string\n objectExpiresAt: string | null\n}\n\nexport interface ListResult {\n files: FileInfo[]\n cursor: string | null\n hasMore: boolean\n}\n\nexport interface DeleteResult {\n key: string\n freedBytes: number\n deleted: boolean\n}\n\nexport interface UsageResult {\n workspaceId: string\n usedBytes: number\n quotaBytes: number\n usedFormatted: string\n quotaFormatted: string\n utilizationPercent: number\n fileCount: number\n}\n\n// The file-service contract as HANDLERS see it (`ctx.files`) \u2014 the five methods, nothing about transport.\n// `FlowrunnerContextFiles` below is the implementation that talks to the console; a host may supply its\n// own via `runServiceMethod({ createFiles })`, which is how an e2e harness points file storage at a local\n// S3 without the runner knowing. Keep this in step with the class.\nexport interface FilesApi {\n uploadFile(file: Buffer | Uint8Array, options?: UploadFileOptions): Promise<UploadResult>\n list(options?: ListOptions): Promise<ListResult>\n get(filename: string, options?: GetOptions): Promise<FileInfo>\n delete(filename: string, options?: DeleteOptions): Promise<DeleteResult>\n usage(): Promise<UsageResult>\n}\n\nfunction cleanParams(params: Record<string, unknown>): Record<string, unknown> {\n return Object.fromEntries(\n Object.entries(params).filter(([, v]) => v !== undefined && v !== null)\n )\n}\n\n// Minimal shape of the node `form-data` instance BLRequest.FormData produces at\n// runtime \u2014 its append(name, value, options) signature differs from the DOM type.\ntype MultipartForm = {\n append: (name: string, value: unknown, options?: { filename?: string }) => void\n}\n\nfunction appendFormParams(form: MultipartForm, params: Record<string, unknown>): void {\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null) {\n form.append(key, String(value))\n }\n }\n}\n\nexport class FlowrunnerContextFiles implements FilesApi {\n appId: string\n apiKey: string\n runtimeKey: string\n serverURL: string\n flowId: string | null\n executionId: string | null\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n\n constructor({\n appId,\n apiKey,\n runtimeKey,\n serverURL,\n flowId,\n executionId,\n retrieveNewS3Token,\n }: FlowrunnerContextFilesOptions) {\n this.appId = appId\n this.apiKey = apiKey\n this.runtimeKey = runtimeKey\n this.serverURL = serverURL\n this.flowId = flowId ?? null\n this.executionId = executionId ?? null\n\n this.retrieveNewS3Token = retrieveNewS3Token\n }\n\n get base(): string {\n return `${ this.serverURL }/${ this.appId }/${ this.apiKey }/v1/files`\n }\n\n private collectionPath(scope: FileScopePath): string {\n return this.base + collectionPathByScope[scope](this.flowId, this.executionId)\n }\n\n private filePath(filename: string, scope: FileScopePath): string {\n return this.base + filePathByScope[scope](encodeURIComponent(filename), this.flowId, this.executionId)\n }\n\n private async resolveFilesS3Token(): Promise<string> {\n const { filesS3Token } = await this.retrieveNewS3Token(this.runtimeKey)\n\n return filesS3Token\n }\n\n private async request<T>(method: string, url: string, body?: unknown, params?: Record<string, unknown>): Promise<T> {\n const token = await this.resolveFilesS3Token()\n\n const httpMethod = method.toLowerCase() as 'get' | 'post' | 'put' | 'patch' | 'delete'\n\n let req = BLRequest[httpMethod](url)\n .set('Authorization', `Bearer ${ token }`)\n\n if (params) {\n req = req.query(cleanParams(params))\n }\n\n // `.form()` returns a chainable request; `.send()` returns a promise directly.\n // The request instance is itself thenable, so returning it awaits the response.\n if (BLRequest.FormData && body instanceof BLRequest.FormData) {\n return req.form(body as unknown as Record<string, unknown>) as unknown as Promise<T>\n }\n\n if (body) {\n return req.send(body) as Promise<T>\n }\n\n return req as unknown as Promise<T>\n }\n\n async uploadFile(file: Buffer | Uint8Array, options: UploadFileOptions = {}): Promise<UploadResult> {\n const { scope = FileScope.FLOW, filename, ttl, generateUrl = true, objectTtl, overwrite } = options\n const scopePath = toScopePath(scope)\n\n // BLRequest.FormData is the node `form-data` instance at runtime (see MultipartForm) \u2014\n // cast to that shape to append a Buffer + filename.\n const form = new BLRequest.FormData!() as unknown as MultipartForm\n\n form.append('file', Buffer.from(file), { filename: filename ?? 'file' })\n appendFormParams(form, { filename, ttl, generateUrl, objectTtl, overwrite })\n\n return this.request<UploadResult>('POST', this.collectionPath(scopePath), form)\n }\n\n async list(options: ListOptions = {}): Promise<ListResult> {\n const { scope = FileScope.FLOW, ttl, generateUrl, limit, cursor } = options\n const scopePath = toScopePath(scope)\n\n return this.request<ListResult>('GET', this.collectionPath(scopePath), undefined, cleanParams({\n ttl,\n generateUrl,\n limit,\n cursor,\n }))\n }\n\n async get(filename: string, options: GetOptions = {}): Promise<FileInfo> {\n const { scope = FileScope.FLOW, ttl, generateUrl } = options\n const scopePath = toScopePath(scope)\n\n return this.request<FileInfo>('GET', this.filePath(filename, scopePath), undefined, cleanParams({\n ttl,\n generateUrl,\n }))\n }\n\n async delete(filename: string, options: DeleteOptions = {}): Promise<DeleteResult> {\n const { scope = FileScope.FLOW } = options\n\n return this.request<DeleteResult>('DELETE', this.filePath(filename, toScopePath(scope)))\n }\n\n async usage(): Promise<UsageResult> {\n return this.request<UsageResult>('GET', `${ this.collectionPath('workspace') }/usage`)\n }\n}\n", "import type { Logger } from '../types'\n\n// Default runtime logger handed to service handlers as `logger`. Service code uses `logger.debug/info`\n// for redacted tracing; only warn/error surface to the console by default (matching the no-bare-console\n// policy). A host can supply its own Logger to route these elsewhere.\n \nexport const defaultLogger: Logger = {\n debug: () => {},\n info: () => {},\n warn: (...args: unknown[]) => console.warn(...args),\n error: (...args: unknown[]) => console.error(...args),\n}\n \n", "import { FeatureNotEnabledError } from '../../errors'\n\n// Throwing proxies for opt-in features (oauth / files). When a feature isn't enabled, its slot in the\n// handler bag is a proxy that throws on ANY access \u2014 so accidental use fails loudly at the call site\n// instead of silently no-op'ing or reading `undefined`. See 10-files-api.md and 06-oauth2.md.\n\nexport function createThrowingProxy(feature: string, hint: string): Record<string, never> {\n const fail = (): never => {\n throw new FeatureNotEnabledError(feature, hint)\n }\n\n return new Proxy(\n {},\n {\n get(_target, prop) {\n // Let promise-unwrapping / stringification probe the proxy without throwing.\n if (prop === 'then' || prop === Symbol.toPrimitive || prop === Symbol.toStringTag) {\n return undefined\n }\n\n return fail()\n },\n apply: fail,\n has: fail,\n }\n ) as Record<string, never>\n}\n", "import type { ServiceConfigsValues } from '../../common/constants'\nimport { type FilesApi,FileScope, type FileScopes } from '../../common/context-files'\nimport type { Extension } from '../extension'\nimport type { OAuthBag } from '../oauth/types'\nimport type { HandlerBag, Logger } from '../types'\nimport { defaultLogger } from './logger'\nimport { createThrowingProxy } from './proxies'\n\n// One invocation's resolved surroundings, and the `bag` handlers see (07-actions.md): the resolved `config`,\n// the `initContext` return as `context`, `oauth`, the bound `apiRequest`, `files`, `filesScope`, `logger`,\n// and `helpers`.\n//\n// Everything is derived LAZILY and memoized per instance. That matters because the OAuth callback needs a\n// second context bound to the freshly-obtained token (`withAccessToken`), and used to rebuild the whole bag\n// from scratch each time it asked \u2014 resolving config, running `initContext` and re-running the `helpers`\n// factory up to three times per callback. Now each context resolves each of those once, and a differently\n// tokened context is an explicit second instance rather than an implicit rebuild.\n//\n// `toBag()` returns a PLAIN OBJECT. Author code never receives a class instance \u2014 that is the frozen\n// handler contract.\n\nexport interface ExecutionContextOptions {\n configs?: ServiceConfigsValues\n accessToken?: string\n logger?: Logger\n // Provisioned by the caller only when the extension declares `usesFileStorage`; otherwise the bag's\n // `files` slot is a proxy that throws on any access.\n files?: unknown\n}\n\nexport class ExecutionContext {\n readonly #extension: Extension\n readonly #options: ExecutionContextOptions\n\n #config?: Record<string, unknown>\n #context?: unknown\n #oauth?: OAuthBag\n #apiRequest?: HandlerBag['apiRequest']\n #bag?: HandlerBag\n\n constructor(extension: Extension, options: ExecutionContextOptions = {}) {\n this.#extension = extension\n this.#options = options\n }\n\n get logger(): Logger {\n return this.#options.logger ?? defaultLogger\n }\n\n get config(): Record<string, unknown> {\n this.#config ??= this.#extension.config.resolve(this.#options.configs)\n\n return this.#config\n }\n\n // The header access token plus its deserialized composite payload \u2014 or a throwing proxy when the\n // extension never declared oauth, so accidental use fails loudly at the call site.\n get oauth(): OAuthBag {\n this.#oauth ??= this.#extension.oauth\n ? this.#extension.oauth.buildBag(this.#options.accessToken)\n : (createThrowingProxy('oauth', 'declare ext.setupOauth2(...) first') as OAuthBag)\n\n return this.#oauth\n }\n\n // The scope names, so a handler writes `filesScope.WORKSPACE` instead of the bare string. Deliberately NOT\n // gated on `usesFileStorage`: it is a set of constants, not a capability, and it is useful for building a\n // scope value to pass around even where no file call happens. Reaching for `files` without the opt-in still\n // fails loudly on its own.\n get filesScope(): FileScopes {\n return FileScope\n }\n\n // The proxy stands in for the real client and throws on ANY access, so handlers see one type either way.\n get files(): FilesApi {\n return (this.#props.usesFileStorage && this.#options.files\n ? this.#options.files\n : createThrowingProxy('files', 'set usesFileStorage:true in createExtension first')) as FilesApi\n }\n\n get context(): unknown {\n this.#context ??= this.#props.initContext\n ? this.#props.initContext({ config: this.config, oauth: this.oauth })\n : {}\n\n return this.#context\n }\n\n // The author's own `apiRequest`, with `context` + `logger` injected so handlers don't pass them. Both are\n // read at CALL time, off this context.\n get apiRequest(): HandlerBag['apiRequest'] {\n if (!this.#props.apiRequest) {\n return undefined as unknown as HandlerBag['apiRequest']\n }\n\n this.#apiRequest ??= ((arg: Record<string, unknown>) =>\n (this.#props.apiRequest as (a: unknown) => unknown)({\n ...arg,\n context: this.context,\n logger: this.logger,\n })) as HandlerBag['apiRequest']\n\n return this.#apiRequest\n }\n\n // The bag every handler receives. Memoized: one bag per context, so the `helpers` factory runs once.\n toBag(): HandlerBag {\n if (this.#bag) {\n return this.#bag\n }\n\n const bag = {\n config: this.config,\n context: this.context,\n oauth: this.oauth,\n apiRequest: this.apiRequest,\n files: this.files,\n filesScope: this.filesScope,\n logger: this.logger,\n } as HandlerBag\n\n // Published before `helpers` is attached: the factory receives the bag it is about to complete, and\n // anything it captures sees the finished object.\n this.#bag = bag\n bag.helpers = this.#props.helpers ? this.#props.helpers(bag) : undefined\n\n return bag\n }\n\n // A handler's bag plus whatever its kind adds \u2014 `params`, `criteria`, `providerEventData`, \u2026 Always a\n // fresh object, so a handler cannot mutate the shared bag.\n bagWith<T extends object>(extra: T): HandlerBag & T {\n return { ...this.toBag(), ...extra }\n }\n\n // A sibling context bound to a different access token \u2014 the OAuth callback runs its identity lookup\n // against the token it just obtained. Everything else (config source, files client, logger) is shared.\n withAccessToken(accessToken?: string): ExecutionContext {\n return new ExecutionContext(this.#extension, { ...this.#options, accessToken })\n }\n\n get #props() {\n return this.#extension.props\n }\n}\n", "import { z } from '../params'\n\n// The console's helper-method route invokes a dictionary with `methodData = { payload }`, where the payload\n// is `{ search, cursor, criteria }`: `search` and `cursor` are universal (the runtime always provides them),\n// `criteria` carries the current values of the params this dictionary depends on. LOOSE, like every wrapper\n// the runtime owns \u2014 unmodelled fields ride through rather than being silently dropped.\nexport const DictionaryPayloadSchema = z.looseObject({\n search: z.string().optional(),\n cursor: z.union([z.string(), z.number()]).nullish(),\n criteria: z.record(z.string(), z.unknown()).optional(),\n})\n\nexport interface DictionaryPayload {\n search?: string\n cursor?: unknown\n criteria: Record<string, unknown>\n}\n", "import { InvalidDictionaryOutputScheme } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod, SharedExtensionParam } from '../model/model-types'\nimport { toProperties } from '../model/params-model'\nimport { MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport type { DictionaryProps, DictionaryResult } from '../types'\nimport { type DictionaryPayload, DictionaryPayloadSchema } from './payload-schema'\n\n// A dictionary \u2014 the dynamic option source behind a param (05-dictionaries.md). Invoked through the\n// console's helper-method route while a user fills a form, and answers `{ items, cursor }`.\n\nexport class DictionaryMethod extends ExtensionMethod {\n readonly criteria: MethodParams\n readonly result: ResultSpec\n\n constructor(extension: Extension, private readonly props: DictionaryProps) {\n super(extension)\n\n this.criteria = MethodParams.of(props.criteria, {\n serviceId: extension.id,\n kind: 'dictionary',\n itemId: props.id,\n slot: 'criteria',\n })\n this.result = ResultSpec.from(props.result)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'DICTIONARY'\n }\n\n // Optional on a dictionary (unlike an action), so `''` when undeclared. Also satisfies `LoaderOwner`, so a\n // generated loader inherits it the same way an action's does.\n get category(): string {\n return this.props.category ?? ''\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // The params a dictionary-bound field depends on \u2014 derived from the criteria, never hand-written.\n get dependsOn(): string[] {\n return this.criteria.keys()\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Two-stage: the `{ search, cursor, criteria }` envelope the runtime owns, then the author-declared\n // criteria through the shared pipeline \u2014 reported as a criteria failure so the console can point at the\n // dependent fields rather than the whole call.\n validate(methodData: Record<string, unknown>): DictionaryPayload {\n const input = this.input(methodData)\n const payload = input.parseField<DictionaryPayload>('payload', DictionaryPayloadSchema)\n const criteria = this.criteria.normalize<Record<string, unknown>>(payload.criteria, input.invalidCriteria())\n\n return {\n search: payload.search,\n cursor: payload.cursor,\n criteria,\n }\n }\n\n // Authors may answer with the bare item list; the runtime contract is `{ cursor, items }`.\n async execute(payload: DictionaryPayload, ctx: ExecutionContext): Promise<DictionaryResult> {\n const result = await this.props.execute(ctx.bagWith(payload))\n\n if (Array.isArray(result)) {\n return { cursor: null, items: result }\n }\n\n if (result && typeof result === 'object' && Array.isArray(result.items)) {\n return { cursor: result.cursor, items: result.items }\n }\n\n throw new InvalidDictionaryOutputScheme(this.extension.id, this.name)\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n // Dictionaries are surfaced to the UI and to AI tools, so they need a human label. Fall back to the id.\n operationName: this.props.label ?? this.id,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart,\n colorEnd,\n customIcon: '',\n // A dictionary returns a `{ items, cursor }` OBJECT; default to OBJECT when no explicit sample is given.\n returnType: this.result.isDeclared ? this.result.returnType : 'OBJECT',\n queryParams: [],\n bodyParams: [this.#payloadParam()],\n // The `payload` wrapper's display label lives here (the bodyParam itself stays label-free, matching v1).\n metaInfo: {\n args: { payload: { label: 'Payload' } },\n ...this.result.toMetaInfo(this.id, this.criteria),\n },\n }\n }\n\n // Describe the full payload shape so the method advertises a complete, labelled input scheme (nested\n // props inline their own labels \u2014 mirroring the v1 jsdoc-parser layout).\n #payloadParam(): SharedExtensionParam {\n const properties: SharedExtensionParam[] = [\n { name: 'search', required: false, description: 'Optional search string to filter results.', type: 'STRING', label: 'Search' },\n { name: 'cursor', required: false, description: 'Pagination offset for retrieving the next page of results.', type: 'STRING', label: 'Cursor' },\n ]\n\n const criteriaProps = toProperties(this.criteria)\n\n if (criteriaProps.length) {\n properties.push({\n name: 'criteria',\n required: false,\n description: 'Current values of the params this dictionary depends on.',\n type: 'OBJECT',\n properties: criteriaProps,\n })\n }\n\n return {\n name: 'payload',\n required: false,\n description: 'Contains optional search string and pagination cursor.',\n type: 'OBJECT',\n properties,\n }\n }\n}\n", "import { z } from '../params'\n\n// The console's helper-method route invokes a loader with `methodData = { payload }`, and a loader's\n// payload is `{ criteria }` \u2014 the current values of the params it depends on. LOOSE, like every wrapper the\n// runtime owns: the console may send fields a given milestone doesn't model yet, and dropping them silently\n// would be worse than carrying them through.\nexport const LoaderPayloadSchema = z.looseObject({\n criteria: z.record(z.string(), z.unknown()).optional(),\n})\n", "import { InvalidSchemaError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { ExtensionMethod } from '../method'\nimport { argsFromParams, opaqueParam } from '../model/method-model'\nimport type { SharedExtensionMethod, SharedExtensionParam } from '../model/model-types'\nimport { toProperties } from '../model/params-model'\nimport { type AnyZod, encodeParams, inspect, MethodParams, type ParamsSchemaJSON, shapeEntries, z } from '../params'\nimport type { DynamicPropsDef, LoadedParamsSchema } from '../types'\nimport {\n dynamicParamsLoaderName,\n dynamicPropsLoaderName,\n type LoaderOwner,\n type ParamsLoaderOwner,\n sampleResultLoaderName,\n} from './loader-owner'\nimport { LoaderPayloadSchema } from './payload-schema'\n\n// The methods the RUNTIME generates from what an author declared \u2014 never written by hand:\n//\n// result: fn \u2192 a SAMPLE_RESULT_LOADER the console calls to preview the output shape\n// dynamicParams \u2192 a PARAM_SCHEMA_DEFINITION that loads extra top-level params\n// field.dynamicProps(def) \u2192 a PARAM_SCHEMA_DEFINITION that loads the fields inside that one param\n//\n// All are invoked with `{ payload: { criteria } }` \u2014 the values of the params they depend on. They obey the\n// same policy as every other declared slot, so a sample-result loader (whose criteria ARE its owner's params)\n// only resolves once the owner's required params are filled.\n\nabstract class LoaderMethod extends ExtensionMethod {\n constructor(extension: Extension, protected readonly owner: LoaderOwner) {\n super(extension)\n }\n\n // The params this loader's criteria are checked against.\n protected abstract get criteria(): MethodParams\n\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n const input = this.input(methodData)\n const payload = input.parseField<{ criteria?: Record<string, unknown> }>('payload', LoaderPayloadSchema)\n\n return this.criteria.normalize(payload.criteria, input.invalidCriteria(), { carryUnknown: this.carryUnknown })\n }\n\n // Whether the criteria's undeclared keys ride through to the handler.\n protected get carryUnknown(): boolean {\n return true\n }\n\n // Internal (SYSTEM-like): no icon, no colours, no sample. Its params are left opaque in the model \u2014 it is\n // invoked with `{ criteria }` at runtime, not through a rendered form.\n toModel(): SharedExtensionMethod {\n const bodyParams: SharedExtensionParam[] = [opaqueParam('payload')]\n\n return {\n name: this.name,\n operationName: this.name,\n description: '',\n registerAs: this.registerAs,\n category: this.owner.category,\n colorStart: '',\n colorEnd: '',\n customIcon: undefined,\n returnType: this.returnType,\n queryParams: [],\n bodyParams,\n metaInfo: { args: argsFromParams(bodyParams), sampleResult: null, sampleResultLoader: null },\n }\n }\n\n protected abstract get returnType(): string\n}\n\n// Derives the sample output from the params filled in so far \u2014 for shapes that aren't known statically\n// (user-defined fields, a record whose columns depend on which table was picked).\nexport class SampleResultLoaderMethod extends LoaderMethod {\n get name(): string {\n return sampleResultLoaderName(this.owner.id)\n }\n\n get registerAs(): string {\n return 'SAMPLE_RESULT_LOADER'\n }\n\n protected get returnType(): string {\n return 'OBJECT'\n }\n\n // The sample varies with ANY param of the owner, so all of them are its criteria. Undeclared keys ride\n // through too: the node's other params come along, and the owner's `result` fn may read fields its\n // `dynamicParams` loaded.\n protected get criteria(): MethodParams {\n return this.owner.params\n }\n\n execute(criteria: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.owner.result.runLoader(ctx.bagWith({ params: criteria }))\n }\n}\n\n/**\n * What a params loader responds with: the loaded fields as encoded zod \u2014 for the console forms, which build\n * their widgets and validation from it \u2014 and the same fields as a param list with display metadata inline,\n * for the Flow Builder, which draws every v2 action from the list. Both come from one schema, so they cannot\n * disagree. A static action publishes the same pair (`paramsSchema`, and `bodyParams` + `args`).\n */\nexport interface LoadedParams {\n paramsSchema: ParamsSchemaJSON | null\n params: SharedExtensionParam[]\n}\n\n// A zod schema, rather than a plain shape of them.\nconst isZod = (value: unknown): boolean => !!(value as AnyZod | undefined)?._zod\n\n/**\n * A params loader: runs a `DynamicPropsDef` and responds with the fields it returned.\n *\n * Its criteria are exactly the owner's params named in `dependsOn`, checked by their own schemas \u2014 so a value\n * arrives coerced, as it would in the action's handler, and a loader cannot read a param it did not name (the\n * console would not reload it when that param changes).\n */\nabstract class ParamsLoaderMethod extends LoaderMethod {\n #criteria?: MethodParams\n\n constructor(extension: Extension, protected readonly owner: ParamsLoaderOwner, protected readonly def: DynamicPropsDef) {\n super(extension, owner)\n }\n\n get registerAs(): string {\n return 'PARAM_SCHEMA_DEFINITION'\n }\n\n protected get returnType(): string {\n return 'OBJECT'\n }\n\n protected get carryUnknown(): boolean {\n return false\n }\n\n // Built unguarded: the picked fields were already checked on the owner, and a picked sibling may itself\n // carry `.dynamicProps()`, which the guard only allows in an action's own `params`.\n protected get criteria(): MethodParams {\n const dependsOn = this.def.dependsOn ?? []\n\n this.#criteria ??= MethodParams.of(\n z.object(Object.fromEntries(this.owner.params.fields().filter(([name]) => dependsOn.includes(name)))),\n { serviceId: this.extension.id, kind: 'loader criteria', itemId: this.name }\n )\n\n return this.#criteria\n }\n\n // Where the returned schema is reported, in the author's words: `dynamicParams.execute()`.\n protected abstract get slot(): string\n\n // Fields the returned ones may not repeat, and that are published ahead of them.\n protected abstract get staticFields(): [string, AnyZod][]\n\n async execute(criteria: Record<string, unknown>, ctx: ExecutionContext): Promise<LoadedParams> {\n const loaded = await this.def.execute(ctx.bagWith({ criteria }))\n const params = this.toParams(loaded)\n\n return { paramsSchema: encodeParams(params.scheme), params: toProperties(params) }\n }\n\n // A plain shape is wrapped in `z.object()`; anything else that is not a `z.object` is refused by the same\n // guards a declared params slot goes through.\n protected toParams(loaded: LoadedParamsSchema): MethodParams {\n const source = { serviceId: this.extension.id, kind: 'action', itemId: this.owner.id, slot: this.slot }\n const schema = loaded && typeof loaded === 'object' && !isZod(loaded) ? z.object(loaded as Record<string, never>) : loaded\n const returned = MethodParams.of(schema, source)\n const staticFields = this.staticFields\n\n if (!staticFields.length) {\n return returned\n }\n\n const staticNames = new Set(staticFields.map(([name]) => name))\n const repeated = returned.keys().filter(name => staticNames.has(name))\n\n if (repeated.length) {\n throw new InvalidSchemaError(\n `[flow-extension:${ this.extension.id }] action \"${ this.owner.id }\": \\`${ this.slot }\\` returned ` +\n `${ repeated.map(name => `\"${ name }\"`).join(', ') }, which ${ repeated.length > 1 ? 'are' : 'is' } already ` +\n 'declared statically. A loaded field may not replace a declared one \u2014 rename it.',\n { ...source, received: repeated }\n )\n }\n\n return MethodParams.of(z.object(Object.fromEntries([...staticFields, ...returned.fields()])), source)\n }\n}\n\n// Loads additional top-level params of an action. They are spread into the action's input next to the static\n// params, so a loaded field may not repeat a static one.\nexport class DynamicParamsLoaderMethod extends ParamsLoaderMethod {\n constructor(extension: Extension, owner: ParamsLoaderOwner) {\n super(extension, owner, owner.dynamicParams!)\n }\n\n get name(): string {\n return dynamicParamsLoaderName(this.owner.id)\n }\n\n protected get slot(): string {\n return 'dynamicParams.execute()'\n }\n\n protected get staticFields(): [string, AnyZod][] {\n return []\n }\n\n protected toParams(loaded: LoadedParamsSchema): MethodParams {\n const params = super.toParams(loaded)\n const declared = new Set(this.owner.params.keys())\n const shadowing = params.keys().filter(name => declared.has(name))\n\n if (shadowing.length) {\n throw new InvalidSchemaError(\n `[flow-extension:${ this.extension.id }] action \"${ this.owner.id }\": \\`${ this.slot }\\` returned ` +\n `${ shadowing.map(name => `\"${ name }\"`).join(', ') }, which the action already declares in \\`params\\`. ` +\n 'A loaded param may not shadow a declared one \u2014 rename it.',\n { serviceId: this.extension.id, kind: 'action', itemId: this.owner.id, slot: this.slot, received: shadowing }\n )\n }\n\n return params\n }\n}\n\n/**\n * Loads the fields inside one top-level param declared with `.dynamicProps()` \u2014 a `z.looseObject()`, or a\n * list of them.\n *\n * The field's own declared keys are published FIRST and the loaded ones after: the Flow Builder replaces the\n * field's inner list with this response, so leaving them out would hide fields the author declared.\n */\nexport class DynamicPropsLoaderMethod extends ParamsLoaderMethod {\n constructor(extension: Extension, owner: ParamsLoaderOwner, private readonly field: string, def: DynamicPropsDef) {\n super(extension, owner, def)\n }\n\n get name(): string {\n return dynamicPropsLoaderName(this.owner.id, this.field)\n }\n\n protected get slot(): string {\n return `params.${ this.field }.dynamicProps().execute()`\n }\n\n protected get staticFields(): [string, AnyZod][] {\n const schema = this.owner.params.fields().find(([name]) => name === this.field)?.[1]\n const ins = inspect(schema as AnyZod)\n const object = ins.resolvedType === 'array' ? ins.core?._zod?.def?.element as AnyZod | undefined : schema\n\n return shapeEntries(inspect(object as AnyZod).core)\n }\n}\n", "import crypto from 'crypto'\n\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport type { SystemMethodSpec } from '../system-method'\nimport { OAUTH_SYSTEM_METHODS } from './method-names'\nimport { OAuthCallbackObjectSchema, RefreshTokenSchema } from './system-params'\nimport type {\n OAuth2Props,\n OAuthBag,\n OAuthCallbackObject,\n OAuthCallbackResult,\n OAuthRefreshResult,\n} from './types'\n\n// `ext.setupOauth2(...)` \u2014 the OAuth2 subsystem (06-oauth2.md). Declarative for the common case, with an\n// escape hatch per step for providers that deviate. It owns the three v1 SYSTEM methods, the frozen runtime\n// seam the platform drives:\n//\n// getOAuth2ConnectionURL (GET) \u2192 where to send the user\n// executeCallback (POST) \u2192 trade the code for a token, and name the connection\n// refreshToken (PUT) \u2192 trade a refresh token for the next access token\n\nexport class OAuth2 {\n constructor(private readonly extension: Extension, private readonly props: OAuth2Props) {\n this.#registerSystemMethods()\n }\n\n // The handler bag's `oauth`: the header access token, plus its deserialized composite payload when the\n // author declared a deserializer (the pattern for providers whose \"token\" carries a realm or instance id).\n buildBag(accessToken?: string): OAuthBag {\n const token = this.props.deserializeToken && accessToken != null\n ? this.props.deserializeToken(accessToken)\n : undefined\n\n return { accessToken, token }\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 return \u00B7 handler, in one table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n const { CONNECTION_URL, EXECUTE_CALLBACK, REFRESH_TOKEN } = OAUTH_SYSTEM_METHODS\n\n // Connect and callback run where no access token exists yet \u2014 connect precedes one entirely, and the\n // callback is what PRODUCES the first one \u2014 so both see a TOKENLESS context. The callback's identity\n // lookup is the one exception there: it uses the token it just obtained (#handleCallback).\n //\n // Refresh is different: the platform sends the connection's CURRENT (expired) token in the\n // `oauth-access-token` header, and refresh keeps it. A composite token carries data the provider returns\n // only at connect time (a QuickBooks realm, a DocuSign account id + base URI, a Xero tenant) that a\n // refresh response does not repeat, so the hook rebuilds the next composite from `oauth` / `context` \u2014\n // exactly as a v1 service read the header in its own refreshToken.\n const anonymous = (ctx: ExecutionContext): ExecutionContext => ctx.withAccessToken(undefined)\n\n this.extension.registerSystemMethods([\n {\n name: CONNECTION_URL,\n // Takes no input at all \u2014 no scheme.\n returnType: 'STRING',\n run: (_params, ctx) => this.#connectionUrl(anonymous(ctx), this.#composeScopes()),\n },\n {\n name: EXECUTE_CALLBACK,\n scheme: z.object({ callbackObject: OAuthCallbackObjectSchema }),\n run: ({ callbackObject }, ctx) => this.#handleCallback(callbackObject as OAuthCallbackObject, anonymous(ctx)),\n },\n {\n name: REFRESH_TOKEN,\n scheme: z.object({ refreshToken: RefreshTokenSchema }),\n run: ({ refreshToken }, ctx) => this.#refresh(refreshToken as string, ctx),\n },\n ] satisfies SystemMethodSpec[])\n }\n\n /**\n * The scopes to ask the user for: the base set \u222A every registered item's `oauth2Scopes`.\n *\n * Composed ON DEMAND, when the connect step actually runs, and never stored. `setupOauth2(...)` may be\n * called BEFORE the actions and triggers that carry scopes are registered \u2014 a service file is free to\n * order those however it likes \u2014 so a set computed at setup time would silently omit whatever registered\n * afterwards, and the user would be sent to a consent screen missing permissions the service needs.\n */\n #composeScopes(): string[] {\n return [...new Set([...(this.props.scopes ?? []), ...this.extension.declaredOAuthScopes()])]\n }\n\n // \u2500\u2500 the three steps \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #connectionUrl(ctx: ExecutionContext, scopes: string[]): Promise<string> {\n if (this.props.getConnectionURL) {\n return this.props.getConnectionURL(ctx.bagWith({ scopes }))\n }\n\n const { id } = this.#clientCreds(ctx.config)\n const params = new URLSearchParams({ client_id: id, response_type: 'code', scope: scopes.join(' ') })\n\n if (this.props.pkce) {\n // The verifier round-trips through `state`, which the console hands back on the callback.\n const verifier = crypto.randomBytes(32).toString('base64url')\n\n params.set('code_challenge', crypto.createHash('sha256').update(verifier).digest('base64url'))\n params.set('code_challenge_method', 'S256')\n params.set('state', verifier)\n }\n\n return `${ this.props.authorizeUrl }?${ params.toString() }`\n }\n\n async #handleCallback(callbackObject: OAuthCallbackObject, ctx: ExecutionContext): Promise<OAuthCallbackResult> {\n if (this.props.executeCallback) {\n return this.props.executeCallback(ctx.bagWith({ callbackObject }))\n }\n\n const tokenResponse = await this.#exchangeToken(ctx.config, {\n grant_type: 'authorization_code',\n code: callbackObject.code ?? '',\n redirect_uri: callbackObject.redirectURI ?? '',\n ...(callbackObject.state ? { code_verifier: callbackObject.state } : {}),\n })\n\n const accessToken = tokenResponse.access_token as string\n const refreshToken = tokenResponse.refresh_token as string | undefined\n\n // Identity lookup runs against the freshly-obtained token \u2014 the one exception to the tokenless rule.\n let identity: { name?: string; imageUrl?: string | null; userData?: unknown } = {}\n\n if (this.props.identityRequest) {\n const raw = await this.props.identityRequest(ctx.withAccessToken(accessToken).toBag())\n\n identity = this.props.identity ? this.props.identity(raw) : {}\n }\n\n return {\n token: this.#serialize(accessToken, refreshToken, identity.userData),\n expirationInSeconds: tokenResponse.expires_in as number | undefined,\n refreshToken,\n connectionIdentityName: identity.name || 'Unknown Account',\n connectionIdentityImageURL: identity.imageUrl ?? null,\n overwrite: true,\n userData: identity.userData,\n }\n }\n\n async #refresh(currentRefreshToken: string, ctx: ExecutionContext): Promise<OAuthRefreshResult> {\n if (this.props.refreshToken) {\n return this.props.refreshToken(ctx.bagWith({ refreshToken: currentRefreshToken }))\n }\n\n const tokenResponse = await this.#exchangeToken(ctx.config, {\n grant_type: 'refresh_token',\n refresh_token: currentRefreshToken,\n })\n\n // Providers that rotate refresh tokens send a new one; those that don't leave the current one valid.\n const nextRefresh = (tokenResponse.refresh_token as string | undefined) ?? currentRefreshToken\n\n return {\n token: this.#serialize(tokenResponse.access_token as string, nextRefresh),\n expirationInSeconds: tokenResponse.expires_in as number | undefined,\n refreshToken: nextRefresh,\n }\n }\n\n // \u2500\u2500 token exchange \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #serialize(accessToken: string, refreshToken?: string, userData?: unknown): string {\n return this.props.serializeToken\n ? this.props.serializeToken({ accessToken, refreshToken, userData })\n : accessToken\n }\n\n #clientCreds(config: Record<string, unknown>): { id: string; secret: string } {\n return {\n id: String(config[this.props.clientIdConfig ?? 'clientId'] ?? ''),\n secret: String(config[this.props.clientSecretConfig ?? 'clientSecret'] ?? ''),\n }\n }\n\n // x-www-form-urlencoded token exchange against `tokenUrl`; client creds go in the Basic header\n // (`clientAuth: 'basic'`) or the body (default).\n async #exchangeToken(config: Record<string, unknown>, body: Record<string, string>): Promise<Record<string, unknown>> {\n const { id, secret } = this.#clientCreds(config)\n const params = new URLSearchParams(body)\n const headers: Record<string, string> = { 'Content-Type': 'application/x-www-form-urlencoded' }\n\n if (this.props.clientAuth === 'basic') {\n headers.Authorization = `Basic ${ Buffer.from(`${ id }:${ secret }`).toString('base64') }`\n } else {\n params.set('client_id', id)\n params.set('client_secret', secret)\n }\n\n return Flowrunner.Request\n .post(this.props.tokenUrl as string)\n .set(headers)\n .send(params.toString()) as Promise<Record<string, unknown>>\n }\n}\n", "// The three runtime-owned OAuth SYSTEM methods \u2014 the frozen v1 seam. Do not rename: these are published\n// method names the platform invokes by string.\nexport const OAUTH_SYSTEM_METHODS = {\n CONNECTION_URL: 'getOAuth2ConnectionURL',\n EXECUTE_CALLBACK: 'executeCallback',\n REFRESH_TOKEN: 'refreshToken',\n} as const\n", "import { z } from '../params'\n\n// The input each OAuth SYSTEM method carries. Runtime-owned, not author-declared. LOOSE where the producer\n// is the console's OAuth controller: it may send fields a given milestone doesn't model yet, and dropping\n// them silently would be worse than carrying them through.\n\nexport const OAuthCallbackObjectSchema = z.looseObject({\n code: z.string().optional(),\n redirectURI: z.string().optional(),\n // The PKCE verifier round-trips through `state`.\n state: z.string().optional(),\n})\n\nexport const RefreshTokenSchema = z.string().min(1)\n", "// The single runtime-owned SYSTEM method shared by every polling trigger of a service; the runtime invokes\n// it on each tick and it routes by `invocation.eventName`. Frozen \u2014 a published method name.\nexport const POLLING_SYSTEM_METHOD = 'handleTriggerPollingForEvent'\n", "import { z } from '../params'\n\n// The invocation the runtime hands to the polling SYSTEM method on each tick. Runtime-owned, not\n// author-declared. LOOSE: the flow engine may send fields a given milestone doesn't model yet.\nexport const PollingInvocationSchema = z.looseObject({\n eventName: z.string().min(1),\n // The trigger instance's configured params \u2014 validated against the trigger's own schema separately.\n triggerData: z.record(z.string(), z.unknown()).optional(),\n state: z.record(z.string(), z.unknown()).nullish(),\n learningMode: z.boolean().optional(),\n connectionId: z.string().nullish(),\n})\n", "import { UnknownTriggerError } from '../../errors'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport type { SystemMethodSpec } from '../system-method'\nimport { POLLING_SYSTEM_METHOD } from './method-names'\nimport { PollingInvocationSchema } from './system-params'\nimport type { PollingTriggerMethod } from './trigger-method'\nimport type { PollingInvocation } from './types'\n\n// The polling triggers a service declares, as a set.\n//\n// The SYSTEM seam that drives them belongs HERE rather than to any one trigger: the runtime ticks a single\n// `handleTriggerPollingForEvent` and this routes it by `eventName`. Registering it on the first trigger\n// added is what makes it exist exactly when at least one trigger does \u2014 the model no longer needs a\n// separate \"are there any?\" check, because the method is simply there or not.\n\nexport class PollingTriggers {\n readonly #triggers = new Map<string, PollingTriggerMethod>()\n\n constructor(private readonly extension: Extension) {}\n\n get size(): number {\n return this.#triggers.size\n }\n\n get(id: string): PollingTriggerMethod | undefined {\n return this.#triggers.get(id)\n }\n\n all(): PollingTriggerMethod[] {\n return [...this.#triggers.values()]\n }\n\n add(trigger: PollingTriggerMethod): void {\n const first = this.size === 0\n\n this.#triggers.set(trigger.id, trigger)\n\n if (first) {\n this.#registerSystemMethods()\n }\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 handler, in one place \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n this.extension.registerSystemMethods([{\n name: POLLING_SYSTEM_METHOD,\n scheme: z.object({ invocation: PollingInvocationSchema }),\n run: ({ invocation }, ctx) => {\n const value = invocation as PollingInvocation\n const trigger = this.get(value.eventName)\n\n if (!trigger) {\n throw new UnknownTriggerError(this.extension.id, value.eventName, 'polling')\n }\n\n return trigger.poll(value, ctx)\n },\n } satisfies SystemMethodSpec])\n }\n}\n", "// Read a dot-notation path (`a.b.c`) from a nested object; returns undefined if any segment is missing.\n// Shared by dictionaries/triggers for field-path config (dedupe/watermark `by`, match paths, extract*).\nexport function getPath(source: unknown, path: string): unknown {\n return path.split('.').reduce<unknown>(\n (acc, key) => (acc == null ? acc : (acc as Record<string, unknown>)[key]),\n source\n )\n}\n", "import { InvalidTriggerConfigError } from '../../errors'\nimport { getPath } from '../path'\nimport type { HandlerBag } from '../types'\nimport type {\n DedupeConfig,\n PollingInvocation,\n PollingPollBag,\n PollingResult,\n PollingTriggerProps,\n WatermarkConfig,\n} from './types'\n\n// How a polling trigger decides what is NEW (08-polling-triggers.md). Three strategies, of which an author\n// declares exactly one:\n//\n// dedupe \u2014 remember the ids already seen, emit the rest (unordered feeds, no reliable timestamp)\n// watermark \u2014 remember the newest marker, emit anything past it (ordered feeds with a cursor field)\n// poll \u2014 the author owns the whole { events, state } contract (escape hatch)\n//\n// The first two share a lifecycle the base class owns, so a strategy only implements its own delta:\n// \u2022 first poll (no state) \u2192 SEED the state, emit nothing (wiring up must not fire a run)\n// \u2022 learningMode \u2192 emit the fetched head, state null (a sample for setup; nothing persisted)\n// \u2022 thereafter \u2192 emit the delta, advance the state\n//\n// The runtime drives the interval and the persistence; this file only computes `{ events, state }`.\n\n// What one invocation gives a strategy to work with.\ninterface PollCycle {\n bag: HandlerBag\n params: Record<string, unknown>\n isLearningMode: boolean\n state: Record<string, unknown> | null\n}\n\ntype FetchFn = (bag: HandlerBag & { params: Record<string, unknown>; isLearningMode: boolean }) =>\n unknown[] | Promise<unknown[]>\n\nexport abstract class PollingMechanism {\n /**\n * Pick the strategy an author declared, rejecting the combinations that cannot work. Runs at REGISTRATION\n * time, so a misconfigured trigger fails while the service module is being required rather than on some\n * later tick in production.\n */\n static from(props: PollingTriggerProps, serviceId: string): PollingMechanism {\n const declared = (['dedupe', 'watermark', 'poll'] as const)\n .filter(key => props[key] != null)\n\n if (declared.length !== 1) {\n throw new InvalidTriggerConfigError(\n serviceId,\n `polling trigger \"${ props.id }\" must declare exactly one of dedupe|watermark|poll (got: ${ declared.join(', ') || 'none' })`,\n { triggerId: props.id }\n )\n }\n\n if (props.poll) {\n return new CustomPollMechanism(props.poll)\n }\n\n // dedupe and watermark both filter a fetched list \u2014 without `fetch` there is nothing to filter.\n if (typeof props.fetch !== 'function') {\n throw new InvalidTriggerConfigError(\n serviceId,\n `polling trigger \"${ props.id }\" with dedupe/watermark requires a fetch(...) function`,\n { triggerId: props.id }\n )\n }\n\n return props.dedupe\n ? new DedupeMechanism(props.fetch as FetchFn, props.dedupe)\n : new WatermarkMechanism(props.fetch as FetchFn, props.watermark!)\n }\n\n run(invocation: PollingInvocation, bag: HandlerBag): Promise<PollingResult> {\n return this.poll({\n bag,\n params: invocation.triggerData ?? {},\n isLearningMode: !!invocation.learningMode,\n state: invocation.state ?? null,\n })\n }\n\n protected abstract poll(cycle: PollCycle): Promise<PollingResult>\n}\n\n// The escape hatch: the author owns fetching, comparison and state.\nclass CustomPollMechanism extends PollingMechanism {\n constructor(private readonly fn: NonNullable<PollingTriggerProps['poll']>) {\n super()\n }\n\n protected async poll({ bag, params, state, isLearningMode }: PollCycle): Promise<PollingResult> {\n return this.fn({ ...bag, params, state, isLearningMode } as PollingPollBag)\n }\n}\n\n// The shared lifecycle of the two strategies that filter a fetched list.\nabstract class FetchingMechanism extends PollingMechanism {\n constructor(private readonly fetch: FetchFn) {\n super()\n }\n\n protected async poll({ bag, params, state, isLearningMode }: PollCycle): Promise<PollingResult> {\n const items = await this.fetch({ ...bag, params, isLearningMode })\n\n // Learning mode: emit the fetched head as the sample; do not persist state.\n if (isLearningMode) {\n return { events: items, state: null }\n }\n\n return this.delta(items, state, params)\n }\n\n // What is new since `state`, and the state to remember next time.\n protected abstract delta(\n items: unknown[],\n state: Record<string, unknown> | null,\n params: Record<string, unknown>\n ): PollingResult\n}\n\n// \u2500\u2500 dedupe (seen-set) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nclass DedupeMechanism extends FetchingMechanism {\n readonly #by: (item: unknown) => unknown\n readonly #stateKey: string\n readonly #max: number\n\n constructor(fetch: FetchFn, config: DedupeConfig) {\n super(fetch)\n\n if (typeof config === 'function') {\n this.#by = config\n this.#stateKey = 'seen'\n this.#max = 500\n } else if (typeof config === 'string') {\n this.#by = item => getPath(item, config)\n this.#stateKey = 'seen'\n this.#max = 500\n } else {\n this.#by = typeof config.by === 'function' ? config.by : (item: unknown) => getPath(item, config.by as string)\n this.#stateKey = config.stateKey ?? 'seen'\n this.#max = config.max ?? 500\n }\n }\n\n protected delta(items: unknown[], state: Record<string, unknown> | null): PollingResult {\n const currentIds = items.map(this.#by).map(id => `${ id }`)\n\n // Seed on first poll: remember ids, emit nothing.\n if (!state?.[this.#stateKey]) {\n return { events: [], state: { [this.#stateKey]: this.#buildSeen([], currentIds) } }\n }\n\n const seen = toSeenList(state[this.#stateKey])\n const seenSet = new Set(seen)\n const events = items.filter((_item, index) => !seenSet.has(currentIds[index]))\n\n return { events, state: { [this.#stateKey]: this.#buildSeen(seen, currentIds) } }\n }\n\n // Bounded id list, oldest first, keeping the most-recent `max` ids. An id fetched again moves to the end,\n // so an item that is still in the feed is never the one evicted. It is a list, not an `{ id: 1 }` map: a\n // map orders integer-like keys numerically, which evicted the SMALLEST id instead of the oldest one.\n #buildSeen(seen: string[], currentIds: string[]): string[] {\n const fetched = new Set(currentIds)\n\n return [...seen.filter(id => !fetched.has(id)), ...fetched].slice(-this.#max)\n }\n}\n\n// State persisted before the list format is an `{ id: 1 }` map. It is still read so a live trigger keeps\n// its seen ids across the upgrade; its order is lost, which only matters until the next `max` ids roll in.\nconst toSeenList = (value: unknown): string[] => {\n return Array.isArray(value)\n ? value.map(id => `${ id }`)\n : Object.keys(value as Record<string, unknown>)\n}\n\n// \u2500\u2500 watermark (marker) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n// Markers are compared with JS relational ordering, which is exactly what lets one `by` field work whether\n// the provider hands out ISO timestamps, sortable ids or plain numbers \u2014 the author never declares which.\nconst isNewer = (value: unknown, marker: unknown): boolean => (value as string) > (marker as string)\n\nclass WatermarkMechanism extends FetchingMechanism {\n readonly #stateKey: string\n\n constructor(fetch: FetchFn, private readonly config: WatermarkConfig) {\n super(fetch)\n\n this.#stateKey = config.stateKey ?? 'watermark'\n }\n\n protected delta(\n items: unknown[],\n state: Record<string, unknown> | null,\n params: Record<string, unknown>\n ): PollingResult {\n const valueOf = (item: unknown): unknown =>\n typeof this.config.by === 'function' ? this.config.by(item, { params }) : getPath(item, this.config.by)\n\n const advance = (start: unknown): unknown =>\n items.reduce((max, item) => {\n const value = valueOf(item)\n\n if (value == null) {\n return max\n }\n\n return max == null || isNewer(value, max) ? value : max\n }, start)\n\n // Seed on first poll: store the newest marker, emit nothing.\n if (state?.[this.#stateKey] === undefined || state?.[this.#stateKey] === null) {\n return { events: [], state: { [this.#stateKey]: advance(undefined) } }\n }\n\n const marker = state[this.#stateKey]\n const events: unknown[] = []\n\n for (const item of items) {\n const value = valueOf(item)\n\n if (value != null && isNewer(value, marker)) {\n events.push(item)\n } else if (this.config.sortedDesc) {\n // newest-first list \u2192 the first non-newer item means the rest are older too.\n break\n }\n }\n\n return { events, state: { [this.#stateKey]: advance(marker) } }\n }\n}\n", "import { UnknownMethodError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport type { LoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, MethodParams } from '../params'\nimport { ResultSpec } from '../result'\nimport { PollingMechanism } from './mechanisms'\nimport type { PollingInvocation, PollingResult, PollingTriggerProps } from './types'\n\n// A polling trigger (08-polling-triggers.md). It is a published method \u2014 the console renders it as a start\n// node with its own params and sample result \u2014 but it is NOT invocable by name: the runtime reaches it\n// through the shared polling SYSTEM method, which routes by `eventName` (see ./polling-triggers.ts).\n\nexport class PollingTriggerMethod extends ExtensionMethod implements LoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n readonly mechanism: PollingMechanism\n\n constructor(extension: Extension, private readonly props: PollingTriggerProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, {\n serviceId: extension.id,\n kind: 'polling trigger',\n itemId: props.id,\n slot: 'params',\n })\n this.result = ResultSpec.from(props.result)\n // Validates the declared combination \u2014 see PollingMechanism.from.\n this.mechanism = PollingMechanism.from(props, extension.id)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'POLLING_TRIGGER'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Not dispatchable by name \u2014 the platform ticks `handleTriggerPollingForEvent` instead, so a call that\n // lands here is a caller using the trigger id as if it were an action.\n execute(): never {\n throw new UnknownMethodError(this.extension.id, this.name)\n }\n\n // One tick for this trigger, with its instance params already validated.\n poll(invocation: PollingInvocation, ctx: ExecutionContext): Promise<PollingResult> {\n return this.mechanism.run(\n { ...invocation, triggerData: this.#triggerData(invocation.triggerData) },\n ctx.toBag()\n )\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme),\n metaInfo: { args: toArgs(this.params), ...this.result.toMetaInfo(this.id, this.params) },\n }\n }\n\n // A trigger instance's configured params, through the same pipeline as everything else. A saved instance\n // missing a required param therefore fails the poll rather than polling with `undefined` \u2014 the trigger\n // genuinely cannot work without it. Unknown fields ride through to the handler.\n #triggerData(data: Record<string, unknown> = {}): Record<string, unknown> {\n return this.params.normalize(data, this.input(data).invalidInput('triggerData'), { carryUnknown: true })\n }\n}\n", "// The five runtime-owned realtime SYSTEM methods \u2014 the frozen v1 webhook lifecycle seam. Do not rename:\n// these are published method names the platform invokes by string.\nexport const REALTIME_SYSTEM_METHODS = {\n UPSERT: 'handleTriggerUpsertWebhook',\n RESOLVE: 'handleTriggerResolveEvents',\n SELECT: 'handleTriggerSelectMatched',\n DELETE: 'handleTriggerDeleteWebhook',\n REFRESH: 'handleTriggerRefreshWebhook',\n} as const\n", "import { z } from '../params'\n\n// The invocation shapes the runtime hands to the realtime SYSTEM methods (v1-compatible). Runtime-owned,\n// not author-declared, and all LOOSE: the flow engine may send fields a given milestone doesn't model yet,\n// and dropping them silently would be worse than carrying them through.\n\nconst anyRecord = () => z.record(z.string(), z.unknown())\n\nconst SubscriptionEventSchema = z.looseObject({\n name: z.string().min(1),\n triggerData: anyRecord().optional(),\n})\n\n// upsert + refresh \u2014 both subscribe the callback URL for a set of trigger instances.\nexport const RealtimeSubscriptionInvocationSchema = z.looseObject({\n callbackUrl: z.string().min(1),\n events: z.array(SubscriptionEventSchema).default([]),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// delete \u2014 the webhook is torn down from its stored data; the callback URL is informational.\nexport const RealtimeDeleteInvocationSchema = z.looseObject({\n callbackUrl: z.string().optional(),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// resolve \u2014 the raw inbound HTTP delivery, plus the webhook document persisted at subscription time.\n// `webhookData` is NULLISH on purpose: the platform looks the document up per workspace, so a delivery\n// arriving on the general callback of a service that is not app-hosted carries none, and neither does one\n// for which no document exists (yet).\nexport const RealtimeInboundInvocationSchema = z.looseObject({\n headers: anyRecord().optional(),\n queryParams: anyRecord().optional(),\n body: z.unknown(),\n rawBody: z.string().optional(),\n webhookData: anyRecord().nullish(),\n connectionId: z.string().nullish(),\n})\n\n// select \u2014 one resolved event fanned out over the registered trigger instances. `webhookData` rides along\n// for the same reason it does on resolve, and is READ-ONLY here too: this seam answers with matched ids and\n// enriched data, never with a new document.\nexport const RealtimeSelectInvocationSchema = z.looseObject({\n eventName: z.string().min(1),\n eventData: z.unknown(),\n webhookData: anyRecord().nullish(),\n triggers: z.array(z.looseObject({\n id: z.string().min(1),\n // A partially-configured instance is legal \u2014 `match` treats an empty param as \"matches all\".\n data: anyRecord().optional(),\n })).default([]),\n})\n", "import type { RealtimeVerify } from './types'\n\n// The declarative inbound-signature check (09-realtime-triggers.md): HMAC the raw body with a secret drawn\n// from config, compare it in constant time to the header the provider sent, and \u2014 when the provider stamps\n// its deliveries \u2014 reject anything too old to be a live event rather than a replay.\n//\n// Services cannot `require` node modules, so the primitives come from `Flowrunner.crypto` (see ../crypto).\n// An author who needs something this shape cannot express writes `verifyRequest` instead.\n\nexport function verifyDeclarative(\n verify: RealtimeVerify,\n rawBody: string | undefined,\n headers: Record<string, unknown>,\n config: Record<string, unknown>,\n // The stored webhook document of this delivery \u2014 `null` when none. A provider that mints the signing\n // secret at registration time keeps it here, so `secret` has to be able to read it.\n webhookData: unknown\n): boolean {\n const provided = (headers[verify.header] ?? headers[verify.header.toLowerCase()]) as string | undefined\n\n if (!provided) {\n return false\n }\n\n const secret = verify.secret(config, { webhookData })\n const computed = Flowrunner.crypto.hmac(verify.algo, secret, rawBody ?? '', verify.encoding)\n\n if (!Flowrunner.crypto.timingSafeEqual(provided, computed)) {\n return false\n }\n\n if (verify.freshness && verify.timestampHeader) {\n const timestamp = headers[verify.timestampHeader] as string | undefined\n\n if (timestamp && Flowrunner.crypto.ageSeconds(timestamp) > verify.freshness) {\n return false\n }\n }\n\n return true\n}\n", "import { RealtimeSetupError, UnknownTriggerError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport { z } from '../params'\nimport { getPath } from '../path'\nimport type { SystemMethodSpec } from '../system-method'\nimport type { AnySchema, ProviderPayload } from '../types'\nimport { REALTIME_SYSTEM_METHODS } from './method-names'\nimport {\n RealtimeDeleteInvocationSchema,\n RealtimeInboundInvocationSchema,\n RealtimeSelectInvocationSchema,\n RealtimeSubscriptionInvocationSchema,\n} from './system-params'\nimport type { RealtimeTriggerMethod } from './trigger-method'\nimport type { HandshakeResult, RealtimeInvocation, RealtimeSetupProps, RealtimeSubTrigger } from './types'\nimport { verifyDeclarative } from './verify'\n\n// `ext.setupRealtimeTriggers(...)` \u2014 the webhook plumbing shared by every realtime trigger of a service\n// (09-realtime-triggers.md). The author writes declarative config plus lifecycle functions; this owns the\n// five v1 SYSTEM methods and drives them:\n//\n// handleTriggerUpsertWebhook \u2192 subscribe register the callback URL with the provider\n// handleTriggerDeleteWebhook \u2192 unsubscribe tear it down\n// handleTriggerRefreshWebhook \u2192 refresh (optional) renew a subscription that expires\n// handleTriggerResolveEvents \u2192 handshake \u2192 verify \u2192 route shape one inbound delivery into events\n// handleTriggerSelectMatched \u2192 per-instance match pick which configured instances fire\n//\n// Splitting resolve from select is what keeps the expensive work rare: resolve runs once per delivery and\n// touches no API, select runs per event and may enrich once, only if something actually matched.\n\n// Read a `string | fn` extractor against the request body.\nfunction readExtract(\n extract: string | ((bag: { requestBody: ProviderPayload }) => unknown) | undefined,\n body: unknown\n): unknown {\n if (typeof extract === 'function') {\n return extract({ requestBody: body })\n }\n\n if (typeof extract === 'string') {\n return getPath(body, extract)\n }\n\n return undefined\n}\n\nfunction isEmptyBody(body: unknown): boolean {\n return body == null || body === '' || (typeof body === 'object' && Object.keys(body as object).length === 0)\n}\n\n// What a `handshake` hook may set to answer the provider. An object carrying none of them \u2014 `{}` included \u2014\n// is not a handshake: the delivery proceeds, exactly as when the hook returns nothing.\nfunction hasHandshakeResponse(result: HandshakeResult): boolean {\n return result.responseToExternalService !== undefined || !!result.responseHeaders || !!result.responseToWebhook\n}\n\n// The status a throwing `handshake` answers with: the error's own 4xx when it carries one, 400 otherwise.\n// Never 5xx \u2014 the platform does not forward it and would answer the provider 200, the one status that\n// reads as \"verified\".\nfunction handshakeErrorStatus(error: unknown): number {\n const { statusCode, status } = (error ?? {}) as { statusCode?: unknown; status?: unknown }\n const candidate = typeof statusCode === 'number' ? statusCode : status\n\n return typeof candidate === 'number' && candidate >= 400 && candidate < 500 ? candidate : 400\n}\n\nexport class RealtimeSetup {\n constructor(private readonly extension: Extension, private readonly props: RealtimeSetupProps) {\n if (typeof props.subscribe !== 'function' || typeof props.unsubscribe !== 'function') {\n throw new RealtimeSetupError(extension.id, 'setupRealtimeTriggers requires subscribe and unsubscribe functions')\n }\n\n this.#registerSystemMethods()\n }\n\n get scope(): RealtimeSetupProps['scope'] {\n return this.props.scope\n }\n\n get hasRefresh(): boolean {\n return typeof this.props.refresh === 'function'\n }\n\n // \u2500\u2500 SYSTEM seam: name \u00B7 input \u00B7 handler, in one table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n #registerSystemMethods(): void {\n const M = REALTIME_SYSTEM_METHODS\n\n // Every realtime SYSTEM method takes the same single `invocation` param; only its shape differs.\n const spec = (\n name: string,\n schema: AnySchema,\n run: (invocation: RealtimeInvocation, ctx: ExecutionContext) => unknown,\n published = true\n ): SystemMethodSpec => ({\n name,\n scheme: z.object({ invocation: schema }),\n published,\n run: ({ invocation }, ctx) => run(invocation as RealtimeInvocation, ctx),\n })\n\n this.extension.registerSystemMethods([\n spec(M.UPSERT, RealtimeSubscriptionInvocationSchema, (i, ctx) => this.#subscribe(i, ctx)),\n spec(M.DELETE, RealtimeDeleteInvocationSchema, (i, ctx) => this.#unsubscribe(i, ctx)),\n spec(M.RESOLVE, RealtimeInboundInvocationSchema, (i, ctx) => this.#resolve(i, ctx)),\n spec(M.SELECT, RealtimeSelectInvocationSchema, (i, ctx) => this.#selectMatched(i, ctx)),\n // Refresh stays CALLABLE either way \u2014 it answers `{}` when no handler was declared \u2014 but is only\n // advertised in the model when the author actually declared one.\n spec(M.REFRESH, RealtimeSubscriptionInvocationSchema, (i, ctx) => this.#refresh(i, ctx), this.hasRefresh),\n ])\n }\n\n // \u2500\u2500 subscription lifecycle \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #subscribe(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const result = await this.props.subscribe(ctx.bagWith({\n callbackUrl: invocation.callbackUrl as string,\n triggers: this.#toSubTriggers(invocation.events),\n webhookData: invocation.webhookData ?? null,\n connectionId: invocation.connectionId,\n }))\n\n return {\n webhookData: result?.webhookData,\n eventScopeId: result?.eventScopeId,\n refreshIntervalInSeconds: result?.refreshIntervalInSeconds,\n }\n }\n\n async #unsubscribe(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const result = await this.props.unsubscribe(ctx.bagWith({\n callbackUrl: invocation.callbackUrl,\n webhookData: invocation.webhookData,\n connectionId: invocation.connectionId,\n }))\n\n return { webhookData: result?.webhookData ?? {} }\n }\n\n async #refresh(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n if (!this.props.refresh) {\n return {}\n }\n\n const result = await this.props.refresh(ctx.bagWith({\n callbackUrl: invocation.callbackUrl as string,\n triggers: this.#toSubTriggers(invocation.events),\n webhookData: invocation.webhookData,\n }))\n\n return { webhookData: result?.webhookData, refreshIntervalInSeconds: result?.refreshIntervalInSeconds }\n }\n\n // v1 upsert/refresh hand over events [{ name, triggerData }]. A trigger that declares provider event\n // names expands to one entry EACH, which is what a provider's subscribe API actually wants.\n //\n // A trigger that declares NONE still gets an entry. `providerEventName` is a ROUTING declaration and this\n // is a LIFECYCLE seam: an extension that resolves its own events (`resolveEvents`) legitimately has nothing to\n // route by, yet its triggers still run and `subscribe`/`refresh` still have to reconcile them. Gating the\n // bag on the routing declaration handed such a service an empty bag on every subscribe \u2014 silently, since\n // an empty subscription is a perfectly well-formed result.\n //\n // NOTHING is dropped here. A `name` resolving to no trigger THROWS, because this is the CONTROL PLANE:\n // upsert/refresh are initiated by FlowRunner itself, something is waiting on the result, and no third\n // party is affected \u2014 so an error reaches a place where it can be acted on. `subscribe` is the seam that\n // registers with the PROVIDER, so a dropped entry meant a flow that reported LIVE while its trigger was\n // never subscribed \u2014 silent, and indistinguishable from a working flow that simply never fired. One throw\n // does block the rest of the batch from subscribing, and that is the intent: a flow refusing to start\n // beats a live flow with half its triggers registered. (The data plane is ruled the other way \u2014 see\n // `#selectMatched`, which declines rather than throws because nothing is waiting on it.)\n #toSubTriggers(events: RealtimeInvocation['events'] = []): RealtimeSubTrigger[] {\n const subTriggers: RealtimeSubTrigger[] = []\n\n for (const event of events) {\n const trigger = this.extension.findRealtimeTrigger(event.name)\n\n if (!trigger) {\n throw new UnknownTriggerError(this.extension.id, event.name, 'realtime')\n }\n\n const params = event.triggerData ?? {}\n const providerEventNames = trigger.providerEventNames(params)\n\n // No placeholder: a `providerEventName` the provider has never heard of would reach `subscribe`, the\n // seam that calls the provider's own subscription API. A missing field an author can test for is safer.\n if (!providerEventNames.length) {\n subTriggers.push({ id: event.name, params })\n continue\n }\n\n for (const providerEventName of providerEventNames) {\n subTriggers.push({ id: event.name, params, providerEventName })\n }\n }\n\n return subTriggers\n }\n\n // \u2500\u2500 inbound delivery \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n async #resolve(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n const headers = invocation.headers ?? {}\n const body = invocation.body\n const rawBody = invocation.rawBody\n // The document `subscribe` returned, as the platform stored it \u2014 the only way state registered with the\n // provider (a signing secret, an external webhook id) reaches the delivery it describes. Normalized to\n // `null` so every inbound seam reports \"nothing stored\" the one way, rather than `undefined` here and\n // `null` there depending on whether the platform sent the field or sent it empty.\n const webhookData = invocation.webhookData ?? null\n\n // 1. Endpoint-verification handshake. A delivery that is one is acked here, without verification or\n // routing \u2014 so nothing fires for it.\n const handshake = await this.#handshake(body, headers, rawBody, webhookData, ctx)\n\n if (handshake) {\n return handshake\n }\n\n // 2. Signature verification (escape hatch or declarative). Reject on failure \u2014 by RETURNING a 401,\n // never by throwing.\n //\n // A forged delivery is a normal, expected outcome of a public callback URL, not a runtime failure. A\n // throw leaves the pod with a 4xx, which the platform reads as \"the invocation failed\" rather than \"the\n // extension answered 401\" \u2014 so the provider receives a 500. That fails exactly the validation this is\n // for: Xero's Intent to Receive sends a deliberately mis-signed delivery and requires a 401 back.\n //\n // Empty `rawBody` rather than `body`: a rejection carries no content, and `body` is always JSON, so an\n // empty string there would arrive quoted.\n if (!await this.#verify(rawBody, headers, webhookData, ctx)) {\n ctx.logger.warn(`[flow-extension:${ this.extension.id }] webhook signature verification failed \u2014 answering 401`)\n\n return { events: [], responseToWebhook: { httpStatus: 401, rawBody: '' } }\n }\n\n // 3. Escape hatch for irregular/multi-shape payloads \u2014 emits v1 events directly.\n if (this.props.resolveEvents) {\n const result = await this.props.resolveEvents(ctx.bagWith({\n rawBody,\n headers,\n query: invocation.queryParams ?? {},\n body,\n webhookData,\n connectionId: invocation.connectionId,\n }))\n\n return {\n handshake: result.handshake,\n responseToExternalService: result.responseToExternalService,\n responseHeaders: result.responseHeaders,\n responseToWebhook: result.responseToWebhook,\n eventScopeId: result.eventScopeId,\n events: (result.events ?? []).map(event => ({ name: event.id, data: event.providerEventData })),\n }\n }\n\n // 4. Declarative routing: discriminator \u2192 every trigger claiming it; build providerEventData.\n const eventName = readExtract(this.props.extractProviderEventName, body)\n\n if (eventName == null) {\n return { events: [] }\n }\n\n const baseData = this.props.extractProviderEventData\n ? readExtract(this.props.extractProviderEventData, body)\n : body\n const events: { name: string; data: unknown }[] = []\n\n for (const trigger of this.extension.realtimeTriggers()) {\n if (!trigger.claims(eventName as string)) {\n continue\n }\n\n const extra = trigger.extendEventData(body, baseData as Record<string, unknown>)\n\n events.push({ name: trigger.id, data: extra ? { ...(baseData as object), ...extra } : baseData })\n }\n\n const eventScopeId = this.props.scopeAt ? getPath(body, this.props.scopeAt) : undefined\n\n return { events, eventScopeId, connectionId: invocation.connectionId }\n }\n\n // The author's own check wins; otherwise the declarative one; otherwise nothing was asked for.\n /**\n * Whether this delivery is an endpoint-verification handshake, and if so the answer to it; `null` \u2192 proceed.\n *\n * Without a `handshake` hook the default applies: an EMPTY body is a handshake, acked with a plain 200 \u2014\n * the URL-verification ping most providers send. A declared hook REPLACES that default rather than running\n * before it, so it alone decides: some providers deliver real events with no body at all (Google Drive\n * puts everything in `X-Goog-*` headers), and a hook that can't overrule the empty-body rule leaves them\n * no way to reach `resolveEvents`.\n *\n * `true` \u2192 handshake, plain 200\n * `{ responseToWebhook, \u2026 }` \u2192 handshake, answered with that response\n * nothing / `false` / `{}` \u2192 not a handshake, the delivery proceeds\n * throws \u2192 answered with the error, as a 4xx carrying its message\n *\n * The throw is turned into a RESPONSE for the same reason a failed signature check is: a throw leaves the\n * pod as a failed invocation and the provider receives a 500 telling it nothing. The hook runs BEFORE\n * verification, so the message reaches an unverified caller \u2014 throw what the provider may read.\n */\n async #handshake(\n body: unknown,\n headers: Record<string, unknown>,\n rawBody: string | undefined,\n webhookData: unknown,\n ctx: ExecutionContext\n ): Promise<object | null> {\n if (!this.props.handshake) {\n return isEmptyBody(body) ? { handshake: true, events: [] } : null\n }\n\n let result: HandshakeResult | boolean | void\n\n try {\n result = await this.props.handshake(ctx.bagWith({ requestBody: body, headers, rawBody, webhookData }))\n } catch (error) {\n const message = (error as Error)?.message ?? String(error)\n\n ctx.logger.error(`[flow-extension:${ this.extension.id }] handshake failed \u2014 ${ message }`)\n\n return {\n events: [],\n responseToWebhook: { httpStatus: handshakeErrorStatus(error), body: { message } },\n }\n }\n\n if (result === true) {\n return { handshake: true, events: [] }\n }\n\n if (result && typeof result === 'object' && hasHandshakeResponse(result)) {\n // Both shapes travel, exactly as the author wrote them. `responseToWebhook` is the newer, fuller\n // one, but the platform does not understand it yet \u2014 so translating the older pair into it would\n // drop the response of every service already using it. The platform picks whichever it supports.\n return {\n handshake: true,\n responseToExternalService: result.responseToExternalService,\n responseHeaders: result.responseHeaders,\n responseToWebhook: result.responseToWebhook,\n }\n }\n\n return null\n }\n\n async #verify(\n rawBody: string | undefined,\n headers: Record<string, unknown>,\n webhookData: unknown,\n ctx: ExecutionContext\n ): Promise<boolean> {\n if (this.props.verifyRequest) {\n return !!await this.props.verifyRequest(ctx.bagWith({ rawBody, headers, webhookData, config: ctx.config }))\n }\n\n if (this.props.verify) {\n return verifyDeclarative(this.props.verify, rawBody, headers, ctx.config, webhookData)\n }\n\n return true\n }\n\n // Fan one resolved event out over the configured instances of its trigger. An `eventName` this service\n // does not declare is DECLINED outright \u2014 `{ ids: [], enrichedEventData: null }`, no instance offered up\n // and no per-event seam run. That is deliberately not the same case as a trigger which declares no\n // `match`: `matches()` already answers \"fires always\" for that one, so resolve the name FIRST and never\n // let the two share a branch.\n //\n // Declining is the GUARANTEE here, not an accident of a past fix, and it is why this seam is ruled the\n // opposite way to `#toSubTriggers`. This is the DATA PLANE: the platform has already answered the\n // provider and detached this work, so a throw reaches nobody \u2014 and worse, it aborts every remaining event\n // of the same delivery, dropping the good ones beside the stale name.\n /**\n * The event data `match` decides on: the delivered data plus whatever `extendMatchData` fetched, read ONCE\n * for every instance \u2014 the case is an id-only webhook (Xero names an invoice, not its type or status) whose\n * instance filters need the resource itself.\n *\n * A failed read is NOT a failed delivery. Select is the data plane: nothing is waiting on it, and a throw\n * would abort the delivery's other events. So it is logged and the instances are matched against the data\n * that WAS delivered \u2014 an instance filtering on the missing fields declines, an unfiltered one still fires.\n */\n async #withMatchData(\n trigger: RealtimeTriggerMethod,\n eventData: unknown,\n webhookData: unknown,\n ctx: ExecutionContext\n ): Promise<unknown> {\n try {\n const extra = await trigger.extendMatchData(eventData, ctx, webhookData)\n\n return extra && typeof extra === 'object' ? { ...(eventData as object), ...extra } : eventData\n } catch (error) {\n ctx.logger.warn(\n `[flow-extension:${ this.extension.id }] extendMatchData of \"${ trigger.id }\" failed \u2014 ` +\n `matching on the delivered data: ${ (error as Error)?.message ?? error }`\n )\n\n return eventData\n }\n }\n\n async #selectMatched(invocation: RealtimeInvocation, ctx: ExecutionContext): Promise<object> {\n // `eventName` is in practice always present \u2014 RealtimeSelectInvocationSchema declares it\n // `z.string().min(1)`, so SystemMethod.validate rejects a missing one before this runs. The shared\n // invocation bag cannot say so (the other four SYSTEM methods carry no event name), and an absent name\n // is not a trigger id either way, so it folds into the same decline rather than earning a branch.\n const trigger = invocation.eventName ? this.extension.findRealtimeTrigger(invocation.eventName) : undefined\n\n if (!trigger) {\n return { ids: [], enrichedEventData: null }\n }\n\n // Read-only here, exactly as on resolve: `match` and `extendResult` may consult what the subscription\n // registered, and neither can write it back \u2014 this seam's answer is ids and enriched data, nothing else.\n const webhookData = invocation.webhookData ?? null\n const instances = invocation.triggers ?? []\n const eventData = trigger.needsMatchData(instances.length)\n ? await this.#withMatchData(trigger, invocation.eventData, webhookData, ctx)\n : invocation.eventData\n\n const verdicts = await Promise.all(\n instances.map(instance => trigger.matches(instance.data ?? {}, eventData, webhookData))\n )\n const ids = instances.filter((_instance, index) => verdicts[index]).map(instance => instance.id)\n\n // extendResult runs ONCE if any instance matched \u2014 after the decision, so it cannot change who fires.\n const enrichedEventData = ids.length && trigger.hasExtendResult()\n ? await trigger.extendResult(eventData, ctx, webhookData)\n : null\n\n return { ids, enrichedEventData }\n }\n}\n", "import { UnknownMethodError } from '../../errors'\nimport type { ExecutionContext } from '../context/execution-context'\nimport type { Extension } from '../extension'\nimport type { LoaderOwner } from '../loaders/loader-owner'\nimport { ExtensionMethod } from '../method'\nimport type { SharedExtensionMethod } from '../model/model-types'\nimport { toArgs, toBodyParams } from '../model/params-model'\nimport { encodeParams, MethodParams } from '../params'\nimport { getPath } from '../path'\nimport { ResultSpec } from '../result'\nimport type { ProviderPayload } from '../types'\nimport type { RealtimeTriggerProps } from './types'\n\n// A realtime (webhook) trigger (09-realtime-triggers.md). Like a polling trigger it is a published method\n// the console renders as a start node, but is NOT invocable by name \u2014 the runtime reaches it through the\n// realtime SYSTEM seam (see ./realtime-setup.ts), which routes inbound deliveries to it.\n//\n// Its three author hooks answer three different questions, at three different moments:\n// providerEventNames which provider events is this trigger about? (routing, per delivery)\n// extendMatchData what must be fetched to decide? (once, before matching)\n// matches does THIS configured instance care about it? (fan-out, per instance)\n// extendResult what extra data should the event carry? (once, if anything matched)\n\nexport class RealtimeTriggerMethod extends ExtensionMethod implements LoaderOwner {\n readonly params: MethodParams\n readonly result: ResultSpec\n\n constructor(extension: Extension, private readonly props: RealtimeTriggerProps) {\n super(extension)\n\n this.params = MethodParams.of(props.params, {\n serviceId: extension.id,\n kind: 'realtime trigger',\n itemId: props.id,\n slot: 'params',\n })\n this.result = ResultSpec.from(props.result)\n }\n\n get id(): string {\n return this.props.id\n }\n\n get name(): string {\n return this.props.id\n }\n\n get registerAs(): string {\n return 'REALTIME_TRIGGER'\n }\n\n get category(): string {\n return this.props.category\n }\n\n get oauth2Scopes(): string[] {\n return this.props.oauth2Scopes ?? []\n }\n\n // Not dispatchable by name \u2014 inbound deliveries arrive through the realtime SYSTEM methods.\n execute(): never {\n throw new UnknownMethodError(this.extension.id, this.name)\n }\n\n // \u2500\u2500 routing \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // The provider event(s) this trigger claims. The fn form depends on instance params (unusual for routing)\n // \u2014 best-effort with the params given.\n providerEventNames(params: Record<string, unknown> = {}): string[] {\n const declared = this.props.providerEventName\n\n if (typeof declared === 'function') {\n return declared({ params }) ?? []\n }\n\n if (Array.isArray(declared)) {\n return declared\n }\n\n return declared ? [declared] : []\n }\n\n claims(providerEventName: string): boolean {\n return this.providerEventNames().includes(providerEventName)\n }\n\n // Per-trigger enrichment of the shaped event data, before instances are matched against it.\n extendEventData(requestBody: ProviderPayload, providerEventData: ProviderPayload): Record<string, unknown> | undefined {\n return this.props.extendEventData?.({ requestBody, providerEventData })\n }\n\n /**\n * Whether `extendMatchData` should run for an event about to be matched against `instanceCount` instances.\n * Only when something will READ its result: with no instances there is nothing to decide, and with no\n * `match` every instance fires regardless \u2014 either way the API call would be pure cost.\n */\n needsMatchData(instanceCount: number): boolean {\n return typeof this.props.extendMatchData === 'function' && !!this.props.match && instanceCount > 0\n }\n\n // Runs ONCE per event, before any instance is matched, with the full handler bag (`apiRequest` on the\n // connection's token) \u2014 for an instance filter on data the delivery does not carry.\n extendMatchData(\n providerEventData: ProviderPayload,\n ctx: ExecutionContext,\n webhookData: ProviderPayload = null\n ): Promise<Record<string, unknown> | void> | Record<string, unknown> | void {\n return this.props.extendMatchData?.(ctx.bagWith({ providerEventData, webhookData }))\n }\n\n /**\n * Whether one CONFIGURED INSTANCE of this trigger cares about an event. Declarative form: type-coerced\n * equality per filled param, where an empty param means \"any\" \u2014 that is what lets a user leave a filter\n * blank and receive everything. Predicate form: the author decides. No `match` at all: always fires.\n *\n * `webhookData` is handed to the predicate form to be READ \u2014 an instance filter that depends on what the\n * subscription registered (a tenant id, a resource the webhook was scoped to) has nowhere else to get it.\n * Returning a new document is not a thing this seam can do; only subscribe/refresh/unsubscribe persist.\n */\n async matches(\n params: Record<string, unknown>,\n providerEventData: ProviderPayload,\n webhookData: ProviderPayload = null\n ): Promise<boolean> {\n const match = this.props.match\n\n if (!match) {\n return true\n }\n\n // Awaited: an async predicate's Promise is truthy, so reading it unawaited fired EVERY instance.\n if (typeof match === 'function') {\n return !!await match({ params, providerEventData, webhookData })\n }\n\n for (const [paramKey, path] of Object.entries(match)) {\n const paramValue = params[paramKey]\n\n if (paramValue == null || paramValue === '') {\n continue\n }\n\n if (`${ paramValue }` !== `${ getPath(providerEventData, path) }`) {\n return false\n }\n }\n\n return true\n }\n\n // Runs ONCE per event if any instance matched \u2014 the only per-event place that may call the provider API.\n // It reads `webhookData` (an access token or external id the subscription stored) but cannot change it.\n extendResult(\n providerEventData: ProviderPayload,\n ctx: ExecutionContext,\n webhookData: ProviderPayload = null\n ): Promise<unknown> | unknown {\n return this.props.extendResult?.(ctx.bagWith({ providerEventData, webhookData }))\n }\n\n hasExtendResult(): boolean {\n return typeof this.props.extendResult === 'function'\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toModel(): SharedExtensionMethod {\n const [ownStart, ownEnd] = this.props.appearanceColors ?? []\n const [colorStart, colorEnd] = this.extension.appearanceColors\n\n return {\n name: this.id,\n operationName: this.props.label,\n description: this.props.description || '',\n registerAs: this.registerAs,\n category: this.category,\n colorStart: ownStart ?? colorStart,\n colorEnd: ownEnd ?? colorEnd,\n customIcon: this.props.logo ?? '',\n returnType: this.result.returnType,\n queryParams: [],\n bodyParams: toBodyParams(this.params),\n paramsSchema: encodeParams(this.params.scheme),\n metaInfo: { args: toArgs(this.params), ...this.result.toMetaInfo(this.id, this.params) },\n }\n }\n}\n", "import type { ExecutionContext } from './context/execution-context'\nimport type { Extension } from './extension'\nimport { ExtensionMethod } from './method'\nimport { argsFromParams } from './model/method-model'\nimport type { SharedExtensionMethod } from './model/model-types'\nimport { toOpaqueBodyParams } from './model/params-model'\nimport type { ZodSchema } from './params'\nimport { MethodParams } from './params'\nimport type { AnySchema } from './types'\n\n// The runtime-owned methods \u2014 the frozen v1 seam the platform calls rather than a flow: the OAuth connect /\n// callback / refresh steps, the polling tick, and the five realtime webhook lifecycle hooks. An author\n// never writes one; they exist because a feature was set up.\n//\n// Mechanically they are all the same: a runtime-owned params scheme, a SYSTEM model entry, and a handler.\n// Only the handler differs \u2014 so there is ONE class, driven by a spec, and each feature declares its own\n// specs in one place (see each owner's `#registerSystemMethods`). That single row now holds every fact\n// about a SYSTEM method: its name, its input contract, its model shape, and what it does.\n\nexport interface SystemMethodSpec {\n name: string\n /**\n * The params this method takes, as a normal z.object. Today every SYSTEM method happens to declare\n * exactly ONE property (`invocation` / `callbackObject` / `refreshToken`) \u2014 but that is a fact about the\n * current seam, not a constraint of the machinery: a second property needs no change here. Omit entirely\n * for a method that takes no input (getOAuth2ConnectionURL).\n */\n scheme?: AnySchema\n // The v1 `returnType` token. OBJECT for everything but the connect step, which answers a URL.\n returnType?: string\n // Set false for a seam that must stay callable without being advertised (see ExtensionMethod.published).\n published?: boolean\n // Receives the validated params, exactly as an action's handler receives its own.\n run: (params: Record<string, unknown>, ctx: ExecutionContext) => unknown\n}\n\nexport class SystemMethod extends ExtensionMethod {\n readonly params: MethodParams\n\n constructor(extension: Extension, private readonly spec: SystemMethodSpec) {\n super(extension)\n\n this.params = MethodParams.of(spec.scheme, { serviceId: extension.id, kind: 'system method', itemId: spec.name, slot: 'scheme' })\n }\n\n get name(): string {\n return this.spec.name\n }\n\n get registerAs(): string {\n return 'SYSTEM'\n }\n\n get published(): boolean {\n return this.spec.published ?? true\n }\n\n /**\n * FIELD-BY-FIELD validation: every declared param is required, then checked against its OWN schema. The\n * input here is a wrapper carrying named params rather than the params themselves \u2014 `{ invocation }` /\n * `{ callbackObject }` / `{ refreshToken }` are separate method params.\n *\n * Deliberately not one `parse(methodData)` over the whole object, because two failures must stay\n * distinguishable: an ABSENT param is a malformed call (MissingMethodParamError naming the param), while a\n * bad VALUE is a malformed value (InvalidMethodInputError whose issue paths are relative to that param,\n * not to `methodData`). A whole-object parse would flatten both into the second, with `invocation.` in\n * front of every path.\n */\n validate(methodData: Record<string, unknown>): Record<string, unknown> {\n const input = this.input(methodData)\n const parsed: Record<string, unknown> = {}\n\n for (const [name, schema] of this.params.fields()) {\n parsed[name] = input.parseField(name, schema as ZodSchema)\n }\n\n return parsed\n }\n\n execute(params: Record<string, unknown>, ctx: ExecutionContext): unknown {\n return this.spec.run(params, ctx)\n }\n\n toModel(): SharedExtensionMethod {\n const bodyParams = toOpaqueBodyParams(this.params)\n\n return {\n name: this.name,\n operationName: this.name,\n description: '',\n registerAs: this.registerAs,\n category: '',\n colorStart: '',\n colorEnd: '',\n customIcon: undefined,\n returnType: this.spec.returnType ?? 'OBJECT',\n queryParams: [],\n bodyParams,\n metaInfo: { args: argsFromParams(bodyParams), sampleResult: null, sampleResultLoader: null },\n }\n }\n}\n", "import type { ConfigItem } from '../common/types'\nimport { DuplicateItemIdError, OAuthSetupError, RealtimeSetupError, UnknownMethodError } from '../errors'\nimport { ActionMethod } from './actions/action-method'\nimport { ExecutionContext, type ExecutionContextOptions } from './context/execution-context'\nimport { DictionaryMethod } from './dictionaries/dictionary-method'\nimport { DynamicParamsLoaderMethod, DynamicPropsLoaderMethod, SampleResultLoaderMethod } from './loaders/loader-method'\nimport type { LoaderOwner } from './loaders/loader-owner'\nimport type { ExtensionMethod } from './method'\nimport type { SharedExtensionDefinition, SharedExtensionMethod, SharedExtensionServiceInfo } from './model/model-types'\nimport { toConfigItems } from './model/params-model'\nimport { OAuth2 } from './oauth/oauth2'\nimport type { OAuth2Props } from './oauth/types'\nimport type { DictionaryRef } from './params'\nimport { ConfigParams, encodeParams } from './params'\nimport { PollingTriggers } from './polling-triggers/polling-triggers'\nimport { PollingTriggerMethod } from './polling-triggers/trigger-method'\nimport type { PollingTriggerProps } from './polling-triggers/types'\nimport { RealtimeSetup } from './realtime-triggers/realtime-setup'\nimport { RealtimeTriggerMethod } from './realtime-triggers/trigger-method'\nimport type { RealtimeSetupProps, RealtimeTriggerProps } from './realtime-triggers/types'\nimport { SystemMethod, type SystemMethodSpec } from './system-method'\nimport type { ActionProps, DictionaryProps, ExtensionProps } from './types'\n\n// One registered extension: everything a service declared, and everything the runner does with it. The\n// composition root \u2014 `Flowrunner.createExtension(props)` builds one, the registry stores it, and every\n// caller (definition build, config resolution, method dispatch) goes through it rather than reaching into a\n// bag of Maps.\n//\n// Registration happens once, while the service module is being `require`d, and is validated as it goes: ids\n// must be unique across ALL item kinds, a polling trigger must declare exactly one mechanism, and the\n// opt-in features can only be set up once. An authoring mistake therefore surfaces from the first call the\n// console or CLI makes against the extension, naming what has to be fixed.\n\nexport class Extension {\n readonly #props: ExtensionProps\n readonly #config: ConfigParams\n readonly #methods = new Map<string, ExtensionMethod>()\n readonly #pollingTriggers = new PollingTriggers(this)\n readonly #realtimeTriggers = new Map<string, RealtimeTriggerMethod>()\n readonly #usedIds = new Set<string>()\n #oauth?: OAuth2\n #realtime?: RealtimeSetup\n\n constructor(props: ExtensionProps) {\n this.#props = props\n // Eager: `configItems` is validated as the extension registers, like every other declared slot. Leaving\n // it lazy would let a bad one hide behind handlers that never happen to read config.\n this.#config = ConfigParams.of(props.configItems, { serviceId: props.id, kind: 'extension', slot: 'configItems' })\n }\n\n get id(): string {\n return this.#props.id\n }\n\n get props(): ExtensionProps {\n return this.#props\n }\n\n // The declared `configItems`, mapped once per extension rather than per invocation.\n get config(): ConfigParams {\n return this.#config\n }\n\n get oauth(): OAuth2 | undefined {\n return this.#oauth\n }\n\n get realtime(): RealtimeSetup | undefined {\n return this.#realtime\n }\n\n realtimeTriggers(): RealtimeTriggerMethod[] {\n return [...this.#realtimeTriggers.values()]\n }\n\n findRealtimeTrigger(id: string): RealtimeTriggerMethod | undefined {\n return this.#realtimeTriggers.get(id)\n }\n\n get pollingTriggers(): PollingTriggers {\n return this.#pollingTriggers\n }\n\n // The extension-level colours every item falls back to.\n get appearanceColors(): [string, string] {\n const [start = '', end = ''] = this.props.appearanceColors ?? []\n\n return [start, end]\n }\n\n // \u2500\u2500 authoring-time registration \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n registerDictionary(props: DictionaryProps): DictionaryRef {\n const dictionary = new DictionaryMethod(this, props)\n\n this.#addMethod(dictionary, 'dictionary')\n\n // The ref threaded into `.dictionary(ref)` on a param; carries the auto-derived dependsOn.\n return { id: props.id, dependsOn: dictionary.dependsOn }\n }\n\n registerAction(props: ActionProps): void {\n const action = new ActionMethod(this, props)\n\n this.#addMethod(action, 'action')\n\n this.#registerSampleResultLoader(action, 'sample-result loader')\n\n // `dynamicParams` \u2192 a PARAM_SCHEMA_DEFINITION method that loads extra top-level params from criteria.\n if (action.hasDynamicParams()) {\n this.#addMethod(new DynamicParamsLoaderMethod(this, action), 'dynamic params loader')\n }\n\n // `.dynamicProps()` on a param \u2192 a PARAM_SCHEMA_DEFINITION method per param, loading its inner fields.\n // One per USE: a def shared by two actions yields two methods.\n for (const [field, def] of action.dynamicPropsFields()) {\n this.#addMethod(new DynamicPropsLoaderMethod(this, action, field, def), 'dynamic props loader')\n }\n }\n\n registerPollingTrigger(props: PollingTriggerProps): void {\n // Claim the id before constructing, so a duplicate id is reported ahead of a bad mechanism.\n this.#claimId(props.id, 'polling trigger')\n\n const trigger = new PollingTriggerMethod(this, props)\n\n this.#putMethod(trigger)\n this.#pollingTriggers.add(trigger)\n this.#registerSampleResultLoader(trigger, 'sample-result loader')\n }\n\n registerRealtimeTrigger(props: RealtimeTriggerProps): void {\n this.#claimId(props.id, 'realtime trigger')\n\n const trigger = new RealtimeTriggerMethod(this, props)\n\n this.#putMethod(trigger)\n this.#realtimeTriggers.set(trigger.id, trigger)\n this.#registerSampleResultLoader(trigger, 'sample-result loader')\n }\n\n setupRealtime(props: RealtimeSetupProps): void {\n if (this.#realtime) {\n throw new RealtimeSetupError(this.id, 'setupRealtimeTriggers(...) called more than once')\n }\n\n // The setup validates itself and publishes its SYSTEM methods as it is constructed.\n this.#realtime = new RealtimeSetup(this, props)\n }\n\n setupOAuth2(props: OAuth2Props): void {\n if (this.#oauth) {\n throw new OAuthSetupError(this.id, 'setupOauth2(...) called more than once')\n }\n\n // Like RealtimeSetup, it publishes its SYSTEM methods as it is constructed.\n this.#oauth = new OAuth2(this, props)\n }\n\n // Publish a feature's runtime-owned methods. Called by each subsystem as it is set up, so a SYSTEM method\n // exists exactly when the feature behind it does \u2014 and an id that collides with an author's own item is\n // caught here, loudly, instead of one silently shadowing the other.\n registerSystemMethods(specs: SystemMethodSpec[]): void {\n for (const spec of specs) {\n this.#addMethod(new SystemMethod(this, spec), 'system method')\n }\n }\n\n // \u2500\u2500 runtime \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Every method this extension publishes, in registration order.\n methods(): ExtensionMethod[] {\n return [...this.#methods.values()]\n }\n\n findMethod(name: string): ExtensionMethod | undefined {\n return this.#methods.get(name)\n }\n\n getMethod(name: string): ExtensionMethod {\n const method = this.findMethod(name)\n\n if (!method) {\n throw new UnknownMethodError(this.id, name)\n }\n\n return method\n }\n\n createContext(options: ExecutionContextOptions = {}): ExecutionContext {\n return new ExecutionContext(this, options)\n }\n\n // Dispatch: find the method, let it check its own input, run it. Every kind \u2014 action, dictionary,\n // generated loader, SYSTEM seam \u2014 arrives here through the same three steps.\n async run(methodName: string, methodData: Record<string, unknown>, ctx: ExecutionContext): Promise<unknown> {\n const method = this.getMethod(methodName)\n\n return method.execute(method.validate(methodData ?? {}), ctx)\n }\n\n // \u2500\u2500 output model \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n toConfigItems(): ConfigItem[] {\n return toConfigItems(this.config)\n }\n\n toServiceInfo(): SharedExtensionServiceInfo {\n return {\n // Only a shared extension migrated from v1 has one: its v1 class name, which the legacy ids of its elements,\n // configs and OAuth connections are built from. A service written as v2 is identified by its id alone\n ...(this.props.serviceClassName ? { serviceClassName: this.props.serviceClassName } : {}),\n integrationName: this.props.name,\n integrationIcon: this.props.logo ?? null,\n description: this.props.description || null,\n integrationTriggersScope: this.#realtime?.scope ?? null,\n requireOAuth: this.#oauth ? true : undefined,\n }\n }\n\n /**\n * The published model \u2014 the v2 analogue of jsdoc-parser's `parseJsDocToServiceJson`, and the same\n * `{ serviceInfo, methodsMap }` shape the console consumes for a v1 service.\n *\n * Every method describes itself, so this is one pass with no per-kind branches: what a service publishes\n * is exactly what it registered.\n */\n toDefinition(): SharedExtensionDefinition {\n const methodsMap: Record<string, SharedExtensionMethod> = {}\n\n for (const method of this.methods()) {\n if (method.published) {\n methodsMap[method.name] = method.toModel()\n }\n }\n\n return {\n runnerVersion: 'v2', //TODO: temp\n serviceInfo: this.toServiceInfo(),\n methodsMap,\n configSchema: encodeParams(this.config.scheme),\n }\n }\n\n // \u2500\u2500 queries \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // The `oauth2Scopes` every registered method declares, in registration order. The base set and the\n // dedupe live with the OAuth subsystem that consumes them (see OAuth2.#composeScopes).\n declaredOAuthScopes(): string[] {\n return this.methods().flatMap(method => method.oauth2Scopes)\n }\n\n // \u2500\u2500 private \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n // Every registered item is keyed by `id` (= the v1 method name, frozen for back-compat), and the ids must\n // be unique across ALL kinds \u2014 including the loader methods the runtime generates from them.\n #claimId(id: string, kind: string): void {\n if (!id) {\n throw new Error(`[flow-extension:${ this.id }] a ${ kind } was registered without an id`)\n }\n\n if (this.#usedIds.has(id)) {\n throw new DuplicateItemIdError(this.id, id, kind)\n }\n\n this.#usedIds.add(id)\n }\n\n #addMethod(method: ExtensionMethod, kind: string): void {\n this.#claimId(method.name, kind)\n this.#putMethod(method)\n }\n\n #putMethod(method: ExtensionMethod): void {\n this.#methods.set(method.name, method)\n }\n\n // A loader `result` fn \u2192 a SAMPLE_RESULT_LOADER method. Actions and both trigger kinds can declare one,\n // and each satisfies LoaderOwner directly.\n #registerSampleResultLoader(owner: LoaderOwner, kind: string): void {\n if (owner.result.isLoader) {\n this.#addMethod(new SampleResultLoaderMethod(this, owner), kind)\n }\n }\n\n}\n", "import { ExtensionNotRegisteredError } from '../errors'\nimport type { Extension } from './extension'\n\n// The process-wide registry of v2 extensions, keyed by service id. Mirrors the v1 `services` map in\n// v1/namespace.ts: a service module registers once at require time (via Flowrunner.createExtension) and the\n// entry persists across the require cache, so re-requiring the same module is a cheap no-op. Version\n// detection (../index.ts) checks `registry.get(serviceId)` after a module is required \u2014 a hit means v2.\n\nexport class ExtensionRegistry {\n readonly #extensions = new Map<string, Extension>()\n\n register(extension: Extension): void {\n this.#extensions.set(extension.id, extension)\n }\n\n get(id: string): Extension | undefined {\n return this.#extensions.get(id)\n }\n\n all(): Extension[] {\n return [...this.#extensions.values()]\n }\n\n /**\n * The extension for `id`, requiring its module first if it hasn't registered yet. Registration is a\n * require-time side effect and the require cache is shared, so this is a no-op once loaded.\n *\n * The shared namespace must already be installed (../namespace) \u2014 callers reach here via ../index.ts,\n * which imports it.\n */\n load(id: string, entryPointPath: string): Extension {\n if (!this.get(id)) {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(entryPointPath)\n }\n\n const extension = this.get(id)\n\n if (!extension) {\n throw new ExtensionNotRegisteredError(id, entryPointPath)\n }\n\n return extension\n }\n\n // Test-only: clear the registry between isolated cases.\n reset(): void {\n this.#extensions.clear()\n }\n}\n\nexport const registry = new ExtensionRegistry()\n\n// Function-shaped accessors, kept because they are the package's published surface.\nexport function getExtension(id: string): Extension | undefined {\n return registry.get(id)\n}\n\nexport function getAllExtensions(): Extension[] {\n return registry.all()\n}\n\nexport function resetRegistry(): void {\n registry.reset()\n}\n", "import { Extension } from './extension'\nimport type { OAuth2Props } from './oauth/types'\nimport type { DictionaryRef } from './params'\nimport type { PollingTriggerProps } from './polling-triggers/types'\nimport type { RealtimeSetupProps, RealtimeTriggerProps } from './realtime-triggers/types'\nimport { registry } from './registry'\nimport type {\n ActionProps,\n AnySchema,\n ApiRequestFn,\n DictionaryProps,\n ExtensionApi,\n ExtensionProps,\n ShapeOf,\n} from './types'\n\n// `Flowrunner.createExtension(props)` \u2014 the v2 factory. Builds the Extension, registers it, and returns the\n// `ext` handle: the authoring-facing fa\u00E7ade whose registrars delegate straight to the Extension, which owns\n// the validation and the runtime-generated loader methods (see ./extension.ts).\n\n// Generic so an author's own types reach their handlers: `configItems` / `initContext` / `helpers` /\n// `apiRequest` are inferred here once, and the returned `ext` threads them into every registrar (which\n// then infers its own params). The body works against the erased props, since none of that matters to the\n// runtime \u2014 the single cast on the way out is where the author's shape is re-attached.\nexport function createExtension<\n TConfigSchema extends AnySchema = AnySchema,\n TContext = Record<string, unknown>,\n THelpers = Record<string, unknown>,\n TApiRequest extends ApiRequestFn = ApiRequestFn,\n>(\n props: ExtensionProps<TConfigSchema, TContext, THelpers, TApiRequest>\n): ExtensionApi<ShapeOf<TConfigSchema, TContext, THelpers, TApiRequest>> {\n const extension = new Extension(props as unknown as ExtensionProps)\n\n const api = {\n dictionary(dictionaryProps: DictionaryProps): DictionaryRef {\n return extension.registerDictionary(dictionaryProps)\n },\n\n addAction(actionProps: ActionProps): void {\n extension.registerAction(actionProps)\n },\n\n addPollingTrigger(triggerProps: PollingTriggerProps): void {\n extension.registerPollingTrigger(triggerProps)\n },\n\n setupRealtimeTriggers(realtimeProps: RealtimeSetupProps): void {\n extension.setupRealtime(realtimeProps)\n },\n\n addRealtimeTrigger(triggerProps: RealtimeTriggerProps): void {\n extension.registerRealtimeTrigger(triggerProps)\n },\n\n setupOauth2(oauthProps: OAuth2Props): void {\n extension.setupOAuth2(oauthProps)\n },\n\n extension,\n }\n\n registry.register(extension)\n\n return api as unknown as ExtensionApi<ShapeOf<TConfigSchema, TContext, THelpers, TApiRequest>>\n}\n", "import nodeCrypto from 'crypto'\n\n// Runtime crypto helpers exposed to service code as `Flowrunner.crypto` \u2014 realtime `verify`/`verifyRequest`\n// signature checks (09-realtime-triggers.md). Services can't `require` node modules, so HMAC, constant-time\n// comparison, and timestamp freshness live here.\n\nexport interface FlowrunnerCrypto {\n hmac(algo: string, key: string, data: string, encoding?: 'hex' | 'base64'): string\n timingSafeEqual(a: unknown, b: unknown): boolean\n ageSeconds(timestamp: string | number): number\n}\n\nexport const crypto: FlowrunnerCrypto = {\n hmac(algo, key, data, encoding = 'hex') {\n return nodeCrypto.createHmac(algo, key).update(data ?? '').digest(encoding)\n },\n\n // Constant-time string comparison; false (not throw) on nullish/length-mismatch so callers can `return`.\n timingSafeEqual(a, b) {\n if (typeof a !== 'string' || typeof b !== 'string') {\n return false\n }\n\n const bufferA = Buffer.from(a)\n const bufferB = Buffer.from(b)\n\n if (bufferA.length !== bufferB.length) {\n return false\n }\n\n try {\n return nodeCrypto.timingSafeEqual(bufferA, bufferB)\n } catch {\n return false\n }\n },\n\n // Seconds since `timestamp` (ISO string, or epoch seconds/ms \u2014 magnitude-detected).\n ageSeconds(timestamp) {\n const numeric = typeof timestamp === 'number' ? timestamp : Date.parse(timestamp) || Number(timestamp)\n const milliseconds = numeric < 1e12 ? numeric * 1000 : numeric\n\n return (Date.now() - milliseconds) / 1000\n },\n}\n", "import { type ServiceConfigItemType, ServiceConfigItemTypes, type ServiceConfigsValues } from './constants'\nimport type { ConfigItem } from './types'\n\ntype ConfigValueAdapter = {\n deserialize: (v: unknown) => unknown,\n isEmpty: (v: unknown) => boolean\n}\n\n// Keyed by item type with a mandatory `default` fallback; only types that need\n// special handling are listed, so a lookup by any ServiceConfigItemType may miss\n// and fall through to `default`.\nconst ConfigValueAdapters: Partial<Record<ServiceConfigItemType, ConfigValueAdapter>> & { default: ConfigValueAdapter } = {\n [ServiceConfigItemTypes.BOOL]: {\n deserialize: value => typeof value === 'string' ? value === 'true' : !!value,\n isEmpty: value => typeof value !== 'boolean',\n },\n\n default: {\n deserialize: value => value,\n isEmpty: value => !value,\n },\n}\n\n/**\n * Resolve the effective config values for a service instance: for each declared item take its value from the\n * single `configs` bag, deserialize it with the type adapter, and fall back to the item's default when empty.\n *\n * ONE bag on purpose. `shared` is a UI directive \u2014 it decides who fills a value in and in which dialog \u2014 so\n * it has no business steering resolution. A service installed as a custom extension has no shared tier at\n * all: the customer fills in every item in one dialog. Whoever runs a *shared* extension merges the two\n * tiers before calling in; everyone else passes the single bag they already have.\n */\nexport function prepareServiceConfig(configItems: ConfigItem[], configs: ServiceConfigsValues = {}): ServiceConfigsValues {\n const targetConfig: ServiceConfigsValues = {}\n\n for (const configItem of configItems) {\n const configName = configItem.name\n const configType = configItem.type\n\n const adapter = ConfigValueAdapters[configType] || ConfigValueAdapters.default\n\n targetConfig[configName] = adapter.deserialize(configs[configName])\n\n if (!adapter.isEmpty(targetConfig[configName])) {\n continue\n }\n\n const defaultConfig = adapter.deserialize(configItem.defaultValue)\n\n if (!adapter.isEmpty(defaultConfig)) {\n targetConfig[configName] = defaultConfig\n }\n }\n\n return targetConfig\n}\n", "import { FlowrunnerContextFiles, type FlowrunnerContextFilesOptions } from './context-files'\n\nexport type FlowrunnerContextOptions = FlowrunnerContextFilesOptions\n\nexport class FlowrunnerContext {\n Files: FlowrunnerContextFiles\n\n constructor(options: FlowrunnerContextOptions) {\n this.Files = new FlowrunnerContextFiles(options)\n }\n}\n", "import { ServiceConfigItemTypes } from '../common/constants'\nimport type { ConfigItem } from '../common/types'\nimport type { ConfigItemSource } from './types'\n\n// Normalize the raw descriptors a v1 service declares via `addService` into the canonical `ConfigItem`\n// shape returned to the console (resolving legacy `hint`/`displayName` aliases and filling defaults).\nexport function normalizeConfigItems(sourceConfigItems?: ConfigItemSource[]): ConfigItem[] {\n return sourceConfigItems?.map(item => ({\n name: item.name,\n type: item.type || ServiceConfigItemTypes.STRING,\n shared: !!item.shared,\n required: !!item.required,\n description: item.description || item.hint || '',\n label: item.label || item.displayName || item.name,\n defaultValue: item.defaultValue,\n options: item.options || [],\n })) || []\n}\n", "// v1-only runtime constants: the method-invocation arg shapes, the OAuth header the v1 service reads\n// tokens from, and the service-class constructor type used by the ServerCode registration seam.\n\nexport type MethodRequestArgumentsMap = Record<string, unknown>\nexport type MethodRequestArgumentsList = unknown[]\n\nexport const OAUTH_ACCESS_TOKEN_HEADER = 'oauth-access-token'\n\nexport type ServiceClassType = new (...args: unknown[]) => object;\n", "import '../namespace'\n\nimport { ServiceConfigItemTypes } from '../common/constants'\nimport type { ConfigItem } from '../common/types'\nimport { normalizeConfigItems } from './config'\nimport { type ServiceClassType } from './constants'\nimport type { ConfigItemSource } from './types'\n\n// The shared global `Flowrunner` is installed by ../namespace (imported above for its side effect). This\n// module owns only the v1 registration seam: `createFlowrunnerSandboxV1` toggles `Flowrunner.ServerCode` for\n// the duration of a v1 require so the required module's `addService(...)` call lands in the `services` map.\n\ninterface RegisteredService {\n ServiceClass: ServiceClassType\n configItems: ConfigItem[]\n}\n\nconst services = new Map<string, RegisteredService>()\n\nexport function createFlowrunnerSandboxV1(serviceId: string, cb: () => void): RegisteredService | undefined {\n global.Flowrunner.ServerCode = {\n addService(ServiceClass: ServiceClassType, sourceConfigItems?: ConfigItemSource[]) {\n services.set(serviceId, {\n ServiceClass,\n configItems: normalizeConfigItems(sourceConfigItems),\n })\n },\n\n ConfigItems: {\n TYPES: ServiceConfigItemTypes,\n },\n }\n\n try {\n cb()\n } finally {\n global.Flowrunner.ServerCode = null\n }\n\n return services.get(serviceId)\n}\n\n", "import { prepareServiceConfig } from '../common/config'\nimport { type ServiceConfigsValues } from '../common/constants'\nimport { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context'\nimport type { FilesApi } from '../common/context-files'\nimport type { ConfigItem } from '../common/types'\nimport {\n type MethodRequestArgumentsList,\n type MethodRequestArgumentsMap,\n OAUTH_ACCESS_TOKEN_HEADER,\n} from './constants'\nimport { createFlowrunnerSandboxV1 } from './namespace'\n\nfunction requireService(serviceId: string, serviceEntryPointPath: string) {\n const registered = createFlowrunnerSandboxV1(serviceId, () => {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(serviceEntryPointPath)\n })\n\n if (!registered?.ServiceClass) {\n throw new Error(`There is no registered ServiceClass serviceEntryPointPath=\"${ serviceEntryPointPath }\"`)\n }\n\n return registered\n}\n\ntype CreateRuntimeContextData = {\n serverURL: string,\n appId: string,\n apiKey: string,\n //\n runtimeKey: string,\n //\n flowId: string,\n executionId: string\n //\n accessToken?: string\n //\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n //\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n\n}\n\n// `flowrunner` is typed by the surface a service actually touches \u2014 `this.flowrunner.Files` \u2014 rather than by\n// the concrete FlowrunnerContext, so a host-supplied client (see `createFiles`) is assignable here too.\ntype FlowrunnerRuntimeContext = {\n flowrunner: { Files: FilesApi }\n httpHeaders: {\n [OAUTH_ACCESS_TOKEN_HEADER]?: string\n }\n}\n\nfunction createRuntimeContext(data: CreateRuntimeContextData): FlowrunnerRuntimeContext {\n const { serverURL, appId, apiKey, runtimeKey, flowId, executionId, accessToken, retrieveNewS3Token } = data\n\n const filesOptions: FlowrunnerContextOptions = {\n serverURL,\n appId,\n apiKey,\n //\n runtimeKey,\n //\n flowId,\n executionId,\n //\n retrieveNewS3Token,\n }\n\n // A v1 service has no `usesFileStorage` opt-in \u2014 `this.flowrunner.Files` is always live \u2014 so a\n // host-supplied client replaces it unconditionally. (v2 consults `createFiles` only when the extension\n // declares `usesFileStorage`, because that is what decides between a real client and the throwing proxy.)\n const flowrunnerContext: FlowrunnerRuntimeContext['flowrunner'] = data.createFiles\n ? { Files: data.createFiles(filesOptions) }\n : new FlowrunnerContext(filesOptions)\n\n const httpHeaders: FlowrunnerRuntimeContext['httpHeaders'] = {}\n\n if (accessToken) {\n httpHeaders[OAUTH_ACCESS_TOKEN_HEADER] = accessToken\n }\n\n return {\n httpHeaders,\n flowrunner: flowrunnerContext,\n }\n}\n\nfunction initServiceInstance(\n serviceId: string,\n serviceEntryPointPath: string,\n configs: ServiceConfigsValues | undefined,\n context: FlowrunnerRuntimeContext\n) {\n const { ServiceClass, configItems } = requireService(serviceId, serviceEntryPointPath)\n\n const config = prepareServiceConfig(configItems, configs)\n\n const service = new ServiceClass(config, context)\n\n Object.assign(service, {\n config,\n flowrunner: context.flowrunner,\n request: {\n context,\n headers: context.httpHeaders,\n },\n })\n\n return service\n}\n\nexport function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[] {\n const { configItems } = requireService(serviceId, serviceEntryPointPath)\n\n return configItems\n}\n\ntype RunServiceMethodData = {\n serviceId: string,\n serviceEntryPointPath: string,\n configs?: ServiceConfigsValues\n methodName: string\n methodData?: MethodRequestArgumentsMap,\n methodArgs?: MethodRequestArgumentsList\n retrieveNewS3Token: (runtimeKey: string) => Promise<{\n filesS3Token: string\n }>\n // Replaces `this.flowrunner.Files` for this invocation. The default talks to the console over HTTP; a host\n // may build its own against different storage (a legacy-service test mocking the Files API, an e2e harness\n // pointing at a local S3) without the runner or the service knowing.\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n executionContext: {\n runtimeKey: string\n accessToken: string\n appId: string\n apiKey: string\n serverURL: string\n flowId: string\n executionId: string\n }\n}\n\nexport async function runServiceMethod(data: RunServiceMethodData): Promise<unknown> {\n const {\n serviceId,\n serviceEntryPointPath,\n configs,\n methodName,\n methodArgs,\n retrieveNewS3Token,\n createFiles,\n } = data\n const { accessToken, runtimeKey, appId, apiKey, serverURL, flowId, executionId } = data.executionContext\n\n const context = createRuntimeContext({\n serverURL,\n appId,\n apiKey,\n //\n runtimeKey,\n //\n flowId,\n executionId,\n //\n accessToken,\n //\n retrieveNewS3Token,\n //\n createFiles,\n })\n\n const serviceInstance = initServiceInstance(serviceId, serviceEntryPointPath, configs, context)\n\n const invoke = (serviceInstance as Record<string, (...args: unknown[]) => unknown>)[methodName]\n\n return invoke.apply(serviceInstance, methodArgs || [])\n}\n\n", "// Public surface of the v2 (declarative, zod-based) extension runtime. Mirrors the v1 entry points\n// (getServiceConfigs / runServiceMethod) plus buildServiceDefinition \u2014 the v2 analogue of jsdoc-parser\n// that produces the same SharedExtensionDefinition model. Version-agnostic callers go through ../index.ts;\n// this module is only reached once a service has been detected as v2.\n\nimport { type ServiceConfigsValues } from '../common/constants'\nimport { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context'\nimport type { FilesApi } from '../common/context-files'\nimport type { ConfigItem } from '../common/types'\nimport type { SharedExtensionDefinition } from './model/model-types'\nimport { registry } from './registry'\nimport type { Logger } from './types'\n\nexport type { ConfigItem } from '../common/types'\nexport type { SharedExtensionDefinition } from './model/model-types'\n\n// The registry and what it holds. `getExtension` is how ../index.ts detects a v2 service; `resetRegistry`\n// lets a test harness isolate cases (@flowrunner/cli/runtime re-exports it).\nexport { ExecutionContext } from './context/execution-context'\nexport { Extension } from './extension'\nexport { getAllExtensions, getExtension, resetRegistry } from './registry'\n\n// The invocation/result shapes a host may need to type a call against the trigger seams.\nexport type { PollingInvocation, PollingResult } from './polling-triggers/types'\nexport type { RealtimeInvocation } from './realtime-triggers/types'\nexport type { HandlerBag, Logger } from './types'\n\nexport interface RunServiceMethodData {\n serviceId: string\n serviceEntryPointPath: string\n configs?: ServiceConfigsValues\n methodName: string\n methodData?: Record<string, unknown>\n methodArgs?: unknown[]\n logger?: Logger\n retrieveNewS3Token: (runtimeKey: string) => Promise<{ filesS3Token: string }>\n // Replaces the file-service client for this invocation. The default talks to the console over HTTP; a\n // host may build its own against different storage (an e2e harness pointing `ctx.files` at a local S3,\n // say) without the runner or the service knowing. Only consulted when the extension declares\n // `usesFileStorage` \u2014 the throwing proxy is unaffected.\n createFiles?: (options: FlowrunnerContextOptions) => FilesApi\n executionContext: {\n runtimeKey: string\n accessToken: string\n appId: string\n apiKey: string\n serverURL: string\n flowId: string\n executionId: string\n }\n}\n\nexport function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[] {\n return registry.load(serviceId, serviceEntryPointPath).toConfigItems()\n}\n\nexport function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition {\n return registry.load(serviceId, serviceEntryPointPath).toDefinition()\n}\n\n// The stock file-service client: the console's REST API at `{serverURL}/{appId}/{apiKey}/v1/files`.\nconst defaultCreateFiles = (options: FlowrunnerContextOptions): FilesApi => new FlowrunnerContext(options).Files\n\nexport async function runServiceMethod(data: RunServiceMethodData): Promise<unknown> {\n const { serviceId, serviceEntryPointPath, executionContext, retrieveNewS3Token, methodName } = data\n\n const methodData = data.methodData || {}\n\n const { serverURL, appId, apiKey, runtimeKey, flowId, executionId, accessToken } = executionContext\n\n const extension = registry.load(serviceId, serviceEntryPointPath)\n\n const filesOptions: FlowrunnerContextOptions = {\n serverURL,\n appId,\n apiKey,\n runtimeKey,\n flowId,\n executionId,\n retrieveNewS3Token,\n }\n\n const files = extension.props.usesFileStorage\n ? (data.createFiles ?? defaultCreateFiles)(filesOptions)\n : undefined\n\n const ctx = extension.createContext({ configs: data.configs, accessToken, logger: data.logger, files })\n\n return extension.run(methodName, methodData, ctx)\n}\n", "// Version-agnostic entry point for the flow-extension runner.\n//\n// Consumers import { getServiceConfigs, runServiceMethod } from\n// '@flowrunner/flow-extension-runner' without knowing the extension format version. This module requires\n// the service module once (in the v1 ServerCode sandbox so v1 modules register), then branches on whether\n// the module registered a v2 extension: a hit in the v2 registry \u21D2 v2, otherwise v1.\n\nimport './namespace'\n\nimport * as v1 from './v1'\nimport { createFlowrunnerSandboxV1 } from './v1/namespace'\nimport * as v2 from './v2'\n\nexport * from './errors'\nexport type { RunServiceMethodData } from './v2'\n\n// The file-storage contract and its value shapes, so a host can build its own `ctx.files` for\n// `runServiceMethod({ createFiles })` \u2014 see FilesApi in ./common/context-files.\nexport type { FlowrunnerContextOptions } from './common/context'\nexport type {\n DeleteOptions,\n DeleteResult,\n FileInfo,\n FilesApi,\n GetOptions,\n ListOptions,\n ListResult,\n UploadFileOptions,\n UploadResult,\n UsageResult,\n} from './common/context-files'\nexport { FileScope } from './common/context-files'\n\nexport type ExtensionVersion = 'v1' | 'v2'\n\nexport {\n createFlowrunnerSandboxV1,\n}\n\n// Require the module through the v1 sandbox (harmless for v2 \u2014 it just runs createExtension), then detect.\n// The require is cached, so the subsequent v1/v2 call re-requires for free.\nexport function detectVersion(serviceId: string, serviceEntryPointPath: string): ExtensionVersion {\n createFlowrunnerSandboxV1(serviceId, () => {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n require(serviceEntryPointPath)\n })\n\n return v2.getExtension(serviceId) ? 'v2' : 'v1'\n}\n\nexport function getServiceConfigs(\n serviceId: string,\n serviceEntryPointPath: string\n): ReturnType<typeof v1.getServiceConfigs> {\n return detectVersion(serviceId, serviceEntryPointPath) === 'v2'\n ? v2.getServiceConfigs(serviceId, serviceEntryPointPath)\n : v1.getServiceConfigs(serviceId, serviceEntryPointPath)\n}\n\nexport async function runServiceMethod(data: v2.RunServiceMethodData): Promise<unknown> {\n const frameworkVersion = detectVersion(data.serviceId, data.serviceEntryPointPath)\n\n const result = frameworkVersion === 'v2'\n ? await v2.runServiceMethod(data)\n : await v1.runServiceMethod(data as Parameters<typeof v1.runServiceMethod>[0])\n\n // console.log('got result:', JSON.stringify({\n // frameworkVersion,\n // serviceId: data.serviceId,\n // methodName: data.methodName,\n // methodData: data.methodData,\n // methodArgs: data.methodArgs,\n // result,\n // }, null, 2))\n\n return result\n}\n\n// Build the SharedExtensionDefinition model (serviceInfo + methodsMap). v2 derives it from the declarative\n// definition; v1 services are modeled by the jsdoc-parser, so this only serves v2 (returns null for v1).\nexport function buildServiceDefinition(\n serviceId: string,\n serviceEntryPointPath: string\n): v2.SharedExtensionDefinition | null {\n return detectVersion(serviceId, serviceEntryPointPath) === 'v2'\n ? v2.buildServiceDefinition(serviceId, serviceEntryPointPath)\n : null\n}\n", "import { type SharedExtensionMethodParam } from '@shared/scheme'\n\nimport type { TypedefsMap } from '../types'\n\nconst SCOPE_FIELD: SharedExtensionMethodParam = {\n name : 'scope',\n type : 'String',\n required : false,\n label : 'Scope',\n description : 'Storage scope: WORKSPACE (shared across flows), FLOW (this flow only), EXECUTION (this run only)',\n uiComponent : { type: 'DROPDOWN', options: { values: ['WORKSPACE', 'FLOW', 'EXECUTION'] } },\n defaultValue: 'FLOW',\n}\n\nexport const filesTypeDefs: TypedefsMap = {\n FilesUploadOptions: [\n SCOPE_FIELD,\n {\n name : 'filename',\n type : 'String',\n required : false,\n label : 'Filename',\n description: 'Custom filename (defaults to the original name if omitted)',\n uiComponent: { type: 'SINGLE_LINE_TEXT' },\n },\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URL remains valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'objectTtl',\n type : 'Number',\n required : false,\n label : 'File TTL (seconds)',\n description: 'How long the file is kept in storage (omit for permanent storage)',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'overwrite',\n type : 'Boolean',\n required : false,\n label : 'Overwrite existing',\n description: 'Replace the file if one with the same name already exists',\n uiComponent: { type: 'TOGGLE' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URL',\n description : 'Include a pre-signed download URL in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n ],\n\n FilesListOptions: [\n SCOPE_FIELD,\n {\n name : 'limit',\n type : 'Number',\n required : false,\n label : 'Limit',\n description: 'Maximum number of files to return',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URLs remain valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URLs',\n description : 'Include pre-signed download URLs in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n {\n name : 'cursor',\n type : 'String',\n required : false,\n label : 'Cursor',\n description: 'Pagination cursor from a previous response',\n uiComponent: { type: 'SINGLE_LINE_TEXT' },\n },\n ],\n\n FilesGetOptions: [\n SCOPE_FIELD,\n {\n name : 'ttl',\n type : 'Number',\n required : false,\n label : 'URL TTL (seconds)',\n description: 'How long the download URL remains valid',\n uiComponent: { type: 'NUMERIC' },\n },\n {\n name : 'generateUrl',\n type : 'Boolean',\n required : false,\n label : 'Generate download URL',\n description : 'Include a pre-signed download URL in the response',\n uiComponent : { type: 'TOGGLE' },\n defaultValue: true,\n },\n ],\n\n FilesDeleteOptions: [\n SCOPE_FIELD,\n ],\n}\n", "/* eslint-disable @typescript-eslint/no-require-imports */\nimport fs from 'fs'\nimport path from 'path'\n\n// ============================================================================\n// JSDoc programmatic parser (adapted from JS-Code-Runner)\n// ============================================================================\n\nexport interface DocletTag {\n originalTitle: string\n value?: string\n text?: string\n}\n\ninterface DocletParam {\n name: string\n type?: { names?: string[] }\n optional?: boolean\n description?: string\n}\n\ninterface DocletProperty {\n name: string\n type?: { names?: string[] }\n optional?: boolean\n description?: string\n}\n\nexport interface Doclet {\n kind: string\n name: string\n memberof?: string\n scope?: string\n description?: string\n tags?: DocletTag[]\n params?: DocletParam[]\n properties?: DocletProperty[]\n returns?: { type?: { names?: string[] } }[]\n access?: string\n}\n\nfunction resolveJSDocPath(): string {\n const jsDocHolders = require.resolve.paths('jsdoc/lib') || []\n const jsDocPaths = jsDocHolders.map((p: string) => path.join(p, 'jsdoc/lib'))\n\n for (let i = 0; i < jsDocPaths.length; i++) {\n if (fs.existsSync(jsDocPaths[i])) {\n return jsDocPaths[i]\n }\n }\n\n throw new Error('Can not resolve path to JSDoc module.')\n}\n\nconst jsdocPath = resolveJSDocPath()\nconst jsdocModulePath = (mod: string) => path.join(jsdocPath, ...mod.split('/'))\n\nlet _jsdocRequire: NodeRequire\n\nconst jsdocRequire = (modulePath: string) => {\n if (!_jsdocRequire) {\n _jsdocRequire = require('requizzle')({\n infect: true,\n requirePaths: { before: [jsdocPath] },\n })\n\n const Config = _jsdocRequire(jsdocModulePath('jsdoc/config'))\n const env = _jsdocRequire(jsdocModulePath('jsdoc/env'))\n env.conf = new Config().get()\n }\n\n return _jsdocRequire(jsdocModulePath(modulePath))\n}\n\n/**\n * Parse a JS file using jsdoc programmatically and return the doclets array.\n */\nexport function parseJSDoc(filePath: string): Doclet[] {\n const parser = jsdocRequire('jsdoc/src/parser').createParser()\n const handlers = jsdocRequire('jsdoc/src/handlers')\n\n handlers.attachTo(parser)\n\n return parser.parse([filePath])\n}\n", "import {\n type SharedExtensionDefinition,\n type SharedExtensionMetaInfo,\n type SharedExtensionMetaInfoArg,\n type SharedExtensionMethod,\n type SharedExtensionMethodParam,\n type SharedExtensionServiceInfo,\n} from '@shared/scheme'\n\nimport { filesTypeDefs } from './custom-type-defs/files'\nimport type { Doclet, DocletTag } from './lib'\nimport { parseJSDoc } from './lib'\nimport type { TypedefsMap } from './types'\n\n// ============================================================================\n// Internal types\n// ============================================================================\n\ninterface ParsedJSDocsResult {\n serviceInfo: SharedExtensionServiceInfo | null\n methods: MethodInfo[]\n typedefsMap: TypedefsMap\n}\n\ninterface MethodInfo extends Omit<SharedExtensionMethod, 'bodyParams' | 'queryParams' | 'metaInfo'> {\n // name: string\n // description: string\n // returnType: string\n // registerAs: string\n // colorStart: string\n // colorEnd: string\n private: boolean\n // operationName: string\n // customIcon: string\n // category: string\n sampleResult: SharedExtensionMethod['metaInfo']['sampleResult']\n sampleResultLoader: SharedExtensionMethod['metaInfo']['sampleResultLoader']\n route?: string\n routeStr: string\n paramDefs: SharedExtensionMethod['bodyParams']\n}\n\ntype TagCallback = (title: string, value: string, tag: DocletTag) => void\n\n// ============================================================================\n// customTypeDef \u2014 registry of built-in reusable param groups.\n// To add a new domain: create custom-type-defs/<domain>.ts and spread it here.\n// ============================================================================\n\nconst customTypeDef: TypedefsMap = {\n FilesUploadOptions: filesTypeDefs.FilesUploadOptions,\n FilesListOptions: filesTypeDefs.FilesListOptions,\n FilesGetOptions: filesTypeDefs.FilesGetOptions,\n FilesDeleteOptions: filesTypeDefs.FilesDeleteOptions,\n}\n\ntype TagProcessor<T> = (target: T, tagValue: string) => void\n\n// ============================================================================\n// Doclet extraction\n// ============================================================================\n\n/**\n * Find the main service class from doclets.\n * Looks for a class with @integrationName tag, or falls back to the last non-Error class.\n */\nfunction findServiceClassName(doclets: Doclet[]): string | null {\n const withIntegration = doclets\n .find(d => {\n if (d.kind === 'class' && d.tags) {\n return d.tags.find(t => t.originalTitle === 'integrationName')\n }\n })\n\n if (withIntegration) {\n return withIntegration.name\n }\n\n return null\n}\n\n/**\n * Parse a JS file, extract the service class, and return normalized doclets.\n */\nfunction parseJSDocs(filePath: string): ParsedJSDocsResult {\n const doclets = parseJSDoc(filePath)\n const className = findServiceClassName(doclets)\n\n let serviceInfo: SharedExtensionServiceInfo | null = null\n\n const methods: MethodInfo[] = []\n\n const typedefsMap: TypedefsMap = {}\n\n doclets.forEach(d => {\n if (d.kind === 'class' && d.name === className) {\n serviceInfo = composeServiceInfo(d)\n } else if (d.kind === 'function' && d.memberof === className && d.scope === 'instance') {\n methods.push(composeMethod(d))\n } else if (d.kind === 'typedef') {\n const typedefParams = collectTypedef(d)\n\n if (typedefParams) {\n typedefsMap[d.name] = typedefParams\n }\n }\n })\n\n return {\n serviceInfo,\n methods,\n // Extension-defined typedefs override built-ins so authors can customise if needed\n typedefsMap: { ...customTypeDef, ...typedefsMap },\n }\n}\n\nconst ServiceInfoTagsProcessors: Record<string, TagProcessor<SharedExtensionServiceInfo>> = {\n integrationName: (serviceInfo, tagValue) => {\n serviceInfo.integrationName = tagValue || undefined as unknown as string\n },\n\n integrationIcon: (serviceInfo, tagValue) => {\n serviceInfo.integrationIcon = tagValue || null\n },\n\n requireOAuth: serviceInfo => {\n serviceInfo.requireOAuth = true\n },\n\n integrationTriggersScope: (serviceInfo, tagValue) => {\n serviceInfo.integrationTriggersScope = tagValue || null\n },\n}\n\nfunction composeServiceInfo(d: Doclet): SharedExtensionServiceInfo {\n const serviceInfo: SharedExtensionServiceInfo = {\n serviceClassName: d.name,\n integrationName: d.name,\n integrationIcon: null,\n requireOAuth: undefined,\n integrationTriggersScope: null,\n }\n\n iterateTags(d.tags, (tagName, tagValue) => {\n if (ServiceInfoTagsProcessors[tagName]) {\n ServiceInfoTagsProcessors[tagName](serviceInfo, tagValue)\n }\n })\n\n return serviceInfo\n}\n\nfunction iterateTags(tags: DocletTag[] | undefined, cb: TagCallback): void {\n if (tags) {\n tags.forEach(tag => {\n const title = tag.originalTitle\n const value = tag.value || tag.text || ''\n\n cb(title, value, tag)\n })\n }\n}\n\nconst MethodTagsProcessors: Record<string, TagProcessor<MethodInfo>> = {\n paramDef: (methodInfo, tagValue) => {\n if (tagValue) {\n const parsedValue = parseJSON(tagValue)\n\n if (parsedValue) {\n methodInfo.paramDefs.push(parsedValue as SharedExtensionMethodParam)\n }\n }\n },\n\n route: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.route = tagValue\n }\n },\n\n registerAs: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.registerAs = tagValue\n }\n },\n\n operationName: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.operationName = tagValue\n }\n },\n\n customIcon: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.customIcon = tagValue\n }\n },\n\n category: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.category = tagValue\n }\n },\n\n description: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.description = tagValue\n }\n },\n\n appearanceColor: (methodInfo, tagValue) => {\n if (tagValue) {\n const colors = extractColors(tagValue)\n\n methodInfo.colorStart = colors.colorStart\n methodInfo.colorEnd = colors.colorEnd\n }\n },\n\n private: methodInfo => {\n methodInfo.private = true\n },\n\n sampleResult: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.sampleResult = parseJSON(tagValue)\n }\n },\n\n sampleResultLoader: (methodInfo, tagValue) => {\n if (tagValue) {\n methodInfo.sampleResultLoader = parseJSON(tagValue) as SharedExtensionMetaInfo['sampleResultLoader']\n }\n },\n}\n\nfunction composeMethod(m: Doclet): MethodInfo {\n const methodInfo: MethodInfo = {\n name: m.name,\n description: m.description || '',\n returnType: mapReturnType(m.returns?.[0].type?.names?.[0]),\n registerAs: '',\n colorStart: '',\n colorEnd: '',\n private: m.access === 'private',\n operationName: m.name,\n customIcon: '',\n category: '',\n sampleResult: null,\n sampleResultLoader: null,\n routeStr: '',\n paramDefs: [],\n }\n\n if (m.params) {\n m.params.forEach(p => {\n methodInfo.paramDefs.push({\n name: p.name,\n type: p.type?.names?.[0] || 'String',\n required: !p.optional,\n })\n })\n }\n\n iterateTags(m.tags, (tagName, tagValue) => {\n if (MethodTagsProcessors[tagName]) {\n MethodTagsProcessors[tagName](methodInfo, tagValue)\n }\n })\n\n return methodInfo\n}\n\n// ============================================================================\n// Type mapping\n// ============================================================================\n\nconst PRIMITIVES = ['String', 'Object', 'Boolean', 'Number']\n\nconst ParamTypesMap: Record<string, string> = {\n String: 'STRING',\n Object: 'OBJECT',\n Boolean: 'BOOLEAN',\n Number: 'NUMBER',\n}\n\nfunction mapParamType(type: string | undefined): string {\n if (!type) {\n return 'STRING'\n }\n\n if (type.startsWith('Array')) {\n return 'LIST'\n }\n\n return ParamTypesMap[type] || 'STRING'\n}\n\nfunction mapReturnType(type: string | undefined): string {\n if (type) {\n if (type === 'Array' || type.startsWith('Array.') || type.startsWith('Array<')) return 'LIST'\n if (type === 'Object') return 'OBJECT'\n if (type === 'String') return 'STRING'\n }\n\n return 'VOID'\n}\n\n// ============================================================================\n// Typedef map (from @paramDef tags on typedefs)\n// ============================================================================\n\nfunction collectTypedef(d: Doclet): SharedExtensionMethodParam[] | undefined {\n const defs: SharedExtensionMethodParam[] = []\n\n iterateTags(d.tags, (title, value) => {\n if (title === 'paramDef') {\n const parsedValue = parseJSON(value)\n\n if (parsedValue) {\n defs.push(parsedValue as SharedExtensionMethodParam)\n }\n }\n })\n\n if (d.properties) {\n d.properties.forEach(property => {\n // JSDoc may omit the type on a @property line \u2014 preserved as-is at runtime\n const type = property?.type?.names?.[0] as string\n\n defs.push({\n name: property.name,\n required: !property.optional,\n description: property.description,\n type,\n })\n })\n }\n\n if (defs.length > 0) {\n return defs\n }\n}\n\n// ============================================================================\n// Param building (resolves typedefs)\n// ============================================================================\n\nfunction buildParam(paramDef: SharedExtensionMethodParam, typedefsMap: TypedefsMap, nested = false): SharedExtensionMethodParam {\n const isCustomType = !nested &&\n paramDef.type &&\n !PRIMITIVES.includes(paramDef.type) &&\n !paramDef.type.startsWith('Array')\n\n let properties: SharedExtensionMethodParam[] | undefined\n\n if (isCustomType && typedefsMap[paramDef.type!]) {\n let subDefs = typedefsMap[paramDef.type!]\n\n if (paramDef.include?.length) {\n const includeSet = new Set(paramDef.include)\n\n subDefs = subDefs.filter(sd => includeSet.has(sd.name))\n }\n\n if (subDefs.length > 0) {\n properties = subDefs.map(sp => buildParam(sp, typedefsMap, true))\n }\n }\n\n const param: SharedExtensionMethodParam = {\n name: paramDef.name,\n required: paramDef.required || false,\n description: paramDef.description || '',\n type: isCustomType ? 'OBJECT' : mapParamType(paramDef.type),\n }\n\n if (nested) {\n if (paramDef.label !== undefined) {\n param.label = paramDef.label\n }\n\n if (paramDef.uiComponent !== undefined) {\n param.uiComponent = paramDef.uiComponent\n }\n\n if (paramDef.dependsOn !== undefined) {\n param.dependsOn = paramDef.dependsOn\n }\n\n if (paramDef.dictionary !== undefined) {\n param.dictionary = paramDef.dictionary\n }\n\n if (paramDef.defaultValue !== undefined) {\n param.defaultValue = paramDef.defaultValue\n }\n }\n\n if (properties && properties.length > 0) {\n param.properties = properties\n }\n\n if (param.type === 'LIST') {\n param.items = { type: 'OBJECT' }\n }\n\n return param\n}\n\n// ============================================================================\n// MetaInfo args\n// ============================================================================\n\nfunction buildMetaInfoArgs(paramDefs: SharedExtensionMethodParam[], typedefsMap: TypedefsMap): Record<string, SharedExtensionMetaInfoArg> {\n const args: Record<string, SharedExtensionMetaInfoArg> = {}\n\n for (const pd of paramDefs) {\n const isCustomType = pd.type &&\n !PRIMITIVES.includes(pd.type) &&\n !pd.type.startsWith('Array')\n\n if (isCustomType && typedefsMap[pd.type!]) {\n const entry: SharedExtensionMetaInfoArg = {}\n if (pd.label) entry.label = pd.label\n args[pd.name] = entry\n continue\n }\n\n const entry: SharedExtensionMetaInfoArg = {}\n\n if (pd.label) entry.label = pd.label\n if (pd.dictionary) entry.dictionary = pd.dictionary\n if (pd.dependsOn && pd.dependsOn.length > 0) entry.dependsOn = pd.dependsOn\n if (pd.uiComponent) entry.uiComponent = pd.uiComponent\n\n args[pd.name] = entry\n }\n\n return args\n}\n\n// ============================================================================\n// Colors\n// ============================================================================\n\nfunction extractColors(colorStr: string): { colorStart: string; colorEnd: string } {\n if (!colorStr) {\n return { colorStart: '', colorEnd: '' }\n }\n\n const colors = colorStr.split(/[,\\s]+/).map(c => c.trim()).filter(Boolean)\n\n return {\n colorStart: colors[0] || '',\n colorEnd: colors[1] || colors[0] || '',\n }\n}\n\n// ============================================================================\n// Service JSON builder \u2014 converts normalized parseJSDocs output to service JSON\n// ============================================================================\n\nfunction parseJSON(str: string): unknown {\n try {\n return JSON.parse(str)\n } catch {\n return null\n }\n}\n\nexport function parseJsDocToServiceJson(entryPoint: string): SharedExtensionDefinition {\n const { serviceInfo, methods, typedefsMap } = parseJSDocs(entryPoint)\n\n const methodsMap: SharedExtensionDefinition['methodsMap'] = {}\n\n for (const method of methods) {\n if (method.private) {\n continue\n }\n\n const {\n name,\n route,\n registerAs,\n colorStart,\n colorEnd,\n operationName,\n customIcon,\n category,\n description,\n sampleResult,\n sampleResultLoader,\n paramDefs,\n returnType,\n } = method\n\n const isSystem = registerAs === 'SYSTEM'\n\n // Determine HTTP method from @route for param placement\n const httpMethod = route\n ? route.split(/\\s+/)[0].toUpperCase()\n : name.startsWith('get') ? 'GET' : 'POST'\n\n const isQueryPlacement = httpMethod === 'GET'\n\n // Build params\n const params = paramDefs.map(pd => buildParam(pd, typedefsMap))\n\n const queryParams = isQueryPlacement ? params : []\n const bodyParams = isQueryPlacement ? [] : params\n\n // Build metaInfo \u2014 only from @paramDef, not from standard @param fallback\n const metaInfoArgs = paramDefs.length > 0\n ? buildMetaInfoArgs(paramDefs, typedefsMap)\n : {}\n\n methodsMap[name] = {\n colorStart,\n colorEnd,\n queryParams, // todo remove me\n bodyParams,\n customIcon: isSystem ? undefined : customIcon,\n registerAs,\n category,\n metaInfo: {\n args: metaInfoArgs,\n sampleResult: isSystem ? undefined : sampleResult,\n sampleResultLoader: (isSystem ? undefined : sampleResultLoader) as SharedExtensionMethod['metaInfo']['sampleResultLoader'],\n },\n returnType,\n description,\n operationName,\n name,\n }\n }\n\n return {\n runnerVersion: 'v1', //TODO: temp\n methodsMap,\n serviceInfo: serviceInfo!,\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,wDAAAA,UAAA;AAAA;AAEA,WAAO,eAAeA,UAAS,cAAc;AAAA,MAC3C,OAAO;AAAA,IACT,CAAC;AACD,IAAAA,SAAQ,iBAAiB;AACzB,IAAAA,SAAQ,YAAY;AACpB,IAAAA,SAAQ,cAAc;AACtB,IAAAA,SAAQ,iBAAiB;AACzB,IAAAA,SAAQ,cAAc;AACtB,IAAAA,SAAQ,gBAAgBA,SAAQ,WAAWA,SAAQ,WAAWA,SAAQ,WAAWA,SAAQ,aAAaA,SAAQ,UAAUA,SAAQ,YAAYA,SAAQ,SAAS;AAC7J,IAAA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C9C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL,eAAe;AAAA;AAAA,IACf;AAAA,IACA;AAAA,EACF;AACF;",
6
+ "names": ["exports", "o", "castArray", "isObject", "isFormData", "FormData", "isStream", "isNodeJS", "isBrowser", "path", "isBytes", "isBlob", "isWebFormData", "exports", "o", "hint", "_wrapNativeSuper", "Class", "_construct", "Parent", "args", "_setPrototypeOf", "p", "_getPrototypeOf", "ResponseError", "TLSError", "text", "exports", "path", "rejectWithError", "_send", "Buffer", "body", "headers", "send", "exports", "o", "hint", "EventEmitter", "exports", "stringify", "value", "exports", "o", "_getRequireWildcardCache", "nodeInterop", "r", "hint", "_setPrototypeOf", "p", "_getPrototypeOf", "Request", "path", "_loop", "formKey", "unwrap", "unwrapBody", "exports", "path", "headers", "exports", "module", "path", "buildServiceDefinition", "getServiceConfigs", "runServiceMethod", "import_backendless_request", "hint", "meta", "path", "text", "path", "EXPECTED", "path", "fail", "fail", "fail", "import_zod", "baseZod", "baseZod", "text", "toJsonValue", "toJsonValue", "WRAPPERS", "toJsonValue", "fail", "fail", "scope", "BLRequest", "ttl", "generateUrl", "hint", "fail", "crypto", "path", "path", "import_crypto", "crypto", "nodeCrypto", "BLRequest", "crypto", "getServiceConfigs", "runServiceMethod", "getServiceConfigs", "runServiceMethod", "buildServiceDefinition", "import_path", "path", "fs", "entry"]
7
7
  }