UNPKG

@botpress/adk-cli

Version:

Command-line interface for the Botpress Agent Development Kit (ADK)

5,434 lines 354 kB
// @bun
import {
  axios_default
} from "./chunk-w346ejn9.js";
import {
  __commonJS,
  __require,
  __toESM
} from "./chunk-dhs2bg35.js";

// ../../node_modules/.bun/browser-or-node@2.1.1/node_modules/browser-or-node/lib/index.js
var require_lib = __commonJS((exports) => {
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  var _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;
  };
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
  var isNode = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
  var isWebWorker = (typeof self === "undefined" ? "undefined" : _typeof(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope";
  var isJsDom = typeof window !== "undefined" && window.name === "nodejs" || typeof navigator !== "undefined" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
  var isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
  exports.isBrowser = isBrowser;
  exports.isWebWorker = isWebWorker;
  exports.isNode = isNode;
  exports.isJsDom = isJsDom;
  exports.isDeno = isDeno;
});

// ../../node_modules/.bun/@botpress+client@1.46.0/node_modules/@botpress/client/dist/index.mjs
var import_browser_or_node = __toESM(require_lib(), 1);
var import_browser_or_node2 = __toESM(require_lib(), 1);
var import_browser_or_node3 = __toESM(require_lib(), 1);
import gP from "crypto";
import xP from "crypto";
import fB from "crypto";
import CB from "crypto";
import QB from "crypto";
import $B from "crypto";
var Sk = Object.create;
var Dt = Object.defineProperty;
var Ek = Object.getOwnPropertyDescriptor;
var Lk = Object.getOwnPropertyNames;
var _k = Object.getPrototypeOf;
var Wk = Object.prototype.hasOwnProperty;
var Qk = ((e) => "function" < "u" ? __require : typeof Proxy < "u" ? new Proxy(e, { get: (t, n) => ("function" < "u" ? __require : t)[n] }) : e)(function(e) {
  if ("function" < "u")
    return __require.apply(this, arguments);
  throw Error('Dynamic require of "' + e + '" is not supported');
});
var q = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
var j = (e, t) => {
  for (var n in t)
    Dt(e, n, { get: t[n], enumerable: true });
};
var Dk = (e, t, n, r) => {
  if (t && typeof t == "object" || typeof t == "function")
    for (let a of Lk(t))
      !Wk.call(e, a) && a !== n && Dt(e, a, { get: () => t[a], enumerable: !(r = Ek(t, a)) || r.enumerable });
  return e;
};
var te = (e, t, n) => (n = e != null ? Sk(_k(e)) : {}, Dk(t || !e || !e.__esModule ? Dt(n, "default", { value: e, enumerable: true }) : n, e));
var Da = q((oT, Qa) => {
  var Hk = new Set(["ENOTFOUND", "ENETUNREACH", "UNABLE_TO_GET_ISSUER_CERT", "UNABLE_TO_GET_CRL", "UNABLE_TO_DECRYPT_CERT_SIGNATURE", "UNABLE_TO_DECRYPT_CRL_SIGNATURE", "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY", "CERT_SIGNATURE_FAILURE", "CRL_SIGNATURE_FAILURE", "CERT_NOT_YET_VALID", "CERT_HAS_EXPIRED", "CRL_NOT_YET_VALID", "CRL_HAS_EXPIRED", "ERROR_IN_CERT_NOT_BEFORE_FIELD", "ERROR_IN_CERT_NOT_AFTER_FIELD", "ERROR_IN_CRL_LAST_UPDATE_FIELD", "ERROR_IN_CRL_NEXT_UPDATE_FIELD", "OUT_OF_MEM", "DEPTH_ZERO_SELF_SIGNED_CERT", "SELF_SIGNED_CERT_IN_CHAIN", "UNABLE_TO_GET_ISSUER_CERT_LOCALLY", "UNABLE_TO_VERIFY_LEAF_SIGNATURE", "CERT_CHAIN_TOO_LONG", "CERT_REVOKED", "INVALID_CA", "PATH_LENGTH_EXCEEDED", "INVALID_PURPOSE", "CERT_UNTRUSTED", "CERT_REJECTED", "HOSTNAME_MISMATCH"]);
  Qa.exports = (e) => !Hk.has(e && e.code);
});
var za = q(() => {});
var Ja = q(() => {});
var dt = q((IT, po) => {
  po.exports = Object;
});
var Os = q((kT, uo) => {
  uo.exports = Error;
});
var Vs = q((PT, co) => {
  co.exports = EvalError;
});
var Ns = q((AT, lo) => {
  lo.exports = RangeError;
});
var Ks = q((vT, go) => {
  go.exports = ReferenceError;
});
var lt = q((BT, yo) => {
  yo.exports = SyntaxError;
});
var me = q((TT, mo) => {
  mo.exports = TypeError;
});
var $s = q((CT, Ro) => {
  Ro.exports = URIError;
});
var zs = q((wT, qo) => {
  qo.exports = Math.abs;
});
var Js = q((UT, ho) => {
  ho.exports = Math.floor;
});
var js = q((GT, bo) => {
  bo.exports = Math.max;
});
var Ys = q((ST, fo) => {
  fo.exports = Math.min;
});
var Zs = q((ET, xo) => {
  xo.exports = Math.pow;
});
var Xs = q((LT, Io) => {
  Io.exports = Math.round;
});
var Po = q((_T, ko) => {
  ko.exports = Number.isNaN || function(t) {
    return t !== t;
  };
});
var er = q((WT, Ao) => {
  var BP = Po();
  Ao.exports = function(t) {
    return BP(t) || t === 0 ? t : t < 0 ? -1 : 1;
  };
});
var Bo = q((QT, vo) => {
  vo.exports = Object.getOwnPropertyDescriptor;
});
var we = q((DT, To) => {
  var gt = Bo();
  if (gt)
    try {
      gt([], "length");
    } catch {
      gt = null;
    }
  To.exports = gt;
});
var Ue = q((HT, Co) => {
  var yt = Object.defineProperty || false;
  if (yt)
    try {
      yt({}, "a", { value: 1 });
    } catch {
      yt = false;
    }
  Co.exports = yt;
});
var Uo = q((MT, wo) => {
  wo.exports = function() {
    if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
      return false;
    if (typeof Symbol.iterator == "symbol")
      return true;
    var t = {}, n = Symbol("test"), r = Object(n);
    if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
      return false;
    var a = 42;
    t[n] = a;
    for (var o in t)
      return false;
    if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
      return false;
    var i = Object.getOwnPropertySymbols(t);
    if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(t, n))
      return false;
    if (typeof Object.getOwnPropertyDescriptor == "function") {
      var p = Object.getOwnPropertyDescriptor(t, n);
      if (p.value !== a || p.enumerable !== true)
        return false;
    }
    return true;
  };
});
var tr = q((FT, So) => {
  var Go = typeof Symbol < "u" && Symbol, TP = Uo();
  So.exports = function() {
    return typeof Go != "function" || typeof Symbol != "function" || typeof Go("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? false : TP();
  };
});
var mt = q((OT, Eo) => {
  Eo.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
});
var Rt = q((VT, Lo) => {
  var CP = dt();
  Lo.exports = CP.getPrototypeOf || null;
});
var Qo = q((NT, Wo) => {
  var wP = "Function.prototype.bind called on incompatible ", UP = Object.prototype.toString, GP = Math.max, SP = "[object Function]", _o = function(t, n) {
    for (var r = [], a = 0;a < t.length; a += 1)
      r[a] = t[a];
    for (var o = 0;o < n.length; o += 1)
      r[o + t.length] = n[o];
    return r;
  }, EP = function(t, n) {
    for (var r = [], a = n || 0, o = 0;a < t.length; a += 1, o += 1)
      r[o] = t[a];
    return r;
  }, LP = function(e, t) {
    for (var n = "", r = 0;r < e.length; r += 1)
      n += e[r], r + 1 < e.length && (n += t);
    return n;
  };
  Wo.exports = function(t) {
    var n = this;
    if (typeof n != "function" || UP.apply(n) !== SP)
      throw new TypeError(wP + n);
    for (var r = EP(arguments, 1), a, o = function() {
      if (this instanceof a) {
        var y = n.apply(this, _o(r, arguments));
        return Object(y) === y ? y : this;
      }
      return n.apply(t, _o(r, arguments));
    }, i = GP(0, n.length - r.length), p = [], u = 0;u < i; u++)
      p[u] = "$" + u;
    if (a = Function("binder", "return function (" + LP(p, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
      var s = function() {};
      s.prototype = n.prototype, a.prototype = new s, s.prototype = null;
    }
    return a;
  };
});
var Re = q((KT, Do) => {
  var _P = Qo();
  Do.exports = Function.prototype.bind || _P;
});
var ze = q(($T, Ho) => {
  Ho.exports = Function.prototype.call;
});
var qt = q((zT, Mo) => {
  Mo.exports = Function.prototype.apply;
});
var Oo = q((JT, Fo) => {
  Fo.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
});
var No = q((jT, Vo) => {
  var WP = Re(), QP = qt(), DP = ze(), HP = Oo();
  Vo.exports = HP || WP.call(DP, QP);
});
var $o = q((YT, Ko) => {
  var MP = Re(), FP = me(), OP = ze(), VP = No();
  Ko.exports = function(t) {
    if (t.length < 1 || typeof t[0] != "function")
      throw new FP("a function is required");
    return VP(MP, OP, t);
  };
});
var Xo = q((ZT, Zo) => {
  var NP = $o(), zo = we(), jo;
  try {
    jo = [].__proto__ === Array.prototype;
  } catch (e) {
    if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS")
      throw e;
  }
  var sr = !!jo && zo && zo(Object.prototype, "__proto__"), Yo = Object, Jo = Yo.getPrototypeOf;
  Zo.exports = sr && typeof sr.get == "function" ? NP([sr.get]) : typeof Jo == "function" ? function(t) {
    return Jo(t == null ? t : Yo(t));
  } : false;
});
var rr = q((XT, ri) => {
  var ei = mt(), ti = Rt(), si = Xo();
  ri.exports = ei ? function(t) {
    return ei(t);
  } : ti ? function(t) {
    if (!t || typeof t != "object" && typeof t != "function")
      throw new TypeError("getProto: not an object");
    return ti(t);
  } : si ? function(t) {
    return si(t);
  } : null;
});
var nr = q((eC, ni) => {
  var KP = Function.prototype.call, $P = Object.prototype.hasOwnProperty, zP = Re();
  ni.exports = zP.call(KP, $P);
});
var di = q((tC, ci) => {
  var k, JP = dt(), jP = Os(), YP = Vs(), ZP = Ns(), XP = Ks(), Le = lt(), Ee = me(), eA = $s(), tA = zs(), sA = Js(), rA = js(), nA = Ys(), aA = Zs(), oA = Xs(), iA = er(), pi = Function, ar = function(e) {
    try {
      return pi('"use strict"; return (' + e + ").constructor;")();
    } catch {}
  }, Je = we(), pA = Ue(), or = function() {
    throw new Ee;
  }, uA = Je ? function() {
    try {
      return arguments.callee, or;
    } catch {
      try {
        return Je(arguments, "callee").get;
      } catch {
        return or;
      }
    }
  }() : or, Ge = tr()(), _ = rr(), cA = Rt(), dA = mt(), ui = qt(), je = ze(), Se = {}, lA = typeof Uint8Array > "u" || !_ ? k : _(Uint8Array), qe = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? k : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer, "%ArrayIteratorPrototype%": Ge && _ ? _([][Symbol.iterator]()) : k, "%AsyncFromSyncIteratorPrototype%": k, "%AsyncFunction%": Se, "%AsyncGenerator%": Se, "%AsyncGeneratorFunction%": Se, "%AsyncIteratorPrototype%": Se, "%Atomics%": typeof Atomics > "u" ? k : Atomics, "%BigInt%": typeof BigInt > "u" ? k : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? k : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? k : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? k : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": jP, "%eval%": eval, "%EvalError%": YP, "%Float32Array%": typeof Float32Array > "u" ? k : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? k : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry, "%Function%": pi, "%GeneratorFunction%": Se, "%Int8Array%": typeof Int8Array > "u" ? k : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? k : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? k : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": Ge && _ ? _(_([][Symbol.iterator]())) : k, "%JSON%": typeof JSON == "object" ? JSON : k, "%Map%": typeof Map > "u" ? k : Map, "%MapIteratorPrototype%": typeof Map > "u" || !Ge || !_ ? k : _(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": JP, "%Object.getOwnPropertyDescriptor%": Je, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? k : Promise, "%Proxy%": typeof Proxy > "u" ? k : Proxy, "%RangeError%": ZP, "%ReferenceError%": XP, "%Reflect%": typeof Reflect > "u" ? k : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? k : Set, "%SetIteratorPrototype%": typeof Set > "u" || !Ge || !_ ? k : _(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? k : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": Ge && _ ? _(""[Symbol.iterator]()) : k, "%Symbol%": Ge ? Symbol : k, "%SyntaxError%": Le, "%ThrowTypeError%": uA, "%TypedArray%": lA, "%TypeError%": Ee, "%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? k : Uint32Array, "%URIError%": eA, "%WeakMap%": typeof WeakMap > "u" ? k : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? k : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? k : WeakSet, "%Function.prototype.call%": je, "%Function.prototype.apply%": ui, "%Object.defineProperty%": pA, "%Object.getPrototypeOf%": cA, "%Math.abs%": tA, "%Math.floor%": sA, "%Math.max%": rA, "%Math.min%": nA, "%Math.pow%": aA, "%Math.round%": oA, "%Math.sign%": iA, "%Reflect.getPrototypeOf%": dA };
  if (_)
    try {
      null.error;
    } catch (e) {
      ai = _(_(e)), qe["%Error.prototype%"] = ai;
    }
  var ai, gA = function e(t) {
    var n;
    if (t === "%AsyncFunction%")
      n = ar("async function () {}");
    else if (t === "%GeneratorFunction%")
      n = ar("function* () {}");
    else if (t === "%AsyncGeneratorFunction%")
      n = ar("async function* () {}");
    else if (t === "%AsyncGenerator%") {
      var r = e("%AsyncGeneratorFunction%");
      r && (n = r.prototype);
    } else if (t === "%AsyncIteratorPrototype%") {
      var a = e("%AsyncGenerator%");
      a && _ && (n = _(a.prototype));
    }
    return qe[t] = n, n;
  }, oi = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, Ye = Re(), ht = nr(), yA = Ye.call(je, Array.prototype.concat), mA = Ye.call(ui, Array.prototype.splice), ii = Ye.call(je, String.prototype.replace), bt = Ye.call(je, String.prototype.slice), RA = Ye.call(je, RegExp.prototype.exec), qA = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, hA = /\\(\\)?/g, bA = function(t) {
    var n = bt(t, 0, 1), r = bt(t, -1);
    if (n === "%" && r !== "%")
      throw new Le("invalid intrinsic syntax, expected closing `%`");
    if (r === "%" && n !== "%")
      throw new Le("invalid intrinsic syntax, expected opening `%`");
    var a = [];
    return ii(t, qA, function(o, i, p, u) {
      a[a.length] = p ? ii(u, hA, "$1") : i || o;
    }), a;
  }, fA = function(t, n) {
    var r = t, a;
    if (ht(oi, r) && (a = oi[r], r = "%" + a[0] + "%"), ht(qe, r)) {
      var o = qe[r];
      if (o === Se && (o = gA(r)), typeof o > "u" && !n)
        throw new Ee("intrinsic " + t + " exists, but is not available. Please file an issue!");
      return { alias: a, name: r, value: o };
    }
    throw new Le("intrinsic " + t + " does not exist!");
  };
  ci.exports = function(t, n) {
    if (typeof t != "string" || t.length === 0)
      throw new Ee("intrinsic name must be a non-empty string");
    if (arguments.length > 1 && typeof n != "boolean")
      throw new Ee('"allowMissing" argument must be a boolean');
    if (RA(/^%?[^%]*%?$/, t) === null)
      throw new Le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
    var r = bA(t), a = r.length > 0 ? r[0] : "", o = fA("%" + a + "%", n), i = o.name, p = o.value, u = false, s = o.alias;
    s && (a = s[0], mA(r, yA([0, 1], s)));
    for (var y = 1, P = true;y < r.length; y += 1) {
      var R = r[y], x = bt(R, 0, 1), f = bt(R, -1);
      if ((x === '"' || x === "'" || x === "`" || f === '"' || f === "'" || f === "`") && x !== f)
        throw new Le("property names with quotes must have matching quotes");
      if ((R === "constructor" || !P) && (u = true), a += "." + R, i = "%" + a + "%", ht(qe, i))
        p = qe[i];
      else if (p != null) {
        if (!(R in p)) {
          if (!n)
            throw new Ee("base intrinsic for " + t + " exists, but the property is not available.");
          return;
        }
        if (Je && y + 1 >= r.length) {
          var E = Je(p, R);
          P = !!E, P && "get" in E && !("originalValue" in E.get) ? p = E.get : p = p[R];
        } else
          P = ht(p, R), p = p[R];
        P && !u && (qe[i] = p);
      }
    }
    return p;
  };
});
var It = q((sC, qi) => {
  var I, xA = dt(), IA = Os(), kA = Vs(), PA = Ns(), AA = Ks(), De = lt(), Qe = me(), vA = $s(), BA = zs(), TA = Js(), CA = js(), wA = Ys(), UA = Zs(), GA = Xs(), SA = er(), mi = Function, ir = function(e) {
    try {
      return mi('"use strict"; return (' + e + ").constructor;")();
    } catch {}
  }, Ze = we(), EA = Ue(), pr = function() {
    throw new Qe;
  }, LA = Ze ? function() {
    try {
      return arguments.callee, pr;
    } catch {
      try {
        return Ze(arguments, "callee").get;
      } catch {
        return pr;
      }
    }
  }() : pr, _e = tr()(), W = rr(), _A = Rt(), WA = mt(), Ri = qt(), Xe = ze(), We = {}, QA = typeof Uint8Array > "u" || !W ? I : W(Uint8Array), he = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? I : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? I : ArrayBuffer, "%ArrayIteratorPrototype%": _e && W ? W([][Symbol.iterator]()) : I, "%AsyncFromSyncIteratorPrototype%": I, "%AsyncFunction%": We, "%AsyncGenerator%": We, "%AsyncGeneratorFunction%": We, "%AsyncIteratorPrototype%": We, "%Atomics%": typeof Atomics > "u" ? I : Atomics, "%BigInt%": typeof BigInt > "u" ? I : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? I : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? I : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? I : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": IA, "%eval%": eval, "%EvalError%": kA, "%Float16Array%": typeof Float16Array > "u" ? I : Float16Array, "%Float32Array%": typeof Float32Array > "u" ? I : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? I : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? I : FinalizationRegistry, "%Function%": mi, "%GeneratorFunction%": We, "%Int8Array%": typeof Int8Array > "u" ? I : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? I : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? I : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": _e && W ? W(W([][Symbol.iterator]())) : I, "%JSON%": typeof JSON == "object" ? JSON : I, "%Map%": typeof Map > "u" ? I : Map, "%MapIteratorPrototype%": typeof Map > "u" || !_e || !W ? I : W(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": xA, "%Object.getOwnPropertyDescriptor%": Ze, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? I : Promise, "%Proxy%": typeof Proxy > "u" ? I : Proxy, "%RangeError%": PA, "%ReferenceError%": AA, "%Reflect%": typeof Reflect > "u" ? I : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? I : Set, "%SetIteratorPrototype%": typeof Set > "u" || !_e || !W ? I : W(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? I : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": _e && W ? W(""[Symbol.iterator]()) : I, "%Symbol%": _e ? Symbol : I, "%SyntaxError%": De, "%ThrowTypeError%": LA, "%TypedArray%": QA, "%TypeError%": Qe, "%Uint8Array%": typeof Uint8Array > "u" ? I : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? I : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? I : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? I : Uint32Array, "%URIError%": vA, "%WeakMap%": typeof WeakMap > "u" ? I : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? I : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? I : WeakSet, "%Function.prototype.call%": Xe, "%Function.prototype.apply%": Ri, "%Object.defineProperty%": EA, "%Object.getPrototypeOf%": _A, "%Math.abs%": BA, "%Math.floor%": TA, "%Math.max%": CA, "%Math.min%": wA, "%Math.pow%": UA, "%Math.round%": GA, "%Math.sign%": SA, "%Reflect.getPrototypeOf%": WA };
  if (W)
    try {
      null.error;
    } catch (e) {
      li = W(W(e)), he["%Error.prototype%"] = li;
    }
  var li, DA = function e(t) {
    var n;
    if (t === "%AsyncFunction%")
      n = ir("async function () {}");
    else if (t === "%GeneratorFunction%")
      n = ir("function* () {}");
    else if (t === "%AsyncGeneratorFunction%")
      n = ir("async function* () {}");
    else if (t === "%AsyncGenerator%") {
      var r = e("%AsyncGeneratorFunction%");
      r && (n = r.prototype);
    } else if (t === "%AsyncIteratorPrototype%") {
      var a = e("%AsyncGenerator%");
      a && W && (n = W(a.prototype));
    }
    return he[t] = n, n;
  }, gi = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, et = Re(), ft = nr(), HA = et.call(Xe, Array.prototype.concat), MA = et.call(Ri, Array.prototype.splice), yi = et.call(Xe, String.prototype.replace), xt = et.call(Xe, String.prototype.slice), FA = et.call(Xe, RegExp.prototype.exec), OA = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, VA = /\\(\\)?/g, NA = function(t) {
    var n = xt(t, 0, 1), r = xt(t, -1);
    if (n === "%" && r !== "%")
      throw new De("invalid intrinsic syntax, expected closing `%`");
    if (r === "%" && n !== "%")
      throw new De("invalid intrinsic syntax, expected opening `%`");
    var a = [];
    return yi(t, OA, function(o, i, p, u) {
      a[a.length] = p ? yi(u, VA, "$1") : i || o;
    }), a;
  }, KA = function(t, n) {
    var r = t, a;
    if (ft(gi, r) && (a = gi[r], r = "%" + a[0] + "%"), ft(he, r)) {
      var o = he[r];
      if (o === We && (o = DA(r)), typeof o > "u" && !n)
        throw new Qe("intrinsic " + t + " exists, but is not available. Please file an issue!");
      return { alias: a, name: r, value: o };
    }
    throw new De("intrinsic " + t + " does not exist!");
  };
  qi.exports = function(t, n) {
    if (typeof t != "string" || t.length === 0)
      throw new Qe("intrinsic name must be a non-empty string");
    if (arguments.length > 1 && typeof n != "boolean")
      throw new Qe('"allowMissing" argument must be a boolean');
    if (FA(/^%?[^%]*%?$/, t) === null)
      throw new De("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
    var r = NA(t), a = r.length > 0 ? r[0] : "", o = KA("%" + a + "%", n), i = o.name, p = o.value, u = false, s = o.alias;
    s && (a = s[0], MA(r, HA([0, 1], s)));
    for (var y = 1, P = true;y < r.length; y += 1) {
      var R = r[y], x = xt(R, 0, 1), f = xt(R, -1);
      if ((x === '"' || x === "'" || x === "`" || f === '"' || f === "'" || f === "`") && x !== f)
        throw new De("property names with quotes must have matching quotes");
      if ((R === "constructor" || !P) && (u = true), a += "." + R, i = "%" + a + "%", ft(he, i))
        p = he[i];
      else if (p != null) {
        if (!(R in p)) {
          if (!n)
            throw new Qe("base intrinsic for " + t + " exists, but the property is not available.");
          return;
        }
        if (Ze && y + 1 >= r.length) {
          var E = Ze(p, R);
          P = !!E, P && "get" in E && !("originalValue" in E.get) ? p = E.get : p = p[R];
        } else
          P = ft(p, R), p = p[R];
        P && !u && (he[i] = p);
      }
    }
    return p;
  };
});
var xi = q((rC, fi) => {
  var hi = Ue(), $A = lt(), He = me(), bi = we();
  fi.exports = function(t, n, r) {
    if (!t || typeof t != "object" && typeof t != "function")
      throw new He("`obj` must be an object or a function`");
    if (typeof n != "string" && typeof n != "symbol")
      throw new He("`property` must be a string or a symbol`");
    if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
      throw new He("`nonEnumerable`, if provided, must be a boolean or null");
    if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
      throw new He("`nonWritable`, if provided, must be a boolean or null");
    if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
      throw new He("`nonConfigurable`, if provided, must be a boolean or null");
    if (arguments.length > 6 && typeof arguments[6] != "boolean")
      throw new He("`loose`, if provided, must be a boolean");
    var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, p = arguments.length > 6 ? arguments[6] : false, u = !!bi && bi(t, n);
    if (hi)
      hi(t, n, { configurable: i === null && u ? u.configurable : !i, enumerable: a === null && u ? u.enumerable : !a, value: r, writable: o === null && u ? u.writable : !o });
    else if (p || !a && !o && !i)
      t[n] = r;
    else
      throw new $A("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
  };
});
var Pi = q((nC, ki) => {
  var ur = Ue(), Ii = function() {
    return !!ur;
  };
  Ii.hasArrayLengthDefineBug = function() {
    if (!ur)
      return null;
    try {
      return ur([], "length", { value: 1 }).length !== 1;
    } catch {
      return true;
    }
  };
  ki.exports = Ii;
});
var Ci = q((aC, Ti) => {
  var zA = It(), Ai = xi(), JA = Pi()(), vi = we(), Bi = me(), jA = zA("%Math.floor%");
  Ti.exports = function(t, n) {
    if (typeof t != "function")
      throw new Bi("`fn` is not a function");
    if (typeof n != "number" || n < 0 || n > 4294967295 || jA(n) !== n)
      throw new Bi("`length` must be a positive 32-bit integer");
    var r = arguments.length > 2 && !!arguments[2], a = true, o = true;
    if ("length" in t && vi) {
      var i = vi(t, "length");
      i && !i.configurable && (a = false), i && !i.writable && (o = false);
    }
    return (a || o || !r) && (JA ? Ai(t, "length", n, true, true) : Ai(t, "length", n)), t;
  };
});
var Li = q((oC, kt) => {
  var cr = Re(), Pt = It(), YA = Ci(), ZA = me(), Gi = Pt("%Function.prototype.apply%"), Si = Pt("%Function.prototype.call%"), Ei = Pt("%Reflect.apply%", true) || cr.call(Si, Gi), wi = Ue(), XA = Pt("%Math.max%");
  kt.exports = function(t) {
    if (typeof t != "function")
      throw new ZA("a function is required");
    var n = Ei(cr, Si, arguments);
    return YA(n, 1 + XA(0, t.length - (arguments.length - 1)), true);
  };
  var Ui = function() {
    return Ei(cr, Gi, arguments);
  };
  wi ? wi(kt.exports, "apply", { value: Ui }) : kt.exports.apply = Ui;
});
var Di = q((iC, Qi) => {
  var _i = It(), Wi = Li(), ev = Wi(_i("String.prototype.indexOf"));
  Qi.exports = function(t, n) {
    var r = _i(t, !!n);
    return typeof r == "function" && ev(t, ".prototype.") > -1 ? Wi(r) : r;
  };
});
var Hi = q(() => {});
var ip = q((cC, op) => {
  var fr = typeof Map == "function" && Map.prototype, dr = Object.getOwnPropertyDescriptor && fr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, vt = fr && dr && typeof dr.get == "function" ? dr.get : null, Mi = fr && Map.prototype.forEach, xr = typeof Set == "function" && Set.prototype, lr = Object.getOwnPropertyDescriptor && xr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = xr && lr && typeof lr.get == "function" ? lr.get : null, Fi = xr && Set.prototype.forEach, tv = typeof WeakMap == "function" && WeakMap.prototype, st = tv ? WeakMap.prototype.has : null, sv = typeof WeakSet == "function" && WeakSet.prototype, rt = sv ? WeakSet.prototype.has : null, rv = typeof WeakRef == "function" && WeakRef.prototype, Oi = rv ? WeakRef.prototype.deref : null, nv = Boolean.prototype.valueOf, av = Object.prototype.toString, ov = Function.prototype.toString, iv = String.prototype.match, Ir = String.prototype.slice, ue = String.prototype.replace, pv = String.prototype.toUpperCase, Vi = String.prototype.toLowerCase, Xi = RegExp.prototype.test, Ni = Array.prototype.concat, Y = Array.prototype.join, uv = Array.prototype.slice, Ki = Math.floor, mr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gr = Object.getOwnPropertySymbols, Rr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Me = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Me || true) ? Symbol.toStringTag : null, ep = Object.prototype.propertyIsEnumerable, $i = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
    return e.__proto__;
  } : null);
  function zi(e, t) {
    if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1000 && e < 1000 || Xi.call(/e/, t))
      return t;
    var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
    if (typeof e == "number") {
      var r = e < 0 ? -Ki(-e) : Ki(e);
      if (r !== e) {
        var a = String(r), o = Ir.call(t, a.length + 1);
        return ue.call(a, n, "$&_") + "." + ue.call(ue.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
      }
    }
    return ue.call(t, n, "$&_");
  }
  var qr = Hi(), Ji = qr.custom, ji = rp(Ji) ? Ji : null, tp = { __proto__: null, double: '"', single: "'" }, cv = { __proto__: null, double: /(["\\])/g, single: /(['\\])/g };
  op.exports = function e(t, n, r, a) {
    var o = n || {};
    if (se(o, "quoteStyle") && !se(tp, o.quoteStyle))
      throw new TypeError('option "quoteStyle" must be "single" or "double"');
    if (se(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
      throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
    var i = se(o, "customInspect") ? o.customInspect : true;
    if (typeof i != "boolean" && i !== "symbol")
      throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
    if (se(o, "indent") && o.indent !== null && o.indent !== "\t" && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
      throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
    if (se(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
      throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
    var p = o.numericSeparator;
    if (typeof t > "u")
      return "undefined";
    if (t === null)
      return "null";
    if (typeof t == "boolean")
      return t ? "true" : "false";
    if (typeof t == "string")
      return ap(t, o);
    if (typeof t == "number") {
      if (t === 0)
        return 1 / 0 / t > 0 ? "0" : "-0";
      var u = String(t);
      return p ? zi(t, u) : u;
    }
    if (typeof t == "bigint") {
      var s = String(t) + "n";
      return p ? zi(t, s) : s;
    }
    var y = typeof o.depth > "u" ? 5 : o.depth;
    if (typeof r > "u" && (r = 0), r >= y && y > 0 && typeof t == "object")
      return hr(t) ? "[Array]" : "[Object]";
    var P = Tv(o, r);
    if (typeof a > "u")
      a = [];
    else if (np(a, t) >= 0)
      return "[Circular]";
    function R(J, oe, ee) {
      if (oe && (a = uv.call(a), a.push(oe)), ee) {
        var $e = { depth: o.depth };
        return se(o, "quoteStyle") && ($e.quoteStyle = o.quoteStyle), e(J, $e, r + 1, a);
      }
      return e(J, o, r + 1, a);
    }
    if (typeof t == "function" && !Yi(t)) {
      var x = bv(t), f = At(t, R);
      return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (f.length > 0 ? " { " + Y.call(f, ", ") + " }" : "");
    }
    if (rp(t)) {
      var E = Me ? ue.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Rr.call(t);
      return typeof t == "object" && !Me ? tt(E) : E;
    }
    if (Av(t)) {
      for (var L = "<" + Vi.call(String(t.nodeName)), A = t.attributes || [], X = 0;X < A.length; X++)
        L += " " + A[X].name + "=" + sp(dv(A[X].value), "double", o);
      return L += ">", t.childNodes && t.childNodes.length && (L += "..."), L += "</" + Vi.call(String(t.nodeName)) + ">", L;
    }
    if (hr(t)) {
      if (t.length === 0)
        return "[]";
      var ne = At(t, R);
      return P && !Bv(ne) ? "[" + br(ne, P) + "]" : "[ " + Y.call(ne, ", ") + " ]";
    }
    if (gv(t)) {
      var Ae = At(t, R);
      return !("cause" in Error.prototype) && "cause" in t && !ep.call(t, "cause") ? "{ [" + String(t) + "] " + Y.call(Ni.call("[cause]: " + R(t.cause), Ae), ", ") + " }" : Ae.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + Y.call(Ae, ", ") + " }";
    }
    if (typeof t == "object" && i) {
      if (ji && typeof t[ji] == "function" && qr)
        return qr(t, { depth: y - r });
      if (i !== "symbol" && typeof t.inspect == "function")
        return t.inspect();
    }
    if (fv(t)) {
      var Ve = [];
      return Mi && Mi.call(t, function(J, oe) {
        Ve.push(R(oe, t, true) + " => " + R(J, t));
      }), Zi("Map", vt.call(t), Ve, P);
    }
    if (kv(t)) {
      var Ne = [];
      return Fi && Fi.call(t, function(J) {
        Ne.push(R(J, t));
      }), Zi("Set", Bt.call(t), Ne, P);
    }
    if (xv(t))
      return yr("WeakMap");
    if (Pv(t))
      return yr("WeakSet");
    if (Iv(t))
      return yr("WeakRef");
    if (mv(t))
      return tt(R(Number(t)));
    if (qv(t))
      return tt(R(mr.call(t)));
    if (Rv(t))
      return tt(nv.call(t));
    if (yv(t))
      return tt(R(String(t)));
    if (typeof window < "u" && t === window)
      return "{ [object Window] }";
    if (typeof globalThis < "u" && t === globalThis || typeof global < "u" && t === global)
      return "{ [object globalThis] }";
    if (!lv(t) && !Yi(t)) {
      var de = At(t, R), Ke = $i ? $i(t) === Object.prototype : t instanceof Object || t.constructor === Object, ae = t instanceof Object ? "" : "null prototype", ve = !Ke && F && Object(t) === t && F in t ? Ir.call(ce(t), 8, -1) : ae ? "Object" : "", le = Ke || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Be = le + (ve || ae ? "[" + Y.call(Ni.call([], ve || [], ae || []), ": ") + "] " : "");
      return de.length === 0 ? Be + "{}" : P ? Be + "{" + br(de, P) + "}" : Be + "{ " + Y.call(de, ", ") + " }";
    }
    return String(t);
  };
  function sp(e, t, n) {
    var r = n.quoteStyle || t, a = tp[r];
    return a + e + a;
  }
  function dv(e) {
    return ue.call(String(e), /"/g, "&quot;");
  }
  function hr(e) {
    return ce(e) === "[object Array]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function lv(e) {
    return ce(e) === "[object Date]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function Yi(e) {
    return ce(e) === "[object RegExp]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function gv(e) {
    return ce(e) === "[object Error]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function yv(e) {
    return ce(e) === "[object String]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function mv(e) {
    return ce(e) === "[object Number]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function Rv(e) {
    return ce(e) === "[object Boolean]" && (!F || !(typeof e == "object" && (F in e)));
  }
  function rp(e) {
    if (Me)
      return e && typeof e == "object" && e instanceof Symbol;
    if (typeof e == "symbol")
      return true;
    if (!e || typeof e != "object" || !Rr)
      return false;
    try {
      return Rr.call(e), true;
    } catch {}
    return false;
  }
  function qv(e) {
    if (!e || typeof e != "object" || !mr)
      return false;
    try {
      return mr.call(e), true;
    } catch {}
    return false;
  }
  var hv = Object.prototype.hasOwnProperty || function(e) {
    return e in this;
  };
  function se(e, t) {
    return hv.call(e, t);
  }
  function ce(e) {
    return av.call(e);
  }
  function bv(e) {
    if (e.name)
      return e.name;
    var t = iv.call(ov.call(e), /^function\s*([\w$]+)/);
    return t ? t[1] : null;
  }
  function np(e, t) {
    if (e.indexOf)
      return e.indexOf(t);
    for (var n = 0, r = e.length;n < r; n++)
      if (e[n] === t)
        return n;
    return -1;
  }
  function fv(e) {
    if (!vt || !e || typeof e != "object")
      return false;
    try {
      vt.call(e);
      try {
        Bt.call(e);
      } catch {
        return true;
      }
      return e instanceof Map;
    } catch {}
    return false;
  }
  function xv(e) {
    if (!st || !e || typeof e != "object")
      return false;
    try {
      st.call(e, st);
      try {
        rt.call(e, rt);
      } catch {
        return true;
      }
      return e instanceof WeakMap;
    } catch {}
    return false;
  }
  function Iv(e) {
    if (!Oi || !e || typeof e != "object")
      return false;
    try {
      return Oi.call(e), true;
    } catch {}
    return false;
  }
  function kv(e) {
    if (!Bt || !e || typeof e != "object")
      return false;
    try {
      Bt.call(e);
      try {
        vt.call(e);
      } catch {
        return true;
      }
      return e instanceof Set;
    } catch {}
    return false;
  }
  function Pv(e) {
    if (!rt || !e || typeof e != "object")
      return false;
    try {
      rt.call(e, rt);
      try {
        st.call(e, st);
      } catch {
        return true;
      }
      return e instanceof WeakSet;
    } catch {}
    return false;
  }
  function Av(e) {
    return !e || typeof e != "object" ? false : typeof HTMLElement < "u" && e instanceof HTMLElement ? true : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
  }
  function ap(e, t) {
    if (e.length > t.maxStringLength) {
      var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
      return ap(Ir.call(e, 0, t.maxStringLength), t) + r;
    }
    var a = cv[t.quoteStyle || "single"];
    a.lastIndex = 0;
    var o = ue.call(ue.call(e, a, "\\$1"), /[\x00-\x1f]/g, vv);
    return sp(o, "single", t);
  }
  function vv(e) {
    var t = e.charCodeAt(0), n = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[t];
    return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + pv.call(t.toString(16));
  }
  function tt(e) {
    return "Object(" + e + ")";
  }
  function yr(e) {
    return e + " { ? }";
  }
  function Zi(e, t, n, r) {
    var a = r ? br(n, r) : Y.call(n, ", ");
    return e + " (" + t + ") {" + a + "}";
  }
  function Bv(e) {
    for (var t = 0;t < e.length; t++)
      if (np(e[t], `
`) >= 0)
        return false;
    return true;
  }
  function Tv(e, t) {
    var n;
    if (e.indent === "\t")
      n = "\t";
    else if (typeof e.indent == "number" && e.indent > 0)
      n = Y.call(Array(e.indent + 1), " ");
    else
      return null;
    return { base: n, prev: Y.call(Array(t + 1), n) };
  }
  function br(e, t) {
    if (e.length === 0)
      return "";
    var n = `
` + t.prev + t.base;
    return n + Y.call(e, "," + n) + `
` + t.prev;
  }
  function At(e, t) {
    var n = hr(e), r = [];
    if (n) {
      r.length = e.length;
      for (var a = 0;a < e.length; a++)
        r[a] = se(e, a) ? t(e[a], e) : "";
    }
    var o = typeof gr == "function" ? gr(e) : [], i;
    if (Me) {
      i = {};
      for (var p = 0;p < o.length; p++)
        i["$" + o[p]] = o[p];
    }
    for (var u in e)
      se(e, u) && (n && String(Number(u)) === u && u < e.length || Me && i["$" + u] instanceof Symbol || (Xi.call(/[^\w$]/, u) ? r.push(t(u, e) + ": " + t(e[u], e)) : r.push(u + ": " + t(e[u], e))));
    if (typeof gr == "function")
      for (var s = 0;s < o.length; s++)
        ep.call(e, o[s]) && r.push("[" + t(o[s]) + "]: " + t(e[o[s]], e));
    return r;
  }
});
var up = q((dC, pp) => {
  var kr = di(), Fe = Di(), Cv = ip(), wv = kr("%TypeError%"), Tt = kr("%WeakMap%", true), Ct = kr("%Map%", true), Uv = Fe("WeakMap.prototype.get", true), Gv = Fe("WeakMap.prototype.set", true), Sv = Fe("WeakMap.prototype.has", true), Ev = Fe("Map.prototype.get", true), Lv = Fe("Map.prototype.set", true), _v = Fe("Map.prototype.has", true), Pr = function(e, t) {
    for (var n = e, r;(r = n.next) !== null; n = r)
      if (r.key === t)
        return n.next = r.next, r.next = e.next, e.next = r, r;
  }, Wv = function(e, t) {
    var n = Pr(e, t);
    return n && n.value;
  }, Qv = function(e, t, n) {
    var r = Pr(e, t);
    r ? r.value = n : e.next = { key: t, next: e.next, value: n };
  }, Dv = function(e, t) {
    return !!Pr(e, t);
  };
  pp.exports = function() {
    var t, n, r, a = { assert: function(o) {
      if (!a.has(o))
        throw new wv("Side channel does not contain " + Cv(o));
    }, get: function(o) {
      if (Tt && o && (typeof o == "object" || typeof o == "function")) {
        if (t)
          return Uv(t, o);
      } else if (Ct) {
        if (n)
          return Ev(n, o);
      } else if (r)
        return Wv(r, o);
    }, has: function(o) {
      if (Tt && o && (typeof o == "object" || typeof o == "function")) {
        if (t)
          return Sv(t, o);
      } else if (Ct) {
        if (n)
          return _v(n, o);
      } else if (r)
        return Dv(r, o);
      return false;
    }, set: function(o, i) {
      Tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new Tt), Gv(t, o, i)) : Ct ? (n || (n = new Ct), Lv(n, o, i)) : (r || (r = { key: {}, next: null }), Qv(r, o, i));
    } };
    return a;
  };
});
var wt = q((lC, cp) => {
  var Hv = String.prototype.replace, Mv = /%20/g, Ar = { RFC1738: "RFC1738", RFC3986: "RFC3986" };
  cp.exports = { default: Ar.RFC3986, formatters: { RFC1738: function(e) {
    return Hv.call(e, Mv, "+");
  }, RFC3986: function(e) {
    return String(e);
  } }, RFC1738: Ar.RFC1738, RFC3986: Ar.RFC3986 };
});
var Br = q((gC, lp) => {
  var Fv = wt(), vr = Object.prototype.hasOwnProperty, be = Array.isArray, Z = function() {
    for (var e = [], t = 0;t < 256; ++t)
      e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
    return e;
  }(), Ov = function(t) {
    for (;t.length > 1; ) {
      var n = t.pop(), r = n.obj[n.prop];
      if (be(r)) {
        for (var a = [], o = 0;o < r.length; ++o)
          typeof r[o] < "u" && a.push(r[o]);
        n.obj[n.prop] = a;
      }
    }
  }, dp = function(t, n) {
    for (var r = n && n.plainObjects ? Object.create(null) : {}, a = 0;a < t.length; ++a)
      typeof t[a] < "u" && (r[a] = t[a]);
    return r;
  }, Vv = function e(t, n, r) {
    if (!n)
      return t;
    if (typeof n != "object") {
      if (be(t))
        t.push(n);
      else if (t && typeof t == "object")
        (r && (r.plainObjects || r.allowPrototypes) || !vr.call(Object.prototype, n)) && (t[n] = true);
      else
        return [t, n];
      return t;
    }
    if (!t || typeof t != "object")
      return [t].concat(n);
    var a = t;
    return be(t) && !be(n) && (a = dp(t, r)), be(t) && be(n) ? (n.forEach(function(o, i) {
      if (vr.call(t, i)) {
        var p = t[i];
        p && typeof p == "object" && o && typeof o == "object" ? t[i] = e(p, o, r) : t.push(o);
      } else
        t[i] = o;
    }), t) : Object.keys(n).reduce(function(o, i) {
      var p = n[i];
      return vr.call(o, i) ? o[i] = e(o[i], p, r) : o[i] = p, o;
    }, a);
  }, Nv = function(t, n) {
    return Object.keys(n).reduce(function(r, a) {
      return r[a] = n[a], r;
    }, t);
  }, Kv = function(e, t, n) {
    var r = e.replace(/\+/g, " ");
    if (n === "iso-8859-1")
      return r.replace(/%[0-9a-f]{2}/gi, unescape);
    try {
      return decodeURIComponent(r);
    } catch {
      return r;
    }
  }, $v = function(t, n, r, a, o) {
    if (t.length === 0)
      return t;
    var i = t;
    if (typeof t == "symbol" ? i = Symbol.prototype.toString.call(t) : typeof t != "string" && (i = String(t)), r === "iso-8859-1")
      return escape(i).replace(/%u[0-9a-f]{4}/gi, function(y) {
        return "%26%23" + parseInt(y.slice(2), 16) + "%3B";
      });
    for (var p = "", u = 0;u < i.length; ++u) {
      var s = i.charCodeAt(u);
      if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || o === Fv.RFC1738 && (s === 40 || s === 41)) {
        p += i.charAt(u);
        continue;
      }
      if (s < 128) {
        p = p + Z[s];
        continue;
      }
      if (s < 2048) {
        p = p + (Z[192 | s >> 6] + Z[128 | s & 63]);
        continue;
      }
      if (s < 55296 || s >= 57344) {
        p = p + (Z[224 | s >> 12] + Z[128 | s >> 6 & 63] + Z[128 | s & 63]);
        continue;
      }
      u += 1, s = 65536 + ((s & 1023) << 10 | i.charCodeAt(u) & 1023), p += Z[240 | s >> 18] + Z[128 | s >> 12 & 63] + Z[128 | s >> 6 & 63] + Z[128 | s & 63];
    }
    return p;
  }, zv = function(t) {
    for (var n = [{ obj: { o: t }, prop: "o" }], r = [], a = 0;a < n.length; ++a)
      for (var o = n[a], i = o.obj[o.prop], p = Object.keys(i), u = 0;u < p.length; ++u) {
        var s = p[u], y = i[s];
        typeof y == "object" && y !== null && r.indexOf(y) === -1 && (n.push({ obj: i, prop: s }), r.push(y));
      }
    return Ov(n), t;
  }, Jv = function(t) {
    return Object.prototype.toString.call(t) === "[object RegExp]";
  }, jv = function(t) {
    return !t || typeof t != "object" ? false : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
  }, Yv = function(t, n) {
    return [].concat(t, n);
  }, Zv = function(t, n) {
    if (be(t)) {
      for (var r = [], a = 0;a < t.length; a += 1)
        r.push(n(t[a]));
      return r;
    }
    return n(t);
  };
  lp.exports = { arrayToObject: dp, assign: Nv, combine: Yv, compact: zv, decode: Kv, encode: $v, isBuffer: jv, isRegExp: Jv, maybeMap: Zv, merge: Vv };
});
var hp = q((yC, qp) => {
  var mp = up(), Cr = Br(), nt = wt(), Xv = Object.prototype.hasOwnProperty, gp = { brackets: function(t) {
    return t + "[]";
  }, comma: "comma", indices: function(t, n) {
    return t + "[" + n + "]";
  }, repeat: function(t) {
    return t;
  } }, re = Array.isArray, eB = String.prototype.split, tB = Array.prototype.push, Rp = function(e, t) {
    tB.apply(e, re(t) ? t : [t]);
  }, sB = Date.prototype.toISOString, yp = nt.default, H = { addQueryPrefix: false, allowDots: false, charset: "utf-8", charsetSentinel: false, delimiter: "&", encode: true, encoder: Cr.encode, encodeValuesOnly: false, format: yp, formatter: nt.formatters[yp], indices: false, serializeDate: function(t) {
    return sB.call(t);
  }, skipNulls: false, strictNullHandling: false }, rB = function(t) {
    return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
  }, Tr = {}, nB = function e(t, n, r, a, o, i, p, u, s, y, P, R, x, f, E, L) {
    for (var A = t, X = L, ne = 0, Ae = false;(X = X.get(Tr)) !== undefined && !Ae; ) {
      var Ve = X.get(t);
      if (ne += 1, typeof Ve < "u") {
        if (Ve === ne)
          throw new RangeError("Cyclic object value");
        Ae = true;
      }
      typeof X.get(Tr) > "u" && (ne = 0);
    }
    if (typeof u == "function" ? A = u(n, A) : A instanceof Date ? A = P(A) : r === "comma" && re(A) && (A = Cr.maybeMap(A, function(Qt) {
      return Qt instanceof Date ? P(Qt) : Qt;
    })), A === null) {
      if (o)
        return p && !f ? p(n, H.encoder, E, "key", R) : n;
      A = "";
    }
    if (rB(A) || Cr.isBuffer(A)) {
      if (p) {
        var Ne = f ? n : p(n, H.encoder, E, "key", R);
        if (r === "comma" && f) {
          for (var de = eB.call(String(A), ","), Ke = "", ae = 0;ae < de.length; ++ae)
            Ke += (ae === 0 ? "" : ",") + x(p(de[ae], H.encoder, E, "value", R));
          return [x(Ne) + (a && re(A) && de.length === 1 ? "[]" : "") + "=" + Ke];
        }
        return [x(Ne) + "=" + x(p(A, H.encoder, E, "value", R))];
      }
      return [x(n) + "=" + x(String(A))];
    }
    var ve = [];
    if (typeof A > "u")
      return ve;
    var le;
    if (r === "comma" && re(A))
      le = [{ value: A.length > 0 ? A.join(",") || null : undefined }];
    else if (re(u))
      le = u;
    else {
      var Be = Object.keys(A);
      le = s ? Be.sort(s) : Be;
    }
    for (var J = a && re(A) && A.length === 1 ? n + "[]" : n, oe = 0;oe < le.length; ++oe) {
      var ee = le[oe], $e = typeof ee == "object" && typeof ee.value < "u" ? ee.value : A[ee];
      if (!(i && $e === null)) {
        var Gk = re(A) ? typeof r == "function" ? r(J, ee) : J : J + (y ? "." + ee : "[" + ee + "]");
        L.set(t, ne);
        var Wa = mp();
        Wa.set(Tr, L), Rp(ve, e($e, Gk, r, a, o, i, p, u, s, y, P, R, x, f, E, Wa));
      }
    }
    return ve;
  }, aB = function(t) {
    if (!t)
      return H;
    if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
      throw new TypeError("Encoder has to be a function.");
    var n = t.charset || H.charset;
    if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
      throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
    var r = nt.default;
    if (typeof t.format < "u") {
      if (!Xv.call(nt.formatters, t.format))
        throw new TypeError("Unknown format option provided.");
      r = t.format;
    }
    var a = nt.formatters[r], o = H.filter;
    return (typeof t.filter == "function" || re(t.filter)) && (o = t.filter), { addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : H.addQueryPrefix, allowDots: typeof t.allowDots > "u" ? H.allowDots : !!t.allowDots, charset: n, charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : H.charsetSentinel, delimiter: typeof t.delimiter > "u" ? H.delimiter : t.delimiter, encode: typeof t.encode == "boolean" ? t.encode : H.encode, encoder: typeof t.encoder == "function" ? t.encoder : H.encoder, encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : H.encodeValuesOnly, filter: o, format: r, formatter: a, serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : H.serializeDate, skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : H.skipNulls, sort: typeof t.sort == "function" ? t.sort : null, strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : H.strictNullHandling };
  };
  qp.exports = function(e, t) {
    var n = e, r = aB(t), a, o;
    typeof r.filter == "function" ? (o = r.filter, n = o("", n)) : re(r.filter) && (o = r.filter, a = o);
    var i = [];
    if (typeof n != "object" || n === null)
      return "";
    var p;
    t && t.arrayFormat in gp ? p = t.arrayFormat : t && ("indices" in t) ? p = t.indices ? "indices" : "repeat" : p = "indices";
    var u = gp[p];
    if (t && "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
      throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
    var s = u === "comma" && t && t.commaRoundTrip;
    a || (a = Object.keys(n)), r.sort && a.sort(r.sort);
    for (var y = mp(), P = 0;P < a.length; ++P) {
      var R = a[P];
      r.skipNulls && n[R] === null || Rp(i, nB(n[R], R, u, s, r.strictNullHandling, r.skipNulls, r.encode ? r.encoder : null, r.filter, r.sort, r.allowDots, r.serializeDate, r.format, r.formatter, r.encodeValuesOnly, r.charset, y));
    }
    var x = i.join(r.delimiter), f = r.addQueryPrefix === true ? "?" : "";
    return r.charsetSentinel && (r.charset === "iso-8859-1" ? f += "utf8=%26%2310003%3B&" : f += "utf8=%E2%9C%93&"), x.length > 0 ? f + x : "";
  };
});
var xp = q((mC, fp) => {
  var Oe = Br(), wr = Object.prototype.hasOwnProperty, oB = Array.isArray, Q = { allowDots: false, allowPrototypes: false, allowSparse: false, arrayLimit: 20, charset: "utf-8", charsetSentinel: false, comma: false, decoder: Oe.decode, delimiter: "&", depth: 5, ignoreQueryPrefix: false, interpretNumericEntities: false, parameterLimit: 1000, parseArrays: true, plainObjects: false, strictNullHandling: false }, iB = function(e) {
    return e.replace(/&#(\d+);/g, function(t, n) {
      return String.fromCharCode(parseInt(n, 10));
    });
  }, bp = function(e, t) {
    return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
  }, pB = "utf8=%26%2310003%3B", uB = "utf8=%E2%9C%93", cB = function(t, n) {
    var r = {}, a = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = n.parameterLimit === 1 / 0 ? undefined : n.parameterLimit, i = a.split(n.delimiter, o), p = -1, u, s = n.charset;
    if (n.charsetSentinel)
      for (u = 0;u < i.length; ++u)
        i[u].indexOf("utf8=") === 0 && (i[u] === uB ? s = "utf-8" : i[u] === pB && (s = "iso-8859-1"), p = u, u = i.length);
    for (u = 0;u < i.length; ++u)
      if (u !== p) {
        var y = i[u], P = y.indexOf("]="), R = P === -1 ? y.indexOf("=") : P + 1, x, f;
        R === -1 ? (x = n.decoder(y, Q.decoder, s, "key"), f = n.strictNullHandling ? null : "") : (x = n.decoder(y.slice(0, R), Q.decoder, s, "key"), f = Oe.maybeMap(bp(y.slice(R + 1), n), function(E) {
          return n.decoder(E, Q.decoder, s, "value");
        })), f && n.interpretNumericEntities && s === "iso-8859-1" && (f = iB(f)), y.indexOf("[]=") > -1 && (f = oB(f) ? [f] : f), wr.call(r, x) ? r[x] = Oe.combine(r[x], f) : r[x] = f;
      }
    return r;
  }, dB = function(e, t, n, r) {
    for (var a = r ? t : bp(t, n), o = e.length - 1;o >= 0; --o) {
      var i, p = e[o];
      if (p === "[]" && n.parseArrays)
        i = [].concat(a);
      else {
        i = n.plainObjects ? Object.create(null) : {};
        var u = p.charAt(0) === "[" && p.charAt(p.length - 1) === "]" ? p.slice(1, -1) : p, s = parseInt(u, 10);
        !n.parseArrays && u === "" ? i = { 0: a } : !isNaN(s) && p !== u && String(s) === u && s >= 0 && n.parseArrays && s <= n.arrayLimit ? (i = [], i[s] = a) : u !== "__proto__" && (i[u] = a);
      }
      a = i;
    }
    return a;
  }, lB = function(t, n, r, a) {
    if (t) {
      var o = r.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, i = /(\[[^[\]]*])/, p = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(o), s = u ? o.slice(0, u.index) : o, y = [];
      if (s) {
        if (!r.plainObjects && wr.call(Object.prototype, s) && !r.allowPrototypes)
          return;
        y.push(s);
      }
      for (var P = 0;r.depth > 0 && (u = p.exec(o)) !== null && P < r.depth; ) {
        if (P += 1, !r.plainObjects && wr.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
          return;
        y.push(u[1]);
      }
      return u && y.push("[" + o.slice(u.index) + "]"), dB(y, n, r, a);
    }
  }, gB = function(t) {
    if (!t)
      return Q;
    if (t.decoder !== null && t.decoder !== undefined && typeof t.decoder != "function")
      throw new TypeError("Decoder has to be a function.");
    if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
      throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
    var n = typeof t.charset > "u" ? Q.charset : t.charset;
    return { allowDots: typeof t.allowDots > "u" ? Q.allowDots : !!t.allowDots, allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : Q.allowPrototypes, allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : Q.allowSparse, arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : Q.arrayLimit, charset: n, charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : Q.charsetSentinel, comma: typeof t.comma == "boolean" ? t.comma : Q.comma, decoder: typeof t.decoder == "function" ? t.decoder : Q.decoder, delimiter: typeof t.delimiter == "string" || Oe.isRegExp(t.delimiter) ? t.delimiter : Q.delimiter, depth: typeof t.depth == "number" || t.depth === false ? +t.depth : Q.depth, ignoreQueryPrefix: t.ignoreQueryPrefix === true, interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : Q.interpretNumericEntities, parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : Q.parameterLimit, parseArrays: t.parseArrays !== false, plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : Q.plainObjects, strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : Q.strictNullHandling };
  };
  fp.exports = function(e, t) {
    var n = gB(t);
    if (e === "" || e === null || typeof e > "u")
      return n.plainObjects ? Object.create(null) : {};
    for (var r = typeof e == "string" ? cB(e, n) : e, a = n.plainObjects ? Object.create(null) : {}, o = Object.keys(r), i = 0;i < o.length; ++i) {
      var p = o[i], u = lB(p, r[p], n, typeof e == "string");
      a = Oe.merge(a, u, n);
    }
    return n.allowSparse === true ? a : Oe.compact(a);
  };
});
var fe = q((RC, Ip) => {
  var yB = hp(), mB = xp(), RB = wt();
  Ip.exports = { formats: RB, parse: mB, stringify: yB };
});
var $a = {};
j($a, { DEFAULT_OPTIONS: () => Ka, default: () => z, exponentialDelay: () => Va, isIdempotentRequestError: () => Mt, isNetworkError: () => Ht, isNetworkOrIdempotentRequestError: () => Ft, isRetryableError: () => ot, isSafeRequestError: () => Oa, linearDelay: () => Na, namespace: () => at, retryAfter: () => it });
var Ma = te(Da(), 1);
var at = "axios-retry";
function Ht(e) {
  let t = ["ERR_CANCELED", "ECONNABORTED"];
  return e.response || !e.code || t.includes(e.code) ? false : (0, Ma.default)(e);
}
var Fa = ["get", "head", "options"];
var Mk = Fa.concat(["put", "delete"]);
function ot(e) {
  return e.code !== "ECONNABORTED" && (!e.response || e.response.status === 429 || e.response.status >= 500 && e.response.status <= 599);
}
function Oa(e) {
  return e.config?.method ? ot(e) && Fa.indexOf(e.config.method) !== -1 : false;
}
function Mt(e) {
  return e.config?.method ? ot(e) && Mk.indexOf(e.config.method) !== -1 : false;
}
function Ft(e) {
  return Ht(e) || Mt(e);
}
function it(e = undefined) {
  let t = e?.response?.headers["retry-after"];
  if (!t)
    return 0;
  let n = (Number(t) || 0) * 1000;
  return n === 0 && (n = (new Date(t).valueOf() || 0) - Date.now()), Math.max(0, n);
}
function Fk(e = 0, t = undefined) {
  return Math.max(0, it(t));
}
function Va(e = 0, t = undefined, n = 100) {
  let r = 2 ** e * n, a = Math.max(r, it(t)), o = a * 0.2 * Math.random();
  return a + o;
}
function Na(e = 100) {
  return (t = 0, n = undefined) => {
    let r = t * e;
    return Math.max(r, it(n));
  };
}
var Ka = { retries: 3, retryCondition: Ft, retryDelay: Fk, shouldResetTimeout: false, onRetry: () => {}, onMaxRetryTimesExceeded: () => {}, validateResponse: null };
function Ok(e, t) {
  return { ...Ka, ...t, ...e[at] };
}
function Ha(e, t, n = false) {
  let r = Ok(e, t || {});
  return r.retryCount = r.retryCount || 0, (!r.lastRequestTime || n) && (r.lastRequestTime = Date.now()), e[at] = r, r;
}
function Vk(e, t) {
  e.defaults.agent === t.agent && delete t.agent, e.defaults.httpAgent === t.httpAgent && delete t.httpAgent, e.defaults.httpsAgent === t.httpsAgent && delete t.httpsAgent;
}
async function Nk(e, t) {
  let { retries: n, retryCondition: r } = e, a = (e.retryCount || 0) < n && r(t);
  if (typeof a == "object")
    try {
      return await a !== false;
    } catch {
      return false;
    }
  return a;
}
async function Kk(e, t, n, r) {
  t.retryCount += 1;
  let { retryDelay: a, shouldResetTimeout: o, onRetry: i } = t, p = a(t.retryCount, n);
  if (Vk(e, r), !o && r.timeout && t.lastRequestTime) {
    let u = Date.now() - t.lastRequestTime, s = r.timeout - u - p;
    if (s <= 0)
      return Promise.reject(n);
    r.timeout = s;
  }
  return r.transformRequest = [(u) => u], await i(t.retryCount, n, r), r.signal?.aborted ? Promise.resolve(e(r)) : new Promise((u) => {
    let s = () => {
      clearTimeout(y), u(e(r));
    }, y = setTimeout(() => {
      u(e(r)), r.signal?.removeEventListener && r.signal.removeEventListener("abort", s);
    }, p);
    r.signal?.addEventListener && r.signal.addEventListener("abort", s, { once: true });
  });
}
async function $k(e, t) {
  e.retryCount >= e.retries && await e.onMaxRetryTimesExceeded(t, e.retryCount);
}
var ie = (e, t) => {
  let n = e.interceptors.request.use((a) => (Ha(a, t, true), a[at]?.validateResponse && (a.validateStatus = () => false), a)), r = e.interceptors.response.use(null, async (a) => {
    let { config: o } = a;
    if (!o)
      return Promise.reject(a);
    let i = Ha(o, t);
    return a.response && i.validateResponse?.(a.response) ? a.response : await Nk(i, a) ? Kk(e, i, a, o) : (await $k(i, a), Promise.reject(a));
  });
  return { requestInterceptorId: n, responseInterceptorId: r };
};
ie.isNetworkError = Ht;
ie.isSafeRequestError = Oa;
ie.isIdempotentRequestError = Mt;
ie.isNetworkOrIdempotentRequestError = Ft;
ie.exponentialDelay = Va;
ie.linearDelay = Na;
ie.isRetryableError = ot;
var z = ie;
var nc = {};
j(nc, { Client: () => Ur });
var pt = te(za());
var ut = te(Ja());
var Ya = 100 * 1024 * 1024;
var Za = Ya;
var Xa = Ya;
var eo = import_browser_or_node.isNode && pt.default && pt.default.Agent ? new pt.default.Agent({ keepAlive: true }) : undefined;
var to = import_browser_or_node.isNode && ut.default && ut.default.Agent ? new ut.default.Agent({ keepAlive: true }) : undefined;
var N = {};
j(N, { getClientConfig: () => rP });
var Jk = "https://api.botpress.cloud";
var jk = 60000;
var Yk = false;
var Zk = "BP_API_URL";
var Xk = "BP_BOT_ID";
var eP = "BP_INTEGRATION_ID";
var tP = "BP_WORKSPACE_ID";
var sP = "BP_TOKEN";
function rP(e) {
  let t = nP(e), n = {};
  t.workspaceId && (n["x-workspace-id"] = t.workspaceId), t.botId && (n["x-bot-id"] = t.botId), t.integrationId && (n["x-integration-id"] = t.integrationId), t.integrationAlias && (n["x-integration-alias"] = t.integrationAlias), t.token && (n.Authorization = `Bearer ${t.token}`), n = { ...n, ...t.headers };
  let r = t.apiUrl ?? Jk, a = t.timeout ?? jk, o = t.debug ?? Yk;
  return { apiUrl: r, timeout: a, withCredentials: import_browser_or_node2.isBrowser, headers: n, debug: o };
}
function nP(e) {
  return import_browser_or_node2.isBrowser ? e : import_browser_or_node2.isNode ? aP(e) : e;
}
function aP(e) {
  let t = { ...e, apiUrl: e.apiUrl ?? process.env[Zk], botId: e.botId ?? process.env[Xk], integrationId: e.integrationId ?? process.env[eP], integrationAlias: e.integrationAlias, workspaceId: e.workspaceId ?? process.env[tP] }, n = t.token ?? process.env[sP];
  return n && (t.token = n), t;
}
var m = {};
j(m, { AsyncCollection: () => Ot });
var Ot = class {
  constructor(t) {
    this._list = t;
  }
  async* [Symbol.asyncIterator]() {
    let t;
    do {
      let { items: n, meta: r } = await this._list({ nextToken: t });
      t = r.nextToken;
      for (let a of n)
        yield a;
    } while (t);
  }
  async collect(t = {}) {
    let n = t.limit ?? Number.POSITIVE_INFINITY, r = [], a = 0;
    for await (let o of this)
      if (r.push(o), a++, a >= n)
        break;
    return r;
  }
};
var K = {};
j(K, { createAxiosInstance: () => lP });
var ct;
import_browser_or_node3.isNode ? ct = Qk("crypto").randomUUID : typeof crypto < "u" && crypto.randomUUID ? ct = () => crypto.randomUUID() : ct = () => Math.random().toString(36).substring(2, 15);
var no = (e) => {
  e.interceptors.request.use((t) => (t.metadata = { startTime: new Date().getTime(), id: ct() }, console.debug(iP(t)), t)), e.interceptors.response.use((t) => (console.debug(pP(t)), t), (t) => (console.debug(uP(t)), Promise.reject(t)));
};
var iP = (e) => {
  let { method: t, url: n, headers: r, data: a } = e, o = e.baseURL ? new URL(n, e.baseURL).toString() : n;
  return "REQUEST: " + JSON.stringify({ method: t?.toUpperCase(), url: o, timestamp: new Date().toISOString(), requestId: e.metadata?.id, headers: r, body: a }) + `
`;
};
var pP = (e) => {
  let { config: t, status: n, headers: r, data: a } = e, o = ao(e), i = t.baseURL ? new URL(e.config.url, t.baseURL).toString() : e.config.url;
  return "RESPONSE: " + JSON.stringify({ method: t.method?.toUpperCase(), status: n, url: i, timestamp: new Date().toISOString(), requestId: t.metadata?.id, duration: o, headers: r, body: a }) + `
`;
};
var uP = (e) => {
  let t = e ? ao(e) : "N/A", n = e.config.baseURL ? new URL(e.config.url, e.config.baseURL).toString() : e.config.url;
  return "ERROR: " + JSON.stringify({ status: e.code, url: n, timestamp: new Date().toISOString(), requestId: e.config.metadata?.id ?? "N/A", duration: t });
};
var ao = (e) => {
  let t = e.config.metadata?.startTime, n = new Date().getTime();
  return t ? `${n - t}ms` : "N/A";
};
var dP = (e) => ({ baseURL: e.apiUrl, headers: e.headers, withCredentials: e.withCredentials, timeout: e.timeout, maxBodyLength: Za, maxContentLength: Xa, httpAgent: eo, httpsAgent: to });
var lP = (e) => {
  let t = dP(e), n = axios_default.create(t);
  return e.debug && no(n), n;
};
var $ = {};
j($, { toApiError: () => fP });
var yP = { getRandomValues: (e) => new Uint8Array(e.map(() => Math.floor(Math.random() * 256))) };
var Vt = typeof window < "u" && typeof window.document < "u" ? window.crypto : gP;
Vt.getRandomValues || (Vt = yP);
var v = class e extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(Vt.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var mP = (e2) => typeof e2 == "object" && !Array.isArray(e2) && e2 !== null;
var RP = (e2) => e2 instanceof v || mP(e2) && e2.isApiError === true;
var ge = class extends v {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var Nt = class extends v {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var Kt = class extends v {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var $t = class extends v {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var zt = class extends v {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var Jt = class extends v {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var jt = class extends v {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var Yt = class extends v {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var Zt = class extends v {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var Xt = class extends v {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var es = class extends v {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var ts = class extends v {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var ss = class extends v {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var rs = class extends v {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var ns = class extends v {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var as = class extends v {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var os = class extends v {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var is = class extends v {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var ps = class extends v {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var us = class extends v {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var cs = class extends v {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var ds = class extends v {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var ls = class extends v {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var gs = class extends v {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var ys = class extends v {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var ms = class extends v {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var qP = { Unknown: ge, Internal: Nt, Unauthorized: Kt, Forbidden: $t, PayloadTooLarge: zt, InvalidPayload: Jt, UnsupportedMediaType: jt, MethodNotFound: Yt, ResourceNotFound: Zt, InvalidJsonSchema: Xt, InvalidDataFormat: es, InvalidIdentifier: ts, RelationConflict: ss, ReferenceConstraint: rs, ResourceLockedConflict: ns, ResourceGone: as, ReferenceNotFound: os, InvalidQuery: is, Runtime: ps, AlreadyExists: us, RateLimited: cs, PaymentRequired: ds, QuotaExceeded: ls, LimitExceeded: gs, BreakingChanges: ys, OperationTimeout: ms };
var Te = (e2) => RP(e2) ? e2 : e2 instanceof Error ? new ge(e2.message, e2) : typeof e2 == "string" ? new ge(e2) : hP(e2);
function hP(e2) {
  if (typeof e2 == "object" && "code" in e2 && "type" in e2 && "id" in e2 && "message" in e2 && typeof e2.type == "string" && typeof e2.message == "string") {
    let t = qP[e2.type];
    return t ? new t(e2.message, undefined, e2.id || "UNKNOWN", e2.metadata) : new ge(`An unclassified API error occurred: ${e2.message} (Type: ${e2.type}, Code: ${e2.code})`);
  }
  return new ge("An invalid error occurred: " + JSON.stringify(e2));
}
var pe = class extends Error {
  constructor(n, r, a) {
    super(n);
    this.innerError = r;
    this.file = a;
    this.name = "FileUploadError";
  }
};
var fP = (e2) => axios_default.isAxiosError(e2) && e2.response?.data ? Te(e2.response.data) : Te(e2);
var IP = { getRandomValues: (e2) => new Uint8Array(e2.map(() => Math.floor(Math.random() * 256))) };
var Rs = typeof window < "u" && typeof window.document < "u" ? window.crypto : xP;
Rs.getRandomValues || (Rs = IP);
var B = class e2 extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e2.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(Rs.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var kP = (e3) => typeof e3 == "object" && !Array.isArray(e3) && e3 !== null;
var PP = (e3) => e3 instanceof B || kP(e3) && e3.isApiError === true;
var ye = class extends B {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var qs = class extends B {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var hs = class extends B {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var bs = class extends B {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var fs = class extends B {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var xs = class extends B {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var Is = class extends B {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var ks = class extends B {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var Ps = class extends B {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var As = class extends B {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var vs = class extends B {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var Bs = class extends B {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var Ts = class extends B {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var Cs = class extends B {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var ws = class extends B {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var Us = class extends B {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var Gs = class extends B {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var Ss = class extends B {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var Es = class extends B {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var Ls = class extends B {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var _s = class extends B {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var Ws = class extends B {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var Qs = class extends B {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var Ds = class extends B {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var Hs = class extends B {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var Ms = class extends B {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var AP = { Unknown: ye, Internal: qs, Unauthorized: hs, Forbidden: bs, PayloadTooLarge: fs, InvalidPayload: xs, UnsupportedMediaType: Is, MethodNotFound: ks, ResourceNotFound: Ps, InvalidJsonSchema: As, InvalidDataFormat: vs, InvalidIdentifier: Bs, RelationConflict: Ts, ReferenceConstraint: Cs, ResourceLockedConflict: ws, ResourceGone: Us, ReferenceNotFound: Gs, InvalidQuery: Ss, Runtime: Es, AlreadyExists: Ls, RateLimited: _s, PaymentRequired: Ws, QuotaExceeded: Qs, LimitExceeded: Ds, BreakingChanges: Hs, OperationTimeout: Ms };
var Fs = (e3) => PP(e3) ? e3 : e3 instanceof Error ? new ye(e3.message, e3) : typeof e3 == "string" ? new ye(e3) : vP(e3);
function vP(e3) {
  if (typeof e3 == "object" && "code" in e3 && "type" in e3 && "id" in e3 && "message" in e3 && typeof e3.type == "string" && typeof e3.message == "string") {
    let t = AP[e3.type];
    return t ? new t(e3.message, undefined, e3.id || "UNKNOWN", e3.metadata) : new ye(`An unclassified API error occurred: ${e3.message} (Type: ${e3.type}, Code: ${e3.code})`);
  }
  return new ye("An invalid error occurred: " + JSON.stringify(e3));
}
var kp = te(fe());
var qB = (e3) => e3[1] !== undefined;
var h = (e3) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e3, i = Object.entries(a).filter(qB), p = Object.fromEntries(i), u = kp.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var Pp = (e3) => ({ path: "/v1/chat/conversations", headers: {}, query: {}, params: {}, body: { channel: e3.channel, tags: e3.tags, integrationName: e3.integrationName, properties: e3.properties } });
var vp = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var Tp = (e3) => ({ path: "/v1/chat/conversations", headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, sortField: e3.sortField, sortDirection: e3.sortDirection, tags: e3.tags, participantIds: e3.participantIds, integrationName: e3.integrationName, channel: e3.channel, afterDate: e3.afterDate, beforeDate: e3.beforeDate, minMessageCount: e3.minMessageCount, maxMessageCount: e3.maxMessageCount }, params: {}, body: {} });
var wp = (e3) => ({ path: "/v1/chat/conversations/get-or-create", headers: {}, query: {}, params: {}, body: { channel: e3.channel, tags: e3.tags, integrationName: e3.integrationName, properties: e3.properties, discriminateByTags: e3.discriminateByTags } });
var Gp = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: { currentTaskId: e3.currentTaskId, tags: e3.tags, properties: e3.properties } });
var Ep = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var _p = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}/participants`, headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize }, params: { id: e3.id }, body: {} });
var Qp = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}/participants`, headers: {}, query: {}, params: { id: e3.id }, body: { userId: e3.userId } });
var Hp = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}/participants/${encodeURIComponent(e3.userId)}`, headers: {}, query: {}, params: { id: e3.id, userId: e3.userId }, body: {} });
var Fp = (e3) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e3.id)}/participants/${encodeURIComponent(e3.userId)}`, headers: {}, query: {}, params: { id: e3.id, userId: e3.userId }, body: {} });
var Vp = (e3) => ({ path: "/v1/chat/events", headers: {}, query: {}, params: {}, body: { type: e3.type, payload: e3.payload, schedule: e3.schedule, conversationId: e3.conversationId, userId: e3.userId, workflowId: e3.workflowId, messageId: e3.messageId } });
var Kp = (e3) => ({ path: `/v1/chat/events/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var zp = (e3) => ({ path: "/v1/chat/events", headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, type: e3.type, conversationId: e3.conversationId, userId: e3.userId, messageId: e3.messageId, workflowId: e3.workflowId, status: e3.status }, params: {}, body: {} });
var jp = (e3) => ({ path: `/v1/chat/events/scheduled/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var Zp = (e3) => ({ path: "/v1/chat/messages", headers: {}, query: {}, params: {}, body: { payload: e3.payload, userId: e3.userId, conversationId: e3.conversationId, type: e3.type, tags: e3.tags, schedule: e3.schedule, origin: e3.origin } });
var eu = (e3) => ({ path: "/v1/chat/messages/get-or-create", headers: {}, query: {}, params: {}, body: { payload: e3.payload, userId: e3.userId, conversationId: e3.conversationId, type: e3.type, tags: e3.tags, schedule: e3.schedule, origin: e3.origin, discriminateByTags: e3.discriminateByTags } });
var su = (e3) => ({ path: `/v1/chat/messages/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var nu = (e3) => ({ path: `/v1/chat/messages/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: { tags: e3.tags, payload: e3.payload } });
var ou = (e3) => ({ path: "/v1/chat/messages", headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, conversationId: e3.conversationId, tags: e3.tags, afterDate: e3.afterDate, beforeDate: e3.beforeDate }, params: {}, body: {} });
var pu = (e3) => ({ path: `/v1/chat/messages/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var cu = (e3) => ({ path: "/v1/chat/initialize-incoming-message", headers: {}, query: {}, params: {}, body: { userId: e3.userId, user: e3.user, conversationId: e3.conversationId, conversation: e3.conversation, message: e3.message } });
var lu = (e3) => ({ path: "/v1/chat/messages/import-messages", headers: {}, query: {}, params: {}, body: { messages: e3.messages } });
var yu = (e3) => ({ path: "/v1/chat/users", headers: {}, query: {}, params: {}, body: { tags: e3.tags, integrationName: e3.integrationName, name: e3.name, pictureUrl: e3.pictureUrl, properties: e3.properties, attributes: e3.attributes } });
var Ru = (e3) => ({ path: `/v1/chat/users/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var hu = (e3) => ({ path: "/v1/chat/users", headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, conversationId: e3.conversationId, tags: e3.tags, afterDate: e3.afterDate, beforeDate: e3.beforeDate, rangeField: e3.rangeField, sortField: e3.sortField, sortDirection: e3.sortDirection }, params: {}, body: {} });
var fu = (e3) => ({ path: "/v1/chat/users/get-or-create", headers: {}, query: {}, params: {}, body: { tags: e3.tags, integrationName: e3.integrationName, name: e3.name, pictureUrl: e3.pictureUrl, properties: e3.properties, attributes: e3.attributes, discriminateByTags: e3.discriminateByTags } });
var Iu = (e3) => ({ path: `/v1/chat/users/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: { tags: e3.tags, name: e3.name, pictureUrl: e3.pictureUrl, attributes: e3.attributes, properties: e3.properties } });
var Pu = (e3) => ({ path: `/v1/chat/users/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var vu = (e3) => ({ path: `/v1/chat/states/${encodeURIComponent(e3.type)}/${encodeURIComponent(e3.id)}/${encodeURIComponent(e3.name)}/expiry`, headers: {}, query: {}, params: { type: e3.type, id: e3.id, name: e3.name }, body: { expiry: e3.expiry } });
var Tu = (e3) => ({ path: `/v1/chat/states/${encodeURIComponent(e3.type)}/${encodeURIComponent(e3.id)}/${encodeURIComponent(e3.name)}`, headers: {}, query: {}, params: { type: e3.type, id: e3.id, name: e3.name }, body: {} });
var wu = (e3) => ({ path: `/v1/chat/states/${encodeURIComponent(e3.type)}/${encodeURIComponent(e3.id)}/${encodeURIComponent(e3.name)}`, headers: {}, query: {}, params: { type: e3.type, id: e3.id, name: e3.name }, body: { payload: e3.payload, expiry: e3.expiry } });
var Gu = (e3) => ({ path: `/v1/chat/states/${encodeURIComponent(e3.type)}/${encodeURIComponent(e3.id)}/${encodeURIComponent(e3.name)}/get-or-set`, headers: {}, query: {}, params: { type: e3.type, id: e3.id, name: e3.name }, body: { payload: e3.payload, expiry: e3.expiry } });
var Eu = (e3) => ({ path: `/v1/chat/states/${encodeURIComponent(e3.type)}/${encodeURIComponent(e3.id)}/${encodeURIComponent(e3.name)}`, headers: {}, query: {}, params: { type: e3.type, id: e3.id, name: e3.name }, body: { payload: e3.payload, expiry: e3.expiry } });
var _u = (e3) => ({ path: "/v1/chat/actions", headers: {}, query: {}, params: {}, body: { type: e3.type, input: e3.input } });
var Qu = (e3) => ({ path: "/v1/chat/integrations/configure", headers: {}, query: {}, params: {}, body: { identifier: e3.identifier, scheduleRegisterCall: e3.scheduleRegisterCall, sandboxIdentifiers: e3.sandboxIdentifiers } });
var Hu = (e3) => ({ path: "/v1/chat/workflows", headers: {}, query: {}, params: {}, body: { name: e3.name, input: e3.input, parentWorkflowId: e3.parentWorkflowId, conversationId: e3.conversationId, userId: e3.userId, timeoutAt: e3.timeoutAt, tags: e3.tags, status: e3.status, eventId: e3.eventId } });
var Fu = (e3) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var Vu = (e3) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: { output: e3.output, timeoutAt: e3.timeoutAt, status: e3.status, failureReason: e3.failureReason, tags: e3.tags, userId: e3.userId, eventId: e3.eventId } });
var Ku = (e3) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e3.id)}`, headers: {}, query: {}, params: { id: e3.id }, body: {} });
var zu = (e3) => ({ path: "/v1/chat/workflows", headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, tags: e3.tags, conversationId: e3.conversationId, userId: e3.userId, parentWorkflowId: e3.parentWorkflowId, statuses: e3.statuses, name: e3.name }, params: {}, body: {} });
var ju = (e3) => ({ path: "/v1/chat/workflows/get-or-create", headers: {}, query: {}, params: {}, body: { name: e3.name, input: e3.input, parentWorkflowId: e3.parentWorkflowId, conversationId: e3.conversationId, userId: e3.userId, timeoutAt: e3.timeoutAt, tags: e3.tags, status: e3.status, eventId: e3.eventId, discriminateByTags: e3.discriminateByTags, discriminateByStatusGroup: e3.discriminateByStatusGroup } });
var Zu = (e3) => ({ path: `/v1/chat/tags/${encodeURIComponent(e3.key)}/values`, headers: {}, query: { nextToken: e3.nextToken, pageSize: e3.pageSize, type: e3.type }, params: { key: e3.key }, body: {} });
var ec = (e3) => ({ path: "/v1/chat/analytics", headers: {}, query: {}, params: {}, body: { name: e3.name, count: e3.count } });
var sc = (e3) => ({ path: "/v1/chat/observations", headers: {}, query: {}, params: {}, body: { id: e3.id, name: e3.name, data: e3.data, messageId: e3.messageId, eventId: e3.eventId, conversationId: e3.conversationId, userId: e3.userId, errorId: e3.errorId, traceId: e3.traceId } });
var Ut = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  createConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listConversations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ep(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listParticipants = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _p(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  addParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  removeParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listEvents = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  cancelScheduledEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zp(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = su(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listMessages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ou(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  initializeIncomingMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  importMessages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ru(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsers = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Iu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setStateExpiry = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrSetState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  patchState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Eu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "patch", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  callAction = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _u(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  configureIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ku(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkflows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ju(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listTagValues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zu(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  trackAnalytics = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ec(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  captureObservation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sc(t), i = this.props.toAxiosRequest ?? h, p = this.props.toApiError ?? b, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function b(e3) {
  return axios_default.isAxiosError(e3) && e3.response?.data ? Fs(e3.response.data) : Fs(e3);
}
var Ur = class extends Ut {
  config;
  constructor(t) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
  get list() {
    return { conversations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listConversations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.conversations }))), participants: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listParticipants({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.participants }))), events: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listEvents({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.events }))), messages: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listMessages({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.messages }))), users: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsers({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.users }))) };
  }
};
var ly = {};
j(ly, { Client: () => an });
var xB = { getRandomValues: (e3) => new Uint8Array(e3.map(() => Math.floor(Math.random() * 256))) };
var Gr = typeof window < "u" && typeof window.document < "u" ? window.crypto : fB;
Gr.getRandomValues || (Gr = xB);
var T = class e3 extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e3.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(Gr.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var IB = (e4) => typeof e4 == "object" && !Array.isArray(e4) && e4 !== null;
var kB = (e4) => e4 instanceof T || IB(e4) && e4.isApiError === true;
var xe = class extends T {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var Sr = class extends T {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var Er = class extends T {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var Lr = class extends T {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var _r = class extends T {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var Wr = class extends T {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var Qr = class extends T {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var Dr = class extends T {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var Hr = class extends T {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var Mr = class extends T {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var Fr = class extends T {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var Or = class extends T {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var Vr = class extends T {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var Nr = class extends T {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var Kr = class extends T {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var $r = class extends T {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var zr = class extends T {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var Jr = class extends T {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var jr = class extends T {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var Yr = class extends T {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var Zr = class extends T {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var Xr = class extends T {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var en = class extends T {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var tn = class extends T {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var sn = class extends T {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var rn = class extends T {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var PB = { Unknown: xe, Internal: Sr, Unauthorized: Er, Forbidden: Lr, PayloadTooLarge: _r, InvalidPayload: Wr, UnsupportedMediaType: Qr, MethodNotFound: Dr, ResourceNotFound: Hr, InvalidJsonSchema: Mr, InvalidDataFormat: Fr, InvalidIdentifier: Or, RelationConflict: Vr, ReferenceConstraint: Nr, ResourceLockedConflict: Kr, ResourceGone: $r, ReferenceNotFound: zr, InvalidQuery: Jr, Runtime: jr, AlreadyExists: Yr, RateLimited: Zr, PaymentRequired: Xr, QuotaExceeded: en, LimitExceeded: tn, BreakingChanges: sn, OperationTimeout: rn };
var nn = (e4) => kB(e4) ? e4 : e4 instanceof Error ? new xe(e4.message, e4) : typeof e4 == "string" ? new xe(e4) : AB(e4);
function AB(e4) {
  if (typeof e4 == "object" && "code" in e4 && "type" in e4 && "id" in e4 && "message" in e4 && typeof e4.type == "string" && typeof e4.message == "string") {
    let t = PB[e4.type];
    return t ? new t(e4.message, undefined, e4.id || "UNKNOWN", e4.metadata) : new xe(`An unclassified API error occurred: ${e4.message} (Type: ${e4.type}, Code: ${e4.code})`);
  }
  return new xe("An invalid error occurred: " + JSON.stringify(e4));
}
var ac = te(fe());
var vB = (e4) => e4[1] !== undefined;
var l = (e4) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e4, i = Object.entries(a).filter(vB), p = Object.fromEntries(i), u = ac.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var oc = (e4) => ({ path: "/v1/admin/helper/vrl", headers: {}, query: {}, params: {}, body: { data: e4.data, script: e4.script } });
var pc = (e4) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: {} });
var cc = (e4) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: { displayName: e4.displayName, profilePicture: e4.profilePicture, refresh: e4.refresh } });
var lc = (e4) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: {} });
var yc = (e4) => ({ path: "/v1/admin/account/pats", headers: {}, query: {}, params: {}, body: {} });
var Rc = (e4) => ({ path: "/v1/admin/account/pats", headers: {}, query: {}, params: {}, body: { note: e4.note } });
var hc = (e4) => ({ path: `/v1/admin/account/pats/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var fc = (e4) => ({ path: `/v1/admin/account/preferences/${encodeURIComponent(e4.key)}`, headers: {}, query: {}, params: { key: e4.key }, body: { value: e4.value } });
var Ic = (e4) => ({ path: `/v1/admin/account/preferences/${encodeURIComponent(e4.key)}`, headers: {}, query: {}, params: { key: e4.key }, body: {} });
var Pc = (e4) => ({ path: "/v1/admin/hub/integrations", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, limit: e4.limit, name: e4.name, version: e4.version, interfaceId: e4.interfaceId, interfaceName: e4.interfaceName, installedByBotId: e4.installedByBotId, verificationStatus: e4.verificationStatus, search: e4.search, sortBy: e4.sortBy, direction: e4.direction }, params: {}, body: {} });
var vc = (e4) => ({ path: `/v1/admin/hub/integrations/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Tc = (e4) => ({ path: `/v1/admin/hub/integrations/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var wc = (e4) => ({ path: "/v1/admin/hub/plugins", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, name: e4.name, version: e4.version }, params: {}, body: {} });
var Gc = (e4) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Ec = (e4) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e4.id)}/dereferenced`, headers: {}, query: { interfaces: e4.interfaces }, params: { id: e4.id }, body: {} });
var _c = (e4) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var Qc = (e4) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e4.id)}/code/${encodeURIComponent(e4.platform)}`, headers: {}, query: {}, params: { id: e4.id, platform: e4.platform }, body: {} });
var Hc = (e4) => ({ path: "/v1/admin/hub/interfaces", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, name: e4.name, version: e4.version }, params: {}, body: {} });
var Fc = (e4) => ({ path: `/v1/admin/hub/interfaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Vc = (e4) => ({ path: `/v1/admin/hub/interfaces/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var Kc = (e4) => ({ path: "/v1/admin/bots", headers: {}, query: {}, params: {}, body: { states: e4.states, events: e4.events, recurringEvents: e4.recurringEvents, subscriptions: e4.subscriptions, actions: e4.actions, configuration: e4.configuration, user: e4.user, conversation: e4.conversation, message: e4.message, tags: e4.tags, code: e4.code, name: e4.name, description: e4.description, medias: e4.medias, url: e4.url, secrets: e4.secrets, dev: e4.dev, type: e4.type, maxExecutionTime: e4.maxExecutionTime } });
var zc = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { url: e4.url, authentication: e4.authentication, configuration: e4.configuration, blocked: e4.blocked, maxExecutionTime: e4.maxExecutionTime, alwaysAlive: e4.alwaysAlive, tags: e4.tags, user: e4.user, message: e4.message, conversation: e4.conversation, events: e4.events, actions: e4.actions, states: e4.states, recurringEvents: e4.recurringEvents, integrations: e4.integrations, plugins: e4.plugins, subscriptions: e4.subscriptions, code: e4.code, name: e4.name, description: e4.description, medias: e4.medias, secrets: e4.secrets, layers: e4.layers, type: e4.type } });
var jc = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/signing-secrets/rotate`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Zc = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/transfer`, headers: {}, query: {}, params: { id: e4.id }, body: { targetWorkspaceId: e4.targetWorkspaceId } });
var ed = (e4) => ({ path: "/v1/admin/bots", headers: {}, query: { dev: e4.dev, tags: e4.tags, integrationNames: e4.integrationNames, pluginNames: e4.pluginNames, nextToken: e4.nextToken, pageSize: e4.pageSize, sortField: e4.sortField, sortDirection: e4.sortDirection }, params: {}, body: {} });
var sd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var nd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var od = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/logs`, headers: {}, query: { timeStart: e4.timeStart, timeEnd: e4.timeEnd, level: e4.level, userId: e4.userId, workflowId: e4.workflowId, conversationId: e4.conversationId, messageContains: e4.messageContains, nextToken: e4.nextToken }, params: { id: e4.id }, body: {} });
var pd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/webchat`, headers: {}, query: { type: e4.type }, params: { id: e4.id }, body: {} });
var cd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/analytics`, headers: {}, query: { startDate: e4.startDate, endDate: e4.endDate }, params: { id: e4.id }, body: {} });
var ld = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/action-runs`, headers: {}, query: { integrationName: e4.integrationName, timestampFrom: e4.timestampFrom, timestampUntil: e4.timestampUntil, nextToken: e4.nextToken, pageSize: e4.pageSize }, params: { id: e4.id }, body: {} });
var yd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/issues/${encodeURIComponent(e4.issueId)}`, headers: {}, query: {}, params: { id: e4.id, issueId: e4.issueId }, body: {} });
var Rd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/issues`, headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize }, params: { id: e4.id }, body: {} });
var hd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/issues/${encodeURIComponent(e4.issueId)}`, headers: {}, query: {}, params: { id: e4.id, issueId: e4.issueId }, body: {} });
var fd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/issues/${encodeURIComponent(e4.issueId)}/events`, headers: {}, query: {}, params: { id: e4.id, issueId: e4.issueId }, body: {} });
var Id = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/versions`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Pd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/versions/${encodeURIComponent(e4.versionId)}`, headers: {}, query: {}, params: { id: e4.id, versionId: e4.versionId }, body: {} });
var vd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/bot-json`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Td = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/publish-from-bot-json`, headers: {}, query: {}, params: { id: e4.id }, body: { botJson: e4.botJson } });
var wd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/versions`, headers: {}, query: {}, params: { id: e4.id }, body: { name: e4.name, description: e4.description } });
var Gd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.id)}/versions/deploy`, headers: {}, query: {}, params: { id: e4.id }, body: { versionId: e4.versionId } });
var Ed = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/integrations/${encodeURIComponent(e4.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e4.integrationInstanceAlias }, params: { botId: e4.botId, integrationId: e4.integrationId }, body: {} });
var _d = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/integrations/${encodeURIComponent(e4.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e4.integrationInstanceAlias }, params: { botId: e4.botId, integrationId: e4.integrationId }, body: {} });
var Qd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/integrations/${encodeURIComponent(e4.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e4.integrationInstanceAlias }, params: { botId: e4.botId, integrationId: e4.integrationId }, body: {} });
var Hd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/integrations/${encodeURIComponent(e4.integrationId)}/sandboxed-conversations`, headers: {}, query: { integrationInstanceAlias: e4.integrationInstanceAlias }, params: { botId: e4.botId, integrationId: e4.integrationId }, body: {} });
var Fd = (e4) => ({ path: "/v1/admin/bots/baks", headers: {}, query: { botId: e4.botId }, params: {}, body: {} });
var Vd = (e4) => ({ path: "/v1/admin/bots/baks", headers: {}, query: {}, params: {}, body: { botId: e4.botId, note: e4.note } });
var Kd = (e4) => ({ path: `/v1/admin/bots/baks/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var zd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/allowlist`, headers: {}, query: {}, params: { botId: e4.botId }, body: {} });
var jd = (e4) => ({ path: `/v1/admin/bots/${encodeURIComponent(e4.botId)}/allowlist`, headers: {}, query: {}, params: { botId: e4.botId }, body: { setting: e4.setting, users: e4.users } });
var Zd = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/migrate-to-v4`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var el = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/billing/invoices`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var sl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/billing/upcoming-invoice`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var nl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/billing/invoices/charge-unpaid`, headers: {}, query: {}, params: { id: e4.id }, body: { invoiceIds: e4.invoiceIds } });
var ol = (e4) => ({ path: "/v1/admin/workspaces", headers: {}, query: {}, params: {}, body: { name: e4.name, billingVersion: e4.billingVersion } });
var pl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/public`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var cl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var ll = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/usages`, headers: {}, query: { type: e4.type, period: e4.period }, params: { id: e4.id }, body: {} });
var yl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/usages/by-bot`, headers: {}, query: { type: e4.type, period: e4.period }, params: { id: e4.id }, body: {} });
var Rl = (e4) => ({ path: "/v1/admin/workspaces/usages/quota-completion", headers: {}, query: {}, params: {}, body: {} });
var hl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/quota`, headers: {}, query: { type: e4.type, period: e4.period }, params: { id: e4.id }, body: {} });
var fl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/quotas`, headers: {}, query: { period: e4.period }, params: { id: e4.id }, body: {} });
var Il = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { name: e4.name, spendingLimit: e4.spendingLimit, about: e4.about, profilePicture: e4.profilePicture, contactEmail: e4.contactEmail, website: e4.website, socialAccounts: e4.socialAccounts, isPublic: e4.isPublic, handle: e4.handle } });
var Pl = (e4) => ({ path: "/v1/admin/workspaces/handle-availability", headers: {}, query: {}, params: {}, body: { handle: e4.handle } });
var vl = (e4) => ({ path: "/v1/admin/workspaces", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, handle: e4.handle }, params: {}, body: {} });
var Tl = (e4) => ({ path: "/v1/admin/workspaces/public", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, workspaceIds: e4.workspaceIds, search: e4.search }, params: {}, body: {} });
var wl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Gl = (e4) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e4.id)}/audit-records`, headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize }, params: { id: e4.id }, body: {} });
var El = (e4) => ({ path: `/v1/admin/workspaces/preferences/${encodeURIComponent(e4.key)}`, headers: {}, query: {}, params: { key: e4.key }, body: { value: e4.value } });
var _l = (e4) => ({ path: `/v1/admin/workspaces/preferences/${encodeURIComponent(e4.key)}`, headers: {}, query: {}, params: { key: e4.key }, body: {} });
var Ql = (e4) => ({ path: "/v1/admin/workspace-members", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize }, params: {}, body: {} });
var Hl = (e4) => ({ path: "/v1/admin/workspace-members/me", headers: {}, query: {}, params: {}, body: {} });
var Fl = (e4) => ({ path: `/v1/admin/workspace-members/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Vl = (e4) => ({ path: "/v1/admin/workspace-members", headers: {}, query: {}, params: {}, body: { email: e4.email, role: e4.role, sendEmail: e4.sendEmail } });
var Kl = (e4) => ({ path: `/v1/admin/workspace-members/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { role: e4.role } });
var zl = (e4) => ({ path: "/v1/admin/integrations/iaks", headers: {}, query: { integrationId: e4.integrationId }, params: {}, body: {} });
var jl = (e4) => ({ path: "/v1/admin/integrations/iaks", headers: {}, query: {}, params: {}, body: { integrationId: e4.integrationId, note: e4.note } });
var Zl = (e4) => ({ path: `/v1/admin/integrations/iaks/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var eg = (e4) => ({ path: "/v1/admin/integrations", headers: {}, query: {}, params: {}, body: { name: e4.name, version: e4.version, configuration: e4.configuration, configurations: e4.configurations, states: e4.states, events: e4.events, actions: e4.actions, entities: e4.entities, identifier: e4.identifier, channels: e4.channels, user: e4.user, interfaces: e4.interfaces, extraOperations: e4.extraOperations, sdkVersion: e4.sdkVersion, secrets: e4.secrets, code: e4.code, url: e4.url, dev: e4.dev, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, visibility: e4.visibility, layers: e4.layers, attributes: e4.attributes } });
var sg = (e4) => ({ path: "/v1/admin/integrations/validate", headers: {}, query: {}, params: {}, body: { name: e4.name, version: e4.version, configuration: e4.configuration, configurations: e4.configurations, states: e4.states, events: e4.events, actions: e4.actions, entities: e4.entities, identifier: e4.identifier, channels: e4.channels, user: e4.user, interfaces: e4.interfaces, extraOperations: e4.extraOperations, sdkVersion: e4.sdkVersion, secrets: e4.secrets, code: e4.code, url: e4.url, dev: e4.dev, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, visibility: e4.visibility, layers: e4.layers, attributes: e4.attributes } });
var ng = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { configuration: e4.configuration, configurations: e4.configurations, extraOperations: e4.extraOperations, sdkVersion: e4.sdkVersion, channels: e4.channels, maxExecutionTime: e4.maxExecutionTime, identifier: e4.identifier, actions: e4.actions, events: e4.events, states: e4.states, user: e4.user, entities: e4.entities, interfaces: e4.interfaces, attributes: e4.attributes, secrets: e4.secrets, code: e4.code, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, url: e4.url, public: e4.public, visibility: e4.visibility, layers: e4.layers } });
var og = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}/signing-secrets/rotate`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var pg = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}/validate`, headers: {}, query: {}, params: { id: e4.id }, body: { configuration: e4.configuration, configurations: e4.configurations, extraOperations: e4.extraOperations, sdkVersion: e4.sdkVersion, channels: e4.channels, maxExecutionTime: e4.maxExecutionTime, identifier: e4.identifier, actions: e4.actions, events: e4.events, states: e4.states, user: e4.user, entities: e4.entities, interfaces: e4.interfaces, attributes: e4.attributes, secrets: e4.secrets, code: e4.code, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, url: e4.url, public: e4.public, visibility: e4.visibility, layers: e4.layers } });
var cg = (e4) => ({ path: "/v1/admin/integrations", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, limit: e4.limit, name: e4.name, version: e4.version, interfaceId: e4.interfaceId, interfaceName: e4.interfaceName, installedByBotId: e4.installedByBotId, verificationStatus: e4.verificationStatus, search: e4.search, sortBy: e4.sortBy, direction: e4.direction, visibility: e4.visibility, dev: e4.dev }, params: {}, body: {} });
var lg = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var yg = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}/logs`, headers: {}, query: { timeStart: e4.timeStart, timeEnd: e4.timeEnd, level: e4.level, userId: e4.userId, conversationId: e4.conversationId, messageContains: e4.messageContains, nextToken: e4.nextToken }, params: { id: e4.id }, body: {} });
var Rg = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var hg = (e4) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var fg = (e4) => ({ path: "/v1/admin/integrations/request-verification", headers: {}, query: {}, params: {}, body: { integrationId: e4.integrationId } });
var Ig = (e4) => ({ path: "/v1/admin/interfaces", headers: {}, query: {}, params: {}, body: { name: e4.name, version: e4.version, entities: e4.entities, events: e4.events, actions: e4.actions, channels: e4.channels, nameTemplate: e4.nameTemplate, sdkVersion: e4.sdkVersion, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, attributes: e4.attributes } });
var Pg = (e4) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var vg = (e4) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var Tg = (e4) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { entities: e4.entities, events: e4.events, actions: e4.actions, channels: e4.channels, nameTemplate: e4.nameTemplate, sdkVersion: e4.sdkVersion, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, attributes: e4.attributes } });
var wg = (e4) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Gg = (e4) => ({ path: "/v1/admin/interfaces", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, name: e4.name, version: e4.version }, params: {}, body: {} });
var Eg = (e4) => ({ path: "/v1/admin/plugins", headers: {}, query: {}, params: {}, body: { name: e4.name, version: e4.version, configuration: e4.configuration, states: e4.states, events: e4.events, actions: e4.actions, user: e4.user, conversation: e4.conversation, message: e4.message, sdkVersion: e4.sdkVersion, code: e4.code, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, visibility: e4.visibility, dependencies: e4.dependencies, attributes: e4.attributes } });
var _g = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Qg = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.id)}/dereferenced`, headers: {}, query: { interfaces: e4.interfaces }, params: { id: e4.id }, body: {} });
var Hg = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.name)}/${encodeURIComponent(e4.version)}`, headers: {}, query: {}, params: { name: e4.name, version: e4.version }, body: {} });
var Fg = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: { configuration: e4.configuration, states: e4.states, events: e4.events, actions: e4.actions, user: e4.user, conversation: e4.conversation, message: e4.message, sdkVersion: e4.sdkVersion, code: e4.code, icon: e4.icon, readme: e4.readme, title: e4.title, description: e4.description, public: e4.public, visibility: e4.visibility, dependencies: e4.dependencies, attributes: e4.attributes } });
var Vg = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.id)}`, headers: {}, query: {}, params: { id: e4.id }, body: {} });
var Kg = (e4) => ({ path: "/v1/admin/plugins", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, name: e4.name, version: e4.version }, params: {}, body: {} });
var zg = (e4) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e4.id)}/code/${encodeURIComponent(e4.platform)}`, headers: {}, query: {}, params: { id: e4.id, platform: e4.platform }, body: {} });
var jg = (e4) => ({ path: `/v1/admin/usages/${encodeURIComponent(e4.id)}`, headers: {}, query: { type: e4.type, period: e4.period }, params: { id: e4.id }, body: {} });
var Zg = (e4) => ({ path: "/v1/admin/usages/multiple", headers: {}, query: { types: e4.types, ids: e4.ids, period: e4.period }, params: {}, body: {} });
var ey = (e4) => ({ path: `/v1/admin/usages/${encodeURIComponent(e4.id)}/history`, headers: {}, query: { type: e4.type }, params: { id: e4.id }, body: {} });
var sy = (e4) => ({ path: `/v1/admin/usages/${encodeURIComponent(e4.id)}/activity`, headers: {}, query: { type: e4.type, timestampFrom: e4.timestampFrom, timestampUntil: e4.timestampUntil, nextToken: e4.nextToken, pageSize: e4.pageSize }, params: { id: e4.id }, body: {} });
var ny = (e4) => ({ path: `/v1/admin/usages/${encodeURIComponent(e4.id)}/daily-activity`, headers: {}, query: { type: e4.type, dateFrom: e4.dateFrom, dateUntil: e4.dateUntil, nextToken: e4.nextToken, pageSize: e4.pageSize }, params: { id: e4.id }, body: {} });
var oy = (e4) => ({ path: "/v1/admin/quotas/ai-spend", headers: {}, query: {}, params: {}, body: { monthlySpendingLimit: e4.monthlySpendingLimit } });
var py = (e4) => ({ path: "/v1/admin/activities", headers: {}, query: { nextToken: e4.nextToken, pageSize: e4.pageSize, taskId: e4.taskId, botId: e4.botId }, params: {}, body: {} });
var cy = (e4) => ({ path: "/v1/admin/introspect", headers: {}, query: {}, params: {}, body: { botId: e4.botId } });
var Gt = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  runVrl = async (t) => {
    let { path: n, headers: r, query: a, body: o } = oc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPersonalAccessTokens = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createPersonalAccessToken = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deletePersonalAccessToken = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setAccountPreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAccountPreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ic(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicIntegrations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicIntegrationById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicPlugins = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPluginById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getDereferencedPublicPluginById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ec(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _c(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPluginCode = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicInterfaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicInterfaceById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  rotateBotSigningSecrets = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  transferBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zc(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBots = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ed(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotLogs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = od(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotWebchat = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotAnalytics = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listActionRuns = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ld(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotIssue = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotIssues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBotIssue = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotIssueEvents = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotVersions = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Id(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotJson = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  publishFromBotJson = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Td(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deployBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ed(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _d(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  unlinkSandboxedConversations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotApiKeys = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBotApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBotApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotAllowlist = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateBotAllowlist = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  migrateWorkspaceToV4 = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zd(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceInvoices = async (t) => {
    let { path: n, headers: r, query: a, body: o } = el(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUpcomingInvoice = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  chargeWorkspaceUnpaidInvoices = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ol(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceUsages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ll(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  breakDownWorkspaceUsageByBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAllWorkspaceQuotaCompletion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceQuota = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceQuotas = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Il(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  checkHandleAvailability = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicWorkspaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAuditRecords = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setWorkspacePreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = El(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspacePreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _l(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceMembers = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ql(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listIntegrationApiKeys = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegrationApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegrationApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zl(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  validateIntegrationCreation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ng(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  rotateIntegrationSigningSecrets = async (t) => {
    let { path: n, headers: r, query: a, body: o } = og(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  validateIntegrationUpdate = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listIntegrations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationLogs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  requestIntegrationVerification = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ig(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getInterfaceByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listInterfaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Eg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _g(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getDereferencedPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPluginByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updatePlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deletePlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPlugins = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPluginCode = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUsage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getMultipleUsages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zg(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageHistory = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ey(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageActivity = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sy(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageActivityDaily = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ny(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  changeAISpendQuota = async (t) => {
    let { path: n, headers: r, query: a, body: o } = oy(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listActivities = async (t) => {
    let { path: n, headers: r, query: a, body: o } = py(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  introspect = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cy(t), i = this.props.toAxiosRequest ?? l, p = this.props.toApiError ?? g, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function g(e4) {
  return axios_default.isAxiosError(e4) && e4.response?.data ? nn(e4.response.data) : nn(e4);
}
var an = class extends Gt {
  config;
  constructor(t) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
  get list() {
    return { publicIntegrations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicIntegrations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.integrations }))), bots: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listBots({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.bots }))), botIssues: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listBotIssues({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.issues }))), workspaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listWorkspaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.workspaces }))), publicWorkspaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicWorkspaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.workspaces }))), workspaceMembers: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listWorkspaceMembers({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.members }))), integrations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listIntegrations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.integrations }))), interfaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listInterfaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.interfaces }))), activities: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listActivities({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.activities }))), usageActivity: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsageActivity({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.data }))), usageActivityDaily: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsageActivityDaily({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.data }))) };
  }
};
var Rm = {};
j(Rm, { Client: () => En });
var wB = { getRandomValues: (e4) => new Uint8Array(e4.map(() => Math.floor(Math.random() * 256))) };
var on = typeof window < "u" && typeof window.document < "u" ? window.crypto : CB;
on.getRandomValues || (on = wB);
var C = class e4 extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e4.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(on.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var UB = (e5) => typeof e5 == "object" && !Array.isArray(e5) && e5 !== null;
var GB = (e5) => e5 instanceof C || UB(e5) && e5.isApiError === true;
var Ie = class extends C {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var pn = class extends C {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var un = class extends C {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var cn = class extends C {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var dn = class extends C {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var ln = class extends C {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var gn = class extends C {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var yn = class extends C {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var mn = class extends C {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var Rn = class extends C {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var qn = class extends C {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var hn = class extends C {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var bn = class extends C {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var fn = class extends C {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var xn = class extends C {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var In = class extends C {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var kn = class extends C {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var Pn = class extends C {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var An = class extends C {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var vn = class extends C {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var Bn = class extends C {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var Tn = class extends C {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var Cn = class extends C {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var wn = class extends C {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var Un = class extends C {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var Gn = class extends C {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var SB = { Unknown: Ie, Internal: pn, Unauthorized: un, Forbidden: cn, PayloadTooLarge: dn, InvalidPayload: ln, UnsupportedMediaType: gn, MethodNotFound: yn, ResourceNotFound: mn, InvalidJsonSchema: Rn, InvalidDataFormat: qn, InvalidIdentifier: hn, RelationConflict: bn, ReferenceConstraint: fn, ResourceLockedConflict: xn, ResourceGone: In, ReferenceNotFound: kn, InvalidQuery: Pn, Runtime: An, AlreadyExists: vn, RateLimited: Bn, PaymentRequired: Tn, QuotaExceeded: Cn, LimitExceeded: wn, BreakingChanges: Un, OperationTimeout: Gn };
var Sn = (e5) => GB(e5) ? e5 : e5 instanceof Error ? new Ie(e5.message, e5) : typeof e5 == "string" ? new Ie(e5) : EB(e5);
function EB(e5) {
  if (typeof e5 == "object" && "code" in e5 && "type" in e5 && "id" in e5 && "message" in e5 && typeof e5.type == "string" && typeof e5.message == "string") {
    let t = SB[e5.type];
    return t ? new t(e5.message, undefined, e5.id || "UNKNOWN", e5.metadata) : new Ie(`An unclassified API error occurred: ${e5.message} (Type: ${e5.type}, Code: ${e5.code})`);
  }
  return new Ie("An invalid error occurred: " + JSON.stringify(e5));
}
var gy = te(fe());
var LB = (e5) => e5[1] !== undefined;
var w = (e5) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e5, i = Object.entries(a).filter(LB), p = Object.fromEntries(i), u = gy.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var yy = (e5) => ({ path: "/v2/billing/readonly", headers: {}, query: {}, params: {}, body: {} });
var Ry = (e5) => ({ path: "/v2/billing/address", headers: {}, query: {}, params: {}, body: {} });
var hy = (e5) => ({ path: "/v2/billing/address", headers: {}, query: {}, params: {}, body: { lineOne: e5.lineOne, lineTwo: e5.lineTwo, city: e5.city, state: e5.state, postalCode: e5.postalCode, country: e5.country } });
var fy = (e5) => ({ path: "/v2/billing/customer", headers: {}, query: {}, params: {}, body: {} });
var Iy = (e5) => ({ path: "/v2/billing/customer", headers: {}, query: {}, params: {}, body: { address: e5.address, name: e5.name, taxIds: e5.taxIds } });
var Py = (e5) => ({ path: `/v2/billing/plans/${encodeURIComponent(e5.planId)}`, headers: {}, query: {}, params: { planId: e5.planId }, body: {} });
var vy = (e5) => ({ path: "/v2/billing/plans", headers: {}, query: {}, params: {}, body: {} });
var Ty = (e5) => ({ path: `/v2/billing/addons/${encodeURIComponent(e5.addonId)}`, headers: {}, query: {}, params: { addonId: e5.addonId }, body: {} });
var wy = (e5) => ({ path: "/v2/billing/addons", headers: {}, query: {}, params: {}, body: {} });
var Gy = (e5) => ({ path: "/v2/billing/subscriptions", headers: {}, query: {}, params: {}, body: {} });
var Ey = (e5) => ({ path: "/v2/billing/subscriptions/preview", headers: {}, query: {}, params: {}, body: { plan: e5.plan, addons: e5.addons, couponCode: e5.couponCode } });
var _y = (e5) => ({ path: "/v2/billing/plans", headers: {}, query: {}, params: {}, body: { planId: e5.planId, interval: e5.interval, testReferenceTime: e5.testReferenceTime, couponCode: e5.couponCode } });
var Qy = (e5) => ({ path: "/v2/billing/addons", headers: {}, query: {}, params: {}, body: { addons: e5.addons, couponCode: e5.couponCode } });
var Hy = (e5) => ({ path: "/v2/billing/subscriptions/cancel", headers: {}, query: {}, params: {}, body: {} });
var Fy = (e5) => ({ path: "/v2/billing/auto-recharge/settings", headers: {}, query: {}, params: {}, body: {} });
var Vy = (e5) => ({ path: "/v2/billing/auto-recharge/settings", headers: {}, query: {}, params: {}, body: { settings: e5.settings } });
var Ky = (e5) => ({ path: "/v2/billing/trials", headers: {}, query: {}, params: {}, body: {} });
var zy = (e5) => ({ path: "/v2/billing/trials", headers: {}, query: {}, params: {}, body: { lengthInDays: e5.lengthInDays, plan: e5.plan } });
var jy = (e5) => ({ path: "/v2/billing/trials", headers: {}, query: {}, params: {}, body: {} });
var Zy = (e5) => ({ path: "/v2/billing/credit-grants", headers: {}, query: {}, params: {}, body: { amount: e5.amount, feature: e5.feature } });
var em = (e5) => ({ path: "/v2/billing/invoices", headers: {}, query: { nextToken: e5.nextToken, pageSize: e5.pageSize }, params: {}, body: {} });
var sm = (e5) => ({ path: `/v2/billing/invoices/${encodeURIComponent(e5.invoiceId)}/pay`, headers: {}, query: {}, params: { invoiceId: e5.invoiceId }, body: { idempotencyKey: e5.idempotencyKey } });
var nm = (e5) => ({ path: "/v2/billing/payment-methods", headers: {}, query: {}, params: {}, body: {} });
var om = (e5) => ({ path: "/v2/billing/payment-methods", headers: {}, query: {}, params: {}, body: { paymentMethodId: e5.paymentMethodId } });
var pm = (e5) => ({ path: "/v2/billing/payment-methods/intent", headers: {}, query: {}, params: {}, body: {} });
var cm = (e5) => ({ path: "/v2/billing/quotas", headers: {}, query: {}, params: {}, body: {} });
var lm = (e5) => ({ path: "/v2/usage/workspace-usage", headers: {}, query: { feature: e5.feature, period: e5.period }, params: {}, body: {} });
var ym = (e5) => ({ path: "/v2/usage/workspace-usages", headers: {}, query: { period: e5.period }, params: {}, body: {} });
var St = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  getBillingReadonly = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBillingAddress = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ry(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setBillingAddress = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getCustomer = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setCustomer = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Iy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "patch", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPlan = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Py(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPlans = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAddon = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ty(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listAddons = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getSubscription = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  previewSubscriptionUpdate = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ey(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setPlan = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _y(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setAddons = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "patch", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setCancelAtPeriodEnd = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAutoRechargeSettings = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setAutoRechargeSettings = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTrials = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ky(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createTrial = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  removeTrial = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createCreditGrant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zy(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listInvoices = async (t) => {
    let { path: n, headers: r, query: a, body: o } = em(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  payInvoice = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sm(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPaymentMethod = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nm(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setPaymentMethod = async (t) => {
    let { path: n, headers: r, query: a, body: o } = om(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createPaymentMethodIntent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pm(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getQuotas = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cm(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceUsage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lm(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceUsages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ym(t), i = this.props.toAxiosRequest ?? w, p = this.props.toApiError ?? S, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function S(e5) {
  return axios_default.isAxiosError(e5) && e5.response?.data ? Sn(e5.response.data) : Sn(e5);
}
var En = class extends St {
  config;
  constructor(t) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
  get list() {
    return { listInvoices: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listInvoices({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.invoices }))) };
  }
};
var jm = {};
j(jm, { Client: () => pa });
var DB = { getRandomValues: (e5) => new Uint8Array(e5.map(() => Math.floor(Math.random() * 256))) };
var Ln = typeof window < "u" && typeof window.document < "u" ? window.crypto : QB;
Ln.getRandomValues || (Ln = DB);
var U = class e5 extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e5.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(Ln.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var HB = (e6) => typeof e6 == "object" && !Array.isArray(e6) && e6 !== null;
var MB = (e6) => e6 instanceof U || HB(e6) && e6.isApiError === true;
var ke = class extends U {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var _n = class extends U {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var Wn = class extends U {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var Qn = class extends U {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var Dn = class extends U {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var Hn = class extends U {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var Mn = class extends U {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var Fn = class extends U {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var On = class extends U {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var Vn = class extends U {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var Nn = class extends U {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var Kn = class extends U {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var $n = class extends U {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var zn = class extends U {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var Jn = class extends U {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var jn = class extends U {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var Yn = class extends U {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var Zn = class extends U {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var Xn = class extends U {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var ea = class extends U {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var ta = class extends U {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var sa = class extends U {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var ra = class extends U {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var na = class extends U {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var aa = class extends U {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var oa = class extends U {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var FB = { Unknown: ke, Internal: _n, Unauthorized: Wn, Forbidden: Qn, PayloadTooLarge: Dn, InvalidPayload: Hn, UnsupportedMediaType: Mn, MethodNotFound: Fn, ResourceNotFound: On, InvalidJsonSchema: Vn, InvalidDataFormat: Nn, InvalidIdentifier: Kn, RelationConflict: $n, ReferenceConstraint: zn, ResourceLockedConflict: Jn, ResourceGone: jn, ReferenceNotFound: Yn, InvalidQuery: Zn, Runtime: Xn, AlreadyExists: ea, RateLimited: ta, PaymentRequired: sa, QuotaExceeded: ra, LimitExceeded: na, BreakingChanges: aa, OperationTimeout: oa };
var ia = (e6) => MB(e6) ? e6 : e6 instanceof Error ? new ke(e6.message, e6) : typeof e6 == "string" ? new ke(e6) : OB(e6);
function OB(e6) {
  if (typeof e6 == "object" && "code" in e6 && "type" in e6 && "id" in e6 && "message" in e6 && typeof e6.type == "string" && typeof e6.message == "string") {
    let t = FB[e6.type];
    return t ? new t(e6.message, undefined, e6.id || "UNKNOWN", e6.metadata) : new ke(`An unclassified API error occurred: ${e6.message} (Type: ${e6.type}, Code: ${e6.code})`);
  }
  return new ke("An invalid error occurred: " + JSON.stringify(e6));
}
var qm = te(fe());
var VB = (e6) => e6[1] !== undefined;
var O = (e6) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e6, i = Object.entries(a).filter(VB), p = Object.fromEntries(i), u = qm.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var hm = (e6) => ({ path: "/v1/files", headers: {}, query: {}, params: {}, body: { key: e6.key, tags: e6.tags, size: e6.size, index: e6.index, indexing: e6.indexing, accessPolicies: e6.accessPolicies, contentType: e6.contentType, expiresAt: e6.expiresAt, publicContentImmediatelyAccessible: e6.publicContentImmediatelyAccessible, metadata: e6.metadata } });
var fm = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.id)}`, headers: {}, query: {}, params: { id: e6.id }, body: {} });
var Im = (e6) => ({ path: "/v1/files", headers: {}, query: { nextToken: e6.nextToken, pageSize: e6.pageSize, sortField: e6.sortField, sortDirection: e6.sortDirection, tags: e6.tags, ids: e6.ids, indexed: e6.indexed }, params: {}, body: {} });
var Pm = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.id)}`, headers: {}, query: {}, params: { id: e6.id }, body: {} });
var vm = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.id)}`, headers: {}, query: {}, params: { id: e6.id }, body: { metadata: e6.metadata, tags: e6.tags, accessPolicies: e6.accessPolicies, expiresAt: e6.expiresAt } });
var Tm = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.idOrKey)}/${encodeURIComponent(e6.destinationKey)}`, headers: { "x-destination-bot-id": e6["x-destination-bot-id"] }, query: {}, params: { idOrKey: e6.idOrKey, destinationKey: e6.destinationKey }, body: { overwrite: e6.overwrite } });
var wm = (e6) => ({ path: "/v1/files/search", headers: {}, query: { tags: e6.tags, query: e6.query, contextDepth: e6.contextDepth, limit: e6.limit, consolidate: e6.consolidate, includeBreadcrumb: e6.includeBreadcrumb, withContext: e6.withContext }, params: {}, body: {} });
var Gm = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.id)}/passages`, headers: {}, query: { nextToken: e6.nextToken, pageSize: e6.pageSize, limit: e6.limit }, params: { id: e6.id }, body: {} });
var Em = (e6) => ({ path: `/v1/files/${encodeURIComponent(e6.id)}/passages`, headers: {}, query: {}, params: { id: e6.id }, body: { passages: e6.passages } });
var _m = (e6) => ({ path: "/v1/files/tags", headers: {}, query: { nextToken: e6.nextToken, pageSize: e6.pageSize }, params: {}, body: {} });
var Qm = (e6) => ({ path: `/v1/files/tags/${encodeURIComponent(e6.tag)}/values`, headers: {}, query: { nextToken: e6.nextToken, pageSize: e6.pageSize }, params: { tag: e6.tag }, body: {} });
var Hm = (e6) => ({ path: "/v1/files/knowledge-bases", headers: {}, query: {}, params: {}, body: { name: e6.name, tags: e6.tags } });
var Fm = (e6) => ({ path: `/v1/files/knowledge-bases/${encodeURIComponent(e6.id)}`, headers: {}, query: {}, params: { id: e6.id }, body: {} });
var Vm = (e6) => ({ path: `/v1/files/knowledge-bases/${encodeURIComponent(e6.id)}`, headers: {}, query: {}, params: { id: e6.id }, body: { name: e6.name, tags: e6.tags } });
var Km = (e6) => ({ path: "/v1/files/knowledge-bases", headers: {}, query: { nextToken: e6.nextToken, pageSize: e6.pageSize, tags: e6.tags }, params: {}, body: {} });
var Et = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  upsertFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFiles = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Im(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateFileMetadata = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  copyFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  searchFiles = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFilePassages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setFilePassages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Em(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFileTags = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _m(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFileTagValues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vm(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listKnowledgeBases = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Km(t), i = this.props.toAxiosRequest ?? O, p = this.props.toApiError ?? V, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function V(e6) {
  return axios_default.isAxiosError(e6) && e6.response?.data ? ia(e6.response.data) : ia(e6);
}
var Lt = async (e6, { key: t, index: n, tags: r, contentType: a, accessPolicies: o, content: i, url: p, indexing: u, expiresAt: s, metadata: y, publicContentImmediatelyAccessible: P }) => {
  if (p && i)
    throw new pe("Cannot provide both content and URL, please provide only one of them");
  if (p && (i = await axios_default.get(p, { responseType: "arraybuffer" }).then((L) => L.data).catch((L) => {
    throw new pe(`Failed to download file from provided URL: ${L.message}`, L);
  })), !i)
    throw new pe("No content was provided for the file");
  let R, x;
  if (typeof i == "string") {
    let A = new TextEncoder().encode(i);
    R = A, x = A.byteLength;
  } else if (i instanceof Uint8Array)
    R = i, x = R.byteLength;
  else if (i instanceof ArrayBuffer)
    R = i, x = R.byteLength;
  else if (i instanceof Blob)
    R = i, x = i.size;
  else
    throw new pe("The provided content is not supported");
  let { file: f } = await e6.upsertFile({ key: t, tags: r, index: n, accessPolicies: o, contentType: a, metadata: y, size: x, expiresAt: s, indexing: u, publicContentImmediatelyAccessible: P }), E = { "Content-Type": f.contentType };
  P && (E["x-amz-tagging"] = "public=true");
  try {
    await axios_default.put(f.uploadUrl, R, { maxBodyLength: 1 / 0, headers: E });
  } catch (L) {
    let A = L instanceof Error ? L : new Error(String(L));
    throw new pe(`Failed to upload file: ${A.message}`, A, f);
  }
  return { file: { ...f, size: x } };
};
var pa = class extends Et {
  config;
  constructor(t) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
  get list() {
    return { files: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFiles({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.files }))), filePassages: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFilePassages({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.passages }))), fileTags: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFileTags({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.tags }))), fileTagValues: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFileTagValues({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.values }))), knowledgeBases: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listKnowledgeBases({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.knowledgeBases }))) };
  }
  async uploadFile(t) {
    return await Lt(this, t);
  }
};
var GR = {};
j(GR, { Client: () => _a });
var zB = { getRandomValues: (e6) => new Uint8Array(e6.map(() => Math.floor(Math.random() * 256))) };
var ua = typeof window < "u" && typeof window.document < "u" ? window.crypto : $B;
ua.getRandomValues || (ua = zB);
var G = class e6 extends Error {
  constructor(n, r, a, o, i, p, u) {
    super(o);
    this.code = n;
    this.description = r;
    this.type = a;
    this.message = o;
    this.error = i;
    this.id = p;
    this.metadata = u;
    this.id || (this.id = e6.generateId());
  }
  isApiError = true;
  format() {
    return `[${this.type}] ${this.message} (Error ID: ${this.id})`;
  }
  toJSON() {
    return { id: this.id, code: this.code, type: this.type, message: this.message, metadata: this.metadata };
  }
  static generateId() {
    let n = this.getPrefix(), r = new Date().toISOString().replace(/[\-:TZ]/g, "").split(".")[0], a = 4, o = Array.from(ua.getRandomValues(new Uint8Array(a))).map((i) => i.toString(16).padStart(2, "0")).join("").toUpperCase();
    return `${n}_${r}x${o}`;
  }
  static getPrefix() {
    return typeof window < "u" && typeof window.document < "u" ? "err_bwsr" : "err";
  }
};
var JB = (e7) => typeof e7 == "object" && !Array.isArray(e7) && e7 !== null;
var jB = (e7) => e7 instanceof G || JB(e7) && e7.isApiError === true;
var Pe = class extends G {
  constructor(t, n, r, a) {
    super(500, "An unknown error occurred", "Unknown", t, n, r, a);
  }
};
var ca = class extends G {
  constructor(t, n, r, a) {
    super(500, "An internal error occurred", "Internal", t, n, r, a);
  }
};
var da = class extends G {
  constructor(t, n, r, a) {
    super(401, "The request requires to be authenticated.", "Unauthorized", t, n, r, a);
  }
};
var la = class extends G {
  constructor(t, n, r, a) {
    super(403, "The requested action can't be peform by this resource.", "Forbidden", t, n, r, a);
  }
};
var ga = class extends G {
  constructor(t, n, r, a) {
    super(413, "The request payload is too large.", "PayloadTooLarge", t, n, r, a);
  }
};
var ya = class extends G {
  constructor(t, n, r, a) {
    super(400, "The request payload is invalid.", "InvalidPayload", t, n, r, a);
  }
};
var ma = class extends G {
  constructor(t, n, r, a) {
    super(415, "The request is invalid because the content-type is not supported.", "UnsupportedMediaType", t, n, r, a);
  }
};
var Ra = class extends G {
  constructor(t, n, r, a) {
    super(405, "The requested method does not exist.", "MethodNotFound", t, n, r, a);
  }
};
var qa = class extends G {
  constructor(t, n, r, a) {
    super(404, "The requested resource does not exist.", "ResourceNotFound", t, n, r, a);
  }
};
var ha = class extends G {
  constructor(t, n, r, a) {
    super(400, "The provided JSON schema is invalid.", "InvalidJsonSchema", t, n, r, a);
  }
};
var ba = class extends G {
  constructor(t, n, r, a) {
    super(400, "The provided data doesn't respect the provided JSON schema.", "InvalidDataFormat", t, n, r, a);
  }
};
var fa = class extends G {
  constructor(t, n, r, a) {
    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", t, n, r, a);
  }
};
var xa = class extends G {
  constructor(t, n, r, a) {
    super(409, "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.", "RelationConflict", t, n, r, a);
  }
};
var Ia = class extends G {
  constructor(t, n, r, a) {
    super(409, "The resource cannot be deleted because it's referenced by another resource", "ReferenceConstraint", t, n, r, a);
  }
};
var ka = class extends G {
  constructor(t, n, r, a) {
    super(409, "The resource is current locked and cannot be operated on until the lock is released.", "ResourceLockedConflict", t, n, r, a);
  }
};
var Pa = class extends G {
  constructor(t, n, r, a) {
    super(410, "The requested resource is no longer available.", "ResourceGone", t, n, r, a);
  }
};
var Aa = class extends G {
  constructor(t, n, r, a) {
    super(400, "The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.", "ReferenceNotFound", t, n, r, a);
  }
};
var va = class extends G {
  constructor(t, n, r, a) {
    super(400, "The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.", "InvalidQuery", t, n, r, a);
  }
};
var Ba = class extends G {
  constructor(t, n, r, a) {
    super(400, "An error happened during the execution of a runtime (bot or integration).", "Runtime", t, n, r, a);
  }
};
var Ta = class extends G {
  constructor(t, n, r, a) {
    super(409, "The record attempted to be created already exists.", "AlreadyExists", t, n, r, a);
  }
};
var Ca = class extends G {
  constructor(t, n, r, a) {
    super(429, "The request has been rate limited.", "RateLimited", t, n, r, a);
  }
};
var wa = class extends G {
  constructor(t, n, r, a) {
    super(402, "A payment is required to perform this request.", "PaymentRequired", t, n, r, a);
  }
};
var Ua = class extends G {
  constructor(t, n, r, a) {
    super(403, "The request exceeds the allowed quota. Quotas are a soft limit that can be increased.", "QuotaExceeded", t, n, r, a);
  }
};
var Ga = class extends G {
  constructor(t, n, r, a) {
    super(413, "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.", "LimitExceeded", t, n, r, a);
  }
};
var Sa = class extends G {
  constructor(t, n, r, a) {
    super(400, "Request payload contains breaking changes which is not allowed for this resource without a version increment.", "BreakingChanges", t, n, r, a);
  }
};
var Ea = class extends G {
  constructor(t, n, r, a) {
    super(504, "The operation timed out.", "OperationTimeout", t, n, r, a);
  }
};
var YB = { Unknown: Pe, Internal: ca, Unauthorized: da, Forbidden: la, PayloadTooLarge: ga, InvalidPayload: ya, UnsupportedMediaType: ma, MethodNotFound: Ra, ResourceNotFound: qa, InvalidJsonSchema: ha, InvalidDataFormat: ba, InvalidIdentifier: fa, RelationConflict: xa, ReferenceConstraint: Ia, ResourceLockedConflict: ka, ResourceGone: Pa, ReferenceNotFound: Aa, InvalidQuery: va, Runtime: Ba, AlreadyExists: Ta, RateLimited: Ca, PaymentRequired: wa, QuotaExceeded: Ua, LimitExceeded: Ga, BreakingChanges: Sa, OperationTimeout: Ea };
var La = (e7) => jB(e7) ? e7 : e7 instanceof Error ? new Pe(e7.message, e7) : typeof e7 == "string" ? new Pe(e7) : ZB(e7);
function ZB(e7) {
  if (typeof e7 == "object" && "code" in e7 && "type" in e7 && "id" in e7 && "message" in e7 && typeof e7.type == "string" && typeof e7.message == "string") {
    let t = YB[e7.type];
    return t ? new t(e7.message, undefined, e7.id || "UNKNOWN", e7.metadata) : new Pe(`An unclassified API error occurred: ${e7.message} (Type: ${e7.type}, Code: ${e7.code})`);
  }
  return new Pe("An invalid error occurred: " + JSON.stringify(e7));
}
var Ym = te(fe());
var XB = (e7) => e7[1] !== undefined;
var D = (e7) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e7, i = Object.entries(a).filter(XB), p = Object.fromEntries(i), u = Ym.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var Zm = (e7) => ({ path: "/v1/tables", headers: {}, query: { tags: e7.tags }, params: {}, body: {} });
var eR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var sR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: { factor: e7.factor, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled } });
var nR = (e7) => ({ path: "/v1/tables", headers: {}, query: {}, params: {}, body: { name: e7.name, factor: e7.factor, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled } });
var oR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.sourceTableId)}/duplicate`, headers: {}, query: {}, params: { sourceTableId: e7.sourceTableId }, body: { tableName: e7.tableName, schemaOnly: e7.schemaOnly, factor: e7.factor } });
var pR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/export`, headers: {}, query: { format: e7.format, compress: e7.compress }, params: { table: e7.table }, body: {} });
var cR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/jobs`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var lR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/import`, headers: {}, query: {}, params: { table: e7.table }, body: { fileId: e7.fileId } });
var yR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: { name: e7.name, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled, factor: e7.factor } });
var RR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/column`, headers: {}, query: {}, params: { table: e7.table }, body: { name: e7.name, newName: e7.newName } });
var hR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var fR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/row`, headers: {}, query: { id: e7.id }, params: { table: e7.table }, body: {} });
var IR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/find`, headers: {}, query: {}, params: { table: e7.table }, body: { limit: e7.limit, offset: e7.offset, filter: e7.filter, group: e7.group, search: e7.search, select: e7.select, orderBy: e7.orderBy, orderDirection: e7.orderDirection } });
var PR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, waitComputed: e7.waitComputed } });
var vR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/delete`, headers: {}, query: {}, params: { table: e7.table }, body: { ids: e7.ids, filter: e7.filter, deleteAllRows: e7.deleteAllRows } });
var TR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, waitComputed: e7.waitComputed } });
var wR = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/upsert`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, keyColumn: e7.keyColumn, waitComputed: e7.waitComputed } });
var _t = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  listTables = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zm(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  duplicateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = oR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  exportTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTableJobs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  importTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  renameTableColumn = async (t) => {
    let { path: n, headers: r, query: a, body: o } = RR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTableRow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  findTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = IR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = PR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = TR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  upsertTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wR(t), i = this.props.toAxiosRequest ?? D, p = this.props.toApiError ?? M, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function M(e7) {
  return axios_default.isAxiosError(e7) && e7.response?.data ? La(e7.response.data) : La(e7);
}
var _a = class extends _t {
  config;
  constructor(t) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
};
var SR = te(fe());
var sT = (e7) => e7[1] !== undefined;
var c = (e7) => {
  let { method: t, path: n, query: r, headers: a, body: o } = e7, i = Object.entries(a).filter(sT), p = Object.fromEntries(i), u = SR.default.stringify(r, { encode: true, arrayFormat: "repeat", allowDots: true }), s = u ? [n, u].join("?") : n, y = ["put", "post", "delete", "patch"].includes(t.toLowerCase()) ? o : undefined;
  return { method: t, url: s, headers: p, data: y };
};
var ER = (e7) => ({ path: "/v1/chat/conversations", headers: {}, query: {}, params: {}, body: { channel: e7.channel, tags: e7.tags, integrationName: e7.integrationName, properties: e7.properties } });
var _R = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var QR = (e7) => ({ path: "/v1/chat/conversations", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, sortField: e7.sortField, sortDirection: e7.sortDirection, tags: e7.tags, participantIds: e7.participantIds, integrationName: e7.integrationName, channel: e7.channel, afterDate: e7.afterDate, beforeDate: e7.beforeDate, minMessageCount: e7.minMessageCount, maxMessageCount: e7.maxMessageCount }, params: {}, body: {} });
var HR = (e7) => ({ path: "/v1/chat/conversations/get-or-create", headers: {}, query: {}, params: {}, body: { channel: e7.channel, tags: e7.tags, integrationName: e7.integrationName, properties: e7.properties, discriminateByTags: e7.discriminateByTags } });
var FR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { currentTaskId: e7.currentTaskId, tags: e7.tags, properties: e7.properties } });
var VR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var KR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}/participants`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var zR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}/participants`, headers: {}, query: {}, params: { id: e7.id }, body: { userId: e7.userId } });
var jR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}/participants/${encodeURIComponent(e7.userId)}`, headers: {}, query: {}, params: { id: e7.id, userId: e7.userId }, body: {} });
var ZR = (e7) => ({ path: `/v1/chat/conversations/${encodeURIComponent(e7.id)}/participants/${encodeURIComponent(e7.userId)}`, headers: {}, query: {}, params: { id: e7.id, userId: e7.userId }, body: {} });
var eq = (e7) => ({ path: "/v1/chat/events", headers: {}, query: {}, params: {}, body: { type: e7.type, payload: e7.payload, schedule: e7.schedule, conversationId: e7.conversationId, userId: e7.userId, workflowId: e7.workflowId, messageId: e7.messageId } });
var sq = (e7) => ({ path: `/v1/chat/events/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var nq = (e7) => ({ path: "/v1/chat/events", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, type: e7.type, conversationId: e7.conversationId, userId: e7.userId, messageId: e7.messageId, workflowId: e7.workflowId, status: e7.status }, params: {}, body: {} });
var oq = (e7) => ({ path: `/v1/chat/events/scheduled/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var pq = (e7) => ({ path: "/v1/chat/messages", headers: {}, query: {}, params: {}, body: { payload: e7.payload, userId: e7.userId, conversationId: e7.conversationId, type: e7.type, tags: e7.tags, schedule: e7.schedule, origin: e7.origin } });
var cq = (e7) => ({ path: "/v1/chat/messages/get-or-create", headers: {}, query: {}, params: {}, body: { payload: e7.payload, userId: e7.userId, conversationId: e7.conversationId, type: e7.type, tags: e7.tags, schedule: e7.schedule, origin: e7.origin, discriminateByTags: e7.discriminateByTags } });
var lq = (e7) => ({ path: `/v1/chat/messages/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var yq = (e7) => ({ path: `/v1/chat/messages/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { tags: e7.tags, payload: e7.payload } });
var Rq = (e7) => ({ path: "/v1/chat/messages", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, conversationId: e7.conversationId, tags: e7.tags, afterDate: e7.afterDate, beforeDate: e7.beforeDate }, params: {}, body: {} });
var hq = (e7) => ({ path: `/v1/chat/messages/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var fq = (e7) => ({ path: "/v1/chat/initialize-incoming-message", headers: {}, query: {}, params: {}, body: { userId: e7.userId, user: e7.user, conversationId: e7.conversationId, conversation: e7.conversation, message: e7.message } });
var Iq = (e7) => ({ path: "/v1/chat/messages/import-messages", headers: {}, query: {}, params: {}, body: { messages: e7.messages } });
var Pq = (e7) => ({ path: "/v1/chat/users", headers: {}, query: {}, params: {}, body: { tags: e7.tags, integrationName: e7.integrationName, name: e7.name, pictureUrl: e7.pictureUrl, properties: e7.properties, attributes: e7.attributes } });
var vq = (e7) => ({ path: `/v1/chat/users/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Tq = (e7) => ({ path: "/v1/chat/users", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, conversationId: e7.conversationId, tags: e7.tags, afterDate: e7.afterDate, beforeDate: e7.beforeDate, rangeField: e7.rangeField, sortField: e7.sortField, sortDirection: e7.sortDirection }, params: {}, body: {} });
var wq = (e7) => ({ path: "/v1/chat/users/get-or-create", headers: {}, query: {}, params: {}, body: { tags: e7.tags, integrationName: e7.integrationName, name: e7.name, pictureUrl: e7.pictureUrl, properties: e7.properties, attributes: e7.attributes, discriminateByTags: e7.discriminateByTags } });
var Gq = (e7) => ({ path: `/v1/chat/users/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { tags: e7.tags, name: e7.name, pictureUrl: e7.pictureUrl, attributes: e7.attributes, properties: e7.properties } });
var Eq = (e7) => ({ path: `/v1/chat/users/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var _q = (e7) => ({ path: `/v1/chat/states/${encodeURIComponent(e7.type)}/${encodeURIComponent(e7.id)}/${encodeURIComponent(e7.name)}/expiry`, headers: {}, query: {}, params: { type: e7.type, id: e7.id, name: e7.name }, body: { expiry: e7.expiry } });
var Qq = (e7) => ({ path: `/v1/chat/states/${encodeURIComponent(e7.type)}/${encodeURIComponent(e7.id)}/${encodeURIComponent(e7.name)}`, headers: {}, query: {}, params: { type: e7.type, id: e7.id, name: e7.name }, body: {} });
var Hq = (e7) => ({ path: `/v1/chat/states/${encodeURIComponent(e7.type)}/${encodeURIComponent(e7.id)}/${encodeURIComponent(e7.name)}`, headers: {}, query: {}, params: { type: e7.type, id: e7.id, name: e7.name }, body: { payload: e7.payload, expiry: e7.expiry } });
var Fq = (e7) => ({ path: `/v1/chat/states/${encodeURIComponent(e7.type)}/${encodeURIComponent(e7.id)}/${encodeURIComponent(e7.name)}/get-or-set`, headers: {}, query: {}, params: { type: e7.type, id: e7.id, name: e7.name }, body: { payload: e7.payload, expiry: e7.expiry } });
var Vq = (e7) => ({ path: `/v1/chat/states/${encodeURIComponent(e7.type)}/${encodeURIComponent(e7.id)}/${encodeURIComponent(e7.name)}`, headers: {}, query: {}, params: { type: e7.type, id: e7.id, name: e7.name }, body: { payload: e7.payload, expiry: e7.expiry } });
var Kq = (e7) => ({ path: "/v1/chat/actions", headers: {}, query: {}, params: {}, body: { type: e7.type, input: e7.input } });
var zq = (e7) => ({ path: "/v1/chat/integrations/configure", headers: {}, query: {}, params: {}, body: { identifier: e7.identifier, scheduleRegisterCall: e7.scheduleRegisterCall, sandboxIdentifiers: e7.sandboxIdentifiers } });
var jq = (e7) => ({ path: "/v1/chat/workflows", headers: {}, query: {}, params: {}, body: { name: e7.name, input: e7.input, parentWorkflowId: e7.parentWorkflowId, conversationId: e7.conversationId, userId: e7.userId, timeoutAt: e7.timeoutAt, tags: e7.tags, status: e7.status, eventId: e7.eventId } });
var Zq = (e7) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var eh = (e7) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { output: e7.output, timeoutAt: e7.timeoutAt, status: e7.status, failureReason: e7.failureReason, tags: e7.tags, userId: e7.userId, eventId: e7.eventId } });
var sh = (e7) => ({ path: `/v1/chat/workflows/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var nh = (e7) => ({ path: "/v1/chat/workflows", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, tags: e7.tags, conversationId: e7.conversationId, userId: e7.userId, parentWorkflowId: e7.parentWorkflowId, statuses: e7.statuses, name: e7.name }, params: {}, body: {} });
var oh = (e7) => ({ path: "/v1/chat/workflows/get-or-create", headers: {}, query: {}, params: {}, body: { name: e7.name, input: e7.input, parentWorkflowId: e7.parentWorkflowId, conversationId: e7.conversationId, userId: e7.userId, timeoutAt: e7.timeoutAt, tags: e7.tags, status: e7.status, eventId: e7.eventId, discriminateByTags: e7.discriminateByTags, discriminateByStatusGroup: e7.discriminateByStatusGroup } });
var ph = (e7) => ({ path: `/v1/chat/tags/${encodeURIComponent(e7.key)}/values`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, type: e7.type }, params: { key: e7.key }, body: {} });
var ch = (e7) => ({ path: "/v1/chat/analytics", headers: {}, query: {}, params: {}, body: { name: e7.name, count: e7.count } });
var lh = (e7) => ({ path: "/v1/chat/observations", headers: {}, query: {}, params: {}, body: { id: e7.id, name: e7.name, data: e7.data, messageId: e7.messageId, eventId: e7.eventId, conversationId: e7.conversationId, userId: e7.userId, errorId: e7.errorId, traceId: e7.traceId } });
var yh = (e7) => ({ path: "/v1/admin/helper/vrl", headers: {}, query: {}, params: {}, body: { data: e7.data, script: e7.script } });
var Rh = (e7) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: {} });
var hh = (e7) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: { displayName: e7.displayName, profilePicture: e7.profilePicture, refresh: e7.refresh } });
var fh = (e7) => ({ path: "/v1/admin/account/me", headers: {}, query: {}, params: {}, body: {} });
var Ih = (e7) => ({ path: "/v1/admin/account/pats", headers: {}, query: {}, params: {}, body: {} });
var Ph = (e7) => ({ path: "/v1/admin/account/pats", headers: {}, query: {}, params: {}, body: { note: e7.note } });
var vh = (e7) => ({ path: `/v1/admin/account/pats/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Th = (e7) => ({ path: `/v1/admin/account/preferences/${encodeURIComponent(e7.key)}`, headers: {}, query: {}, params: { key: e7.key }, body: { value: e7.value } });
var wh = (e7) => ({ path: `/v1/admin/account/preferences/${encodeURIComponent(e7.key)}`, headers: {}, query: {}, params: { key: e7.key }, body: {} });
var Gh = (e7) => ({ path: "/v1/admin/hub/integrations", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, limit: e7.limit, name: e7.name, version: e7.version, interfaceId: e7.interfaceId, interfaceName: e7.interfaceName, installedByBotId: e7.installedByBotId, verificationStatus: e7.verificationStatus, search: e7.search, sortBy: e7.sortBy, direction: e7.direction }, params: {}, body: {} });
var Eh = (e7) => ({ path: `/v1/admin/hub/integrations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var _h = (e7) => ({ path: `/v1/admin/hub/integrations/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var Qh = (e7) => ({ path: "/v1/admin/hub/plugins", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, name: e7.name, version: e7.version }, params: {}, body: {} });
var Hh = (e7) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Fh = (e7) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e7.id)}/dereferenced`, headers: {}, query: { interfaces: e7.interfaces }, params: { id: e7.id }, body: {} });
var Vh = (e7) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var Kh = (e7) => ({ path: `/v1/admin/hub/plugins/${encodeURIComponent(e7.id)}/code/${encodeURIComponent(e7.platform)}`, headers: {}, query: {}, params: { id: e7.id, platform: e7.platform }, body: {} });
var zh = (e7) => ({ path: "/v1/admin/hub/interfaces", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, name: e7.name, version: e7.version }, params: {}, body: {} });
var jh = (e7) => ({ path: `/v1/admin/hub/interfaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Zh = (e7) => ({ path: `/v1/admin/hub/interfaces/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var eb = (e7) => ({ path: "/v1/admin/bots", headers: {}, query: {}, params: {}, body: { states: e7.states, events: e7.events, recurringEvents: e7.recurringEvents, subscriptions: e7.subscriptions, actions: e7.actions, configuration: e7.configuration, user: e7.user, conversation: e7.conversation, message: e7.message, tags: e7.tags, code: e7.code, name: e7.name, description: e7.description, medias: e7.medias, url: e7.url, secrets: e7.secrets, dev: e7.dev, type: e7.type, maxExecutionTime: e7.maxExecutionTime } });
var sb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { url: e7.url, authentication: e7.authentication, configuration: e7.configuration, blocked: e7.blocked, maxExecutionTime: e7.maxExecutionTime, alwaysAlive: e7.alwaysAlive, tags: e7.tags, user: e7.user, message: e7.message, conversation: e7.conversation, events: e7.events, actions: e7.actions, states: e7.states, recurringEvents: e7.recurringEvents, integrations: e7.integrations, plugins: e7.plugins, subscriptions: e7.subscriptions, code: e7.code, name: e7.name, description: e7.description, medias: e7.medias, secrets: e7.secrets, layers: e7.layers, type: e7.type } });
var nb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/signing-secrets/rotate`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var ob = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/transfer`, headers: {}, query: {}, params: { id: e7.id }, body: { targetWorkspaceId: e7.targetWorkspaceId } });
var pb = (e7) => ({ path: "/v1/admin/bots", headers: {}, query: { dev: e7.dev, tags: e7.tags, integrationNames: e7.integrationNames, pluginNames: e7.pluginNames, nextToken: e7.nextToken, pageSize: e7.pageSize, sortField: e7.sortField, sortDirection: e7.sortDirection }, params: {}, body: {} });
var cb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var lb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var yb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/logs`, headers: {}, query: { timeStart: e7.timeStart, timeEnd: e7.timeEnd, level: e7.level, userId: e7.userId, workflowId: e7.workflowId, conversationId: e7.conversationId, messageContains: e7.messageContains, nextToken: e7.nextToken }, params: { id: e7.id }, body: {} });
var Rb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/webchat`, headers: {}, query: { type: e7.type }, params: { id: e7.id }, body: {} });
var hb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/analytics`, headers: {}, query: { startDate: e7.startDate, endDate: e7.endDate }, params: { id: e7.id }, body: {} });
var fb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/action-runs`, headers: {}, query: { integrationName: e7.integrationName, timestampFrom: e7.timestampFrom, timestampUntil: e7.timestampUntil, nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var Ib = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/issues/${encodeURIComponent(e7.issueId)}`, headers: {}, query: {}, params: { id: e7.id, issueId: e7.issueId }, body: {} });
var Pb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/issues`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var vb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/issues/${encodeURIComponent(e7.issueId)}`, headers: {}, query: {}, params: { id: e7.id, issueId: e7.issueId }, body: {} });
var Tb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/issues/${encodeURIComponent(e7.issueId)}/events`, headers: {}, query: {}, params: { id: e7.id, issueId: e7.issueId }, body: {} });
var wb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/versions`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Gb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/versions/${encodeURIComponent(e7.versionId)}`, headers: {}, query: {}, params: { id: e7.id, versionId: e7.versionId }, body: {} });
var Eb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/bot-json`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var _b = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/publish-from-bot-json`, headers: {}, query: {}, params: { id: e7.id }, body: { botJson: e7.botJson } });
var Qb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/versions`, headers: {}, query: {}, params: { id: e7.id }, body: { name: e7.name, description: e7.description } });
var Hb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.id)}/versions/deploy`, headers: {}, query: {}, params: { id: e7.id }, body: { versionId: e7.versionId } });
var Fb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/integrations/${encodeURIComponent(e7.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e7.integrationInstanceAlias }, params: { botId: e7.botId, integrationId: e7.integrationId }, body: {} });
var Vb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/integrations/${encodeURIComponent(e7.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e7.integrationInstanceAlias }, params: { botId: e7.botId, integrationId: e7.integrationId }, body: {} });
var Kb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/integrations/${encodeURIComponent(e7.integrationId)}/shareable-id`, headers: {}, query: { integrationInstanceAlias: e7.integrationInstanceAlias }, params: { botId: e7.botId, integrationId: e7.integrationId }, body: {} });
var zb = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/integrations/${encodeURIComponent(e7.integrationId)}/sandboxed-conversations`, headers: {}, query: { integrationInstanceAlias: e7.integrationInstanceAlias }, params: { botId: e7.botId, integrationId: e7.integrationId }, body: {} });
var jb = (e7) => ({ path: "/v1/admin/bots/baks", headers: {}, query: { botId: e7.botId }, params: {}, body: {} });
var Zb = (e7) => ({ path: "/v1/admin/bots/baks", headers: {}, query: {}, params: {}, body: { botId: e7.botId, note: e7.note } });
var ef = (e7) => ({ path: `/v1/admin/bots/baks/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var sf = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/allowlist`, headers: {}, query: {}, params: { botId: e7.botId }, body: {} });
var nf = (e7) => ({ path: `/v1/admin/bots/${encodeURIComponent(e7.botId)}/allowlist`, headers: {}, query: {}, params: { botId: e7.botId }, body: { setting: e7.setting, users: e7.users } });
var of = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/migrate-to-v4`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var uf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/billing/invoices`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var df = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/billing/upcoming-invoice`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var gf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/billing/invoices/charge-unpaid`, headers: {}, query: {}, params: { id: e7.id }, body: { invoiceIds: e7.invoiceIds } });
var mf = (e7) => ({ path: "/v1/admin/workspaces", headers: {}, query: {}, params: {}, body: { name: e7.name, billingVersion: e7.billingVersion } });
var qf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/public`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var bf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var xf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/usages`, headers: {}, query: { type: e7.type, period: e7.period }, params: { id: e7.id }, body: {} });
var kf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/usages/by-bot`, headers: {}, query: { type: e7.type, period: e7.period }, params: { id: e7.id }, body: {} });
var Af = (e7) => ({ path: "/v1/admin/workspaces/usages/quota-completion", headers: {}, query: {}, params: {}, body: {} });
var Bf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/quota`, headers: {}, query: { type: e7.type, period: e7.period }, params: { id: e7.id }, body: {} });
var Cf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/quotas`, headers: {}, query: { period: e7.period }, params: { id: e7.id }, body: {} });
var Uf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { name: e7.name, spendingLimit: e7.spendingLimit, about: e7.about, profilePicture: e7.profilePicture, contactEmail: e7.contactEmail, website: e7.website, socialAccounts: e7.socialAccounts, isPublic: e7.isPublic, handle: e7.handle } });
var Sf = (e7) => ({ path: "/v1/admin/workspaces/handle-availability", headers: {}, query: {}, params: {}, body: { handle: e7.handle } });
var Lf = (e7) => ({ path: "/v1/admin/workspaces", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, handle: e7.handle }, params: {}, body: {} });
var Wf = (e7) => ({ path: "/v1/admin/workspaces/public", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, workspaceIds: e7.workspaceIds, search: e7.search }, params: {}, body: {} });
var Df = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Mf = (e7) => ({ path: `/v1/admin/workspaces/${encodeURIComponent(e7.id)}/audit-records`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var Of = (e7) => ({ path: `/v1/admin/workspaces/preferences/${encodeURIComponent(e7.key)}`, headers: {}, query: {}, params: { key: e7.key }, body: { value: e7.value } });
var Nf = (e7) => ({ path: `/v1/admin/workspaces/preferences/${encodeURIComponent(e7.key)}`, headers: {}, query: {}, params: { key: e7.key }, body: {} });
var $f = (e7) => ({ path: "/v1/admin/workspace-members", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: {}, body: {} });
var Jf = (e7) => ({ path: "/v1/admin/workspace-members/me", headers: {}, query: {}, params: {}, body: {} });
var Yf = (e7) => ({ path: `/v1/admin/workspace-members/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Xf = (e7) => ({ path: "/v1/admin/workspace-members", headers: {}, query: {}, params: {}, body: { email: e7.email, role: e7.role, sendEmail: e7.sendEmail } });
var tx = (e7) => ({ path: `/v1/admin/workspace-members/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { role: e7.role } });
var rx = (e7) => ({ path: "/v1/admin/integrations/iaks", headers: {}, query: { integrationId: e7.integrationId }, params: {}, body: {} });
var ax = (e7) => ({ path: "/v1/admin/integrations/iaks", headers: {}, query: {}, params: {}, body: { integrationId: e7.integrationId, note: e7.note } });
var ix = (e7) => ({ path: `/v1/admin/integrations/iaks/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var ux = (e7) => ({ path: "/v1/admin/integrations", headers: {}, query: {}, params: {}, body: { name: e7.name, version: e7.version, configuration: e7.configuration, configurations: e7.configurations, states: e7.states, events: e7.events, actions: e7.actions, entities: e7.entities, identifier: e7.identifier, channels: e7.channels, user: e7.user, interfaces: e7.interfaces, extraOperations: e7.extraOperations, sdkVersion: e7.sdkVersion, secrets: e7.secrets, code: e7.code, url: e7.url, dev: e7.dev, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, visibility: e7.visibility, layers: e7.layers, attributes: e7.attributes } });
var dx = (e7) => ({ path: "/v1/admin/integrations/validate", headers: {}, query: {}, params: {}, body: { name: e7.name, version: e7.version, configuration: e7.configuration, configurations: e7.configurations, states: e7.states, events: e7.events, actions: e7.actions, entities: e7.entities, identifier: e7.identifier, channels: e7.channels, user: e7.user, interfaces: e7.interfaces, extraOperations: e7.extraOperations, sdkVersion: e7.sdkVersion, secrets: e7.secrets, code: e7.code, url: e7.url, dev: e7.dev, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, visibility: e7.visibility, layers: e7.layers, attributes: e7.attributes } });
var gx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { configuration: e7.configuration, configurations: e7.configurations, extraOperations: e7.extraOperations, sdkVersion: e7.sdkVersion, channels: e7.channels, maxExecutionTime: e7.maxExecutionTime, identifier: e7.identifier, actions: e7.actions, events: e7.events, states: e7.states, user: e7.user, entities: e7.entities, interfaces: e7.interfaces, attributes: e7.attributes, secrets: e7.secrets, code: e7.code, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, url: e7.url, public: e7.public, visibility: e7.visibility, layers: e7.layers } });
var mx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}/signing-secrets/rotate`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var qx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}/validate`, headers: {}, query: {}, params: { id: e7.id }, body: { configuration: e7.configuration, configurations: e7.configurations, extraOperations: e7.extraOperations, sdkVersion: e7.sdkVersion, channels: e7.channels, maxExecutionTime: e7.maxExecutionTime, identifier: e7.identifier, actions: e7.actions, events: e7.events, states: e7.states, user: e7.user, entities: e7.entities, interfaces: e7.interfaces, attributes: e7.attributes, secrets: e7.secrets, code: e7.code, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, url: e7.url, public: e7.public, visibility: e7.visibility, layers: e7.layers } });
var bx = (e7) => ({ path: "/v1/admin/integrations", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, limit: e7.limit, name: e7.name, version: e7.version, interfaceId: e7.interfaceId, interfaceName: e7.interfaceName, installedByBotId: e7.installedByBotId, verificationStatus: e7.verificationStatus, search: e7.search, sortBy: e7.sortBy, direction: e7.direction, visibility: e7.visibility, dev: e7.dev }, params: {}, body: {} });
var xx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var kx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}/logs`, headers: {}, query: { timeStart: e7.timeStart, timeEnd: e7.timeEnd, level: e7.level, userId: e7.userId, conversationId: e7.conversationId, messageContains: e7.messageContains, nextToken: e7.nextToken }, params: { id: e7.id }, body: {} });
var Ax = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var Bx = (e7) => ({ path: `/v1/admin/integrations/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Cx = (e7) => ({ path: "/v1/admin/integrations/request-verification", headers: {}, query: {}, params: {}, body: { integrationId: e7.integrationId } });
var Ux = (e7) => ({ path: "/v1/admin/interfaces", headers: {}, query: {}, params: {}, body: { name: e7.name, version: e7.version, entities: e7.entities, events: e7.events, actions: e7.actions, channels: e7.channels, nameTemplate: e7.nameTemplate, sdkVersion: e7.sdkVersion, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, attributes: e7.attributes } });
var Sx = (e7) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Lx = (e7) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var Wx = (e7) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { entities: e7.entities, events: e7.events, actions: e7.actions, channels: e7.channels, nameTemplate: e7.nameTemplate, sdkVersion: e7.sdkVersion, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, attributes: e7.attributes } });
var Dx = (e7) => ({ path: `/v1/admin/interfaces/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var Mx = (e7) => ({ path: "/v1/admin/interfaces", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, name: e7.name, version: e7.version }, params: {}, body: {} });
var Ox = (e7) => ({ path: "/v1/admin/plugins", headers: {}, query: {}, params: {}, body: { name: e7.name, version: e7.version, configuration: e7.configuration, states: e7.states, events: e7.events, actions: e7.actions, user: e7.user, conversation: e7.conversation, message: e7.message, sdkVersion: e7.sdkVersion, code: e7.code, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, visibility: e7.visibility, dependencies: e7.dependencies, attributes: e7.attributes } });
var Nx = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var $x = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.id)}/dereferenced`, headers: {}, query: { interfaces: e7.interfaces }, params: { id: e7.id }, body: {} });
var Jx = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.name)}/${encodeURIComponent(e7.version)}`, headers: {}, query: {}, params: { name: e7.name, version: e7.version }, body: {} });
var Yx = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { configuration: e7.configuration, states: e7.states, events: e7.events, actions: e7.actions, user: e7.user, conversation: e7.conversation, message: e7.message, sdkVersion: e7.sdkVersion, code: e7.code, icon: e7.icon, readme: e7.readme, title: e7.title, description: e7.description, public: e7.public, visibility: e7.visibility, dependencies: e7.dependencies, attributes: e7.attributes } });
var Xx = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var tI = (e7) => ({ path: "/v1/admin/plugins", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, name: e7.name, version: e7.version }, params: {}, body: {} });
var rI = (e7) => ({ path: `/v1/admin/plugins/${encodeURIComponent(e7.id)}/code/${encodeURIComponent(e7.platform)}`, headers: {}, query: {}, params: { id: e7.id, platform: e7.platform }, body: {} });
var aI = (e7) => ({ path: `/v1/admin/usages/${encodeURIComponent(e7.id)}`, headers: {}, query: { type: e7.type, period: e7.period }, params: { id: e7.id }, body: {} });
var iI = (e7) => ({ path: "/v1/admin/usages/multiple", headers: {}, query: { types: e7.types, ids: e7.ids, period: e7.period }, params: {}, body: {} });
var uI = (e7) => ({ path: `/v1/admin/usages/${encodeURIComponent(e7.id)}/history`, headers: {}, query: { type: e7.type }, params: { id: e7.id }, body: {} });
var dI = (e7) => ({ path: `/v1/admin/usages/${encodeURIComponent(e7.id)}/activity`, headers: {}, query: { type: e7.type, timestampFrom: e7.timestampFrom, timestampUntil: e7.timestampUntil, nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var gI = (e7) => ({ path: `/v1/admin/usages/${encodeURIComponent(e7.id)}/daily-activity`, headers: {}, query: { type: e7.type, dateFrom: e7.dateFrom, dateUntil: e7.dateUntil, nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { id: e7.id }, body: {} });
var mI = (e7) => ({ path: "/v1/admin/quotas/ai-spend", headers: {}, query: {}, params: {}, body: { monthlySpendingLimit: e7.monthlySpendingLimit } });
var qI = (e7) => ({ path: "/v1/admin/activities", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, taskId: e7.taskId, botId: e7.botId }, params: {}, body: {} });
var bI = (e7) => ({ path: "/v1/admin/introspect", headers: {}, query: {}, params: {}, body: { botId: e7.botId } });
var xI = (e7) => ({ path: "/v1/files", headers: {}, query: {}, params: {}, body: { key: e7.key, tags: e7.tags, size: e7.size, index: e7.index, indexing: e7.indexing, accessPolicies: e7.accessPolicies, contentType: e7.contentType, expiresAt: e7.expiresAt, publicContentImmediatelyAccessible: e7.publicContentImmediatelyAccessible, metadata: e7.metadata } });
var kI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var AI = (e7) => ({ path: "/v1/files", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, sortField: e7.sortField, sortDirection: e7.sortDirection, tags: e7.tags, ids: e7.ids, indexed: e7.indexed }, params: {}, body: {} });
var BI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var CI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { metadata: e7.metadata, tags: e7.tags, accessPolicies: e7.accessPolicies, expiresAt: e7.expiresAt } });
var UI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.idOrKey)}/${encodeURIComponent(e7.destinationKey)}`, headers: { "x-destination-bot-id": e7["x-destination-bot-id"] }, query: {}, params: { idOrKey: e7.idOrKey, destinationKey: e7.destinationKey }, body: { overwrite: e7.overwrite } });
var SI = (e7) => ({ path: "/v1/files/search", headers: {}, query: { tags: e7.tags, query: e7.query, contextDepth: e7.contextDepth, limit: e7.limit, consolidate: e7.consolidate, includeBreadcrumb: e7.includeBreadcrumb, withContext: e7.withContext }, params: {}, body: {} });
var LI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.id)}/passages`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, limit: e7.limit }, params: { id: e7.id }, body: {} });
var WI = (e7) => ({ path: `/v1/files/${encodeURIComponent(e7.id)}/passages`, headers: {}, query: {}, params: { id: e7.id }, body: { passages: e7.passages } });
var DI = (e7) => ({ path: "/v1/files/tags", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: {}, body: {} });
var MI = (e7) => ({ path: `/v1/files/tags/${encodeURIComponent(e7.tag)}/values`, headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize }, params: { tag: e7.tag }, body: {} });
var OI = (e7) => ({ path: "/v1/files/knowledge-bases", headers: {}, query: {}, params: {}, body: { name: e7.name, tags: e7.tags } });
var NI = (e7) => ({ path: `/v1/files/knowledge-bases/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: {} });
var $I = (e7) => ({ path: `/v1/files/knowledge-bases/${encodeURIComponent(e7.id)}`, headers: {}, query: {}, params: { id: e7.id }, body: { name: e7.name, tags: e7.tags } });
var JI = (e7) => ({ path: "/v1/files/knowledge-bases", headers: {}, query: { nextToken: e7.nextToken, pageSize: e7.pageSize, tags: e7.tags }, params: {}, body: {} });
var YI = (e7) => ({ path: "/v1/tables", headers: {}, query: { tags: e7.tags }, params: {}, body: {} });
var XI = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var tk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: { factor: e7.factor, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled } });
var rk = (e7) => ({ path: "/v1/tables", headers: {}, query: {}, params: {}, body: { name: e7.name, factor: e7.factor, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled } });
var ak = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.sourceTableId)}/duplicate`, headers: {}, query: {}, params: { sourceTableId: e7.sourceTableId }, body: { tableName: e7.tableName, schemaOnly: e7.schemaOnly, factor: e7.factor } });
var ik = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/export`, headers: {}, query: { format: e7.format, compress: e7.compress }, params: { table: e7.table }, body: {} });
var uk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/jobs`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var dk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/import`, headers: {}, query: {}, params: { table: e7.table }, body: { fileId: e7.fileId } });
var gk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: { name: e7.name, frozen: e7.frozen, keyColumn: e7.keyColumn, schema: e7.schema, tags: e7.tags, isComputeEnabled: e7.isComputeEnabled, factor: e7.factor } });
var mk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/column`, headers: {}, query: {}, params: { table: e7.table }, body: { name: e7.name, newName: e7.newName } });
var qk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}`, headers: {}, query: {}, params: { table: e7.table }, body: {} });
var bk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/row`, headers: {}, query: { id: e7.id }, params: { table: e7.table }, body: {} });
var xk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/find`, headers: {}, query: {}, params: { table: e7.table }, body: { limit: e7.limit, offset: e7.offset, filter: e7.filter, group: e7.group, search: e7.search, select: e7.select, orderBy: e7.orderBy, orderDirection: e7.orderDirection } });
var kk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, waitComputed: e7.waitComputed } });
var Ak = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/delete`, headers: {}, query: {}, params: { table: e7.table }, body: { ids: e7.ids, filter: e7.filter, deleteAllRows: e7.deleteAllRows } });
var Bk = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, waitComputed: e7.waitComputed } });
var Ck = (e7) => ({ path: `/v1/tables/${encodeURIComponent(e7.table)}/rows/upsert`, headers: {}, query: {}, params: { table: e7.table }, body: { rows: e7.rows, keyColumn: e7.keyColumn, waitComputed: e7.waitComputed } });
var Wt = class {
  constructor(t, n = {}) {
    this.axiosInstance = t;
    this.props = n;
  }
  createConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ER(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _R(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listConversations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = QR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = HR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = FR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteConversation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = VR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listParticipants = async (t) => {
    let { path: n, headers: r, query: a, body: o } = KR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  addParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  removeParticipant = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ZR(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listEvents = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  cancelScheduledEvent = async (t) => {
    let { path: n, headers: r, query: a, body: o } = oq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listMessages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  initializeIncomingMessage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  importMessages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Iq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsers = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteUser = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Eq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setStateExpiry = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _q(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrSetState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  patchState = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "patch", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  callAction = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  configureIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zq(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkflows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateWorkflow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = oh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listTagValues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ph(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  trackAnalytics = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ch(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  captureObservation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  runVrl = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteAccount = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPersonalAccessTokens = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ih(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createPersonalAccessToken = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ph(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deletePersonalAccessToken = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setAccountPreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Th(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAccountPreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicIntegrations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicIntegrationById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Eh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _h(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicPlugins = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPluginById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getDereferencedPublicPluginById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicPluginCode = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicInterfaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicInterfaceById = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zh(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = eb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  rotateBotSigningSecrets = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  transferBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ob(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBots = async (t) => {
    let { path: n, headers: r, query: a, body: o } = pb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = cb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = lb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotLogs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = yb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotWebchat = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Rb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotAnalytics = async (t) => {
    let { path: n, headers: r, query: a, body: o } = hb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listActionRuns = async (t) => {
    let { path: n, headers: r, query: a, body: o } = fb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotIssue = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ib(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotIssues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Pb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBotIssue = async (t) => {
    let { path: n, headers: r, query: a, body: o } = vb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotIssueEvents = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Tb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotVersions = async (t) => {
    let { path: n, headers: r, query: a, body: o } = wb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Gb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotJson = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Eb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  publishFromBotJson = async (t) => {
    let { path: n, headers: r, query: a, body: o } = _b(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Qb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deployBotVersion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Hb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Fb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Vb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationShareableId = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Kb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  unlinkSandboxedConversations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = zb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listBotApiKeys = async (t) => {
    let { path: n, headers: r, query: a, body: o } = jb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createBotApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Zb(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteBotApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ef(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getBotAllowlist = async (t) => {
    let { path: n, headers: r, query: a, body: o } = sf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateBotAllowlist = async (t) => {
    let { path: n, headers: r, query: a, body: o } = nf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  migrateWorkspaceToV4 = async (t) => {
    let { path: n, headers: r, query: a, body: o } = of(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceInvoices = async (t) => {
    let { path: n, headers: r, query: a, body: o } = uf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUpcomingInvoice = async (t) => {
    let { path: n, headers: r, query: a, body: o } = df(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  chargeWorkspaceUnpaidInvoices = async (t) => {
    let { path: n, headers: r, query: a, body: o } = gf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = mf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPublicWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = qf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = bf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceUsages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = xf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  breakDownWorkspaceUsageByBot = async (t) => {
    let { path: n, headers: r, query: a, body: o } = kf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAllWorkspaceQuotaCompletion = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Af(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceQuota = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Bf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceQuotas = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Cf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Uf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  checkHandleAvailability = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Sf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Lf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPublicWorkspaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Wf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkspace = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Df(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getAuditRecords = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Mf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setWorkspacePreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Of(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspacePreference = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Nf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listWorkspaceMembers = async (t) => {
    let { path: n, headers: r, query: a, body: o } = $f(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Jf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Yf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Xf(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateWorkspaceMember = async (t) => {
    let { path: n, headers: r, query: a, body: o } = tx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listIntegrationApiKeys = async (t) => {
    let { path: n, headers: r, query: a, body: o } = rx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegrationApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ax(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegrationApiKey = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ix(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ux(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  validateIntegrationCreation = async (t) => {
    let { path: n, headers: r, query: a, body: o } = dx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = gx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  rotateIntegrationSigningSecrets = async (t) => {
    let { path: n, headers: r, query: a, body: o } = mx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  validateIntegrationUpdate = async (t) => {
    let { path: n, headers: r, query: a, body: o } = qx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listIntegrations = async (t) => {
    let { path: n, headers: r, query: a, body: o } = bx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = xx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationLogs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = kx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getIntegrationByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ax(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteIntegration = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Bx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  requestIntegrationVerification = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Cx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ux(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Sx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getInterfaceByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Lx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Wx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteInterface = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Dx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listInterfaces = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Mx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ox(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Nx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getDereferencedPlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = $x(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPluginByName = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Jx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updatePlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Yx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deletePlugin = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Xx(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listPlugins = async (t) => {
    let { path: n, headers: r, query: a, body: o } = tI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getPluginCode = async (t) => {
    let { path: n, headers: r, query: a, body: o } = rI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getUsage = async (t) => {
    let { path: n, headers: r, query: a, body: o } = aI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getMultipleUsages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = iI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageHistory = async (t) => {
    let { path: n, headers: r, query: a, body: o } = uI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageActivity = async (t) => {
    let { path: n, headers: r, query: a, body: o } = dI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listUsageActivityDaily = async (t) => {
    let { path: n, headers: r, query: a, body: o } = gI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  changeAISpendQuota = async (t) => {
    let { path: n, headers: r, query: a, body: o } = mI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listActivities = async (t) => {
    let { path: n, headers: r, query: a, body: o } = qI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  introspect = async (t) => {
    let { path: n, headers: r, query: a, body: o } = bI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  upsertFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = xI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = kI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFiles = async (t) => {
    let { path: n, headers: r, query: a, body: o } = AI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = BI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateFileMetadata = async (t) => {
    let { path: n, headers: r, query: a, body: o } = CI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  copyFile = async (t) => {
    let { path: n, headers: r, query: a, body: o } = UI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  searchFiles = async (t) => {
    let { path: n, headers: r, query: a, body: o } = SI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFilePassages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = LI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  setFilePassages = async (t) => {
    let { path: n, headers: r, query: a, body: o } = WI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFileTags = async (t) => {
    let { path: n, headers: r, query: a, body: o } = DI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listFileTagValues = async (t) => {
    let { path: n, headers: r, query: a, body: o } = MI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = OI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = NI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateKnowledgeBase = async (t) => {
    let { path: n, headers: r, query: a, body: o } = $I(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listKnowledgeBases = async (t) => {
    let { path: n, headers: r, query: a, body: o } = JI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  listTables = async (t) => {
    let { path: n, headers: r, query: a, body: o } = YI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = XI(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getOrCreateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = tk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = rk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  duplicateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ak(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  exportTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = ik(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTableJobs = async (t) => {
    let { path: n, headers: r, query: a, body: o } = uk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  importTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = dk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = gk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  renameTableColumn = async (t) => {
    let { path: n, headers: r, query: a, body: o } = mk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteTable = async (t) => {
    let { path: n, headers: r, query: a, body: o } = qk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "delete", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  getTableRow = async (t) => {
    let { path: n, headers: r, query: a, body: o } = bk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "get", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  findTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = xk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  createTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = kk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  deleteTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ak(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  updateTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Bk(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "put", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
  upsertTableRows = async (t) => {
    let { path: n, headers: r, query: a, body: o } = Ck(t), i = this.props.toAxiosRequest ?? c, p = this.props.toApiError ?? d, u = i({ method: "post", path: n, headers: { ...r }, query: { ...a }, body: o });
    return this.axiosInstance.request(u).then((s) => s.data).catch((s) => {
      throw p(s);
    });
  };
};
function d(e7) {
  return axios_default.isAxiosError(e7) && e7.response?.data ? Te(e7.response.data) : Te(e7);
}
var Uk = class extends Wt {
  config;
  constructor(t = {}) {
    let n = N.getClientConfig(t), r = K.createAxiosInstance(n);
    super(r, { toApiError: $.toApiError }), t.retry && z(r, t.retry), this.config = n;
  }
  get list() {
    return { conversations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listConversations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.conversations }))), participants: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listParticipants({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.participants }))), events: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listEvents({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.events }))), messages: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listMessages({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.messages }))), users: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsers({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.users }))), publicIntegrations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicIntegrations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.integrations }))), bots: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listBots({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.bots }))), botIssues: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listBotIssues({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.issues }))), workspaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listWorkspaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.workspaces }))), publicWorkspaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicWorkspaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.workspaces }))), workspaceMembers: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listWorkspaceMembers({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.members }))), integrations: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listIntegrations({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.integrations }))), interfaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listInterfaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.interfaces }))), publicInterfaces: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicInterfaces({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.interfaces }))), plugins: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPlugins({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.plugins }))), publicPlugins: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listPublicPlugins({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.plugins }))), activities: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listActivities({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.activities }))), files: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFiles({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.files }))), filePassages: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFilePassages({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.passages }))), fileTags: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFileTags({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.tags }))), fileTagValues: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listFileTagValues({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.values }))), knowledgeBases: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listKnowledgeBases({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.knowledgeBases }))), usageActivity: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsageActivity({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.data }))), usageActivityDaily: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listUsageActivityDaily({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.data }))), workflows: (t) => new m.AsyncCollection(({ nextToken: n }) => this.listWorkflows({ nextToken: n, ...t }).then((r) => ({ ...r, items: r.workflows }))) };
  }
  uploadFile = async (t) => await Lt(this, t);
};
export { require_lib, $a, nc, RP, ge, Nt, Kt, $t, zt, Jt, jt, Yt, Zt, Xt, es, ts, ss, rs, ns, as, os, is, ps, us, cs, ds, ls, gs, ys, ms, Te, pe, ly, Rm, jm, GR, Uk };