@botpress/client 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +7 -7
- package/dist/bundle.cjs.map +2 -2
- package/dist/gen/api.d.ts +423 -592
- package/dist/gen/base.d.ts +2 -3
- package/dist/gen/client.d.ts +7 -3
- package/dist/gen/common.d.ts +4 -4
- package/dist/gen/errors.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
- package/dist/oauth.d.ts +0 -24
package/dist/bundle.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js", "../../../../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js", "../../../../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js", "../../../../../node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js", "../../../../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js", "../../../../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/populate.js", "../../../../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js", "../../../../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js", "../../../../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js", "../../../../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js", "../../../../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js", "../../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js", "../../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js", "../../../../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js", "../../../../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js", "../../../../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js", "../../../../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js", "../../../../../node_modules/.pnpm/browser-or-node@2.1.1/node_modules/browser-or-node/lib/index.js", "../src/index.ts", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/index.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/bind.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/utils.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/AxiosError.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/env/classes/FormData.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/toFormData.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/AxiosURLSearchParams.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/buildURL.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/InterceptorManager.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/defaults/transitional.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/platform/node/classes/URLSearchParams.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/platform/node/classes/FormData.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/platform/node/index.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/toURLEncodedForm.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/formDataToJSON.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/defaults/index.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/parseHeaders.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/AxiosHeaders.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/transformData.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/cancel/isCancel.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/cancel/CanceledError.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/settle.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/combineURLs.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/buildFullPath.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/adapters/http.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/env/data.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/parseProtocol.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/fromDataURI.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/AxiosTransformStream.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/throttle.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/speedometer.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/cookies.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/adapters/xhr.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/adapters/adapters.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/dispatchRequest.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/mergeConfig.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/validator.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/core/Axios.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/cancel/CancelToken.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/spread.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/isAxiosError.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/helpers/HttpStatusCode.js", "../../../../../node_modules/.pnpm/axios@1.2.5/node_modules/axios/lib/axios.js", "../src/config.ts", "../src/gen/errors.ts", "../src/gen/base.ts", "../src/gen/common.ts", "../src/gen/api.ts", "../src/gen/client.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 * 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", "// populates missing values\nmodule.exports = function(dst, src) {\n\n Object.keys(src).forEach(function(prop)\n {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n", "var 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 Stream = require('stream').Stream;\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar populate = require('./populate.js');\n\n// Public API\nmodule.exports = FormData;\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\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(options);\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) {\n this[option] = options[option];\n }\n}\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') {\n value = '' + value;\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (util.isArray(value)) {\n // Please convert your array into string\n // the way web server expects it\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 // 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 if (options.knownLength != null) {\n valueLength += +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 +=\n Buffer.byteLength(header) +\n FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response or not a stream\n if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {\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\n if (value.hasOwnProperty('fd')) {\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 if (value.end != undefined && value.end != Infinity && value.start != undefined) {\n\n // when end specified\n // no need to calculate range\n // inclusive, starts with 0\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 (value.hasOwnProperty('httpVersion')) {\n callback(null, +value.headers['content-length']);\n\n // or request stream http://github.com/mikeal/request\n } else if (value.hasOwnProperty('httpModule')) {\n // wait till response come back\n value.on('response', function(response) {\n value.pause();\n callback(null, +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 // custom header specified (as string)?\n // it becomes responsible for boundary\n // (e.g. to handle extra CRLFs on .NET servers)\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=\"' + 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) {\n if (!headers.hasOwnProperty(prop)) continue;\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue;\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 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 ;\n\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.name || value.path) {\n // custom filename take precedence\n // formidable and the browser add a name property\n // fs- and request- streams have path property\n filename = path.basename(options.filename || value.name || value.path);\n } else if (value.readable && value.hasOwnProperty('httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + 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.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value.readable && value.hasOwnProperty('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 && 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) {\n if (userHeaders.hasOwnProperty(header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function(boundary) {\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 = new 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 // They are optimized for boyer-moore parsing.\n var boundary = '--------------------------';\n for (var i = 0; i < 24; i++) {\n boundary += Math.floor(Math.random() * 10).toString(16);\n }\n\n this._boundary = boundary;\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\nFormData.prototype.getLengthSync = function() {\n var knownLength = this._overheadLength + this._valueLength;\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 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 // Some async length retrievers are present\n // therefore synchronous length calculation is false.\n // Please use getLength(callback) to get proper length\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\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\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 , options\n , defaults = {method: 'post'}\n ;\n\n // parse provided url if it's string\n // or treat it as options object\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 && err !== 'Unknown stream') {\n this._error(err);\n return;\n }\n\n // add content length\n if (length) {\n request.setHeader('Content-Length', length);\n }\n\n this.pipe(request);\n if (cb) {\n var onResponse;\n\n var callback = function (error, responce) {\n request.removeListener('error', callback);\n request.removeListener('response', onResponse);\n\n return cb.call(this, error, responce);\n };\n\n onResponse = callback.bind(this, null);\n\n request.on('error', callback);\n request.on('response', onResponse);\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};\n", "'use strict';\n\nvar parseUrl = require('url').parse;\n\nvar DEFAULT_PORTS = {\n ftp: 21,\n gopher: 70,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443,\n};\n\nvar stringEndsWith = String.prototype.endsWith || function(s) {\n return s.length <= this.length &&\n this.indexOf(s, this.length - s.length) !== -1;\n};\n\n/**\n * @param {string|object} url - The URL, or the result from url.parse.\n * @return {string} The URL of the proxy that should handle the request to the\n * given URL. If no proxy is set, this will be an empty string.\n */\nfunction getProxyForUrl(url) {\n var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};\n var proto = parsedUrl.protocol;\n var hostname = parsedUrl.host;\n var port = parsedUrl.port;\n if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {\n return ''; // Don't proxy URLs without a valid scheme or host.\n }\n\n proto = proto.split(':', 1)[0];\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '');\n port = parseInt(port) || DEFAULT_PORTS[proto] || 0;\n if (!shouldProxy(hostname, port)) {\n return ''; // Don't proxy URLs that match NO_PROXY.\n }\n\n var proxy =\n getEnv('npm_config_' + proto + '_proxy') ||\n getEnv(proto + '_proxy') ||\n getEnv('npm_config_proxy') ||\n getEnv('all_proxy');\n if (proxy && proxy.indexOf('://') === -1) {\n // Missing scheme in proxy, default to the requested URL's scheme.\n proxy = proto + '://' + proxy;\n }\n return proxy;\n}\n\n/**\n * Determines whether a given URL should be proxied.\n *\n * @param {string} hostname - The host name of the URL.\n * @param {number} port - The effective port of the URL.\n * @returns {boolean} Whether the given URL should be proxied.\n * @private\n */\nfunction shouldProxy(hostname, port) {\n var NO_PROXY =\n (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();\n if (!NO_PROXY) {\n return true; // Always proxy if NO_PROXY is not set.\n }\n if (NO_PROXY === '*') {\n return false; // Never proxy if wildcard is set.\n }\n\n return NO_PROXY.split(/[,\\s]/).every(function(proxy) {\n if (!proxy) {\n return true; // Skip zero-length hosts.\n }\n var parsedProxy = proxy.match(/^(.+):(\\d+)$/);\n var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;\n var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;\n if (parsedProxyPort && parsedProxyPort !== port) {\n return true; // Skip if ports don't match.\n }\n\n if (!/^[.*]/.test(parsedProxyHostname)) {\n // No wildcards, so stop proxying if there is an exact match.\n return hostname !== parsedProxyHostname;\n }\n\n if (parsedProxyHostname.charAt(0) === '*') {\n // Remove leading wildcard.\n parsedProxyHostname = parsedProxyHostname.slice(1);\n }\n // Stop proxying if the hostname ends with the no_proxy host.\n return !stringEndsWith.call(hostname, parsedProxyHostname);\n });\n}\n\n/**\n * Get the value for an environment variable.\n *\n * @param {string} key - The name of the environment variable.\n * @return {string} The value of the environment variable.\n * @private\n */\nfunction getEnv(key) {\n return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';\n}\n\nexports.getProxyForUrl = getProxyForUrl;\n", "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n", "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n", "var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\n// Error types with codes\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\"\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n abortRequest(this._currentRequest);\n this.emit(\"abort\");\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new TypeError(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230\u00A75.3.1: When making a request directly to an origin server, [\u2026]\n // a client MUST send only the absolute path [\u2026] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, [\u2026]\n // a client MUST send the target URI in absolute-form [\u2026].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n /* istanbul ignore else */\n if (request === self._currentRequest) {\n // Report any write errors\n /* istanbul ignore if */\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n /* istanbul ignore else */\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231\u00A76.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n abortRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231\u00A76.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new TooManyRedirectsError());\n return;\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231\u00A76.4: Automatic redirection needs to done with\n // care for methods not known to be safe, [\u2026]\n // RFC7231\u00A76.4.2\u20133: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231\u00A76.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource [\u2026]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) [\u2026]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = url.parse(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Determine the URL of the redirection\n var redirectUrl;\n try {\n redirectUrl = url.resolve(currentUrl, location);\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError({ cause: cause }));\n return;\n }\n\n // Create the redirected request\n debug(\"redirecting to\", redirectUrl);\n this._isRedirect = true;\n var redirectUrlParts = url.parse(redirectUrl);\n Object.assign(this._options, redirectUrlParts);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrlParts.protocol !== currentUrlParts.protocol &&\n redirectUrlParts.protocol !== \"https:\" ||\n redirectUrlParts.host !== currentHost &&\n !isSubdomain(redirectUrlParts.host, currentHost)) {\n removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n try {\n beforeRedirect(this._options, responseDetails, requestDetails);\n }\n catch (err) {\n this.emit(\"error\", err);\n return;\n }\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n try {\n this._performRequest();\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError({ cause: cause }));\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters\n if (isString(input)) {\n var parsed;\n try {\n parsed = urlToOptions(new URL(input));\n }\n catch (err) {\n /* istanbul ignore next */\n parsed = url.parse(input);\n }\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n input = parsed;\n }\n else if (URL && (input instanceof URL)) {\n input = urlToOptions(input);\n }\n else {\n callback = options;\n options = input;\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\n/* istanbul ignore next */\nfunction noop() { /* empty */ }\n\n// from https://github.com/nodejs/node/blob/master/lib/internal/url.js\nfunction urlToOptions(urlObject) {\n var options = {\n protocol: urlObject.protocol,\n hostname: urlObject.hostname.startsWith(\"[\") ?\n /* istanbul ignore next */\n urlObject.hostname.slice(1, -1) :\n urlObject.hostname,\n hash: urlObject.hash,\n search: urlObject.search,\n pathname: urlObject.pathname,\n path: urlObject.pathname + urlObject.search,\n href: urlObject.href,\n };\n if (urlObject.port !== \"\") {\n options.port = Number(urlObject.port);\n }\n return options;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n Error.captureStackTrace(this, this.constructor);\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n CustomError.prototype.constructor = CustomError;\n CustomError.prototype.name = \"Error [\" + code + \"]\";\n return CustomError;\n}\n\nfunction abortRequest(request) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.abort();\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n\nvar isNode = typeof process !== \"undefined\" && process.versions != null && process.versions.node != null;\n\nvar isWebWorker = (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) === \"object\" && self.constructor && self.constructor.name === \"DedicatedWorkerGlobalScope\";\n\n/**\n * @see https://github.com/jsdom/jsdom/releases/tag/12.0.0\n * @see https://github.com/jsdom/jsdom/issues/1537\n */\nvar isJsDom = typeof window !== \"undefined\" && window.name === \"nodejs\" || typeof navigator !== \"undefined\" && (navigator.userAgent.includes(\"Node.js\") || navigator.userAgent.includes(\"jsdom\"));\n\nvar isDeno = typeof Deno !== \"undefined\" && typeof Deno.version !== \"undefined\" && typeof Deno.version.deno !== \"undefined\";\n\nexports.isBrowser = isBrowser;\nexports.isWebWorker = isWebWorker;\nexports.isNode = isNode;\nexports.isJsDom = isJsDom;\nexports.isDeno = isDeno;", "import axios from 'axios'\nexport * as axios from 'axios'\nimport { getClientConfig, ClientProps, ClientConfig } from './config'\nexport type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration } from './gen'\nexport * from './gen/errors'\nimport { ApiClient as AutoGeneratedClient } from './gen/client'\n\nexport class Client extends AutoGeneratedClient {\n public readonly config: ClientConfig\n\n public constructor(clientProps: ClientProps = {}) {\n const clientConfig = getClientConfig(clientProps)\n const { host, headers, withCredentials, timeout } = clientConfig\n\n const axiosClient = axios.create({\n maxBodyLength: 100 * 1024 * 1024, // 100MB\n maxContentLength: 1024 * 1024 * 1024, // 100MB\n timeout: timeout ?? 60_000,\n withCredentials,\n headers,\n })\n\n super(undefined, host, axiosClient)\n\n this.config = clientConfig\n }\n}\n", "import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n}\n", "'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n", "'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n const pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\n );\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[_-\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n if (reducer(descriptor, name, obj) !== false) {\n reducedDescriptors[name] = descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n toJSONObject\n};\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n", "import FormData from 'form-data';\nexport default FormData;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport envFormData from '../env/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliant(thing) {\n return thing && utils.isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator];\n}\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (envFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && isSpecCompliant(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n (utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n", "'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n", "'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n", "'use strict';\n\nimport url from 'url';\nexport default url.URLSearchParams;\n", "import FormData from 'form-data';\n\nexport default FormData;\n", "import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\n\nexport default {\n isNode: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob: typeof Blob !== 'undefined' && Blob || null\n },\n protocols: [ 'http', 'https', 'file', 'data' ]\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\nconst DEFAULT_CONTENT_TYPE = {\n 'Content-Type': undefined\n};\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nexport default defaults;\n", "'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nfunction isValidHeaderName(str) {\n return /^[-_a-zA-Z]+$/.test(str.trim());\n}\n\nfunction matchHeaderValue(context, value, header, filter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear() {\n return Object.keys(this).forEach(this.delete.bind(this));\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent']);\n\nutils.freezeMethods(AxiosHeaders.prototype);\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n", "'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n", "'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n", "'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport buildURL from './../helpers/buildURL.js';\nimport {getProxyForUrl} from 'proxy-from-env';\nimport http from 'http';\nimport https from 'https';\nimport followRedirects from 'follow-redirects';\nimport zlib from 'zlib';\nimport {VERSION} from '../env/data.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport platform from '../platform/index.js';\nimport fromDataURI from '../helpers/fromDataURI.js';\nimport stream from 'stream';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport AxiosTransformStream from '../helpers/AxiosTransformStream.js';\nimport EventEmitter from 'events';\n\nconst zlibOptions = {\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n};\n\nconst brotliOptions = {\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n}\n\nconst isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);\n\nconst {http: httpFollow, https: httpsFollow} = followRedirects;\n\nconst isHttps = /https:?/;\n\nconst supportedProtocols = platform.protocols.map(protocol => {\n return protocol + ':';\n});\n\n/**\n * If the proxy or config beforeRedirects functions are defined, call them with the options\n * object.\n *\n * @param {Object<string, any>} options - The options object that was passed to the request.\n *\n * @returns {Object<string, any>}\n */\nfunction dispatchBeforeRedirect(options) {\n if (options.beforeRedirects.proxy) {\n options.beforeRedirects.proxy(options);\n }\n if (options.beforeRedirects.config) {\n options.beforeRedirects.config(options);\n }\n}\n\n/**\n * If the proxy or config afterRedirects functions are defined, call them with the options\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} configProxy configuration from Axios options object\n * @param {string} location\n *\n * @returns {http.ClientRequestArgs}\n */\nfunction setProxy(options, configProxy, location) {\n let proxy = configProxy;\n if (!proxy && proxy !== false) {\n const proxyUrl = getProxyForUrl(location);\n if (proxyUrl) {\n proxy = new URL(proxyUrl);\n }\n }\n if (proxy) {\n // Basic proxy authorization\n if (proxy.username) {\n proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');\n }\n\n if (proxy.auth) {\n // Support proxy auth object form\n if (proxy.auth.username || proxy.auth.password) {\n proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');\n }\n const base64 = Buffer\n .from(proxy.auth, 'utf8')\n .toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n options.headers.host = options.hostname + (options.port ? ':' + options.port : '');\n const proxyHost = proxy.hostname || proxy.host;\n options.hostname = proxyHost;\n // Replace 'host' since options is not a URL object\n options.host = proxyHost;\n options.port = proxy.port;\n options.path = location;\n if (proxy.protocol) {\n options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;\n }\n }\n\n options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {\n // Configure proxy for redirected request, passing the original config proxy to apply\n // the exact same logic as if the redirected request was performed by axios directly.\n setProxy(redirectOptions, configProxy, redirectOptions.href);\n };\n}\n\nconst isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';\n\n/*eslint consistent-return:0*/\nexport default isHttpAdapterSupported && function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n let data = config.data;\n const responseType = config.responseType;\n const responseEncoding = config.responseEncoding;\n const method = config.method.toUpperCase();\n let isFinished;\n let isDone;\n let rejected = false;\n let req;\n\n // temporary internal emitter until the AxiosRequest class will be implemented\n const emitter = new EventEmitter();\n\n function onFinished() {\n if (isFinished) return;\n isFinished = true;\n\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(abort);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', abort);\n }\n\n emitter.removeAllListeners();\n }\n\n function done(value, isRejected) {\n if (isDone) return;\n\n isDone = true;\n\n if (isRejected) {\n rejected = true;\n onFinished();\n }\n\n isRejected ? rejectPromise(value) : resolvePromise(value);\n }\n\n const resolve = function resolve(value) {\n done(value);\n };\n\n const reject = function reject(value) {\n done(value, true);\n };\n\n function abort(reason) {\n emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);\n }\n\n emitter.once('abort', reject);\n\n if (config.cancelToken || config.signal) {\n config.cancelToken && config.cancelToken.subscribe(abort);\n if (config.signal) {\n config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);\n }\n }\n\n // Parse url\n const fullPath = buildFullPath(config.baseURL, config.url);\n const parsed = new URL(fullPath);\n const protocol = parsed.protocol || supportedProtocols[0];\n\n if (protocol === 'data:') {\n let convertedData;\n\n if (method !== 'GET') {\n return settle(resolve, reject, {\n status: 405,\n statusText: 'method not allowed',\n headers: {},\n config\n });\n }\n\n try {\n convertedData = fromDataURI(config.url, responseType === 'blob', {\n Blob: config.env && config.env.Blob\n });\n } catch (err) {\n throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);\n }\n\n if (responseType === 'text') {\n convertedData = convertedData.toString(responseEncoding);\n\n if (!responseEncoding || responseEncoding === 'utf8') {\n data = utils.stripBOM(convertedData);\n }\n } else if (responseType === 'stream') {\n convertedData = stream.Readable.from(convertedData);\n }\n\n return settle(resolve, reject, {\n data: convertedData,\n status: 200,\n statusText: 'OK',\n headers: new AxiosHeaders(),\n config\n });\n }\n\n if (supportedProtocols.indexOf(protocol) === -1) {\n return reject(new AxiosError(\n 'Unsupported protocol ' + protocol,\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n const headers = AxiosHeaders.from(config.headers).normalize();\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n // User-Agent is specified; handle case where no UA header is desired\n // Only set header if it hasn't been set in config\n headers.set('User-Agent', 'axios/' + VERSION, false);\n\n const onDownloadProgress = config.onDownloadProgress;\n const onUploadProgress = config.onUploadProgress;\n const maxRate = config.maxRate;\n let maxUploadRate = undefined;\n let maxDownloadRate = undefined;\n\n // support for https://www.npmjs.com/package/form-data api\n if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {\n headers.set(data.getHeaders());\n } else if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(new AxiosError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers.set('Content-Length', data.length, false);\n\n if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {\n return reject(new AxiosError(\n 'Request body larger than maxBodyLength limit',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n }\n\n const contentLength = utils.toFiniteNumber(headers.getContentLength());\n\n if (utils.isArray(maxRate)) {\n maxUploadRate = maxRate[0];\n maxDownloadRate = maxRate[1];\n } else {\n maxUploadRate = maxDownloadRate = maxRate;\n }\n\n if (data && (onUploadProgress || maxUploadRate)) {\n if (!utils.isStream(data)) {\n data = stream.Readable.from(data, {objectMode: false});\n }\n\n data = stream.pipeline([data, new AxiosTransformStream({\n length: contentLength,\n maxRate: utils.toFiniteNumber(maxUploadRate)\n })], utils.noop);\n\n onUploadProgress && data.on('progress', progress => {\n onUploadProgress(Object.assign(progress, {\n upload: true\n }));\n });\n }\n\n // HTTP basic authentication\n let auth = undefined;\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n if (!auth && parsed.username) {\n const urlUsername = parsed.username;\n const urlPassword = parsed.password;\n auth = urlUsername + ':' + urlPassword;\n }\n\n auth && headers.delete('authorization');\n\n let path;\n\n try {\n path = buildURL(\n parsed.pathname + parsed.search,\n config.params,\n config.paramsSerializer\n ).replace(/^\\?/, '');\n } catch (err) {\n const customErr = new Error(err.message);\n customErr.config = config;\n customErr.url = config.url;\n customErr.exists = true;\n return reject(customErr);\n }\n\n headers.set(\n 'Accept-Encoding',\n 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false\n );\n\n const options = {\n path,\n method: method,\n headers: headers.toJSON(),\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth,\n protocol,\n beforeRedirect: dispatchBeforeRedirect,\n beforeRedirects: {}\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n let transport;\n const isHttpsRequest = isHttps.test(options.protocol);\n options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsRequest ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n if (config.beforeRedirect) {\n options.beforeRedirects.config = config.beforeRedirect;\n }\n transport = isHttpsRequest ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n } else {\n // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited\n options.maxBodyLength = Infinity;\n }\n\n if (config.insecureHTTPParser) {\n options.insecureHTTPParser = config.insecureHTTPParser;\n }\n\n // Create the request\n req = transport.request(options, function handleResponse(res) {\n if (req.destroyed) return;\n\n const streams = [res];\n\n const responseLength = +res.headers['content-length'];\n\n if (onDownloadProgress) {\n const transformStream = new AxiosTransformStream({\n length: utils.toFiniteNumber(responseLength),\n maxRate: utils.toFiniteNumber(maxDownloadRate)\n });\n\n onDownloadProgress && transformStream.on('progress', progress => {\n onDownloadProgress(Object.assign(progress, {\n download: true\n }));\n });\n\n streams.push(transformStream);\n }\n\n // decompress the response body transparently if required\n let responseStream = res;\n\n // return the last request in case of redirects\n const lastRequest = res.req || req;\n\n // if decompress disabled we should not decompress\n if (config.decompress !== false && res.headers['content-encoding']) {\n // if no content, but headers still say that it is encoded,\n // remove the header not confuse downstream operations\n if (method === 'HEAD' || res.statusCode === 204) {\n delete res.headers['content-encoding'];\n }\n\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'x-gzip':\n case 'compress':\n case 'x-compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'br':\n if (isBrotliSupported) {\n streams.push(zlib.createBrotliDecompress(brotliOptions));\n delete res.headers['content-encoding'];\n }\n }\n }\n\n responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];\n\n const offListeners = stream.finished(responseStream, () => {\n offListeners();\n onFinished();\n });\n\n const response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: new AxiosHeaders(res.headers),\n config,\n request: lastRequest\n };\n\n if (responseType === 'stream') {\n response.data = responseStream;\n settle(resolve, reject, response);\n } else {\n const responseBuffer = [];\n let totalResponseBytes = 0;\n\n responseStream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n // stream.destroy() emit aborted event before calling reject() on Node.js v16\n rejected = true;\n responseStream.destroy();\n reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE, config, lastRequest));\n }\n });\n\n responseStream.on('aborted', function handlerStreamAborted() {\n if (rejected) {\n return;\n }\n\n const err = new AxiosError(\n 'maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE,\n config,\n lastRequest\n );\n responseStream.destroy(err);\n reject(err);\n });\n\n responseStream.on('error', function handleStreamError(err) {\n if (req.destroyed) return;\n reject(AxiosError.from(err, null, config, lastRequest));\n });\n\n responseStream.on('end', function handleStreamEnd() {\n try {\n let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);\n if (responseType !== 'arraybuffer') {\n responseData = responseData.toString(responseEncoding);\n if (!responseEncoding || responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n response.data = responseData;\n } catch (err) {\n reject(AxiosError.from(err, null, config, response.request, response));\n }\n settle(resolve, reject, response);\n });\n }\n\n emitter.once('abort', err => {\n if (!responseStream.destroyed) {\n responseStream.emit('error', err);\n responseStream.destroy();\n }\n });\n });\n\n emitter.once('abort', err => {\n reject(err);\n req.destroy(err);\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n // @todo remove\n // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;\n reject(AxiosError.from(err, null, config, req));\n });\n\n // set tcp keep alive to prevent drop connection by peer\n req.on('socket', function handleRequestSocket(socket) {\n // default interval of sending ack packet is 1 minute\n socket.setKeepAlive(true, 1000 * 60);\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n const timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(new AxiosError(\n 'error trying to parse `config.timeout` to int',\n AxiosError.ERR_BAD_OPTION_VALUE,\n config,\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devouring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n if (isDone) return;\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n req\n ));\n abort();\n });\n }\n\n\n // Send the request\n if (utils.isStream(data)) {\n let ended = false;\n let errored = false;\n\n data.on('end', () => {\n ended = true;\n });\n\n data.once('error', err => {\n errored = true;\n req.destroy(err);\n });\n\n data.on('close', () => {\n if (!ended && !errored) {\n abort(new CanceledError('Request stream has been aborted', config, req));\n }\n });\n\n data.pipe(req);\n } else {\n req.end(data);\n }\n });\n}\n\nexport const __setProxy = setProxy;\n", "export const VERSION = \"1.2.5\";", "'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport parseProtocol from './parseProtocol.js';\nimport platform from '../platform/index.js';\n\nconst DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\\s\\S]*)$/;\n\n/**\n * Parse data uri to a Buffer or Blob\n *\n * @param {String} uri\n * @param {?Boolean} asBlob\n * @param {?Object} options\n * @param {?Function} options.Blob\n *\n * @returns {Buffer|Blob}\n */\nexport default function fromDataURI(uri, asBlob, options) {\n const _Blob = options && options.Blob || platform.classes.Blob;\n const protocol = parseProtocol(uri);\n\n if (asBlob === undefined && _Blob) {\n asBlob = true;\n }\n\n if (protocol === 'data') {\n uri = protocol.length ? uri.slice(protocol.length + 1) : uri;\n\n const match = DATA_URL_PATTERN.exec(uri);\n\n if (!match) {\n throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);\n }\n\n const mime = match[1];\n const isBase64 = match[2];\n const body = match[3];\n const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');\n\n if (asBlob) {\n if (!_Blob) {\n throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return new _Blob([buffer], {type: mime});\n }\n\n return buffer;\n }\n\n throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);\n}\n", "'use strict';\n\nimport stream from 'stream';\nimport utils from '../utils.js';\nimport throttle from './throttle.js';\nimport speedometer from './speedometer.js';\n\nconst kInternals = Symbol('internals');\n\nclass AxiosTransformStream extends stream.Transform{\n constructor(options) {\n options = utils.toFlatObject(options, {\n maxRate: 0,\n chunkSize: 64 * 1024,\n minChunkSize: 100,\n timeWindow: 500,\n ticksRate: 2,\n samplesCount: 15\n }, null, (prop, source) => {\n return !utils.isUndefined(source[prop]);\n });\n\n super({\n readableHighWaterMark: options.chunkSize\n });\n\n const self = this;\n\n const internals = this[kInternals] = {\n length: options.length,\n timeWindow: options.timeWindow,\n ticksRate: options.ticksRate,\n chunkSize: options.chunkSize,\n maxRate: options.maxRate,\n minChunkSize: options.minChunkSize,\n bytesSeen: 0,\n isCaptured: false,\n notifiedBytesLoaded: 0,\n ts: Date.now(),\n bytes: 0,\n onReadCallback: null\n };\n\n const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);\n\n this.on('newListener', event => {\n if (event === 'progress') {\n if (!internals.isCaptured) {\n internals.isCaptured = true;\n }\n }\n });\n\n let bytesNotified = 0;\n\n internals.updateProgress = throttle(function throttledHandler() {\n const totalBytes = internals.length;\n const bytesTransferred = internals.bytesSeen;\n const progressBytes = bytesTransferred - bytesNotified;\n if (!progressBytes || self.destroyed) return;\n\n const rate = _speedometer(progressBytes);\n\n bytesNotified = bytesTransferred;\n\n process.nextTick(() => {\n self.emit('progress', {\n 'loaded': bytesTransferred,\n 'total': totalBytes,\n 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,\n 'bytes': progressBytes,\n 'rate': rate ? rate : undefined,\n 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?\n (totalBytes - bytesTransferred) / rate : undefined\n });\n });\n }, internals.ticksRate);\n\n const onFinish = () => {\n internals.updateProgress(true);\n };\n\n this.once('end', onFinish);\n this.once('error', onFinish);\n }\n\n _read(size) {\n const internals = this[kInternals];\n\n if (internals.onReadCallback) {\n internals.onReadCallback();\n }\n\n return super._read(size);\n }\n\n _transform(chunk, encoding, callback) {\n const self = this;\n const internals = this[kInternals];\n const maxRate = internals.maxRate;\n\n const readableHighWaterMark = this.readableHighWaterMark;\n\n const timeWindow = internals.timeWindow;\n\n const divider = 1000 / timeWindow;\n const bytesThreshold = (maxRate / divider);\n const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;\n\n function pushChunk(_chunk, _callback) {\n const bytes = Buffer.byteLength(_chunk);\n internals.bytesSeen += bytes;\n internals.bytes += bytes;\n\n if (internals.isCaptured) {\n internals.updateProgress();\n }\n\n if (self.push(_chunk)) {\n process.nextTick(_callback);\n } else {\n internals.onReadCallback = () => {\n internals.onReadCallback = null;\n process.nextTick(_callback);\n };\n }\n }\n\n const transformChunk = (_chunk, _callback) => {\n const chunkSize = Buffer.byteLength(_chunk);\n let chunkRemainder = null;\n let maxChunkSize = readableHighWaterMark;\n let bytesLeft;\n let passed = 0;\n\n if (maxRate) {\n const now = Date.now();\n\n if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {\n internals.ts = now;\n bytesLeft = bytesThreshold - internals.bytes;\n internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;\n passed = 0;\n }\n\n bytesLeft = bytesThreshold - internals.bytes;\n }\n\n if (maxRate) {\n if (bytesLeft <= 0) {\n // next time window\n return setTimeout(() => {\n _callback(null, _chunk);\n }, timeWindow - passed);\n }\n\n if (bytesLeft < maxChunkSize) {\n maxChunkSize = bytesLeft;\n }\n }\n\n if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {\n chunkRemainder = _chunk.subarray(maxChunkSize);\n _chunk = _chunk.subarray(0, maxChunkSize);\n }\n\n pushChunk(_chunk, chunkRemainder ? () => {\n process.nextTick(_callback, null, chunkRemainder);\n } : _callback);\n };\n\n transformChunk(chunk, function transformNextChunk(err, _chunk) {\n if (err) {\n return callback(err);\n }\n\n if (_chunk) {\n transformChunk(_chunk, transformNextChunk);\n } else {\n callback(null);\n }\n });\n }\n\n setLength(length) {\n this[kInternals].length = +length;\n return this;\n }\n}\n\nexport default AxiosTransformStream;\n", "'use strict';\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled(force, args) {\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, args);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, args);\n }, threshold - (now - timestamp));\n }\n };\n}\n\nexport default throttle;\n", "'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n", "'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n", "'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n const responseType = config.responseType;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {\n requestHeaders.setContentType(false); // Let the browser set it\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n", "import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if(fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n", "'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n", "'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n", "'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer !== undefined) {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n let contextHeaders;\n\n // Flatten headers\n contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n contextHeaders && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n", "'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n", "const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n", "'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n", "import { isBrowser, isNode } from 'browser-or-node'\n\nconst defaultApiUrl = 'https://api.botpress.cloud'\n\nconst apiUrlEnvName = 'BP_API_URL'\nconst botIdEnvName = 'BP_BOT_ID'\nconst integrationIdEnvName = 'BP_INTEGRATION_ID'\nconst workspaceIdEnvName = 'BP_WORKSPACE_ID'\nconst tokenEnvName = 'BP_TOKEN'\n\nexport type ClientProps = {\n host?: string\n integrationId?: string\n workspaceId?: string\n botId?: string\n token?: string\n timeout?: number\n}\n\nexport type ClientConfig = {\n host: string\n headers: Record<string, string>\n withCredentials: boolean\n timeout?: number\n}\n\nexport function getClientConfig(clientProps: ClientProps): ClientConfig {\n const props = getProps(clientProps)\n\n const headers: Record<string, string> = {}\n\n if (props.workspaceId) {\n headers['x-workspace-id'] = props.workspaceId\n }\n\n if (props.botId) {\n headers['x-bot-id'] = props.botId\n }\n\n if (props.integrationId) {\n headers['x-integration-id'] = props.integrationId\n }\n\n if (props.token) {\n headers['Authorization'] = `Bearer ${props.token}`\n }\n\n return {\n host: props.host ?? defaultApiUrl,\n withCredentials: isBrowser,\n headers,\n }\n}\n\nfunction getProps(props: ClientProps) {\n if (isBrowser) {\n return getBrowserConfig(props)\n }\n\n if (isNode) {\n return getNodeConfig(props)\n }\n\n return props\n}\n\nfunction getNodeConfig(props: ClientProps): ClientProps {\n const config: ClientProps = {\n ...props,\n host: props.host ?? process.env[apiUrlEnvName] ?? defaultApiUrl,\n botId: props.botId ?? process.env[botIdEnvName],\n integrationId: props.integrationId ?? process.env[integrationIdEnvName],\n workspaceId: props.workspaceId ?? process.env[workspaceIdEnvName],\n }\n\n const token = config.token ?? process.env[tokenEnvName]\n\n if (token) {\n config.token = token\n }\n\n return config\n}\n\nfunction getBrowserConfig(props: ClientProps): ClientProps {\n return props\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n// @ts-nocheck\n\nconst codes = {\n HTTP_STATUS_BAD_REQUEST: 400,\n HTTP_STATUS_UNAUTHORIZED: 401,\n HTTP_STATUS_PAYMENT_REQUIRED: 402,\n HTTP_STATUS_FORBIDDEN: 403,\n HTTP_STATUS_NOT_FOUND: 404,\n HTTP_STATUS_METHOD_NOT_ALLOWED: 405,\n HTTP_STATUS_CONFLICT: 409,\n HTTP_STATUS_PAYLOAD_TOO_LARGE: 413,\n HTTP_STATUS_TOO_MANY_REQUESTS: 429,\n HTTP_STATUS_INTERNAL_SERVER_ERROR: 500,\n} as const\n\ntype ErrorCode = typeof codes[keyof typeof codes]\n\nabstract class BaseApiError<Code extends ErrorCode, Type extends string, Description extends string> extends Error {\n public readonly isApiError = true\n\n constructor(\n public readonly code: Code,\n public readonly description: Description,\n public readonly type: Type,\n public override readonly message: string,\n public readonly error?: Error\n ) {\n super(message)\n }\n\n toJSON() {\n return {\n code: this.code,\n type: this.type,\n message: this.message,\n }\n }\n}\n\nconst isObject = (obj: unknown): obj is object => typeof obj === 'object' && !Array.isArray(obj) && obj !== null\n\nexport const isApiError = (thrown: unknown): thrown is ApiError => {\n return thrown instanceof BaseApiError || isObject(thrown) && thrown.isApiError === true\n}\n\ntype UnknownType = 'Unknown'\n\n/**\n * An unknown error occurred\n */\nexport class UnknownError extends BaseApiError<500, UnknownType, 'An unknown error occurred'> {\n constructor(message: string, error?: Error) {\n super(500, 'An unknown error occurred', 'Unknown', message, error)\n }\n}\n\ntype InternalType = 'Internal'\n\n/**\n * An internal error occurred\n */\nexport class InternalError extends BaseApiError<500, InternalType, 'An internal error occurred'> {\n constructor(message: string, error?: Error) {\n super(500, 'An internal error occurred', 'Internal', message, error)\n }\n}\n\ntype UnauthorizedType = 'Unauthorized'\n\n/**\n * The request requires to be authenticated.\n */\nexport class UnauthorizedError extends BaseApiError<401, UnauthorizedType, 'The request requires to be authenticated.'> {\n constructor(message: string, error?: Error) {\n super(401, 'The request requires to be authenticated.', 'Unauthorized', message, error)\n }\n}\n\ntype ForbiddenType = 'Forbidden'\n\n/**\n * The requested action can\\'t be peform by this resource.\n */\nexport class ForbiddenError extends BaseApiError<403, ForbiddenType, 'The requested action can\\'t be peform by this resource.'> {\n constructor(message: string, error?: Error) {\n super(403, 'The requested action can\\'t be peform by this resource.', 'Forbidden', message, error)\n }\n}\n\ntype PayloadTooLargeType = 'PayloadTooLarge'\n\n/**\n * The request payload is too large.\n */\nexport class PayloadTooLargeError extends BaseApiError<413, PayloadTooLargeType, 'The request payload is too large.'> {\n constructor(message: string, error?: Error) {\n super(413, 'The request payload is too large.', 'PayloadTooLarge', message, error)\n }\n}\n\ntype InvalidPayloadType = 'InvalidPayload'\n\n/**\n * The request payload is invalid.\n */\nexport class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload is invalid.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The request payload is invalid.', 'InvalidPayload', message, error)\n }\n}\n\ntype UnsupportedMediaTypeType = 'UnsupportedMediaType'\n\n/**\n * The request is invalid because the content-type is not supported.\n */\nexport class UnsupportedMediaTypeError extends BaseApiError<415, UnsupportedMediaTypeType, 'The request is invalid because the content-type is not supported.'> {\n constructor(message: string, error?: Error) {\n super(415, 'The request is invalid because the content-type is not supported.', 'UnsupportedMediaType', message, error)\n }\n}\n\ntype MethodNotFoundType = 'MethodNotFound'\n\n/**\n * The requested method does not exist.\n */\nexport class MethodNotFoundError extends BaseApiError<405, MethodNotFoundType, 'The requested method does not exist.'> {\n constructor(message: string, error?: Error) {\n super(405, 'The requested method does not exist.', 'MethodNotFound', message, error)\n }\n}\n\ntype ResourceNotFoundType = 'ResourceNotFound'\n\n/**\n * The requested resource does not exist.\n */\nexport class ResourceNotFoundError extends BaseApiError<404, ResourceNotFoundType, 'The requested resource does not exist.'> {\n constructor(message: string, error?: Error) {\n super(404, 'The requested resource does not exist.', 'ResourceNotFound', message, error)\n }\n}\n\ntype InvalidJsonSchemaType = 'InvalidJsonSchema'\n\n/**\n * The provided JSON schema is invalid.\n */\nexport class InvalidJsonSchemaError extends BaseApiError<400, InvalidJsonSchemaType, 'The provided JSON schema is invalid.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided JSON schema is invalid.', 'InvalidJsonSchema', message, error)\n }\n}\n\ntype InvalidDataFormatType = 'InvalidDataFormat'\n\n/**\n * The provided data doesn\\'t respect the provided JSON schema.\n */\nexport class InvalidDataFormatError extends BaseApiError<400, InvalidDataFormatType, 'The provided data doesn\\'t respect the provided JSON schema.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided data doesn\\'t respect the provided JSON schema.', 'InvalidDataFormat', message, error)\n }\n}\n\ntype InvalidIdentifierType = 'InvalidIdentifier'\n\n/**\n * The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.\n */\nexport class InvalidIdentifierError extends BaseApiError<400, InvalidIdentifierType, 'The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.', 'InvalidIdentifier', message, error)\n }\n}\n\ntype RelationConflictType = 'RelationConflict'\n\n/**\n * The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.\n */\nexport class RelationConflictError extends BaseApiError<409, RelationConflictType, 'The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.'> {\n constructor(message: string, error?: Error) {\n super(409, 'The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.', 'RelationConflict', message, error)\n }\n}\n\ntype ReferenceNotFoundType = 'ReferenceNotFound'\n\n/**\n * The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.\n */\nexport class ReferenceNotFoundError extends BaseApiError<400, ReferenceNotFoundType, 'The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.', 'ReferenceNotFound', message, error)\n }\n}\n\ntype InvalidQueryType = 'InvalidQuery'\n\n/**\n * The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.\n */\nexport class InvalidQueryError extends BaseApiError<400, InvalidQueryType, 'The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.', 'InvalidQuery', message, error)\n }\n}\n\ntype RuntimeType = 'Runtime'\n\n/**\n * An error happened during the execution of a runtime (bot or integration).\n */\nexport class RuntimeError extends BaseApiError<400, RuntimeType, 'An error happened during the execution of a runtime (bot or integration).'> {\n constructor(message: string, error?: Error) {\n super(400, 'An error happened during the execution of a runtime (bot or integration).', 'Runtime', message, error)\n }\n}\n\nexport type ErrorType =\n | 'Unknown'\n | 'Internal'\n | 'Unauthorized'\n | 'Forbidden'\n | 'PayloadTooLarge'\n | 'InvalidPayload'\n | 'UnsupportedMediaType'\n | 'MethodNotFound'\n | 'ResourceNotFound'\n | 'InvalidJsonSchema'\n | 'InvalidDataFormat'\n | 'InvalidIdentifier'\n | 'RelationConflict'\n | 'ReferenceNotFound'\n | 'InvalidQuery'\n | 'Runtime'\n\nexport type ApiError =\n | UnknownError\n | InternalError\n | UnauthorizedError\n | ForbiddenError\n | PayloadTooLargeError\n | InvalidPayloadError\n | UnsupportedMediaTypeError\n | MethodNotFoundError\n | ResourceNotFoundError\n | InvalidJsonSchemaError\n | InvalidDataFormatError\n | InvalidIdentifierError\n | RelationConflictError\n | ReferenceNotFoundError\n | InvalidQueryError\n | RuntimeError\n\nconst errorTypes: { [type: string]: new (message: string, error?: Error) => ApiError } = {\n Unknown: UnknownError,\n Internal: InternalError,\n Unauthorized: UnauthorizedError,\n Forbidden: ForbiddenError,\n PayloadTooLarge: PayloadTooLargeError,\n InvalidPayload: InvalidPayloadError,\n UnsupportedMediaType: UnsupportedMediaTypeError,\n MethodNotFound: MethodNotFoundError,\n ResourceNotFound: ResourceNotFoundError,\n InvalidJsonSchema: InvalidJsonSchemaError,\n InvalidDataFormat: InvalidDataFormatError,\n InvalidIdentifier: InvalidIdentifierError,\n RelationConflict: RelationConflictError,\n ReferenceNotFound: ReferenceNotFoundError,\n InvalidQuery: InvalidQueryError,\n Runtime: RuntimeError,\n}\n\nexport const errorFrom = (err: unknown): ApiError => {\n if (isApiError(err)) {\n return err\n }\n\n if (err instanceof Error) {\n return new UnknownError(err.message, err)\n }\n\n if (err === null) {\n return new UnknownError('An unknown error occurred')\n }\n\n if (typeof err === 'string') {\n return new UnknownError(err)\n }\n\n if (typeof err !== 'object') {\n return new UnknownError('An unknown error occurred')\n }\n\n return getErrorFromObject(err)\n}\n\nfunction getErrorFromObject(err: object) {\n if ('code' in err && 'type' in err && 'message' in err) {\n if (typeof err.message !== 'string') {\n return new UnknownError('An unknown error occurred')\n }\n\n if (typeof err.type !== 'string') {\n return new UnknownError(err.message)\n }\n\n const ErrorClass = errorTypes[err.type]\n\n if (!ErrorClass) {\n return new UnknownError(err.message)\n }\n\n return new ErrorClass(err.message)\n }\n\n return new UnknownError('An unknown error occurred')\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n// @ts-nocheck\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport { Configuration } from \"./configuration\";\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\n\nexport const BASE_PATH = \"https://api.botpress.cloud\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: AxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath || this.basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n name: \"RequiredError\" = \"RequiredError\";\n constructor(public field: string, msg?: string) {\n super(msg);\n }\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n// @ts-nocheck\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport { Configuration } from \"./configuration\";\nimport { RequiredError, RequestArgs } from \"./base\";\nimport { AxiosInstance, AxiosResponse } from 'axios';\n\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n// @ts-nocheck\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport { Configuration } from './configuration';\nimport globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\n// URLSearchParams not necessarily used\n// @ts-ignore\n\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';\n\n/**\n * \n * @export\n * @interface Bot\n */\nexport interface Bot {\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'id': string;\n /**\n * Creation date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'createdAt': string;\n /**\n * Updating date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'updatedAt': string;\n /**\n * Signing secret of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'signingSecret': string;\n /**\n * A mapping of integrations to their configuration\n * @type {{ [key: string]: BotIntegrationsValue; }}\n * @memberof Bot\n */\n 'integrations': { [key: string]: BotIntegrationsValue; };\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof Bot\n */\n 'states': { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof Bot\n */\n 'tags': CreateBotBodyTags;\n /**\n * \n * @type {BotConfiguration}\n * @memberof Bot\n */\n 'configuration': BotConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof Bot\n */\n 'events': { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof Bot\n */\n 'recurringEvents': { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * Name of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'name': string;\n /**\n * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'deployedAt'?: string;\n /**\n * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations\n * @type {boolean}\n * @memberof Bot\n */\n 'dev': boolean;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<BotMediasInner>}\n * @memberof Bot\n */\n 'medias': Array<BotMediasInner>;\n}\n/**\n * Configuration of the bot\n * @export\n * @interface BotConfiguration\n */\nexport interface BotConfiguration {\n /**\n * Configuration data\n * @type {{ [key: string]: any; }}\n * @memberof BotConfiguration\n */\n 'data': { [key: string]: any; };\n /**\n * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.\n * @type {{ [key: string]: any; }}\n * @memberof BotConfiguration\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface BotIntegrationsValue\n */\nexport interface BotIntegrationsValue {\n /**\n * \n * @type {boolean}\n * @memberof BotIntegrationsValue\n */\n 'enabled': boolean;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'version': string;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'webhookUrl': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof BotIntegrationsValue\n */\n 'configuration': { [key: string]: any; };\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'status': BotIntegrationsValueStatusEnum;\n}\n\nexport const BotIntegrationsValueStatusEnum = {\n RegistrationPending: 'registration_pending',\n Registered: 'registered',\n RegistrationFailed: 'registration_failed',\n UnregistrationPending: 'unregistration_pending',\n Unregistered: 'unregistered',\n UnregistrationFailed: 'unregistration_failed'\n} as const;\n\nexport type BotIntegrationsValueStatusEnum = typeof BotIntegrationsValueStatusEnum[keyof typeof BotIntegrationsValueStatusEnum];\n\n/**\n * \n * @export\n * @interface BotMediasInner\n */\nexport interface BotMediasInner {\n /**\n * URL of the media file\n * @type {string}\n * @memberof BotMediasInner\n */\n 'url': string;\n /**\n * Name of the media file\n * @type {string}\n * @memberof BotMediasInner\n */\n 'name': string;\n}\n/**\n * \n * @export\n * @interface CallActionBody\n */\nexport interface CallActionBody {\n /**\n * Type of the action\n * @type {string}\n * @memberof CallActionBody\n */\n 'type': string;\n /**\n * Input of the action\n * @type {{ [key: string]: any; }}\n * @memberof CallActionBody\n */\n 'input': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CallActionResponse\n */\nexport interface CallActionResponse {\n /**\n * Input of the action\n * @type {{ [key: string]: any; }}\n * @memberof CallActionResponse\n */\n 'output': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface ConfigureIntegrationBody\n */\nexport interface ConfigureIntegrationBody {\n /**\n * Unique identifier of the integration that was installed on the bot\n * @type {string}\n * @memberof ConfigureIntegrationBody\n */\n 'identifier': string;\n}\n/**\n * The conversation object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration\\'s channels. For example, a Slack channel represents a conversation.\n * @export\n * @interface Conversation\n */\nexport interface Conversation {\n /**\n * Id of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Conversation\n */\n 'id': string;\n /**\n * Creation date of the [Conversation](#schema_conversation) in the ISO 8601 format\n * @type {string}\n * @memberof Conversation\n */\n 'createdAt': string;\n /**\n * Updating date of the [Conversation](#schema_conversation) in the ISO 8601 format\n * @type {string}\n * @memberof Conversation\n */\n 'updatedAt': string;\n /**\n * Name of the channel where the [Conversation](#schema_conversation) is happening\n * @type {string}\n * @memberof Conversation\n */\n 'channel': string;\n /**\n * Name of the integration that created the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Conversation\n */\n 'integration': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof Conversation\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface CreateBotBody\n */\nexport interface CreateBotBody {\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof CreateBotBody\n */\n 'states'?: { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof CreateBotBody\n */\n 'tags'?: CreateBotBodyTags;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof CreateBotBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof CreateBotBody\n */\n 'recurringEvents'?: { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * \n * @type {CreateBotBodyConfiguration}\n * @memberof CreateBotBody\n */\n 'configuration'?: CreateBotBodyConfiguration;\n /**\n * JavaScript code of the bot\n * @type {string}\n * @memberof CreateBotBody\n */\n 'code'?: string;\n /**\n * Optional name for the bot, if not provided will be auto-generated\n * @type {string}\n * @memberof CreateBotBody\n */\n 'name'?: string;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<CreateBotBodyMediasInner>}\n * @memberof CreateBotBody\n */\n 'medias'?: Array<CreateBotBodyMediasInner>;\n /**\n * URL of the [Bot](#schema_bot); Only available for dev bots\n * @type {string}\n * @memberof CreateBotBody\n */\n 'url'?: string;\n /**\n * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations\n * @type {boolean}\n * @memberof CreateBotBody\n */\n 'dev'?: boolean;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyConfiguration\n */\nexport interface CreateBotBodyConfiguration {\n /**\n * Configuration data\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyConfiguration\n */\n 'data'?: { [key: string]: any; };\n /**\n * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyConfiguration\n */\n 'schema'?: { [key: string]: any; };\n}\n/**\n * Event schema\n * @export\n * @interface CreateBotBodyEventsValue\n */\nexport interface CreateBotBodyEventsValue {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyEventsValue\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateBotBodyMediasInner\n */\nexport interface CreateBotBodyMediasInner {\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyMediasInner\n */\n 'url': string;\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyMediasInner\n */\n 'name': string;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyRecurringEventsValue\n */\nexport interface CreateBotBodyRecurringEventsValue {\n /**\n * \n * @type {CreateBotBodyRecurringEventsValueSchedule}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'schedule': CreateBotBodyRecurringEventsValueSchedule;\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateBotBodyRecurringEventsValueSchedule\n */\nexport interface CreateBotBodyRecurringEventsValueSchedule {\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyRecurringEventsValueSchedule\n */\n 'cron': string;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyStatesValue\n */\nexport interface CreateBotBodyStatesValue {\n /**\n * Type of the [State](#schema_state) (`conversation`, `user` or `bot`)\n * @type {string}\n * @memberof CreateBotBodyStatesValue\n */\n 'type': CreateBotBodyStatesValueTypeEnum;\n /**\n * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyStatesValue\n */\n 'schema': { [key: string]: any; };\n /**\n * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn\\'t expire.\n * @type {number}\n * @memberof CreateBotBodyStatesValue\n */\n 'expiry'?: number;\n}\n\nexport const CreateBotBodyStatesValueTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Bot: 'bot'\n} as const;\n\nexport type CreateBotBodyStatesValueTypeEnum = typeof CreateBotBodyStatesValueTypeEnum[keyof typeof CreateBotBodyStatesValueTypeEnum];\n\n/**\n * Tags of the bot\n * @export\n * @interface CreateBotBodyTags\n */\nexport interface CreateBotBodyTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'messages'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'conversations'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'users'?: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateBotResponse\n */\nexport interface CreateBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof CreateBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface CreateConversationBody\n */\nexport interface CreateConversationBody {\n /**\n * Channel name\n * @type {string}\n * @memberof CreateConversationBody\n */\n 'channel': string;\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof CreateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the conversation creation will be delegated\n * @type {string}\n * @memberof CreateConversationBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface CreateConversationResponse\n */\nexport interface CreateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof CreateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface CreateEventBody\n */\nexport interface CreateEventBody {\n /**\n * Type of the [Event](#schema_event).\n * @type {string}\n * @memberof CreateEventBody\n */\n 'type': string;\n /**\n * Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our API.\n * @type {{ [key: string]: any; }}\n * @memberof CreateEventBody\n */\n 'payload': { [key: string]: any; };\n /**\n * \n * @type {CreateEventBodySchedule}\n * @memberof CreateEventBody\n */\n 'schedule'?: CreateEventBodySchedule;\n}\n/**\n * Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.\n * @export\n * @interface CreateEventBodySchedule\n */\nexport interface CreateEventBodySchedule {\n /**\n * When the [Event](#schema_event) will be sent, in the ISO 8601 format\n * @type {string}\n * @memberof CreateEventBodySchedule\n */\n 'dateTime'?: string;\n /**\n * Delay in milliseconds before sending the [Event](#schema_event)\n * @type {number}\n * @memberof CreateEventBodySchedule\n */\n 'delay'?: number;\n}\n/**\n * \n * @export\n * @interface CreateEventResponse\n */\nexport interface CreateEventResponse {\n /**\n * \n * @type {Event}\n * @memberof CreateEventResponse\n */\n 'event': Event;\n}\n/**\n * \n * @export\n * @interface CreateFileBody\n */\nexport interface CreateFileBody {\n /**\n * ID of the bot the file will be used for\n * @type {string}\n * @memberof CreateFileBody\n */\n 'botId': string;\n /**\n * Base64-encoded file contents\n * @type {string}\n * @memberof CreateFileBody\n */\n 'contents': string;\n /**\n * Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only.\n * @type {string}\n * @memberof CreateFileBody\n */\n 'name': string;\n /**\n * Accepted values: private, public\n * @type {string}\n * @memberof CreateFileBody\n */\n 'accessType': CreateFileBodyAccessTypeEnum;\n}\n\nexport const CreateFileBodyAccessTypeEnum = {\n Private: 'private',\n Public: 'public'\n} as const;\n\nexport type CreateFileBodyAccessTypeEnum = typeof CreateFileBodyAccessTypeEnum[keyof typeof CreateFileBodyAccessTypeEnum];\n\n/**\n * \n * @export\n * @interface CreateFileResponse\n */\nexport interface CreateFileResponse {\n /**\n * \n * @type {any}\n * @memberof CreateFileResponse\n */\n 'file': any;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBody\n */\nexport interface CreateIntegrationBody {\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'version': string;\n /**\n * \n * @type {CreateIntegrationBodyTags}\n * @memberof CreateIntegrationBody\n */\n 'tags'?: CreateIntegrationBodyTags;\n /**\n * Channels definition\n * @type {{ [key: string]: CreateIntegrationBodyChannelsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'channels'?: { [key: string]: CreateIntegrationBodyChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof CreateIntegrationBody\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof CreateIntegrationBody\n */\n 'configuration'?: CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'actions'?: { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof CreateIntegrationBody\n */\n 'user'?: CreateIntegrationBodyUser;\n /**\n * JavaScript code of the integration\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'code'?: string;\n /**\n * Whether the integration is public\n * @type {boolean}\n * @memberof CreateIntegrationBody\n */\n 'public'?: boolean;\n /**\n * URL of the integration; Only available for dev integrations\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'url'?: string;\n /**\n * Indicates if the integration is a development integration; Dev integrations run locally\n * @type {boolean}\n * @memberof CreateIntegrationBody\n */\n 'dev'?: boolean;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyActionsValue\n */\nexport interface CreateIntegrationBodyActionsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueMessagesValue}\n * @memberof CreateIntegrationBodyActionsValue\n */\n 'input': CreateIntegrationBodyChannelsValueMessagesValue;\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueMessagesValue}\n * @memberof CreateIntegrationBodyActionsValue\n */\n 'output': CreateIntegrationBodyChannelsValueMessagesValue;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValue\n */\nexport interface CreateIntegrationBodyChannelsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueTags}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'tags'?: CreateIntegrationBodyChannelsValueTags;\n /**\n * \n * @type {{ [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; }}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'messages': { [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; };\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversation}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'conversation'?: CreateIntegrationBodyChannelsValueConversation;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueConversation\n */\nexport interface CreateIntegrationBodyChannelsValueConversation {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversationCreation}\n * @memberof CreateIntegrationBodyChannelsValueConversation\n */\n 'creation': CreateIntegrationBodyChannelsValueConversationCreation;\n}\n/**\n * The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.\n * @export\n * @interface CreateIntegrationBodyChannelsValueConversationCreation\n */\nexport interface CreateIntegrationBodyChannelsValueConversationCreation {\n /**\n * Enable conversation creation\n * @type {boolean}\n * @memberof CreateIntegrationBodyChannelsValueConversationCreation\n */\n 'enabled': boolean;\n /**\n * The list of tags that are required to be specified when calling the API directly to create a conversation.\n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueConversationCreation\n */\n 'requiredTags': Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueMessagesValue\n */\nexport interface CreateIntegrationBodyChannelsValueMessagesValue {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyChannelsValueMessagesValue\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueTags\n */\nexport interface CreateIntegrationBodyChannelsValueTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueTags\n */\n 'messages'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueTags\n */\n 'conversations'?: Array<string>;\n}\n/**\n * Configuration definition\n * @export\n * @interface CreateIntegrationBodyConfiguration\n */\nexport interface CreateIntegrationBodyConfiguration {\n /**\n * Schema for the configuration\n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyConfiguration\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyStatesValue\n */\nexport interface CreateIntegrationBodyStatesValue {\n /**\n * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)\n * @type {string}\n * @memberof CreateIntegrationBodyStatesValue\n */\n 'type': CreateIntegrationBodyStatesValueTypeEnum;\n /**\n * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.\n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyStatesValue\n */\n 'schema': { [key: string]: any; };\n}\n\nexport const CreateIntegrationBodyStatesValueTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Integration: 'integration'\n} as const;\n\nexport type CreateIntegrationBodyStatesValueTypeEnum = typeof CreateIntegrationBodyStatesValueTypeEnum[keyof typeof CreateIntegrationBodyStatesValueTypeEnum];\n\n/**\n * Tags of the [Integration](#schema_integration)\n * @export\n * @interface CreateIntegrationBodyTags\n */\nexport interface CreateIntegrationBodyTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyTags\n */\n 'users'?: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyUser\n */\nexport interface CreateIntegrationBodyUser {\n /**\n * \n * @type {CreateIntegrationBodyUserCreation}\n * @memberof CreateIntegrationBodyUser\n */\n 'creation': CreateIntegrationBodyUserCreation;\n}\n/**\n * The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.\n * @export\n * @interface CreateIntegrationBodyUserCreation\n */\nexport interface CreateIntegrationBodyUserCreation {\n /**\n * Enable user creation\n * @type {boolean}\n * @memberof CreateIntegrationBodyUserCreation\n */\n 'enabled': boolean;\n /**\n * The list of tags that are required to be specified when calling the API directly to create a user.\n * @type {Array<string>}\n * @memberof CreateIntegrationBodyUserCreation\n */\n 'requiredTags': Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationResponse\n */\nexport interface CreateIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof CreateIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface CreateMessageBody\n */\nexport interface CreateMessageBody {\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof CreateMessageBody\n */\n 'payload': { [key: string]: any; };\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'conversationId': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'type': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof CreateMessageBody\n */\n 'tags': { [key: string]: string; };\n /**\n * \n * @type {CreateMessageBodySchedule}\n * @memberof CreateMessageBody\n */\n 'schedule'?: CreateMessageBodySchedule;\n}\n/**\n * Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.\n * @export\n * @interface CreateMessageBodySchedule\n */\nexport interface CreateMessageBodySchedule {\n /**\n * When the [Message](#schema_message) will be sent, in the ISO 8601 format\n * @type {string}\n * @memberof CreateMessageBodySchedule\n */\n 'dateTime'?: string;\n /**\n * Delay in milliseconds before sending the [Message](#schema_message)\n * @type {number}\n * @memberof CreateMessageBodySchedule\n */\n 'delay'?: number;\n}\n/**\n * \n * @export\n * @interface CreateMessageResponse\n */\nexport interface CreateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof CreateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface CreateUserBody\n */\nexport interface CreateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof CreateUserBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the user creation will be delegated\n * @type {string}\n * @memberof CreateUserBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface CreateUserResponse\n */\nexport interface CreateUserResponse {\n /**\n * \n * @type {User}\n * @memberof CreateUserResponse\n */\n 'user': User;\n}\n/**\n * The event object represents an action or an occurrence.\n * @export\n * @interface Event\n */\nexport interface Event {\n /**\n * Id of the [Event](#schema_event)\n * @type {string}\n * @memberof Event\n */\n 'id': string;\n /**\n * Creation date of the [Event](#schema_event) in the ISO 8601 format\n * @type {string}\n * @memberof Event\n */\n 'createdAt': string;\n /**\n * Type of the [Event](#schema_event).\n * @type {string}\n * @memberof Event\n */\n 'type': string;\n /**\n * Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.\n * @type {{ [key: string]: any; }}\n * @memberof Event\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface GetBotAnalyticsResponse\n */\nexport interface GetBotAnalyticsResponse {\n /**\n * \n * @type {Array<GetBotAnalyticsResponseRecordsInner>}\n * @memberof GetBotAnalyticsResponse\n */\n 'records': Array<GetBotAnalyticsResponseRecordsInner>;\n}\n/**\n * \n * @export\n * @interface GetBotAnalyticsResponseRecordsInner\n */\nexport interface GetBotAnalyticsResponseRecordsInner {\n /**\n * ISO 8601 date string of the beginning (inclusive) of the period\n * @type {string}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'startDateTimeUtc': string;\n /**\n * ISO 8601 date string of the end (exclusive) of the period\n * @type {string}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'endDateTimeUtc': string;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'returningUsers': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'newUsers': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'sessions': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'messages': number;\n}\n/**\n * \n * @export\n * @interface GetBotLogsResponse\n */\nexport interface GetBotLogsResponse {\n /**\n * \n * @type {Array<GetBotLogsResponseLogsInner>}\n * @memberof GetBotLogsResponse\n */\n 'logs': Array<GetBotLogsResponseLogsInner>;\n}\n/**\n * \n * @export\n * @interface GetBotLogsResponseLogsInner\n */\nexport interface GetBotLogsResponseLogsInner {\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'timestamp': string;\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'level': string;\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'message': string;\n}\n/**\n * \n * @export\n * @interface GetBotResponse\n */\nexport interface GetBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof GetBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface GetBotWebchatResponse\n */\nexport interface GetBotWebchatResponse {\n /**\n * \n * @type {string}\n * @memberof GetBotWebchatResponse\n */\n 'code': string;\n}\n/**\n * \n * @export\n * @interface GetConversationResponse\n */\nexport interface GetConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof GetConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface GetEventResponse\n */\nexport interface GetEventResponse {\n /**\n * \n * @type {Event}\n * @memberof GetEventResponse\n */\n 'event': Event;\n}\n/**\n * \n * @export\n * @interface GetFileResponse\n */\nexport interface GetFileResponse {\n /**\n * \n * @type {any}\n * @memberof GetFileResponse\n */\n 'file': any;\n}\n/**\n * \n * @export\n * @interface GetIntegrationByNameResponse\n */\nexport interface GetIntegrationByNameResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetIntegrationByNameResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetIntegrationResponse\n */\nexport interface GetIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetMessageResponse\n */\nexport interface GetMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof GetMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface GetOrCreateConversationBody\n */\nexport interface GetOrCreateConversationBody {\n /**\n * Channel name\n * @type {string}\n * @memberof GetOrCreateConversationBody\n */\n 'channel': string;\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the conversation creation will be delegated\n * @type {string}\n * @memberof GetOrCreateConversationBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface GetOrCreateConversationResponse\n */\nexport interface GetOrCreateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof GetOrCreateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface GetOrCreateMessageBody\n */\nexport interface GetOrCreateMessageBody {\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof GetOrCreateMessageBody\n */\n 'payload': { [key: string]: any; };\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'conversationId': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'type': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateMessageBody\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface GetOrCreateMessageResponse\n */\nexport interface GetOrCreateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof GetOrCreateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface GetOrCreateUserBody\n */\nexport interface GetOrCreateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateUserBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the user creation will be delegated\n * @type {string}\n * @memberof GetOrCreateUserBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface GetOrCreateUserResponse\n */\nexport interface GetOrCreateUserResponse {\n /**\n * \n * @type {User}\n * @memberof GetOrCreateUserResponse\n */\n 'user': User;\n}\n/**\n * \n * @export\n * @interface GetPublicIntegrationByIdResponse\n */\nexport interface GetPublicIntegrationByIdResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetPublicIntegrationByIdResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetPublicIntegrationResponse\n */\nexport interface GetPublicIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetPublicIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetStateResponse\n */\nexport interface GetStateResponse {\n /**\n * \n * @type {State}\n * @memberof GetStateResponse\n */\n 'state': State;\n}\n/**\n * \n * @export\n * @interface GetUserResponse\n */\nexport interface GetUserResponse {\n /**\n * \n * @type {User}\n * @memberof GetUserResponse\n */\n 'user': User;\n}\n/**\n * \n * @export\n * @interface Integration\n */\nexport interface Integration {\n /**\n * Id of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'id': string;\n /**\n * Creation date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof Integration\n */\n 'createdAt': string;\n /**\n * Updating date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof Integration\n */\n 'updatedAt': string;\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'version': string;\n /**\n * Channels definition\n * @type {{ [key: string]: IntegrationChannelsValue; }}\n * @memberof Integration\n */\n 'channels': { [key: string]: IntegrationChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof Integration\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof Integration\n */\n 'configuration': CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof Integration\n */\n 'events': { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof Integration\n */\n 'actions': { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof Integration\n */\n 'user': CreateIntegrationBodyUser;\n /**\n * Indicates if the integration is a development integration; Dev integrations run locally\n * @type {boolean}\n * @memberof Integration\n */\n 'dev': boolean;\n}\n/**\n * \n * @export\n * @interface IntegrationChannelsValue\n */\nexport interface IntegrationChannelsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueTags}\n * @memberof IntegrationChannelsValue\n */\n 'tags': CreateIntegrationBodyChannelsValueTags;\n /**\n * \n * @type {{ [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; }}\n * @memberof IntegrationChannelsValue\n */\n 'messages': { [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; };\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversation}\n * @memberof IntegrationChannelsValue\n */\n 'conversation': CreateIntegrationBodyChannelsValueConversation;\n}\n/**\n * \n * @export\n * @interface IntrospectBody\n */\nexport interface IntrospectBody {\n /**\n * \n * @type {string}\n * @memberof IntrospectBody\n */\n 'botId': string;\n}\n/**\n * \n * @export\n * @interface IntrospectResponse\n */\nexport interface IntrospectResponse {\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'workspaceId': string;\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'botId': string;\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'userId': string;\n}\n/**\n * \n * @export\n * @interface ListBotsResponse\n */\nexport interface ListBotsResponse {\n /**\n * \n * @type {Array<ListBotsResponseBotsInner>}\n * @memberof ListBotsResponse\n */\n 'bots': Array<ListBotsResponseBotsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListBotsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListBotsResponseBotsInner\n */\nexport interface ListBotsResponseBotsInner {\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'id': string;\n /**\n * Creation date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'createdAt': string;\n /**\n * Updating date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'updatedAt': string;\n /**\n * \n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'deployedAt'?: string;\n}\n/**\n * \n * @export\n * @interface ListConversationsResponse\n */\nexport interface ListConversationsResponse {\n /**\n * \n * @type {Array<Conversation>}\n * @memberof ListConversationsResponse\n */\n 'conversations': Array<Conversation>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListConversationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListConversationsResponseMeta\n */\nexport interface ListConversationsResponseMeta {\n /**\n * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.\n * @type {string}\n * @memberof ListConversationsResponseMeta\n */\n 'nextToken'?: string;\n}\n/**\n * \n * @export\n * @interface ListEventsResponse\n */\nexport interface ListEventsResponse {\n /**\n * \n * @type {Array<Event>}\n * @memberof ListEventsResponse\n */\n 'events': Array<Event>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListEventsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListFilesResponse\n */\nexport interface ListFilesResponse {\n /**\n * \n * @type {Array<any>}\n * @memberof ListFilesResponse\n */\n 'files': Array<any>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListFilesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListIntegrationsResponse\n */\nexport interface ListIntegrationsResponse {\n /**\n * \n * @type {Array<ListPublicIntegrationsResponseIntegrationsInner>}\n * @memberof ListIntegrationsResponse\n */\n 'integrations': Array<ListPublicIntegrationsResponseIntegrationsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListIntegrationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListMessagesResponse\n */\nexport interface ListMessagesResponse {\n /**\n * \n * @type {Array<Message>}\n * @memberof ListMessagesResponse\n */\n 'messages': Array<Message>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListMessagesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListPublicIntegrationsResponse\n */\nexport interface ListPublicIntegrationsResponse {\n /**\n * \n * @type {Array<ListPublicIntegrationsResponseIntegrationsInner>}\n * @memberof ListPublicIntegrationsResponse\n */\n 'integrations': Array<ListPublicIntegrationsResponseIntegrationsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListPublicIntegrationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListPublicIntegrationsResponseIntegrationsInner\n */\nexport interface ListPublicIntegrationsResponseIntegrationsInner {\n /**\n * Id of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'id': string;\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'version': string;\n /**\n * Creation date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'createdAt': string;\n /**\n * Updating date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'updatedAt': string;\n}\n/**\n * \n * @export\n * @interface ListUsersResponse\n */\nexport interface ListUsersResponse {\n /**\n * \n * @type {Array<User>}\n * @memberof ListUsersResponse\n */\n 'users': Array<User>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListUsersResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListWorkspacesResponse\n */\nexport interface ListWorkspacesResponse {\n /**\n * \n * @type {Array<ListWorkspacesResponseWorkspacesInner>}\n * @memberof ListWorkspacesResponse\n */\n 'workspaces': Array<ListWorkspacesResponseWorkspacesInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListWorkspacesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListWorkspacesResponseWorkspacesInner\n */\nexport interface ListWorkspacesResponseWorkspacesInner {\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'ownerId': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'updatedAt': string;\n}\n/**\n * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).\n * @export\n * @interface Message\n */\nexport interface Message {\n /**\n * Id of the [Message](#schema_message)\n * @type {string}\n * @memberof Message\n */\n 'id': string;\n /**\n * Creation date of the [Message](#schema_message) in the ISO 8601 format\n * @type {string}\n * @memberof Message\n */\n 'createdAt': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof Message\n */\n 'type': string;\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof Message\n */\n 'payload': { [key: string]: any; };\n /**\n * Direction of the message (`incoming` or `outgoing`).\n * @type {string}\n * @memberof Message\n */\n 'direction': MessageDirectionEnum;\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof Message\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Message\n */\n 'conversationId': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof Message\n */\n 'tags': { [key: string]: string; };\n}\n\nexport const MessageDirectionEnum = {\n Incoming: 'incoming',\n Outgoing: 'outgoing'\n} as const;\n\nexport type MessageDirectionEnum = typeof MessageDirectionEnum[keyof typeof MessageDirectionEnum];\n\n/**\n * \n * @export\n * @interface ModelFile\n */\nexport interface ModelFile {\n /**\n * ID of the bot the file will be used for\n * @type {string}\n * @memberof ModelFile\n */\n 'botId': string;\n /**\n * Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only.\n * @type {string}\n * @memberof ModelFile\n */\n 'name': string;\n /**\n * Accepted values: private, public\n * @type {string}\n * @memberof ModelFile\n */\n 'accessType': ModelFileAccessTypeEnum;\n /**\n * ID of the [File](#schema_file)\n * @type {string}\n * @memberof ModelFile\n */\n 'id': string;\n /**\n * Creation date of the [File](#schema_file) in ISO 8601 format\n * @type {string}\n * @memberof ModelFile\n */\n 'createdAt': string;\n /**\n * Size of the file in bytes\n * @type {number}\n * @memberof ModelFile\n */\n 'size': number;\n /**\n * Public URL to the file contents, available only if the access type is public. If the file is private, use the Download endpoint to retrieve the file contents.\n * @type {string}\n * @memberof ModelFile\n */\n 'publicUrl'?: string;\n}\n\nexport const ModelFileAccessTypeEnum = {\n Private: 'private',\n Public: 'public'\n} as const;\n\nexport type ModelFileAccessTypeEnum = typeof ModelFileAccessTypeEnum[keyof typeof ModelFileAccessTypeEnum];\n\n/**\n * \n * @export\n * @interface PatchStateBody\n */\nexport interface PatchStateBody {\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof PatchStateBody\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface PatchStateResponse\n */\nexport interface PatchStateResponse {\n /**\n * \n * @type {State}\n * @memberof PatchStateResponse\n */\n 'state': State;\n}\n/**\n * \n * @export\n * @interface SetStateBody\n */\nexport interface SetStateBody {\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof SetStateBody\n */\n 'payload': { [key: string]: any; } | null;\n /**\n * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn\\'t expire.\n * @type {number}\n * @memberof SetStateBody\n */\n 'expiry'?: number;\n}\n/**\n * \n * @export\n * @interface SetStateResponse\n */\nexport interface SetStateResponse {\n /**\n * \n * @type {State}\n * @memberof SetStateResponse\n */\n 'state': State;\n}\n/**\n * The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.\n * @export\n * @interface State\n */\nexport interface State {\n /**\n * Id of the [State](#schema_state)\n * @type {string}\n * @memberof State\n */\n 'id': string;\n /**\n * Creation date of the [State](#schema_state) in the ISO 8601 format\n * @type {string}\n * @memberof State\n */\n 'createdAt': string;\n /**\n * Updating date of the [State](#schema_state) in the ISO 8601 format\n * @type {string}\n * @memberof State\n */\n 'updatedAt': string;\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof State\n */\n 'botId': string;\n /**\n * Id of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof State\n */\n 'conversationId'?: string;\n /**\n * Id of the [User](#schema_user)\n * @type {string}\n * @memberof State\n */\n 'userId'?: string;\n /**\n * Name of the [State](#schema_state) which is declared inside the bot definition\n * @type {string}\n * @memberof State\n */\n 'name': string;\n /**\n * Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot` or `integration`) that the state is related to\n * @type {string}\n * @memberof State\n */\n 'type': StateTypeEnum;\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof State\n */\n 'payload': { [key: string]: any; };\n}\n\nexport const StateTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Bot: 'bot',\n Integration: 'integration'\n} as const;\n\nexport type StateTypeEnum = typeof StateTypeEnum[keyof typeof StateTypeEnum];\n\n/**\n * \n * @export\n * @interface TransferBotBody\n */\nexport interface TransferBotBody {\n /**\n * The ID of the workspace you want to transfer the bot to.\n * @type {string}\n * @memberof TransferBotBody\n */\n 'targetWorkspaceId': string;\n}\n/**\n * \n * @export\n * @interface UpdateBotBody\n */\nexport interface UpdateBotBody {\n /**\n * URL of the [Bot](#schema_bot); Only available for dev bots\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'url'?: string;\n /**\n * Type of the [Bot](#schema_bot) authentication (`iam`)\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'authentication'?: UpdateBotBodyAuthenticationEnum;\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof UpdateBotBody\n */\n 'states'?: { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof UpdateBotBody\n */\n 'tags'?: CreateBotBodyTags;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof UpdateBotBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof UpdateBotBody\n */\n 'recurringEvents'?: { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * \n * @type {CreateBotBodyConfiguration}\n * @memberof UpdateBotBody\n */\n 'configuration'?: CreateBotBodyConfiguration;\n /**\n * \n * @type {boolean}\n * @memberof UpdateBotBody\n */\n 'blocked'?: boolean;\n /**\n * \n * @type {{ [key: string]: UpdateBotBodyIntegrationsValue; }}\n * @memberof UpdateBotBody\n */\n 'integrations'?: { [key: string]: UpdateBotBodyIntegrationsValue; };\n /**\n * JavaScript code of the bot\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'code'?: string;\n /**\n * Optional name for the bot, if not provided will be auto-generated\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'name'?: string;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<CreateBotBodyMediasInner>}\n * @memberof UpdateBotBody\n */\n 'medias'?: Array<CreateBotBodyMediasInner>;\n}\n\nexport const UpdateBotBodyAuthenticationEnum = {\n Iam: 'iam'\n} as const;\n\nexport type UpdateBotBodyAuthenticationEnum = typeof UpdateBotBodyAuthenticationEnum[keyof typeof UpdateBotBodyAuthenticationEnum];\n\n/**\n * \n * @export\n * @interface UpdateBotBodyIntegrationsValue\n */\nexport interface UpdateBotBodyIntegrationsValue {\n /**\n * \n * @type {boolean}\n * @memberof UpdateBotBodyIntegrationsValue\n */\n 'enabled': boolean;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof UpdateBotBodyIntegrationsValue\n */\n 'configuration': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface UpdateBotResponse\n */\nexport interface UpdateBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof UpdateBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface UpdateConversationBody\n */\nexport interface UpdateConversationBody {\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof UpdateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Ids of the [User]s(#schema_user) participating in the conversation\n * @type {Array<string>}\n * @memberof UpdateConversationBody\n */\n 'participantIds': Array<string>;\n}\n/**\n * \n * @export\n * @interface UpdateConversationResponse\n */\nexport interface UpdateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof UpdateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface UpdateIntegrationBody\n */\nexport interface UpdateIntegrationBody {\n /**\n * \n * @type {CreateIntegrationBodyTags}\n * @memberof UpdateIntegrationBody\n */\n 'tags'?: CreateIntegrationBodyTags;\n /**\n * Channels definition\n * @type {{ [key: string]: CreateIntegrationBodyChannelsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'channels'?: { [key: string]: CreateIntegrationBodyChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof UpdateIntegrationBody\n */\n 'configuration'?: CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'actions'?: { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof UpdateIntegrationBody\n */\n 'user'?: CreateIntegrationBodyUser;\n /**\n * JavaScript code of the integration\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'code'?: string;\n /**\n * Whether the integration is public\n * @type {boolean}\n * @memberof UpdateIntegrationBody\n */\n 'public'?: boolean;\n /**\n * URL of the integration; Only available for dev integrations\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'url'?: string;\n}\n/**\n * \n * @export\n * @interface UpdateIntegrationResponse\n */\nexport interface UpdateIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof UpdateIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface UpdateMessageBody\n */\nexport interface UpdateMessageBody {\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof UpdateMessageBody\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface UpdateMessageResponse\n */\nexport interface UpdateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof UpdateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface UpdateUserBody\n */\nexport interface UpdateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof UpdateUserBody\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface UpdateUserResponse\n */\nexport interface UpdateUserResponse {\n /**\n * \n * @type {User}\n * @memberof UpdateUserResponse\n */\n 'user': User;\n}\n/**\n * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.\n * @export\n * @interface User\n */\nexport interface User {\n /**\n * Id of the [User](#schema_user)\n * @type {string}\n * @memberof User\n */\n 'id': string;\n /**\n * Creation date of the [User](#schema_user) in the ISO 8601 format\n * @type {string}\n * @memberof User\n */\n 'createdAt': string;\n /**\n * Updating date of the [User](#schema_user) in the ISO 8601 format\n * @type {string}\n * @memberof User\n */\n 'updatedAt': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [User](#schema_user). The set of [Tags](#tags) available on a [User](#schema_user) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof User\n */\n 'tags': { [key: string]: string; };\n}\n\n/**\n * DefaultApi - axios parameter creator\n * @export\n */\nexport const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n callAction: async (callActionBody?: CallActionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/actions`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(callActionBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n configureIntegration: async (configureIntegrationBody?: ConfigureIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/integrations/configure`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(configureIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createBot: async (createBotBody?: CreateBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/bots`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createConversation: async (createConversationBody?: CreateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createEvent: async (createEventBody?: CreateEventBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/events`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createEventBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createFile: async (createFileBody?: CreateFileBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/storage/files`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createFileBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createIntegration: async (createIntegrationBody?: CreateIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createMessage: async (createMessageBody?: CreateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createUser: async (createUserBody?: CreateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteBot: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteConversation: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteIntegration: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteMessage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n downloadFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('downloadFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}/download`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBot: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotAnalytics: async (id: string, startDate: string, endDate: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotAnalytics', 'id', id)\n // verify required parameter 'startDate' is not null or undefined\n assertParamExists('getBotAnalytics', 'startDate', startDate)\n // verify required parameter 'endDate' is not null or undefined\n assertParamExists('getBotAnalytics', 'endDate', endDate)\n const localVarPath = `/v1/admin/bots/{id}/analytics`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (startDate !== undefined) {\n localVarQueryParameter['startDate'] = startDate;\n }\n\n if (endDate !== undefined) {\n localVarQueryParameter['endDate'] = endDate;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotLogs: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotLogs', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}/logs`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotWebchat: async (id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotWebchat', 'id', id)\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getBotWebchat', 'type', type)\n const localVarPath = `/v1/admin/bots/{id}/webchat`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (type !== undefined) {\n localVarQueryParameter['type'] = type;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getConversation: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEvent: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getEvent', 'id', id)\n const localVarPath = `/v1/chat/events/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegration: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationByName: async (name: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getIntegrationByName', 'name', name)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getIntegrationByName', 'version', version)\n const localVarPath = `/v1/admin/integrations/{name}/{version}`\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMessage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateConversation: async (getOrCreateConversationBody?: GetOrCreateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateMessage: async (getOrCreateMessageBody?: GetOrCreateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateUser: async (getOrCreateUserBody?: GetOrCreateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegration: async (name: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getPublicIntegration', 'name', name)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getPublicIntegration', 'version', version)\n const localVarPath = `/v1/admin/hub/integrations/{name}/{version}`\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegrationById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getPublicIntegrationById', 'id', id)\n const localVarPath = `/v1/admin/hub/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n introspect: async (introspectBody?: IntrospectBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/introspect`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(introspectBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listBots: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/bots`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listConversations: async (nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n if (participantIds) {\n localVarQueryParameter['participantIds'] = participantIds;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listEvents: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/events`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listFiles: async (botId: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'botId' is not null or undefined\n assertParamExists('listFiles', 'botId', botId)\n const localVarPath = `/v1/storage/files`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (botId !== undefined) {\n localVarQueryParameter['botId'] = botId;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listIntegrations: async (nextToken?: string, name?: string, version?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (name !== undefined) {\n localVarQueryParameter['name'] = name;\n }\n\n if (version !== undefined) {\n localVarQueryParameter['version'] = version;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listMessages: async (nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (conversationId !== undefined) {\n localVarQueryParameter['conversationId'] = conversationId;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listPublicIntegrations: async (nextToken?: string, name?: string, version?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/hub/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (name !== undefined) {\n localVarQueryParameter['name'] = name;\n }\n\n if (version !== undefined) {\n localVarQueryParameter['version'] = version;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listUsers: async (nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (conversationId !== undefined) {\n localVarQueryParameter['conversationId'] = conversationId;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listWorkspaces: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/workspaces`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n patchState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('patchState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('patchState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('patchState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(patchStateBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n setState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('setState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('setState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('setState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(setStateBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n transferBot: async (id: string, transferBotBody?: TransferBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('transferBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}/transfer`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(transferBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateBot: async (id: string, updateBotBody?: UpdateBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateConversation: async (id: string, updateConversationBody?: UpdateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateIntegration: async (id: string, updateIntegrationBody?: UpdateIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateMessage: async (id: string, updateMessageBody?: UpdateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateUser: async (id: string, updateUserBody?: UpdateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DefaultApi - functional programming interface\n * @export\n */\nexport const DefaultApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)\n return {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async callAction(callActionBody?: CallActionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CallActionResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.callAction(callActionBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async configureIntegration(configureIntegrationBody?: ConfigureIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.configureIntegration(configureIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createBot(createBotBody?: CreateBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createBot(createBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createConversation(createConversationBody?: CreateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createConversation(createConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createEvent(createEventBody?: CreateEventBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createEvent(createEventBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createFile(createFileBody?: CreateFileBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFileResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createFile(createFileBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createIntegration(createIntegrationBody?: CreateIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createIntegration(createIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createMessage(createMessageBody?: CreateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createMessage(createMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createUser(createUserBody?: CreateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteBot(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBot(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteConversation(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConversation(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteIntegration(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteIntegration(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteMessage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMessage(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async downloadFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBot(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBot(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotAnalytics(id: string, startDate: string, endDate: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotAnalyticsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotAnalytics(id, startDate, endDate, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotLogs(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotLogsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotLogs(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotWebchat(id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotWebchatResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotWebchat(id, type, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getConversation(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getConversation(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getEvent(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEventResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getEvent(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFileResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getIntegration(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegration(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationByNameResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegrationByName(name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getMessage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getMessage(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateConversation(getOrCreateConversationBody?: GetOrCreateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateConversation(getOrCreateConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateMessage(getOrCreateMessageBody?: GetOrCreateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateMessage(getOrCreateMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateUser(getOrCreateUserBody?: GetOrCreateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateUser(getOrCreateUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getPublicIntegration(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicIntegration(name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getPublicIntegrationById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicIntegrationByIdResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicIntegrationById(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getState(type, id, name, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async introspect(introspectBody?: IntrospectBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntrospectResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.introspect(introspectBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listBots(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBotsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listBots(nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listConversations(nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListConversationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listConversations(nextToken, tags, participantIds, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listEvents(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEventsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listEvents(nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listFiles(botId: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFilesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(botId, nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIntegrationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listIntegrations(nextToken, name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listMessages(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListMessagesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listMessages(nextToken, conversationId, tags, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listPublicIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPublicIntegrationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listPublicIntegrations(nextToken, name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listUsers(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, conversationId, tags, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listWorkspaces(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async patchState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.patchState(type, id, name, patchStateBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async setState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.setState(type, id, name, setStateBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async transferBot(id: string, transferBotBody?: TransferBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.transferBot(id, transferBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateBot(id: string, updateBotBody?: UpdateBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateBot(id, updateBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateConversation(id: string, updateConversationBody?: UpdateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateConversation(id, updateConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateIntegration(id: string, updateIntegrationBody?: UpdateIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateIntegration(id, updateIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateMessage(id: string, updateMessageBody?: UpdateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateMessage(id, updateMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateUser(id: string, updateUserBody?: UpdateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, updateUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * DefaultApi - factory interface\n * @export\n */\nexport const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DefaultApiFp(configuration)\n return {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n callAction(callActionBody?: CallActionBody, options?: any): AxiosPromise<CallActionResponse> {\n return localVarFp.callAction(callActionBody, options).then((request) => request(axios, basePath));\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n configureIntegration(configureIntegrationBody?: ConfigureIntegrationBody, options?: any): AxiosPromise<object> {\n return localVarFp.configureIntegration(configureIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createBot(createBotBody?: CreateBotBody, options?: any): AxiosPromise<CreateBotResponse> {\n return localVarFp.createBot(createBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createConversation(createConversationBody?: CreateConversationBody, options?: any): AxiosPromise<CreateConversationResponse> {\n return localVarFp.createConversation(createConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createEvent(createEventBody?: CreateEventBody, options?: any): AxiosPromise<CreateEventResponse> {\n return localVarFp.createEvent(createEventBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createFile(createFileBody?: CreateFileBody, options?: any): AxiosPromise<CreateFileResponse> {\n return localVarFp.createFile(createFileBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createIntegration(createIntegrationBody?: CreateIntegrationBody, options?: any): AxiosPromise<CreateIntegrationResponse> {\n return localVarFp.createIntegration(createIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createMessage(createMessageBody?: CreateMessageBody, options?: any): AxiosPromise<CreateMessageResponse> {\n return localVarFp.createMessage(createMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createUser(createUserBody?: CreateUserBody, options?: any): AxiosPromise<CreateUserResponse> {\n return localVarFp.createUser(createUserBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteBot(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteBot(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteConversation(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteConversation(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteFile(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteFile(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteIntegration(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteIntegration(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteMessage(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteMessage(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteUser(id: string, options?: any): AxiosPromise<object> {\n return localVarFp.deleteUser(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n downloadFile(id: string, options?: any): AxiosPromise<any> {\n return localVarFp.downloadFile(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBot(id: string, options?: any): AxiosPromise<GetBotResponse> {\n return localVarFp.getBot(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotAnalytics(id: string, startDate: string, endDate: string, options?: any): AxiosPromise<GetBotAnalyticsResponse> {\n return localVarFp.getBotAnalytics(id, startDate, endDate, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotLogs(id: string, options?: any): AxiosPromise<GetBotLogsResponse> {\n return localVarFp.getBotLogs(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotWebchat(id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options?: any): AxiosPromise<GetBotWebchatResponse> {\n return localVarFp.getBotWebchat(id, type, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getConversation(id: string, options?: any): AxiosPromise<GetConversationResponse> {\n return localVarFp.getConversation(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEvent(id: string, options?: any): AxiosPromise<GetEventResponse> {\n return localVarFp.getEvent(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFile(id: string, options?: any): AxiosPromise<GetFileResponse> {\n return localVarFp.getFile(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegration(id: string, options?: any): AxiosPromise<GetIntegrationResponse> {\n return localVarFp.getIntegration(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationByName(name: string, version: string, options?: any): AxiosPromise<GetIntegrationByNameResponse> {\n return localVarFp.getIntegrationByName(name, version, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMessage(id: string, options?: any): AxiosPromise<GetMessageResponse> {\n return localVarFp.getMessage(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateConversation(getOrCreateConversationBody?: GetOrCreateConversationBody, options?: any): AxiosPromise<GetOrCreateConversationResponse> {\n return localVarFp.getOrCreateConversation(getOrCreateConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateMessage(getOrCreateMessageBody?: GetOrCreateMessageBody, options?: any): AxiosPromise<GetOrCreateMessageResponse> {\n return localVarFp.getOrCreateMessage(getOrCreateMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateUser(getOrCreateUserBody?: GetOrCreateUserBody, options?: any): AxiosPromise<GetOrCreateUserResponse> {\n return localVarFp.getOrCreateUser(getOrCreateUserBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegration(name: string, version: string, options?: any): AxiosPromise<GetPublicIntegrationResponse> {\n return localVarFp.getPublicIntegration(name, version, options).then((request) => request(axios, basePath));\n },\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegrationById(id: string, options?: any): AxiosPromise<GetPublicIntegrationByIdResponse> {\n return localVarFp.getPublicIntegrationById(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options?: any): AxiosPromise<GetStateResponse> {\n return localVarFp.getState(type, id, name, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getUser(id: string, options?: any): AxiosPromise<GetUserResponse> {\n return localVarFp.getUser(id, options).then((request) => request(axios, basePath));\n },\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n introspect(introspectBody?: IntrospectBody, options?: any): AxiosPromise<IntrospectResponse> {\n return localVarFp.introspect(introspectBody, options).then((request) => request(axios, basePath));\n },\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listBots(nextToken?: string, options?: any): AxiosPromise<ListBotsResponse> {\n return localVarFp.listBots(nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listConversations(nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options?: any): AxiosPromise<ListConversationsResponse> {\n return localVarFp.listConversations(nextToken, tags, participantIds, options).then((request) => request(axios, basePath));\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listEvents(nextToken?: string, options?: any): AxiosPromise<ListEventsResponse> {\n return localVarFp.listEvents(nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listFiles(botId: string, nextToken?: string, options?: any): AxiosPromise<ListFilesResponse> {\n return localVarFp.listFiles(botId, nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listIntegrations(nextToken?: string, name?: string, version?: string, options?: any): AxiosPromise<ListIntegrationsResponse> {\n return localVarFp.listIntegrations(nextToken, name, version, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listMessages(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: any): AxiosPromise<ListMessagesResponse> {\n return localVarFp.listMessages(nextToken, conversationId, tags, options).then((request) => request(axios, basePath));\n },\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listPublicIntegrations(nextToken?: string, name?: string, version?: string, options?: any): AxiosPromise<ListPublicIntegrationsResponse> {\n return localVarFp.listPublicIntegrations(nextToken, name, version, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listUsers(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: any): AxiosPromise<ListUsersResponse> {\n return localVarFp.listUsers(nextToken, conversationId, tags, options).then((request) => request(axios, basePath));\n },\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listWorkspaces(nextToken?: string, options?: any): AxiosPromise<ListWorkspacesResponse> {\n return localVarFp.listWorkspaces(nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n patchState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options?: any): AxiosPromise<PatchStateResponse> {\n return localVarFp.patchState(type, id, name, patchStateBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n setState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options?: any): AxiosPromise<SetStateResponse> {\n return localVarFp.setState(type, id, name, setStateBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n transferBot(id: string, transferBotBody?: TransferBotBody, options?: any): AxiosPromise<object> {\n return localVarFp.transferBot(id, transferBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateBot(id: string, updateBotBody?: UpdateBotBody, options?: any): AxiosPromise<UpdateBotResponse> {\n return localVarFp.updateBot(id, updateBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateConversation(id: string, updateConversationBody?: UpdateConversationBody, options?: any): AxiosPromise<UpdateConversationResponse> {\n return localVarFp.updateConversation(id, updateConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateIntegration(id: string, updateIntegrationBody?: UpdateIntegrationBody, options?: any): AxiosPromise<UpdateIntegrationResponse> {\n return localVarFp.updateIntegration(id, updateIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateMessage(id: string, updateMessageBody?: UpdateMessageBody, options?: any): AxiosPromise<UpdateMessageResponse> {\n return localVarFp.updateMessage(id, updateMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateUser(id: string, updateUserBody?: UpdateUserBody, options?: any): AxiosPromise<UpdateUserResponse> {\n return localVarFp.updateUser(id, updateUserBody, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * DefaultApi - interface\n * @export\n * @interface DefaultApi\n */\nexport interface DefaultApiInterface {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n callAction(callActionBody?: CallActionBody, options?: AxiosRequestConfig): AxiosPromise<CallActionResponse>;\n\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n configureIntegration(configureIntegrationBody?: ConfigureIntegrationBody, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createBot(createBotBody?: CreateBotBody, options?: AxiosRequestConfig): AxiosPromise<CreateBotResponse>;\n\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createConversation(createConversationBody?: CreateConversationBody, options?: AxiosRequestConfig): AxiosPromise<CreateConversationResponse>;\n\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createEvent(createEventBody?: CreateEventBody, options?: AxiosRequestConfig): AxiosPromise<CreateEventResponse>;\n\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createFile(createFileBody?: CreateFileBody, options?: AxiosRequestConfig): AxiosPromise<CreateFileResponse>;\n\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createIntegration(createIntegrationBody?: CreateIntegrationBody, options?: AxiosRequestConfig): AxiosPromise<CreateIntegrationResponse>;\n\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createMessage(createMessageBody?: CreateMessageBody, options?: AxiosRequestConfig): AxiosPromise<CreateMessageResponse>;\n\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n createUser(createUserBody?: CreateUserBody, options?: AxiosRequestConfig): AxiosPromise<CreateUserResponse>;\n\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteBot(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteConversation(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteFile(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteIntegration(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteMessage(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n deleteUser(id: string, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n downloadFile(id: string, options?: AxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getBot(id: string, options?: AxiosRequestConfig): AxiosPromise<GetBotResponse>;\n\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getBotAnalytics(id: string, startDate: string, endDate: string, options?: AxiosRequestConfig): AxiosPromise<GetBotAnalyticsResponse>;\n\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getBotLogs(id: string, options?: AxiosRequestConfig): AxiosPromise<GetBotLogsResponse>;\n\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getBotWebchat(id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options?: AxiosRequestConfig): AxiosPromise<GetBotWebchatResponse>;\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getConversation(id: string, options?: AxiosRequestConfig): AxiosPromise<GetConversationResponse>;\n\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getEvent(id: string, options?: AxiosRequestConfig): AxiosPromise<GetEventResponse>;\n\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getFile(id: string, options?: AxiosRequestConfig): AxiosPromise<GetFileResponse>;\n\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getIntegration(id: string, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationResponse>;\n\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationByNameResponse>;\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getMessage(id: string, options?: AxiosRequestConfig): AxiosPromise<GetMessageResponse>;\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getOrCreateConversation(getOrCreateConversationBody?: GetOrCreateConversationBody, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateConversationResponse>;\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getOrCreateMessage(getOrCreateMessageBody?: GetOrCreateMessageBody, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateMessageResponse>;\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getOrCreateUser(getOrCreateUserBody?: GetOrCreateUserBody, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateUserResponse>;\n\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getPublicIntegration(name: string, version: string, options?: AxiosRequestConfig): AxiosPromise<GetPublicIntegrationResponse>;\n\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getPublicIntegrationById(id: string, options?: AxiosRequestConfig): AxiosPromise<GetPublicIntegrationByIdResponse>;\n\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options?: AxiosRequestConfig): AxiosPromise<GetStateResponse>;\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n getUser(id: string, options?: AxiosRequestConfig): AxiosPromise<GetUserResponse>;\n\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n introspect(introspectBody?: IntrospectBody, options?: AxiosRequestConfig): AxiosPromise<IntrospectResponse>;\n\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listBots(nextToken?: string, options?: AxiosRequestConfig): AxiosPromise<ListBotsResponse>;\n\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listConversations(nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options?: AxiosRequestConfig): AxiosPromise<ListConversationsResponse>;\n\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listEvents(nextToken?: string, options?: AxiosRequestConfig): AxiosPromise<ListEventsResponse>;\n\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listFiles(botId: string, nextToken?: string, options?: AxiosRequestConfig): AxiosPromise<ListFilesResponse>;\n\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): AxiosPromise<ListIntegrationsResponse>;\n\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listMessages(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): AxiosPromise<ListMessagesResponse>;\n\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listPublicIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): AxiosPromise<ListPublicIntegrationsResponse>;\n\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listUsers(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): AxiosPromise<ListUsersResponse>;\n\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n listWorkspaces(nextToken?: string, options?: AxiosRequestConfig): AxiosPromise<ListWorkspacesResponse>;\n\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n patchState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options?: AxiosRequestConfig): AxiosPromise<PatchStateResponse>;\n\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n setState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options?: AxiosRequestConfig): AxiosPromise<SetStateResponse>;\n\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n transferBot(id: string, transferBotBody?: TransferBotBody, options?: AxiosRequestConfig): AxiosPromise<object>;\n\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n updateBot(id: string, updateBotBody?: UpdateBotBody, options?: AxiosRequestConfig): AxiosPromise<UpdateBotResponse>;\n\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n updateConversation(id: string, updateConversationBody?: UpdateConversationBody, options?: AxiosRequestConfig): AxiosPromise<UpdateConversationResponse>;\n\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n updateIntegration(id: string, updateIntegrationBody?: UpdateIntegrationBody, options?: AxiosRequestConfig): AxiosPromise<UpdateIntegrationResponse>;\n\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n updateMessage(id: string, updateMessageBody?: UpdateMessageBody, options?: AxiosRequestConfig): AxiosPromise<UpdateMessageResponse>;\n\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApiInterface\n */\n updateUser(id: string, updateUserBody?: UpdateUserBody, options?: AxiosRequestConfig): AxiosPromise<UpdateUserResponse>;\n\n}\n\n/**\n * Request parameters for callAction operation in DefaultApi.\n * @export\n * @interface DefaultApiCallActionRequest\n */\nexport interface DefaultApiCallActionRequest {\n /**\n * Action payload\n * @type {CallActionBody}\n * @memberof DefaultApiCallAction\n */\n readonly callActionBody?: CallActionBody\n}\n\n/**\n * Request parameters for configureIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiConfigureIntegrationRequest\n */\nexport interface DefaultApiConfigureIntegrationRequest {\n /**\n * Configuration of the integration\n * @type {ConfigureIntegrationBody}\n * @memberof DefaultApiConfigureIntegration\n */\n readonly configureIntegrationBody?: ConfigureIntegrationBody\n}\n\n/**\n * Request parameters for createBot operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateBotRequest\n */\nexport interface DefaultApiCreateBotRequest {\n /**\n * Bot metadata\n * @type {CreateBotBody}\n * @memberof DefaultApiCreateBot\n */\n readonly createBotBody?: CreateBotBody\n}\n\n/**\n * Request parameters for createConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateConversationRequest\n */\nexport interface DefaultApiCreateConversationRequest {\n /**\n * Conversation data\n * @type {CreateConversationBody}\n * @memberof DefaultApiCreateConversation\n */\n readonly createConversationBody?: CreateConversationBody\n}\n\n/**\n * Request parameters for createEvent operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateEventRequest\n */\nexport interface DefaultApiCreateEventRequest {\n /**\n * Event data\n * @type {CreateEventBody}\n * @memberof DefaultApiCreateEvent\n */\n readonly createEventBody?: CreateEventBody\n}\n\n/**\n * Request parameters for createFile operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateFileRequest\n */\nexport interface DefaultApiCreateFileRequest {\n /**\n * Create File\n * @type {CreateFileBody}\n * @memberof DefaultApiCreateFile\n */\n readonly createFileBody?: CreateFileBody\n}\n\n/**\n * Request parameters for createIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateIntegrationRequest\n */\nexport interface DefaultApiCreateIntegrationRequest {\n /**\n * Integration\n * @type {CreateIntegrationBody}\n * @memberof DefaultApiCreateIntegration\n */\n readonly createIntegrationBody?: CreateIntegrationBody\n}\n\n/**\n * Request parameters for createMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateMessageRequest\n */\nexport interface DefaultApiCreateMessageRequest {\n /**\n * Message data\n * @type {CreateMessageBody}\n * @memberof DefaultApiCreateMessage\n */\n readonly createMessageBody?: CreateMessageBody\n}\n\n/**\n * Request parameters for createUser operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateUserRequest\n */\nexport interface DefaultApiCreateUserRequest {\n /**\n * User data\n * @type {CreateUserBody}\n * @memberof DefaultApiCreateUser\n */\n readonly createUserBody?: CreateUserBody\n}\n\n/**\n * Request parameters for deleteBot operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteBotRequest\n */\nexport interface DefaultApiDeleteBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiDeleteBot\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteConversationRequest\n */\nexport interface DefaultApiDeleteConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiDeleteConversation\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteFile operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteFileRequest\n */\nexport interface DefaultApiDeleteFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiDeleteFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteIntegrationRequest\n */\nexport interface DefaultApiDeleteIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiDeleteIntegration\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteMessageRequest\n */\nexport interface DefaultApiDeleteMessageRequest {\n /**\n * Message id\n * @type {string}\n * @memberof DefaultApiDeleteMessage\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteUser operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteUserRequest\n */\nexport interface DefaultApiDeleteUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiDeleteUser\n */\n readonly id: string\n}\n\n/**\n * Request parameters for downloadFile operation in DefaultApi.\n * @export\n * @interface DefaultApiDownloadFileRequest\n */\nexport interface DefaultApiDownloadFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiDownloadFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBot operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotRequest\n */\nexport interface DefaultApiGetBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBot\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBotAnalytics operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotAnalyticsRequest\n */\nexport interface DefaultApiGetBotAnalyticsRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly id: string\n\n /**\n * Start date/time (inclusive)\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly startDate: string\n\n /**\n * End date/time (exclusive)\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly endDate: string\n}\n\n/**\n * Request parameters for getBotLogs operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotLogsRequest\n */\nexport interface DefaultApiGetBotLogsRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotLogs\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBotWebchat operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotWebchatRequest\n */\nexport interface DefaultApiGetBotWebchatRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotWebchat\n */\n readonly id: string\n\n /**\n * type of script to get\n * @type {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'}\n * @memberof DefaultApiGetBotWebchat\n */\n readonly type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'\n}\n\n/**\n * Request parameters for getConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiGetConversationRequest\n */\nexport interface DefaultApiGetConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiGetConversation\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getEvent operation in DefaultApi.\n * @export\n * @interface DefaultApiGetEventRequest\n */\nexport interface DefaultApiGetEventRequest {\n /**\n * Event id\n * @type {string}\n * @memberof DefaultApiGetEvent\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getFile operation in DefaultApi.\n * @export\n * @interface DefaultApiGetFileRequest\n */\nexport interface DefaultApiGetFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiGetFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiGetIntegrationRequest\n */\nexport interface DefaultApiGetIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiGetIntegration\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getIntegrationByName operation in DefaultApi.\n * @export\n * @interface DefaultApiGetIntegrationByNameRequest\n */\nexport interface DefaultApiGetIntegrationByNameRequest {\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiGetIntegrationByName\n */\n readonly name: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiGetIntegrationByName\n */\n readonly version: string\n}\n\n/**\n * Request parameters for getMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiGetMessageRequest\n */\nexport interface DefaultApiGetMessageRequest {\n /**\n * Id of the Message\n * @type {string}\n * @memberof DefaultApiGetMessage\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getOrCreateConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateConversationRequest\n */\nexport interface DefaultApiGetOrCreateConversationRequest {\n /**\n * Conversation data\n * @type {GetOrCreateConversationBody}\n * @memberof DefaultApiGetOrCreateConversation\n */\n readonly getOrCreateConversationBody?: GetOrCreateConversationBody\n}\n\n/**\n * Request parameters for getOrCreateMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateMessageRequest\n */\nexport interface DefaultApiGetOrCreateMessageRequest {\n /**\n * Message data\n * @type {GetOrCreateMessageBody}\n * @memberof DefaultApiGetOrCreateMessage\n */\n readonly getOrCreateMessageBody?: GetOrCreateMessageBody\n}\n\n/**\n * Request parameters for getOrCreateUser operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateUserRequest\n */\nexport interface DefaultApiGetOrCreateUserRequest {\n /**\n * User data\n * @type {GetOrCreateUserBody}\n * @memberof DefaultApiGetOrCreateUser\n */\n readonly getOrCreateUserBody?: GetOrCreateUserBody\n}\n\n/**\n * Request parameters for getPublicIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiGetPublicIntegrationRequest\n */\nexport interface DefaultApiGetPublicIntegrationRequest {\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiGetPublicIntegration\n */\n readonly name: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiGetPublicIntegration\n */\n readonly version: string\n}\n\n/**\n * Request parameters for getPublicIntegrationById operation in DefaultApi.\n * @export\n * @interface DefaultApiGetPublicIntegrationByIdRequest\n */\nexport interface DefaultApiGetPublicIntegrationByIdRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiGetPublicIntegrationById\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getState operation in DefaultApi.\n * @export\n * @interface DefaultApiGetStateRequest\n */\nexport interface DefaultApiGetStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiGetState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiGetState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiGetState\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getUser operation in DefaultApi.\n * @export\n * @interface DefaultApiGetUserRequest\n */\nexport interface DefaultApiGetUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiGetUser\n */\n readonly id: string\n}\n\n/**\n * Request parameters for introspect operation in DefaultApi.\n * @export\n * @interface DefaultApiIntrospectRequest\n */\nexport interface DefaultApiIntrospectRequest {\n /**\n * \n * @type {IntrospectBody}\n * @memberof DefaultApiIntrospect\n */\n readonly introspectBody?: IntrospectBody\n}\n\n/**\n * Request parameters for listBots operation in DefaultApi.\n * @export\n * @interface DefaultApiListBotsRequest\n */\nexport interface DefaultApiListBotsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListBots\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for listConversations operation in DefaultApi.\n * @export\n * @interface DefaultApiListConversationsRequest\n */\nexport interface DefaultApiListConversationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListConversations\n */\n readonly nextToken?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListConversations\n */\n readonly tags?: { [key: string]: string; }\n\n /**\n * Filter by participant ids\n * @type {Array<string>}\n * @memberof DefaultApiListConversations\n */\n readonly participantIds?: Array<string>\n}\n\n/**\n * Request parameters for listEvents operation in DefaultApi.\n * @export\n * @interface DefaultApiListEventsRequest\n */\nexport interface DefaultApiListEventsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListEvents\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for listFiles operation in DefaultApi.\n * @export\n * @interface DefaultApiListFilesRequest\n */\nexport interface DefaultApiListFilesRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiListFiles\n */\n readonly botId: string\n\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListFiles\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for listIntegrations operation in DefaultApi.\n * @export\n * @interface DefaultApiListIntegrationsRequest\n */\nexport interface DefaultApiListIntegrationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly nextToken?: string\n\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly name?: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly version?: string\n}\n\n/**\n * Request parameters for listMessages operation in DefaultApi.\n * @export\n * @interface DefaultApiListMessagesRequest\n */\nexport interface DefaultApiListMessagesRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListMessages\n */\n readonly nextToken?: string\n\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiListMessages\n */\n readonly conversationId?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListMessages\n */\n readonly tags?: { [key: string]: string; }\n}\n\n/**\n * Request parameters for listPublicIntegrations operation in DefaultApi.\n * @export\n * @interface DefaultApiListPublicIntegrationsRequest\n */\nexport interface DefaultApiListPublicIntegrationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly nextToken?: string\n\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly name?: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly version?: string\n}\n\n/**\n * Request parameters for listUsers operation in DefaultApi.\n * @export\n * @interface DefaultApiListUsersRequest\n */\nexport interface DefaultApiListUsersRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListUsers\n */\n readonly nextToken?: string\n\n /**\n * Filter by conversation id. This will return all users that have participated in the conversation.\n * @type {string}\n * @memberof DefaultApiListUsers\n */\n readonly conversationId?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListUsers\n */\n readonly tags?: { [key: string]: string; }\n}\n\n/**\n * Request parameters for listWorkspaces operation in DefaultApi.\n * @export\n * @interface DefaultApiListWorkspacesRequest\n */\nexport interface DefaultApiListWorkspacesRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListWorkspaces\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for patchState operation in DefaultApi.\n * @export\n * @interface DefaultApiPatchStateRequest\n */\nexport interface DefaultApiPatchStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiPatchState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiPatchState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiPatchState\n */\n readonly name: string\n\n /**\n * State content\n * @type {PatchStateBody}\n * @memberof DefaultApiPatchState\n */\n readonly patchStateBody?: PatchStateBody\n}\n\n/**\n * Request parameters for setState operation in DefaultApi.\n * @export\n * @interface DefaultApiSetStateRequest\n */\nexport interface DefaultApiSetStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiSetState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiSetState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiSetState\n */\n readonly name: string\n\n /**\n * State content\n * @type {SetStateBody}\n * @memberof DefaultApiSetState\n */\n readonly setStateBody?: SetStateBody\n}\n\n/**\n * Request parameters for transferBot operation in DefaultApi.\n * @export\n * @interface DefaultApiTransferBotRequest\n */\nexport interface DefaultApiTransferBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiTransferBot\n */\n readonly id: string\n\n /**\n * Bot transfer request\n * @type {TransferBotBody}\n * @memberof DefaultApiTransferBot\n */\n readonly transferBotBody?: TransferBotBody\n}\n\n/**\n * Request parameters for updateBot operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateBotRequest\n */\nexport interface DefaultApiUpdateBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiUpdateBot\n */\n readonly id: string\n\n /**\n * Bot metadata\n * @type {UpdateBotBody}\n * @memberof DefaultApiUpdateBot\n */\n readonly updateBotBody?: UpdateBotBody\n}\n\n/**\n * Request parameters for updateConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateConversationRequest\n */\nexport interface DefaultApiUpdateConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiUpdateConversation\n */\n readonly id: string\n\n /**\n * Conversation data\n * @type {UpdateConversationBody}\n * @memberof DefaultApiUpdateConversation\n */\n readonly updateConversationBody?: UpdateConversationBody\n}\n\n/**\n * Request parameters for updateIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateIntegrationRequest\n */\nexport interface DefaultApiUpdateIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiUpdateIntegration\n */\n readonly id: string\n\n /**\n * Integration\n * @type {UpdateIntegrationBody}\n * @memberof DefaultApiUpdateIntegration\n */\n readonly updateIntegrationBody?: UpdateIntegrationBody\n}\n\n/**\n * Request parameters for updateMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateMessageRequest\n */\nexport interface DefaultApiUpdateMessageRequest {\n /**\n * Message id\n * @type {string}\n * @memberof DefaultApiUpdateMessage\n */\n readonly id: string\n\n /**\n * Message data\n * @type {UpdateMessageBody}\n * @memberof DefaultApiUpdateMessage\n */\n readonly updateMessageBody?: UpdateMessageBody\n}\n\n/**\n * Request parameters for updateUser operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateUserRequest\n */\nexport interface DefaultApiUpdateUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiUpdateUser\n */\n readonly id: string\n\n /**\n * User data\n * @type {UpdateUserBody}\n * @memberof DefaultApiUpdateUser\n */\n readonly updateUserBody?: UpdateUserBody\n}\n\n/**\n * DefaultApi - object-oriented interface\n * @export\n * @class DefaultApi\n * @extends {BaseAPI}\n */\nexport class DefaultApi extends BaseAPI implements DefaultApiInterface {\n /**\n * Call an action\n * @param {DefaultApiCallActionRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public callAction(requestParameters: DefaultApiCallActionRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).callAction(requestParameters.callActionBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * An integration can call this endpoint to configure itself\n * @param {DefaultApiConfigureIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public configureIntegration(requestParameters: DefaultApiConfigureIntegrationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).configureIntegration(requestParameters.configureIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create bot\n * @param {DefaultApiCreateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createBot(requestParameters: DefaultApiCreateBotRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createBot(requestParameters.createBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createConversation(requestParameters: DefaultApiCreateConversationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createConversation(requestParameters.createConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createEvent(requestParameters: DefaultApiCreateEventRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createEvent(requestParameters.createEventBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create File\n * @param {DefaultApiCreateFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createFile(requestParameters: DefaultApiCreateFileRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createFile(requestParameters.createFileBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create integration\n * @param {DefaultApiCreateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createIntegration(requestParameters: DefaultApiCreateIntegrationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createIntegration(requestParameters.createIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createMessage(requestParameters: DefaultApiCreateMessageRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createMessage(requestParameters.createMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createUser(requestParameters: DefaultApiCreateUserRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createUser(requestParameters.createUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete bot\n * @param {DefaultApiDeleteBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteBot(requestParameters: DefaultApiDeleteBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {DefaultApiDeleteConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteConversation(requestParameters: DefaultApiDeleteConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteConversation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete File\n * @param {DefaultApiDeleteFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteFile(requestParameters: DefaultApiDeleteFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete integration\n * @param {DefaultApiDeleteIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteIntegration(requestParameters: DefaultApiDeleteIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteIntegration(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {DefaultApiDeleteMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteMessage(requestParameters: DefaultApiDeleteMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteMessage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {DefaultApiDeleteUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteUser(requestParameters: DefaultApiDeleteUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Download File\n * @param {DefaultApiDownloadFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public downloadFile(requestParameters: DefaultApiDownloadFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).downloadFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot details\n * @param {DefaultApiGetBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBot(requestParameters: DefaultApiGetBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot analytics\n * @param {DefaultApiGetBotAnalyticsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotAnalytics(requestParameters: DefaultApiGetBotAnalyticsRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotAnalytics(requestParameters.id, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot logs\n * @param {DefaultApiGetBotLogsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotLogs(requestParameters: DefaultApiGetBotLogsRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotLogs(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get the webchat code/URL for a bot\n * @param {DefaultApiGetBotWebchatRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotWebchat(requestParameters: DefaultApiGetBotWebchatRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotWebchat(requestParameters.id, requestParameters.type, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {DefaultApiGetConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getConversation(requestParameters: DefaultApiGetConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getConversation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {DefaultApiGetEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getEvent(requestParameters: DefaultApiGetEventRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getEvent(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get File\n * @param {DefaultApiGetFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getFile(requestParameters: DefaultApiGetFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getIntegration(requestParameters: DefaultApiGetIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getIntegration(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationByNameRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getIntegrationByName(requestParameters: DefaultApiGetIntegrationByNameRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getIntegrationByName(requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {DefaultApiGetMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getMessage(requestParameters: DefaultApiGetMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getMessage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {DefaultApiGetOrCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateConversation(requestParameters: DefaultApiGetOrCreateConversationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateConversation(requestParameters.getOrCreateConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {DefaultApiGetOrCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateMessage(requestParameters: DefaultApiGetOrCreateMessageRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateMessage(requestParameters.getOrCreateMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {DefaultApiGetOrCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateUser(requestParameters: DefaultApiGetOrCreateUserRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateUser(requestParameters.getOrCreateUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get public integration by name and version\n * @param {DefaultApiGetPublicIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getPublicIntegration(requestParameters: DefaultApiGetPublicIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getPublicIntegration(requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get public integration by Id\n * @param {DefaultApiGetPublicIntegrationByIdRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getPublicIntegrationById(requestParameters: DefaultApiGetPublicIntegrationByIdRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getPublicIntegrationById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {DefaultApiGetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getState(requestParameters: DefaultApiGetStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getState(requestParameters.type, requestParameters.id, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {DefaultApiGetUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getUser(requestParameters: DefaultApiGetUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Introspect the API\n * @param {DefaultApiIntrospectRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public introspect(requestParameters: DefaultApiIntrospectRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).introspect(requestParameters.introspectBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List bots\n * @param {DefaultApiListBotsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listBots(requestParameters: DefaultApiListBotsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listBots(requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListConversationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listConversations(requestParameters: DefaultApiListConversationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listConversations(requestParameters.nextToken, requestParameters.tags, requestParameters.participantIds, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {DefaultApiListEventsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listEvents(requestParameters: DefaultApiListEventsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listEvents(requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List Files\n * @param {DefaultApiListFilesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listFiles(requestParameters: DefaultApiListFilesRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listFiles(requestParameters.botId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List integrations\n * @param {DefaultApiListIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listIntegrations(requestParameters: DefaultApiListIntegrationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListMessagesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listMessages(requestParameters: DefaultApiListMessagesRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listMessages(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List public integration\n * @param {DefaultApiListPublicIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listPublicIntegrations(requestParameters: DefaultApiListPublicIntegrationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listPublicIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListUsersRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listUsers(requestParameters: DefaultApiListUsersRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listUsers(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List workspaces the user has access to\n * @param {DefaultApiListWorkspacesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listWorkspaces(requestParameters: DefaultApiListWorkspacesRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listWorkspaces(requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiPatchStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public patchState(requestParameters: DefaultApiPatchStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).patchState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.patchStateBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiSetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public setState(requestParameters: DefaultApiSetStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).setState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.setStateBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {DefaultApiTransferBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public transferBot(requestParameters: DefaultApiTransferBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).transferBot(requestParameters.id, requestParameters.transferBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update bot\n * @param {DefaultApiUpdateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateBot(requestParameters: DefaultApiUpdateBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateConversation(requestParameters: DefaultApiUpdateConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateConversation(requestParameters.id, requestParameters.updateConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update integration\n * @param {DefaultApiUpdateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateIntegration(requestParameters: DefaultApiUpdateIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateIntegration(requestParameters.id, requestParameters.updateIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a message\n * @param {DefaultApiUpdateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateMessage(requestParameters: DefaultApiUpdateMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateMessage(requestParameters.id, requestParameters.updateMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateUser(requestParameters: DefaultApiUpdateUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n// @ts-nocheck\n\nimport axios, { AxiosInstance } from 'axios'\nimport type { Merge, Except } from 'type-fest'\nimport {\n DefaultApi,\n Configuration,\n\tDefaultApiCreateConversationRequest,\n\tDefaultApiGetConversationRequest,\n\tDefaultApiListConversationsRequest,\n\tDefaultApiGetOrCreateConversationRequest,\n\tDefaultApiUpdateConversationRequest,\n\tDefaultApiDeleteConversationRequest,\n\tDefaultApiCreateEventRequest,\n\tDefaultApiGetEventRequest,\n\tDefaultApiListEventsRequest,\n\tDefaultApiCreateMessageRequest,\n\tDefaultApiGetOrCreateMessageRequest,\n\tDefaultApiGetMessageRequest,\n\tDefaultApiUpdateMessageRequest,\n\tDefaultApiListMessagesRequest,\n\tDefaultApiDeleteMessageRequest,\n\tDefaultApiCreateUserRequest,\n\tDefaultApiGetUserRequest,\n\tDefaultApiListUsersRequest,\n\tDefaultApiGetOrCreateUserRequest,\n\tDefaultApiUpdateUserRequest,\n\tDefaultApiDeleteUserRequest,\n\tDefaultApiGetStateRequest,\n\tDefaultApiSetStateRequest,\n\tDefaultApiPatchStateRequest,\n\tDefaultApiCallActionRequest,\n\tDefaultApiConfigureIntegrationRequest,\n\tDefaultApiListPublicIntegrationsRequest,\n\tDefaultApiGetPublicIntegrationByIdRequest,\n\tDefaultApiGetPublicIntegrationRequest,\n\tDefaultApiCreateBotRequest,\n\tDefaultApiUpdateBotRequest,\n\tDefaultApiTransferBotRequest,\n\tDefaultApiListBotsRequest,\n\tDefaultApiGetBotRequest,\n\tDefaultApiDeleteBotRequest,\n\tDefaultApiGetBotLogsRequest,\n\tDefaultApiGetBotWebchatRequest,\n\tDefaultApiGetBotAnalyticsRequest,\n\tDefaultApiCreateIntegrationRequest,\n\tDefaultApiUpdateIntegrationRequest,\n\tDefaultApiListIntegrationsRequest,\n\tDefaultApiGetIntegrationRequest,\n\tDefaultApiGetIntegrationByNameRequest,\n\tDefaultApiDeleteIntegrationRequest,\n\tDefaultApiListWorkspacesRequest,\n\tDefaultApiIntrospectRequest,\n\tDefaultApiCreateFileRequest,\n\tDefaultApiGetFileRequest,\n\tDefaultApiDownloadFileRequest,\n\tDefaultApiDeleteFileRequest,\n\tDefaultApiListFilesRequest,\n} from '.'\nimport { errorFrom } from './errors'\n\nexport class ApiClient {\n private _innerClient: DefaultApi\n public constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance) {\n this._innerClient = new DefaultApi(configuration, basePath, axiosInstance)\n }\n\tpublic createConversation = (createConversationBody: CreateConversationProps) => this._innerClient.createConversation({ createConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getConversation = (props: GetConversationProps) => this._innerClient.getConversation(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listConversations = (props: ListConversationsProps) => this._innerClient.listConversations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateConversation = (getOrCreateConversationBody: GetOrCreateConversationProps) => this._innerClient.getOrCreateConversation({ getOrCreateConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateConversation = ({ id, ...updateConversationBody }: UpdateConversationProps) => this._innerClient.updateConversation({ id, updateConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteConversation = (props: DeleteConversationProps) => this._innerClient.deleteConversation(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createEvent = (createEventBody: CreateEventProps) => this._innerClient.createEvent({ createEventBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getEvent = (props: GetEventProps) => this._innerClient.getEvent(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listEvents = (props: ListEventsProps) => this._innerClient.listEvents(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createMessage = (createMessageBody: CreateMessageProps) => this._innerClient.createMessage({ createMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateMessage = (getOrCreateMessageBody: GetOrCreateMessageProps) => this._innerClient.getOrCreateMessage({ getOrCreateMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getMessage = (props: GetMessageProps) => this._innerClient.getMessage(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateMessage = ({ id, ...updateMessageBody }: UpdateMessageProps) => this._innerClient.updateMessage({ id, updateMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listMessages = (props: ListMessagesProps) => this._innerClient.listMessages(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteMessage = (props: DeleteMessageProps) => this._innerClient.deleteMessage(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createUser = (createUserBody: CreateUserProps) => this._innerClient.createUser({ createUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getUser = (props: GetUserProps) => this._innerClient.getUser(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listUsers = (props: ListUsersProps) => this._innerClient.listUsers(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateUser = (getOrCreateUserBody: GetOrCreateUserProps) => this._innerClient.getOrCreateUser({ getOrCreateUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateUser = ({ id, ...updateUserBody }: UpdateUserProps) => this._innerClient.updateUser({ id, updateUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteUser = (props: DeleteUserProps) => this._innerClient.deleteUser(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getState = (props: GetStateProps) => this._innerClient.getState(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic setState = ({ type, id, name, ...setStateBody }: SetStateProps) => this._innerClient.setState({ type, id, name, setStateBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic patchState = ({ type, id, name, ...patchStateBody }: PatchStateProps) => this._innerClient.patchState({ type, id, name, patchStateBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic callAction = (callActionBody: CallActionProps) => this._innerClient.callAction({ callActionBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic configureIntegration = (configureIntegrationBody: ConfigureIntegrationProps) => this._innerClient.configureIntegration({ configureIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listPublicIntegrations = (props: ListPublicIntegrationsProps) => this._innerClient.listPublicIntegrations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getPublicIntegrationById = (props: GetPublicIntegrationByIdProps) => this._innerClient.getPublicIntegrationById(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getPublicIntegration = (props: GetPublicIntegrationProps) => this._innerClient.getPublicIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createBot = (createBotBody: CreateBotProps) => this._innerClient.createBot({ createBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateBot = ({ id, ...updateBotBody }: UpdateBotProps) => this._innerClient.updateBot({ id, updateBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic transferBot = ({ id, ...transferBotBody }: TransferBotProps) => this._innerClient.transferBot({ id, transferBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listBots = (props: ListBotsProps) => this._innerClient.listBots(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBot = (props: GetBotProps) => this._innerClient.getBot(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteBot = (props: DeleteBotProps) => this._innerClient.deleteBot(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotLogs = (props: GetBotLogsProps) => this._innerClient.getBotLogs(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotWebchat = (props: GetBotWebchatProps) => this._innerClient.getBotWebchat(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotAnalytics = (props: GetBotAnalyticsProps) => this._innerClient.getBotAnalytics(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createIntegration = (createIntegrationBody: CreateIntegrationProps) => this._innerClient.createIntegration({ createIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateIntegration = ({ id, ...updateIntegrationBody }: UpdateIntegrationProps) => this._innerClient.updateIntegration({ id, updateIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listIntegrations = (props: ListIntegrationsProps) => this._innerClient.listIntegrations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getIntegration = (props: GetIntegrationProps) => this._innerClient.getIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getIntegrationByName = (props: GetIntegrationByNameProps) => this._innerClient.getIntegrationByName(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteIntegration = (props: DeleteIntegrationProps) => this._innerClient.deleteIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listWorkspaces = (props: ListWorkspacesProps) => this._innerClient.listWorkspaces(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic introspect = (introspectBody: IntrospectProps) => this._innerClient.introspect({ introspectBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createFile = (createFileBody: CreateFileProps) => this._innerClient.createFile({ createFileBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getFile = (props: GetFileProps) => this._innerClient.getFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic downloadFile = (props: DownloadFileProps) => this._innerClient.downloadFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteFile = (props: DeleteFileProps) => this._innerClient.deleteFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listFiles = (props: ListFilesProps) => this._innerClient.listFiles(props).then((res) => res.data).catch((e) => { throw getError(e) })\n}\n\nexport type CreateConversationProps = Merge<\n Except<DefaultApiCreateConversationRequest, 'createConversationBody'>,\n NonNullable<DefaultApiCreateConversationRequest['createConversationBody']>\n>\n\nexport type GetConversationProps = Merge<DefaultApiGetConversationRequest, {}>\n\nexport type ListConversationsProps = Merge<DefaultApiListConversationsRequest, {}>\n\nexport type GetOrCreateConversationProps = Merge<\n Except<DefaultApiGetOrCreateConversationRequest, 'getOrCreateConversationBody'>,\n NonNullable<DefaultApiGetOrCreateConversationRequest['getOrCreateConversationBody']>\n>\n\nexport type UpdateConversationProps = Merge<\n Except<DefaultApiUpdateConversationRequest, 'updateConversationBody'>,\n NonNullable<DefaultApiUpdateConversationRequest['updateConversationBody']>\n>\n\nexport type DeleteConversationProps = Merge<DefaultApiDeleteConversationRequest, {}>\n\nexport type CreateEventProps = Merge<\n Except<DefaultApiCreateEventRequest, 'createEventBody'>,\n NonNullable<DefaultApiCreateEventRequest['createEventBody']>\n>\n\nexport type GetEventProps = Merge<DefaultApiGetEventRequest, {}>\n\nexport type ListEventsProps = Merge<DefaultApiListEventsRequest, {}>\n\nexport type CreateMessageProps = Merge<\n Except<DefaultApiCreateMessageRequest, 'createMessageBody'>,\n NonNullable<DefaultApiCreateMessageRequest['createMessageBody']>\n>\n\nexport type GetOrCreateMessageProps = Merge<\n Except<DefaultApiGetOrCreateMessageRequest, 'getOrCreateMessageBody'>,\n NonNullable<DefaultApiGetOrCreateMessageRequest['getOrCreateMessageBody']>\n>\n\nexport type GetMessageProps = Merge<DefaultApiGetMessageRequest, {}>\n\nexport type UpdateMessageProps = Merge<\n Except<DefaultApiUpdateMessageRequest, 'updateMessageBody'>,\n NonNullable<DefaultApiUpdateMessageRequest['updateMessageBody']>\n>\n\nexport type ListMessagesProps = Merge<DefaultApiListMessagesRequest, {}>\n\nexport type DeleteMessageProps = Merge<DefaultApiDeleteMessageRequest, {}>\n\nexport type CreateUserProps = Merge<\n Except<DefaultApiCreateUserRequest, 'createUserBody'>,\n NonNullable<DefaultApiCreateUserRequest['createUserBody']>\n>\n\nexport type GetUserProps = Merge<DefaultApiGetUserRequest, {}>\n\nexport type ListUsersProps = Merge<DefaultApiListUsersRequest, {}>\n\nexport type GetOrCreateUserProps = Merge<\n Except<DefaultApiGetOrCreateUserRequest, 'getOrCreateUserBody'>,\n NonNullable<DefaultApiGetOrCreateUserRequest['getOrCreateUserBody']>\n>\n\nexport type UpdateUserProps = Merge<\n Except<DefaultApiUpdateUserRequest, 'updateUserBody'>,\n NonNullable<DefaultApiUpdateUserRequest['updateUserBody']>\n>\n\nexport type DeleteUserProps = Merge<DefaultApiDeleteUserRequest, {}>\n\nexport type GetStateProps = Merge<DefaultApiGetStateRequest, {}>\n\nexport type SetStateProps = Merge<\n Except<DefaultApiSetStateRequest, 'setStateBody'>,\n NonNullable<DefaultApiSetStateRequest['setStateBody']>\n>\n\nexport type PatchStateProps = Merge<\n Except<DefaultApiPatchStateRequest, 'patchStateBody'>,\n NonNullable<DefaultApiPatchStateRequest['patchStateBody']>\n>\n\nexport type CallActionProps = Merge<\n Except<DefaultApiCallActionRequest, 'callActionBody'>,\n NonNullable<DefaultApiCallActionRequest['callActionBody']>\n>\n\nexport type ConfigureIntegrationProps = Merge<\n Except<DefaultApiConfigureIntegrationRequest, 'configureIntegrationBody'>,\n NonNullable<DefaultApiConfigureIntegrationRequest['configureIntegrationBody']>\n>\n\nexport type ListPublicIntegrationsProps = Merge<DefaultApiListPublicIntegrationsRequest, {}>\n\nexport type GetPublicIntegrationByIdProps = Merge<DefaultApiGetPublicIntegrationByIdRequest, {}>\n\nexport type GetPublicIntegrationProps = Merge<DefaultApiGetPublicIntegrationRequest, {}>\n\nexport type CreateBotProps = Merge<\n Except<DefaultApiCreateBotRequest, 'createBotBody'>,\n NonNullable<DefaultApiCreateBotRequest['createBotBody']>\n>\n\nexport type UpdateBotProps = Merge<\n Except<DefaultApiUpdateBotRequest, 'updateBotBody'>,\n NonNullable<DefaultApiUpdateBotRequest['updateBotBody']>\n>\n\nexport type TransferBotProps = Merge<\n Except<DefaultApiTransferBotRequest, 'transferBotBody'>,\n NonNullable<DefaultApiTransferBotRequest['transferBotBody']>\n>\n\nexport type ListBotsProps = Merge<DefaultApiListBotsRequest, {}>\n\nexport type GetBotProps = Merge<DefaultApiGetBotRequest, {}>\n\nexport type DeleteBotProps = Merge<DefaultApiDeleteBotRequest, {}>\n\nexport type GetBotLogsProps = Merge<DefaultApiGetBotLogsRequest, {}>\n\nexport type GetBotWebchatProps = Merge<DefaultApiGetBotWebchatRequest, {}>\n\nexport type GetBotAnalyticsProps = Merge<DefaultApiGetBotAnalyticsRequest, {}>\n\nexport type CreateIntegrationProps = Merge<\n Except<DefaultApiCreateIntegrationRequest, 'createIntegrationBody'>,\n NonNullable<DefaultApiCreateIntegrationRequest['createIntegrationBody']>\n>\n\nexport type UpdateIntegrationProps = Merge<\n Except<DefaultApiUpdateIntegrationRequest, 'updateIntegrationBody'>,\n NonNullable<DefaultApiUpdateIntegrationRequest['updateIntegrationBody']>\n>\n\nexport type ListIntegrationsProps = Merge<DefaultApiListIntegrationsRequest, {}>\n\nexport type GetIntegrationProps = Merge<DefaultApiGetIntegrationRequest, {}>\n\nexport type GetIntegrationByNameProps = Merge<DefaultApiGetIntegrationByNameRequest, {}>\n\nexport type DeleteIntegrationProps = Merge<DefaultApiDeleteIntegrationRequest, {}>\n\nexport type ListWorkspacesProps = Merge<DefaultApiListWorkspacesRequest, {}>\n\nexport type IntrospectProps = Merge<\n Except<DefaultApiIntrospectRequest, 'introspectBody'>,\n NonNullable<DefaultApiIntrospectRequest['introspectBody']>\n>\n\nexport type CreateFileProps = Merge<\n Except<DefaultApiCreateFileRequest, 'createFileBody'>,\n NonNullable<DefaultApiCreateFileRequest['createFileBody']>\n>\n\nexport type GetFileProps = Merge<DefaultApiGetFileRequest, {}>\n\nexport type DownloadFileProps = Merge<DefaultApiDownloadFileRequest, {}>\n\nexport type DeleteFileProps = Merge<DefaultApiDeleteFileRequest, {}>\n\nexport type ListFilesProps = Merge<DefaultApiListFilesRequest, {}>\n\n\nfunction getError(err: Error) {\n if (axios.isAxiosError(err)) {\n return errorFrom(err.response?.data)\n }\n\n return errorFrom(err)\n}\n"],
|
|
5
|
-
"mappings": "woBAAA,IAAAA,GAAAC,EAAA,CAAAC,GAAAC,KAAA,KAAIC,GAAS,QAAQ,UAAU,OAC3BC,GAAO,QAAQ,QAEnBF,GAAO,QAAUG,GACjB,SAASA,IAAgB,CACvB,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QA,EAAI,IAAI,EAAE,MAAOC,GAAM,CAAE,MAAMC,EAASD,CAAC,CAAE,CAAC,EAC7J,QAAWE,GAAwB,KAAK,aAAa,QAAQA,CAAK,EAAE,KAAMH,GAAQA,EAAI,IAAI,EAAE,MAAOC,GAAM,CAAE,MAAMC,EAASD,CAAC,CAAE,CAAC,EAC9H,aAAgBE,GAA6B,KAAK,aAAa,aAAaA,CAAK,EAAE,KAAMH,GAAQA,EAAI,IAAI,EAAE,MAAOC,GAAM,CAAE,MAAMC,EAASD,CAAC,CAAE,CAAC,EAC7I,WAAcE,GAA2B,KAAK,aAAa,WAAWA,CAAK,EAAE,KAAMH,GAAQA,EAAI,IAAI,EAAE,MAAOC,GAAM,CAAE,MAAMC,EAASD,CAAC,CAAE,CAAC,EACvI,UAAaE,GAA0B,KAAK,aAAa,UAAUA,CAAK,EAAE,KAAMH,GAAQA,EAAI,IAAI,EAAE,MAAOC,GAAM,CAAE,MAAMC,EAASD,CAAC,CAAE,CAAC,CAC5I,EAwKA,SAASC,EAASyB,EAAY,CAC5B,OAAIC,EAAM,aAAaD,CAAG,EACjBE,GAAUF,EAAI,UAAU,IAAI,EAG9BE,GAAUF,CAAG,CACtB,CnD9RO,IAAMG,GAAN,cAAqBC,EAAoB,CAC9B,OAET,YAAYC,EAA2B,CAAC,EAAG,CAChD,IAAMC,EAAeC,GAAgBF,CAAW,EAC1C,CAAE,KAAAG,EAAM,QAAAC,EAAS,gBAAAC,EAAiB,QAAAC,CAAQ,EAAIL,EAE9CM,EAAcC,EAAM,OAAO,CAC/B,cAAe,IAAM,KAAO,KAC5B,iBAAkB,KAAO,KAAO,KAChC,QAASF,GAAW,IACpB,gBAAAD,EACA,QAAAD,CACF,CAAC,EAED,MAAM,OAAWD,EAAMI,CAAW,EAElC,KAAK,OAASN,CAChB,CACF",
|
|
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 * 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", "// populates missing values\nmodule.exports = function(dst, src) {\n\n Object.keys(src).forEach(function(prop)\n {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n", "var 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 Stream = require('stream').Stream;\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar populate = require('./populate.js');\n\n// Public API\nmodule.exports = FormData;\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\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(options);\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) {\n this[option] = options[option];\n }\n}\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') {\n value = '' + value;\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (util.isArray(value)) {\n // Please convert your array into string\n // the way web server expects it\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 // 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 if (options.knownLength != null) {\n valueLength += +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 +=\n Buffer.byteLength(header) +\n FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response or not a stream\n if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {\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\n if (value.hasOwnProperty('fd')) {\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 if (value.end != undefined && value.end != Infinity && value.start != undefined) {\n\n // when end specified\n // no need to calculate range\n // inclusive, starts with 0\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 (value.hasOwnProperty('httpVersion')) {\n callback(null, +value.headers['content-length']);\n\n // or request stream http://github.com/mikeal/request\n } else if (value.hasOwnProperty('httpModule')) {\n // wait till response come back\n value.on('response', function(response) {\n value.pause();\n callback(null, +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 // custom header specified (as string)?\n // it becomes responsible for boundary\n // (e.g. to handle extra CRLFs on .NET servers)\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=\"' + 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) {\n if (!headers.hasOwnProperty(prop)) continue;\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue;\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 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 ;\n\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.name || value.path) {\n // custom filename take precedence\n // formidable and the browser add a name property\n // fs- and request- streams have path property\n filename = path.basename(options.filename || value.name || value.path);\n } else if (value.readable && value.hasOwnProperty('httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + 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.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value.readable && value.hasOwnProperty('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 && 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) {\n if (userHeaders.hasOwnProperty(header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function(boundary) {\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 = new 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 // They are optimized for boyer-moore parsing.\n var boundary = '--------------------------';\n for (var i = 0; i < 24; i++) {\n boundary += Math.floor(Math.random() * 10).toString(16);\n }\n\n this._boundary = boundary;\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\nFormData.prototype.getLengthSync = function() {\n var knownLength = this._overheadLength + this._valueLength;\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 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 // Some async length retrievers are present\n // therefore synchronous length calculation is false.\n // Please use getLength(callback) to get proper length\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\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\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 , options\n , defaults = {method: 'post'}\n ;\n\n // parse provided url if it's string\n // or treat it as options object\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 && err !== 'Unknown stream') {\n this._error(err);\n return;\n }\n\n // add content length\n if (length) {\n request.setHeader('Content-Length', length);\n }\n\n this.pipe(request);\n if (cb) {\n var onResponse;\n\n var callback = function (error, responce) {\n request.removeListener('error', callback);\n request.removeListener('response', onResponse);\n\n return cb.call(this, error, responce);\n };\n\n onResponse = callback.bind(this, null);\n\n request.on('error', callback);\n request.on('response', onResponse);\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};\n", "'use strict';\n\nvar parseUrl = require('url').parse;\n\nvar DEFAULT_PORTS = {\n ftp: 21,\n gopher: 70,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443,\n};\n\nvar stringEndsWith = String.prototype.endsWith || function(s) {\n return s.length <= this.length &&\n this.indexOf(s, this.length - s.length) !== -1;\n};\n\n/**\n * @param {string|object} url - The URL, or the result from url.parse.\n * @return {string} The URL of the proxy that should handle the request to the\n * given URL. If no proxy is set, this will be an empty string.\n */\nfunction getProxyForUrl(url) {\n var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};\n var proto = parsedUrl.protocol;\n var hostname = parsedUrl.host;\n var port = parsedUrl.port;\n if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {\n return ''; // Don't proxy URLs without a valid scheme or host.\n }\n\n proto = proto.split(':', 1)[0];\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '');\n port = parseInt(port) || DEFAULT_PORTS[proto] || 0;\n if (!shouldProxy(hostname, port)) {\n return ''; // Don't proxy URLs that match NO_PROXY.\n }\n\n var proxy =\n getEnv('npm_config_' + proto + '_proxy') ||\n getEnv(proto + '_proxy') ||\n getEnv('npm_config_proxy') ||\n getEnv('all_proxy');\n if (proxy && proxy.indexOf('://') === -1) {\n // Missing scheme in proxy, default to the requested URL's scheme.\n proxy = proto + '://' + proxy;\n }\n return proxy;\n}\n\n/**\n * Determines whether a given URL should be proxied.\n *\n * @param {string} hostname - The host name of the URL.\n * @param {number} port - The effective port of the URL.\n * @returns {boolean} Whether the given URL should be proxied.\n * @private\n */\nfunction shouldProxy(hostname, port) {\n var NO_PROXY =\n (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();\n if (!NO_PROXY) {\n return true; // Always proxy if NO_PROXY is not set.\n }\n if (NO_PROXY === '*') {\n return false; // Never proxy if wildcard is set.\n }\n\n return NO_PROXY.split(/[,\\s]/).every(function(proxy) {\n if (!proxy) {\n return true; // Skip zero-length hosts.\n }\n var parsedProxy = proxy.match(/^(.+):(\\d+)$/);\n var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;\n var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;\n if (parsedProxyPort && parsedProxyPort !== port) {\n return true; // Skip if ports don't match.\n }\n\n if (!/^[.*]/.test(parsedProxyHostname)) {\n // No wildcards, so stop proxying if there is an exact match.\n return hostname !== parsedProxyHostname;\n }\n\n if (parsedProxyHostname.charAt(0) === '*') {\n // Remove leading wildcard.\n parsedProxyHostname = parsedProxyHostname.slice(1);\n }\n // Stop proxying if the hostname ends with the no_proxy host.\n return !stringEndsWith.call(hostname, parsedProxyHostname);\n });\n}\n\n/**\n * Get the value for an environment variable.\n *\n * @param {string} key - The name of the environment variable.\n * @return {string} The value of the environment variable.\n * @private\n */\nfunction getEnv(key) {\n return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';\n}\n\nexports.getProxyForUrl = getProxyForUrl;\n", "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n", "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n", "var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\n// Error types with codes\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\"\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n self._processResponse(response);\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n abortRequest(this._currentRequest);\n this.emit(\"abort\");\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n this.emit(\"error\", new TypeError(\"Unsupported protocol \" + protocol));\n return;\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230\u00A75.3.1: When making a request directly to an origin server, [\u2026]\n // a client MUST send only the absolute path [\u2026] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, [\u2026]\n // a client MUST send the target URI in absolute-form [\u2026].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n /* istanbul ignore else */\n if (request === self._currentRequest) {\n // Report any write errors\n /* istanbul ignore if */\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n /* istanbul ignore else */\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231\u00A76.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n abortRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231\u00A76.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n this.emit(\"error\", new TooManyRedirectsError());\n return;\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231\u00A76.4: Automatic redirection needs to done with\n // care for methods not known to be safe, [\u2026]\n // RFC7231\u00A76.4.2\u20133: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231\u00A76.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource [\u2026]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) [\u2026]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = url.parse(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Determine the URL of the redirection\n var redirectUrl;\n try {\n redirectUrl = url.resolve(currentUrl, location);\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError({ cause: cause }));\n return;\n }\n\n // Create the redirected request\n debug(\"redirecting to\", redirectUrl);\n this._isRedirect = true;\n var redirectUrlParts = url.parse(redirectUrl);\n Object.assign(this._options, redirectUrlParts);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrlParts.protocol !== currentUrlParts.protocol &&\n redirectUrlParts.protocol !== \"https:\" ||\n redirectUrlParts.host !== currentHost &&\n !isSubdomain(redirectUrlParts.host, currentHost)) {\n removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n try {\n beforeRedirect(this._options, responseDetails, requestDetails);\n }\n catch (err) {\n this.emit(\"error\", err);\n return;\n }\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n try {\n this._performRequest();\n }\n catch (cause) {\n this.emit(\"error\", new RedirectionError({ cause: cause }));\n }\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters\n if (isString(input)) {\n var parsed;\n try {\n parsed = urlToOptions(new URL(input));\n }\n catch (err) {\n /* istanbul ignore next */\n parsed = url.parse(input);\n }\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n input = parsed;\n }\n else if (URL && (input instanceof URL)) {\n input = urlToOptions(input);\n }\n else {\n callback = options;\n options = input;\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\n/* istanbul ignore next */\nfunction noop() { /* empty */ }\n\n// from https://github.com/nodejs/node/blob/master/lib/internal/url.js\nfunction urlToOptions(urlObject) {\n var options = {\n protocol: urlObject.protocol,\n hostname: urlObject.hostname.startsWith(\"[\") ?\n /* istanbul ignore next */\n urlObject.hostname.slice(1, -1) :\n urlObject.hostname,\n hash: urlObject.hash,\n search: urlObject.search,\n pathname: urlObject.pathname,\n path: urlObject.pathname + urlObject.search,\n href: urlObject.href,\n };\n if (urlObject.port !== \"\") {\n options.port = Number(urlObject.port);\n }\n return options;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n Error.captureStackTrace(this, this.constructor);\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n CustomError.prototype.constructor = CustomError;\n CustomError.prototype.name = \"Error [\" + code + \"]\";\n return CustomError;\n}\n\nfunction abortRequest(request) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.abort();\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n", "\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n\nvar isNode = typeof process !== \"undefined\" && process.versions != null && process.versions.node != null;\n\nvar isWebWorker = (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) === \"object\" && self.constructor && self.constructor.name === \"DedicatedWorkerGlobalScope\";\n\n/**\n * @see https://github.com/jsdom/jsdom/releases/tag/12.0.0\n * @see https://github.com/jsdom/jsdom/issues/1537\n */\nvar isJsDom = typeof window !== \"undefined\" && window.name === \"nodejs\" || typeof navigator !== \"undefined\" && (navigator.userAgent.includes(\"Node.js\") || navigator.userAgent.includes(\"jsdom\"));\n\nvar isDeno = typeof Deno !== \"undefined\" && typeof Deno.version !== \"undefined\" && typeof Deno.version.deno !== \"undefined\";\n\nexports.isBrowser = isBrowser;\nexports.isWebWorker = isWebWorker;\nexports.isNode = isNode;\nexports.isJsDom = isJsDom;\nexports.isDeno = isDeno;", "import axios from 'axios'\nexport * as axios from 'axios'\nimport { getClientConfig, ClientProps, ClientConfig } from './config'\nexport type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration } from './gen'\nexport * from './gen/errors'\nimport { ApiClient as AutoGeneratedClient } from './gen/client'\n\nexport class Client extends AutoGeneratedClient {\n public readonly config: ClientConfig\n\n public constructor(clientProps: ClientProps = {}) {\n const clientConfig = getClientConfig(clientProps)\n const { host, headers, withCredentials, timeout } = clientConfig\n\n const axiosClient = axios.create({\n maxBodyLength: 100 * 1024 * 1024, // 100MB\n maxContentLength: 1024 * 1024 * 1024, // 100MB\n timeout: timeout ?? 60_000,\n withCredentials,\n headers,\n })\n\n super(undefined, host, axiosClient)\n\n this.config = clientConfig\n }\n}\n", "import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n}\n", "'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n", "'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n const pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\n );\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[_-\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n if (reducer(descriptor, name, obj) !== false) {\n reducedDescriptors[name] = descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n toJSONObject\n};\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n", "import FormData from 'form-data';\nexport default FormData;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport envFormData from '../env/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliant(thing) {\n return thing && utils.isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator];\n}\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (envFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && isSpecCompliant(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n (utils.isFileList(value) || utils.endsWith(key, '[]') && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n", "'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n", "'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n", "'use strict';\n\nimport url from 'url';\nexport default url.URLSearchParams;\n", "import FormData from 'form-data';\n\nexport default FormData;\n", "import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\n\nexport default {\n isNode: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob: typeof Blob !== 'undefined' && Blob || null\n },\n protocols: [ 'http', 'https', 'file', 'data' ]\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\nconst DEFAULT_CONTENT_TYPE = {\n 'Content-Type': undefined\n};\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nexport default defaults;\n", "'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nfunction isValidHeaderName(str) {\n return /^[-_a-zA-Z]+$/.test(str.trim());\n}\n\nfunction matchHeaderValue(context, value, header, filter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear() {\n return Object.keys(this).forEach(this.delete.bind(this));\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent']);\n\nutils.freezeMethods(AxiosHeaders.prototype);\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n", "'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n", "'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n", "'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport buildURL from './../helpers/buildURL.js';\nimport {getProxyForUrl} from 'proxy-from-env';\nimport http from 'http';\nimport https from 'https';\nimport followRedirects from 'follow-redirects';\nimport zlib from 'zlib';\nimport {VERSION} from '../env/data.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport platform from '../platform/index.js';\nimport fromDataURI from '../helpers/fromDataURI.js';\nimport stream from 'stream';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport AxiosTransformStream from '../helpers/AxiosTransformStream.js';\nimport EventEmitter from 'events';\n\nconst zlibOptions = {\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n};\n\nconst brotliOptions = {\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n}\n\nconst isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);\n\nconst {http: httpFollow, https: httpsFollow} = followRedirects;\n\nconst isHttps = /https:?/;\n\nconst supportedProtocols = platform.protocols.map(protocol => {\n return protocol + ':';\n});\n\n/**\n * If the proxy or config beforeRedirects functions are defined, call them with the options\n * object.\n *\n * @param {Object<string, any>} options - The options object that was passed to the request.\n *\n * @returns {Object<string, any>}\n */\nfunction dispatchBeforeRedirect(options) {\n if (options.beforeRedirects.proxy) {\n options.beforeRedirects.proxy(options);\n }\n if (options.beforeRedirects.config) {\n options.beforeRedirects.config(options);\n }\n}\n\n/**\n * If the proxy or config afterRedirects functions are defined, call them with the options\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} configProxy configuration from Axios options object\n * @param {string} location\n *\n * @returns {http.ClientRequestArgs}\n */\nfunction setProxy(options, configProxy, location) {\n let proxy = configProxy;\n if (!proxy && proxy !== false) {\n const proxyUrl = getProxyForUrl(location);\n if (proxyUrl) {\n proxy = new URL(proxyUrl);\n }\n }\n if (proxy) {\n // Basic proxy authorization\n if (proxy.username) {\n proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');\n }\n\n if (proxy.auth) {\n // Support proxy auth object form\n if (proxy.auth.username || proxy.auth.password) {\n proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');\n }\n const base64 = Buffer\n .from(proxy.auth, 'utf8')\n .toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n options.headers.host = options.hostname + (options.port ? ':' + options.port : '');\n const proxyHost = proxy.hostname || proxy.host;\n options.hostname = proxyHost;\n // Replace 'host' since options is not a URL object\n options.host = proxyHost;\n options.port = proxy.port;\n options.path = location;\n if (proxy.protocol) {\n options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;\n }\n }\n\n options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {\n // Configure proxy for redirected request, passing the original config proxy to apply\n // the exact same logic as if the redirected request was performed by axios directly.\n setProxy(redirectOptions, configProxy, redirectOptions.href);\n };\n}\n\nconst isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';\n\n/*eslint consistent-return:0*/\nexport default isHttpAdapterSupported && function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n let data = config.data;\n const responseType = config.responseType;\n const responseEncoding = config.responseEncoding;\n const method = config.method.toUpperCase();\n let isFinished;\n let isDone;\n let rejected = false;\n let req;\n\n // temporary internal emitter until the AxiosRequest class will be implemented\n const emitter = new EventEmitter();\n\n function onFinished() {\n if (isFinished) return;\n isFinished = true;\n\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(abort);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', abort);\n }\n\n emitter.removeAllListeners();\n }\n\n function done(value, isRejected) {\n if (isDone) return;\n\n isDone = true;\n\n if (isRejected) {\n rejected = true;\n onFinished();\n }\n\n isRejected ? rejectPromise(value) : resolvePromise(value);\n }\n\n const resolve = function resolve(value) {\n done(value);\n };\n\n const reject = function reject(value) {\n done(value, true);\n };\n\n function abort(reason) {\n emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);\n }\n\n emitter.once('abort', reject);\n\n if (config.cancelToken || config.signal) {\n config.cancelToken && config.cancelToken.subscribe(abort);\n if (config.signal) {\n config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);\n }\n }\n\n // Parse url\n const fullPath = buildFullPath(config.baseURL, config.url);\n const parsed = new URL(fullPath);\n const protocol = parsed.protocol || supportedProtocols[0];\n\n if (protocol === 'data:') {\n let convertedData;\n\n if (method !== 'GET') {\n return settle(resolve, reject, {\n status: 405,\n statusText: 'method not allowed',\n headers: {},\n config\n });\n }\n\n try {\n convertedData = fromDataURI(config.url, responseType === 'blob', {\n Blob: config.env && config.env.Blob\n });\n } catch (err) {\n throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);\n }\n\n if (responseType === 'text') {\n convertedData = convertedData.toString(responseEncoding);\n\n if (!responseEncoding || responseEncoding === 'utf8') {\n data = utils.stripBOM(convertedData);\n }\n } else if (responseType === 'stream') {\n convertedData = stream.Readable.from(convertedData);\n }\n\n return settle(resolve, reject, {\n data: convertedData,\n status: 200,\n statusText: 'OK',\n headers: new AxiosHeaders(),\n config\n });\n }\n\n if (supportedProtocols.indexOf(protocol) === -1) {\n return reject(new AxiosError(\n 'Unsupported protocol ' + protocol,\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n const headers = AxiosHeaders.from(config.headers).normalize();\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n // User-Agent is specified; handle case where no UA header is desired\n // Only set header if it hasn't been set in config\n headers.set('User-Agent', 'axios/' + VERSION, false);\n\n const onDownloadProgress = config.onDownloadProgress;\n const onUploadProgress = config.onUploadProgress;\n const maxRate = config.maxRate;\n let maxUploadRate = undefined;\n let maxDownloadRate = undefined;\n\n // support for https://www.npmjs.com/package/form-data api\n if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {\n headers.set(data.getHeaders());\n } else if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(new AxiosError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers.set('Content-Length', data.length, false);\n\n if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {\n return reject(new AxiosError(\n 'Request body larger than maxBodyLength limit',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n }\n\n const contentLength = utils.toFiniteNumber(headers.getContentLength());\n\n if (utils.isArray(maxRate)) {\n maxUploadRate = maxRate[0];\n maxDownloadRate = maxRate[1];\n } else {\n maxUploadRate = maxDownloadRate = maxRate;\n }\n\n if (data && (onUploadProgress || maxUploadRate)) {\n if (!utils.isStream(data)) {\n data = stream.Readable.from(data, {objectMode: false});\n }\n\n data = stream.pipeline([data, new AxiosTransformStream({\n length: contentLength,\n maxRate: utils.toFiniteNumber(maxUploadRate)\n })], utils.noop);\n\n onUploadProgress && data.on('progress', progress => {\n onUploadProgress(Object.assign(progress, {\n upload: true\n }));\n });\n }\n\n // HTTP basic authentication\n let auth = undefined;\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n if (!auth && parsed.username) {\n const urlUsername = parsed.username;\n const urlPassword = parsed.password;\n auth = urlUsername + ':' + urlPassword;\n }\n\n auth && headers.delete('authorization');\n\n let path;\n\n try {\n path = buildURL(\n parsed.pathname + parsed.search,\n config.params,\n config.paramsSerializer\n ).replace(/^\\?/, '');\n } catch (err) {\n const customErr = new Error(err.message);\n customErr.config = config;\n customErr.url = config.url;\n customErr.exists = true;\n return reject(customErr);\n }\n\n headers.set(\n 'Accept-Encoding',\n 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false\n );\n\n const options = {\n path,\n method: method,\n headers: headers.toJSON(),\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth,\n protocol,\n beforeRedirect: dispatchBeforeRedirect,\n beforeRedirects: {}\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n let transport;\n const isHttpsRequest = isHttps.test(options.protocol);\n options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsRequest ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n if (config.beforeRedirect) {\n options.beforeRedirects.config = config.beforeRedirect;\n }\n transport = isHttpsRequest ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n } else {\n // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited\n options.maxBodyLength = Infinity;\n }\n\n if (config.insecureHTTPParser) {\n options.insecureHTTPParser = config.insecureHTTPParser;\n }\n\n // Create the request\n req = transport.request(options, function handleResponse(res) {\n if (req.destroyed) return;\n\n const streams = [res];\n\n const responseLength = +res.headers['content-length'];\n\n if (onDownloadProgress) {\n const transformStream = new AxiosTransformStream({\n length: utils.toFiniteNumber(responseLength),\n maxRate: utils.toFiniteNumber(maxDownloadRate)\n });\n\n onDownloadProgress && transformStream.on('progress', progress => {\n onDownloadProgress(Object.assign(progress, {\n download: true\n }));\n });\n\n streams.push(transformStream);\n }\n\n // decompress the response body transparently if required\n let responseStream = res;\n\n // return the last request in case of redirects\n const lastRequest = res.req || req;\n\n // if decompress disabled we should not decompress\n if (config.decompress !== false && res.headers['content-encoding']) {\n // if no content, but headers still say that it is encoded,\n // remove the header not confuse downstream operations\n if (method === 'HEAD' || res.statusCode === 204) {\n delete res.headers['content-encoding'];\n }\n\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'x-gzip':\n case 'compress':\n case 'x-compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'br':\n if (isBrotliSupported) {\n streams.push(zlib.createBrotliDecompress(brotliOptions));\n delete res.headers['content-encoding'];\n }\n }\n }\n\n responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];\n\n const offListeners = stream.finished(responseStream, () => {\n offListeners();\n onFinished();\n });\n\n const response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: new AxiosHeaders(res.headers),\n config,\n request: lastRequest\n };\n\n if (responseType === 'stream') {\n response.data = responseStream;\n settle(resolve, reject, response);\n } else {\n const responseBuffer = [];\n let totalResponseBytes = 0;\n\n responseStream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n // stream.destroy() emit aborted event before calling reject() on Node.js v16\n rejected = true;\n responseStream.destroy();\n reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE, config, lastRequest));\n }\n });\n\n responseStream.on('aborted', function handlerStreamAborted() {\n if (rejected) {\n return;\n }\n\n const err = new AxiosError(\n 'maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE,\n config,\n lastRequest\n );\n responseStream.destroy(err);\n reject(err);\n });\n\n responseStream.on('error', function handleStreamError(err) {\n if (req.destroyed) return;\n reject(AxiosError.from(err, null, config, lastRequest));\n });\n\n responseStream.on('end', function handleStreamEnd() {\n try {\n let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);\n if (responseType !== 'arraybuffer') {\n responseData = responseData.toString(responseEncoding);\n if (!responseEncoding || responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n response.data = responseData;\n } catch (err) {\n reject(AxiosError.from(err, null, config, response.request, response));\n }\n settle(resolve, reject, response);\n });\n }\n\n emitter.once('abort', err => {\n if (!responseStream.destroyed) {\n responseStream.emit('error', err);\n responseStream.destroy();\n }\n });\n });\n\n emitter.once('abort', err => {\n reject(err);\n req.destroy(err);\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n // @todo remove\n // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;\n reject(AxiosError.from(err, null, config, req));\n });\n\n // set tcp keep alive to prevent drop connection by peer\n req.on('socket', function handleRequestSocket(socket) {\n // default interval of sending ack packet is 1 minute\n socket.setKeepAlive(true, 1000 * 60);\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n const timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(new AxiosError(\n 'error trying to parse `config.timeout` to int',\n AxiosError.ERR_BAD_OPTION_VALUE,\n config,\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devouring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n if (isDone) return;\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n req\n ));\n abort();\n });\n }\n\n\n // Send the request\n if (utils.isStream(data)) {\n let ended = false;\n let errored = false;\n\n data.on('end', () => {\n ended = true;\n });\n\n data.once('error', err => {\n errored = true;\n req.destroy(err);\n });\n\n data.on('close', () => {\n if (!ended && !errored) {\n abort(new CanceledError('Request stream has been aborted', config, req));\n }\n });\n\n data.pipe(req);\n } else {\n req.end(data);\n }\n });\n}\n\nexport const __setProxy = setProxy;\n", "export const VERSION = \"1.2.5\";", "'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport parseProtocol from './parseProtocol.js';\nimport platform from '../platform/index.js';\n\nconst DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\\s\\S]*)$/;\n\n/**\n * Parse data uri to a Buffer or Blob\n *\n * @param {String} uri\n * @param {?Boolean} asBlob\n * @param {?Object} options\n * @param {?Function} options.Blob\n *\n * @returns {Buffer|Blob}\n */\nexport default function fromDataURI(uri, asBlob, options) {\n const _Blob = options && options.Blob || platform.classes.Blob;\n const protocol = parseProtocol(uri);\n\n if (asBlob === undefined && _Blob) {\n asBlob = true;\n }\n\n if (protocol === 'data') {\n uri = protocol.length ? uri.slice(protocol.length + 1) : uri;\n\n const match = DATA_URL_PATTERN.exec(uri);\n\n if (!match) {\n throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);\n }\n\n const mime = match[1];\n const isBase64 = match[2];\n const body = match[3];\n const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');\n\n if (asBlob) {\n if (!_Blob) {\n throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return new _Blob([buffer], {type: mime});\n }\n\n return buffer;\n }\n\n throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);\n}\n", "'use strict';\n\nimport stream from 'stream';\nimport utils from '../utils.js';\nimport throttle from './throttle.js';\nimport speedometer from './speedometer.js';\n\nconst kInternals = Symbol('internals');\n\nclass AxiosTransformStream extends stream.Transform{\n constructor(options) {\n options = utils.toFlatObject(options, {\n maxRate: 0,\n chunkSize: 64 * 1024,\n minChunkSize: 100,\n timeWindow: 500,\n ticksRate: 2,\n samplesCount: 15\n }, null, (prop, source) => {\n return !utils.isUndefined(source[prop]);\n });\n\n super({\n readableHighWaterMark: options.chunkSize\n });\n\n const self = this;\n\n const internals = this[kInternals] = {\n length: options.length,\n timeWindow: options.timeWindow,\n ticksRate: options.ticksRate,\n chunkSize: options.chunkSize,\n maxRate: options.maxRate,\n minChunkSize: options.minChunkSize,\n bytesSeen: 0,\n isCaptured: false,\n notifiedBytesLoaded: 0,\n ts: Date.now(),\n bytes: 0,\n onReadCallback: null\n };\n\n const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);\n\n this.on('newListener', event => {\n if (event === 'progress') {\n if (!internals.isCaptured) {\n internals.isCaptured = true;\n }\n }\n });\n\n let bytesNotified = 0;\n\n internals.updateProgress = throttle(function throttledHandler() {\n const totalBytes = internals.length;\n const bytesTransferred = internals.bytesSeen;\n const progressBytes = bytesTransferred - bytesNotified;\n if (!progressBytes || self.destroyed) return;\n\n const rate = _speedometer(progressBytes);\n\n bytesNotified = bytesTransferred;\n\n process.nextTick(() => {\n self.emit('progress', {\n 'loaded': bytesTransferred,\n 'total': totalBytes,\n 'progress': totalBytes ? (bytesTransferred / totalBytes) : undefined,\n 'bytes': progressBytes,\n 'rate': rate ? rate : undefined,\n 'estimated': rate && totalBytes && bytesTransferred <= totalBytes ?\n (totalBytes - bytesTransferred) / rate : undefined\n });\n });\n }, internals.ticksRate);\n\n const onFinish = () => {\n internals.updateProgress(true);\n };\n\n this.once('end', onFinish);\n this.once('error', onFinish);\n }\n\n _read(size) {\n const internals = this[kInternals];\n\n if (internals.onReadCallback) {\n internals.onReadCallback();\n }\n\n return super._read(size);\n }\n\n _transform(chunk, encoding, callback) {\n const self = this;\n const internals = this[kInternals];\n const maxRate = internals.maxRate;\n\n const readableHighWaterMark = this.readableHighWaterMark;\n\n const timeWindow = internals.timeWindow;\n\n const divider = 1000 / timeWindow;\n const bytesThreshold = (maxRate / divider);\n const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;\n\n function pushChunk(_chunk, _callback) {\n const bytes = Buffer.byteLength(_chunk);\n internals.bytesSeen += bytes;\n internals.bytes += bytes;\n\n if (internals.isCaptured) {\n internals.updateProgress();\n }\n\n if (self.push(_chunk)) {\n process.nextTick(_callback);\n } else {\n internals.onReadCallback = () => {\n internals.onReadCallback = null;\n process.nextTick(_callback);\n };\n }\n }\n\n const transformChunk = (_chunk, _callback) => {\n const chunkSize = Buffer.byteLength(_chunk);\n let chunkRemainder = null;\n let maxChunkSize = readableHighWaterMark;\n let bytesLeft;\n let passed = 0;\n\n if (maxRate) {\n const now = Date.now();\n\n if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {\n internals.ts = now;\n bytesLeft = bytesThreshold - internals.bytes;\n internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;\n passed = 0;\n }\n\n bytesLeft = bytesThreshold - internals.bytes;\n }\n\n if (maxRate) {\n if (bytesLeft <= 0) {\n // next time window\n return setTimeout(() => {\n _callback(null, _chunk);\n }, timeWindow - passed);\n }\n\n if (bytesLeft < maxChunkSize) {\n maxChunkSize = bytesLeft;\n }\n }\n\n if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {\n chunkRemainder = _chunk.subarray(maxChunkSize);\n _chunk = _chunk.subarray(0, maxChunkSize);\n }\n\n pushChunk(_chunk, chunkRemainder ? () => {\n process.nextTick(_callback, null, chunkRemainder);\n } : _callback);\n };\n\n transformChunk(chunk, function transformNextChunk(err, _chunk) {\n if (err) {\n return callback(err);\n }\n\n if (_chunk) {\n transformChunk(_chunk, transformNextChunk);\n } else {\n callback(null);\n }\n });\n }\n\n setLength(length) {\n this[kInternals].length = +length;\n return this;\n }\n}\n\nexport default AxiosTransformStream;\n", "'use strict';\n\n/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n const threshold = 1000 / freq;\n let timer = null;\n return function throttled(force, args) {\n const now = Date.now();\n if (force || now - timestamp > threshold) {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timestamp = now;\n return fn.apply(null, args);\n }\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n timestamp = Date.now();\n return fn.apply(null, args);\n }, threshold - (now - timestamp));\n }\n };\n}\n\nexport default throttle;\n", "'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n", "'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n", "'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n const responseType = config.responseType;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {\n requestHeaders.setContentType(false); // Let the browser set it\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n", "import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if(fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n", "'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n", "'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n", "'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer !== undefined) {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n let contextHeaders;\n\n // Flatten headers\n contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n contextHeaders && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n", "'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n", "const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n", "'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n", "import { isBrowser, isNode } from 'browser-or-node'\n\nconst defaultApiUrl = 'https://api.botpress.cloud'\n\nconst apiUrlEnvName = 'BP_API_URL'\nconst botIdEnvName = 'BP_BOT_ID'\nconst integrationIdEnvName = 'BP_INTEGRATION_ID'\nconst workspaceIdEnvName = 'BP_WORKSPACE_ID'\nconst tokenEnvName = 'BP_TOKEN'\n\nexport type ClientProps = {\n host?: string\n integrationId?: string\n workspaceId?: string\n botId?: string\n token?: string\n timeout?: number\n}\n\nexport type ClientConfig = {\n host: string\n headers: Record<string, string>\n withCredentials: boolean\n timeout?: number\n}\n\nexport function getClientConfig(clientProps: ClientProps): ClientConfig {\n const props = getProps(clientProps)\n\n const headers: Record<string, string> = {}\n\n if (props.workspaceId) {\n headers['x-workspace-id'] = props.workspaceId\n }\n\n if (props.botId) {\n headers['x-bot-id'] = props.botId\n }\n\n if (props.integrationId) {\n headers['x-integration-id'] = props.integrationId\n }\n\n if (props.token) {\n headers['Authorization'] = `Bearer ${props.token}`\n }\n\n return {\n host: props.host ?? defaultApiUrl,\n withCredentials: isBrowser,\n headers,\n }\n}\n\nfunction getProps(props: ClientProps) {\n if (isBrowser) {\n return getBrowserConfig(props)\n }\n\n if (isNode) {\n return getNodeConfig(props)\n }\n\n return props\n}\n\nfunction getNodeConfig(props: ClientProps): ClientProps {\n const config: ClientProps = {\n ...props,\n host: props.host ?? process.env[apiUrlEnvName] ?? defaultApiUrl,\n botId: props.botId ?? process.env[botIdEnvName],\n integrationId: props.integrationId ?? process.env[integrationIdEnvName],\n workspaceId: props.workspaceId ?? process.env[workspaceIdEnvName],\n }\n\n const token = config.token ?? process.env[tokenEnvName]\n\n if (token) {\n config.token = token\n }\n\n return config\n}\n\nfunction getBrowserConfig(props: ClientProps): ClientProps {\n return props\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n\n\nconst codes = {\n HTTP_STATUS_BAD_REQUEST: 400,\n HTTP_STATUS_UNAUTHORIZED: 401,\n HTTP_STATUS_PAYMENT_REQUIRED: 402,\n HTTP_STATUS_FORBIDDEN: 403,\n HTTP_STATUS_NOT_FOUND: 404,\n HTTP_STATUS_METHOD_NOT_ALLOWED: 405,\n HTTP_STATUS_REQUEST_TIMEOUT: 408,\n HTTP_STATUS_CONFLICT: 409,\n HTTP_STATUS_PAYLOAD_TOO_LARGE: 413,\n HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: 415,\n HTTP_STATUS_TOO_MANY_REQUESTS: 429,\n HTTP_STATUS_INTERNAL_SERVER_ERROR: 500,\n HTTP_STATUS_NOT_IMPLEMENTED: 501,\n HTTP_STATUS_BAD_GATEWAY: 502,\n HTTP_STATUS_SERVICE_UNAVAILABLE: 503,\n HTTP_STATUS_GATEWAY_TIMEOUT: 504,\n} as const\n\ntype ErrorCode = typeof codes[keyof typeof codes]\n\nabstract class BaseApiError<Code extends ErrorCode, Type extends string, Description extends string> extends Error {\n public readonly isApiError = true\n\n constructor(\n public readonly code: Code,\n public readonly description: Description,\n public readonly type: Type,\n public override readonly message: string,\n public readonly error?: Error\n ) {\n super(message)\n }\n\n toJSON() {\n return {\n code: this.code,\n type: this.type,\n message: this.message,\n }\n }\n}\n\nconst isObject = (obj: unknown): obj is object => typeof obj === 'object' && !Array.isArray(obj) && obj !== null\n\nexport const isApiError = (thrown: unknown): thrown is ApiError => {\n return thrown instanceof BaseApiError || isObject(thrown) && (thrown as ApiError).isApiError === true\n}\n\ntype UnknownType = 'Unknown'\n\n/**\n * An unknown error occurred\n */\nexport class UnknownError extends BaseApiError<500, UnknownType, 'An unknown error occurred'> {\n constructor(message: string, error?: Error) {\n super(500, 'An unknown error occurred', 'Unknown', message, error)\n }\n}\n\ntype InternalType = 'Internal'\n\n/**\n * An internal error occurred\n */\nexport class InternalError extends BaseApiError<500, InternalType, 'An internal error occurred'> {\n constructor(message: string, error?: Error) {\n super(500, 'An internal error occurred', 'Internal', message, error)\n }\n}\n\ntype UnauthorizedType = 'Unauthorized'\n\n/**\n * The request requires to be authenticated.\n */\nexport class UnauthorizedError extends BaseApiError<401, UnauthorizedType, 'The request requires to be authenticated.'> {\n constructor(message: string, error?: Error) {\n super(401, 'The request requires to be authenticated.', 'Unauthorized', message, error)\n }\n}\n\ntype ForbiddenType = 'Forbidden'\n\n/**\n * The requested action can\\'t be peform by this resource.\n */\nexport class ForbiddenError extends BaseApiError<403, ForbiddenType, 'The requested action can\\'t be peform by this resource.'> {\n constructor(message: string, error?: Error) {\n super(403, 'The requested action can\\'t be peform by this resource.', 'Forbidden', message, error)\n }\n}\n\ntype PayloadTooLargeType = 'PayloadTooLarge'\n\n/**\n * The request payload is too large.\n */\nexport class PayloadTooLargeError extends BaseApiError<413, PayloadTooLargeType, 'The request payload is too large.'> {\n constructor(message: string, error?: Error) {\n super(413, 'The request payload is too large.', 'PayloadTooLarge', message, error)\n }\n}\n\ntype InvalidPayloadType = 'InvalidPayload'\n\n/**\n * The request payload is invalid.\n */\nexport class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload is invalid.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The request payload is invalid.', 'InvalidPayload', message, error)\n }\n}\n\ntype UnsupportedMediaTypeType = 'UnsupportedMediaType'\n\n/**\n * The request is invalid because the content-type is not supported.\n */\nexport class UnsupportedMediaTypeError extends BaseApiError<415, UnsupportedMediaTypeType, 'The request is invalid because the content-type is not supported.'> {\n constructor(message: string, error?: Error) {\n super(415, 'The request is invalid because the content-type is not supported.', 'UnsupportedMediaType', message, error)\n }\n}\n\ntype MethodNotFoundType = 'MethodNotFound'\n\n/**\n * The requested method does not exist.\n */\nexport class MethodNotFoundError extends BaseApiError<405, MethodNotFoundType, 'The requested method does not exist.'> {\n constructor(message: string, error?: Error) {\n super(405, 'The requested method does not exist.', 'MethodNotFound', message, error)\n }\n}\n\ntype ResourceNotFoundType = 'ResourceNotFound'\n\n/**\n * The requested resource does not exist.\n */\nexport class ResourceNotFoundError extends BaseApiError<404, ResourceNotFoundType, 'The requested resource does not exist.'> {\n constructor(message: string, error?: Error) {\n super(404, 'The requested resource does not exist.', 'ResourceNotFound', message, error)\n }\n}\n\ntype InvalidJsonSchemaType = 'InvalidJsonSchema'\n\n/**\n * The provided JSON schema is invalid.\n */\nexport class InvalidJsonSchemaError extends BaseApiError<400, InvalidJsonSchemaType, 'The provided JSON schema is invalid.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided JSON schema is invalid.', 'InvalidJsonSchema', message, error)\n }\n}\n\ntype InvalidDataFormatType = 'InvalidDataFormat'\n\n/**\n * The provided data doesn\\'t respect the provided JSON schema.\n */\nexport class InvalidDataFormatError extends BaseApiError<400, InvalidDataFormatType, 'The provided data doesn\\'t respect the provided JSON schema.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided data doesn\\'t respect the provided JSON schema.', 'InvalidDataFormat', message, error)\n }\n}\n\ntype InvalidIdentifierType = 'InvalidIdentifier'\n\n/**\n * The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.\n */\nexport class InvalidIdentifierError extends BaseApiError<400, InvalidIdentifierType, 'The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.', 'InvalidIdentifier', message, error)\n }\n}\n\ntype RelationConflictType = 'RelationConflict'\n\n/**\n * The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.\n */\nexport class RelationConflictError extends BaseApiError<409, RelationConflictType, 'The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.'> {\n constructor(message: string, error?: Error) {\n super(409, 'The resource is not related with another resource. This is usually caused when providing two resources that aren\\'t linked together.', 'RelationConflict', message, error)\n }\n}\n\ntype ReferenceNotFoundType = 'ReferenceNotFound'\n\n/**\n * The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.\n */\nexport class ReferenceNotFoundError extends BaseApiError<400, ReferenceNotFoundType, 'The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.', 'ReferenceNotFound', message, error)\n }\n}\n\ntype InvalidQueryType = 'InvalidQuery'\n\n/**\n * The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.\n */\nexport class InvalidQueryError extends BaseApiError<400, InvalidQueryType, 'The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.'> {\n constructor(message: string, error?: Error) {\n super(400, 'The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.', 'InvalidQuery', message, error)\n }\n}\n\ntype RuntimeType = 'Runtime'\n\n/**\n * An error happened during the execution of a runtime (bot or integration).\n */\nexport class RuntimeError extends BaseApiError<400, RuntimeType, 'An error happened during the execution of a runtime (bot or integration).'> {\n constructor(message: string, error?: Error) {\n super(400, 'An error happened during the execution of a runtime (bot or integration).', 'Runtime', message, error)\n }\n}\n\nexport type ErrorType =\n | 'Unknown'\n | 'Internal'\n | 'Unauthorized'\n | 'Forbidden'\n | 'PayloadTooLarge'\n | 'InvalidPayload'\n | 'UnsupportedMediaType'\n | 'MethodNotFound'\n | 'ResourceNotFound'\n | 'InvalidJsonSchema'\n | 'InvalidDataFormat'\n | 'InvalidIdentifier'\n | 'RelationConflict'\n | 'ReferenceNotFound'\n | 'InvalidQuery'\n | 'Runtime'\n\nexport type ApiError =\n | UnknownError\n | InternalError\n | UnauthorizedError\n | ForbiddenError\n | PayloadTooLargeError\n | InvalidPayloadError\n | UnsupportedMediaTypeError\n | MethodNotFoundError\n | ResourceNotFoundError\n | InvalidJsonSchemaError\n | InvalidDataFormatError\n | InvalidIdentifierError\n | RelationConflictError\n | ReferenceNotFoundError\n | InvalidQueryError\n | RuntimeError\n\nconst errorTypes: { [type: string]: new (message: string, error?: Error) => ApiError } = {\n Unknown: UnknownError,\n Internal: InternalError,\n Unauthorized: UnauthorizedError,\n Forbidden: ForbiddenError,\n PayloadTooLarge: PayloadTooLargeError,\n InvalidPayload: InvalidPayloadError,\n UnsupportedMediaType: UnsupportedMediaTypeError,\n MethodNotFound: MethodNotFoundError,\n ResourceNotFound: ResourceNotFoundError,\n InvalidJsonSchema: InvalidJsonSchemaError,\n InvalidDataFormat: InvalidDataFormatError,\n InvalidIdentifier: InvalidIdentifierError,\n RelationConflict: RelationConflictError,\n ReferenceNotFound: ReferenceNotFoundError,\n InvalidQuery: InvalidQueryError,\n Runtime: RuntimeError,\n}\n\nexport const errorFrom = (err: unknown): ApiError => {\n if (isApiError(err)) {\n return err\n }\n\n if (err instanceof Error) {\n return new UnknownError(err.message, err)\n }\n\n if (err === null) {\n return new UnknownError('An unknown error occurred')\n }\n\n if (typeof err === 'string') {\n return new UnknownError(err)\n }\n\n if (typeof err !== 'object') {\n return new UnknownError('An unknown error occurred')\n }\n\n return getErrorFromObject(err)\n}\n\nfunction getErrorFromObject(err: object) {\n if ('code' in err && 'type' in err && 'message' in err) {\n if (typeof err.message !== 'string') {\n return new UnknownError('An unknown error occurred')\n }\n\n if (typeof err.type !== 'string') {\n return new UnknownError(err.message)\n }\n\n const ErrorClass = errorTypes[err.type]\n\n if (!ErrorClass) {\n return new UnknownError(err.message)\n }\n\n return new ErrorClass(err.message)\n }\n\n return new UnknownError('An unknown error occurred')\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://api.botpress.cloud\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: AxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath || this.basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"./configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n\n/* tslint:disable */\n/* eslint-disable */\n/**\n * Botpress API\n * API for Botpress Cloud\n *\n * The version of the OpenAPI document: 0.2.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\nimport type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// URLSearchParams not necessarily used\n// @ts-ignore\n\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';\n\n/**\n * \n * @export\n * @interface Bot\n */\nexport interface Bot {\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'id': string;\n /**\n * Creation date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'createdAt': string;\n /**\n * Updating date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'updatedAt': string;\n /**\n * Signing secret of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'signingSecret': string;\n /**\n * A mapping of integrations to their configuration\n * @type {{ [key: string]: BotIntegrationsValue; }}\n * @memberof Bot\n */\n 'integrations': { [key: string]: BotIntegrationsValue; };\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof Bot\n */\n 'states': { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof Bot\n */\n 'tags': CreateBotBodyTags;\n /**\n * \n * @type {BotConfiguration}\n * @memberof Bot\n */\n 'configuration': BotConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof Bot\n */\n 'events': { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof Bot\n */\n 'recurringEvents': { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * Name of the [Bot](#schema_bot)\n * @type {string}\n * @memberof Bot\n */\n 'name': string;\n /**\n * Last deployment date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof Bot\n */\n 'deployedAt'?: string;\n /**\n * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations\n * @type {boolean}\n * @memberof Bot\n */\n 'dev': boolean;\n /**\n * Id of the user that created the bot\n * @type {string}\n * @memberof Bot\n */\n 'createdBy'?: string;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<BotMediasInner>}\n * @memberof Bot\n */\n 'medias': Array<BotMediasInner>;\n}\n/**\n * Configuration of the bot\n * @export\n * @interface BotConfiguration\n */\nexport interface BotConfiguration {\n /**\n * Configuration data\n * @type {{ [key: string]: any; }}\n * @memberof BotConfiguration\n */\n 'data': { [key: string]: any; };\n /**\n * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.\n * @type {{ [key: string]: any; }}\n * @memberof BotConfiguration\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface BotIntegrationsValue\n */\nexport interface BotIntegrationsValue {\n /**\n * \n * @type {boolean}\n * @memberof BotIntegrationsValue\n */\n 'enabled': boolean;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'version': string;\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'webhookUrl': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof BotIntegrationsValue\n */\n 'configuration': { [key: string]: any; };\n /**\n * \n * @type {string}\n * @memberof BotIntegrationsValue\n */\n 'status': BotIntegrationsValueStatusEnum;\n}\n\nexport const BotIntegrationsValueStatusEnum = {\n RegistrationPending: 'registration_pending',\n Registered: 'registered',\n RegistrationFailed: 'registration_failed',\n UnregistrationPending: 'unregistration_pending',\n Unregistered: 'unregistered',\n UnregistrationFailed: 'unregistration_failed'\n} as const;\n\nexport type BotIntegrationsValueStatusEnum = typeof BotIntegrationsValueStatusEnum[keyof typeof BotIntegrationsValueStatusEnum];\n\n/**\n * \n * @export\n * @interface BotMediasInner\n */\nexport interface BotMediasInner {\n /**\n * URL of the media file\n * @type {string}\n * @memberof BotMediasInner\n */\n 'url': string;\n /**\n * Name of the media file\n * @type {string}\n * @memberof BotMediasInner\n */\n 'name': string;\n}\n/**\n * \n * @export\n * @interface CallActionBody\n */\nexport interface CallActionBody {\n /**\n * Type of the action\n * @type {string}\n * @memberof CallActionBody\n */\n 'type': string;\n /**\n * Input of the action\n * @type {{ [key: string]: any; }}\n * @memberof CallActionBody\n */\n 'input': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CallActionResponse\n */\nexport interface CallActionResponse {\n /**\n * Input of the action\n * @type {{ [key: string]: any; }}\n * @memberof CallActionResponse\n */\n 'output': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface ConfigureIntegrationBody\n */\nexport interface ConfigureIntegrationBody {\n /**\n * Unique identifier of the integration that was installed on the bot\n * @type {string}\n * @memberof ConfigureIntegrationBody\n */\n 'identifier': string;\n}\n/**\n * The conversation object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration\\'s channels. For example, a Slack channel represents a conversation.\n * @export\n * @interface Conversation\n */\nexport interface Conversation {\n /**\n * Id of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Conversation\n */\n 'id': string;\n /**\n * Creation date of the [Conversation](#schema_conversation) in the ISO 8601 format\n * @type {string}\n * @memberof Conversation\n */\n 'createdAt': string;\n /**\n * Updating date of the [Conversation](#schema_conversation) in the ISO 8601 format\n * @type {string}\n * @memberof Conversation\n */\n 'updatedAt': string;\n /**\n * Name of the channel where the [Conversation](#schema_conversation) is happening\n * @type {string}\n * @memberof Conversation\n */\n 'channel': string;\n /**\n * Name of the integration that created the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Conversation\n */\n 'integration': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof Conversation\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface CreateBotBody\n */\nexport interface CreateBotBody {\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof CreateBotBody\n */\n 'states'?: { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof CreateBotBody\n */\n 'tags'?: CreateBotBodyTags;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof CreateBotBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof CreateBotBody\n */\n 'recurringEvents'?: { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * \n * @type {CreateBotBodyConfiguration}\n * @memberof CreateBotBody\n */\n 'configuration'?: CreateBotBodyConfiguration;\n /**\n * JavaScript code of the bot\n * @type {string}\n * @memberof CreateBotBody\n */\n 'code'?: string;\n /**\n * Optional name for the bot, if not provided will be auto-generated\n * @type {string}\n * @memberof CreateBotBody\n */\n 'name'?: string;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<CreateBotBodyMediasInner>}\n * @memberof CreateBotBody\n */\n 'medias'?: Array<CreateBotBodyMediasInner>;\n /**\n * URL of the [Bot](#schema_bot); Only available for dev bots\n * @type {string}\n * @memberof CreateBotBody\n */\n 'url'?: string;\n /**\n * Indicates if the [Bot](#schema_bot) is a development bot; Development bots run locally and can install dev integrations\n * @type {boolean}\n * @memberof CreateBotBody\n */\n 'dev'?: boolean;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyConfiguration\n */\nexport interface CreateBotBodyConfiguration {\n /**\n * Configuration data\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyConfiguration\n */\n 'data'?: { [key: string]: any; };\n /**\n * Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`.\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyConfiguration\n */\n 'schema'?: { [key: string]: any; };\n}\n/**\n * Event schema\n * @export\n * @interface CreateBotBodyEventsValue\n */\nexport interface CreateBotBodyEventsValue {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyEventsValue\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateBotBodyMediasInner\n */\nexport interface CreateBotBodyMediasInner {\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyMediasInner\n */\n 'url': string;\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyMediasInner\n */\n 'name': string;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyRecurringEventsValue\n */\nexport interface CreateBotBodyRecurringEventsValue {\n /**\n * \n * @type {CreateBotBodyRecurringEventsValueSchedule}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'schedule': CreateBotBodyRecurringEventsValueSchedule;\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyRecurringEventsValue\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateBotBodyRecurringEventsValueSchedule\n */\nexport interface CreateBotBodyRecurringEventsValueSchedule {\n /**\n * \n * @type {string}\n * @memberof CreateBotBodyRecurringEventsValueSchedule\n */\n 'cron': string;\n}\n/**\n * \n * @export\n * @interface CreateBotBodyStatesValue\n */\nexport interface CreateBotBodyStatesValue {\n /**\n * Type of the [State](#schema_state) (`conversation`, `user` or `bot`)\n * @type {string}\n * @memberof CreateBotBodyStatesValue\n */\n 'type': CreateBotBodyStatesValueTypeEnum;\n /**\n * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.\n * @type {{ [key: string]: any; }}\n * @memberof CreateBotBodyStatesValue\n */\n 'schema': { [key: string]: any; };\n /**\n * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn\\'t expire.\n * @type {number}\n * @memberof CreateBotBodyStatesValue\n */\n 'expiry'?: number;\n}\n\nexport const CreateBotBodyStatesValueTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Bot: 'bot'\n} as const;\n\nexport type CreateBotBodyStatesValueTypeEnum = typeof CreateBotBodyStatesValueTypeEnum[keyof typeof CreateBotBodyStatesValueTypeEnum];\n\n/**\n * Tags of the bot\n * @export\n * @interface CreateBotBodyTags\n */\nexport interface CreateBotBodyTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'messages'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'conversations'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateBotBodyTags\n */\n 'users'?: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateBotResponse\n */\nexport interface CreateBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof CreateBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface CreateConversationBody\n */\nexport interface CreateConversationBody {\n /**\n * Channel name\n * @type {string}\n * @memberof CreateConversationBody\n */\n 'channel': string;\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof CreateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the conversation creation will be delegated\n * @type {string}\n * @memberof CreateConversationBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface CreateConversationResponse\n */\nexport interface CreateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof CreateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface CreateEventBody\n */\nexport interface CreateEventBody {\n /**\n * Type of the [Event](#schema_event).\n * @type {string}\n * @memberof CreateEventBody\n */\n 'type': string;\n /**\n * Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our API.\n * @type {{ [key: string]: any; }}\n * @memberof CreateEventBody\n */\n 'payload': { [key: string]: any; };\n /**\n * \n * @type {CreateEventBodySchedule}\n * @memberof CreateEventBody\n */\n 'schedule'?: CreateEventBodySchedule;\n}\n/**\n * Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.\n * @export\n * @interface CreateEventBodySchedule\n */\nexport interface CreateEventBodySchedule {\n /**\n * When the [Event](#schema_event) will be sent, in the ISO 8601 format\n * @type {string}\n * @memberof CreateEventBodySchedule\n */\n 'dateTime'?: string;\n /**\n * Delay in milliseconds before sending the [Event](#schema_event)\n * @type {number}\n * @memberof CreateEventBodySchedule\n */\n 'delay'?: number;\n}\n/**\n * \n * @export\n * @interface CreateEventResponse\n */\nexport interface CreateEventResponse {\n /**\n * \n * @type {Event}\n * @memberof CreateEventResponse\n */\n 'event': Event;\n}\n/**\n * \n * @export\n * @interface CreateFileBody\n */\nexport interface CreateFileBody {\n /**\n * ID of the bot the file will be used for\n * @type {string}\n * @memberof CreateFileBody\n */\n 'botId': string;\n /**\n * Base64-encoded file contents\n * @type {string}\n * @memberof CreateFileBody\n */\n 'contents': string;\n /**\n * Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only.\n * @type {string}\n * @memberof CreateFileBody\n */\n 'name': string;\n /**\n * Accepted values: private, public\n * @type {string}\n * @memberof CreateFileBody\n */\n 'accessType': CreateFileBodyAccessTypeEnum;\n}\n\nexport const CreateFileBodyAccessTypeEnum = {\n Private: 'private',\n Public: 'public'\n} as const;\n\nexport type CreateFileBodyAccessTypeEnum = typeof CreateFileBodyAccessTypeEnum[keyof typeof CreateFileBodyAccessTypeEnum];\n\n/**\n * \n * @export\n * @interface CreateFileResponse\n */\nexport interface CreateFileResponse {\n /**\n * \n * @type {any}\n * @memberof CreateFileResponse\n */\n 'file': any;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBody\n */\nexport interface CreateIntegrationBody {\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'version': string;\n /**\n * \n * @type {CreateIntegrationBodyTags}\n * @memberof CreateIntegrationBody\n */\n 'tags'?: CreateIntegrationBodyTags;\n /**\n * Channels definition\n * @type {{ [key: string]: CreateIntegrationBodyChannelsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'channels'?: { [key: string]: CreateIntegrationBodyChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof CreateIntegrationBody\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof CreateIntegrationBody\n */\n 'configuration'?: CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof CreateIntegrationBody\n */\n 'actions'?: { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof CreateIntegrationBody\n */\n 'user'?: CreateIntegrationBodyUser;\n /**\n * JavaScript code of the integration\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'code'?: string;\n /**\n * Whether the integration is public\n * @type {boolean}\n * @memberof CreateIntegrationBody\n */\n 'public'?: boolean;\n /**\n * URL of the integration; Only available for dev integrations\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'url'?: string;\n /**\n * Indicates if the integration is a development integration; Dev integrations run locally\n * @type {boolean}\n * @memberof CreateIntegrationBody\n */\n 'dev'?: boolean;\n /**\n * Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'icon'?: string;\n /**\n * Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'readme'?: string;\n /**\n * Title of the integration. This is the name that will be displayed in the UI\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'title'?: string;\n /**\n * Description of the integration. This is the description that will be displayed in the UI\n * @type {string}\n * @memberof CreateIntegrationBody\n */\n 'description'?: string;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyActionsValue\n */\nexport interface CreateIntegrationBodyActionsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueMessagesValue}\n * @memberof CreateIntegrationBodyActionsValue\n */\n 'input': CreateIntegrationBodyChannelsValueMessagesValue;\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueMessagesValue}\n * @memberof CreateIntegrationBodyActionsValue\n */\n 'output': CreateIntegrationBodyChannelsValueMessagesValue;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValue\n */\nexport interface CreateIntegrationBodyChannelsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueTags}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'tags'?: CreateIntegrationBodyChannelsValueTags;\n /**\n * \n * @type {{ [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; }}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'messages': { [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; };\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversation}\n * @memberof CreateIntegrationBodyChannelsValue\n */\n 'conversation'?: CreateIntegrationBodyChannelsValueConversation;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueConversation\n */\nexport interface CreateIntegrationBodyChannelsValueConversation {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversationCreation}\n * @memberof CreateIntegrationBodyChannelsValueConversation\n */\n 'creation': CreateIntegrationBodyChannelsValueConversationCreation;\n}\n/**\n * The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the `createConversation` functionality to support this setting.\n * @export\n * @interface CreateIntegrationBodyChannelsValueConversationCreation\n */\nexport interface CreateIntegrationBodyChannelsValueConversationCreation {\n /**\n * Enable conversation creation\n * @type {boolean}\n * @memberof CreateIntegrationBodyChannelsValueConversationCreation\n */\n 'enabled': boolean;\n /**\n * The list of tags that are required to be specified when calling the API directly to create a conversation.\n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueConversationCreation\n */\n 'requiredTags': Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueMessagesValue\n */\nexport interface CreateIntegrationBodyChannelsValueMessagesValue {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyChannelsValueMessagesValue\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyChannelsValueTags\n */\nexport interface CreateIntegrationBodyChannelsValueTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueTags\n */\n 'messages'?: Array<string>;\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyChannelsValueTags\n */\n 'conversations'?: Array<string>;\n}\n/**\n * Configuration definition\n * @export\n * @interface CreateIntegrationBodyConfiguration\n */\nexport interface CreateIntegrationBodyConfiguration {\n /**\n * Schema for the configuration\n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyConfiguration\n */\n 'schema': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyStatesValue\n */\nexport interface CreateIntegrationBodyStatesValue {\n /**\n * Type of the [State](#schema_state) (`conversation`, `user` or `integration`)\n * @type {string}\n * @memberof CreateIntegrationBodyStatesValue\n */\n 'type': CreateIntegrationBodyStatesValueTypeEnum;\n /**\n * Schema of the [State](#schema_state) in the `JSON schema` format. This `JSON schema` is going to be used for validating the state data.\n * @type {{ [key: string]: any; }}\n * @memberof CreateIntegrationBodyStatesValue\n */\n 'schema': { [key: string]: any; };\n}\n\nexport const CreateIntegrationBodyStatesValueTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Integration: 'integration'\n} as const;\n\nexport type CreateIntegrationBodyStatesValueTypeEnum = typeof CreateIntegrationBodyStatesValueTypeEnum[keyof typeof CreateIntegrationBodyStatesValueTypeEnum];\n\n/**\n * Tags of the [Integration](#schema_integration)\n * @export\n * @interface CreateIntegrationBodyTags\n */\nexport interface CreateIntegrationBodyTags {\n /**\n * \n * @type {Array<string>}\n * @memberof CreateIntegrationBodyTags\n */\n 'users'?: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationBodyUser\n */\nexport interface CreateIntegrationBodyUser {\n /**\n * \n * @type {CreateIntegrationBodyUserCreation}\n * @memberof CreateIntegrationBodyUser\n */\n 'creation': CreateIntegrationBodyUserCreation;\n}\n/**\n * The user creation setting determines how to create a user through the API directly. The integration will have to implement the `createUser` functionality to support this setting.\n * @export\n * @interface CreateIntegrationBodyUserCreation\n */\nexport interface CreateIntegrationBodyUserCreation {\n /**\n * Enable user creation\n * @type {boolean}\n * @memberof CreateIntegrationBodyUserCreation\n */\n 'enabled': boolean;\n /**\n * The list of tags that are required to be specified when calling the API directly to create a user.\n * @type {Array<string>}\n * @memberof CreateIntegrationBodyUserCreation\n */\n 'requiredTags': Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateIntegrationResponse\n */\nexport interface CreateIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof CreateIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface CreateMessageBody\n */\nexport interface CreateMessageBody {\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof CreateMessageBody\n */\n 'payload': { [key: string]: any; };\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'conversationId': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof CreateMessageBody\n */\n 'type': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof CreateMessageBody\n */\n 'tags': { [key: string]: string; };\n /**\n * \n * @type {CreateMessageBodySchedule}\n * @memberof CreateMessageBody\n */\n 'schedule'?: CreateMessageBodySchedule;\n}\n/**\n * Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.\n * @export\n * @interface CreateMessageBodySchedule\n */\nexport interface CreateMessageBodySchedule {\n /**\n * When the [Message](#schema_message) will be sent, in the ISO 8601 format\n * @type {string}\n * @memberof CreateMessageBodySchedule\n */\n 'dateTime'?: string;\n /**\n * Delay in milliseconds before sending the [Message](#schema_message)\n * @type {number}\n * @memberof CreateMessageBodySchedule\n */\n 'delay'?: number;\n}\n/**\n * \n * @export\n * @interface CreateMessageResponse\n */\nexport interface CreateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof CreateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface CreateUserBody\n */\nexport interface CreateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof CreateUserBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the user creation will be delegated\n * @type {string}\n * @memberof CreateUserBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface CreateUserResponse\n */\nexport interface CreateUserResponse {\n /**\n * \n * @type {User}\n * @memberof CreateUserResponse\n */\n 'user': User;\n}\n/**\n * The event object represents an action or an occurrence.\n * @export\n * @interface Event\n */\nexport interface Event {\n /**\n * Id of the [Event](#schema_event)\n * @type {string}\n * @memberof Event\n */\n 'id': string;\n /**\n * Creation date of the [Event](#schema_event) in the ISO 8601 format\n * @type {string}\n * @memberof Event\n */\n 'createdAt': string;\n /**\n * Type of the [Event](#schema_event).\n * @type {string}\n * @memberof Event\n */\n 'type': string;\n /**\n * Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.\n * @type {{ [key: string]: any; }}\n * @memberof Event\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface GetBotAnalyticsResponse\n */\nexport interface GetBotAnalyticsResponse {\n /**\n * \n * @type {Array<GetBotAnalyticsResponseRecordsInner>}\n * @memberof GetBotAnalyticsResponse\n */\n 'records': Array<GetBotAnalyticsResponseRecordsInner>;\n}\n/**\n * \n * @export\n * @interface GetBotAnalyticsResponseRecordsInner\n */\nexport interface GetBotAnalyticsResponseRecordsInner {\n /**\n * ISO 8601 date string of the beginning (inclusive) of the period\n * @type {string}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'startDateTimeUtc': string;\n /**\n * ISO 8601 date string of the end (exclusive) of the period\n * @type {string}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'endDateTimeUtc': string;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'returningUsers': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'newUsers': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'sessions': number;\n /**\n * \n * @type {number}\n * @memberof GetBotAnalyticsResponseRecordsInner\n */\n 'messages': number;\n}\n/**\n * \n * @export\n * @interface GetBotLogsResponse\n */\nexport interface GetBotLogsResponse {\n /**\n * \n * @type {Array<GetBotLogsResponseLogsInner>}\n * @memberof GetBotLogsResponse\n */\n 'logs': Array<GetBotLogsResponseLogsInner>;\n}\n/**\n * \n * @export\n * @interface GetBotLogsResponseLogsInner\n */\nexport interface GetBotLogsResponseLogsInner {\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'timestamp': string;\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'level': string;\n /**\n * \n * @type {string}\n * @memberof GetBotLogsResponseLogsInner\n */\n 'message': string;\n}\n/**\n * \n * @export\n * @interface GetBotResponse\n */\nexport interface GetBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof GetBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface GetBotWebchatResponse\n */\nexport interface GetBotWebchatResponse {\n /**\n * \n * @type {string}\n * @memberof GetBotWebchatResponse\n */\n 'code': string;\n}\n/**\n * \n * @export\n * @interface GetConversationResponse\n */\nexport interface GetConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof GetConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface GetEventResponse\n */\nexport interface GetEventResponse {\n /**\n * \n * @type {Event}\n * @memberof GetEventResponse\n */\n 'event': Event;\n}\n/**\n * \n * @export\n * @interface GetFileResponse\n */\nexport interface GetFileResponse {\n /**\n * \n * @type {any}\n * @memberof GetFileResponse\n */\n 'file': any;\n}\n/**\n * \n * @export\n * @interface GetIntegrationByNameResponse\n */\nexport interface GetIntegrationByNameResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetIntegrationByNameResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetIntegrationLogsResponse\n */\nexport interface GetIntegrationLogsResponse {\n /**\n * \n * @type {Array<GetBotLogsResponseLogsInner>}\n * @memberof GetIntegrationLogsResponse\n */\n 'logs': Array<GetBotLogsResponseLogsInner>;\n}\n/**\n * \n * @export\n * @interface GetIntegrationResponse\n */\nexport interface GetIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetMessageResponse\n */\nexport interface GetMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof GetMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface GetOrCreateConversationBody\n */\nexport interface GetOrCreateConversationBody {\n /**\n * Channel name\n * @type {string}\n * @memberof GetOrCreateConversationBody\n */\n 'channel': string;\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the conversation creation will be delegated\n * @type {string}\n * @memberof GetOrCreateConversationBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface GetOrCreateConversationResponse\n */\nexport interface GetOrCreateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof GetOrCreateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface GetOrCreateMessageBody\n */\nexport interface GetOrCreateMessageBody {\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof GetOrCreateMessageBody\n */\n 'payload': { [key: string]: any; };\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'conversationId': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof GetOrCreateMessageBody\n */\n 'type': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateMessageBody\n */\n 'tags': { [key: string]: string; };\n /**\n * \n * @type {CreateMessageBodySchedule}\n * @memberof GetOrCreateMessageBody\n */\n 'schedule'?: CreateMessageBodySchedule;\n}\n/**\n * \n * @export\n * @interface GetOrCreateMessageResponse\n */\nexport interface GetOrCreateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof GetOrCreateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface GetOrCreateUserBody\n */\nexport interface GetOrCreateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof GetOrCreateUserBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Name of the integration to which the user creation will be delegated\n * @type {string}\n * @memberof GetOrCreateUserBody\n */\n 'integrationName'?: string;\n}\n/**\n * \n * @export\n * @interface GetOrCreateUserResponse\n */\nexport interface GetOrCreateUserResponse {\n /**\n * \n * @type {User}\n * @memberof GetOrCreateUserResponse\n */\n 'user': User;\n}\n/**\n * \n * @export\n * @interface GetPublicIntegrationByIdResponse\n */\nexport interface GetPublicIntegrationByIdResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetPublicIntegrationByIdResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetPublicIntegrationResponse\n */\nexport interface GetPublicIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof GetPublicIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface GetStateResponse\n */\nexport interface GetStateResponse {\n /**\n * \n * @type {State}\n * @memberof GetStateResponse\n */\n 'state': State;\n}\n/**\n * \n * @export\n * @interface GetUserResponse\n */\nexport interface GetUserResponse {\n /**\n * \n * @type {User}\n * @memberof GetUserResponse\n */\n 'user': User;\n}\n/**\n * \n * @export\n * @interface GetWorkspaceResponse\n */\nexport interface GetWorkspaceResponse {\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'ownerId': string;\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'updatedAt': string;\n /**\n * \n * @type {string}\n * @memberof GetWorkspaceResponse\n */\n 'accountType': string;\n /**\n * \n * @type {boolean}\n * @memberof GetWorkspaceResponse\n */\n 'blocked': boolean;\n /**\n * \n * @type {number}\n * @memberof GetWorkspaceResponse\n */\n 'spendingLimit': number;\n}\n/**\n * \n * @export\n * @interface Integration\n */\nexport interface Integration {\n /**\n * Id of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'id': string;\n /**\n * Creation date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof Integration\n */\n 'createdAt': string;\n /**\n * Updating date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof Integration\n */\n 'updatedAt': string;\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof Integration\n */\n 'version': string;\n /**\n * Channels definition\n * @type {{ [key: string]: IntegrationChannelsValue; }}\n * @memberof Integration\n */\n 'channels': { [key: string]: IntegrationChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof Integration\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof Integration\n */\n 'configuration': CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof Integration\n */\n 'events': { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof Integration\n */\n 'actions': { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof Integration\n */\n 'user': CreateIntegrationBodyUser;\n /**\n * Indicates if the integration is a development integration; Dev integrations run locally\n * @type {boolean}\n * @memberof Integration\n */\n 'dev': boolean;\n /**\n * Title of the integration. This is the name that will be displayed in the UI\n * @type {string}\n * @memberof Integration\n */\n 'title': string;\n /**\n * Description of the integration. This is the description that will be displayed in the UI\n * @type {string}\n * @memberof Integration\n */\n 'description': string;\n /**\n * URL of the icon of the integration. This is the icon that will be displayed in the UI\n * @type {string}\n * @memberof Integration\n */\n 'iconUrl': string;\n /**\n * URL of the readme of the integration. This is the readme that will be displayed in the UI\n * @type {string}\n * @memberof Integration\n */\n 'readmeUrl': string;\n}\n/**\n * \n * @export\n * @interface IntegrationChannelsValue\n */\nexport interface IntegrationChannelsValue {\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueTags}\n * @memberof IntegrationChannelsValue\n */\n 'tags': CreateIntegrationBodyChannelsValueTags;\n /**\n * \n * @type {{ [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; }}\n * @memberof IntegrationChannelsValue\n */\n 'messages': { [key: string]: CreateIntegrationBodyChannelsValueMessagesValue; };\n /**\n * \n * @type {CreateIntegrationBodyChannelsValueConversation}\n * @memberof IntegrationChannelsValue\n */\n 'conversation': CreateIntegrationBodyChannelsValueConversation;\n}\n/**\n * \n * @export\n * @interface IntrospectBody\n */\nexport interface IntrospectBody {\n /**\n * \n * @type {string}\n * @memberof IntrospectBody\n */\n 'botId': string;\n}\n/**\n * \n * @export\n * @interface IntrospectResponse\n */\nexport interface IntrospectResponse {\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'workspaceId': string;\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'botId': string;\n /**\n * \n * @type {string}\n * @memberof IntrospectResponse\n */\n 'userId': string;\n}\n/**\n * \n * @export\n * @interface ListBotsResponse\n */\nexport interface ListBotsResponse {\n /**\n * \n * @type {Array<ListBotsResponseBotsInner>}\n * @memberof ListBotsResponse\n */\n 'bots': Array<ListBotsResponseBotsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListBotsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListBotsResponseBotsInner\n */\nexport interface ListBotsResponseBotsInner {\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'id': string;\n /**\n * Creation date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'createdAt': string;\n /**\n * Updating date of the [Bot](#schema_bot) in the ISO 8601 format\n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'updatedAt': string;\n /**\n * \n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof ListBotsResponseBotsInner\n */\n 'deployedAt'?: string;\n}\n/**\n * \n * @export\n * @interface ListConversationsResponse\n */\nexport interface ListConversationsResponse {\n /**\n * \n * @type {Array<Conversation>}\n * @memberof ListConversationsResponse\n */\n 'conversations': Array<Conversation>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListConversationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListConversationsResponseMeta\n */\nexport interface ListConversationsResponseMeta {\n /**\n * The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.\n * @type {string}\n * @memberof ListConversationsResponseMeta\n */\n 'nextToken'?: string;\n}\n/**\n * \n * @export\n * @interface ListEventsResponse\n */\nexport interface ListEventsResponse {\n /**\n * \n * @type {Array<Event>}\n * @memberof ListEventsResponse\n */\n 'events': Array<Event>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListEventsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListFilesResponse\n */\nexport interface ListFilesResponse {\n /**\n * \n * @type {Array<any>}\n * @memberof ListFilesResponse\n */\n 'files': Array<any>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListFilesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListIntegrationsResponse\n */\nexport interface ListIntegrationsResponse {\n /**\n * \n * @type {Array<ListPublicIntegrationsResponseIntegrationsInner>}\n * @memberof ListIntegrationsResponse\n */\n 'integrations': Array<ListPublicIntegrationsResponseIntegrationsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListIntegrationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListMessagesResponse\n */\nexport interface ListMessagesResponse {\n /**\n * \n * @type {Array<Message>}\n * @memberof ListMessagesResponse\n */\n 'messages': Array<Message>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListMessagesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListPublicIntegrationsResponse\n */\nexport interface ListPublicIntegrationsResponse {\n /**\n * \n * @type {Array<ListPublicIntegrationsResponseIntegrationsInner>}\n * @memberof ListPublicIntegrationsResponse\n */\n 'integrations': Array<ListPublicIntegrationsResponseIntegrationsInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListPublicIntegrationsResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListPublicIntegrationsResponseIntegrationsInner\n */\nexport interface ListPublicIntegrationsResponseIntegrationsInner {\n /**\n * Id of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'id': string;\n /**\n * Name of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'name': string;\n /**\n * Version of the [Integration](#schema_integration)\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'version': string;\n /**\n * Creation date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'createdAt': string;\n /**\n * Updating date of the [Integration](#schema_integration) in the ISO 8601 format\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'updatedAt': string;\n /**\n * Title of the integration. This is the name that will be displayed in the UI\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'title': string;\n /**\n * Description of the integration. This is the description that will be displayed in the UI\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'description': string;\n /**\n * URL of the icon of the integration. This is the icon that will be displayed in the UI\n * @type {string}\n * @memberof ListPublicIntegrationsResponseIntegrationsInner\n */\n 'iconUrl': string;\n}\n/**\n * \n * @export\n * @interface ListUsersResponse\n */\nexport interface ListUsersResponse {\n /**\n * \n * @type {Array<User>}\n * @memberof ListUsersResponse\n */\n 'users': Array<User>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListUsersResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListWorkspacesResponse\n */\nexport interface ListWorkspacesResponse {\n /**\n * \n * @type {Array<ListWorkspacesResponseWorkspacesInner>}\n * @memberof ListWorkspacesResponse\n */\n 'workspaces': Array<ListWorkspacesResponseWorkspacesInner>;\n /**\n * \n * @type {ListConversationsResponseMeta}\n * @memberof ListWorkspacesResponse\n */\n 'meta': ListConversationsResponseMeta;\n}\n/**\n * \n * @export\n * @interface ListWorkspacesResponseWorkspacesInner\n */\nexport interface ListWorkspacesResponseWorkspacesInner {\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'ownerId': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof ListWorkspacesResponseWorkspacesInner\n */\n 'updatedAt': string;\n}\n/**\n * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).\n * @export\n * @interface Message\n */\nexport interface Message {\n /**\n * Id of the [Message](#schema_message)\n * @type {string}\n * @memberof Message\n */\n 'id': string;\n /**\n * Creation date of the [Message](#schema_message) in the ISO 8601 format\n * @type {string}\n * @memberof Message\n */\n 'createdAt': string;\n /**\n * Type of the [Message](#schema_message) represents the resource type that the message is related to\n * @type {string}\n * @memberof Message\n */\n 'type': string;\n /**\n * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location\n * @type {{ [key: string]: any; }}\n * @memberof Message\n */\n 'payload': { [key: string]: any; };\n /**\n * Direction of the message (`incoming` or `outgoing`).\n * @type {string}\n * @memberof Message\n */\n 'direction': MessageDirectionEnum;\n /**\n * ID of the [User](#schema_user)\n * @type {string}\n * @memberof Message\n */\n 'userId': string;\n /**\n * ID of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof Message\n */\n 'conversationId': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof Message\n */\n 'tags': { [key: string]: string; };\n}\n\nexport const MessageDirectionEnum = {\n Incoming: 'incoming',\n Outgoing: 'outgoing'\n} as const;\n\nexport type MessageDirectionEnum = typeof MessageDirectionEnum[keyof typeof MessageDirectionEnum];\n\n/**\n * \n * @export\n * @interface ModelFile\n */\nexport interface ModelFile {\n /**\n * ID of the bot the file will be used for\n * @type {string}\n * @memberof ModelFile\n */\n 'botId': string;\n /**\n * Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only.\n * @type {string}\n * @memberof ModelFile\n */\n 'name': string;\n /**\n * Accepted values: private, public\n * @type {string}\n * @memberof ModelFile\n */\n 'accessType': ModelFileAccessTypeEnum;\n /**\n * ID of the [File](#schema_file)\n * @type {string}\n * @memberof ModelFile\n */\n 'id': string;\n /**\n * Creation date of the [File](#schema_file) in ISO 8601 format\n * @type {string}\n * @memberof ModelFile\n */\n 'createdAt': string;\n /**\n * Size of the file in bytes\n * @type {number}\n * @memberof ModelFile\n */\n 'size': number;\n /**\n * Public URL to the file contents, available only if the access type is public. If the file is private, use the Download endpoint to retrieve the file contents.\n * @type {string}\n * @memberof ModelFile\n */\n 'publicUrl'?: string;\n}\n\nexport const ModelFileAccessTypeEnum = {\n Private: 'private',\n Public: 'public'\n} as const;\n\nexport type ModelFileAccessTypeEnum = typeof ModelFileAccessTypeEnum[keyof typeof ModelFileAccessTypeEnum];\n\n/**\n * \n * @export\n * @interface PatchStateBody\n */\nexport interface PatchStateBody {\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof PatchStateBody\n */\n 'payload': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface PatchStateResponse\n */\nexport interface PatchStateResponse {\n /**\n * \n * @type {State}\n * @memberof PatchStateResponse\n */\n 'state': State;\n}\n/**\n * \n * @export\n * @interface SetStateBody\n */\nexport interface SetStateBody {\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof SetStateBody\n */\n 'payload': { [key: string]: any; } | null;\n /**\n * Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn\\'t expire.\n * @type {number}\n * @memberof SetStateBody\n */\n 'expiry'?: number;\n}\n/**\n * \n * @export\n * @interface SetStateResponse\n */\nexport interface SetStateResponse {\n /**\n * \n * @type {State}\n * @memberof SetStateResponse\n */\n 'state': State;\n}\n/**\n * The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.\n * @export\n * @interface State\n */\nexport interface State {\n /**\n * Id of the [State](#schema_state)\n * @type {string}\n * @memberof State\n */\n 'id': string;\n /**\n * Creation date of the [State](#schema_state) in the ISO 8601 format\n * @type {string}\n * @memberof State\n */\n 'createdAt': string;\n /**\n * Updating date of the [State](#schema_state) in the ISO 8601 format\n * @type {string}\n * @memberof State\n */\n 'updatedAt': string;\n /**\n * Id of the [Bot](#schema_bot)\n * @type {string}\n * @memberof State\n */\n 'botId': string;\n /**\n * Id of the [Conversation](#schema_conversation)\n * @type {string}\n * @memberof State\n */\n 'conversationId'?: string;\n /**\n * Id of the [User](#schema_user)\n * @type {string}\n * @memberof State\n */\n 'userId'?: string;\n /**\n * Name of the [State](#schema_state) which is declared inside the bot definition\n * @type {string}\n * @memberof State\n */\n 'name': string;\n /**\n * Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot` or `integration`) that the state is related to\n * @type {string}\n * @memberof State\n */\n 'type': StateTypeEnum;\n /**\n * Payload is the content of the state defined by your bot.\n * @type {{ [key: string]: any; }}\n * @memberof State\n */\n 'payload': { [key: string]: any; };\n}\n\nexport const StateTypeEnum = {\n Conversation: 'conversation',\n User: 'user',\n Bot: 'bot',\n Integration: 'integration'\n} as const;\n\nexport type StateTypeEnum = typeof StateTypeEnum[keyof typeof StateTypeEnum];\n\n/**\n * \n * @export\n * @interface TransferBotBody\n */\nexport interface TransferBotBody {\n /**\n * The ID of the workspace you want to transfer the bot to.\n * @type {string}\n * @memberof TransferBotBody\n */\n 'targetWorkspaceId': string;\n}\n/**\n * \n * @export\n * @interface UpdateBotBody\n */\nexport interface UpdateBotBody {\n /**\n * URL of the [Bot](#schema_bot); Only available for dev bots\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'url'?: string;\n /**\n * Type of the [Bot](#schema_bot) authentication (`iam`)\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'authentication'?: UpdateBotBodyAuthenticationEnum;\n /**\n * A mapping of states to their definition\n * @type {{ [key: string]: CreateBotBodyStatesValue; }}\n * @memberof UpdateBotBody\n */\n 'states'?: { [key: string]: CreateBotBodyStatesValue; };\n /**\n * \n * @type {CreateBotBodyTags}\n * @memberof UpdateBotBody\n */\n 'tags'?: CreateBotBodyTags;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof UpdateBotBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Recurring events\n * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}\n * @memberof UpdateBotBody\n */\n 'recurringEvents'?: { [key: string]: CreateBotBodyRecurringEventsValue; };\n /**\n * \n * @type {CreateBotBodyConfiguration}\n * @memberof UpdateBotBody\n */\n 'configuration'?: CreateBotBodyConfiguration;\n /**\n * \n * @type {boolean}\n * @memberof UpdateBotBody\n */\n 'blocked'?: boolean;\n /**\n * \n * @type {{ [key: string]: UpdateBotBodyIntegrationsValue; }}\n * @memberof UpdateBotBody\n */\n 'integrations'?: { [key: string]: UpdateBotBodyIntegrationsValue; };\n /**\n * JavaScript code of the bot\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'code'?: string;\n /**\n * Optional name for the bot, if not provided will be auto-generated\n * @type {string}\n * @memberof UpdateBotBody\n */\n 'name'?: string;\n /**\n * Media files associated with the [Bot](#schema_bot)\n * @type {Array<CreateBotBodyMediasInner>}\n * @memberof UpdateBotBody\n */\n 'medias'?: Array<CreateBotBodyMediasInner>;\n}\n\nexport const UpdateBotBodyAuthenticationEnum = {\n Iam: 'iam'\n} as const;\n\nexport type UpdateBotBodyAuthenticationEnum = typeof UpdateBotBodyAuthenticationEnum[keyof typeof UpdateBotBodyAuthenticationEnum];\n\n/**\n * \n * @export\n * @interface UpdateBotBodyIntegrationsValue\n */\nexport interface UpdateBotBodyIntegrationsValue {\n /**\n * \n * @type {boolean}\n * @memberof UpdateBotBodyIntegrationsValue\n */\n 'enabled': boolean;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof UpdateBotBodyIntegrationsValue\n */\n 'configuration': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface UpdateBotResponse\n */\nexport interface UpdateBotResponse {\n /**\n * \n * @type {Bot}\n * @memberof UpdateBotResponse\n */\n 'bot': Bot;\n}\n/**\n * \n * @export\n * @interface UpdateConversationBody\n */\nexport interface UpdateConversationBody {\n /**\n * Tags for the [Conversation](#schema_conversation)\n * @type {{ [key: string]: string; }}\n * @memberof UpdateConversationBody\n */\n 'tags': { [key: string]: string; };\n /**\n * Ids of the [User]s(#schema_user) participating in the conversation\n * @type {Array<string>}\n * @memberof UpdateConversationBody\n */\n 'participantIds': Array<string>;\n}\n/**\n * \n * @export\n * @interface UpdateConversationResponse\n */\nexport interface UpdateConversationResponse {\n /**\n * \n * @type {Conversation}\n * @memberof UpdateConversationResponse\n */\n 'conversation': Conversation;\n}\n/**\n * \n * @export\n * @interface UpdateIntegrationBody\n */\nexport interface UpdateIntegrationBody {\n /**\n * \n * @type {CreateIntegrationBodyTags}\n * @memberof UpdateIntegrationBody\n */\n 'tags'?: CreateIntegrationBodyTags;\n /**\n * Channels definition\n * @type {{ [key: string]: CreateIntegrationBodyChannelsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'channels'?: { [key: string]: CreateIntegrationBodyChannelsValue; };\n /**\n * States definition\n * @type {{ [key: string]: CreateIntegrationBodyStatesValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'states'?: { [key: string]: CreateIntegrationBodyStatesValue; };\n /**\n * \n * @type {CreateIntegrationBodyConfiguration}\n * @memberof UpdateIntegrationBody\n */\n 'configuration'?: CreateIntegrationBodyConfiguration;\n /**\n * Events definition\n * @type {{ [key: string]: CreateBotBodyEventsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'events'?: { [key: string]: CreateBotBodyEventsValue; };\n /**\n * Action definition\n * @type {{ [key: string]: CreateIntegrationBodyActionsValue; }}\n * @memberof UpdateIntegrationBody\n */\n 'actions'?: { [key: string]: CreateIntegrationBodyActionsValue; };\n /**\n * \n * @type {CreateIntegrationBodyUser}\n * @memberof UpdateIntegrationBody\n */\n 'user'?: CreateIntegrationBodyUser;\n /**\n * JavaScript code of the integration\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'code'?: string;\n /**\n * Whether the integration is public\n * @type {boolean}\n * @memberof UpdateIntegrationBody\n */\n 'public'?: boolean;\n /**\n * URL of the integration; Only available for dev integrations\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'url'?: string;\n /**\n * Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'icon'?: string;\n /**\n * Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'readme'?: string;\n /**\n * Title of the integration. This is the name that will be displayed in the UI\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'title'?: string;\n /**\n * Description of the integration. This is the description that will be displayed in the UI\n * @type {string}\n * @memberof UpdateIntegrationBody\n */\n 'description'?: string;\n}\n/**\n * \n * @export\n * @interface UpdateIntegrationResponse\n */\nexport interface UpdateIntegrationResponse {\n /**\n * \n * @type {Integration}\n * @memberof UpdateIntegrationResponse\n */\n 'integration': Integration;\n}\n/**\n * \n * @export\n * @interface UpdateMessageBody\n */\nexport interface UpdateMessageBody {\n /**\n * Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof UpdateMessageBody\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface UpdateMessageResponse\n */\nexport interface UpdateMessageResponse {\n /**\n * \n * @type {Message}\n * @memberof UpdateMessageResponse\n */\n 'message': Message;\n}\n/**\n * \n * @export\n * @interface UpdateUserBody\n */\nexport interface UpdateUserBody {\n /**\n * Tags for the [User](#schema_user)\n * @type {{ [key: string]: string; }}\n * @memberof UpdateUserBody\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface UpdateUserResponse\n */\nexport interface UpdateUserResponse {\n /**\n * \n * @type {User}\n * @memberof UpdateUserResponse\n */\n 'user': User;\n}\n/**\n * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.\n * @export\n * @interface User\n */\nexport interface User {\n /**\n * Id of the [User](#schema_user)\n * @type {string}\n * @memberof User\n */\n 'id': string;\n /**\n * Creation date of the [User](#schema_user) in the ISO 8601 format\n * @type {string}\n * @memberof User\n */\n 'createdAt': string;\n /**\n * Updating date of the [User](#schema_user) in the ISO 8601 format\n * @type {string}\n * @memberof User\n */\n 'updatedAt': string;\n /**\n * Set of [Tags](#tags) that you can attach to a [User](#schema_user). The set of [Tags](#tags) available on a [User](#schema_user) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.\n * @type {{ [key: string]: string; }}\n * @memberof User\n */\n 'tags': { [key: string]: string; };\n}\n/**\n * \n * @export\n * @interface Workspace\n */\nexport interface Workspace {\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'ownerId': string;\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'createdAt': string;\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'updatedAt': string;\n /**\n * \n * @type {string}\n * @memberof Workspace\n */\n 'accountType': string;\n /**\n * \n * @type {boolean}\n * @memberof Workspace\n */\n 'blocked': boolean;\n /**\n * \n * @type {number}\n * @memberof Workspace\n */\n 'spendingLimit': number;\n}\n\n/**\n * DefaultApi - axios parameter creator\n * @export\n */\nexport const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n callAction: async (callActionBody?: CallActionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/actions`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(callActionBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n configureIntegration: async (configureIntegrationBody?: ConfigureIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/integrations/configure`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(configureIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createBot: async (createBotBody?: CreateBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/bots`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createConversation: async (createConversationBody?: CreateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createEvent: async (createEventBody?: CreateEventBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/events`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createEventBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createFile: async (createFileBody?: CreateFileBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/storage/files`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createFileBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createIntegration: async (createIntegrationBody?: CreateIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createMessage: async (createMessageBody?: CreateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createUser: async (createUserBody?: CreateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(createUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteBot: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteConversation: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteIntegration: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteMessage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('deleteUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n downloadFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('downloadFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}/download`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBot: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotAnalytics: async (id: string, startDate: string, endDate: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotAnalytics', 'id', id)\n // verify required parameter 'startDate' is not null or undefined\n assertParamExists('getBotAnalytics', 'startDate', startDate)\n // verify required parameter 'endDate' is not null or undefined\n assertParamExists('getBotAnalytics', 'endDate', endDate)\n const localVarPath = `/v1/admin/bots/{id}/analytics`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (startDate !== undefined) {\n localVarQueryParameter['startDate'] = startDate;\n }\n\n if (endDate !== undefined) {\n localVarQueryParameter['endDate'] = endDate;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotLogs: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotLogs', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}/logs`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotWebchat: async (id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getBotWebchat', 'id', id)\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getBotWebchat', 'type', type)\n const localVarPath = `/v1/admin/bots/{id}/webchat`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (type !== undefined) {\n localVarQueryParameter['type'] = type;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getConversation: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEvent: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getEvent', 'id', id)\n const localVarPath = `/v1/chat/events/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFile: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getFile', 'id', id)\n const localVarPath = `/v1/storage/files/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegration: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationByName: async (name: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getIntegrationByName', 'name', name)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getIntegrationByName', 'version', version)\n const localVarPath = `/v1/admin/integrations/{name}/{version}`\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get integration logs\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationLogs: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getIntegrationLogs', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}/logs`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMessage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateConversation: async (getOrCreateConversationBody?: GetOrCreateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateMessage: async (getOrCreateMessageBody?: GetOrCreateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateUser: async (getOrCreateUserBody?: GetOrCreateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users/get-or-create`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(getOrCreateUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegration: async (name: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getPublicIntegration', 'name', name)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getPublicIntegration', 'version', version)\n const localVarPath = `/v1/admin/hub/integrations/{name}/{version}`\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegrationById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getPublicIntegrationById', 'id', id)\n const localVarPath = `/v1/admin/hub/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('getState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get workspace details\n * @param {string} id Workspace ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getWorkspace: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('getWorkspace', 'id', id)\n const localVarPath = `/v1/admin/workspaces/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n introspect: async (introspectBody?: IntrospectBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/introspect`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(introspectBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listBots: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/bots`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listConversations: async (nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/conversations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n if (participantIds) {\n localVarQueryParameter['participantIds'] = participantIds;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [type] Filter by event type\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listEvents: async (nextToken?: string, type?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/events`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (type !== undefined) {\n localVarQueryParameter['type'] = type;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listFiles: async (botId: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'botId' is not null or undefined\n assertParamExists('listFiles', 'botId', botId)\n const localVarPath = `/v1/storage/files`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (botId !== undefined) {\n localVarQueryParameter['botId'] = botId;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listIntegrations: async (nextToken?: string, name?: string, version?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (name !== undefined) {\n localVarQueryParameter['name'] = name;\n }\n\n if (version !== undefined) {\n localVarQueryParameter['version'] = version;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listMessages: async (nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/messages`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (conversationId !== undefined) {\n localVarQueryParameter['conversationId'] = conversationId;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listPublicIntegrations: async (nextToken?: string, name?: string, version?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/hub/integrations`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (name !== undefined) {\n localVarQueryParameter['name'] = name;\n }\n\n if (version !== undefined) {\n localVarQueryParameter['version'] = version;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listUsers: async (nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/chat/users`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n if (conversationId !== undefined) {\n localVarQueryParameter['conversationId'] = conversationId;\n }\n\n if (tags !== undefined) {\n localVarQueryParameter['tags'] = tags;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listWorkspaces: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/admin/workspaces`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n patchState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('patchState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('patchState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('patchState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(patchStateBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n setState: async (type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'type' is not null or undefined\n assertParamExists('setState', 'type', type)\n // verify required parameter 'id' is not null or undefined\n assertParamExists('setState', 'id', id)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('setState', 'name', name)\n const localVarPath = `/v1/chat/states/{type}/{id}/{name}`\n .replace(`{${\"type\"}}`, encodeURIComponent(String(type)))\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(setStateBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n transferBot: async (id: string, transferBotBody?: TransferBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('transferBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}/transfer`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(transferBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateBot: async (id: string, updateBotBody?: UpdateBotBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateBot', 'id', id)\n const localVarPath = `/v1/admin/bots/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateBotBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateConversation: async (id: string, updateConversationBody?: UpdateConversationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateConversation', 'id', id)\n const localVarPath = `/v1/chat/conversations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateConversationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateIntegration: async (id: string, updateIntegrationBody?: UpdateIntegrationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateIntegration', 'id', id)\n const localVarPath = `/v1/admin/integrations/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateMessage: async (id: string, updateMessageBody?: UpdateMessageBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateMessage', 'id', id)\n const localVarPath = `/v1/chat/messages/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateMessageBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateUser: async (id: string, updateUserBody?: UpdateUserBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'id' is not null or undefined\n assertParamExists('updateUser', 'id', id)\n const localVarPath = `/v1/chat/users/{id}`\n .replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(updateUserBody, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * DefaultApi - functional programming interface\n * @export\n */\nexport const DefaultApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)\n return {\n /**\n * Call an action\n * @param {CallActionBody} [callActionBody] Action payload\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async callAction(callActionBody?: CallActionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CallActionResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.callAction(callActionBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {ConfigureIntegrationBody} [configureIntegrationBody] Configuration of the integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async configureIntegration(configureIntegrationBody?: ConfigureIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.configureIntegration(configureIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create bot\n * @param {CreateBotBody} [createBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createBot(createBotBody?: CreateBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createBot(createBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {CreateConversationBody} [createConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createConversation(createConversationBody?: CreateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createConversation(createConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {CreateEventBody} [createEventBody] Event data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createEvent(createEventBody?: CreateEventBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createEvent(createEventBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create File\n * @param {CreateFileBody} [createFileBody] Create File\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createFile(createFileBody?: CreateFileBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFileResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createFile(createFileBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Create integration\n * @param {CreateIntegrationBody} [createIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createIntegration(createIntegrationBody?: CreateIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createIntegration(createIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {CreateMessageBody} [createMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createMessage(createMessageBody?: CreateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createMessage(createMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {CreateUserBody} [createUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createUser(createUserBody?: CreateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete bot\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteBot(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBot(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteConversation(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConversation(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Delete integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteIntegration(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteIntegration(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {string} id Message id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteMessage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMessage(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Download File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async downloadFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot details\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBot(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBot(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot analytics\n * @param {string} id Bot ID\n * @param {string} startDate Start date/time (inclusive)\n * @param {string} endDate End date/time (exclusive)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotAnalytics(id: string, startDate: string, endDate: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotAnalyticsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotAnalytics(id, startDate, endDate, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get bot logs\n * @param {string} id Bot ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotLogs(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotLogsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotLogs(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {string} id Bot ID\n * @param {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'} type type of script to get\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getBotWebchat(id: string, type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBotWebchatResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getBotWebchat(id, type, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {string} id Conversation id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getConversation(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getConversation(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {string} id Event id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getEvent(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEventResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getEvent(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get File\n * @param {string} id File ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFileResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get integration\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getIntegration(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegration(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get integration\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationByNameResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegrationByName(name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get integration logs\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getIntegrationLogs(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationLogsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getIntegrationLogs(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {string} id Id of the Message\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getMessage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getMessage(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {GetOrCreateConversationBody} [getOrCreateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateConversation(getOrCreateConversationBody?: GetOrCreateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateConversation(getOrCreateConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {GetOrCreateMessageBody} [getOrCreateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateMessage(getOrCreateMessageBody?: GetOrCreateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateMessage(getOrCreateMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {GetOrCreateUserBody} [getOrCreateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getOrCreateUser(getOrCreateUserBody?: GetOrCreateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrCreateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getOrCreateUser(getOrCreateUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get public integration by name and version\n * @param {string} name Integration Name\n * @param {string} version Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getPublicIntegration(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicIntegration(name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get public integration by Id\n * @param {string} id Integration Id\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getPublicIntegrationById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicIntegrationByIdResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicIntegrationById(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getState(type, id, name, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {string} id User ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Get workspace details\n * @param {string} id Workspace ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getWorkspace(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWorkspaceResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(id, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Introspect the API\n * @param {IntrospectBody} [introspectBody] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async introspect(introspectBody?: IntrospectBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntrospectResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.introspect(introspectBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List bots\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listBots(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBotsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listBots(nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {Array<string>} [participantIds] Filter by participant ids\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listConversations(nextToken?: string, tags?: { [key: string]: string; }, participantIds?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListConversationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listConversations(nextToken, tags, participantIds, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [type] Filter by event type\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listEvents(nextToken?: string, type?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEventsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listEvents(nextToken, type, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List Files\n * @param {string} botId Bot ID\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listFiles(botId: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFilesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(botId, nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List integrations\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListIntegrationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listIntegrations(nextToken, name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Conversation id\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listMessages(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListMessagesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listMessages(nextToken, conversationId, tags, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List public integration\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [name] Integration Name\n * @param {string} [version] Integration version. Either a semver version or tag \\"latest\\"\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listPublicIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPublicIntegrationsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listPublicIntegrations(nextToken, name, version, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {string} [conversationId] Filter by conversation id. This will return all users that have participated in the conversation.\n * @param {{ [key: string]: string; }} [tags] Filter by tags\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listUsers(nextToken?: string, conversationId?: string, tags?: { [key: string]: string; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, conversationId, tags, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * List workspaces the user has access to\n * @param {string} [nextToken] Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listWorkspaces(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(nextToken, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {PatchStateBody} [patchStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async patchState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, patchStateBody?: PatchStateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.patchState(type, id, name, patchStateBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {'conversation' | 'user' | 'bot' | 'integration'} type State type\n * @param {string} id State id\n * @param {string} name State name\n * @param {SetStateBody} [setStateBody] State content\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async setState(type: 'conversation' | 'user' | 'bot' | 'integration', id: string, name: string, setStateBody?: SetStateBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetStateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.setState(type, id, name, setStateBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {string} id Bot ID\n * @param {TransferBotBody} [transferBotBody] Bot transfer request\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async transferBot(id: string, transferBotBody?: TransferBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.transferBot(id, transferBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update bot\n * @param {string} id Bot ID\n * @param {UpdateBotBody} [updateBotBody] Bot metadata\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateBot(id: string, updateBotBody?: UpdateBotBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBotResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateBot(id, updateBotBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id Conversation id\n * @param {UpdateConversationBody} [updateConversationBody] Conversation data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateConversation(id: string, updateConversationBody?: UpdateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateConversationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateConversation(id, updateConversationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update integration\n * @param {string} id Integration Id\n * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateIntegration(id: string, updateIntegrationBody?: UpdateIntegrationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateIntegrationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateIntegration(id, updateIntegrationBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a message\n * @param {string} id Message id\n * @param {UpdateMessageBody} [updateMessageBody] Message data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateMessage(id: string, updateMessageBody?: UpdateMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateMessageResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateMessage(id, updateMessageBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {string} id User ID\n * @param {UpdateUserBody} [updateUserBody] User data\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async updateUser(id: string, updateUserBody?: UpdateUserBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateUserResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, updateUserBody, options);\n return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);\n },\n }\n};\n\n/**\n * DefaultApi - factory interface\n * @export\n */\nexport const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = DefaultApiFp(configuration)\n return {\n /**\n * Call an action\n * @param {DefaultApiCallActionRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n callAction(requestParameters: DefaultApiCallActionRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CallActionResponse> {\n return localVarFp.callAction(requestParameters.callActionBody, options).then((request) => request(axios, basePath));\n },\n /**\n * An integration can call this endpoint to configure itself\n * @param {DefaultApiConfigureIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n configureIntegration(requestParameters: DefaultApiConfigureIntegrationRequest = {}, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.configureIntegration(requestParameters.configureIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create bot\n * @param {DefaultApiCreateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createBot(requestParameters: DefaultApiCreateBotRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateBotResponse> {\n return localVarFp.createBot(requestParameters.createBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createConversation(requestParameters: DefaultApiCreateConversationRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateConversationResponse> {\n return localVarFp.createConversation(requestParameters.createConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createEvent(requestParameters: DefaultApiCreateEventRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateEventResponse> {\n return localVarFp.createEvent(requestParameters.createEventBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create File\n * @param {DefaultApiCreateFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createFile(requestParameters: DefaultApiCreateFileRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateFileResponse> {\n return localVarFp.createFile(requestParameters.createFileBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Create integration\n * @param {DefaultApiCreateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createIntegration(requestParameters: DefaultApiCreateIntegrationRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateIntegrationResponse> {\n return localVarFp.createIntegration(requestParameters.createIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createMessage(requestParameters: DefaultApiCreateMessageRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateMessageResponse> {\n return localVarFp.createMessage(requestParameters.createMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createUser(requestParameters: DefaultApiCreateUserRequest = {}, options?: AxiosRequestConfig): AxiosPromise<CreateUserResponse> {\n return localVarFp.createUser(requestParameters.createUserBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete bot\n * @param {DefaultApiDeleteBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteBot(requestParameters: DefaultApiDeleteBotRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteBot(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {DefaultApiDeleteConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteConversation(requestParameters: DefaultApiDeleteConversationRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteConversation(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete File\n * @param {DefaultApiDeleteFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteFile(requestParameters: DefaultApiDeleteFileRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteFile(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete integration\n * @param {DefaultApiDeleteIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteIntegration(requestParameters: DefaultApiDeleteIntegrationRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteIntegration(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {DefaultApiDeleteMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteMessage(requestParameters: DefaultApiDeleteMessageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteMessage(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {DefaultApiDeleteUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteUser(requestParameters: DefaultApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Download File\n * @param {DefaultApiDownloadFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n downloadFile(requestParameters: DefaultApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.downloadFile(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot details\n * @param {DefaultApiGetBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBot(requestParameters: DefaultApiGetBotRequest, options?: AxiosRequestConfig): AxiosPromise<GetBotResponse> {\n return localVarFp.getBot(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot analytics\n * @param {DefaultApiGetBotAnalyticsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotAnalytics(requestParameters: DefaultApiGetBotAnalyticsRequest, options?: AxiosRequestConfig): AxiosPromise<GetBotAnalyticsResponse> {\n return localVarFp.getBotAnalytics(requestParameters.id, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));\n },\n /**\n * Get bot logs\n * @param {DefaultApiGetBotLogsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotLogs(requestParameters: DefaultApiGetBotLogsRequest, options?: AxiosRequestConfig): AxiosPromise<GetBotLogsResponse> {\n return localVarFp.getBotLogs(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get the webchat code/URL for a bot\n * @param {DefaultApiGetBotWebchatRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getBotWebchat(requestParameters: DefaultApiGetBotWebchatRequest, options?: AxiosRequestConfig): AxiosPromise<GetBotWebchatResponse> {\n return localVarFp.getBotWebchat(requestParameters.id, requestParameters.type, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {DefaultApiGetConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getConversation(requestParameters: DefaultApiGetConversationRequest, options?: AxiosRequestConfig): AxiosPromise<GetConversationResponse> {\n return localVarFp.getConversation(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {DefaultApiGetEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getEvent(requestParameters: DefaultApiGetEventRequest, options?: AxiosRequestConfig): AxiosPromise<GetEventResponse> {\n return localVarFp.getEvent(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get File\n * @param {DefaultApiGetFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getFile(requestParameters: DefaultApiGetFileRequest, options?: AxiosRequestConfig): AxiosPromise<GetFileResponse> {\n return localVarFp.getFile(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegration(requestParameters: DefaultApiGetIntegrationRequest, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationResponse> {\n return localVarFp.getIntegration(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationByNameRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationByName(requestParameters: DefaultApiGetIntegrationByNameRequest, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationByNameResponse> {\n return localVarFp.getIntegrationByName(requestParameters.name, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Get integration logs\n * @param {DefaultApiGetIntegrationLogsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getIntegrationLogs(requestParameters: DefaultApiGetIntegrationLogsRequest, options?: AxiosRequestConfig): AxiosPromise<GetIntegrationLogsResponse> {\n return localVarFp.getIntegrationLogs(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {DefaultApiGetMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMessage(requestParameters: DefaultApiGetMessageRequest, options?: AxiosRequestConfig): AxiosPromise<GetMessageResponse> {\n return localVarFp.getMessage(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {DefaultApiGetOrCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateConversation(requestParameters: DefaultApiGetOrCreateConversationRequest = {}, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateConversationResponse> {\n return localVarFp.getOrCreateConversation(requestParameters.getOrCreateConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {DefaultApiGetOrCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateMessage(requestParameters: DefaultApiGetOrCreateMessageRequest = {}, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateMessageResponse> {\n return localVarFp.getOrCreateMessage(requestParameters.getOrCreateMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {DefaultApiGetOrCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getOrCreateUser(requestParameters: DefaultApiGetOrCreateUserRequest = {}, options?: AxiosRequestConfig): AxiosPromise<GetOrCreateUserResponse> {\n return localVarFp.getOrCreateUser(requestParameters.getOrCreateUserBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Get public integration by name and version\n * @param {DefaultApiGetPublicIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegration(requestParameters: DefaultApiGetPublicIntegrationRequest, options?: AxiosRequestConfig): AxiosPromise<GetPublicIntegrationResponse> {\n return localVarFp.getPublicIntegration(requestParameters.name, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Get public integration by Id\n * @param {DefaultApiGetPublicIntegrationByIdRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPublicIntegrationById(requestParameters: DefaultApiGetPublicIntegrationByIdRequest, options?: AxiosRequestConfig): AxiosPromise<GetPublicIntegrationByIdResponse> {\n return localVarFp.getPublicIntegrationById(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {DefaultApiGetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getState(requestParameters: DefaultApiGetStateRequest, options?: AxiosRequestConfig): AxiosPromise<GetStateResponse> {\n return localVarFp.getState(requestParameters.type, requestParameters.id, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {DefaultApiGetUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getUser(requestParameters: DefaultApiGetUserRequest, options?: AxiosRequestConfig): AxiosPromise<GetUserResponse> {\n return localVarFp.getUser(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Get workspace details\n * @param {DefaultApiGetWorkspaceRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getWorkspace(requestParameters: DefaultApiGetWorkspaceRequest, options?: AxiosRequestConfig): AxiosPromise<GetWorkspaceResponse> {\n return localVarFp.getWorkspace(requestParameters.id, options).then((request) => request(axios, basePath));\n },\n /**\n * Introspect the API\n * @param {DefaultApiIntrospectRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n introspect(requestParameters: DefaultApiIntrospectRequest = {}, options?: AxiosRequestConfig): AxiosPromise<IntrospectResponse> {\n return localVarFp.introspect(requestParameters.introspectBody, options).then((request) => request(axios, basePath));\n },\n /**\n * List bots\n * @param {DefaultApiListBotsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listBots(requestParameters: DefaultApiListBotsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListBotsResponse> {\n return localVarFp.listBots(requestParameters.nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListConversationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listConversations(requestParameters: DefaultApiListConversationsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListConversationsResponse> {\n return localVarFp.listConversations(requestParameters.nextToken, requestParameters.tags, requestParameters.participantIds, options).then((request) => request(axios, basePath));\n },\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {DefaultApiListEventsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listEvents(requestParameters: DefaultApiListEventsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListEventsResponse> {\n return localVarFp.listEvents(requestParameters.nextToken, requestParameters.type, options).then((request) => request(axios, basePath));\n },\n /**\n * List Files\n * @param {DefaultApiListFilesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listFiles(requestParameters: DefaultApiListFilesRequest, options?: AxiosRequestConfig): AxiosPromise<ListFilesResponse> {\n return localVarFp.listFiles(requestParameters.botId, requestParameters.nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * List integrations\n * @param {DefaultApiListIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listIntegrations(requestParameters: DefaultApiListIntegrationsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListIntegrationsResponse> {\n return localVarFp.listIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListMessagesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listMessages(requestParameters: DefaultApiListMessagesRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListMessagesResponse> {\n return localVarFp.listMessages(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(axios, basePath));\n },\n /**\n * List public integration\n * @param {DefaultApiListPublicIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listPublicIntegrations(requestParameters: DefaultApiListPublicIntegrationsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListPublicIntegrationsResponse> {\n return localVarFp.listPublicIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListUsersRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listUsers(requestParameters: DefaultApiListUsersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListUsersResponse> {\n return localVarFp.listUsers(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(axios, basePath));\n },\n /**\n * List workspaces the user has access to\n * @param {DefaultApiListWorkspacesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listWorkspaces(requestParameters: DefaultApiListWorkspacesRequest = {}, options?: AxiosRequestConfig): AxiosPromise<ListWorkspacesResponse> {\n return localVarFp.listWorkspaces(requestParameters.nextToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiPatchStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n patchState(requestParameters: DefaultApiPatchStateRequest, options?: AxiosRequestConfig): AxiosPromise<PatchStateResponse> {\n return localVarFp.patchState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.patchStateBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiSetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n setState(requestParameters: DefaultApiSetStateRequest, options?: AxiosRequestConfig): AxiosPromise<SetStateResponse> {\n return localVarFp.setState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.setStateBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {DefaultApiTransferBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n transferBot(requestParameters: DefaultApiTransferBotRequest, options?: AxiosRequestConfig): AxiosPromise<object> {\n return localVarFp.transferBot(requestParameters.id, requestParameters.transferBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update bot\n * @param {DefaultApiUpdateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateBot(requestParameters: DefaultApiUpdateBotRequest, options?: AxiosRequestConfig): AxiosPromise<UpdateBotResponse> {\n return localVarFp.updateBot(requestParameters.id, requestParameters.updateBotBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateConversation(requestParameters: DefaultApiUpdateConversationRequest, options?: AxiosRequestConfig): AxiosPromise<UpdateConversationResponse> {\n return localVarFp.updateConversation(requestParameters.id, requestParameters.updateConversationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update integration\n * @param {DefaultApiUpdateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateIntegration(requestParameters: DefaultApiUpdateIntegrationRequest, options?: AxiosRequestConfig): AxiosPromise<UpdateIntegrationResponse> {\n return localVarFp.updateIntegration(requestParameters.id, requestParameters.updateIntegrationBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a message\n * @param {DefaultApiUpdateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateMessage(requestParameters: DefaultApiUpdateMessageRequest, options?: AxiosRequestConfig): AxiosPromise<UpdateMessageResponse> {\n return localVarFp.updateMessage(requestParameters.id, requestParameters.updateMessageBody, options).then((request) => request(axios, basePath));\n },\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n updateUser(requestParameters: DefaultApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UpdateUserResponse> {\n return localVarFp.updateUser(requestParameters.id, requestParameters.updateUserBody, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for callAction operation in DefaultApi.\n * @export\n * @interface DefaultApiCallActionRequest\n */\nexport interface DefaultApiCallActionRequest {\n /**\n * Action payload\n * @type {CallActionBody}\n * @memberof DefaultApiCallAction\n */\n readonly callActionBody?: CallActionBody\n}\n\n/**\n * Request parameters for configureIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiConfigureIntegrationRequest\n */\nexport interface DefaultApiConfigureIntegrationRequest {\n /**\n * Configuration of the integration\n * @type {ConfigureIntegrationBody}\n * @memberof DefaultApiConfigureIntegration\n */\n readonly configureIntegrationBody?: ConfigureIntegrationBody\n}\n\n/**\n * Request parameters for createBot operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateBotRequest\n */\nexport interface DefaultApiCreateBotRequest {\n /**\n * Bot metadata\n * @type {CreateBotBody}\n * @memberof DefaultApiCreateBot\n */\n readonly createBotBody?: CreateBotBody\n}\n\n/**\n * Request parameters for createConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateConversationRequest\n */\nexport interface DefaultApiCreateConversationRequest {\n /**\n * Conversation data\n * @type {CreateConversationBody}\n * @memberof DefaultApiCreateConversation\n */\n readonly createConversationBody?: CreateConversationBody\n}\n\n/**\n * Request parameters for createEvent operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateEventRequest\n */\nexport interface DefaultApiCreateEventRequest {\n /**\n * Event data\n * @type {CreateEventBody}\n * @memberof DefaultApiCreateEvent\n */\n readonly createEventBody?: CreateEventBody\n}\n\n/**\n * Request parameters for createFile operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateFileRequest\n */\nexport interface DefaultApiCreateFileRequest {\n /**\n * Create File\n * @type {CreateFileBody}\n * @memberof DefaultApiCreateFile\n */\n readonly createFileBody?: CreateFileBody\n}\n\n/**\n * Request parameters for createIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateIntegrationRequest\n */\nexport interface DefaultApiCreateIntegrationRequest {\n /**\n * Integration\n * @type {CreateIntegrationBody}\n * @memberof DefaultApiCreateIntegration\n */\n readonly createIntegrationBody?: CreateIntegrationBody\n}\n\n/**\n * Request parameters for createMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateMessageRequest\n */\nexport interface DefaultApiCreateMessageRequest {\n /**\n * Message data\n * @type {CreateMessageBody}\n * @memberof DefaultApiCreateMessage\n */\n readonly createMessageBody?: CreateMessageBody\n}\n\n/**\n * Request parameters for createUser operation in DefaultApi.\n * @export\n * @interface DefaultApiCreateUserRequest\n */\nexport interface DefaultApiCreateUserRequest {\n /**\n * User data\n * @type {CreateUserBody}\n * @memberof DefaultApiCreateUser\n */\n readonly createUserBody?: CreateUserBody\n}\n\n/**\n * Request parameters for deleteBot operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteBotRequest\n */\nexport interface DefaultApiDeleteBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiDeleteBot\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteConversationRequest\n */\nexport interface DefaultApiDeleteConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiDeleteConversation\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteFile operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteFileRequest\n */\nexport interface DefaultApiDeleteFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiDeleteFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteIntegrationRequest\n */\nexport interface DefaultApiDeleteIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiDeleteIntegration\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteMessageRequest\n */\nexport interface DefaultApiDeleteMessageRequest {\n /**\n * Message id\n * @type {string}\n * @memberof DefaultApiDeleteMessage\n */\n readonly id: string\n}\n\n/**\n * Request parameters for deleteUser operation in DefaultApi.\n * @export\n * @interface DefaultApiDeleteUserRequest\n */\nexport interface DefaultApiDeleteUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiDeleteUser\n */\n readonly id: string\n}\n\n/**\n * Request parameters for downloadFile operation in DefaultApi.\n * @export\n * @interface DefaultApiDownloadFileRequest\n */\nexport interface DefaultApiDownloadFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiDownloadFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBot operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotRequest\n */\nexport interface DefaultApiGetBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBot\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBotAnalytics operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotAnalyticsRequest\n */\nexport interface DefaultApiGetBotAnalyticsRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly id: string\n\n /**\n * Start date/time (inclusive)\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly startDate: string\n\n /**\n * End date/time (exclusive)\n * @type {string}\n * @memberof DefaultApiGetBotAnalytics\n */\n readonly endDate: string\n}\n\n/**\n * Request parameters for getBotLogs operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotLogsRequest\n */\nexport interface DefaultApiGetBotLogsRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotLogs\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getBotWebchat operation in DefaultApi.\n * @export\n * @interface DefaultApiGetBotWebchatRequest\n */\nexport interface DefaultApiGetBotWebchatRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiGetBotWebchat\n */\n readonly id: string\n\n /**\n * type of script to get\n * @type {'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'}\n * @memberof DefaultApiGetBotWebchat\n */\n readonly type: 'preconfigured' | 'configurable' | 'fullscreen' | 'sharableUrl'\n}\n\n/**\n * Request parameters for getConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiGetConversationRequest\n */\nexport interface DefaultApiGetConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiGetConversation\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getEvent operation in DefaultApi.\n * @export\n * @interface DefaultApiGetEventRequest\n */\nexport interface DefaultApiGetEventRequest {\n /**\n * Event id\n * @type {string}\n * @memberof DefaultApiGetEvent\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getFile operation in DefaultApi.\n * @export\n * @interface DefaultApiGetFileRequest\n */\nexport interface DefaultApiGetFileRequest {\n /**\n * File ID\n * @type {string}\n * @memberof DefaultApiGetFile\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiGetIntegrationRequest\n */\nexport interface DefaultApiGetIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiGetIntegration\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getIntegrationByName operation in DefaultApi.\n * @export\n * @interface DefaultApiGetIntegrationByNameRequest\n */\nexport interface DefaultApiGetIntegrationByNameRequest {\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiGetIntegrationByName\n */\n readonly name: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiGetIntegrationByName\n */\n readonly version: string\n}\n\n/**\n * Request parameters for getIntegrationLogs operation in DefaultApi.\n * @export\n * @interface DefaultApiGetIntegrationLogsRequest\n */\nexport interface DefaultApiGetIntegrationLogsRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiGetIntegrationLogs\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiGetMessageRequest\n */\nexport interface DefaultApiGetMessageRequest {\n /**\n * Id of the Message\n * @type {string}\n * @memberof DefaultApiGetMessage\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getOrCreateConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateConversationRequest\n */\nexport interface DefaultApiGetOrCreateConversationRequest {\n /**\n * Conversation data\n * @type {GetOrCreateConversationBody}\n * @memberof DefaultApiGetOrCreateConversation\n */\n readonly getOrCreateConversationBody?: GetOrCreateConversationBody\n}\n\n/**\n * Request parameters for getOrCreateMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateMessageRequest\n */\nexport interface DefaultApiGetOrCreateMessageRequest {\n /**\n * Message data\n * @type {GetOrCreateMessageBody}\n * @memberof DefaultApiGetOrCreateMessage\n */\n readonly getOrCreateMessageBody?: GetOrCreateMessageBody\n}\n\n/**\n * Request parameters for getOrCreateUser operation in DefaultApi.\n * @export\n * @interface DefaultApiGetOrCreateUserRequest\n */\nexport interface DefaultApiGetOrCreateUserRequest {\n /**\n * User data\n * @type {GetOrCreateUserBody}\n * @memberof DefaultApiGetOrCreateUser\n */\n readonly getOrCreateUserBody?: GetOrCreateUserBody\n}\n\n/**\n * Request parameters for getPublicIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiGetPublicIntegrationRequest\n */\nexport interface DefaultApiGetPublicIntegrationRequest {\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiGetPublicIntegration\n */\n readonly name: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiGetPublicIntegration\n */\n readonly version: string\n}\n\n/**\n * Request parameters for getPublicIntegrationById operation in DefaultApi.\n * @export\n * @interface DefaultApiGetPublicIntegrationByIdRequest\n */\nexport interface DefaultApiGetPublicIntegrationByIdRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiGetPublicIntegrationById\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getState operation in DefaultApi.\n * @export\n * @interface DefaultApiGetStateRequest\n */\nexport interface DefaultApiGetStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiGetState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiGetState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiGetState\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getUser operation in DefaultApi.\n * @export\n * @interface DefaultApiGetUserRequest\n */\nexport interface DefaultApiGetUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiGetUser\n */\n readonly id: string\n}\n\n/**\n * Request parameters for getWorkspace operation in DefaultApi.\n * @export\n * @interface DefaultApiGetWorkspaceRequest\n */\nexport interface DefaultApiGetWorkspaceRequest {\n /**\n * Workspace ID\n * @type {string}\n * @memberof DefaultApiGetWorkspace\n */\n readonly id: string\n}\n\n/**\n * Request parameters for introspect operation in DefaultApi.\n * @export\n * @interface DefaultApiIntrospectRequest\n */\nexport interface DefaultApiIntrospectRequest {\n /**\n * \n * @type {IntrospectBody}\n * @memberof DefaultApiIntrospect\n */\n readonly introspectBody?: IntrospectBody\n}\n\n/**\n * Request parameters for listBots operation in DefaultApi.\n * @export\n * @interface DefaultApiListBotsRequest\n */\nexport interface DefaultApiListBotsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListBots\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for listConversations operation in DefaultApi.\n * @export\n * @interface DefaultApiListConversationsRequest\n */\nexport interface DefaultApiListConversationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListConversations\n */\n readonly nextToken?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListConversations\n */\n readonly tags?: { [key: string]: string; }\n\n /**\n * Filter by participant ids\n * @type {Array<string>}\n * @memberof DefaultApiListConversations\n */\n readonly participantIds?: Array<string>\n}\n\n/**\n * Request parameters for listEvents operation in DefaultApi.\n * @export\n * @interface DefaultApiListEventsRequest\n */\nexport interface DefaultApiListEventsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListEvents\n */\n readonly nextToken?: string\n\n /**\n * Filter by event type\n * @type {string}\n * @memberof DefaultApiListEvents\n */\n readonly type?: string\n}\n\n/**\n * Request parameters for listFiles operation in DefaultApi.\n * @export\n * @interface DefaultApiListFilesRequest\n */\nexport interface DefaultApiListFilesRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiListFiles\n */\n readonly botId: string\n\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListFiles\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for listIntegrations operation in DefaultApi.\n * @export\n * @interface DefaultApiListIntegrationsRequest\n */\nexport interface DefaultApiListIntegrationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly nextToken?: string\n\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly name?: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiListIntegrations\n */\n readonly version?: string\n}\n\n/**\n * Request parameters for listMessages operation in DefaultApi.\n * @export\n * @interface DefaultApiListMessagesRequest\n */\nexport interface DefaultApiListMessagesRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListMessages\n */\n readonly nextToken?: string\n\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiListMessages\n */\n readonly conversationId?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListMessages\n */\n readonly tags?: { [key: string]: string; }\n}\n\n/**\n * Request parameters for listPublicIntegrations operation in DefaultApi.\n * @export\n * @interface DefaultApiListPublicIntegrationsRequest\n */\nexport interface DefaultApiListPublicIntegrationsRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly nextToken?: string\n\n /**\n * Integration Name\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly name?: string\n\n /**\n * Integration version. Either a semver version or tag \\"latest\\"\n * @type {string}\n * @memberof DefaultApiListPublicIntegrations\n */\n readonly version?: string\n}\n\n/**\n * Request parameters for listUsers operation in DefaultApi.\n * @export\n * @interface DefaultApiListUsersRequest\n */\nexport interface DefaultApiListUsersRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListUsers\n */\n readonly nextToken?: string\n\n /**\n * Filter by conversation id. This will return all users that have participated in the conversation.\n * @type {string}\n * @memberof DefaultApiListUsers\n */\n readonly conversationId?: string\n\n /**\n * Filter by tags\n * @type {{ [key: string]: string; }}\n * @memberof DefaultApiListUsers\n */\n readonly tags?: { [key: string]: string; }\n}\n\n/**\n * Request parameters for listWorkspaces operation in DefaultApi.\n * @export\n * @interface DefaultApiListWorkspacesRequest\n */\nexport interface DefaultApiListWorkspacesRequest {\n /**\n * Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results\n * @type {string}\n * @memberof DefaultApiListWorkspaces\n */\n readonly nextToken?: string\n}\n\n/**\n * Request parameters for patchState operation in DefaultApi.\n * @export\n * @interface DefaultApiPatchStateRequest\n */\nexport interface DefaultApiPatchStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiPatchState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiPatchState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiPatchState\n */\n readonly name: string\n\n /**\n * State content\n * @type {PatchStateBody}\n * @memberof DefaultApiPatchState\n */\n readonly patchStateBody?: PatchStateBody\n}\n\n/**\n * Request parameters for setState operation in DefaultApi.\n * @export\n * @interface DefaultApiSetStateRequest\n */\nexport interface DefaultApiSetStateRequest {\n /**\n * State type\n * @type {'conversation' | 'user' | 'bot' | 'integration'}\n * @memberof DefaultApiSetState\n */\n readonly type: 'conversation' | 'user' | 'bot' | 'integration'\n\n /**\n * State id\n * @type {string}\n * @memberof DefaultApiSetState\n */\n readonly id: string\n\n /**\n * State name\n * @type {string}\n * @memberof DefaultApiSetState\n */\n readonly name: string\n\n /**\n * State content\n * @type {SetStateBody}\n * @memberof DefaultApiSetState\n */\n readonly setStateBody?: SetStateBody\n}\n\n/**\n * Request parameters for transferBot operation in DefaultApi.\n * @export\n * @interface DefaultApiTransferBotRequest\n */\nexport interface DefaultApiTransferBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiTransferBot\n */\n readonly id: string\n\n /**\n * Bot transfer request\n * @type {TransferBotBody}\n * @memberof DefaultApiTransferBot\n */\n readonly transferBotBody?: TransferBotBody\n}\n\n/**\n * Request parameters for updateBot operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateBotRequest\n */\nexport interface DefaultApiUpdateBotRequest {\n /**\n * Bot ID\n * @type {string}\n * @memberof DefaultApiUpdateBot\n */\n readonly id: string\n\n /**\n * Bot metadata\n * @type {UpdateBotBody}\n * @memberof DefaultApiUpdateBot\n */\n readonly updateBotBody?: UpdateBotBody\n}\n\n/**\n * Request parameters for updateConversation operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateConversationRequest\n */\nexport interface DefaultApiUpdateConversationRequest {\n /**\n * Conversation id\n * @type {string}\n * @memberof DefaultApiUpdateConversation\n */\n readonly id: string\n\n /**\n * Conversation data\n * @type {UpdateConversationBody}\n * @memberof DefaultApiUpdateConversation\n */\n readonly updateConversationBody?: UpdateConversationBody\n}\n\n/**\n * Request parameters for updateIntegration operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateIntegrationRequest\n */\nexport interface DefaultApiUpdateIntegrationRequest {\n /**\n * Integration Id\n * @type {string}\n * @memberof DefaultApiUpdateIntegration\n */\n readonly id: string\n\n /**\n * Integration\n * @type {UpdateIntegrationBody}\n * @memberof DefaultApiUpdateIntegration\n */\n readonly updateIntegrationBody?: UpdateIntegrationBody\n}\n\n/**\n * Request parameters for updateMessage operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateMessageRequest\n */\nexport interface DefaultApiUpdateMessageRequest {\n /**\n * Message id\n * @type {string}\n * @memberof DefaultApiUpdateMessage\n */\n readonly id: string\n\n /**\n * Message data\n * @type {UpdateMessageBody}\n * @memberof DefaultApiUpdateMessage\n */\n readonly updateMessageBody?: UpdateMessageBody\n}\n\n/**\n * Request parameters for updateUser operation in DefaultApi.\n * @export\n * @interface DefaultApiUpdateUserRequest\n */\nexport interface DefaultApiUpdateUserRequest {\n /**\n * User ID\n * @type {string}\n * @memberof DefaultApiUpdateUser\n */\n readonly id: string\n\n /**\n * User data\n * @type {UpdateUserBody}\n * @memberof DefaultApiUpdateUser\n */\n readonly updateUserBody?: UpdateUserBody\n}\n\n/**\n * DefaultApi - object-oriented interface\n * @export\n * @class DefaultApi\n * @extends {BaseAPI}\n */\nexport class DefaultApi extends BaseAPI {\n /**\n * Call an action\n * @param {DefaultApiCallActionRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public callAction(requestParameters: DefaultApiCallActionRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).callAction(requestParameters.callActionBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * An integration can call this endpoint to configure itself\n * @param {DefaultApiConfigureIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public configureIntegration(requestParameters: DefaultApiConfigureIntegrationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).configureIntegration(requestParameters.configureIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create bot\n * @param {DefaultApiCreateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createBot(requestParameters: DefaultApiCreateBotRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createBot(requestParameters.createBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Conversation](#schema_conversation). When creating a new [Conversation](#schema_conversation), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createConversation(requestParameters: DefaultApiCreateConversationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createConversation(requestParameters.createConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Event](#schema_event). When creating a new [Event](#schema_event), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createEvent(requestParameters: DefaultApiCreateEventRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createEvent(requestParameters.createEventBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create File\n * @param {DefaultApiCreateFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createFile(requestParameters: DefaultApiCreateFileRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createFile(requestParameters.createFileBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create integration\n * @param {DefaultApiCreateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createIntegration(requestParameters: DefaultApiCreateIntegrationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createIntegration(requestParameters.createIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createMessage(requestParameters: DefaultApiCreateMessageRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createMessage(requestParameters.createMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Creates a new [User](#schema_user). When creating a new [User](#schema_user), the required tags must be provided. See the specific integration for more details.\n * @param {DefaultApiCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public createUser(requestParameters: DefaultApiCreateUserRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).createUser(requestParameters.createUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete bot\n * @param {DefaultApiDeleteBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteBot(requestParameters: DefaultApiDeleteBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).\n * @param {DefaultApiDeleteConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteConversation(requestParameters: DefaultApiDeleteConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteConversation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete File\n * @param {DefaultApiDeleteFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteFile(requestParameters: DefaultApiDeleteFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete integration\n * @param {DefaultApiDeleteIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteIntegration(requestParameters: DefaultApiDeleteIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteIntegration(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [Message](#schema_message). It cannot be undone.\n * @param {DefaultApiDeleteMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteMessage(requestParameters: DefaultApiDeleteMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteMessage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Permanently deletes a [User](#schema_user). It cannot be undone.\n * @param {DefaultApiDeleteUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public deleteUser(requestParameters: DefaultApiDeleteUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Download File\n * @param {DefaultApiDownloadFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public downloadFile(requestParameters: DefaultApiDownloadFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).downloadFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot details\n * @param {DefaultApiGetBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBot(requestParameters: DefaultApiGetBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot analytics\n * @param {DefaultApiGetBotAnalyticsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotAnalytics(requestParameters: DefaultApiGetBotAnalyticsRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotAnalytics(requestParameters.id, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get bot logs\n * @param {DefaultApiGetBotLogsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotLogs(requestParameters: DefaultApiGetBotLogsRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotLogs(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get the webchat code/URL for a bot\n * @param {DefaultApiGetBotWebchatRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getBotWebchat(requestParameters: DefaultApiGetBotWebchatRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getBotWebchat(requestParameters.id, requestParameters.type, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier.\n * @param {DefaultApiGetConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getConversation(requestParameters: DefaultApiGetConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getConversation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Event](#schema_event) object for a valid identifiers.\n * @param {DefaultApiGetEventRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getEvent(requestParameters: DefaultApiGetEventRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getEvent(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get File\n * @param {DefaultApiGetFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getFile(requestParameters: DefaultApiGetFileRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getFile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getIntegration(requestParameters: DefaultApiGetIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getIntegration(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get integration\n * @param {DefaultApiGetIntegrationByNameRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getIntegrationByName(requestParameters: DefaultApiGetIntegrationByNameRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getIntegrationByName(requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get integration logs\n * @param {DefaultApiGetIntegrationLogsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getIntegrationLogs(requestParameters: DefaultApiGetIntegrationLogsRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getIntegrationLogs(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier.\n * @param {DefaultApiGetMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getMessage(requestParameters: DefaultApiGetMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getMessage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Conversation](#schema_conversation) object for a valid identifier. If the conversation does not exist, it will be created.\n * @param {DefaultApiGetOrCreateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateConversation(requestParameters: DefaultApiGetOrCreateConversationRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateConversation(requestParameters.getOrCreateConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [Message](#schema_message) object for a valid identifier. If the message does not exist, it will be created.\n * @param {DefaultApiGetOrCreateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateMessage(requestParameters: DefaultApiGetOrCreateMessageRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateMessage(requestParameters.getOrCreateMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.\n * @param {DefaultApiGetOrCreateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getOrCreateUser(requestParameters: DefaultApiGetOrCreateUserRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getOrCreateUser(requestParameters.getOrCreateUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get public integration by name and version\n * @param {DefaultApiGetPublicIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getPublicIntegration(requestParameters: DefaultApiGetPublicIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getPublicIntegration(requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get public integration by Id\n * @param {DefaultApiGetPublicIntegrationByIdRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getPublicIntegrationById(requestParameters: DefaultApiGetPublicIntegrationByIdRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getPublicIntegrationById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [State](#schema_state) object for a valid identifiers.\n * @param {DefaultApiGetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getState(requestParameters: DefaultApiGetStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getState(requestParameters.type, requestParameters.id, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves the [User](#schema_user) object for a valid identifier.\n * @param {DefaultApiGetUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getUser(requestParameters: DefaultApiGetUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get workspace details\n * @param {DefaultApiGetWorkspaceRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public getWorkspace(requestParameters: DefaultApiGetWorkspaceRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).getWorkspace(requestParameters.id, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Introspect the API\n * @param {DefaultApiIntrospectRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public introspect(requestParameters: DefaultApiIntrospectRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).introspect(requestParameters.introspectBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List bots\n * @param {DefaultApiListBotsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listBots(requestParameters: DefaultApiListBotsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listBots(requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [Conversation](#schema_conversation) you\u2019ve previously created. The conversations are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListConversationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listConversations(requestParameters: DefaultApiListConversationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listConversations(requestParameters.nextToken, requestParameters.tags, requestParameters.participantIds, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retreives a list of [Event](#schema_event) you\u2019ve previously created. The events are returned in sorted order, with the most recent appearing first.\n * @param {DefaultApiListEventsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listEvents(requestParameters: DefaultApiListEventsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listEvents(requestParameters.nextToken, requestParameters.type, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List Files\n * @param {DefaultApiListFilesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listFiles(requestParameters: DefaultApiListFilesRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listFiles(requestParameters.botId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List integrations\n * @param {DefaultApiListIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listIntegrations(requestParameters: DefaultApiListIntegrationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListMessagesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listMessages(requestParameters: DefaultApiListMessagesRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listMessages(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List public integration\n * @param {DefaultApiListPublicIntegrationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listPublicIntegrations(requestParameters: DefaultApiListPublicIntegrationsRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listPublicIntegrations(requestParameters.nextToken, requestParameters.name, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).\n * @param {DefaultApiListUsersRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listUsers(requestParameters: DefaultApiListUsersRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listUsers(requestParameters.nextToken, requestParameters.conversationId, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List workspaces the user has access to\n * @param {DefaultApiListWorkspacesRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public listWorkspaces(requestParameters: DefaultApiListWorkspacesRequest = {}, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).listWorkspaces(requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Updates the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiPatchStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public patchState(requestParameters: DefaultApiPatchStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).patchState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.patchStateBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Overrides the [State](#schema_state) object by setting the values of the parameters passed.\n * @param {DefaultApiSetStateRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public setState(requestParameters: DefaultApiSetStateRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).setState(requestParameters.type, requestParameters.id, requestParameters.name, requestParameters.setStateBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Transfer bot to another workspace. You need to be a Manager member of the workspace the bot currently belongs to and have permission to create bots in the target workspace.\n * @param {DefaultApiTransferBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public transferBot(requestParameters: DefaultApiTransferBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).transferBot(requestParameters.id, requestParameters.transferBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update bot\n * @param {DefaultApiUpdateBotRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateBot(requestParameters: DefaultApiUpdateBotRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBotBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a [Conversation](#schema_conversation) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateConversationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateConversation(requestParameters: DefaultApiUpdateConversationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateConversation(requestParameters.id, requestParameters.updateConversationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update integration\n * @param {DefaultApiUpdateIntegrationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateIntegration(requestParameters: DefaultApiUpdateIntegrationRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateIntegration(requestParameters.id, requestParameters.updateIntegrationBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a message\n * @param {DefaultApiUpdateMessageRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateMessage(requestParameters: DefaultApiUpdateMessageRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateMessage(requestParameters.id, requestParameters.updateMessageBody, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update a [User](#schema_user) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.\n * @param {DefaultApiUpdateUserRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof DefaultApi\n */\n public updateUser(requestParameters: DefaultApiUpdateUserRequest, options?: AxiosRequestConfig) {\n return DefaultApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUserBody, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n", "// This file was generated by the Opapi Generator\n/* eslint-disable */\n\n\nimport axios, { AxiosInstance } from 'axios'\nimport type { Merge, Except } from 'type-fest'\nimport {\n DefaultApi,\n Configuration,\n\tDefaultApiCreateConversationRequest,\n\tDefaultApiGetConversationRequest,\n\tDefaultApiListConversationsRequest,\n\tDefaultApiGetOrCreateConversationRequest,\n\tDefaultApiUpdateConversationRequest,\n\tDefaultApiDeleteConversationRequest,\n\tDefaultApiCreateEventRequest,\n\tDefaultApiGetEventRequest,\n\tDefaultApiListEventsRequest,\n\tDefaultApiCreateMessageRequest,\n\tDefaultApiGetOrCreateMessageRequest,\n\tDefaultApiGetMessageRequest,\n\tDefaultApiUpdateMessageRequest,\n\tDefaultApiListMessagesRequest,\n\tDefaultApiDeleteMessageRequest,\n\tDefaultApiCreateUserRequest,\n\tDefaultApiGetUserRequest,\n\tDefaultApiListUsersRequest,\n\tDefaultApiGetOrCreateUserRequest,\n\tDefaultApiUpdateUserRequest,\n\tDefaultApiDeleteUserRequest,\n\tDefaultApiGetStateRequest,\n\tDefaultApiSetStateRequest,\n\tDefaultApiPatchStateRequest,\n\tDefaultApiCallActionRequest,\n\tDefaultApiConfigureIntegrationRequest,\n\tDefaultApiListPublicIntegrationsRequest,\n\tDefaultApiGetPublicIntegrationByIdRequest,\n\tDefaultApiGetPublicIntegrationRequest,\n\tDefaultApiCreateBotRequest,\n\tDefaultApiUpdateBotRequest,\n\tDefaultApiTransferBotRequest,\n\tDefaultApiListBotsRequest,\n\tDefaultApiGetBotRequest,\n\tDefaultApiDeleteBotRequest,\n\tDefaultApiGetBotLogsRequest,\n\tDefaultApiGetBotWebchatRequest,\n\tDefaultApiGetBotAnalyticsRequest,\n\tDefaultApiGetWorkspaceRequest,\n\tDefaultApiListWorkspacesRequest,\n\tDefaultApiCreateIntegrationRequest,\n\tDefaultApiUpdateIntegrationRequest,\n\tDefaultApiListIntegrationsRequest,\n\tDefaultApiGetIntegrationRequest,\n\tDefaultApiGetIntegrationLogsRequest,\n\tDefaultApiGetIntegrationByNameRequest,\n\tDefaultApiDeleteIntegrationRequest,\n\tDefaultApiIntrospectRequest,\n\tDefaultApiCreateFileRequest,\n\tDefaultApiGetFileRequest,\n\tDefaultApiDownloadFileRequest,\n\tDefaultApiDeleteFileRequest,\n\tDefaultApiListFilesRequest,\n} from '.'\nimport { errorFrom } from './errors'\n\nexport class ApiClient {\n private _innerClient: DefaultApi\n public constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance) {\n this._innerClient = new DefaultApi(configuration, basePath, axiosInstance)\n }\n\tpublic createConversation = (createConversationBody: CreateConversationProps) => this._innerClient.createConversation({ createConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getConversation = (props: GetConversationProps) => this._innerClient.getConversation(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listConversations = (props: ListConversationsProps) => this._innerClient.listConversations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateConversation = (getOrCreateConversationBody: GetOrCreateConversationProps) => this._innerClient.getOrCreateConversation({ getOrCreateConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateConversation = ({ id, ...updateConversationBody }: UpdateConversationProps) => this._innerClient.updateConversation({ id, updateConversationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteConversation = (props: DeleteConversationProps) => this._innerClient.deleteConversation(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createEvent = (createEventBody: CreateEventProps) => this._innerClient.createEvent({ createEventBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getEvent = (props: GetEventProps) => this._innerClient.getEvent(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listEvents = (props: ListEventsProps) => this._innerClient.listEvents(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createMessage = (createMessageBody: CreateMessageProps) => this._innerClient.createMessage({ createMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateMessage = (getOrCreateMessageBody: GetOrCreateMessageProps) => this._innerClient.getOrCreateMessage({ getOrCreateMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getMessage = (props: GetMessageProps) => this._innerClient.getMessage(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateMessage = ({ id, ...updateMessageBody }: UpdateMessageProps) => this._innerClient.updateMessage({ id, updateMessageBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listMessages = (props: ListMessagesProps) => this._innerClient.listMessages(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteMessage = (props: DeleteMessageProps) => this._innerClient.deleteMessage(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createUser = (createUserBody: CreateUserProps) => this._innerClient.createUser({ createUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getUser = (props: GetUserProps) => this._innerClient.getUser(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listUsers = (props: ListUsersProps) => this._innerClient.listUsers(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getOrCreateUser = (getOrCreateUserBody: GetOrCreateUserProps) => this._innerClient.getOrCreateUser({ getOrCreateUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateUser = ({ id, ...updateUserBody }: UpdateUserProps) => this._innerClient.updateUser({ id, updateUserBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteUser = (props: DeleteUserProps) => this._innerClient.deleteUser(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getState = (props: GetStateProps) => this._innerClient.getState(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic setState = ({ type, id, name, ...setStateBody }: SetStateProps) => this._innerClient.setState({ type, id, name, setStateBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic patchState = ({ type, id, name, ...patchStateBody }: PatchStateProps) => this._innerClient.patchState({ type, id, name, patchStateBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic callAction = (callActionBody: CallActionProps) => this._innerClient.callAction({ callActionBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic configureIntegration = (configureIntegrationBody: ConfigureIntegrationProps) => this._innerClient.configureIntegration({ configureIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listPublicIntegrations = (props: ListPublicIntegrationsProps) => this._innerClient.listPublicIntegrations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getPublicIntegrationById = (props: GetPublicIntegrationByIdProps) => this._innerClient.getPublicIntegrationById(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getPublicIntegration = (props: GetPublicIntegrationProps) => this._innerClient.getPublicIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createBot = (createBotBody: CreateBotProps) => this._innerClient.createBot({ createBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateBot = ({ id, ...updateBotBody }: UpdateBotProps) => this._innerClient.updateBot({ id, updateBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic transferBot = ({ id, ...transferBotBody }: TransferBotProps) => this._innerClient.transferBot({ id, transferBotBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listBots = (props: ListBotsProps) => this._innerClient.listBots(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBot = (props: GetBotProps) => this._innerClient.getBot(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteBot = (props: DeleteBotProps) => this._innerClient.deleteBot(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotLogs = (props: GetBotLogsProps) => this._innerClient.getBotLogs(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotWebchat = (props: GetBotWebchatProps) => this._innerClient.getBotWebchat(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getBotAnalytics = (props: GetBotAnalyticsProps) => this._innerClient.getBotAnalytics(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getWorkspace = (props: GetWorkspaceProps) => this._innerClient.getWorkspace(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listWorkspaces = (props: ListWorkspacesProps) => this._innerClient.listWorkspaces(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createIntegration = (createIntegrationBody: CreateIntegrationProps) => this._innerClient.createIntegration({ createIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic updateIntegration = ({ id, ...updateIntegrationBody }: UpdateIntegrationProps) => this._innerClient.updateIntegration({ id, updateIntegrationBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listIntegrations = (props: ListIntegrationsProps) => this._innerClient.listIntegrations(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getIntegration = (props: GetIntegrationProps) => this._innerClient.getIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getIntegrationLogs = (props: GetIntegrationLogsProps) => this._innerClient.getIntegrationLogs(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getIntegrationByName = (props: GetIntegrationByNameProps) => this._innerClient.getIntegrationByName(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteIntegration = (props: DeleteIntegrationProps) => this._innerClient.deleteIntegration(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic introspect = (introspectBody: IntrospectProps) => this._innerClient.introspect({ introspectBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic createFile = (createFileBody: CreateFileProps) => this._innerClient.createFile({ createFileBody }).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic getFile = (props: GetFileProps) => this._innerClient.getFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic downloadFile = (props: DownloadFileProps) => this._innerClient.downloadFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic deleteFile = (props: DeleteFileProps) => this._innerClient.deleteFile(props).then((res) => res.data).catch((e) => { throw getError(e) })\n\tpublic listFiles = (props: ListFilesProps) => this._innerClient.listFiles(props).then((res) => res.data).catch((e) => { throw getError(e) })\n}\n\nexport type CreateConversationProps = Merge<\n Except<DefaultApiCreateConversationRequest, 'createConversationBody'>,\n NonNullable<DefaultApiCreateConversationRequest['createConversationBody']>\n>\n\nexport type GetConversationProps = Merge<DefaultApiGetConversationRequest, {}>\n\nexport type ListConversationsProps = Merge<DefaultApiListConversationsRequest, {}>\n\nexport type GetOrCreateConversationProps = Merge<\n Except<DefaultApiGetOrCreateConversationRequest, 'getOrCreateConversationBody'>,\n NonNullable<DefaultApiGetOrCreateConversationRequest['getOrCreateConversationBody']>\n>\n\nexport type UpdateConversationProps = Merge<\n Except<DefaultApiUpdateConversationRequest, 'updateConversationBody'>,\n NonNullable<DefaultApiUpdateConversationRequest['updateConversationBody']>\n>\n\nexport type DeleteConversationProps = Merge<DefaultApiDeleteConversationRequest, {}>\n\nexport type CreateEventProps = Merge<\n Except<DefaultApiCreateEventRequest, 'createEventBody'>,\n NonNullable<DefaultApiCreateEventRequest['createEventBody']>\n>\n\nexport type GetEventProps = Merge<DefaultApiGetEventRequest, {}>\n\nexport type ListEventsProps = Merge<DefaultApiListEventsRequest, {}>\n\nexport type CreateMessageProps = Merge<\n Except<DefaultApiCreateMessageRequest, 'createMessageBody'>,\n NonNullable<DefaultApiCreateMessageRequest['createMessageBody']>\n>\n\nexport type GetOrCreateMessageProps = Merge<\n Except<DefaultApiGetOrCreateMessageRequest, 'getOrCreateMessageBody'>,\n NonNullable<DefaultApiGetOrCreateMessageRequest['getOrCreateMessageBody']>\n>\n\nexport type GetMessageProps = Merge<DefaultApiGetMessageRequest, {}>\n\nexport type UpdateMessageProps = Merge<\n Except<DefaultApiUpdateMessageRequest, 'updateMessageBody'>,\n NonNullable<DefaultApiUpdateMessageRequest['updateMessageBody']>\n>\n\nexport type ListMessagesProps = Merge<DefaultApiListMessagesRequest, {}>\n\nexport type DeleteMessageProps = Merge<DefaultApiDeleteMessageRequest, {}>\n\nexport type CreateUserProps = Merge<\n Except<DefaultApiCreateUserRequest, 'createUserBody'>,\n NonNullable<DefaultApiCreateUserRequest['createUserBody']>\n>\n\nexport type GetUserProps = Merge<DefaultApiGetUserRequest, {}>\n\nexport type ListUsersProps = Merge<DefaultApiListUsersRequest, {}>\n\nexport type GetOrCreateUserProps = Merge<\n Except<DefaultApiGetOrCreateUserRequest, 'getOrCreateUserBody'>,\n NonNullable<DefaultApiGetOrCreateUserRequest['getOrCreateUserBody']>\n>\n\nexport type UpdateUserProps = Merge<\n Except<DefaultApiUpdateUserRequest, 'updateUserBody'>,\n NonNullable<DefaultApiUpdateUserRequest['updateUserBody']>\n>\n\nexport type DeleteUserProps = Merge<DefaultApiDeleteUserRequest, {}>\n\nexport type GetStateProps = Merge<DefaultApiGetStateRequest, {}>\n\nexport type SetStateProps = Merge<\n Except<DefaultApiSetStateRequest, 'setStateBody'>,\n NonNullable<DefaultApiSetStateRequest['setStateBody']>\n>\n\nexport type PatchStateProps = Merge<\n Except<DefaultApiPatchStateRequest, 'patchStateBody'>,\n NonNullable<DefaultApiPatchStateRequest['patchStateBody']>\n>\n\nexport type CallActionProps = Merge<\n Except<DefaultApiCallActionRequest, 'callActionBody'>,\n NonNullable<DefaultApiCallActionRequest['callActionBody']>\n>\n\nexport type ConfigureIntegrationProps = Merge<\n Except<DefaultApiConfigureIntegrationRequest, 'configureIntegrationBody'>,\n NonNullable<DefaultApiConfigureIntegrationRequest['configureIntegrationBody']>\n>\n\nexport type ListPublicIntegrationsProps = Merge<DefaultApiListPublicIntegrationsRequest, {}>\n\nexport type GetPublicIntegrationByIdProps = Merge<DefaultApiGetPublicIntegrationByIdRequest, {}>\n\nexport type GetPublicIntegrationProps = Merge<DefaultApiGetPublicIntegrationRequest, {}>\n\nexport type CreateBotProps = Merge<\n Except<DefaultApiCreateBotRequest, 'createBotBody'>,\n NonNullable<DefaultApiCreateBotRequest['createBotBody']>\n>\n\nexport type UpdateBotProps = Merge<\n Except<DefaultApiUpdateBotRequest, 'updateBotBody'>,\n NonNullable<DefaultApiUpdateBotRequest['updateBotBody']>\n>\n\nexport type TransferBotProps = Merge<\n Except<DefaultApiTransferBotRequest, 'transferBotBody'>,\n NonNullable<DefaultApiTransferBotRequest['transferBotBody']>\n>\n\nexport type ListBotsProps = Merge<DefaultApiListBotsRequest, {}>\n\nexport type GetBotProps = Merge<DefaultApiGetBotRequest, {}>\n\nexport type DeleteBotProps = Merge<DefaultApiDeleteBotRequest, {}>\n\nexport type GetBotLogsProps = Merge<DefaultApiGetBotLogsRequest, {}>\n\nexport type GetBotWebchatProps = Merge<DefaultApiGetBotWebchatRequest, {}>\n\nexport type GetBotAnalyticsProps = Merge<DefaultApiGetBotAnalyticsRequest, {}>\n\nexport type GetWorkspaceProps = Merge<DefaultApiGetWorkspaceRequest, {}>\n\nexport type ListWorkspacesProps = Merge<DefaultApiListWorkspacesRequest, {}>\n\nexport type CreateIntegrationProps = Merge<\n Except<DefaultApiCreateIntegrationRequest, 'createIntegrationBody'>,\n NonNullable<DefaultApiCreateIntegrationRequest['createIntegrationBody']>\n>\n\nexport type UpdateIntegrationProps = Merge<\n Except<DefaultApiUpdateIntegrationRequest, 'updateIntegrationBody'>,\n NonNullable<DefaultApiUpdateIntegrationRequest['updateIntegrationBody']>\n>\n\nexport type ListIntegrationsProps = Merge<DefaultApiListIntegrationsRequest, {}>\n\nexport type GetIntegrationProps = Merge<DefaultApiGetIntegrationRequest, {}>\n\nexport type GetIntegrationLogsProps = Merge<DefaultApiGetIntegrationLogsRequest, {}>\n\nexport type GetIntegrationByNameProps = Merge<DefaultApiGetIntegrationByNameRequest, {}>\n\nexport type DeleteIntegrationProps = Merge<DefaultApiDeleteIntegrationRequest, {}>\n\nexport type IntrospectProps = Merge<\n Except<DefaultApiIntrospectRequest, 'introspectBody'>,\n NonNullable<DefaultApiIntrospectRequest['introspectBody']>\n>\n\nexport type CreateFileProps = Merge<\n Except<DefaultApiCreateFileRequest, 'createFileBody'>,\n NonNullable<DefaultApiCreateFileRequest['createFileBody']>\n>\n\nexport type GetFileProps = Merge<DefaultApiGetFileRequest, {}>\n\nexport type DownloadFileProps = Merge<DefaultApiDownloadFileRequest, {}>\n\nexport type DeleteFileProps = Merge<DefaultApiDeleteFileRequest, {}>\n\nexport type ListFilesProps = Merge<DefaultApiListFilesRequest, {}>\n\n\nfunction getError(err: Error) {\n if (axios.isAxiosError(err)) {\n return errorFrom(err.response?.data)\n }\n\n return errorFrom(err)\n}\n"],
|
|
5
|
+
"mappings": "woBAAA,IAAAA,GAAAC,EAAA,CAAAC,GAAAC,KAAA,KAAIC,GAAS,QAAQ,UAAU,OAC3BC,GAAO,QAAQ,QAEnBF,GAAO,QAAUG,GACjB,SAASA,IAAgB,CACvB,KAAK,OAAS,KACd,KAAK,SAAW,EAChB,KAAK,YAAc,KAAO,KAC1B,KAAK,YAAc,GAEnB,KAAK,qBAAuB,GAC5B,KAAK,UAAY,GACjB,KAAK,gBAAkB,CAAC,CAC1B,CACAD,GAAK,SAASC,GAAeF,EAAM,EAEnCE,GAAc,OAAS,SAASC,EAAQC,EAAS,CAC/C,IAAIC,EAAgB,IAAI,KAExBD,EAAUA,GAAW,CAAC,EACtB,QAASE,KAAUF,EACjBC,EAAcC,GAAUF,EAAQE,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,CAAG,EACjBE,GAAUF,EAAI,UAAU,IAAI,EAG9BE,GAAUF,CAAG,CACtB,CnDtSO,IAAMG,GAAN,cAAqBC,EAAoB,CAC9B,OAET,YAAYC,EAA2B,CAAC,EAAG,CAChD,IAAMC,EAAeC,GAAgBF,CAAW,EAC1C,CAAE,KAAAG,EAAM,QAAAC,EAAS,gBAAAC,EAAiB,QAAAC,CAAQ,EAAIL,EAE9CM,EAAcC,EAAM,OAAO,CAC/B,cAAe,IAAM,KAAO,KAC5B,iBAAkB,KAAO,KAAO,KAChC,QAASF,GAAW,IACpB,gBAAAD,EACA,QAAAD,CACF,CAAC,EAED,MAAM,OAAWD,EAAMI,CAAW,EAElC,KAAK,OAASN,CAChB,CACF",
|
|
6
6
|
"names": ["require_delayed_stream", "__commonJSMin", "exports", "module", "Stream", "util", "DelayedStream", "source", "options", "delayedStream", "option", "realEmit", "args", "r", "message", "require_combined_stream", "__commonJSMin", "exports", "module", "util", "Stream", "DelayedStream", "CombinedStream", "options", "combinedStream", "option", "stream", "isStreamLike", "newStream", "dest", "getStream", "value", "self", "err", "data", "message", "require_mime_db", "__commonJSMin", "exports", "module", "require_mime_types", "__commonJSMin", "exports", "db", "extname", "EXTRACT_TYPE_REGEXP", "TEXT_TYPE_REGEXP", "charset", "contentType", "extension", "lookup", "populateMaps", "type", "match", "mime", "str", "exts", "path", "extensions", "types", "preference", "i", "from", "to", "require_defer", "__commonJSMin", "exports", "module", "defer", "fn", "nextTick", "require_async", "__commonJSMin", "exports", "module", "defer", "async", "callback", "isAsync", "err", "result", "require_abort", "__commonJSMin", "exports", "module", "abort", "state", "clean", "key", "require_iterate", "__commonJSMin", "exports", "module", "async", "abort", "iterate", "list", "iterator", "state", "callback", "key", "runJob", "error", "output", "item", "aborter", "require_state", "__commonJSMin", "exports", "module", "state", "list", "sortMethod", "isNamedList", "initState", "a", "b", "require_terminator", "__commonJSMin", "exports", "module", "abort", "async", "terminator", "callback", "require_parallel", "__commonJSMin", "exports", "module", "iterate", "initState", "terminator", "parallel", "list", "iterator", "callback", "state", "error", "result", "require_serialOrdered", "__commonJSMin", "exports", "module", "iterate", "initState", "terminator", "serialOrdered", "ascending", "descending", "list", "iterator", "sortMethod", "callback", "state", "iteratorHandler", "error", "result", "b", "require_serial", "__commonJSMin", "exports", "module", "serialOrdered", "serial", "list", "iterator", "callback", "require_asynckit", "__commonJSMin", "exports", "module", "require_populate", "__commonJSMin", "exports", "module", "dst", "src", "prop", "require_form_data", "__commonJSMin", "exports", "module", "CombinedStream", "util", "path", "http", "https", "parseUrl", "fs", "Stream", "mime", "asynckit", "populate", "FormData", "options", "option", "field", "value", "append", "header", "footer", "valueLength", "callback", "err", "stat", "fileSize", "response", "contentDisposition", "contentType", "contents", "headers", "prop", "filename", "next", "lastPart", "userHeaders", "formHeaders", "boundary", "dataBuffer", "i", "len", "knownLength", "hasKnownLength", "cb", "values", "length", "params", "request", "defaults", "onResponse", "error", "responce", "require_proxy_from_env", "__commonJSMin", "exports", "parseUrl", "DEFAULT_PORTS", "stringEndsWith", "s", "getProxyForUrl", "url", "parsedUrl", "proto", "hostname", "port", "shouldProxy", "proxy", "getEnv", "NO_PROXY", "parsedProxy", "parsedProxyHostname", "parsedProxyPort", "key", "require_ms", "__commonJSMin", "exports", "module", "s", "m", "h", "d", "w", "y", "val", "options", "type", "parse", "fmtLong", "fmtShort", "str", "match", "n", "ms", "msAbs", "plural", "name", "isPlural", "require_common", "__commonJSMin", "exports", "module", "setup", "env", "createDebug", "coerce", "disable", "enable", "enabled", "destroy", "key", "selectColor", "namespace", "hash", "i", "prevTime", "enableOverride", "namespacesCache", "enabledCache", "debug", "args", "self", "curr", "ms", "index", "match", "format", "formatter", "val", "extend", "v", "delimiter", "newDebug", "namespaces", "split", "len", "toNamespace", "name", "regexp", "require_browser", "__commonJSMin", "exports", "module", "formatArgs", "save", "load", "useColors", "localstorage", "warned", "args", "c", "index", "lastC", "match", "namespaces", "r", "formatters", "v", "error", "require_has_flag", "__commonJSMin", "exports", "module", "flag", "argv", "prefix", "position", "terminatorPosition", "require_supports_color", "__commonJSMin", "exports", "module", "os", "tty", "hasFlag", "env", "forceColor", "translateLevel", "level", "supportsColor", "haveStream", "streamIsTTY", "min", "osRelease", "sign", "version", "getSupportLevel", "stream", "require_node", "__commonJSMin", "exports", "module", "tty", "util", "init", "log", "formatArgs", "save", "load", "useColors", "supportsColor", "key", "obj", "prop", "_", "k", "val", "args", "name", "c", "colorCode", "prefix", "getDate", "namespaces", "debug", "keys", "i", "formatters", "v", "str", "require_src", "__commonJSMin", "exports", "module", "require_debug", "__commonJSMin", "exports", "module", "debug", "require_follow_redirects", "__commonJSMin", "exports", "module", "url", "URL", "http", "https", "Writable", "assert", "debug", "events", "eventHandlers", "event", "arg1", "arg2", "arg3", "InvalidUrlError", "createErrorType", "RedirectionError", "TooManyRedirectsError", "MaxBodyLengthExceededError", "WriteAfterEndError", "RedirectableRequest", "options", "responseCallback", "self", "response", "abortRequest", "data", "encoding", "callback", "isString", "isBuffer", "isFunction", "currentRequest", "name", "value", "msecs", "destroyOnTimeout", "socket", "startTimer", "clearTimer", "method", "a", "b", "property", "searchPos", "protocol", "nativeProtocol", "scheme", "request", "i", "buffers", "writeNext", "error", "buffer", "statusCode", "location", "requestHeaders", "beforeRedirect", "removeMatchingHeaders", "currentHostHeader", "currentUrlParts", "currentHost", "currentUrl", "redirectUrl", "cause", "redirectUrlParts", "isSubdomain", "responseDetails", "requestDetails", "err", "wrap", "protocols", "nativeProtocols", "wrappedProtocol", "input", "parsed", "urlToOptions", "get", "wrappedRequest", "noop", "urlObject", "regex", "headers", "lastValue", "header", "code", "message", "baseClass", "CustomError", "properties", "subdomain", "domain", "dot", "require_lib", "__commonJSMin", "exports", "_typeof", "obj", "isBrowser", "isNode", "isWebWorker", "isJsDom", "isDeno", "src_exports", "__export", "Client", "ForbiddenError", "InternalError", "InvalidDataFormatError", "InvalidIdentifierError", "InvalidJsonSchemaError", "InvalidPayloadError", "InvalidQueryError", "MethodNotFoundError", "PayloadTooLargeError", "ReferenceNotFoundError", "RelationConflictError", "ResourceNotFoundError", "RuntimeError", "UnauthorizedError", "UnknownError", "UnsupportedMediaTypeError", "axios_exports", "errorFrom", "isApiError", "__toCommonJS", "axios_exports", "__export", "Axios", "AxiosError", "AxiosHeaders", "Cancel", "CancelToken", "CanceledError", "HttpStatusCode", "VERSION", "all", "axios_default", "formToJSON", "isAxiosError", "isCancel", "mergeConfig", "spread", "toFormData", "bind", "fn", "thisArg", "toString", "getPrototypeOf", "kindOf", "cache", "thing", "str", "kindOfTest", "type", "typeOfTest", "isArray", "isUndefined", "isBuffer", "val", "isFunction", "isArrayBuffer", "isArrayBufferView", "result", "isString", "isNumber", "isObject", "isBoolean", "isPlainObject", "prototype", "isDate", "isFile", "isBlob", "isFileList", "isStream", "isFormData", "pattern", "isURLSearchParams", "trim", "forEach", "obj", "fn", "allOwnKeys", "i", "l", "keys", "len", "key", "findKey", "_key", "_global", "isContextDefined", "context", "merge", "caseless", "assignValue", "targetKey", "extend", "b", "thisArg", "bind", "stripBOM", "content", "inherits", "constructor", "superConstructor", "props", "descriptors", "toFlatObject", "sourceObj", "destObj", "filter", "propFilter", "prop", "merged", "endsWith", "searchString", "position", "lastIndex", "toArray", "arr", "isTypedArray", "TypedArray", "forEachEntry", "iterator", "pair", "matchAll", "regExp", "matches", "isHTMLForm", "toCamelCase", "m", "p1", "p2", "hasOwnProperty", "isRegExp", "reduceDescriptors", "reducer", "reducedDescriptors", "descriptor", "name", "freezeMethods", "value", "toObjectSet", "arrayOrString", "delimiter", "define", "noop", "toFiniteNumber", "defaultValue", "toJSONObject", "stack", "visit", "source", "target", "reducedValue", "utils_default", "AxiosError", "message", "code", "config", "request", "response", "utils_default", "prototype", "descriptors", "error", "customProps", "axiosError", "obj", "prop", "AxiosError_default", "import_form_data", "FormData_default", "FormData", "isVisitable", "thing", "utils_default", "removeBrackets", "key", "renderKey", "path", "dots", "token", "i", "isFlatArray", "arr", "predicates", "prop", "isSpecCompliant", "toFormData", "obj", "formData", "options", "FormData_default", "option", "source", "metaTokens", "visitor", "defaultVisitor", "indexes", "useBlob", "convertValue", "value", "AxiosError_default", "el", "index", "stack", "exposedHelpers", "build", "toFormData_default", "encode", "str", "charMap", "match", "AxiosURLSearchParams", "params", "options", "toFormData_default", "prototype", "name", "value", "encoder", "_encode", "pair", "AxiosURLSearchParams_default", "encode", "val", "buildURL", "url", "params", "options", "_encode", "serializeFn", "serializedParams", "utils_default", "AxiosURLSearchParams_default", "hashmarkIndex", "InterceptorManager", "fulfilled", "rejected", "options", "id", "fn", "utils_default", "h", "InterceptorManager_default", "transitional_default", "import_url", "URLSearchParams_default", "url", "import_form_data", "FormData_default", "FormData", "node_default", "URLSearchParams_default", "FormData_default", "toURLEncodedForm", "data", "options", "toFormData_default", "node_default", "value", "key", "path", "helpers", "utils_default", "parsePropPath", "name", "utils_default", "match", "arrayToObject", "arr", "obj", "keys", "i", "len", "key", "formDataToJSON", "formData", "buildPath", "path", "value", "target", "index", "isNumericKey", "isLast", "formDataToJSON_default", "DEFAULT_CONTENT_TYPE", "stringifySafely", "rawValue", "parser", "encoder", "utils_default", "e", "defaults", "transitional_default", "data", "headers", "contentType", "hasJSONContentType", "isObjectPayload", "formDataToJSON_default", "isFileList", "toURLEncodedForm", "_FormData", "toFormData_default", "transitional", "forcedJSONParsing", "JSONRequested", "strictJSONParsing", "AxiosError_default", "node_default", "status", "method", "defaults_default", "ignoreDuplicateOf", "utils_default", "parseHeaders_default", "rawHeaders", "parsed", "key", "val", "line", "$internals", "normalizeHeader", "header", "normalizeValue", "value", "utils_default", "parseTokens", "str", "tokens", "tokensRE", "match", "isValidHeaderName", "matchHeaderValue", "context", "filter", "formatHeader", "w", "char", "buildAccessors", "obj", "accessorName", "methodName", "arg1", "arg2", "arg3", "AxiosHeaders", "headers", "valueOrRewrite", "rewrite", "self", "setHeader", "_value", "_header", "_rewrite", "lHeader", "key", "setHeaders", "parseHeaders_default", "parser", "matcher", "deleted", "deleteHeader", "format", "normalized", "targets", "asStrings", "thing", "first", "computed", "target", "accessors", "prototype", "defineAccessor", "AxiosHeaders_default", "transformData", "fns", "response", "config", "defaults_default", "context", "headers", "AxiosHeaders_default", "data", "utils_default", "fn", "isCancel", "value", "CanceledError", "message", "config", "request", "AxiosError_default", "utils_default", "CanceledError_default", "settle", "resolve", "reject", "response", "validateStatus", "AxiosError_default", "isAbsoluteURL", "url", "combineURLs", "baseURL", "relativeURL", "buildFullPath", "baseURL", "requestedURL", "isAbsoluteURL", "combineURLs", "import_proxy_from_env", "import_http", "import_https", "import_follow_redirects", "import_zlib", "VERSION", "parseProtocol", "url", "match", "DATA_URL_PATTERN", "fromDataURI", "uri", "asBlob", "options", "_Blob", "node_default", "protocol", "parseProtocol", "match", "AxiosError_default", "mime", "isBase64", "body", "buffer", "import_stream", "import_stream", "throttle", "fn", "freq", "timestamp", "threshold", "timer", "force", "args", "now", "throttle_default", "speedometer", "samplesCount", "min", "bytes", "timestamps", "head", "tail", "firstSampleTS", "chunkLength", "now", "startedAt", "i", "bytesCount", "passed", "speedometer_default", "kInternals", "AxiosTransformStream", "stream", "options", "utils_default", "prop", "source", "self", "internals", "_speedometer", "speedometer_default", "event", "bytesNotified", "throttle_default", "totalBytes", "bytesTransferred", "progressBytes", "rate", "onFinish", "size", "chunk", "encoding", "callback", "maxRate", "readableHighWaterMark", "timeWindow", "divider", "bytesThreshold", "minChunkSize", "pushChunk", "_chunk", "_callback", "bytes", "transformChunk", "chunkSize", "chunkRemainder", "maxChunkSize", "bytesLeft", "passed", "now", "transformNextChunk", "err", "length", "AxiosTransformStream_default", "import_events", "zlibOptions", "zlib", "brotliOptions", "isBrotliSupported", "utils_default", "httpFollow", "httpsFollow", "followRedirects", "isHttps", "supportedProtocols", "node_default", "protocol", "dispatchBeforeRedirect", "options", "setProxy", "configProxy", "location", "proxy", "proxyUrl", "base64", "proxyHost", "redirectOptions", "isHttpAdapterSupported", "http_default", "config", "resolvePromise", "rejectPromise", "data", "responseType", "responseEncoding", "method", "isFinished", "isDone", "rejected", "req", "emitter", "EventEmitter", "onFinished", "abort", "done", "value", "isRejected", "resolve", "reject", "reason", "CanceledError_default", "fullPath", "buildFullPath", "parsed", "convertedData", "settle", "fromDataURI", "err", "AxiosError_default", "stream", "AxiosHeaders_default", "headers", "VERSION", "onDownloadProgress", "onUploadProgress", "maxRate", "maxUploadRate", "maxDownloadRate", "contentLength", "AxiosTransformStream_default", "progress", "auth", "username", "password", "urlUsername", "urlPassword", "path", "buildURL", "customErr", "transport", "isHttpsRequest", "https", "http", "res", "streams", "responseLength", "transformStream", "responseStream", "lastRequest", "offListeners", "response", "responseBuffer", "totalResponseBytes", "chunk", "responseData", "socket", "timeout", "timeoutErrorMessage", "transitional", "transitional_default", "ended", "errored", "cookies_default", "node_default", "name", "value", "expires", "path", "domain", "secure", "cookie", "utils_default", "match", "isURLSameOrigin_default", "node_default", "msie", "urlParsingNode", "originURL", "resolveURL", "url", "href", "requestURL", "parsed", "utils_default", "progressEventReducer", "listener", "isDownloadStream", "bytesNotified", "_speedometer", "speedometer_default", "e", "loaded", "total", "progressBytes", "rate", "inRange", "data", "isXHRAdapterSupported", "xhr_default", "config", "resolve", "reject", "requestData", "requestHeaders", "AxiosHeaders_default", "responseType", "onCanceled", "done", "utils_default", "node_default", "request", "username", "password", "fullPath", "buildFullPath", "buildURL", "onloadend", "responseHeaders", "response", "settle", "value", "err", "AxiosError_default", "timeoutErrorMessage", "transitional", "transitional_default", "xsrfValue", "isURLSameOrigin_default", "cookies_default", "val", "key", "cancel", "CanceledError_default", "protocol", "parseProtocol", "knownAdapters", "http_default", "xhr_default", "utils_default", "fn", "value", "adapters_default", "adapters", "length", "nameOrAdapter", "adapter", "AxiosError_default", "throwIfCancellationRequested", "config", "CanceledError_default", "dispatchRequest", "AxiosHeaders_default", "transformData", "adapters_default", "defaults_default", "response", "reason", "isCancel", "headersToObject", "thing", "AxiosHeaders_default", "mergeConfig", "config1", "config2", "config", "getMergedValue", "target", "source", "caseless", "utils_default", "mergeDeepProperties", "a", "b", "valueFromConfig2", "defaultToConfig2", "mergeDirectKeys", "prop", "mergeMap", "merge", "configValue", "validators", "type", "i", "thing", "deprecatedWarnings", "validator", "version", "message", "formatMessage", "opt", "desc", "VERSION", "value", "opts", "AxiosError_default", "assertOptions", "options", "schema", "allowUnknown", "keys", "result", "validator_default", "validators", "validator_default", "Axios", "instanceConfig", "InterceptorManager_default", "configOrUrl", "config", "mergeConfig", "transitional", "paramsSerializer", "headers", "contextHeaders", "utils_default", "method", "AxiosHeaders_default", "requestInterceptorChain", "synchronousRequestInterceptors", "interceptor", "responseInterceptorChain", "promise", "i", "len", "chain", "dispatchRequest", "newConfig", "onFulfilled", "onRejected", "error", "fullPath", "buildFullPath", "buildURL", "url", "generateHTTPMethod", "isForm", "data", "Axios_default", "CancelToken", "executor", "resolvePromise", "resolve", "token", "cancel", "i", "onfulfilled", "_resolve", "promise", "message", "config", "request", "CanceledError_default", "listener", "index", "c", "CancelToken_default", "spread", "callback", "arr", "isAxiosError", "payload", "utils_default", "HttpStatusCode", "key", "value", "HttpStatusCode_default", "createInstance", "defaultConfig", "context", "Axios_default", "instance", "bind", "utils_default", "instanceConfig", "mergeConfig", "axios", "defaults_default", "CanceledError_default", "CancelToken_default", "isCancel", "VERSION", "toFormData_default", "AxiosError_default", "promises", "spread", "isAxiosError", "AxiosHeaders_default", "thing", "formDataToJSON_default", "HttpStatusCode_default", "axios_default", "Axios", "AxiosError", "CanceledError", "isCancel", "CancelToken", "VERSION", "all", "Cancel", "isAxiosError", "spread", "toFormData", "AxiosHeaders", "HttpStatusCode", "formToJSON", "mergeConfig", "axios_default", "import_browser_or_node", "defaultApiUrl", "apiUrlEnvName", "botIdEnvName", "integrationIdEnvName", "workspaceIdEnvName", "tokenEnvName", "getClientConfig", "clientProps", "props", "getProps", "headers", "getNodeConfig", "config", "token", "BaseApiError", "code", "description", "type", "message", "error", "isObject", "obj", "isApiError", "thrown", "UnknownError", "InternalError", "UnauthorizedError", "ForbiddenError", "PayloadTooLargeError", "InvalidPayloadError", "UnsupportedMediaTypeError", "MethodNotFoundError", "ResourceNotFoundError", "InvalidJsonSchemaError", "InvalidDataFormatError", "InvalidIdentifierError", "RelationConflictError", "ReferenceNotFoundError", "InvalidQueryError", "RuntimeError", "errorTypes", "errorFrom", "err", "getErrorFromObject", "ErrorClass", "BASE_PATH", "BaseAPI", "configuration", "basePath", "BASE_PATH", "axios", "axios_default", "RequiredError", "field", "msg", "DUMMY_BASE_URL", "assertParamExists", "functionName", "paramName", "paramValue", "RequiredError", "setFlattenedQueryParams", "urlSearchParams", "parameter", "key", "item", "currentKey", "setSearchParams", "url", "objects", "searchParams", "serializeDataIfNeeded", "value", "requestOptions", "configuration", "nonString", "toPathString", "createRequestFunction", "axiosArgs", "globalAxios", "BASE_PATH", "axios", "basePath", "axiosRequestArgs", "DefaultApiAxiosParamCreator", "configuration", "callActionBody", "options", "localVarPath", "localVarUrlObj", "DUMMY_BASE_URL", "baseOptions", "localVarRequestOptions", "localVarHeaderParameter", "localVarQueryParameter", "setSearchParams", "headersFromBaseOptions", "serializeDataIfNeeded", "toPathString", "configureIntegrationBody", "createBotBody", "createConversationBody", "createEventBody", "createFileBody", "createIntegrationBody", "createMessageBody", "createUserBody", "id", "assertParamExists", "startDate", "endDate", "type", "name", "version", "getOrCreateConversationBody", "getOrCreateMessageBody", "getOrCreateUserBody", "introspectBody", "nextToken", "tags", "participantIds", "botId", "conversationId", "patchStateBody", "setStateBody", "transferBotBody", "updateBotBody", "updateConversationBody", "updateIntegrationBody", "updateMessageBody", "updateUserBody", "DefaultApiFp", "localVarAxiosParamCreator", "localVarAxiosArgs", "createRequestFunction", "axios_default", "BASE_PATH", "DefaultApi", "BaseAPI", "requestParameters", "options", "DefaultApiFp", "request", "ApiClient", "configuration", "basePath", "axiosInstance", "DefaultApi", "createConversationBody", "res", "e", "getError", "props", "getOrCreateConversationBody", "id", "updateConversationBody", "createEventBody", "createMessageBody", "getOrCreateMessageBody", "updateMessageBody", "createUserBody", "getOrCreateUserBody", "updateUserBody", "type", "name", "setStateBody", "patchStateBody", "callActionBody", "configureIntegrationBody", "createBotBody", "updateBotBody", "transferBotBody", "createIntegrationBody", "updateIntegrationBody", "introspectBody", "createFileBody", "err", "axios_default", "errorFrom", "Client", "ApiClient", "clientProps", "clientConfig", "getClientConfig", "host", "headers", "withCredentials", "timeout", "axiosClient", "axios_default"]
|
|
7
7
|
}
|